From 5457084f1d77820d75dde152bc11d6f7f5d462f0 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 30 Jan 2024 10:59:38 +0000 Subject: [PATCH] Update dbt docs --- docs/catalog.json | 1 + docs/index.html | 24 ++++++++++++------------ docs/manifest.json | 1 + docs/run_results.json | 1 + 4 files changed, 15 insertions(+), 12 deletions(-) create mode 100644 docs/catalog.json create mode 100644 docs/manifest.json create mode 100644 docs/run_results.json diff --git a/docs/catalog.json b/docs/catalog.json new file mode 100644 index 00000000..a1d27b69 --- /dev/null +++ b/docs/catalog.json @@ -0,0 +1 @@ +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.6.9", "generated_at": "2024-01-30T10:59:25.744864Z", "invocation_id": "f39fda47-7768-452b-a139-2400d4b89531", "env": {}}, "nodes": {"model.snowplow_unified.snowplow_unified_users_aggs": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SCRATCH", "name": "SNOWPLOW_UNIFIED_USERS_AGGS", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"USER_IDENTIFIER": {"type": "TEXT", "index": 1, "name": "USER_IDENTIFIER", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "END_TSTAMP", "comment": null}, "FIRST_SESSION_IDENTIFIER": {"type": "TEXT", "index": 4, "name": "FIRST_SESSION_IDENTIFIER", "comment": null}, "LAST_SESSION_IDENTIFIER": {"type": "TEXT", "index": 5, "name": "LAST_SESSION_IDENTIFIER", "comment": null}, "VIEWS": {"type": "NUMBER", "index": 6, "name": "VIEWS", "comment": null}, "SESSIONS": {"type": "NUMBER", "index": 7, "name": "SESSIONS", "comment": null}, "ACTIVE_DAYS": {"type": "NUMBER", "index": 8, "name": "ACTIVE_DAYS", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 9, "name": "ENGAGED_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "NUMBER", "index": 10, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "SCREEN_NAMES_VIEWED": {"type": "NUMBER", "index": 11, "name": "SCREEN_NAMES_VIEWED", "comment": null}, "APP_ERRORS": {"type": "NUMBER", "index": 12, "name": "APP_ERRORS", "comment": null}, "FATAL_APP_ERRORS": {"type": "NUMBER", "index": 13, "name": "FATAL_APP_ERRORS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 13, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 7168, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_users_aggs"}, "seed.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_USERS_EXPECTED", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"USER_IDENTIFIER": {"type": "TEXT", "index": 1, "name": "USER_IDENTIFIER", "comment": null}, "USER_ID": {"type": "TEXT", "index": 2, "name": "USER_ID", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 3, "name": "GEO_COUNTRY", "comment": null}, "CMP_EVENTS": {"type": "NUMBER", "index": 4, "name": "CMP_EVENTS", "comment": null}, "CONSENT_EVENTS": {"type": "NUMBER", "index": 5, "name": "CONSENT_EVENTS", "comment": null}, "LAST_CMP_EVENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "LAST_CMP_EVENT_TSTAMP", "comment": null}, "LAST_CONSENT_EVENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "LAST_CONSENT_EVENT_TSTAMP", "comment": null}, "LAST_CONSENT_EVENT_TYPE": {"type": "TEXT", "index": 8, "name": "LAST_CONSENT_EVENT_TYPE", "comment": null}, "LAST_CONSENT_SCOPES": {"type": "TEXT", "index": 9, "name": "LAST_CONSENT_SCOPES", "comment": null}, "LAST_CONSENT_VERSION": {"type": "TEXT", "index": 10, "name": "LAST_CONSENT_VERSION", "comment": null}, "LAST_CONSENT_URL": {"type": "TEXT", "index": 11, "name": "LAST_CONSENT_URL", "comment": null}, "LAST_DOMAINS_APPLIED": {"type": "TEXT", "index": 12, "name": "LAST_DOMAINS_APPLIED", "comment": null}, "LAST_PROCESSED_EVENT": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "LAST_PROCESSED_EVENT", "comment": null}, "IS_LATEST_VERSION": {"type": "BOOLEAN", "index": 14, "name": "IS_LATEST_VERSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 26, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 7680, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected"}, "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected_stg": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_BASE_QUARANTINED_SESSIONS_EXPECTED_STG", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"SESSION_IDENTIFIER": {"type": "TEXT", "index": 1, "name": "SESSION_IDENTIFIER", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected_stg"}, "model.snowplow_unified.snowplow_unified_users_lasts": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SCRATCH", "name": "SNOWPLOW_UNIFIED_USERS_LASTS", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"USER_IDENTIFIER": {"type": "TEXT", "index": 1, "name": "USER_IDENTIFIER", "comment": null}, "LAST_PLATFORM": {"type": "TEXT", "index": 2, "name": "LAST_PLATFORM", "comment": null}, "LAST_OS_TYPE": {"type": "TEXT", "index": 3, "name": "LAST_OS_TYPE", "comment": null}, "LAST_OS_VERSION": {"type": "TEXT", "index": 4, "name": "LAST_OS_VERSION", "comment": null}, "LAST_SCREEN_RESOLUTION": {"type": "TEXT", "index": 5, "name": "LAST_SCREEN_RESOLUTION", "comment": null}, "LAST_GEO_COUNTRY": {"type": "TEXT", "index": 6, "name": "LAST_GEO_COUNTRY", "comment": null}, "LAST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 7, "name": "LAST_GEO_COUNTRY_NAME", "comment": null}, "LAST_GEO_CONTINENT": {"type": "TEXT", "index": 8, "name": "LAST_GEO_CONTINENT", "comment": null}, "LAST_GEO_CITY": {"type": "TEXT", "index": 9, "name": "LAST_GEO_CITY", "comment": null}, "LAST_GEO_REGION_NAME": {"type": "TEXT", "index": 10, "name": "LAST_GEO_REGION_NAME", "comment": null}, "LAST_PAGE_URL": {"type": "TEXT", "index": 11, "name": "LAST_PAGE_URL", "comment": null}, "LAST_PAGE_TITLE": {"type": "TEXT", "index": 12, "name": "LAST_PAGE_TITLE", "comment": null}, "LAST_PAGE_URLSCHEME": {"type": "TEXT", "index": 13, "name": "LAST_PAGE_URLSCHEME", "comment": null}, "LAST_PAGE_URLHOST": {"type": "TEXT", "index": 14, "name": "LAST_PAGE_URLHOST", "comment": null}, "LAST_PAGE_URLPATH": {"type": "TEXT", "index": 15, "name": "LAST_PAGE_URLPATH", "comment": null}, "LAST_PAGE_URLQUERY": {"type": "TEXT", "index": 16, "name": "LAST_PAGE_URLQUERY", "comment": null}, "LAST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 17, "name": "LAST_PAGE_URLFRAGMENT", "comment": null}, "LAST_BR_LANG": {"type": "TEXT", "index": 18, "name": "LAST_BR_LANG", "comment": null}, "LAST_BR_LANG_NAME": {"type": "TEXT", "index": 19, "name": "LAST_BR_LANG_NAME", "comment": null}, "LAST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 20, "name": "LAST_SCREEN_VIEW__NAME", "comment": null}, "LAST_SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 21, "name": "LAST_SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "LAST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 22, "name": "LAST_SCREEN_VIEW__TYPE", "comment": null}, "LAST_MOBILE__CARRIER": {"type": "TEXT", "index": 23, "name": "LAST_MOBILE__CARRIER", "comment": null}, "LAST_MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 24, "name": "LAST_MOBILE__DEVICE_MANUFACTURER", "comment": null}, "LAST_MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 25, "name": "LAST_MOBILE__DEVICE_MODEL", "comment": null}, "LAST_EVENT_ID": {"type": "TEXT", "index": 26, "name": "LAST_EVENT_ID", "comment": null}, "LAST_EVENT_ID2": {"type": "TEXT", "index": 27, "name": "LAST_EVENT_ID2", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 13, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 14336, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_users_lasts"}, "seed.snowplow_unified_integration_tests.snowplow_unified_session_context": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_SESSION_CONTEXT", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"ROOT_TSTAMP": {"type": "TEXT", "index": 1, "name": "ROOT_TSTAMP", "comment": null}, "ROOT_ID": {"type": "TEXT", "index": 2, "name": "ROOT_ID", "comment": null}, "SESSION_ID": {"type": "TEXT", "index": 3, "name": "SESSION_ID", "comment": null}, "USER_ID": {"type": "TEXT", "index": 4, "name": "USER_ID", "comment": null}, "SESSION_INDEX": {"type": "NUMBER", "index": 5, "name": "SESSION_INDEX", "comment": null}, "FIRST_EVENT_ID": {"type": "TEXT", "index": 6, "name": "FIRST_EVENT_ID", "comment": null}, "PREVIOUS_SESSION_ID": {"type": "TEXT", "index": 7, "name": "PREVIOUS_SESSION_ID", "comment": null}, "EVENT_INDEX": {"type": "NUMBER", "index": 8, "name": "EVENT_INDEX", "comment": null}, "STORAGE_MECHANISM": {"type": "TEXT", "index": 9, "name": "STORAGE_MECHANISM", "comment": null}, "FIRST_EVENT_TIMESTAMP": {"type": "TEXT", "index": 10, "name": "FIRST_EVENT_TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 188, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 15872, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_session_context"}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_actual": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_TOTALS_ACTUAL", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"CONSENT_VERSION": {"type": "TEXT", "index": 1, "name": "CONSENT_VERSION", "comment": null}, "VERSION_START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "VERSION_START_TSTAMP", "comment": null}, "CONSENT_SCOPES": {"type": "TEXT", "index": 3, "name": "CONSENT_SCOPES", "comment": null}, "CONSENT_URL": {"type": "TEXT", "index": 4, "name": "CONSENT_URL", "comment": null}, "DOMAINS_APPLIED": {"type": "TEXT", "index": 5, "name": "DOMAINS_APPLIED", "comment": null}, "IS_LATEST_VERSION": {"type": "BOOLEAN", "index": 6, "name": "IS_LATEST_VERSION", "comment": null}, "LAST_ALLOW_ALL_EVENT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "LAST_ALLOW_ALL_EVENT", "comment": null}, "TOTAL_VISITORS": {"type": "NUMBER", "index": 8, "name": "TOTAL_VISITORS", "comment": null}, "ALLOW_ALL": {"type": "NUMBER", "index": 9, "name": "ALLOW_ALL", "comment": null}, "ALLOW_SELECTED": {"type": "NUMBER", "index": 10, "name": "ALLOW_SELECTED", "comment": null}, "ALLOW": {"type": "NUMBER", "index": 11, "name": "ALLOW", "comment": null}, "PENDING": {"type": "NUMBER", "index": 12, "name": "PENDING", "comment": null}, "DENIED": {"type": "NUMBER", "index": 13, "name": "DENIED", "comment": null}, "EXPIRED": {"type": "NUMBER", "index": 14, "name": "EXPIRED", "comment": null}, "WITHDRAWN": {"type": "NUMBER", "index": 15, "name": "WITHDRAWN", "comment": null}, "IMPLICIT_CONSENT": {"type": "NUMBER", "index": 16, "name": "IMPLICIT_CONSENT", "comment": null}, "EXPIRES_IN_SIX_MONTHS": {"type": "NUMBER", "index": 17, "name": "EXPIRES_IN_SIX_MONTHS", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_actual"}, "model.snowplow_unified.snowplow_unified_base_quarantined_sessions": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNOWPLOW_MANIFEST", "name": "SNOWPLOW_UNIFIED_BASE_QUARANTINED_SESSIONS", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"SESSION_IDENTIFIER": {"type": "TEXT", "index": 1, "name": "SESSION_IDENTIFIER", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1024, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_base_quarantined_sessions"}, "model.snowplow_unified.snowplow_unified_user_mapping": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_DERIVED", "name": "SNOWPLOW_UNIFIED_USER_MAPPING", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"USER_IDENTIFIER": {"type": "TEXT", "index": 1, "name": "USER_IDENTIFIER", "comment": null}, "USER_ID": {"type": "TEXT", "index": 2, "name": "USER_ID", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "END_TSTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 40, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 10240, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_user_mapping"}, "model.snowplow_unified.snowplow_unified_consent_scope_status": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_DERIVED", "name": "SNOWPLOW_UNIFIED_CONSENT_SCOPE_STATUS", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"SCOPE": {"type": "TEXT", "index": 1, "name": "SCOPE", "comment": null}, "TOTAL_CONSENT": {"type": "NUMBER", "index": 2, "name": "TOTAL_CONSENT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1536, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_consent_scope_status"}, "model.snowplow_unified.snowplow_unified_pv_engaged_time": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SCRATCH", "name": "SNOWPLOW_UNIFIED_PV_ENGAGED_TIME", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"VIEW_ID": {"type": "TEXT", "index": 1, "name": "VIEW_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "SESSION_IDENTIFIER", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "END_TSTAMP", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 4, "name": "ENGAGED_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "FLOAT", "index": 5, "name": "ABSOLUTE_TIME_IN_S", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 2048, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_pv_engaged_time"}, "model.snowplow_unified.snowplow_unified_users": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_DERIVED", "name": "SNOWPLOW_UNIFIED_USERS", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"USER_ID": {"type": "TEXT", "index": 1, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "USER_IDENTIFIER", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 3, "name": "NETWORK_USERID", "comment": null}, "STITCHED_USER_ID": {"type": "TEXT", "index": 4, "name": "STITCHED_USER_ID", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "END_TSTAMP", "comment": null}, "MODEL_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODEL_TSTAMP", "comment": null}, "FIRST_PLATFORM": {"type": "TEXT", "index": 8, "name": "FIRST_PLATFORM", "comment": null}, "LAST_PLATFORM": {"type": "TEXT", "index": 9, "name": "LAST_PLATFORM", "comment": null}, "ON_WEB": {"type": "BOOLEAN", "index": 10, "name": "ON_WEB", "comment": null}, "ON_MOBILE": {"type": "BOOLEAN", "index": 11, "name": "ON_MOBILE", "comment": null}, "LAST_SCREEN_RESOLUTION": {"type": "TEXT", "index": 12, "name": "LAST_SCREEN_RESOLUTION", "comment": null}, "LAST_OS_TYPE": {"type": "TEXT", "index": 13, "name": "LAST_OS_TYPE", "comment": null}, "LAST_OS_VERSION": {"type": "TEXT", "index": 14, "name": "LAST_OS_VERSION", "comment": null}, "FIRST_MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 15, "name": "FIRST_MOBILE__DEVICE_MANUFACTURER", "comment": null}, "FIRST_MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 16, "name": "FIRST_MOBILE__DEVICE_MODEL", "comment": null}, "FIRST_MOBILE__CARRIER": {"type": "TEXT", "index": 17, "name": "FIRST_MOBILE__CARRIER", "comment": null}, "LAST_MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 18, "name": "LAST_MOBILE__DEVICE_MANUFACTURER", "comment": null}, "LAST_MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 19, "name": "LAST_MOBILE__DEVICE_MODEL", "comment": null}, "LAST_MOBILE__CARRIER": {"type": "TEXT", "index": 20, "name": "LAST_MOBILE__CARRIER", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 21, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 22, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 23, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 24, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 25, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 26, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 27, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 28, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 29, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 30, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 31, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 32, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 33, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 34, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 35, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 36, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 37, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 38, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "FLOAT", "index": 39, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 40, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 41, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 42, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "FIRST_GEO_COUNTRY": {"type": "TEXT", "index": 43, "name": "FIRST_GEO_COUNTRY", "comment": null}, "FIRST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 44, "name": "FIRST_GEO_COUNTRY_NAME", "comment": null}, "FIRST_GEO_CONTINENT": {"type": "TEXT", "index": 45, "name": "FIRST_GEO_CONTINENT", "comment": null}, "FIRST_GEO_CITY": {"type": "TEXT", "index": 46, "name": "FIRST_GEO_CITY", "comment": null}, "FIRST_GEO_REGION_NAME": {"type": "TEXT", "index": 47, "name": "FIRST_GEO_REGION_NAME", "comment": null}, "LAST_GEO_COUNTRY": {"type": "TEXT", "index": 48, "name": "LAST_GEO_COUNTRY", "comment": null}, "LAST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 49, "name": "LAST_GEO_COUNTRY_NAME", "comment": null}, "LAST_GEO_CONTINENT": {"type": "TEXT", "index": 50, "name": "LAST_GEO_CONTINENT", "comment": null}, "LAST_GEO_CITY": {"type": "TEXT", "index": 51, "name": "LAST_GEO_CITY", "comment": null}, "LAST_GEO_REGION_NAME": {"type": "TEXT", "index": 52, "name": "LAST_GEO_REGION_NAME", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 53, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 54, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 55, "name": "GEO_LONGITUDE", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 56, "name": "GEO_TIMEZONE", "comment": null}, "VIEWS": {"type": "NUMBER", "index": 57, "name": "VIEWS", "comment": null}, "SESSIONS": {"type": "NUMBER", "index": 58, "name": "SESSIONS", "comment": null}, "ACTIVE_DAYS": {"type": "NUMBER", "index": 59, "name": "ACTIVE_DAYS", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 60, "name": "ENGAGED_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "NUMBER", "index": 61, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "SCREEN_NAMES_VIEWED": {"type": "NUMBER", "index": 62, "name": "SCREEN_NAMES_VIEWED", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 63, "name": "PAGE_REFERRER", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 64, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 65, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 66, "name": "REFR_TERM", "comment": null}, "FIRST_PAGE_TITLE": {"type": "TEXT", "index": 67, "name": "FIRST_PAGE_TITLE", "comment": null}, "FIRST_PAGE_URL": {"type": "TEXT", "index": 68, "name": "FIRST_PAGE_URL", "comment": null}, "FIRST_PAGE_URLSCHEME": {"type": "TEXT", "index": 69, "name": "FIRST_PAGE_URLSCHEME", "comment": null}, "FIRST_PAGE_URLHOST": {"type": "TEXT", "index": 70, "name": "FIRST_PAGE_URLHOST", "comment": null}, "FIRST_PAGE_URLPATH": {"type": "TEXT", "index": 71, "name": "FIRST_PAGE_URLPATH", "comment": null}, "FIRST_PAGE_URLQUERY": {"type": "TEXT", "index": 72, "name": "FIRST_PAGE_URLQUERY", "comment": null}, "FIRST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 73, "name": "FIRST_PAGE_URLFRAGMENT", "comment": null}, "FIRST_BR_LANG": {"type": "TEXT", "index": 74, "name": "FIRST_BR_LANG", "comment": null}, "FIRST_BR_LANG_NAME": {"type": "TEXT", "index": 75, "name": "FIRST_BR_LANG_NAME", "comment": null}, "LAST_PAGE_TITLE": {"type": "TEXT", "index": 76, "name": "LAST_PAGE_TITLE", "comment": null}, "LAST_PAGE_URL": {"type": "TEXT", "index": 77, "name": "LAST_PAGE_URL", "comment": null}, "LAST_PAGE_URLSCHEME": {"type": "TEXT", "index": 78, "name": "LAST_PAGE_URLSCHEME", "comment": null}, "LAST_PAGE_URLHOST": {"type": "TEXT", "index": 79, "name": "LAST_PAGE_URLHOST", "comment": null}, "LAST_PAGE_URLPATH": {"type": "TEXT", "index": 80, "name": "LAST_PAGE_URLPATH", "comment": null}, "LAST_PAGE_URLQUERY": {"type": "TEXT", "index": 81, "name": "LAST_PAGE_URLQUERY", "comment": null}, "LAST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 82, "name": "LAST_PAGE_URLFRAGMENT", "comment": null}, "LAST_BR_LANG": {"type": "TEXT", "index": 83, "name": "LAST_BR_LANG", "comment": null}, "LAST_BR_LANG_NAME": {"type": "TEXT", "index": 84, "name": "LAST_BR_LANG_NAME", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 85, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 86, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 87, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 88, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 89, "name": "REFR_URLFRAGMENT", "comment": null}, "FIRST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 90, "name": "FIRST_SCREEN_VIEW__NAME", "comment": null}, "FIRST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 91, "name": "FIRST_SCREEN_VIEW__TYPE", "comment": null}, "LAST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 92, "name": "LAST_SCREEN_VIEW__NAME", "comment": null}, "LAST_SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 93, "name": "LAST_SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "LAST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 94, "name": "LAST_SCREEN_VIEW__TYPE", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 95, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 96, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 97, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 98, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 99, "name": "MKT_CAMPAIGN", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 100, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 101, "name": "MKT_NETWORK", "comment": null}, "MKT_SOURCE_PLATFORM": {"type": "TEXT", "index": 102, "name": "MKT_SOURCE_PLATFORM", "comment": null}, "DEFAULT_CHANNEL_GROUP": {"type": "TEXT", "index": 103, "name": "DEFAULT_CHANNEL_GROUP", "comment": null}, "APP_ERRORS": {"type": "NUMBER", "index": 104, "name": "APP_ERRORS", "comment": null}, "FATAL_APP_ERRORS": {"type": "NUMBER", "index": 105, "name": "FATAL_APP_ERRORS", "comment": null}, "FIRST_EVENT_ID": {"type": "TEXT", "index": 106, "name": "FIRST_EVENT_ID", "comment": null}, "FIRST_EVENT_ID2": {"type": "TEXT", "index": 107, "name": "FIRST_EVENT_ID2", "comment": null}, "LAST_EVENT_ID": {"type": "TEXT", "index": 108, "name": "LAST_EVENT_ID", "comment": null}, "LAST_EVENT_ID2": {"type": "TEXT", "index": 109, "name": "LAST_EVENT_ID2", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 13, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 48128, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(to_date(start_tstamp))", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_users"}, "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_actual": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_BASE_QUARANTINED_SESSIONS_ACTUAL", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"SESSION_IDENTIFIER": {"type": "TEXT", "index": 1, "name": "SESSION_IDENTIFIER", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_actual"}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_actual": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_VERSIONS_ACTUAL", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"CONSENT_VERSION": {"type": "TEXT", "index": 1, "name": "CONSENT_VERSION", "comment": null}, "VERSION_START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "VERSION_START_TSTAMP", "comment": null}, "CONSENT_SCOPES": {"type": "TEXT", "index": 3, "name": "CONSENT_SCOPES", "comment": null}, "CONSENT_URL": {"type": "TEXT", "index": 4, "name": "CONSENT_URL", "comment": null}, "DOMAINS_APPLIED": {"type": "TEXT", "index": 5, "name": "DOMAINS_APPLIED", "comment": null}, "IS_LATEST_VERSION": {"type": "BOOLEAN", "index": 6, "name": "IS_LATEST_VERSION", "comment": null}, "LAST_ALLOW_ALL_EVENT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "LAST_ALLOW_ALL_EVENT", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_actual"}, "seed.snowplow_unified.snowplow_unified_dim_rfc_5646_language_mapping": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNOWPLOW_MANIFEST", "name": "SNOWPLOW_UNIFIED_DIM_RFC_5646_LANGUAGE_MAPPING", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"LANG_TAG": {"type": "TEXT", "index": 1, "name": "LANG_TAG", "comment": null}, "NAME": {"type": "TEXT", "index": 2, "name": "NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 232, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 4608, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified.snowplow_unified_dim_rfc_5646_language_mapping"}, "model.snowplow_unified_integration_tests.snowplow_unified_users_expected_stg": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_USERS_EXPECTED_STG", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"USER_ID": {"type": "TEXT", "index": 1, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "USER_IDENTIFIER", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 3, "name": "NETWORK_USERID", "comment": null}, "STITCHED_USER_ID": {"type": "TEXT", "index": 4, "name": "STITCHED_USER_ID", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "END_TSTAMP", "comment": null}, "FIRST_PLATFORM": {"type": "TEXT", "index": 7, "name": "FIRST_PLATFORM", "comment": null}, "LAST_PLATFORM": {"type": "TEXT", "index": 8, "name": "LAST_PLATFORM", "comment": null}, "ON_WEB": {"type": "BOOLEAN", "index": 9, "name": "ON_WEB", "comment": null}, "ON_MOBILE": {"type": "BOOLEAN", "index": 10, "name": "ON_MOBILE", "comment": null}, "LAST_SCREEN_RESOLUTION": {"type": "TEXT", "index": 11, "name": "LAST_SCREEN_RESOLUTION", "comment": null}, "LAST_OS_TYPE": {"type": "TEXT", "index": 12, "name": "LAST_OS_TYPE", "comment": null}, "LAST_OS_VERSION": {"type": "TEXT", "index": 13, "name": "LAST_OS_VERSION", "comment": null}, "FIRST_MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 14, "name": "FIRST_MOBILE__DEVICE_MANUFACTURER", "comment": null}, "FIRST_MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 15, "name": "FIRST_MOBILE__DEVICE_MODEL", "comment": null}, "FIRST_MOBILE__CARRIER": {"type": "TEXT", "index": 16, "name": "FIRST_MOBILE__CARRIER", "comment": null}, "LAST_MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 17, "name": "LAST_MOBILE__DEVICE_MANUFACTURER", "comment": null}, "LAST_MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 18, "name": "LAST_MOBILE__DEVICE_MODEL", "comment": null}, "LAST_MOBILE__CARRIER": {"type": "TEXT", "index": 19, "name": "LAST_MOBILE__CARRIER", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 20, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 21, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 22, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 23, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 24, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 25, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 26, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 27, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 28, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 29, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 30, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 31, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 32, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 33, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 34, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 35, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 36, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 37, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "FLOAT", "index": 38, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 39, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 40, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 41, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "FIRST_GEO_COUNTRY": {"type": "TEXT", "index": 42, "name": "FIRST_GEO_COUNTRY", "comment": null}, "FIRST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 43, "name": "FIRST_GEO_COUNTRY_NAME", "comment": null}, "FIRST_GEO_CONTINENT": {"type": "TEXT", "index": 44, "name": "FIRST_GEO_CONTINENT", "comment": null}, "FIRST_GEO_CITY": {"type": "TEXT", "index": 45, "name": "FIRST_GEO_CITY", "comment": null}, "FIRST_GEO_REGION_NAME": {"type": "TEXT", "index": 46, "name": "FIRST_GEO_REGION_NAME", "comment": null}, "LAST_GEO_COUNTRY": {"type": "TEXT", "index": 47, "name": "LAST_GEO_COUNTRY", "comment": null}, "LAST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 48, "name": "LAST_GEO_COUNTRY_NAME", "comment": null}, "LAST_GEO_CONTINENT": {"type": "TEXT", "index": 49, "name": "LAST_GEO_CONTINENT", "comment": null}, "LAST_GEO_CITY": {"type": "TEXT", "index": 50, "name": "LAST_GEO_CITY", "comment": null}, "LAST_GEO_REGION_NAME": {"type": "TEXT", "index": 51, "name": "LAST_GEO_REGION_NAME", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 52, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 53, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 54, "name": "GEO_LONGITUDE", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 55, "name": "GEO_TIMEZONE", "comment": null}, "VIEWS": {"type": "NUMBER", "index": 56, "name": "VIEWS", "comment": null}, "SESSIONS": {"type": "NUMBER", "index": 57, "name": "SESSIONS", "comment": null}, "ACTIVE_DAYS": {"type": "NUMBER", "index": 58, "name": "ACTIVE_DAYS", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 59, "name": "ENGAGED_TIME_IN_S", "comment": null}, "SCREEN_NAMES_VIEWED": {"type": "NUMBER", "index": 60, "name": "SCREEN_NAMES_VIEWED", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "NUMBER", "index": 61, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 62, "name": "PAGE_REFERRER", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 63, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 64, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 65, "name": "REFR_TERM", "comment": null}, "FIRST_PAGE_TITLE": {"type": "TEXT", "index": 66, "name": "FIRST_PAGE_TITLE", "comment": null}, "FIRST_PAGE_URL": {"type": "TEXT", "index": 67, "name": "FIRST_PAGE_URL", "comment": null}, "FIRST_PAGE_URLSCHEME": {"type": "TEXT", "index": 68, "name": "FIRST_PAGE_URLSCHEME", "comment": null}, "FIRST_PAGE_URLHOST": {"type": "TEXT", "index": 69, "name": "FIRST_PAGE_URLHOST", "comment": null}, "FIRST_PAGE_URLPATH": {"type": "TEXT", "index": 70, "name": "FIRST_PAGE_URLPATH", "comment": null}, "FIRST_PAGE_URLQUERY": {"type": "TEXT", "index": 71, "name": "FIRST_PAGE_URLQUERY", "comment": null}, "FIRST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 72, "name": "FIRST_PAGE_URLFRAGMENT", "comment": null}, "FIRST_BR_LANG": {"type": "TEXT", "index": 73, "name": "FIRST_BR_LANG", "comment": null}, "FIRST_BR_LANG_NAME": {"type": "TEXT", "index": 74, "name": "FIRST_BR_LANG_NAME", "comment": null}, "LAST_PAGE_TITLE": {"type": "TEXT", "index": 75, "name": "LAST_PAGE_TITLE", "comment": null}, "LAST_PAGE_URL": {"type": "TEXT", "index": 76, "name": "LAST_PAGE_URL", "comment": null}, "LAST_PAGE_URLSCHEME": {"type": "TEXT", "index": 77, "name": "LAST_PAGE_URLSCHEME", "comment": null}, "LAST_PAGE_URLHOST": {"type": "TEXT", "index": 78, "name": "LAST_PAGE_URLHOST", "comment": null}, "LAST_PAGE_URLPATH": {"type": "TEXT", "index": 79, "name": "LAST_PAGE_URLPATH", "comment": null}, "LAST_PAGE_URLQUERY": {"type": "TEXT", "index": 80, "name": "LAST_PAGE_URLQUERY", "comment": null}, "LAST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 81, "name": "LAST_PAGE_URLFRAGMENT", "comment": null}, "LAST_BR_LANG": {"type": "TEXT", "index": 82, "name": "LAST_BR_LANG", "comment": null}, "LAST_BR_LANG_NAME": {"type": "TEXT", "index": 83, "name": "LAST_BR_LANG_NAME", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 84, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 85, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 86, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 87, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 88, "name": "REFR_URLFRAGMENT", "comment": null}, "FIRST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 89, "name": "FIRST_SCREEN_VIEW__NAME", "comment": null}, "FIRST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 90, "name": "FIRST_SCREEN_VIEW__TYPE", "comment": null}, "LAST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 91, "name": "LAST_SCREEN_VIEW__NAME", "comment": null}, "LAST_SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 92, "name": "LAST_SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "LAST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 93, "name": "LAST_SCREEN_VIEW__TYPE", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 94, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 95, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 96, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 97, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 98, "name": "MKT_CAMPAIGN", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 99, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 100, "name": "MKT_NETWORK", "comment": null}, "MKT_SOURCE_PLATFORM": {"type": "TEXT", "index": 101, "name": "MKT_SOURCE_PLATFORM", "comment": null}, "DEFAULT_CHANNEL_GROUP": {"type": "TEXT", "index": 102, "name": "DEFAULT_CHANNEL_GROUP", "comment": null}, "APP_ERRORS": {"type": "NUMBER", "index": 103, "name": "APP_ERRORS", "comment": null}, "FATAL_APP_ERRORS": {"type": "NUMBER", "index": 104, "name": "FATAL_APP_ERRORS", "comment": null}, "FIRST_EVENT_ID": {"type": "TEXT", "index": 105, "name": "FIRST_EVENT_ID", "comment": null}, "FIRST_EVENT_ID2": {"type": "TEXT", "index": 106, "name": "FIRST_EVENT_ID2", "comment": null}, "LAST_EVENT_ID": {"type": "TEXT", "index": 107, "name": "LAST_EVENT_ID", "comment": null}, "LAST_EVENT_ID2": {"type": "TEXT", "index": 108, "name": "LAST_EVENT_ID2", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_users_expected_stg"}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected_stg": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_LOG_EXPECTED_STG", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"EVENT_ID": {"type": "TEXT", "index": 1, "name": "EVENT_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "USER_IDENTIFIER", "comment": null}, "USER_ID": {"type": "TEXT", "index": 3, "name": "USER_ID", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 4, "name": "GEO_COUNTRY", "comment": null}, "VIEW_ID": {"type": "TEXT", "index": 5, "name": "VIEW_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 6, "name": "SESSION_IDENTIFIER", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "DERIVED_TSTAMP", "comment": null}, "LOAD_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "LOAD_TSTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 10, "name": "EVENT_TYPE", "comment": null}, "BASIS_FOR_PROCESSING": {"type": "TEXT", "index": 11, "name": "BASIS_FOR_PROCESSING", "comment": null}, "CONSENT_URL": {"type": "TEXT", "index": 12, "name": "CONSENT_URL", "comment": null}, "CONSENT_VERSION": {"type": "TEXT", "index": 13, "name": "CONSENT_VERSION", "comment": null}, "CONSENT_SCOPES": {"type": "TEXT", "index": 14, "name": "CONSENT_SCOPES", "comment": null}, "DOMAINS_APPLIED": {"type": "TEXT", "index": 15, "name": "DOMAINS_APPLIED", "comment": null}, "GDPR_APPLIES": {"type": "BOOLEAN", "index": 16, "name": "GDPR_APPLIES", "comment": null}, "CMP_LOAD_TIME": {"type": "FLOAT", "index": 17, "name": "CMP_LOAD_TIME", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected_stg"}, "model.snowplow_unified.snowplow_unified_consent_log": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_DERIVED", "name": "SNOWPLOW_UNIFIED_CONSENT_LOG", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"EVENT_ID": {"type": "TEXT", "index": 1, "name": "EVENT_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "USER_IDENTIFIER", "comment": null}, "USER_ID": {"type": "TEXT", "index": 3, "name": "USER_ID", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 4, "name": "GEO_COUNTRY", "comment": null}, "VIEW_ID": {"type": "TEXT", "index": 5, "name": "VIEW_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 6, "name": "SESSION_IDENTIFIER", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "DERIVED_TSTAMP", "comment": null}, "LOAD_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "LOAD_TSTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 10, "name": "EVENT_TYPE", "comment": null}, "BASIS_FOR_PROCESSING": {"type": "TEXT", "index": 11, "name": "BASIS_FOR_PROCESSING", "comment": null}, "CONSENT_URL": {"type": "TEXT", "index": 12, "name": "CONSENT_URL", "comment": null}, "CONSENT_VERSION": {"type": "TEXT", "index": 13, "name": "CONSENT_VERSION", "comment": null}, "CONSENT_SCOPES": {"type": "TEXT", "index": 14, "name": "CONSENT_SCOPES", "comment": null}, "DOMAINS_APPLIED": {"type": "TEXT", "index": 15, "name": "DOMAINS_APPLIED", "comment": null}, "GDPR_APPLIES": {"type": "BOOLEAN", "index": 16, "name": "GDPR_APPLIES", "comment": null}, "CMP_LOAD_TIME": {"type": "FLOAT", "index": 17, "name": "CMP_LOAD_TIME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 63, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 13312, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(to_date(load_tstamp))", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_consent_log"}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_actual": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_LOG_ACTUAL", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"EVENT_ID": {"type": "TEXT", "index": 1, "name": "EVENT_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "USER_IDENTIFIER", "comment": null}, "USER_ID": {"type": "TEXT", "index": 3, "name": "USER_ID", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 4, "name": "GEO_COUNTRY", "comment": null}, "VIEW_ID": {"type": "TEXT", "index": 5, "name": "VIEW_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 6, "name": "SESSION_IDENTIFIER", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "DERIVED_TSTAMP", "comment": null}, "LOAD_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "LOAD_TSTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 10, "name": "EVENT_TYPE", "comment": null}, "BASIS_FOR_PROCESSING": {"type": "TEXT", "index": 11, "name": "BASIS_FOR_PROCESSING", "comment": null}, "CONSENT_URL": {"type": "TEXT", "index": 12, "name": "CONSENT_URL", "comment": null}, "CONSENT_VERSION": {"type": "TEXT", "index": 13, "name": "CONSENT_VERSION", "comment": null}, "CONSENT_SCOPES": {"type": "TEXT", "index": 14, "name": "CONSENT_SCOPES", "comment": null}, "DOMAINS_APPLIED": {"type": "TEXT", "index": 15, "name": "DOMAINS_APPLIED", "comment": null}, "GDPR_APPLIES": {"type": "BOOLEAN", "index": 16, "name": "GDPR_APPLIES", "comment": null}, "CMP_LOAD_TIME": {"type": "FLOAT", "index": 17, "name": "CMP_LOAD_TIME", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_actual"}, "model.snowplow_unified.snowplow_unified_base_new_event_limits": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SCRATCH", "name": "SNOWPLOW_UNIFIED_BASE_NEW_EVENT_LIMITS", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"LOWER_LIMIT": {"type": "TIMESTAMP_NTZ", "index": 1, "name": "LOWER_LIMIT", "comment": null}, "UPPER_LIMIT": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "UPPER_LIMIT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1024, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_base_new_event_limits"}, "seed.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_SCOPE_STATUS_EXPECTED", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"SCOPE": {"type": "TEXT", "index": 1, "name": "SCOPE", "comment": null}, "TOTAL_CONSENT": {"type": "NUMBER", "index": 2, "name": "TOTAL_CONSENT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 4, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1536, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected"}, "model.snowplow_unified.snowplow_unified_incremental_manifest": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNOWPLOW_MANIFEST", "name": "SNOWPLOW_UNIFIED_INCREMENTAL_MANIFEST", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"MODEL": {"type": "TEXT", "index": 1, "name": "MODEL", "comment": null}, "LAST_SUCCESS": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "LAST_SUCCESS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 19, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1536, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_incremental_manifest"}, "seed.snowplow_unified_integration_tests.snowplow_unified_users_expected": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_USERS_EXPECTED", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"USER_ID": {"type": "TEXT", "index": 1, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "USER_IDENTIFIER", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 3, "name": "NETWORK_USERID", "comment": null}, "STITCHED_USER_ID": {"type": "TEXT", "index": 4, "name": "STITCHED_USER_ID", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "END_TSTAMP", "comment": null}, "MODEL_TSTAMP": {"type": "TEXT", "index": 7, "name": "MODEL_TSTAMP", "comment": null}, "FIRST_PLATFORM": {"type": "TEXT", "index": 8, "name": "FIRST_PLATFORM", "comment": null}, "LAST_PLATFORM": {"type": "TEXT", "index": 9, "name": "LAST_PLATFORM", "comment": null}, "ON_WEB": {"type": "BOOLEAN", "index": 10, "name": "ON_WEB", "comment": null}, "ON_MOBILE": {"type": "BOOLEAN", "index": 11, "name": "ON_MOBILE", "comment": null}, "LAST_SCREEN_RESOLUTION": {"type": "TEXT", "index": 12, "name": "LAST_SCREEN_RESOLUTION", "comment": null}, "LAST_OS_TYPE": {"type": "TEXT", "index": 13, "name": "LAST_OS_TYPE", "comment": null}, "LAST_OS_VERSION": {"type": "TEXT", "index": 14, "name": "LAST_OS_VERSION", "comment": null}, "LAST_MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 15, "name": "LAST_MOBILE__DEVICE_MANUFACTURER", "comment": null}, "LAST_MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 16, "name": "LAST_MOBILE__DEVICE_MODEL", "comment": null}, "LAST_MOBILE__CARRIER": {"type": "TEXT", "index": 17, "name": "LAST_MOBILE__CARRIER", "comment": null}, "FIRST_MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 18, "name": "FIRST_MOBILE__DEVICE_MANUFACTURER", "comment": null}, "FIRST_MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 19, "name": "FIRST_MOBILE__DEVICE_MODEL", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 20, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "FLOAT", "index": 21, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 22, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 23, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 24, "name": "MOBILE__APPLE_IDFV", "comment": null}, "FIRST_MOBILE__CARRIER": {"type": "TEXT", "index": 25, "name": "FIRST_MOBILE__CARRIER", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 26, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 27, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 28, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 29, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 30, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 31, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 32, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 33, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 34, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 35, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 36, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 37, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 38, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "NUMBER", "index": 39, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 40, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 41, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 42, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "FIRST_GEO_COUNTRY": {"type": "TEXT", "index": 43, "name": "FIRST_GEO_COUNTRY", "comment": null}, "FIRST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 44, "name": "FIRST_GEO_COUNTRY_NAME", "comment": null}, "FIRST_GEO_CONTINENT": {"type": "TEXT", "index": 45, "name": "FIRST_GEO_CONTINENT", "comment": null}, "FIRST_GEO_CITY": {"type": "TEXT", "index": 46, "name": "FIRST_GEO_CITY", "comment": null}, "FIRST_GEO_REGION_NAME": {"type": "TEXT", "index": 47, "name": "FIRST_GEO_REGION_NAME", "comment": null}, "LAST_GEO_COUNTRY": {"type": "TEXT", "index": 48, "name": "LAST_GEO_COUNTRY", "comment": null}, "LAST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 49, "name": "LAST_GEO_COUNTRY_NAME", "comment": null}, "LAST_GEO_CONTINENT": {"type": "TEXT", "index": 50, "name": "LAST_GEO_CONTINENT", "comment": null}, "LAST_GEO_CITY": {"type": "TEXT", "index": 51, "name": "LAST_GEO_CITY", "comment": null}, "LAST_GEO_REGION_NAME": {"type": "TEXT", "index": 52, "name": "LAST_GEO_REGION_NAME", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 53, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 54, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 55, "name": "GEO_LONGITUDE", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 56, "name": "GEO_TIMEZONE", "comment": null}, "VIEWS": {"type": "NUMBER", "index": 57, "name": "VIEWS", "comment": null}, "SESSIONS": {"type": "NUMBER", "index": 58, "name": "SESSIONS", "comment": null}, "ACTIVE_DAYS": {"type": "NUMBER", "index": 59, "name": "ACTIVE_DAYS", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 60, "name": "ENGAGED_TIME_IN_S", "comment": null}, "SCREEN_NAMES_VIEWED": {"type": "NUMBER", "index": 61, "name": "SCREEN_NAMES_VIEWED", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "NUMBER", "index": 62, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 63, "name": "PAGE_REFERRER", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 64, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 65, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 66, "name": "REFR_TERM", "comment": null}, "FIRST_PAGE_TITLE": {"type": "TEXT", "index": 67, "name": "FIRST_PAGE_TITLE", "comment": null}, "FIRST_PAGE_URL": {"type": "TEXT", "index": 68, "name": "FIRST_PAGE_URL", "comment": null}, "FIRST_PAGE_URLSCHEME": {"type": "TEXT", "index": 69, "name": "FIRST_PAGE_URLSCHEME", "comment": null}, "FIRST_PAGE_URLHOST": {"type": "TEXT", "index": 70, "name": "FIRST_PAGE_URLHOST", "comment": null}, "FIRST_PAGE_URLPATH": {"type": "TEXT", "index": 71, "name": "FIRST_PAGE_URLPATH", "comment": null}, "FIRST_PAGE_URLQUERY": {"type": "TEXT", "index": 72, "name": "FIRST_PAGE_URLQUERY", "comment": null}, "FIRST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 73, "name": "FIRST_PAGE_URLFRAGMENT", "comment": null}, "FIRST_BR_LANG": {"type": "TEXT", "index": 74, "name": "FIRST_BR_LANG", "comment": null}, "FIRST_BR_LANG_NAME": {"type": "TEXT", "index": 75, "name": "FIRST_BR_LANG_NAME", "comment": null}, "LAST_PAGE_TITLE": {"type": "TEXT", "index": 76, "name": "LAST_PAGE_TITLE", "comment": null}, "LAST_PAGE_URL": {"type": "TEXT", "index": 77, "name": "LAST_PAGE_URL", "comment": null}, "LAST_PAGE_URLSCHEME": {"type": "TEXT", "index": 78, "name": "LAST_PAGE_URLSCHEME", "comment": null}, "LAST_PAGE_URLHOST": {"type": "TEXT", "index": 79, "name": "LAST_PAGE_URLHOST", "comment": null}, "LAST_PAGE_URLPATH": {"type": "TEXT", "index": 80, "name": "LAST_PAGE_URLPATH", "comment": null}, "LAST_PAGE_URLQUERY": {"type": "TEXT", "index": 81, "name": "LAST_PAGE_URLQUERY", "comment": null}, "LAST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 82, "name": "LAST_PAGE_URLFRAGMENT", "comment": null}, "LAST_BR_LANG": {"type": "TEXT", "index": 83, "name": "LAST_BR_LANG", "comment": null}, "LAST_BR_LANG_NAME": {"type": "TEXT", "index": 84, "name": "LAST_BR_LANG_NAME", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 85, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 86, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 87, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 88, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 89, "name": "REFR_URLFRAGMENT", "comment": null}, "FIRST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 90, "name": "FIRST_SCREEN_VIEW__NAME", "comment": null}, "FIRST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 91, "name": "FIRST_SCREEN_VIEW__TYPE", "comment": null}, "LAST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 92, "name": "LAST_SCREEN_VIEW__NAME", "comment": null}, "LAST_SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 93, "name": "LAST_SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "LAST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 94, "name": "LAST_SCREEN_VIEW__TYPE", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 95, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 96, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 97, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 98, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 99, "name": "MKT_CAMPAIGN", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 100, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 101, "name": "MKT_NETWORK", "comment": null}, "MKT_SOURCE_PLATFORM": {"type": "TEXT", "index": 102, "name": "MKT_SOURCE_PLATFORM", "comment": null}, "DEFAULT_CHANNEL_GROUP": {"type": "TEXT", "index": 103, "name": "DEFAULT_CHANNEL_GROUP", "comment": null}, "APP_ERRORS": {"type": "NUMBER", "index": 104, "name": "APP_ERRORS", "comment": null}, "FATAL_APP_ERRORS": {"type": "NUMBER", "index": 105, "name": "FATAL_APP_ERRORS", "comment": null}, "FIRST_EVENT_ID": {"type": "TEXT", "index": 106, "name": "FIRST_EVENT_ID", "comment": null}, "FIRST_EVENT_ID2": {"type": "TEXT", "index": 107, "name": "FIRST_EVENT_ID2", "comment": null}, "LAST_EVENT_ID": {"type": "TEXT", "index": 108, "name": "LAST_EVENT_ID", "comment": null}, "LAST_EVENT_ID2": {"type": "TEXT", "index": 109, "name": "LAST_EVENT_ID2", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 14, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 48128, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_users_expected"}, "model.snowplow_unified.snowplow_unified_users_sessions_this_run": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SCRATCH", "name": "SNOWPLOW_UNIFIED_USERS_SESSIONS_THIS_RUN", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"FIRST_EVENT_NAME": {"type": "TEXT", "index": 1, "name": "FIRST_EVENT_NAME", "comment": null}, "LAST_EVENT_NAME": {"type": "TEXT", "index": 2, "name": "LAST_EVENT_NAME", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 3, "name": "SESSION_IDENTIFIER", "comment": null}, "SESSION__PREVIOUS_SESSION_ID": {"type": "TEXT", "index": 4, "name": "SESSION__PREVIOUS_SESSION_ID", "comment": null}, "USER_ID": {"type": "TEXT", "index": 5, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 6, "name": "USER_IDENTIFIER", "comment": null}, "STITCHED_USER_ID": {"type": "TEXT", "index": 7, "name": "STITCHED_USER_ID", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 8, "name": "NETWORK_USERID", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "END_TSTAMP", "comment": null}, "MODEL_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODEL_TSTAMP", "comment": null}, "APP_ID": {"type": "TEXT", "index": 12, "name": "APP_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "DEVICE_IDENTIFIER": {"type": "TEXT", "index": 14, "name": "DEVICE_IDENTIFIER", "comment": null}, "DEVICE_CATEGORY": {"type": "TEXT", "index": 15, "name": "DEVICE_CATEGORY", "comment": null}, "DEVICE_SESSION_INDEX": {"type": "NUMBER", "index": 16, "name": "DEVICE_SESSION_INDEX", "comment": null}, "OS_VERSION": {"type": "TEXT", "index": 17, "name": "OS_VERSION", "comment": null}, "OS_TYPE": {"type": "TEXT", "index": 18, "name": "OS_TYPE", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 19, "name": "OS_TIMEZONE", "comment": null}, "SCREEN_RESOLUTION": {"type": "TEXT", "index": 20, "name": "SCREEN_RESOLUTION", "comment": null}, "YAUAA__DEVICE_CLASS": {"type": "TEXT", "index": 21, "name": "YAUAA__DEVICE_CLASS", "comment": null}, "YAUAA__DEVICE_VERSION": {"type": "TEXT", "index": 22, "name": "YAUAA__DEVICE_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_VERSION": {"type": "TEXT", "index": 23, "name": "YAUAA__OPERATING_SYSTEM_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_CLASS": {"type": "TEXT", "index": 24, "name": "YAUAA__OPERATING_SYSTEM_CLASS", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME": {"type": "TEXT", "index": 25, "name": "YAUAA__OPERATING_SYSTEM_NAME", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME_VERSION": {"type": "TEXT", "index": 26, "name": "YAUAA__OPERATING_SYSTEM_NAME_VERSION", "comment": null}, "MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 27, "name": "MOBILE__DEVICE_MANUFACTURER", "comment": null}, "MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 28, "name": "MOBILE__DEVICE_MODEL", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 29, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 30, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 31, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 32, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 33, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__CARRIER": {"type": "TEXT", "index": 34, "name": "MOBILE__CARRIER", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 35, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 36, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 37, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 38, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 39, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 40, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 41, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 42, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 43, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 44, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 45, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 46, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 47, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "FLOAT", "index": 48, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 49, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 50, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 51, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "FIRST_GEO_COUNTRY": {"type": "TEXT", "index": 52, "name": "FIRST_GEO_COUNTRY", "comment": null}, "FIRST_GEO_REGION_NAME": {"type": "TEXT", "index": 53, "name": "FIRST_GEO_REGION_NAME", "comment": null}, "FIRST_GEO_CITY": {"type": "TEXT", "index": 54, "name": "FIRST_GEO_CITY", "comment": null}, "FIRST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 55, "name": "FIRST_GEO_COUNTRY_NAME", "comment": null}, "FIRST_GEO_CONTINENT": {"type": "TEXT", "index": 56, "name": "FIRST_GEO_CONTINENT", "comment": null}, "LAST_GEO_COUNTRY": {"type": "TEXT", "index": 57, "name": "LAST_GEO_COUNTRY", "comment": null}, "LAST_GEO_REGION_NAME": {"type": "TEXT", "index": 58, "name": "LAST_GEO_REGION_NAME", "comment": null}, "LAST_GEO_CITY": {"type": "TEXT", "index": 59, "name": "LAST_GEO_CITY", "comment": null}, "LAST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 60, "name": "LAST_GEO_COUNTRY_NAME", "comment": null}, "LAST_GEO_CONTINENT": {"type": "TEXT", "index": 61, "name": "LAST_GEO_CONTINENT", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 62, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 63, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 64, "name": "GEO_LONGITUDE", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 65, "name": "GEO_TIMEZONE", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 66, "name": "USER_IPADDRESS", "comment": null}, "VIEWS": {"type": "NUMBER", "index": 67, "name": "VIEWS", "comment": null}, "EVENT_COUNTS": {"type": "VARIANT", "index": 68, "name": "EVENT_COUNTS", "comment": null}, "TOTAL_EVENTS": {"type": "NUMBER", "index": 69, "name": "TOTAL_EVENTS", "comment": null}, "IS_ENGAGED": {"type": "BOOLEAN", "index": 70, "name": "IS_ENGAGED", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 71, "name": "ENGAGED_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "NUMBER", "index": 72, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "SCREEN_NAMES_VIEWED": {"type": "NUMBER", "index": 73, "name": "SCREEN_NAMES_VIEWED", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 74, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 75, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 76, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 77, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 78, "name": "MKT_CAMPAIGN", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 79, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 80, "name": "MKT_NETWORK", "comment": null}, "DEFAULT_CHANNEL_GROUP": {"type": "TEXT", "index": 81, "name": "DEFAULT_CHANNEL_GROUP", "comment": null}, "MKT_SOURCE_PLATFORM": {"type": "TEXT", "index": 82, "name": "MKT_SOURCE_PLATFORM", "comment": null}, "FIRST_PAGE_URL": {"type": "TEXT", "index": 83, "name": "FIRST_PAGE_URL", "comment": null}, "LAST_PAGE_URL": {"type": "TEXT", "index": 84, "name": "LAST_PAGE_URL", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 85, "name": "PAGE_REFERRER", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 86, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 87, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 88, "name": "REFR_TERM", "comment": null}, "FIRST_PAGE_TITLE": {"type": "TEXT", "index": 89, "name": "FIRST_PAGE_TITLE", "comment": null}, "FIRST_PAGE_URLSCHEME": {"type": "TEXT", "index": 90, "name": "FIRST_PAGE_URLSCHEME", "comment": null}, "FIRST_PAGE_URLHOST": {"type": "TEXT", "index": 91, "name": "FIRST_PAGE_URLHOST", "comment": null}, "FIRST_PAGE_URLPATH": {"type": "TEXT", "index": 92, "name": "FIRST_PAGE_URLPATH", "comment": null}, "FIRST_PAGE_URLQUERY": {"type": "TEXT", "index": 93, "name": "FIRST_PAGE_URLQUERY", "comment": null}, "FIRST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 94, "name": "FIRST_PAGE_URLFRAGMENT", "comment": null}, "LAST_PAGE_TITLE": {"type": "TEXT", "index": 95, "name": "LAST_PAGE_TITLE", "comment": null}, "LAST_PAGE_URLSCHEME": {"type": "TEXT", "index": 96, "name": "LAST_PAGE_URLSCHEME", "comment": null}, "LAST_PAGE_URLHOST": {"type": "TEXT", "index": 97, "name": "LAST_PAGE_URLHOST", "comment": null}, "LAST_PAGE_URLPATH": {"type": "TEXT", "index": 98, "name": "LAST_PAGE_URLPATH", "comment": null}, "LAST_PAGE_URLQUERY": {"type": "TEXT", "index": 99, "name": "LAST_PAGE_URLQUERY", "comment": null}, "LAST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 100, "name": "LAST_PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 101, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 102, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 103, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 104, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 105, "name": "REFR_URLFRAGMENT", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 106, "name": "BR_RENDERENGINE", "comment": null}, "FIRST_BR_LANG": {"type": "TEXT", "index": 107, "name": "FIRST_BR_LANG", "comment": null}, "FIRST_BR_LANG_NAME": {"type": "TEXT", "index": 108, "name": "FIRST_BR_LANG_NAME", "comment": null}, "LAST_BR_LANG": {"type": "TEXT", "index": 109, "name": "LAST_BR_LANG", "comment": null}, "LAST_BR_LANG_NAME": {"type": "TEXT", "index": 110, "name": "LAST_BR_LANG_NAME", "comment": null}, "IAB__CATEGORY": {"type": "TEXT", "index": 111, "name": "IAB__CATEGORY", "comment": null}, "IAB__PRIMARY_IMPACT": {"type": "TEXT", "index": 112, "name": "IAB__PRIMARY_IMPACT", "comment": null}, "IAB__REASON": {"type": "TEXT", "index": 113, "name": "IAB__REASON", "comment": null}, "IAB__SPIDER_OR_ROBOT": {"type": "BOOLEAN", "index": 114, "name": "IAB__SPIDER_OR_ROBOT", "comment": null}, "YAUAA__DEVICE_NAME": {"type": "TEXT", "index": 115, "name": "YAUAA__DEVICE_NAME", "comment": null}, "YAUAA__AGENT_CLASS": {"type": "TEXT", "index": 116, "name": "YAUAA__AGENT_CLASS", "comment": null}, "YAUAA__AGENT_NAME": {"type": "TEXT", "index": 117, "name": "YAUAA__AGENT_NAME", "comment": null}, "YAUAA__AGENT_NAME_VERSION": {"type": "TEXT", "index": 118, "name": "YAUAA__AGENT_NAME_VERSION", "comment": null}, "YAUAA__AGENT_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 119, "name": "YAUAA__AGENT_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__AGENT_VERSION": {"type": "TEXT", "index": 120, "name": "YAUAA__AGENT_VERSION", "comment": null}, "YAUAA__AGENT_VERSION_MAJOR": {"type": "TEXT", "index": 121, "name": "YAUAA__AGENT_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_CLASS": {"type": "TEXT", "index": 122, "name": "YAUAA__LAYOUT_ENGINE_CLASS", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME": {"type": "TEXT", "index": 123, "name": "YAUAA__LAYOUT_ENGINE_NAME", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION": {"type": "TEXT", "index": 124, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 125, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION": {"type": "TEXT", "index": 126, "name": "YAUAA__LAYOUT_ENGINE_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR": {"type": "TEXT", "index": 127, "name": "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR", "comment": null}, "UA__DEVICE_FAMILY": {"type": "TEXT", "index": 128, "name": "UA__DEVICE_FAMILY", "comment": null}, "UA__OS_VERSION": {"type": "TEXT", "index": 129, "name": "UA__OS_VERSION", "comment": null}, "UA__OS_MAJOR": {"type": "TEXT", "index": 130, "name": "UA__OS_MAJOR", "comment": null}, "UA__OS_MINOR": {"type": "TEXT", "index": 131, "name": "UA__OS_MINOR", "comment": null}, "UA__OS_PATCH": {"type": "TEXT", "index": 132, "name": "UA__OS_PATCH", "comment": null}, "UA__OS_PATCH_MINOR": {"type": "TEXT", "index": 133, "name": "UA__OS_PATCH_MINOR", "comment": null}, "UA__USERAGENT_FAMILY": {"type": "TEXT", "index": 134, "name": "UA__USERAGENT_FAMILY", "comment": null}, "UA__USERAGENT_MAJOR": {"type": "TEXT", "index": 135, "name": "UA__USERAGENT_MAJOR", "comment": null}, "UA__USERAGENT_MINOR": {"type": "TEXT", "index": 136, "name": "UA__USERAGENT_MINOR", "comment": null}, "UA__USERAGENT_PATCH": {"type": "TEXT", "index": 137, "name": "UA__USERAGENT_PATCH", "comment": null}, "UA__USERAGENT_VERSION": {"type": "TEXT", "index": 138, "name": "UA__USERAGENT_VERSION", "comment": null}, "FIRST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 139, "name": "FIRST_SCREEN_VIEW__NAME", "comment": null}, "FIRST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 140, "name": "FIRST_SCREEN_VIEW__TYPE", "comment": null}, "LAST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 141, "name": "LAST_SCREEN_VIEW__NAME", "comment": null}, "LAST_SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 142, "name": "LAST_SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "LAST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 143, "name": "LAST_SCREEN_VIEW__TYPE", "comment": null}, "SCREEN_VIEW__PREVIOUS_ID": {"type": "TEXT", "index": 144, "name": "SCREEN_VIEW__PREVIOUS_ID", "comment": null}, "SCREEN_VIEW__PREVIOUS_NAME": {"type": "TEXT", "index": 145, "name": "SCREEN_VIEW__PREVIOUS_NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_TYPE": {"type": "TEXT", "index": 146, "name": "SCREEN_VIEW__PREVIOUS_TYPE", "comment": null}, "FIRST_APP__BUILD": {"type": "TEXT", "index": 147, "name": "FIRST_APP__BUILD", "comment": null}, "FIRST_APP__VERSION": {"type": "TEXT", "index": 148, "name": "FIRST_APP__VERSION", "comment": null}, "FIRST_GEO__ALTITUDE": {"type": "FLOAT", "index": 149, "name": "FIRST_GEO__ALTITUDE", "comment": null}, "FIRST_GEO__ALTITUDE_ACCURACY": {"type": "FLOAT", "index": 150, "name": "FIRST_GEO__ALTITUDE_ACCURACY", "comment": null}, "FIRST_GEO__BEARING": {"type": "FLOAT", "index": 151, "name": "FIRST_GEO__BEARING", "comment": null}, "FIRST_GEO__LATITUDE": {"type": "FLOAT", "index": 152, "name": "FIRST_GEO__LATITUDE", "comment": null}, "FIRST_GEO__LATITUDE_LONGITUDE_ACCURACY": {"type": "FLOAT", "index": 153, "name": "FIRST_GEO__LATITUDE_LONGITUDE_ACCURACY", "comment": null}, "FIRST_GEO__LONGITUDE": {"type": "FLOAT", "index": 154, "name": "FIRST_GEO__LONGITUDE", "comment": null}, "FIRST_GEO__SPEED": {"type": "FLOAT", "index": 155, "name": "FIRST_GEO__SPEED", "comment": null}, "SCREEN__FRAGMENT": {"type": "TEXT", "index": 156, "name": "SCREEN__FRAGMENT", "comment": null}, "SCREEN__TOP_VIEW_CONTROLLER": {"type": "TEXT", "index": 157, "name": "SCREEN__TOP_VIEW_CONTROLLER", "comment": null}, "SCREEN__VIEW_CONTROLLER": {"type": "TEXT", "index": 158, "name": "SCREEN__VIEW_CONTROLLER", "comment": null}, "APP_ERRORS": {"type": "NUMBER", "index": 159, "name": "APP_ERRORS", "comment": null}, "FATAL_APP_ERRORS": {"type": "NUMBER", "index": 160, "name": "FATAL_APP_ERRORS", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 161, "name": "USERAGENT", "comment": null}, "CV_VIEW_PAGE_VOLUME": {"type": "NUMBER", "index": 162, "name": "CV_VIEW_PAGE_VOLUME", "comment": null}, "CV_VIEW_PAGE_EVENTS": {"type": "ARRAY", "index": 163, "name": "CV_VIEW_PAGE_EVENTS", "comment": null}, "CV_VIEW_PAGE_VALUES": {"type": "ARRAY", "index": 164, "name": "CV_VIEW_PAGE_VALUES", "comment": null}, "CV_VIEW_PAGE_TOTAL": {"type": "FLOAT", "index": 165, "name": "CV_VIEW_PAGE_TOTAL", "comment": null}, "CV_VIEW_PAGE_FIRST_CONVERSION": {"type": "TIMESTAMP_NTZ", "index": 166, "name": "CV_VIEW_PAGE_FIRST_CONVERSION", "comment": null}, "CV_VIEW_PAGE_CONVERTED": {"type": "BOOLEAN", "index": 167, "name": "CV_VIEW_PAGE_CONVERTED", "comment": null}, "CV__ALL_VOLUME": {"type": "NUMBER", "index": 168, "name": "CV__ALL_VOLUME", "comment": null}, "CV__ALL_TOTAL": {"type": "FLOAT", "index": 169, "name": "CV__ALL_TOTAL", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 170, "name": "EVENT_ID", "comment": null}, "EVENT_ID2": {"type": "TEXT", "index": 171, "name": "EVENT_ID2", "comment": null}, "ON_WEB_BASE": {"type": "BOOLEAN", "index": 172, "name": "ON_WEB_BASE", "comment": null}, "ON_MOBILE_BASE": {"type": "BOOLEAN", "index": 173, "name": "ON_MOBILE_BASE", "comment": null}, "USER_START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 174, "name": "USER_START_TSTAMP", "comment": null}, "USER_END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 175, "name": "USER_END_TSTAMP", "comment": null}, "ON_WEB": {"type": "BOOLEAN", "index": 176, "name": "ON_WEB", "comment": null}, "ON_MOBILE": {"type": "BOOLEAN", "index": 177, "name": "ON_MOBILE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 20, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 88576, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_users_sessions_this_run"}, "seed.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_LOG_EXPECTED", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"EVENT_ID": {"type": "TEXT", "index": 1, "name": "EVENT_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "USER_IDENTIFIER", "comment": null}, "USER_ID": {"type": "TEXT", "index": 3, "name": "USER_ID", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 4, "name": "GEO_COUNTRY", "comment": null}, "VIEW_ID": {"type": "NUMBER", "index": 5, "name": "VIEW_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 6, "name": "SESSION_IDENTIFIER", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "DERIVED_TSTAMP", "comment": null}, "LOAD_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "LOAD_TSTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 10, "name": "EVENT_TYPE", "comment": null}, "BASIS_FOR_PROCESSING": {"type": "TEXT", "index": 11, "name": "BASIS_FOR_PROCESSING", "comment": null}, "CONSENT_URL": {"type": "TEXT", "index": 12, "name": "CONSENT_URL", "comment": null}, "CONSENT_VERSION": {"type": "TEXT", "index": 13, "name": "CONSENT_VERSION", "comment": null}, "CONSENT_SCOPES": {"type": "TEXT", "index": 14, "name": "CONSENT_SCOPES", "comment": null}, "DOMAINS_APPLIED": {"type": "TEXT", "index": 15, "name": "DOMAINS_APPLIED", "comment": null}, "GDPR_APPLIES": {"type": "BOOLEAN", "index": 16, "name": "GDPR_APPLIES", "comment": null}, "CMP_LOAD_TIME": {"type": "FLOAT", "index": 17, "name": "CMP_LOAD_TIME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 65, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 13824, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected"}, "model.snowplow_unified.snowplow_unified_views_this_run": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SCRATCH", "name": "SNOWPLOW_UNIFIED_VIEWS_THIS_RUN", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"VIEW_ID": {"type": "TEXT", "index": 1, "name": "VIEW_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 2, "name": "EVENT_NAME", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 3, "name": "EVENT_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 4, "name": "SESSION_IDENTIFIER", "comment": null}, "VIEW_IN_SESSION_INDEX": {"type": "NUMBER", "index": 5, "name": "VIEW_IN_SESSION_INDEX", "comment": null}, "VIEWS_IN_SESSION": {"type": "NUMBER", "index": 6, "name": "VIEWS_IN_SESSION", "comment": null}, "SESSION__PREVIOUS_SESSION_ID": {"type": "TEXT", "index": 7, "name": "SESSION__PREVIOUS_SESSION_ID", "comment": null}, "USER_ID": {"type": "TEXT", "index": 8, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 9, "name": "USER_IDENTIFIER", "comment": null}, "STITCHED_USER_ID": {"type": "TEXT", "index": 10, "name": "STITCHED_USER_ID", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 11, "name": "NETWORK_USERID", "comment": null}, "DVCE_CREATED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "DVCE_CREATED_TSTAMP", "comment": null}, "COLLECTOR_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "COLLECTOR_TSTAMP", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "DERIVED_TSTAMP", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "END_TSTAMP", "comment": null}, "MODEL_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODEL_TSTAMP", "comment": null}, "APP_ID": {"type": "TEXT", "index": 18, "name": "APP_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 19, "name": "PLATFORM", "comment": null}, "DEVICE_IDENTIFIER": {"type": "TEXT", "index": 20, "name": "DEVICE_IDENTIFIER", "comment": null}, "DEVICE_CATEGORY": {"type": "TEXT", "index": 21, "name": "DEVICE_CATEGORY", "comment": null}, "DEVICE_SESSION_INDEX": {"type": "NUMBER", "index": 22, "name": "DEVICE_SESSION_INDEX", "comment": null}, "OS_VERSION": {"type": "TEXT", "index": 23, "name": "OS_VERSION", "comment": null}, "OS_TYPE": {"type": "TEXT", "index": 24, "name": "OS_TYPE", "comment": null}, "MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 25, "name": "MOBILE__DEVICE_MANUFACTURER", "comment": null}, "MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 26, "name": "MOBILE__DEVICE_MODEL", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 27, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 28, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 29, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 30, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 31, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__CARRIER": {"type": "TEXT", "index": 32, "name": "MOBILE__CARRIER", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 33, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 34, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 35, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 36, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 37, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 38, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 39, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 40, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 41, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 42, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 43, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 44, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 45, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "FLOAT", "index": 46, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 47, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 48, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 49, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 50, "name": "OS_TIMEZONE", "comment": null}, "SCREEN_RESOLUTION": {"type": "TEXT", "index": 51, "name": "SCREEN_RESOLUTION", "comment": null}, "YAUAA__DEVICE_CLASS": {"type": "TEXT", "index": 52, "name": "YAUAA__DEVICE_CLASS", "comment": null}, "YAUAA__DEVICE_VERSION": {"type": "TEXT", "index": 53, "name": "YAUAA__DEVICE_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_VERSION": {"type": "TEXT", "index": 54, "name": "YAUAA__OPERATING_SYSTEM_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_CLASS": {"type": "TEXT", "index": 55, "name": "YAUAA__OPERATING_SYSTEM_CLASS", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME": {"type": "TEXT", "index": 56, "name": "YAUAA__OPERATING_SYSTEM_NAME", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME_VERSION": {"type": "TEXT", "index": 57, "name": "YAUAA__OPERATING_SYSTEM_NAME_VERSION", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 58, "name": "GEO_COUNTRY", "comment": null}, "GEO_REGION": {"type": "TEXT", "index": 59, "name": "GEO_REGION", "comment": null}, "GEO_REGION_NAME": {"type": "TEXT", "index": 60, "name": "GEO_REGION_NAME", "comment": null}, "GEO_CITY": {"type": "TEXT", "index": 61, "name": "GEO_CITY", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 62, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 63, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 64, "name": "GEO_LONGITUDE", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 65, "name": "GEO_TIMEZONE", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 66, "name": "USER_IPADDRESS", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 67, "name": "ENGAGED_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "FLOAT", "index": 68, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "HORIZONTAL_PIXELS_SCROLLED": {"type": "NUMBER", "index": 69, "name": "HORIZONTAL_PIXELS_SCROLLED", "comment": null}, "VERTICAL_PIXELS_SCROLLED": {"type": "NUMBER", "index": 70, "name": "VERTICAL_PIXELS_SCROLLED", "comment": null}, "HORIZONTAL_PERCENTAGE_SCROLLED": {"type": "FLOAT", "index": 71, "name": "HORIZONTAL_PERCENTAGE_SCROLLED", "comment": null}, "VERTICAL_PERCENTAGE_SCROLLED": {"type": "FLOAT", "index": 72, "name": "VERTICAL_PERCENTAGE_SCROLLED", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 73, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 74, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 75, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 76, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 77, "name": "MKT_CAMPAIGN", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 78, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 79, "name": "MKT_NETWORK", "comment": null}, "DEFAULT_CHANNEL_GROUP": {"type": "TEXT", "index": 80, "name": "DEFAULT_CHANNEL_GROUP", "comment": null}, "PAGE_URL": {"type": "TEXT", "index": 81, "name": "PAGE_URL", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 82, "name": "PAGE_REFERRER", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 83, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 84, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 85, "name": "REFR_TERM", "comment": null}, "PAGE_TITLE": {"type": "TEXT", "index": 86, "name": "PAGE_TITLE", "comment": null}, "CONTENT_GROUP": {"type": "TEXT", "index": 87, "name": "CONTENT_GROUP", "comment": null}, "PAGE_URLSCHEME": {"type": "TEXT", "index": 88, "name": "PAGE_URLSCHEME", "comment": null}, "PAGE_URLHOST": {"type": "TEXT", "index": 89, "name": "PAGE_URLHOST", "comment": null}, "PAGE_URLPATH": {"type": "TEXT", "index": 90, "name": "PAGE_URLPATH", "comment": null}, "PAGE_URLQUERY": {"type": "TEXT", "index": 91, "name": "PAGE_URLQUERY", "comment": null}, "PAGE_URLFRAGMENT": {"type": "TEXT", "index": 92, "name": "PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 93, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 94, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 95, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 96, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 97, "name": "REFR_URLFRAGMENT", "comment": null}, "BR_LANG": {"type": "TEXT", "index": 98, "name": "BR_LANG", "comment": null}, "BR_VIEWWIDTH": {"type": "NUMBER", "index": 99, "name": "BR_VIEWWIDTH", "comment": null}, "BR_VIEWHEIGHT": {"type": "NUMBER", "index": 100, "name": "BR_VIEWHEIGHT", "comment": null}, "BR_COLORDEPTH": {"type": "TEXT", "index": 101, "name": "BR_COLORDEPTH", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 102, "name": "BR_RENDERENGINE", "comment": null}, "DOC_WIDTH": {"type": "NUMBER", "index": 103, "name": "DOC_WIDTH", "comment": null}, "DOC_HEIGHT": {"type": "NUMBER", "index": 104, "name": "DOC_HEIGHT", "comment": null}, "IAB__CATEGORY": {"type": "TEXT", "index": 105, "name": "IAB__CATEGORY", "comment": null}, "IAB__PRIMARY_IMPACT": {"type": "TEXT", "index": 106, "name": "IAB__PRIMARY_IMPACT", "comment": null}, "IAB__REASON": {"type": "TEXT", "index": 107, "name": "IAB__REASON", "comment": null}, "IAB__SPIDER_OR_ROBOT": {"type": "BOOLEAN", "index": 108, "name": "IAB__SPIDER_OR_ROBOT", "comment": null}, "YAUAA__DEVICE_NAME": {"type": "TEXT", "index": 109, "name": "YAUAA__DEVICE_NAME", "comment": null}, "YAUAA__AGENT_CLASS": {"type": "TEXT", "index": 110, "name": "YAUAA__AGENT_CLASS", "comment": null}, "YAUAA__AGENT_NAME": {"type": "TEXT", "index": 111, "name": "YAUAA__AGENT_NAME", "comment": null}, "YAUAA__AGENT_NAME_VERSION": {"type": "TEXT", "index": 112, "name": "YAUAA__AGENT_NAME_VERSION", "comment": null}, "YAUAA__AGENT_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 113, "name": "YAUAA__AGENT_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__AGENT_VERSION": {"type": "TEXT", "index": 114, "name": "YAUAA__AGENT_VERSION", "comment": null}, "YAUAA__AGENT_VERSION_MAJOR": {"type": "TEXT", "index": 115, "name": "YAUAA__AGENT_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_CLASS": {"type": "TEXT", "index": 116, "name": "YAUAA__LAYOUT_ENGINE_CLASS", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME": {"type": "TEXT", "index": 117, "name": "YAUAA__LAYOUT_ENGINE_NAME", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION": {"type": "TEXT", "index": 118, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 119, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION": {"type": "TEXT", "index": 120, "name": "YAUAA__LAYOUT_ENGINE_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR": {"type": "TEXT", "index": 121, "name": "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR", "comment": null}, "UA__DEVICE_FAMILY": {"type": "TEXT", "index": 122, "name": "UA__DEVICE_FAMILY", "comment": null}, "UA__OS_VERSION": {"type": "TEXT", "index": 123, "name": "UA__OS_VERSION", "comment": null}, "UA__OS_MAJOR": {"type": "TEXT", "index": 124, "name": "UA__OS_MAJOR", "comment": null}, "UA__OS_MINOR": {"type": "TEXT", "index": 125, "name": "UA__OS_MINOR", "comment": null}, "UA__OS_PATCH": {"type": "TEXT", "index": 126, "name": "UA__OS_PATCH", "comment": null}, "UA__OS_PATCH_MINOR": {"type": "TEXT", "index": 127, "name": "UA__OS_PATCH_MINOR", "comment": null}, "UA__USERAGENT_FAMILY": {"type": "TEXT", "index": 128, "name": "UA__USERAGENT_FAMILY", "comment": null}, "UA__USERAGENT_MAJOR": {"type": "TEXT", "index": 129, "name": "UA__USERAGENT_MAJOR", "comment": null}, "UA__USERAGENT_MINOR": {"type": "TEXT", "index": 130, "name": "UA__USERAGENT_MINOR", "comment": null}, "UA__USERAGENT_PATCH": {"type": "TEXT", "index": 131, "name": "UA__USERAGENT_PATCH", "comment": null}, "UA__USERAGENT_VERSION": {"type": "TEXT", "index": 132, "name": "UA__USERAGENT_VERSION", "comment": null}, "SCREEN_VIEW__NAME": {"type": "TEXT", "index": 133, "name": "SCREEN_VIEW__NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_ID": {"type": "TEXT", "index": 134, "name": "SCREEN_VIEW__PREVIOUS_ID", "comment": null}, "SCREEN_VIEW__PREVIOUS_NAME": {"type": "TEXT", "index": 135, "name": "SCREEN_VIEW__PREVIOUS_NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_TYPE": {"type": "TEXT", "index": 136, "name": "SCREEN_VIEW__PREVIOUS_TYPE", "comment": null}, "SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 137, "name": "SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 138, "name": "SCREEN_VIEW__TYPE", "comment": null}, "APP__BUILD": {"type": "TEXT", "index": 139, "name": "APP__BUILD", "comment": null}, "APP__VERSION": {"type": "TEXT", "index": 140, "name": "APP__VERSION", "comment": null}, "GEO__ALTITUDE": {"type": "FLOAT", "index": 141, "name": "GEO__ALTITUDE", "comment": null}, "GEO__ALTITUDE_ACCURACY": {"type": "FLOAT", "index": 142, "name": "GEO__ALTITUDE_ACCURACY", "comment": null}, "GEO__BEARING": {"type": "FLOAT", "index": 143, "name": "GEO__BEARING", "comment": null}, "GEO__LATITUDE": {"type": "FLOAT", "index": 144, "name": "GEO__LATITUDE", "comment": null}, "GEO__LATITUDE_LONGITUDE_ACCURACY": {"type": "FLOAT", "index": 145, "name": "GEO__LATITUDE_LONGITUDE_ACCURACY", "comment": null}, "GEO__LONGITUDE": {"type": "FLOAT", "index": 146, "name": "GEO__LONGITUDE", "comment": null}, "GEO__SPEED": {"type": "FLOAT", "index": 147, "name": "GEO__SPEED", "comment": null}, "SCREEN__FRAGMENT": {"type": "TEXT", "index": 148, "name": "SCREEN__FRAGMENT", "comment": null}, "SCREEN__TOP_VIEW_CONTROLLER": {"type": "TEXT", "index": 149, "name": "SCREEN__TOP_VIEW_CONTROLLER", "comment": null}, "SCREEN__VIEW_CONTROLLER": {"type": "TEXT", "index": 150, "name": "SCREEN__VIEW_CONTROLLER", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 151, "name": "USERAGENT", "comment": null}, "V_COLLECTOR": {"type": "TEXT", "index": 152, "name": "V_COLLECTOR", "comment": null}, "EVENT_ID2": {"type": "TEXT", "index": 153, "name": "EVENT_ID2", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 109, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 93184, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_views_this_run"}, "model.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected_stg": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_VIEWS_MOBILE_SCREEN_ENGAGEMENT_EXPECTED_STG", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"VIEW_ID": {"type": "TEXT", "index": 1, "name": "VIEW_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "SESSION_IDENTIFIER", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 3, "name": "USER_IDENTIFIER", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "FLOAT", "index": 4, "name": "ENGAGED_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "FLOAT", "index": 5, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "HORIZONTAL_PIXELS_SCROLLED": {"type": "NUMBER", "index": 6, "name": "HORIZONTAL_PIXELS_SCROLLED", "comment": null}, "VERTICAL_PIXELS_SCROLLED": {"type": "NUMBER", "index": 7, "name": "VERTICAL_PIXELS_SCROLLED", "comment": null}, "HORIZONTAL_PERCENTAGE_SCROLLED": {"type": "NUMBER", "index": 8, "name": "HORIZONTAL_PERCENTAGE_SCROLLED", "comment": null}, "VERTICAL_PERCENTAGE_SCROLLED": {"type": "NUMBER", "index": 9, "name": "VERTICAL_PERCENTAGE_SCROLLED", "comment": null}, "LAST_LIST_ITEM_INDEX": {"type": "NUMBER", "index": 10, "name": "LAST_LIST_ITEM_INDEX", "comment": null}, "LIST_ITEMS_COUNT": {"type": "NUMBER", "index": 11, "name": "LIST_ITEMS_COUNT", "comment": null}, "LIST_ITEMS_PERCENTAGE_SCROLLED": {"type": "NUMBER", "index": 12, "name": "LIST_ITEMS_PERCENTAGE_SCROLLED", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected_stg"}, "model.snowplow_unified_integration_tests.snowplow_unified_sessions_expected_stg": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_SESSIONS_EXPECTED_STG", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"EVENT_COUNTS": {"type": "TEXT", "index": 1, "name": "EVENT_COUNTS", "comment": null}, "CV_VIEW_PAGE_VOLUME": {"type": "NUMBER", "index": 2, "name": "CV_VIEW_PAGE_VOLUME", "comment": null}, "CV_VIEW_PAGE_EVENTS": {"type": "ARRAY", "index": 3, "name": "CV_VIEW_PAGE_EVENTS", "comment": null}, "CV_VIEW_PAGE_VALUES": {"type": "ARRAY", "index": 4, "name": "CV_VIEW_PAGE_VALUES", "comment": null}, "CV_VIEW_PAGE_TOTAL": {"type": "FLOAT", "index": 5, "name": "CV_VIEW_PAGE_TOTAL", "comment": null}, "CV_VIEW_PAGE_FIRST_CONVERSION": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CV_VIEW_PAGE_FIRST_CONVERSION", "comment": null}, "CV_VIEW_PAGE_CONVERTED": {"type": "BOOLEAN", "index": 7, "name": "CV_VIEW_PAGE_CONVERTED", "comment": null}, "CV__ALL_VOLUME": {"type": "NUMBER", "index": 8, "name": "CV__ALL_VOLUME", "comment": null}, "CV__ALL_TOTAL": {"type": "FLOAT", "index": 9, "name": "CV__ALL_TOTAL", "comment": null}, "FIRST_EVENT_NAME": {"type": "TEXT", "index": 10, "name": "FIRST_EVENT_NAME", "comment": null}, "LAST_EVENT_NAME": {"type": "TEXT", "index": 11, "name": "LAST_EVENT_NAME", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 12, "name": "SESSION_IDENTIFIER", "comment": null}, "SESSION__PREVIOUS_SESSION_ID": {"type": "TEXT", "index": 13, "name": "SESSION__PREVIOUS_SESSION_ID", "comment": null}, "USER_ID": {"type": "TEXT", "index": 14, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 15, "name": "USER_IDENTIFIER", "comment": null}, "STITCHED_USER_ID": {"type": "TEXT", "index": 16, "name": "STITCHED_USER_ID", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 17, "name": "NETWORK_USERID", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "END_TSTAMP", "comment": null}, "APP_ID": {"type": "TEXT", "index": 20, "name": "APP_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "DEVICE_IDENTIFIER": {"type": "TEXT", "index": 22, "name": "DEVICE_IDENTIFIER", "comment": null}, "DEVICE_CATEGORY": {"type": "TEXT", "index": 23, "name": "DEVICE_CATEGORY", "comment": null}, "DEVICE_SESSION_INDEX": {"type": "NUMBER", "index": 24, "name": "DEVICE_SESSION_INDEX", "comment": null}, "OS_VERSION": {"type": "TEXT", "index": 25, "name": "OS_VERSION", "comment": null}, "OS_TYPE": {"type": "TEXT", "index": 26, "name": "OS_TYPE", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 27, "name": "OS_TIMEZONE", "comment": null}, "SCREEN_RESOLUTION": {"type": "TEXT", "index": 28, "name": "SCREEN_RESOLUTION", "comment": null}, "YAUAA__DEVICE_CLASS": {"type": "TEXT", "index": 29, "name": "YAUAA__DEVICE_CLASS", "comment": null}, "YAUAA__DEVICE_VERSION": {"type": "TEXT", "index": 30, "name": "YAUAA__DEVICE_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_VERSION": {"type": "TEXT", "index": 31, "name": "YAUAA__OPERATING_SYSTEM_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_CLASS": {"type": "TEXT", "index": 32, "name": "YAUAA__OPERATING_SYSTEM_CLASS", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME": {"type": "TEXT", "index": 33, "name": "YAUAA__OPERATING_SYSTEM_NAME", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME_VERSION": {"type": "TEXT", "index": 34, "name": "YAUAA__OPERATING_SYSTEM_NAME_VERSION", "comment": null}, "MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 35, "name": "MOBILE__DEVICE_MANUFACTURER", "comment": null}, "MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 36, "name": "MOBILE__DEVICE_MODEL", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 37, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 38, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 39, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 40, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 41, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__CARRIER": {"type": "TEXT", "index": 42, "name": "MOBILE__CARRIER", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 43, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 44, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 45, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 46, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 47, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 48, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 49, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 50, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 51, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 52, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 53, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 54, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 55, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "NUMBER", "index": 56, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 57, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 58, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 59, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "FIRST_GEO_COUNTRY": {"type": "TEXT", "index": 60, "name": "FIRST_GEO_COUNTRY", "comment": null}, "FIRST_GEO_REGION_NAME": {"type": "TEXT", "index": 61, "name": "FIRST_GEO_REGION_NAME", "comment": null}, "FIRST_GEO_CITY": {"type": "TEXT", "index": 62, "name": "FIRST_GEO_CITY", "comment": null}, "FIRST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 63, "name": "FIRST_GEO_COUNTRY_NAME", "comment": null}, "FIRST_GEO_CONTINENT": {"type": "TEXT", "index": 64, "name": "FIRST_GEO_CONTINENT", "comment": null}, "LAST_GEO_COUNTRY": {"type": "TEXT", "index": 65, "name": "LAST_GEO_COUNTRY", "comment": null}, "LAST_GEO_REGION_NAME": {"type": "TEXT", "index": 66, "name": "LAST_GEO_REGION_NAME", "comment": null}, "LAST_GEO_CITY": {"type": "TEXT", "index": 67, "name": "LAST_GEO_CITY", "comment": null}, "LAST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 68, "name": "LAST_GEO_COUNTRY_NAME", "comment": null}, "LAST_GEO_CONTINENT": {"type": "TEXT", "index": 69, "name": "LAST_GEO_CONTINENT", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 70, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 71, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 72, "name": "GEO_LONGITUDE", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 73, "name": "GEO_TIMEZONE", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 74, "name": "USER_IPADDRESS", "comment": null}, "VIEWS": {"type": "NUMBER", "index": 75, "name": "VIEWS", "comment": null}, "TOTAL_EVENTS": {"type": "NUMBER", "index": 76, "name": "TOTAL_EVENTS", "comment": null}, "IS_ENGAGED": {"type": "BOOLEAN", "index": 77, "name": "IS_ENGAGED", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 78, "name": "ENGAGED_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "NUMBER", "index": 79, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "SCREEN_NAMES_VIEWED": {"type": "NUMBER", "index": 80, "name": "SCREEN_NAMES_VIEWED", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 81, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 82, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 83, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 84, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 85, "name": "MKT_CAMPAIGN", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 86, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 87, "name": "MKT_NETWORK", "comment": null}, "DEFAULT_CHANNEL_GROUP": {"type": "TEXT", "index": 88, "name": "DEFAULT_CHANNEL_GROUP", "comment": null}, "MKT_SOURCE_PLATFORM": {"type": "TEXT", "index": 89, "name": "MKT_SOURCE_PLATFORM", "comment": null}, "FIRST_PAGE_URL": {"type": "TEXT", "index": 90, "name": "FIRST_PAGE_URL", "comment": null}, "LAST_PAGE_URL": {"type": "TEXT", "index": 91, "name": "LAST_PAGE_URL", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 92, "name": "PAGE_REFERRER", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 93, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 94, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 95, "name": "REFR_TERM", "comment": null}, "FIRST_PAGE_TITLE": {"type": "TEXT", "index": 96, "name": "FIRST_PAGE_TITLE", "comment": null}, "FIRST_PAGE_URLSCHEME": {"type": "TEXT", "index": 97, "name": "FIRST_PAGE_URLSCHEME", "comment": null}, "FIRST_PAGE_URLHOST": {"type": "TEXT", "index": 98, "name": "FIRST_PAGE_URLHOST", "comment": null}, "FIRST_PAGE_URLPATH": {"type": "TEXT", "index": 99, "name": "FIRST_PAGE_URLPATH", "comment": null}, "FIRST_PAGE_URLQUERY": {"type": "TEXT", "index": 100, "name": "FIRST_PAGE_URLQUERY", "comment": null}, "FIRST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 101, "name": "FIRST_PAGE_URLFRAGMENT", "comment": null}, "LAST_PAGE_TITLE": {"type": "TEXT", "index": 102, "name": "LAST_PAGE_TITLE", "comment": null}, "LAST_PAGE_URLSCHEME": {"type": "TEXT", "index": 103, "name": "LAST_PAGE_URLSCHEME", "comment": null}, "LAST_PAGE_URLHOST": {"type": "TEXT", "index": 104, "name": "LAST_PAGE_URLHOST", "comment": null}, "LAST_PAGE_URLPATH": {"type": "TEXT", "index": 105, "name": "LAST_PAGE_URLPATH", "comment": null}, "LAST_PAGE_URLQUERY": {"type": "TEXT", "index": 106, "name": "LAST_PAGE_URLQUERY", "comment": null}, "LAST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 107, "name": "LAST_PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 108, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 109, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 110, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 111, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 112, "name": "REFR_URLFRAGMENT", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 113, "name": "BR_RENDERENGINE", "comment": null}, "FIRST_BR_LANG": {"type": "TEXT", "index": 114, "name": "FIRST_BR_LANG", "comment": null}, "FIRST_BR_LANG_NAME": {"type": "TEXT", "index": 115, "name": "FIRST_BR_LANG_NAME", "comment": null}, "LAST_BR_LANG": {"type": "TEXT", "index": 116, "name": "LAST_BR_LANG", "comment": null}, "LAST_BR_LANG_NAME": {"type": "TEXT", "index": 117, "name": "LAST_BR_LANG_NAME", "comment": null}, "IAB__CATEGORY": {"type": "TEXT", "index": 118, "name": "IAB__CATEGORY", "comment": null}, "IAB__PRIMARY_IMPACT": {"type": "TEXT", "index": 119, "name": "IAB__PRIMARY_IMPACT", "comment": null}, "IAB__REASON": {"type": "TEXT", "index": 120, "name": "IAB__REASON", "comment": null}, "IAB__SPIDER_OR_ROBOT": {"type": "BOOLEAN", "index": 121, "name": "IAB__SPIDER_OR_ROBOT", "comment": null}, "YAUAA__DEVICE_NAME": {"type": "TEXT", "index": 122, "name": "YAUAA__DEVICE_NAME", "comment": null}, "YAUAA__AGENT_CLASS": {"type": "TEXT", "index": 123, "name": "YAUAA__AGENT_CLASS", "comment": null}, "YAUAA__AGENT_NAME": {"type": "TEXT", "index": 124, "name": "YAUAA__AGENT_NAME", "comment": null}, "YAUAA__AGENT_NAME_VERSION": {"type": "TEXT", "index": 125, "name": "YAUAA__AGENT_NAME_VERSION", "comment": null}, "YAUAA__AGENT_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 126, "name": "YAUAA__AGENT_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__AGENT_VERSION": {"type": "TEXT", "index": 127, "name": "YAUAA__AGENT_VERSION", "comment": null}, "YAUAA__AGENT_VERSION_MAJOR": {"type": "TEXT", "index": 128, "name": "YAUAA__AGENT_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_CLASS": {"type": "TEXT", "index": 129, "name": "YAUAA__LAYOUT_ENGINE_CLASS", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME": {"type": "TEXT", "index": 130, "name": "YAUAA__LAYOUT_ENGINE_NAME", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION": {"type": "TEXT", "index": 131, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 132, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION": {"type": "TEXT", "index": 133, "name": "YAUAA__LAYOUT_ENGINE_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR": {"type": "TEXT", "index": 134, "name": "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR", "comment": null}, "UA__DEVICE_FAMILY": {"type": "TEXT", "index": 135, "name": "UA__DEVICE_FAMILY", "comment": null}, "UA__OS_VERSION": {"type": "TEXT", "index": 136, "name": "UA__OS_VERSION", "comment": null}, "UA__OS_MAJOR": {"type": "NUMBER", "index": 137, "name": "UA__OS_MAJOR", "comment": null}, "UA__OS_MINOR": {"type": "NUMBER", "index": 138, "name": "UA__OS_MINOR", "comment": null}, "UA__OS_PATCH": {"type": "NUMBER", "index": 139, "name": "UA__OS_PATCH", "comment": null}, "UA__OS_PATCH_MINOR": {"type": "NUMBER", "index": 140, "name": "UA__OS_PATCH_MINOR", "comment": null}, "UA__USERAGENT_FAMILY": {"type": "TEXT", "index": 141, "name": "UA__USERAGENT_FAMILY", "comment": null}, "UA__USERAGENT_MAJOR": {"type": "NUMBER", "index": 142, "name": "UA__USERAGENT_MAJOR", "comment": null}, "UA__USERAGENT_MINOR": {"type": "NUMBER", "index": 143, "name": "UA__USERAGENT_MINOR", "comment": null}, "UA__USERAGENT_PATCH": {"type": "NUMBER", "index": 144, "name": "UA__USERAGENT_PATCH", "comment": null}, "UA__USERAGENT_VERSION": {"type": "TEXT", "index": 145, "name": "UA__USERAGENT_VERSION", "comment": null}, "FIRST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 146, "name": "FIRST_SCREEN_VIEW__NAME", "comment": null}, "FIRST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 147, "name": "FIRST_SCREEN_VIEW__TYPE", "comment": null}, "LAST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 148, "name": "LAST_SCREEN_VIEW__NAME", "comment": null}, "LAST_SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 149, "name": "LAST_SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "LAST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 150, "name": "LAST_SCREEN_VIEW__TYPE", "comment": null}, "SCREEN_VIEW__PREVIOUS_ID": {"type": "TEXT", "index": 151, "name": "SCREEN_VIEW__PREVIOUS_ID", "comment": null}, "SCREEN_VIEW__PREVIOUS_NAME": {"type": "TEXT", "index": 152, "name": "SCREEN_VIEW__PREVIOUS_NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_TYPE": {"type": "TEXT", "index": 153, "name": "SCREEN_VIEW__PREVIOUS_TYPE", "comment": null}, "FIRST_APP__BUILD": {"type": "TEXT", "index": 154, "name": "FIRST_APP__BUILD", "comment": null}, "FIRST_APP__VERSION": {"type": "TEXT", "index": 155, "name": "FIRST_APP__VERSION", "comment": null}, "FIRST_GEO__ALTITUDE": {"type": "FLOAT", "index": 156, "name": "FIRST_GEO__ALTITUDE", "comment": null}, "FIRST_GEO__ALTITUDE_ACCURACY": {"type": "FLOAT", "index": 157, "name": "FIRST_GEO__ALTITUDE_ACCURACY", "comment": null}, "FIRST_GEO__BEARING": {"type": "FLOAT", "index": 158, "name": "FIRST_GEO__BEARING", "comment": null}, "FIRST_GEO__LATITUDE": {"type": "FLOAT", "index": 159, "name": "FIRST_GEO__LATITUDE", "comment": null}, "FIRST_GEO__LATITUDE_LONGITUDE_ACCURACY": {"type": "FLOAT", "index": 160, "name": "FIRST_GEO__LATITUDE_LONGITUDE_ACCURACY", "comment": null}, "FIRST_GEO__LONGITUDE": {"type": "FLOAT", "index": 161, "name": "FIRST_GEO__LONGITUDE", "comment": null}, "FIRST_GEO__SPEED": {"type": "FLOAT", "index": 162, "name": "FIRST_GEO__SPEED", "comment": null}, "APP_ERRORS": {"type": "NUMBER", "index": 163, "name": "APP_ERRORS", "comment": null}, "FATAL_APP_ERRORS": {"type": "NUMBER", "index": 164, "name": "FATAL_APP_ERRORS", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 165, "name": "USERAGENT", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 166, "name": "EVENT_ID", "comment": null}, "EVENT_ID2": {"type": "TEXT", "index": 167, "name": "EVENT_ID2", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_sessions_expected_stg"}, "model.snowplow_unified.snowplow_unified_app_errors_this_run": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SCRATCH", "name": "SNOWPLOW_UNIFIED_APP_ERRORS_THIS_RUN", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"EVENT_ID": {"type": "TEXT", "index": 1, "name": "EVENT_ID", "comment": null}, "APP_ID": {"type": "TEXT", "index": 2, "name": "APP_ID", "comment": null}, "USER_ID": {"type": "TEXT", "index": 3, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 4, "name": "USER_IDENTIFIER", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 5, "name": "NETWORK_USERID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 6, "name": "SESSION_IDENTIFIER", "comment": null}, "SESSION_INDEX": {"type": "NUMBER", "index": 7, "name": "SESSION_INDEX", "comment": null}, "PREVIOUS_SESSION_ID": {"type": "TEXT", "index": 8, "name": "PREVIOUS_SESSION_ID", "comment": null}, "SESSION_FIRST_EVENT_ID": {"type": "TEXT", "index": 9, "name": "SESSION_FIRST_EVENT_ID", "comment": null}, "DVCE_CREATED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "DVCE_CREATED_TSTAMP", "comment": null}, "COLLECTOR_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "COLLECTOR_TSTAMP", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "DERIVED_TSTAMP", "comment": null}, "MODEL_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODEL_TSTAMP", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 14, "name": "PLATFORM", "comment": null}, "DVCE_SCREENWIDTH": {"type": "NUMBER", "index": 15, "name": "DVCE_SCREENWIDTH", "comment": null}, "DVCE_SCREENHEIGHT": {"type": "NUMBER", "index": 16, "name": "DVCE_SCREENHEIGHT", "comment": null}, "DEVICE_MANUFACTURER": {"type": "TEXT", "index": 17, "name": "DEVICE_MANUFACTURER", "comment": null}, "DEVICE_MODEL": {"type": "TEXT", "index": 18, "name": "DEVICE_MODEL", "comment": null}, "OS_TYPE": {"type": "TEXT", "index": 19, "name": "OS_TYPE", "comment": null}, "OS_VERSION": {"type": "TEXT", "index": 20, "name": "OS_VERSION", "comment": null}, "ANDROID_IDFA": {"type": "TEXT", "index": 21, "name": "ANDROID_IDFA", "comment": null}, "APPLE_IDFA": {"type": "TEXT", "index": 22, "name": "APPLE_IDFA", "comment": null}, "APPLE_IDFV": {"type": "TEXT", "index": 23, "name": "APPLE_IDFV", "comment": null}, "OPEN_IDFA": {"type": "TEXT", "index": 24, "name": "OPEN_IDFA", "comment": null}, "SCREEN_ID": {"type": "TEXT", "index": 25, "name": "SCREEN_ID", "comment": null}, "SCREEN_NAME": {"type": "TEXT", "index": 26, "name": "SCREEN_NAME", "comment": null}, "SCREEN_ACTIVITY": {"type": "TEXT", "index": 27, "name": "SCREEN_ACTIVITY", "comment": null}, "SCREEN_FRAGMENT": {"type": "TEXT", "index": 28, "name": "SCREEN_FRAGMENT", "comment": null}, "SCREEN_TOP_VIEW_CONTROLLER": {"type": "TEXT", "index": 29, "name": "SCREEN_TOP_VIEW_CONTROLLER", "comment": null}, "SCREEN_TYPE": {"type": "TEXT", "index": 30, "name": "SCREEN_TYPE", "comment": null}, "SCREEN_VIEW_CONTROLLER": {"type": "TEXT", "index": 31, "name": "SCREEN_VIEW_CONTROLLER", "comment": null}, "DEVICE_LATITUDE": {"type": "FLOAT", "index": 32, "name": "DEVICE_LATITUDE", "comment": null}, "DEVICE_LONGITUDE": {"type": "FLOAT", "index": 33, "name": "DEVICE_LONGITUDE", "comment": null}, "DEVICE_LATITUDE_LONGITUDE_ACCURACY": {"type": "FLOAT", "index": 34, "name": "DEVICE_LATITUDE_LONGITUDE_ACCURACY", "comment": null}, "DEVICE_ALTITUDE": {"type": "FLOAT", "index": 35, "name": "DEVICE_ALTITUDE", "comment": null}, "DEVICE_ALTITUDE_ACCURACY": {"type": "FLOAT", "index": 36, "name": "DEVICE_ALTITUDE_ACCURACY", "comment": null}, "DEVICE_BEARING": {"type": "FLOAT", "index": 37, "name": "DEVICE_BEARING", "comment": null}, "DEVICE_SPEED": {"type": "FLOAT", "index": 38, "name": "DEVICE_SPEED", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 39, "name": "GEO_COUNTRY", "comment": null}, "GEO_REGION": {"type": "TEXT", "index": 40, "name": "GEO_REGION", "comment": null}, "GEO_CITY": {"type": "TEXT", "index": 41, "name": "GEO_CITY", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 42, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 43, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 44, "name": "GEO_LONGITUDE", "comment": null}, "GEO_REGION_NAME": {"type": "TEXT", "index": 45, "name": "GEO_REGION_NAME", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 46, "name": "GEO_TIMEZONE", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 47, "name": "USER_IPADDRESS", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 48, "name": "USERAGENT", "comment": null}, "CARRIER": {"type": "TEXT", "index": 49, "name": "CARRIER", "comment": null}, "NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 50, "name": "NETWORK_TECHNOLOGY", "comment": null}, "NETWORK_TYPE": {"type": "TEXT", "index": 51, "name": "NETWORK_TYPE", "comment": null}, "BUILD": {"type": "TEXT", "index": 52, "name": "BUILD", "comment": null}, "VERSION": {"type": "TEXT", "index": 53, "name": "VERSION", "comment": null}, "EVENT_INDEX_IN_SESSION": {"type": "NUMBER", "index": 54, "name": "EVENT_INDEX_IN_SESSION", "comment": null}, "MESSAGE": {"type": "TEXT", "index": 55, "name": "MESSAGE", "comment": null}, "PROGRAMMING_LANGUAGE": {"type": "TEXT", "index": 56, "name": "PROGRAMMING_LANGUAGE", "comment": null}, "CLASS_NAME": {"type": "TEXT", "index": 57, "name": "CLASS_NAME", "comment": null}, "EXCEPTION_NAME": {"type": "TEXT", "index": 58, "name": "EXCEPTION_NAME", "comment": null}, "IS_FATAL": {"type": "BOOLEAN", "index": 59, "name": "IS_FATAL", "comment": null}, "LINE_NUMBER": {"type": "NUMBER", "index": 60, "name": "LINE_NUMBER", "comment": null}, "STACK_TRACE": {"type": "TEXT", "index": 61, "name": "STACK_TRACE", "comment": null}, "THREAD_ID": {"type": "NUMBER", "index": 62, "name": "THREAD_ID", "comment": null}, "THREAD_NAME": {"type": "TEXT", "index": 63, "name": "THREAD_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_app_errors_this_run"}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected_stg": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_SCOPE_STATUS_EXPECTED_STG", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"SCOPE": {"type": "TEXT", "index": 1, "name": "SCOPE", "comment": null}, "TOTAL_CONSENT": {"type": "NUMBER", "index": 2, "name": "TOTAL_CONSENT", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected_stg"}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected_stg": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_CMP_STATS_EXPECTED_STG", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"EVENT_ID": {"type": "TEXT", "index": 1, "name": "EVENT_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "USER_IDENTIFIER", "comment": null}, "VIEW_ID": {"type": "TEXT", "index": 3, "name": "VIEW_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 4, "name": "SESSION_IDENTIFIER", "comment": null}, "CMP_LOAD_TIME": {"type": "FLOAT", "index": 5, "name": "CMP_LOAD_TIME", "comment": null}, "CMP_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CMP_TSTAMP", "comment": null}, "FIRST_CONSENT_EVENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "FIRST_CONSENT_EVENT_TSTAMP", "comment": null}, "FIRST_CONSENT_EVENT_TYPE": {"type": "TEXT", "index": 8, "name": "FIRST_CONSENT_EVENT_TYPE", "comment": null}, "CMP_INTERACTION_TIME": {"type": "FLOAT", "index": 9, "name": "CMP_INTERACTION_TIME", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected_stg"}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_actual": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_SCOPE_STATUS_ACTUAL", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"SCOPE": {"type": "TEXT", "index": 1, "name": "SCOPE", "comment": null}, "TOTAL_CONSENT": {"type": "NUMBER", "index": 2, "name": "TOTAL_CONSENT", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_actual"}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected_stg": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_USERS_EXPECTED_STG", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"USER_IDENTIFIER": {"type": "TEXT", "index": 1, "name": "USER_IDENTIFIER", "comment": null}, "USER_ID": {"type": "TEXT", "index": 2, "name": "USER_ID", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 3, "name": "GEO_COUNTRY", "comment": null}, "CMP_EVENTS": {"type": "NUMBER", "index": 4, "name": "CMP_EVENTS", "comment": null}, "CONSENT_EVENTS": {"type": "NUMBER", "index": 5, "name": "CONSENT_EVENTS", "comment": null}, "LAST_CMP_EVENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "LAST_CMP_EVENT_TSTAMP", "comment": null}, "LAST_CONSENT_EVENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "LAST_CONSENT_EVENT_TSTAMP", "comment": null}, "LAST_CONSENT_EVENT_TYPE": {"type": "TEXT", "index": 8, "name": "LAST_CONSENT_EVENT_TYPE", "comment": null}, "LAST_CONSENT_SCOPES": {"type": "TEXT", "index": 9, "name": "LAST_CONSENT_SCOPES", "comment": null}, "LAST_CONSENT_VERSION": {"type": "TEXT", "index": 10, "name": "LAST_CONSENT_VERSION", "comment": null}, "LAST_CONSENT_URL": {"type": "TEXT", "index": 11, "name": "LAST_CONSENT_URL", "comment": null}, "LAST_DOMAINS_APPLIED": {"type": "TEXT", "index": 12, "name": "LAST_DOMAINS_APPLIED", "comment": null}, "LAST_PROCESSED_EVENT": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "LAST_PROCESSED_EVENT", "comment": null}, "IS_LATEST_VERSION": {"type": "BOOLEAN", "index": 14, "name": "IS_LATEST_VERSION", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected_stg"}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected_stg": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_VERSIONS_EXPECTED_STG", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"CONSENT_VERSION": {"type": "TEXT", "index": 1, "name": "CONSENT_VERSION", "comment": null}, "VERSION_START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "VERSION_START_TSTAMP", "comment": null}, "CONSENT_SCOPES": {"type": "TEXT", "index": 3, "name": "CONSENT_SCOPES", "comment": null}, "CONSENT_URL": {"type": "TEXT", "index": 4, "name": "CONSENT_URL", "comment": null}, "DOMAINS_APPLIED": {"type": "TEXT", "index": 5, "name": "DOMAINS_APPLIED", "comment": null}, "IS_LATEST_VERSION": {"type": "BOOLEAN", "index": 6, "name": "IS_LATEST_VERSION", "comment": null}, "LAST_ALLOW_ALL_EVENT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "LAST_ALLOW_ALL_EVENT", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected_stg"}, "seed.snowplow_unified_integration_tests.snowplow_unified_screen_view_event": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_SCREEN_VIEW_EVENT", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"ROOT_TSTAMP": {"type": "TEXT", "index": 1, "name": "ROOT_TSTAMP", "comment": null}, "ROOT_ID": {"type": "TEXT", "index": 2, "name": "ROOT_ID", "comment": null}, "ID": {"type": "TEXT", "index": 3, "name": "ID", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 188, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 13824, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_screen_view_event"}, "seed.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_visible": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_CMP_VISIBLE", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"ROOT_ID": {"type": "TEXT", "index": 1, "name": "ROOT_ID", "comment": null}, "ROOT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "ROOT_TSTAMP", "comment": null}, "ELAPSED_TIME": {"type": "FLOAT", "index": 3, "name": "ELAPSED_TIME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 34, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 3072, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_visible"}, "model.snowplow_unified.snowplow_unified_base_sessions_this_run": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SCRATCH", "name": "SNOWPLOW_UNIFIED_BASE_SESSIONS_THIS_RUN", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"SESSION_IDENTIFIER": {"type": "TEXT", "index": 1, "name": "SESSION_IDENTIFIER", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "USER_IDENTIFIER", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "END_TSTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 48, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 8192, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_base_sessions_this_run"}, "model.snowplow_unified_integration_tests.test_late_enabled_contexts": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "TEST_LATE_ENABLED_CONTEXTS", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"SESSION_IDENTIFIER": {"type": "TEXT", "index": 1, "name": "SESSION_IDENTIFIER", "comment": null}, "APP_ID": {"type": "TEXT", "index": 2, "name": "APP_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 3, "name": "PLATFORM", "comment": null}, "ETL_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "ETL_TSTAMP", "comment": null}, "COLLECTOR_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "COLLECTOR_TSTAMP", "comment": null}, "DVCE_CREATED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "DVCE_CREATED_TSTAMP", "comment": null}, "EVENT": {"type": "TEXT", "index": 7, "name": "EVENT", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 8, "name": "EVENT_ID", "comment": null}, "TXN_ID": {"type": "NUMBER", "index": 9, "name": "TXN_ID", "comment": null}, "NAME_TRACKER": {"type": "TEXT", "index": 10, "name": "NAME_TRACKER", "comment": null}, "V_TRACKER": {"type": "TEXT", "index": 11, "name": "V_TRACKER", "comment": null}, "V_COLLECTOR": {"type": "TEXT", "index": 12, "name": "V_COLLECTOR", "comment": null}, "V_ETL": {"type": "TEXT", "index": 13, "name": "V_ETL", "comment": null}, "USER_ID": {"type": "TEXT", "index": 14, "name": "USER_ID", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 15, "name": "USER_IPADDRESS", "comment": null}, "USER_FINGERPRINT": {"type": "TEXT", "index": 16, "name": "USER_FINGERPRINT", "comment": null}, "DOMAIN_USERID": {"type": "TEXT", "index": 17, "name": "DOMAIN_USERID", "comment": null}, "DOMAIN_SESSIONIDX": {"type": "NUMBER", "index": 18, "name": "DOMAIN_SESSIONIDX", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 19, "name": "NETWORK_USERID", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 20, "name": "GEO_COUNTRY", "comment": null}, "GEO_REGION": {"type": "TEXT", "index": 21, "name": "GEO_REGION", "comment": null}, "GEO_CITY": {"type": "TEXT", "index": 22, "name": "GEO_CITY", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 23, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 24, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 25, "name": "GEO_LONGITUDE", "comment": null}, "GEO_REGION_NAME": {"type": "TEXT", "index": 26, "name": "GEO_REGION_NAME", "comment": null}, "IP_ISP": {"type": "TEXT", "index": 27, "name": "IP_ISP", "comment": null}, "IP_ORGANIZATION": {"type": "TEXT", "index": 28, "name": "IP_ORGANIZATION", "comment": null}, "IP_DOMAIN": {"type": "TEXT", "index": 29, "name": "IP_DOMAIN", "comment": null}, "IP_NETSPEED": {"type": "TEXT", "index": 30, "name": "IP_NETSPEED", "comment": null}, "PAGE_URL": {"type": "TEXT", "index": 31, "name": "PAGE_URL", "comment": null}, "PAGE_TITLE": {"type": "TEXT", "index": 32, "name": "PAGE_TITLE", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 33, "name": "PAGE_REFERRER", "comment": null}, "PAGE_URLSCHEME": {"type": "TEXT", "index": 34, "name": "PAGE_URLSCHEME", "comment": null}, "PAGE_URLHOST": {"type": "TEXT", "index": 35, "name": "PAGE_URLHOST", "comment": null}, "PAGE_URLPORT": {"type": "NUMBER", "index": 36, "name": "PAGE_URLPORT", "comment": null}, "PAGE_URLPATH": {"type": "TEXT", "index": 37, "name": "PAGE_URLPATH", "comment": null}, "PAGE_URLQUERY": {"type": "TEXT", "index": 38, "name": "PAGE_URLQUERY", "comment": null}, "PAGE_URLFRAGMENT": {"type": "TEXT", "index": 39, "name": "PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 40, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 41, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPORT": {"type": "NUMBER", "index": 42, "name": "REFR_URLPORT", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 43, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 44, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 45, "name": "REFR_URLFRAGMENT", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 46, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 47, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 48, "name": "REFR_TERM", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 49, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 50, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 51, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 52, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 53, "name": "MKT_CAMPAIGN", "comment": null}, "SE_CATEGORY": {"type": "TEXT", "index": 54, "name": "SE_CATEGORY", "comment": null}, "SE_ACTION": {"type": "TEXT", "index": 55, "name": "SE_ACTION", "comment": null}, "SE_LABEL": {"type": "TEXT", "index": 56, "name": "SE_LABEL", "comment": null}, "SE_PROPERTY": {"type": "TEXT", "index": 57, "name": "SE_PROPERTY", "comment": null}, "SE_VALUE": {"type": "FLOAT", "index": 58, "name": "SE_VALUE", "comment": null}, "TR_ORDERID": {"type": "TEXT", "index": 59, "name": "TR_ORDERID", "comment": null}, "TR_AFFILIATION": {"type": "TEXT", "index": 60, "name": "TR_AFFILIATION", "comment": null}, "TR_TOTAL": {"type": "FLOAT", "index": 61, "name": "TR_TOTAL", "comment": null}, "TR_TAX": {"type": "FLOAT", "index": 62, "name": "TR_TAX", "comment": null}, "TR_SHIPPING": {"type": "FLOAT", "index": 63, "name": "TR_SHIPPING", "comment": null}, "TR_CITY": {"type": "TEXT", "index": 64, "name": "TR_CITY", "comment": null}, "TR_STATE": {"type": "TEXT", "index": 65, "name": "TR_STATE", "comment": null}, "TR_COUNTRY": {"type": "TEXT", "index": 66, "name": "TR_COUNTRY", "comment": null}, "TI_ORDERID": {"type": "TEXT", "index": 67, "name": "TI_ORDERID", "comment": null}, "TI_SKU": {"type": "TEXT", "index": 68, "name": "TI_SKU", "comment": null}, "TI_NAME": {"type": "TEXT", "index": 69, "name": "TI_NAME", "comment": null}, "TI_CATEGORY": {"type": "TEXT", "index": 70, "name": "TI_CATEGORY", "comment": null}, "TI_PRICE": {"type": "FLOAT", "index": 71, "name": "TI_PRICE", "comment": null}, "TI_QUANTITY": {"type": "NUMBER", "index": 72, "name": "TI_QUANTITY", "comment": null}, "PP_XOFFSET_MIN": {"type": "NUMBER", "index": 73, "name": "PP_XOFFSET_MIN", "comment": null}, "PP_XOFFSET_MAX": {"type": "NUMBER", "index": 74, "name": "PP_XOFFSET_MAX", "comment": null}, "PP_YOFFSET_MIN": {"type": "NUMBER", "index": 75, "name": "PP_YOFFSET_MIN", "comment": null}, "PP_YOFFSET_MAX": {"type": "NUMBER", "index": 76, "name": "PP_YOFFSET_MAX", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 77, "name": "USERAGENT", "comment": null}, "BR_NAME": {"type": "TEXT", "index": 78, "name": "BR_NAME", "comment": null}, "BR_FAMILY": {"type": "TEXT", "index": 79, "name": "BR_FAMILY", "comment": null}, "BR_VERSION": {"type": "TEXT", "index": 80, "name": "BR_VERSION", "comment": null}, "BR_TYPE": {"type": "TEXT", "index": 81, "name": "BR_TYPE", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 82, "name": "BR_RENDERENGINE", "comment": null}, "BR_LANG": {"type": "TEXT", "index": 83, "name": "BR_LANG", "comment": null}, "BR_FEATURES_PDF": {"type": "BOOLEAN", "index": 84, "name": "BR_FEATURES_PDF", "comment": null}, "BR_FEATURES_FLASH": {"type": "BOOLEAN", "index": 85, "name": "BR_FEATURES_FLASH", "comment": null}, "BR_FEATURES_JAVA": {"type": "BOOLEAN", "index": 86, "name": "BR_FEATURES_JAVA", "comment": null}, "BR_FEATURES_DIRECTOR": {"type": "BOOLEAN", "index": 87, "name": "BR_FEATURES_DIRECTOR", "comment": null}, "BR_FEATURES_QUICKTIME": {"type": "BOOLEAN", "index": 88, "name": "BR_FEATURES_QUICKTIME", "comment": null}, "BR_FEATURES_REALPLAYER": {"type": "BOOLEAN", "index": 89, "name": "BR_FEATURES_REALPLAYER", "comment": null}, "BR_FEATURES_WINDOWSMEDIA": {"type": "BOOLEAN", "index": 90, "name": "BR_FEATURES_WINDOWSMEDIA", "comment": null}, "BR_FEATURES_GEARS": {"type": "BOOLEAN", "index": 91, "name": "BR_FEATURES_GEARS", "comment": null}, "BR_FEATURES_SILVERLIGHT": {"type": "BOOLEAN", "index": 92, "name": "BR_FEATURES_SILVERLIGHT", "comment": null}, "BR_COOKIES": {"type": "BOOLEAN", "index": 93, "name": "BR_COOKIES", "comment": null}, "BR_COLORDEPTH": {"type": "TEXT", "index": 94, "name": "BR_COLORDEPTH", "comment": null}, "BR_VIEWWIDTH": {"type": "NUMBER", "index": 95, "name": "BR_VIEWWIDTH", "comment": null}, "BR_VIEWHEIGHT": {"type": "NUMBER", "index": 96, "name": "BR_VIEWHEIGHT", "comment": null}, "OS_NAME": {"type": "TEXT", "index": 97, "name": "OS_NAME", "comment": null}, "OS_FAMILY": {"type": "TEXT", "index": 98, "name": "OS_FAMILY", "comment": null}, "OS_MANUFACTURER": {"type": "TEXT", "index": 99, "name": "OS_MANUFACTURER", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 100, "name": "OS_TIMEZONE", "comment": null}, "DVCE_TYPE": {"type": "TEXT", "index": 101, "name": "DVCE_TYPE", "comment": null}, "DVCE_ISMOBILE": {"type": "BOOLEAN", "index": 102, "name": "DVCE_ISMOBILE", "comment": null}, "DVCE_SCREENWIDTH": {"type": "NUMBER", "index": 103, "name": "DVCE_SCREENWIDTH", "comment": null}, "DVCE_SCREENHEIGHT": {"type": "NUMBER", "index": 104, "name": "DVCE_SCREENHEIGHT", "comment": null}, "DOC_CHARSET": {"type": "TEXT", "index": 105, "name": "DOC_CHARSET", "comment": null}, "DOC_WIDTH": {"type": "NUMBER", "index": 106, "name": "DOC_WIDTH", "comment": null}, "DOC_HEIGHT": {"type": "NUMBER", "index": 107, "name": "DOC_HEIGHT", "comment": null}, "TR_CURRENCY": {"type": "TEXT", "index": 108, "name": "TR_CURRENCY", "comment": null}, "TR_TOTAL_BASE": {"type": "FLOAT", "index": 109, "name": "TR_TOTAL_BASE", "comment": null}, "TR_TAX_BASE": {"type": "FLOAT", "index": 110, "name": "TR_TAX_BASE", "comment": null}, "TR_SHIPPING_BASE": {"type": "FLOAT", "index": 111, "name": "TR_SHIPPING_BASE", "comment": null}, "TI_CURRENCY": {"type": "TEXT", "index": 112, "name": "TI_CURRENCY", "comment": null}, "TI_PRICE_BASE": {"type": "FLOAT", "index": 113, "name": "TI_PRICE_BASE", "comment": null}, "BASE_CURRENCY": {"type": "TEXT", "index": 114, "name": "BASE_CURRENCY", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 115, "name": "GEO_TIMEZONE", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 116, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 117, "name": "MKT_NETWORK", "comment": null}, "ETL_TAGS": {"type": "TEXT", "index": 118, "name": "ETL_TAGS", "comment": null}, "DVCE_SENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 119, "name": "DVCE_SENT_TSTAMP", "comment": null}, "REFR_DOMAIN_USERID": {"type": "TEXT", "index": 120, "name": "REFR_DOMAIN_USERID", "comment": null}, "REFR_DVCE_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 121, "name": "REFR_DVCE_TSTAMP", "comment": null}, "DOMAIN_SESSIONID": {"type": "TEXT", "index": 122, "name": "DOMAIN_SESSIONID", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 123, "name": "DERIVED_TSTAMP", "comment": null}, "EVENT_VENDOR": {"type": "TEXT", "index": 124, "name": "EVENT_VENDOR", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 125, "name": "EVENT_NAME", "comment": null}, "EVENT_FORMAT": {"type": "TEXT", "index": 126, "name": "EVENT_FORMAT", "comment": null}, "EVENT_VERSION": {"type": "TEXT", "index": 127, "name": "EVENT_VERSION", "comment": null}, "EVENT_FINGERPRINT": {"type": "TEXT", "index": 128, "name": "EVENT_FINGERPRINT", "comment": null}, "TRUE_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 129, "name": "TRUE_TSTAMP", "comment": null}, "LOAD_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 130, "name": "LOAD_TSTAMP", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_WEB_PAGE_1": {"type": "VARIANT", "index": 131, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_WEB_PAGE_1", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CONSENT_PREFERENCES_1": {"type": "OBJECT", "index": 132, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CONSENT_PREFERENCES_1", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CMP_VISIBLE_1": {"type": "OBJECT", "index": 133, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CMP_VISIBLE_1", "comment": null}, "CONTEXTS_COM_IAB_SNOWPLOW_SPIDERS_AND_ROBOTS_1": {"type": "VARIANT", "index": 134, "name": "CONTEXTS_COM_IAB_SNOWPLOW_SPIDERS_AND_ROBOTS_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_UA_PARSER_CONTEXT_1": {"type": "VARIANT", "index": 135, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_UA_PARSER_CONTEXT_1", "comment": null}, "CONTEXTS_NL_BASJES_YAUAA_CONTEXT_1": {"type": "VARIANT", "index": 136, "name": "CONTEXTS_NL_BASJES_YAUAA_CONTEXT_1", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_VIEW_1": {"type": "OBJECT", "index": 137, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_VIEW_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_CLIENT_SESSION_1": {"type": "VARIANT", "index": 138, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_CLIENT_SESSION_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_GEOLOCATION_CONTEXT_1": {"type": "VARIANT", "index": 139, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_GEOLOCATION_CONTEXT_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_APPLICATION_1": {"type": "VARIANT", "index": 140, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_APPLICATION_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_DEEP_LINK_1": {"type": "VARIANT", "index": 141, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_DEEP_LINK_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_BROWSER_CONTEXT_1": {"type": "VARIANT", "index": 142, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_BROWSER_CONTEXT_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_MOBILE_CONTEXT_1": {"type": "VARIANT", "index": 143, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_MOBILE_CONTEXT_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_1": {"type": "VARIANT", "index": 144, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_1", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_APPLICATION_ERROR_1": {"type": "OBJECT", "index": 145, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_APPLICATION_ERROR_1", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 146, "name": "USER_IDENTIFIER", "comment": null}, "PAGE_VIEW__ID": {"type": "TEXT", "index": 147, "name": "PAGE_VIEW__ID", "comment": null}, "IAB__CATEGORY": {"type": "TEXT", "index": 148, "name": "IAB__CATEGORY", "comment": null}, "IAB__PRIMARY_IMPACT": {"type": "TEXT", "index": 149, "name": "IAB__PRIMARY_IMPACT", "comment": null}, "IAB__REASON": {"type": "TEXT", "index": 150, "name": "IAB__REASON", "comment": null}, "IAB__SPIDER_OR_ROBOT": {"type": "BOOLEAN", "index": 151, "name": "IAB__SPIDER_OR_ROBOT", "comment": null}, "UA__USERAGENT_FAMILY": {"type": "TEXT", "index": 152, "name": "UA__USERAGENT_FAMILY", "comment": null}, "UA__USERAGENT_MAJOR": {"type": "TEXT", "index": 153, "name": "UA__USERAGENT_MAJOR", "comment": null}, "UA__USERAGENT_MINOR": {"type": "TEXT", "index": 154, "name": "UA__USERAGENT_MINOR", "comment": null}, "UA__USERAGENT_PATCH": {"type": "TEXT", "index": 155, "name": "UA__USERAGENT_PATCH", "comment": null}, "UA__USERAGENT_VERSION": {"type": "TEXT", "index": 156, "name": "UA__USERAGENT_VERSION", "comment": null}, "UA__OS_FAMILY": {"type": "TEXT", "index": 157, "name": "UA__OS_FAMILY", "comment": null}, "UA__OS_MAJOR": {"type": "TEXT", "index": 158, "name": "UA__OS_MAJOR", "comment": null}, "UA__OS_MINOR": {"type": "TEXT", "index": 159, "name": "UA__OS_MINOR", "comment": null}, "UA__OS_PATCH": {"type": "TEXT", "index": 160, "name": "UA__OS_PATCH", "comment": null}, "UA__OS_PATCH_MINOR": {"type": "TEXT", "index": 161, "name": "UA__OS_PATCH_MINOR", "comment": null}, "UA__OS_VERSION": {"type": "TEXT", "index": 162, "name": "UA__OS_VERSION", "comment": null}, "UA__DEVICE_FAMILY": {"type": "TEXT", "index": 163, "name": "UA__DEVICE_FAMILY", "comment": null}, "YAUAA__DEVICE_CLASS": {"type": "TEXT", "index": 164, "name": "YAUAA__DEVICE_CLASS", "comment": null}, "YAUAA__AGENT_CLASS": {"type": "TEXT", "index": 165, "name": "YAUAA__AGENT_CLASS", "comment": null}, "YAUAA__AGENT_NAME": {"type": "TEXT", "index": 166, "name": "YAUAA__AGENT_NAME", "comment": null}, "YAUAA__AGENT_NAME_VERSION": {"type": "TEXT", "index": 167, "name": "YAUAA__AGENT_NAME_VERSION", "comment": null}, "YAUAA__AGENT_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 168, "name": "YAUAA__AGENT_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__AGENT_VERSION": {"type": "TEXT", "index": 169, "name": "YAUAA__AGENT_VERSION", "comment": null}, "YAUAA__AGENT_VERSION_MAJOR": {"type": "TEXT", "index": 170, "name": "YAUAA__AGENT_VERSION_MAJOR", "comment": null}, "YAUAA__DEVICE_BRAND": {"type": "TEXT", "index": 171, "name": "YAUAA__DEVICE_BRAND", "comment": null}, "YAUAA__DEVICE_NAME": {"type": "TEXT", "index": 172, "name": "YAUAA__DEVICE_NAME", "comment": null}, "YAUAA__DEVICE_VERSION": {"type": "TEXT", "index": 173, "name": "YAUAA__DEVICE_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_CLASS": {"type": "TEXT", "index": 174, "name": "YAUAA__LAYOUT_ENGINE_CLASS", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME": {"type": "TEXT", "index": 175, "name": "YAUAA__LAYOUT_ENGINE_NAME", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION": {"type": "TEXT", "index": 176, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 177, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION": {"type": "TEXT", "index": 178, "name": "YAUAA__LAYOUT_ENGINE_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR": {"type": "TEXT", "index": 179, "name": "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR", "comment": null}, "YAUAA__OPERATING_SYSTEM_CLASS": {"type": "TEXT", "index": 180, "name": "YAUAA__OPERATING_SYSTEM_CLASS", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME": {"type": "TEXT", "index": 181, "name": "YAUAA__OPERATING_SYSTEM_NAME", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME_VERSION": {"type": "TEXT", "index": 182, "name": "YAUAA__OPERATING_SYSTEM_NAME_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_VERSION": {"type": "TEXT", "index": 183, "name": "YAUAA__OPERATING_SYSTEM_VERSION", "comment": null}, "BROWSER__VIEWPORT": {"type": "TEXT", "index": 184, "name": "BROWSER__VIEWPORT", "comment": null}, "BROWSER__DOCUMENT_SIZE": {"type": "TEXT", "index": 185, "name": "BROWSER__DOCUMENT_SIZE", "comment": null}, "BROWSER__RESOLUTION": {"type": "TEXT", "index": 186, "name": "BROWSER__RESOLUTION", "comment": null}, "BROWSER__COLOR_DEPTH": {"type": "NUMBER", "index": 187, "name": "BROWSER__COLOR_DEPTH", "comment": null}, "BROWSER__DEVICE_PIXEL_RATIO": {"type": "FLOAT", "index": 188, "name": "BROWSER__DEVICE_PIXEL_RATIO", "comment": null}, "BROWSER__COOKIES_ENABLED": {"type": "BOOLEAN", "index": 189, "name": "BROWSER__COOKIES_ENABLED", "comment": null}, "BROWSER__ONLINE": {"type": "BOOLEAN", "index": 190, "name": "BROWSER__ONLINE", "comment": null}, "BROWSER__BROWSER_LANGUAGE": {"type": "TEXT", "index": 191, "name": "BROWSER__BROWSER_LANGUAGE", "comment": null}, "BROWSER__DOCUMENT_LANGUAGE": {"type": "TEXT", "index": 192, "name": "BROWSER__DOCUMENT_LANGUAGE", "comment": null}, "BROWSER__WEBDRIVER": {"type": "BOOLEAN", "index": 193, "name": "BROWSER__WEBDRIVER", "comment": null}, "BROWSER__DEVICE_MEMORY": {"type": "NUMBER", "index": 194, "name": "BROWSER__DEVICE_MEMORY", "comment": null}, "BROWSER__HARDWARE_CONCURRENCY": {"type": "NUMBER", "index": 195, "name": "BROWSER__HARDWARE_CONCURRENCY", "comment": null}, "BROWSER__TAB_ID": {"type": "TEXT", "index": 196, "name": "BROWSER__TAB_ID", "comment": null}, "SCREEN_VIEW__ID": {"type": "TEXT", "index": 197, "name": "SCREEN_VIEW__ID", "comment": null}, "SCREEN_VIEW__NAME": {"type": "TEXT", "index": 198, "name": "SCREEN_VIEW__NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_ID": {"type": "TEXT", "index": 199, "name": "SCREEN_VIEW__PREVIOUS_ID", "comment": null}, "SCREEN_VIEW__PREVIOUS_NAME": {"type": "TEXT", "index": 200, "name": "SCREEN_VIEW__PREVIOUS_NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_TYPE": {"type": "TEXT", "index": 201, "name": "SCREEN_VIEW__PREVIOUS_TYPE", "comment": null}, "SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 202, "name": "SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 203, "name": "SCREEN_VIEW__TYPE", "comment": null}, "SESSION__SESSION_ID": {"type": "TEXT", "index": 204, "name": "SESSION__SESSION_ID", "comment": null}, "SESSION__SESSION_INDEX": {"type": "NUMBER", "index": 205, "name": "SESSION__SESSION_INDEX", "comment": null}, "SESSION__PREVIOUS_SESSION_ID": {"type": "TEXT", "index": 206, "name": "SESSION__PREVIOUS_SESSION_ID", "comment": null}, "SESSION__USER_ID": {"type": "TEXT", "index": 207, "name": "SESSION__USER_ID", "comment": null}, "SESSION__FIRST_EVENT_ID": {"type": "TEXT", "index": 208, "name": "SESSION__FIRST_EVENT_ID", "comment": null}, "SESSION__EVENT_INDEX": {"type": "NUMBER", "index": 209, "name": "SESSION__EVENT_INDEX", "comment": null}, "SESSION__STORAGE_MECHANISM": {"type": "TEXT", "index": 210, "name": "SESSION__STORAGE_MECHANISM", "comment": null}, "SESSION__FIRST_EVENT_TIMESTAMP": {"type": "TEXT", "index": 211, "name": "SESSION__FIRST_EVENT_TIMESTAMP", "comment": null}, "MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 212, "name": "MOBILE__DEVICE_MANUFACTURER", "comment": null}, "MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 213, "name": "MOBILE__DEVICE_MODEL", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 214, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 215, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 216, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 217, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 218, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__CARRIER": {"type": "TEXT", "index": 219, "name": "MOBILE__CARRIER", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 220, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 221, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 222, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 223, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 224, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 225, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 226, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 227, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 228, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 229, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 230, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 231, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 232, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "FLOAT", "index": 233, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 234, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 235, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 236, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "GEO__LATITUDE": {"type": "FLOAT", "index": 237, "name": "GEO__LATITUDE", "comment": null}, "GEO__LONGITUDE": {"type": "FLOAT", "index": 238, "name": "GEO__LONGITUDE", "comment": null}, "GEO__LATITUDE_LONGITUDE_ACCURACY": {"type": "FLOAT", "index": 239, "name": "GEO__LATITUDE_LONGITUDE_ACCURACY", "comment": null}, "GEO__ALTITUDE": {"type": "FLOAT", "index": 240, "name": "GEO__ALTITUDE", "comment": null}, "GEO__ALTITUDE_ACCURACY": {"type": "FLOAT", "index": 241, "name": "GEO__ALTITUDE_ACCURACY", "comment": null}, "GEO__BEARING": {"type": "FLOAT", "index": 242, "name": "GEO__BEARING", "comment": null}, "GEO__SPEED": {"type": "FLOAT", "index": 243, "name": "GEO__SPEED", "comment": null}, "APP__BUILD": {"type": "TEXT", "index": 244, "name": "APP__BUILD", "comment": null}, "APP__VERSION": {"type": "TEXT", "index": 245, "name": "APP__VERSION", "comment": null}, "SCREEN__ID": {"type": "TEXT", "index": 246, "name": "SCREEN__ID", "comment": null}, "SCREEN__NAME": {"type": "TEXT", "index": 247, "name": "SCREEN__NAME", "comment": null}, "SCREEN__ACTIVITY": {"type": "TEXT", "index": 248, "name": "SCREEN__ACTIVITY", "comment": null}, "SCREEN__FRAGMENT": {"type": "TEXT", "index": 249, "name": "SCREEN__FRAGMENT", "comment": null}, "SCREEN__TOP_VIEW_CONTROLLER": {"type": "TEXT", "index": 250, "name": "SCREEN__TOP_VIEW_CONTROLLER", "comment": null}, "SCREEN__TYPE": {"type": "TEXT", "index": 251, "name": "SCREEN__TYPE", "comment": null}, "SCREEN__VIEW_CONTROLLER": {"type": "TEXT", "index": 252, "name": "SCREEN__VIEW_CONTROLLER", "comment": null}, "DEEP_LINK__URL": {"type": "TEXT", "index": 253, "name": "DEEP_LINK__URL", "comment": null}, "DEEP_LINK__REFERRER": {"type": "TEXT", "index": 254, "name": "DEEP_LINK__REFERRER", "comment": null}, "APP_ERROR__MESSAGE": {"type": "TEXT", "index": 255, "name": "APP_ERROR__MESSAGE", "comment": null}, "APP_ERROR__PROGRAMMING_LANGUAGE": {"type": "TEXT", "index": 256, "name": "APP_ERROR__PROGRAMMING_LANGUAGE", "comment": null}, "APP_ERROR__CLASS_NAME": {"type": "TEXT", "index": 257, "name": "APP_ERROR__CLASS_NAME", "comment": null}, "APP_ERROR__EXCEPTION_NAME": {"type": "TEXT", "index": 258, "name": "APP_ERROR__EXCEPTION_NAME", "comment": null}, "APP_ERROR__IS_FATAL": {"type": "BOOLEAN", "index": 259, "name": "APP_ERROR__IS_FATAL", "comment": null}, "APP_ERROR__LINE_NUMBER": {"type": "NUMBER", "index": 260, "name": "APP_ERROR__LINE_NUMBER", "comment": null}, "APP_ERROR__STACK_TRACE": {"type": "TEXT", "index": 261, "name": "APP_ERROR__STACK_TRACE", "comment": null}, "APP_ERROR__THREAD_ID": {"type": "NUMBER", "index": 262, "name": "APP_ERROR__THREAD_ID", "comment": null}, "APP_ERROR__THREAD_NAME": {"type": "TEXT", "index": 263, "name": "APP_ERROR__THREAD_NAME", "comment": null}, "SCREEN_SUMMARY__FOREGROUND_SEC": {"type": "FLOAT", "index": 264, "name": "SCREEN_SUMMARY__FOREGROUND_SEC", "comment": null}, "SCREEN_SUMMARY__BACKGROUND_SEC": {"type": "FLOAT", "index": 265, "name": "SCREEN_SUMMARY__BACKGROUND_SEC", "comment": null}, "SCREEN_SUMMARY__LAST_ITEM_INDEX": {"type": "NUMBER", "index": 266, "name": "SCREEN_SUMMARY__LAST_ITEM_INDEX", "comment": null}, "SCREEN_SUMMARY__ITEMS_COUNT": {"type": "NUMBER", "index": 267, "name": "SCREEN_SUMMARY__ITEMS_COUNT", "comment": null}, "SCREEN_SUMMARY__MIN_X_OFFSET": {"type": "NUMBER", "index": 268, "name": "SCREEN_SUMMARY__MIN_X_OFFSET", "comment": null}, "SCREEN_SUMMARY__MIN_Y_OFFSET": {"type": "NUMBER", "index": 269, "name": "SCREEN_SUMMARY__MIN_Y_OFFSET", "comment": null}, "SCREEN_SUMMARY__MAX_X_OFFSET": {"type": "NUMBER", "index": 270, "name": "SCREEN_SUMMARY__MAX_X_OFFSET", "comment": null}, "SCREEN_SUMMARY__MAX_Y_OFFSET": {"type": "NUMBER", "index": 271, "name": "SCREEN_SUMMARY__MAX_Y_OFFSET", "comment": null}, "SCREEN_SUMMARY__CONTENT_WIDTH": {"type": "NUMBER", "index": 272, "name": "SCREEN_SUMMARY__CONTENT_WIDTH", "comment": null}, "SCREEN_SUMMARY__CONTENT_HEIGHT": {"type": "NUMBER", "index": 273, "name": "SCREEN_SUMMARY__CONTENT_HEIGHT", "comment": null}, "CONSENT__EVENT_TYPE": {"type": "TEXT", "index": 274, "name": "CONSENT__EVENT_TYPE", "comment": null}, "CONSENT__BASIS_FOR_PROCESSING": {"type": "TEXT", "index": 275, "name": "CONSENT__BASIS_FOR_PROCESSING", "comment": null}, "CONSENT__CONSENT_URL": {"type": "TEXT", "index": 276, "name": "CONSENT__CONSENT_URL", "comment": null}, "CONSENT__CONSENT_VERSION": {"type": "TEXT", "index": 277, "name": "CONSENT__CONSENT_VERSION", "comment": null}, "CONSENT__CONSENT_SCOPES": {"type": "ARRAY", "index": 278, "name": "CONSENT__CONSENT_SCOPES", "comment": null}, "CONSENT__DOMAINS_APPLIED": {"type": "ARRAY", "index": 279, "name": "CONSENT__DOMAINS_APPLIED", "comment": null}, "CONSENT__GDPR_APPLIES": {"type": "BOOLEAN", "index": 280, "name": "CONSENT__GDPR_APPLIES", "comment": null}, "CMP__ELAPSED_TIME": {"type": "FLOAT", "index": 281, "name": "CMP__ELAPSED_TIME", "comment": null}, "VIEW_ID": {"type": "TEXT", "index": 282, "name": "VIEW_ID", "comment": null}, "DEVICE_SESSION_INDEX": {"type": "NUMBER", "index": 283, "name": "DEVICE_SESSION_INDEX", "comment": null}, "REFERRER": {"type": "TEXT", "index": 284, "name": "REFERRER", "comment": null}, "URL": {"type": "TEXT", "index": 285, "name": "URL", "comment": null}, "SCREEN_RESOLUTION": {"type": "TEXT", "index": 286, "name": "SCREEN_RESOLUTION", "comment": null}, "OS_TYPE": {"type": "TEXT", "index": 287, "name": "OS_TYPE", "comment": null}, "OS_VERSION": {"type": "TEXT", "index": 288, "name": "OS_VERSION", "comment": null}, "DEVICE_IDENTIFIER": {"type": "TEXT", "index": 289, "name": "DEVICE_IDENTIFIER", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 290, "name": "PLATFORM_NAME", "comment": null}, "DEVICE_CATEGORY": {"type": "TEXT", "index": 291, "name": "DEVICE_CATEGORY", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 219, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 257536, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.test_late_enabled_contexts"}, "model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNOWPLOW_MANIFEST", "name": "SNOWPLOW_UNIFIED_BASE_SESSIONS_LIFECYCLE_MANIFEST", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"SESSION_IDENTIFIER": {"type": "TEXT", "index": 1, "name": "SESSION_IDENTIFIER", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "USER_IDENTIFIER", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "END_TSTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 48, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 8192, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(to_date(start_tstamp))", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest"}, "model.snowplow_unified.snowplow_unified_sessions_this_run": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SCRATCH", "name": "SNOWPLOW_UNIFIED_SESSIONS_THIS_RUN", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"FIRST_EVENT_NAME": {"type": "TEXT", "index": 1, "name": "FIRST_EVENT_NAME", "comment": null}, "LAST_EVENT_NAME": {"type": "TEXT", "index": 2, "name": "LAST_EVENT_NAME", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 3, "name": "SESSION_IDENTIFIER", "comment": null}, "SESSION__PREVIOUS_SESSION_ID": {"type": "TEXT", "index": 4, "name": "SESSION__PREVIOUS_SESSION_ID", "comment": null}, "USER_ID": {"type": "TEXT", "index": 5, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 6, "name": "USER_IDENTIFIER", "comment": null}, "STITCHED_USER_ID": {"type": "TEXT", "index": 7, "name": "STITCHED_USER_ID", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 8, "name": "NETWORK_USERID", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "END_TSTAMP", "comment": null}, "MODEL_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODEL_TSTAMP", "comment": null}, "APP_ID": {"type": "TEXT", "index": 12, "name": "APP_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "DEVICE_IDENTIFIER": {"type": "TEXT", "index": 14, "name": "DEVICE_IDENTIFIER", "comment": null}, "DEVICE_CATEGORY": {"type": "TEXT", "index": 15, "name": "DEVICE_CATEGORY", "comment": null}, "DEVICE_SESSION_INDEX": {"type": "NUMBER", "index": 16, "name": "DEVICE_SESSION_INDEX", "comment": null}, "OS_VERSION": {"type": "TEXT", "index": 17, "name": "OS_VERSION", "comment": null}, "OS_TYPE": {"type": "TEXT", "index": 18, "name": "OS_TYPE", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 19, "name": "OS_TIMEZONE", "comment": null}, "SCREEN_RESOLUTION": {"type": "TEXT", "index": 20, "name": "SCREEN_RESOLUTION", "comment": null}, "YAUAA__DEVICE_CLASS": {"type": "TEXT", "index": 21, "name": "YAUAA__DEVICE_CLASS", "comment": null}, "YAUAA__DEVICE_VERSION": {"type": "TEXT", "index": 22, "name": "YAUAA__DEVICE_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_VERSION": {"type": "TEXT", "index": 23, "name": "YAUAA__OPERATING_SYSTEM_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_CLASS": {"type": "TEXT", "index": 24, "name": "YAUAA__OPERATING_SYSTEM_CLASS", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME": {"type": "TEXT", "index": 25, "name": "YAUAA__OPERATING_SYSTEM_NAME", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME_VERSION": {"type": "TEXT", "index": 26, "name": "YAUAA__OPERATING_SYSTEM_NAME_VERSION", "comment": null}, "MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 27, "name": "MOBILE__DEVICE_MANUFACTURER", "comment": null}, "MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 28, "name": "MOBILE__DEVICE_MODEL", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 29, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 30, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 31, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 32, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 33, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__CARRIER": {"type": "TEXT", "index": 34, "name": "MOBILE__CARRIER", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 35, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 36, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 37, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 38, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 39, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 40, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 41, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 42, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 43, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 44, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 45, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 46, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 47, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "FLOAT", "index": 48, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 49, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 50, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 51, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "FIRST_GEO_COUNTRY": {"type": "TEXT", "index": 52, "name": "FIRST_GEO_COUNTRY", "comment": null}, "FIRST_GEO_REGION_NAME": {"type": "TEXT", "index": 53, "name": "FIRST_GEO_REGION_NAME", "comment": null}, "FIRST_GEO_CITY": {"type": "TEXT", "index": 54, "name": "FIRST_GEO_CITY", "comment": null}, "FIRST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 55, "name": "FIRST_GEO_COUNTRY_NAME", "comment": null}, "FIRST_GEO_CONTINENT": {"type": "TEXT", "index": 56, "name": "FIRST_GEO_CONTINENT", "comment": null}, "LAST_GEO_COUNTRY": {"type": "TEXT", "index": 57, "name": "LAST_GEO_COUNTRY", "comment": null}, "LAST_GEO_REGION_NAME": {"type": "TEXT", "index": 58, "name": "LAST_GEO_REGION_NAME", "comment": null}, "LAST_GEO_CITY": {"type": "TEXT", "index": 59, "name": "LAST_GEO_CITY", "comment": null}, "LAST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 60, "name": "LAST_GEO_COUNTRY_NAME", "comment": null}, "LAST_GEO_CONTINENT": {"type": "TEXT", "index": 61, "name": "LAST_GEO_CONTINENT", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 62, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 63, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 64, "name": "GEO_LONGITUDE", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 65, "name": "GEO_TIMEZONE", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 66, "name": "USER_IPADDRESS", "comment": null}, "VIEWS": {"type": "NUMBER", "index": 67, "name": "VIEWS", "comment": null}, "EVENT_COUNTS": {"type": "VARIANT", "index": 68, "name": "EVENT_COUNTS", "comment": null}, "TOTAL_EVENTS": {"type": "NUMBER", "index": 69, "name": "TOTAL_EVENTS", "comment": null}, "IS_ENGAGED": {"type": "BOOLEAN", "index": 70, "name": "IS_ENGAGED", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 71, "name": "ENGAGED_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "NUMBER", "index": 72, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "SCREEN_NAMES_VIEWED": {"type": "NUMBER", "index": 73, "name": "SCREEN_NAMES_VIEWED", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 74, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 75, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 76, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 77, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 78, "name": "MKT_CAMPAIGN", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 79, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 80, "name": "MKT_NETWORK", "comment": null}, "DEFAULT_CHANNEL_GROUP": {"type": "TEXT", "index": 81, "name": "DEFAULT_CHANNEL_GROUP", "comment": null}, "MKT_SOURCE_PLATFORM": {"type": "TEXT", "index": 82, "name": "MKT_SOURCE_PLATFORM", "comment": null}, "FIRST_PAGE_URL": {"type": "TEXT", "index": 83, "name": "FIRST_PAGE_URL", "comment": null}, "LAST_PAGE_URL": {"type": "TEXT", "index": 84, "name": "LAST_PAGE_URL", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 85, "name": "PAGE_REFERRER", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 86, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 87, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 88, "name": "REFR_TERM", "comment": null}, "FIRST_PAGE_TITLE": {"type": "TEXT", "index": 89, "name": "FIRST_PAGE_TITLE", "comment": null}, "FIRST_PAGE_URLSCHEME": {"type": "TEXT", "index": 90, "name": "FIRST_PAGE_URLSCHEME", "comment": null}, "FIRST_PAGE_URLHOST": {"type": "TEXT", "index": 91, "name": "FIRST_PAGE_URLHOST", "comment": null}, "FIRST_PAGE_URLPATH": {"type": "TEXT", "index": 92, "name": "FIRST_PAGE_URLPATH", "comment": null}, "FIRST_PAGE_URLQUERY": {"type": "TEXT", "index": 93, "name": "FIRST_PAGE_URLQUERY", "comment": null}, "FIRST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 94, "name": "FIRST_PAGE_URLFRAGMENT", "comment": null}, "LAST_PAGE_TITLE": {"type": "TEXT", "index": 95, "name": "LAST_PAGE_TITLE", "comment": null}, "LAST_PAGE_URLSCHEME": {"type": "TEXT", "index": 96, "name": "LAST_PAGE_URLSCHEME", "comment": null}, "LAST_PAGE_URLHOST": {"type": "TEXT", "index": 97, "name": "LAST_PAGE_URLHOST", "comment": null}, "LAST_PAGE_URLPATH": {"type": "TEXT", "index": 98, "name": "LAST_PAGE_URLPATH", "comment": null}, "LAST_PAGE_URLQUERY": {"type": "TEXT", "index": 99, "name": "LAST_PAGE_URLQUERY", "comment": null}, "LAST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 100, "name": "LAST_PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 101, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 102, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 103, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 104, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 105, "name": "REFR_URLFRAGMENT", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 106, "name": "BR_RENDERENGINE", "comment": null}, "FIRST_BR_LANG": {"type": "TEXT", "index": 107, "name": "FIRST_BR_LANG", "comment": null}, "FIRST_BR_LANG_NAME": {"type": "TEXT", "index": 108, "name": "FIRST_BR_LANG_NAME", "comment": null}, "LAST_BR_LANG": {"type": "TEXT", "index": 109, "name": "LAST_BR_LANG", "comment": null}, "LAST_BR_LANG_NAME": {"type": "TEXT", "index": 110, "name": "LAST_BR_LANG_NAME", "comment": null}, "IAB__CATEGORY": {"type": "TEXT", "index": 111, "name": "IAB__CATEGORY", "comment": null}, "IAB__PRIMARY_IMPACT": {"type": "TEXT", "index": 112, "name": "IAB__PRIMARY_IMPACT", "comment": null}, "IAB__REASON": {"type": "TEXT", "index": 113, "name": "IAB__REASON", "comment": null}, "IAB__SPIDER_OR_ROBOT": {"type": "BOOLEAN", "index": 114, "name": "IAB__SPIDER_OR_ROBOT", "comment": null}, "YAUAA__DEVICE_NAME": {"type": "TEXT", "index": 115, "name": "YAUAA__DEVICE_NAME", "comment": null}, "YAUAA__AGENT_CLASS": {"type": "TEXT", "index": 116, "name": "YAUAA__AGENT_CLASS", "comment": null}, "YAUAA__AGENT_NAME": {"type": "TEXT", "index": 117, "name": "YAUAA__AGENT_NAME", "comment": null}, "YAUAA__AGENT_NAME_VERSION": {"type": "TEXT", "index": 118, "name": "YAUAA__AGENT_NAME_VERSION", "comment": null}, "YAUAA__AGENT_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 119, "name": "YAUAA__AGENT_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__AGENT_VERSION": {"type": "TEXT", "index": 120, "name": "YAUAA__AGENT_VERSION", "comment": null}, "YAUAA__AGENT_VERSION_MAJOR": {"type": "TEXT", "index": 121, "name": "YAUAA__AGENT_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_CLASS": {"type": "TEXT", "index": 122, "name": "YAUAA__LAYOUT_ENGINE_CLASS", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME": {"type": "TEXT", "index": 123, "name": "YAUAA__LAYOUT_ENGINE_NAME", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION": {"type": "TEXT", "index": 124, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 125, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION": {"type": "TEXT", "index": 126, "name": "YAUAA__LAYOUT_ENGINE_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR": {"type": "TEXT", "index": 127, "name": "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR", "comment": null}, "UA__DEVICE_FAMILY": {"type": "TEXT", "index": 128, "name": "UA__DEVICE_FAMILY", "comment": null}, "UA__OS_VERSION": {"type": "TEXT", "index": 129, "name": "UA__OS_VERSION", "comment": null}, "UA__OS_MAJOR": {"type": "TEXT", "index": 130, "name": "UA__OS_MAJOR", "comment": null}, "UA__OS_MINOR": {"type": "TEXT", "index": 131, "name": "UA__OS_MINOR", "comment": null}, "UA__OS_PATCH": {"type": "TEXT", "index": 132, "name": "UA__OS_PATCH", "comment": null}, "UA__OS_PATCH_MINOR": {"type": "TEXT", "index": 133, "name": "UA__OS_PATCH_MINOR", "comment": null}, "UA__USERAGENT_FAMILY": {"type": "TEXT", "index": 134, "name": "UA__USERAGENT_FAMILY", "comment": null}, "UA__USERAGENT_MAJOR": {"type": "TEXT", "index": 135, "name": "UA__USERAGENT_MAJOR", "comment": null}, "UA__USERAGENT_MINOR": {"type": "TEXT", "index": 136, "name": "UA__USERAGENT_MINOR", "comment": null}, "UA__USERAGENT_PATCH": {"type": "TEXT", "index": 137, "name": "UA__USERAGENT_PATCH", "comment": null}, "UA__USERAGENT_VERSION": {"type": "TEXT", "index": 138, "name": "UA__USERAGENT_VERSION", "comment": null}, "FIRST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 139, "name": "FIRST_SCREEN_VIEW__NAME", "comment": null}, "FIRST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 140, "name": "FIRST_SCREEN_VIEW__TYPE", "comment": null}, "LAST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 141, "name": "LAST_SCREEN_VIEW__NAME", "comment": null}, "LAST_SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 142, "name": "LAST_SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "LAST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 143, "name": "LAST_SCREEN_VIEW__TYPE", "comment": null}, "SCREEN_VIEW__PREVIOUS_ID": {"type": "TEXT", "index": 144, "name": "SCREEN_VIEW__PREVIOUS_ID", "comment": null}, "SCREEN_VIEW__PREVIOUS_NAME": {"type": "TEXT", "index": 145, "name": "SCREEN_VIEW__PREVIOUS_NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_TYPE": {"type": "TEXT", "index": 146, "name": "SCREEN_VIEW__PREVIOUS_TYPE", "comment": null}, "FIRST_APP__BUILD": {"type": "TEXT", "index": 147, "name": "FIRST_APP__BUILD", "comment": null}, "FIRST_APP__VERSION": {"type": "TEXT", "index": 148, "name": "FIRST_APP__VERSION", "comment": null}, "FIRST_GEO__ALTITUDE": {"type": "FLOAT", "index": 149, "name": "FIRST_GEO__ALTITUDE", "comment": null}, "FIRST_GEO__ALTITUDE_ACCURACY": {"type": "FLOAT", "index": 150, "name": "FIRST_GEO__ALTITUDE_ACCURACY", "comment": null}, "FIRST_GEO__BEARING": {"type": "FLOAT", "index": 151, "name": "FIRST_GEO__BEARING", "comment": null}, "FIRST_GEO__LATITUDE": {"type": "FLOAT", "index": 152, "name": "FIRST_GEO__LATITUDE", "comment": null}, "FIRST_GEO__LATITUDE_LONGITUDE_ACCURACY": {"type": "FLOAT", "index": 153, "name": "FIRST_GEO__LATITUDE_LONGITUDE_ACCURACY", "comment": null}, "FIRST_GEO__LONGITUDE": {"type": "FLOAT", "index": 154, "name": "FIRST_GEO__LONGITUDE", "comment": null}, "FIRST_GEO__SPEED": {"type": "FLOAT", "index": 155, "name": "FIRST_GEO__SPEED", "comment": null}, "SCREEN__FRAGMENT": {"type": "TEXT", "index": 156, "name": "SCREEN__FRAGMENT", "comment": null}, "SCREEN__TOP_VIEW_CONTROLLER": {"type": "TEXT", "index": 157, "name": "SCREEN__TOP_VIEW_CONTROLLER", "comment": null}, "SCREEN__VIEW_CONTROLLER": {"type": "TEXT", "index": 158, "name": "SCREEN__VIEW_CONTROLLER", "comment": null}, "APP_ERRORS": {"type": "NUMBER", "index": 159, "name": "APP_ERRORS", "comment": null}, "FATAL_APP_ERRORS": {"type": "NUMBER", "index": 160, "name": "FATAL_APP_ERRORS", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 161, "name": "USERAGENT", "comment": null}, "CV_VIEW_PAGE_VOLUME": {"type": "NUMBER", "index": 162, "name": "CV_VIEW_PAGE_VOLUME", "comment": null}, "CV_VIEW_PAGE_EVENTS": {"type": "ARRAY", "index": 163, "name": "CV_VIEW_PAGE_EVENTS", "comment": null}, "CV_VIEW_PAGE_VALUES": {"type": "ARRAY", "index": 164, "name": "CV_VIEW_PAGE_VALUES", "comment": null}, "CV_VIEW_PAGE_TOTAL": {"type": "FLOAT", "index": 165, "name": "CV_VIEW_PAGE_TOTAL", "comment": null}, "CV_VIEW_PAGE_FIRST_CONVERSION": {"type": "TIMESTAMP_NTZ", "index": 166, "name": "CV_VIEW_PAGE_FIRST_CONVERSION", "comment": null}, "CV_VIEW_PAGE_CONVERTED": {"type": "BOOLEAN", "index": 167, "name": "CV_VIEW_PAGE_CONVERTED", "comment": null}, "CV__ALL_VOLUME": {"type": "NUMBER", "index": 168, "name": "CV__ALL_VOLUME", "comment": null}, "CV__ALL_TOTAL": {"type": "FLOAT", "index": 169, "name": "CV__ALL_TOTAL", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 170, "name": "EVENT_ID", "comment": null}, "EVENT_ID2": {"type": "TEXT", "index": 171, "name": "EVENT_ID2", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 21, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 87552, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_sessions_this_run"}, "model.snowplow_unified.snowplow_unified_events_this_run": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SCRATCH", "name": "SNOWPLOW_UNIFIED_EVENTS_THIS_RUN", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"SESSION_IDENTIFIER": {"type": "TEXT", "index": 1, "name": "SESSION_IDENTIFIER", "comment": null}, "APP_ID": {"type": "TEXT", "index": 2, "name": "APP_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 3, "name": "PLATFORM", "comment": null}, "ETL_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "ETL_TSTAMP", "comment": null}, "COLLECTOR_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "COLLECTOR_TSTAMP", "comment": null}, "DVCE_CREATED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "DVCE_CREATED_TSTAMP", "comment": null}, "EVENT": {"type": "TEXT", "index": 7, "name": "EVENT", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 8, "name": "EVENT_ID", "comment": null}, "TXN_ID": {"type": "NUMBER", "index": 9, "name": "TXN_ID", "comment": null}, "NAME_TRACKER": {"type": "TEXT", "index": 10, "name": "NAME_TRACKER", "comment": null}, "V_TRACKER": {"type": "TEXT", "index": 11, "name": "V_TRACKER", "comment": null}, "V_COLLECTOR": {"type": "TEXT", "index": 12, "name": "V_COLLECTOR", "comment": null}, "V_ETL": {"type": "TEXT", "index": 13, "name": "V_ETL", "comment": null}, "USER_ID": {"type": "TEXT", "index": 14, "name": "USER_ID", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 15, "name": "USER_IPADDRESS", "comment": null}, "USER_FINGERPRINT": {"type": "TEXT", "index": 16, "name": "USER_FINGERPRINT", "comment": null}, "DOMAIN_USERID": {"type": "TEXT", "index": 17, "name": "DOMAIN_USERID", "comment": null}, "DOMAIN_SESSIONIDX": {"type": "NUMBER", "index": 18, "name": "DOMAIN_SESSIONIDX", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 19, "name": "NETWORK_USERID", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 20, "name": "GEO_COUNTRY", "comment": null}, "GEO_REGION": {"type": "TEXT", "index": 21, "name": "GEO_REGION", "comment": null}, "GEO_CITY": {"type": "TEXT", "index": 22, "name": "GEO_CITY", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 23, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 24, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 25, "name": "GEO_LONGITUDE", "comment": null}, "GEO_REGION_NAME": {"type": "TEXT", "index": 26, "name": "GEO_REGION_NAME", "comment": null}, "IP_ISP": {"type": "TEXT", "index": 27, "name": "IP_ISP", "comment": null}, "IP_ORGANIZATION": {"type": "TEXT", "index": 28, "name": "IP_ORGANIZATION", "comment": null}, "IP_DOMAIN": {"type": "TEXT", "index": 29, "name": "IP_DOMAIN", "comment": null}, "IP_NETSPEED": {"type": "TEXT", "index": 30, "name": "IP_NETSPEED", "comment": null}, "PAGE_URL": {"type": "TEXT", "index": 31, "name": "PAGE_URL", "comment": null}, "PAGE_TITLE": {"type": "TEXT", "index": 32, "name": "PAGE_TITLE", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 33, "name": "PAGE_REFERRER", "comment": null}, "PAGE_URLSCHEME": {"type": "TEXT", "index": 34, "name": "PAGE_URLSCHEME", "comment": null}, "PAGE_URLHOST": {"type": "TEXT", "index": 35, "name": "PAGE_URLHOST", "comment": null}, "PAGE_URLPORT": {"type": "NUMBER", "index": 36, "name": "PAGE_URLPORT", "comment": null}, "PAGE_URLPATH": {"type": "TEXT", "index": 37, "name": "PAGE_URLPATH", "comment": null}, "PAGE_URLQUERY": {"type": "TEXT", "index": 38, "name": "PAGE_URLQUERY", "comment": null}, "PAGE_URLFRAGMENT": {"type": "TEXT", "index": 39, "name": "PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 40, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 41, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPORT": {"type": "NUMBER", "index": 42, "name": "REFR_URLPORT", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 43, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 44, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 45, "name": "REFR_URLFRAGMENT", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 46, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 47, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 48, "name": "REFR_TERM", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 49, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 50, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 51, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 52, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 53, "name": "MKT_CAMPAIGN", "comment": null}, "SE_CATEGORY": {"type": "TEXT", "index": 54, "name": "SE_CATEGORY", "comment": null}, "SE_ACTION": {"type": "TEXT", "index": 55, "name": "SE_ACTION", "comment": null}, "SE_LABEL": {"type": "TEXT", "index": 56, "name": "SE_LABEL", "comment": null}, "SE_PROPERTY": {"type": "TEXT", "index": 57, "name": "SE_PROPERTY", "comment": null}, "SE_VALUE": {"type": "FLOAT", "index": 58, "name": "SE_VALUE", "comment": null}, "TR_ORDERID": {"type": "TEXT", "index": 59, "name": "TR_ORDERID", "comment": null}, "TR_AFFILIATION": {"type": "TEXT", "index": 60, "name": "TR_AFFILIATION", "comment": null}, "TR_TOTAL": {"type": "FLOAT", "index": 61, "name": "TR_TOTAL", "comment": null}, "TR_TAX": {"type": "FLOAT", "index": 62, "name": "TR_TAX", "comment": null}, "TR_SHIPPING": {"type": "FLOAT", "index": 63, "name": "TR_SHIPPING", "comment": null}, "TR_CITY": {"type": "TEXT", "index": 64, "name": "TR_CITY", "comment": null}, "TR_STATE": {"type": "TEXT", "index": 65, "name": "TR_STATE", "comment": null}, "TR_COUNTRY": {"type": "TEXT", "index": 66, "name": "TR_COUNTRY", "comment": null}, "TI_ORDERID": {"type": "TEXT", "index": 67, "name": "TI_ORDERID", "comment": null}, "TI_SKU": {"type": "TEXT", "index": 68, "name": "TI_SKU", "comment": null}, "TI_NAME": {"type": "TEXT", "index": 69, "name": "TI_NAME", "comment": null}, "TI_CATEGORY": {"type": "TEXT", "index": 70, "name": "TI_CATEGORY", "comment": null}, "TI_PRICE": {"type": "FLOAT", "index": 71, "name": "TI_PRICE", "comment": null}, "TI_QUANTITY": {"type": "NUMBER", "index": 72, "name": "TI_QUANTITY", "comment": null}, "PP_XOFFSET_MIN": {"type": "NUMBER", "index": 73, "name": "PP_XOFFSET_MIN", "comment": null}, "PP_XOFFSET_MAX": {"type": "NUMBER", "index": 74, "name": "PP_XOFFSET_MAX", "comment": null}, "PP_YOFFSET_MIN": {"type": "NUMBER", "index": 75, "name": "PP_YOFFSET_MIN", "comment": null}, "PP_YOFFSET_MAX": {"type": "NUMBER", "index": 76, "name": "PP_YOFFSET_MAX", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 77, "name": "USERAGENT", "comment": null}, "BR_NAME": {"type": "TEXT", "index": 78, "name": "BR_NAME", "comment": null}, "BR_FAMILY": {"type": "TEXT", "index": 79, "name": "BR_FAMILY", "comment": null}, "BR_VERSION": {"type": "TEXT", "index": 80, "name": "BR_VERSION", "comment": null}, "BR_TYPE": {"type": "TEXT", "index": 81, "name": "BR_TYPE", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 82, "name": "BR_RENDERENGINE", "comment": null}, "BR_LANG": {"type": "TEXT", "index": 83, "name": "BR_LANG", "comment": null}, "BR_FEATURES_PDF": {"type": "BOOLEAN", "index": 84, "name": "BR_FEATURES_PDF", "comment": null}, "BR_FEATURES_FLASH": {"type": "BOOLEAN", "index": 85, "name": "BR_FEATURES_FLASH", "comment": null}, "BR_FEATURES_JAVA": {"type": "BOOLEAN", "index": 86, "name": "BR_FEATURES_JAVA", "comment": null}, "BR_FEATURES_DIRECTOR": {"type": "BOOLEAN", "index": 87, "name": "BR_FEATURES_DIRECTOR", "comment": null}, "BR_FEATURES_QUICKTIME": {"type": "BOOLEAN", "index": 88, "name": "BR_FEATURES_QUICKTIME", "comment": null}, "BR_FEATURES_REALPLAYER": {"type": "BOOLEAN", "index": 89, "name": "BR_FEATURES_REALPLAYER", "comment": null}, "BR_FEATURES_WINDOWSMEDIA": {"type": "BOOLEAN", "index": 90, "name": "BR_FEATURES_WINDOWSMEDIA", "comment": null}, "BR_FEATURES_GEARS": {"type": "BOOLEAN", "index": 91, "name": "BR_FEATURES_GEARS", "comment": null}, "BR_FEATURES_SILVERLIGHT": {"type": "BOOLEAN", "index": 92, "name": "BR_FEATURES_SILVERLIGHT", "comment": null}, "BR_COOKIES": {"type": "BOOLEAN", "index": 93, "name": "BR_COOKIES", "comment": null}, "BR_COLORDEPTH": {"type": "TEXT", "index": 94, "name": "BR_COLORDEPTH", "comment": null}, "BR_VIEWWIDTH": {"type": "NUMBER", "index": 95, "name": "BR_VIEWWIDTH", "comment": null}, "BR_VIEWHEIGHT": {"type": "NUMBER", "index": 96, "name": "BR_VIEWHEIGHT", "comment": null}, "OS_NAME": {"type": "TEXT", "index": 97, "name": "OS_NAME", "comment": null}, "OS_FAMILY": {"type": "TEXT", "index": 98, "name": "OS_FAMILY", "comment": null}, "OS_MANUFACTURER": {"type": "TEXT", "index": 99, "name": "OS_MANUFACTURER", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 100, "name": "OS_TIMEZONE", "comment": null}, "DVCE_TYPE": {"type": "TEXT", "index": 101, "name": "DVCE_TYPE", "comment": null}, "DVCE_ISMOBILE": {"type": "BOOLEAN", "index": 102, "name": "DVCE_ISMOBILE", "comment": null}, "DVCE_SCREENWIDTH": {"type": "NUMBER", "index": 103, "name": "DVCE_SCREENWIDTH", "comment": null}, "DVCE_SCREENHEIGHT": {"type": "NUMBER", "index": 104, "name": "DVCE_SCREENHEIGHT", "comment": null}, "DOC_CHARSET": {"type": "TEXT", "index": 105, "name": "DOC_CHARSET", "comment": null}, "DOC_WIDTH": {"type": "NUMBER", "index": 106, "name": "DOC_WIDTH", "comment": null}, "DOC_HEIGHT": {"type": "NUMBER", "index": 107, "name": "DOC_HEIGHT", "comment": null}, "TR_CURRENCY": {"type": "TEXT", "index": 108, "name": "TR_CURRENCY", "comment": null}, "TR_TOTAL_BASE": {"type": "FLOAT", "index": 109, "name": "TR_TOTAL_BASE", "comment": null}, "TR_TAX_BASE": {"type": "FLOAT", "index": 110, "name": "TR_TAX_BASE", "comment": null}, "TR_SHIPPING_BASE": {"type": "FLOAT", "index": 111, "name": "TR_SHIPPING_BASE", "comment": null}, "TI_CURRENCY": {"type": "TEXT", "index": 112, "name": "TI_CURRENCY", "comment": null}, "TI_PRICE_BASE": {"type": "FLOAT", "index": 113, "name": "TI_PRICE_BASE", "comment": null}, "BASE_CURRENCY": {"type": "TEXT", "index": 114, "name": "BASE_CURRENCY", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 115, "name": "GEO_TIMEZONE", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 116, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 117, "name": "MKT_NETWORK", "comment": null}, "ETL_TAGS": {"type": "TEXT", "index": 118, "name": "ETL_TAGS", "comment": null}, "DVCE_SENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 119, "name": "DVCE_SENT_TSTAMP", "comment": null}, "REFR_DOMAIN_USERID": {"type": "TEXT", "index": 120, "name": "REFR_DOMAIN_USERID", "comment": null}, "REFR_DVCE_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 121, "name": "REFR_DVCE_TSTAMP", "comment": null}, "DOMAIN_SESSIONID": {"type": "TEXT", "index": 122, "name": "DOMAIN_SESSIONID", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 123, "name": "DERIVED_TSTAMP", "comment": null}, "EVENT_VENDOR": {"type": "TEXT", "index": 124, "name": "EVENT_VENDOR", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 125, "name": "EVENT_NAME", "comment": null}, "EVENT_FORMAT": {"type": "TEXT", "index": 126, "name": "EVENT_FORMAT", "comment": null}, "EVENT_VERSION": {"type": "TEXT", "index": 127, "name": "EVENT_VERSION", "comment": null}, "EVENT_FINGERPRINT": {"type": "TEXT", "index": 128, "name": "EVENT_FINGERPRINT", "comment": null}, "TRUE_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 129, "name": "TRUE_TSTAMP", "comment": null}, "LOAD_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 130, "name": "LOAD_TSTAMP", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_WEB_PAGE_1": {"type": "VARIANT", "index": 131, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_WEB_PAGE_1", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CONSENT_PREFERENCES_1": {"type": "OBJECT", "index": 132, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CONSENT_PREFERENCES_1", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CMP_VISIBLE_1": {"type": "OBJECT", "index": 133, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CMP_VISIBLE_1", "comment": null}, "CONTEXTS_COM_IAB_SNOWPLOW_SPIDERS_AND_ROBOTS_1": {"type": "VARIANT", "index": 134, "name": "CONTEXTS_COM_IAB_SNOWPLOW_SPIDERS_AND_ROBOTS_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_UA_PARSER_CONTEXT_1": {"type": "VARIANT", "index": 135, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_UA_PARSER_CONTEXT_1", "comment": null}, "CONTEXTS_NL_BASJES_YAUAA_CONTEXT_1": {"type": "VARIANT", "index": 136, "name": "CONTEXTS_NL_BASJES_YAUAA_CONTEXT_1", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_VIEW_1": {"type": "OBJECT", "index": 137, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_VIEW_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_CLIENT_SESSION_1": {"type": "VARIANT", "index": 138, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_CLIENT_SESSION_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_GEOLOCATION_CONTEXT_1": {"type": "VARIANT", "index": 139, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_GEOLOCATION_CONTEXT_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_APPLICATION_1": {"type": "VARIANT", "index": 140, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_APPLICATION_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_DEEP_LINK_1": {"type": "VARIANT", "index": 141, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_DEEP_LINK_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_BROWSER_CONTEXT_1": {"type": "VARIANT", "index": 142, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_BROWSER_CONTEXT_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_MOBILE_CONTEXT_1": {"type": "VARIANT", "index": 143, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_MOBILE_CONTEXT_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_1": {"type": "VARIANT", "index": 144, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_1", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_APPLICATION_ERROR_1": {"type": "OBJECT", "index": 145, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_APPLICATION_ERROR_1", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 146, "name": "USER_IDENTIFIER", "comment": null}, "PAGE_VIEW__ID": {"type": "TEXT", "index": 147, "name": "PAGE_VIEW__ID", "comment": null}, "IAB__CATEGORY": {"type": "TEXT", "index": 148, "name": "IAB__CATEGORY", "comment": null}, "IAB__PRIMARY_IMPACT": {"type": "TEXT", "index": 149, "name": "IAB__PRIMARY_IMPACT", "comment": null}, "IAB__REASON": {"type": "TEXT", "index": 150, "name": "IAB__REASON", "comment": null}, "IAB__SPIDER_OR_ROBOT": {"type": "BOOLEAN", "index": 151, "name": "IAB__SPIDER_OR_ROBOT", "comment": null}, "UA__USERAGENT_FAMILY": {"type": "TEXT", "index": 152, "name": "UA__USERAGENT_FAMILY", "comment": null}, "UA__USERAGENT_MAJOR": {"type": "TEXT", "index": 153, "name": "UA__USERAGENT_MAJOR", "comment": null}, "UA__USERAGENT_MINOR": {"type": "TEXT", "index": 154, "name": "UA__USERAGENT_MINOR", "comment": null}, "UA__USERAGENT_PATCH": {"type": "TEXT", "index": 155, "name": "UA__USERAGENT_PATCH", "comment": null}, "UA__USERAGENT_VERSION": {"type": "TEXT", "index": 156, "name": "UA__USERAGENT_VERSION", "comment": null}, "UA__OS_FAMILY": {"type": "TEXT", "index": 157, "name": "UA__OS_FAMILY", "comment": null}, "UA__OS_MAJOR": {"type": "TEXT", "index": 158, "name": "UA__OS_MAJOR", "comment": null}, "UA__OS_MINOR": {"type": "TEXT", "index": 159, "name": "UA__OS_MINOR", "comment": null}, "UA__OS_PATCH": {"type": "TEXT", "index": 160, "name": "UA__OS_PATCH", "comment": null}, "UA__OS_PATCH_MINOR": {"type": "TEXT", "index": 161, "name": "UA__OS_PATCH_MINOR", "comment": null}, "UA__OS_VERSION": {"type": "TEXT", "index": 162, "name": "UA__OS_VERSION", "comment": null}, "UA__DEVICE_FAMILY": {"type": "TEXT", "index": 163, "name": "UA__DEVICE_FAMILY", "comment": null}, "YAUAA__DEVICE_CLASS": {"type": "TEXT", "index": 164, "name": "YAUAA__DEVICE_CLASS", "comment": null}, "YAUAA__AGENT_CLASS": {"type": "TEXT", "index": 165, "name": "YAUAA__AGENT_CLASS", "comment": null}, "YAUAA__AGENT_NAME": {"type": "TEXT", "index": 166, "name": "YAUAA__AGENT_NAME", "comment": null}, "YAUAA__AGENT_NAME_VERSION": {"type": "TEXT", "index": 167, "name": "YAUAA__AGENT_NAME_VERSION", "comment": null}, "YAUAA__AGENT_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 168, "name": "YAUAA__AGENT_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__AGENT_VERSION": {"type": "TEXT", "index": 169, "name": "YAUAA__AGENT_VERSION", "comment": null}, "YAUAA__AGENT_VERSION_MAJOR": {"type": "TEXT", "index": 170, "name": "YAUAA__AGENT_VERSION_MAJOR", "comment": null}, "YAUAA__DEVICE_BRAND": {"type": "TEXT", "index": 171, "name": "YAUAA__DEVICE_BRAND", "comment": null}, "YAUAA__DEVICE_NAME": {"type": "TEXT", "index": 172, "name": "YAUAA__DEVICE_NAME", "comment": null}, "YAUAA__DEVICE_VERSION": {"type": "TEXT", "index": 173, "name": "YAUAA__DEVICE_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_CLASS": {"type": "TEXT", "index": 174, "name": "YAUAA__LAYOUT_ENGINE_CLASS", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME": {"type": "TEXT", "index": 175, "name": "YAUAA__LAYOUT_ENGINE_NAME", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION": {"type": "TEXT", "index": 176, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 177, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION": {"type": "TEXT", "index": 178, "name": "YAUAA__LAYOUT_ENGINE_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR": {"type": "TEXT", "index": 179, "name": "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR", "comment": null}, "YAUAA__OPERATING_SYSTEM_CLASS": {"type": "TEXT", "index": 180, "name": "YAUAA__OPERATING_SYSTEM_CLASS", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME": {"type": "TEXT", "index": 181, "name": "YAUAA__OPERATING_SYSTEM_NAME", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME_VERSION": {"type": "TEXT", "index": 182, "name": "YAUAA__OPERATING_SYSTEM_NAME_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_VERSION": {"type": "TEXT", "index": 183, "name": "YAUAA__OPERATING_SYSTEM_VERSION", "comment": null}, "BROWSER__VIEWPORT": {"type": "TEXT", "index": 184, "name": "BROWSER__VIEWPORT", "comment": null}, "BROWSER__DOCUMENT_SIZE": {"type": "TEXT", "index": 185, "name": "BROWSER__DOCUMENT_SIZE", "comment": null}, "BROWSER__RESOLUTION": {"type": "TEXT", "index": 186, "name": "BROWSER__RESOLUTION", "comment": null}, "BROWSER__COLOR_DEPTH": {"type": "NUMBER", "index": 187, "name": "BROWSER__COLOR_DEPTH", "comment": null}, "BROWSER__DEVICE_PIXEL_RATIO": {"type": "FLOAT", "index": 188, "name": "BROWSER__DEVICE_PIXEL_RATIO", "comment": null}, "BROWSER__COOKIES_ENABLED": {"type": "BOOLEAN", "index": 189, "name": "BROWSER__COOKIES_ENABLED", "comment": null}, "BROWSER__ONLINE": {"type": "BOOLEAN", "index": 190, "name": "BROWSER__ONLINE", "comment": null}, "BROWSER__BROWSER_LANGUAGE": {"type": "TEXT", "index": 191, "name": "BROWSER__BROWSER_LANGUAGE", "comment": null}, "BROWSER__DOCUMENT_LANGUAGE": {"type": "TEXT", "index": 192, "name": "BROWSER__DOCUMENT_LANGUAGE", "comment": null}, "BROWSER__WEBDRIVER": {"type": "BOOLEAN", "index": 193, "name": "BROWSER__WEBDRIVER", "comment": null}, "BROWSER__DEVICE_MEMORY": {"type": "NUMBER", "index": 194, "name": "BROWSER__DEVICE_MEMORY", "comment": null}, "BROWSER__HARDWARE_CONCURRENCY": {"type": "NUMBER", "index": 195, "name": "BROWSER__HARDWARE_CONCURRENCY", "comment": null}, "BROWSER__TAB_ID": {"type": "TEXT", "index": 196, "name": "BROWSER__TAB_ID", "comment": null}, "SCREEN_VIEW__ID": {"type": "TEXT", "index": 197, "name": "SCREEN_VIEW__ID", "comment": null}, "SCREEN_VIEW__NAME": {"type": "TEXT", "index": 198, "name": "SCREEN_VIEW__NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_ID": {"type": "TEXT", "index": 199, "name": "SCREEN_VIEW__PREVIOUS_ID", "comment": null}, "SCREEN_VIEW__PREVIOUS_NAME": {"type": "TEXT", "index": 200, "name": "SCREEN_VIEW__PREVIOUS_NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_TYPE": {"type": "TEXT", "index": 201, "name": "SCREEN_VIEW__PREVIOUS_TYPE", "comment": null}, "SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 202, "name": "SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 203, "name": "SCREEN_VIEW__TYPE", "comment": null}, "SESSION__SESSION_ID": {"type": "TEXT", "index": 204, "name": "SESSION__SESSION_ID", "comment": null}, "SESSION__SESSION_INDEX": {"type": "NUMBER", "index": 205, "name": "SESSION__SESSION_INDEX", "comment": null}, "SESSION__PREVIOUS_SESSION_ID": {"type": "TEXT", "index": 206, "name": "SESSION__PREVIOUS_SESSION_ID", "comment": null}, "SESSION__USER_ID": {"type": "TEXT", "index": 207, "name": "SESSION__USER_ID", "comment": null}, "SESSION__FIRST_EVENT_ID": {"type": "TEXT", "index": 208, "name": "SESSION__FIRST_EVENT_ID", "comment": null}, "SESSION__EVENT_INDEX": {"type": "NUMBER", "index": 209, "name": "SESSION__EVENT_INDEX", "comment": null}, "SESSION__STORAGE_MECHANISM": {"type": "TEXT", "index": 210, "name": "SESSION__STORAGE_MECHANISM", "comment": null}, "SESSION__FIRST_EVENT_TIMESTAMP": {"type": "TEXT", "index": 211, "name": "SESSION__FIRST_EVENT_TIMESTAMP", "comment": null}, "MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 212, "name": "MOBILE__DEVICE_MANUFACTURER", "comment": null}, "MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 213, "name": "MOBILE__DEVICE_MODEL", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 214, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 215, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 216, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 217, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 218, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__CARRIER": {"type": "TEXT", "index": 219, "name": "MOBILE__CARRIER", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 220, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 221, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 222, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 223, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 224, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 225, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 226, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 227, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 228, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 229, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 230, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 231, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 232, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "FLOAT", "index": 233, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 234, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 235, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 236, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "GEO__LATITUDE": {"type": "FLOAT", "index": 237, "name": "GEO__LATITUDE", "comment": null}, "GEO__LONGITUDE": {"type": "FLOAT", "index": 238, "name": "GEO__LONGITUDE", "comment": null}, "GEO__LATITUDE_LONGITUDE_ACCURACY": {"type": "FLOAT", "index": 239, "name": "GEO__LATITUDE_LONGITUDE_ACCURACY", "comment": null}, "GEO__ALTITUDE": {"type": "FLOAT", "index": 240, "name": "GEO__ALTITUDE", "comment": null}, "GEO__ALTITUDE_ACCURACY": {"type": "FLOAT", "index": 241, "name": "GEO__ALTITUDE_ACCURACY", "comment": null}, "GEO__BEARING": {"type": "FLOAT", "index": 242, "name": "GEO__BEARING", "comment": null}, "GEO__SPEED": {"type": "FLOAT", "index": 243, "name": "GEO__SPEED", "comment": null}, "APP__BUILD": {"type": "TEXT", "index": 244, "name": "APP__BUILD", "comment": null}, "APP__VERSION": {"type": "TEXT", "index": 245, "name": "APP__VERSION", "comment": null}, "SCREEN__ID": {"type": "TEXT", "index": 246, "name": "SCREEN__ID", "comment": null}, "SCREEN__NAME": {"type": "TEXT", "index": 247, "name": "SCREEN__NAME", "comment": null}, "SCREEN__ACTIVITY": {"type": "TEXT", "index": 248, "name": "SCREEN__ACTIVITY", "comment": null}, "SCREEN__FRAGMENT": {"type": "TEXT", "index": 249, "name": "SCREEN__FRAGMENT", "comment": null}, "SCREEN__TOP_VIEW_CONTROLLER": {"type": "TEXT", "index": 250, "name": "SCREEN__TOP_VIEW_CONTROLLER", "comment": null}, "SCREEN__TYPE": {"type": "TEXT", "index": 251, "name": "SCREEN__TYPE", "comment": null}, "SCREEN__VIEW_CONTROLLER": {"type": "TEXT", "index": 252, "name": "SCREEN__VIEW_CONTROLLER", "comment": null}, "DEEP_LINK__URL": {"type": "TEXT", "index": 253, "name": "DEEP_LINK__URL", "comment": null}, "DEEP_LINK__REFERRER": {"type": "TEXT", "index": 254, "name": "DEEP_LINK__REFERRER", "comment": null}, "APP_ERROR__MESSAGE": {"type": "TEXT", "index": 255, "name": "APP_ERROR__MESSAGE", "comment": null}, "APP_ERROR__PROGRAMMING_LANGUAGE": {"type": "TEXT", "index": 256, "name": "APP_ERROR__PROGRAMMING_LANGUAGE", "comment": null}, "APP_ERROR__CLASS_NAME": {"type": "TEXT", "index": 257, "name": "APP_ERROR__CLASS_NAME", "comment": null}, "APP_ERROR__EXCEPTION_NAME": {"type": "TEXT", "index": 258, "name": "APP_ERROR__EXCEPTION_NAME", "comment": null}, "APP_ERROR__IS_FATAL": {"type": "BOOLEAN", "index": 259, "name": "APP_ERROR__IS_FATAL", "comment": null}, "APP_ERROR__LINE_NUMBER": {"type": "NUMBER", "index": 260, "name": "APP_ERROR__LINE_NUMBER", "comment": null}, "APP_ERROR__STACK_TRACE": {"type": "TEXT", "index": 261, "name": "APP_ERROR__STACK_TRACE", "comment": null}, "APP_ERROR__THREAD_ID": {"type": "NUMBER", "index": 262, "name": "APP_ERROR__THREAD_ID", "comment": null}, "APP_ERROR__THREAD_NAME": {"type": "TEXT", "index": 263, "name": "APP_ERROR__THREAD_NAME", "comment": null}, "SCREEN_SUMMARY__FOREGROUND_SEC": {"type": "FLOAT", "index": 264, "name": "SCREEN_SUMMARY__FOREGROUND_SEC", "comment": null}, "SCREEN_SUMMARY__BACKGROUND_SEC": {"type": "FLOAT", "index": 265, "name": "SCREEN_SUMMARY__BACKGROUND_SEC", "comment": null}, "SCREEN_SUMMARY__LAST_ITEM_INDEX": {"type": "NUMBER", "index": 266, "name": "SCREEN_SUMMARY__LAST_ITEM_INDEX", "comment": null}, "SCREEN_SUMMARY__ITEMS_COUNT": {"type": "NUMBER", "index": 267, "name": "SCREEN_SUMMARY__ITEMS_COUNT", "comment": null}, "SCREEN_SUMMARY__MIN_X_OFFSET": {"type": "NUMBER", "index": 268, "name": "SCREEN_SUMMARY__MIN_X_OFFSET", "comment": null}, "SCREEN_SUMMARY__MIN_Y_OFFSET": {"type": "NUMBER", "index": 269, "name": "SCREEN_SUMMARY__MIN_Y_OFFSET", "comment": null}, "SCREEN_SUMMARY__MAX_X_OFFSET": {"type": "NUMBER", "index": 270, "name": "SCREEN_SUMMARY__MAX_X_OFFSET", "comment": null}, "SCREEN_SUMMARY__MAX_Y_OFFSET": {"type": "NUMBER", "index": 271, "name": "SCREEN_SUMMARY__MAX_Y_OFFSET", "comment": null}, "SCREEN_SUMMARY__CONTENT_WIDTH": {"type": "NUMBER", "index": 272, "name": "SCREEN_SUMMARY__CONTENT_WIDTH", "comment": null}, "SCREEN_SUMMARY__CONTENT_HEIGHT": {"type": "NUMBER", "index": 273, "name": "SCREEN_SUMMARY__CONTENT_HEIGHT", "comment": null}, "CONSENT__EVENT_TYPE": {"type": "TEXT", "index": 274, "name": "CONSENT__EVENT_TYPE", "comment": null}, "CONSENT__BASIS_FOR_PROCESSING": {"type": "TEXT", "index": 275, "name": "CONSENT__BASIS_FOR_PROCESSING", "comment": null}, "CONSENT__CONSENT_URL": {"type": "TEXT", "index": 276, "name": "CONSENT__CONSENT_URL", "comment": null}, "CONSENT__CONSENT_VERSION": {"type": "TEXT", "index": 277, "name": "CONSENT__CONSENT_VERSION", "comment": null}, "CONSENT__CONSENT_SCOPES": {"type": "ARRAY", "index": 278, "name": "CONSENT__CONSENT_SCOPES", "comment": null}, "CONSENT__DOMAINS_APPLIED": {"type": "ARRAY", "index": 279, "name": "CONSENT__DOMAINS_APPLIED", "comment": null}, "CONSENT__GDPR_APPLIES": {"type": "BOOLEAN", "index": 280, "name": "CONSENT__GDPR_APPLIES", "comment": null}, "CMP__ELAPSED_TIME": {"type": "FLOAT", "index": 281, "name": "CMP__ELAPSED_TIME", "comment": null}, "VIEW_ID": {"type": "TEXT", "index": 282, "name": "VIEW_ID", "comment": null}, "DEVICE_SESSION_INDEX": {"type": "NUMBER", "index": 283, "name": "DEVICE_SESSION_INDEX", "comment": null}, "REFERRER": {"type": "TEXT", "index": 284, "name": "REFERRER", "comment": null}, "URL": {"type": "TEXT", "index": 285, "name": "URL", "comment": null}, "SCREEN_RESOLUTION": {"type": "TEXT", "index": 286, "name": "SCREEN_RESOLUTION", "comment": null}, "OS_TYPE": {"type": "TEXT", "index": 287, "name": "OS_TYPE", "comment": null}, "OS_VERSION": {"type": "TEXT", "index": 288, "name": "OS_VERSION", "comment": null}, "DEVICE_IDENTIFIER": {"type": "TEXT", "index": 289, "name": "DEVICE_IDENTIFIER", "comment": null}, "PLATFORM_NAME": {"type": "TEXT", "index": 290, "name": "PLATFORM_NAME", "comment": null}, "DEVICE_CATEGORY": {"type": "TEXT", "index": 291, "name": "DEVICE_CATEGORY", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 219, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 257536, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_events_this_run"}, "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_WEB_VITAL_MEASUREMENTS_EXPECTED", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"COMPOUND_KEY": {"type": "TEXT", "index": 1, "name": "COMPOUND_KEY", "comment": null}, "MEASUREMENT_TYPE": {"type": "TEXT", "index": 2, "name": "MEASUREMENT_TYPE", "comment": null}, "PAGE_URL": {"type": "TEXT", "index": 3, "name": "PAGE_URL", "comment": null}, "DEVICE_CLASS": {"type": "TEXT", "index": 4, "name": "DEVICE_CLASS", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 5, "name": "GEO_COUNTRY", "comment": null}, "COUNTRY": {"type": "TEXT", "index": 6, "name": "COUNTRY", "comment": null}, "TIME_PERIOD": {"type": "TEXT", "index": 7, "name": "TIME_PERIOD", "comment": null}, "VIEW_COUNT": {"type": "NUMBER", "index": 8, "name": "VIEW_COUNT", "comment": null}, "LCP_75P": {"type": "FLOAT", "index": 9, "name": "LCP_75P", "comment": null}, "FID_75P": {"type": "FLOAT", "index": 10, "name": "FID_75P", "comment": null}, "CLS_75P": {"type": "FLOAT", "index": 11, "name": "CLS_75P", "comment": null}, "TTFB_75P": {"type": "FLOAT", "index": 12, "name": "TTFB_75P", "comment": null}, "INP_75P": {"type": "FLOAT", "index": 13, "name": "INP_75P", "comment": null}, "LCP_RESULT": {"type": "TEXT", "index": 14, "name": "LCP_RESULT", "comment": null}, "FID_RESULT": {"type": "TEXT", "index": 15, "name": "FID_RESULT", "comment": null}, "CLS_RESULT": {"type": "TEXT", "index": 16, "name": "CLS_RESULT", "comment": null}, "TTFB_RESULT": {"type": "TEXT", "index": 17, "name": "TTFB_RESULT", "comment": null}, "INP_RESULT": {"type": "TEXT", "index": 18, "name": "INP_RESULT", "comment": null}, "PASSED": {"type": "NUMBER", "index": 19, "name": "PASSED", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 209, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 21504, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected"}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected_stg": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_TOTALS_EXPECTED_STG", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"CONSENT_VERSION": {"type": "TEXT", "index": 1, "name": "CONSENT_VERSION", "comment": null}, "VERSION_START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "VERSION_START_TSTAMP", "comment": null}, "CONSENT_SCOPES": {"type": "TEXT", "index": 3, "name": "CONSENT_SCOPES", "comment": null}, "CONSENT_URL": {"type": "TEXT", "index": 4, "name": "CONSENT_URL", "comment": null}, "DOMAINS_APPLIED": {"type": "TEXT", "index": 5, "name": "DOMAINS_APPLIED", "comment": null}, "IS_LATEST_VERSION": {"type": "BOOLEAN", "index": 6, "name": "IS_LATEST_VERSION", "comment": null}, "LAST_ALLOW_ALL_EVENT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "LAST_ALLOW_ALL_EVENT", "comment": null}, "TOTAL_VISITORS": {"type": "NUMBER", "index": 8, "name": "TOTAL_VISITORS", "comment": null}, "ALLOW_ALL": {"type": "NUMBER", "index": 9, "name": "ALLOW_ALL", "comment": null}, "ALLOW_SELECTED": {"type": "NUMBER", "index": 10, "name": "ALLOW_SELECTED", "comment": null}, "ALLOW": {"type": "NUMBER", "index": 11, "name": "ALLOW", "comment": null}, "PENDING": {"type": "NUMBER", "index": 12, "name": "PENDING", "comment": null}, "DENIED": {"type": "NUMBER", "index": 13, "name": "DENIED", "comment": null}, "EXPIRED": {"type": "NUMBER", "index": 14, "name": "EXPIRED", "comment": null}, "WITHDRAWN": {"type": "NUMBER", "index": 15, "name": "WITHDRAWN", "comment": null}, "IMPLICIT_CONSENT": {"type": "NUMBER", "index": 16, "name": "IMPLICIT_CONSENT", "comment": null}, "EXPIRES_IN_SIX_MONTHS": {"type": "NUMBER", "index": 17, "name": "EXPIRES_IN_SIX_MONTHS", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected_stg"}, "seed.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_VERSIONS_EXPECTED", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"CONSENT_VERSION": {"type": "TEXT", "index": 1, "name": "CONSENT_VERSION", "comment": null}, "VERSION_START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "VERSION_START_TSTAMP", "comment": null}, "CONSENT_SCOPES": {"type": "TEXT", "index": 3, "name": "CONSENT_SCOPES", "comment": null}, "CONSENT_URL": {"type": "TEXT", "index": 4, "name": "CONSENT_URL", "comment": null}, "DOMAINS_APPLIED": {"type": "TEXT", "index": 5, "name": "DOMAINS_APPLIED", "comment": null}, "IS_LATEST_VERSION": {"type": "BOOLEAN", "index": 6, "name": "IS_LATEST_VERSION", "comment": null}, "LAST_ALLOW_ALL_EVENT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "LAST_ALLOW_ALL_EVENT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 3072, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected"}, "model.snowplow_unified.snowplow_unified_sessions": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_DERIVED", "name": "SNOWPLOW_UNIFIED_SESSIONS", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"FIRST_EVENT_NAME": {"type": "TEXT", "index": 1, "name": "FIRST_EVENT_NAME", "comment": null}, "LAST_EVENT_NAME": {"type": "TEXT", "index": 2, "name": "LAST_EVENT_NAME", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 3, "name": "SESSION_IDENTIFIER", "comment": null}, "SESSION__PREVIOUS_SESSION_ID": {"type": "TEXT", "index": 4, "name": "SESSION__PREVIOUS_SESSION_ID", "comment": null}, "USER_ID": {"type": "TEXT", "index": 5, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 6, "name": "USER_IDENTIFIER", "comment": null}, "STITCHED_USER_ID": {"type": "TEXT", "index": 7, "name": "STITCHED_USER_ID", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 8, "name": "NETWORK_USERID", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "END_TSTAMP", "comment": null}, "MODEL_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "MODEL_TSTAMP", "comment": null}, "APP_ID": {"type": "TEXT", "index": 12, "name": "APP_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "DEVICE_IDENTIFIER": {"type": "TEXT", "index": 14, "name": "DEVICE_IDENTIFIER", "comment": null}, "DEVICE_CATEGORY": {"type": "TEXT", "index": 15, "name": "DEVICE_CATEGORY", "comment": null}, "DEVICE_SESSION_INDEX": {"type": "NUMBER", "index": 16, "name": "DEVICE_SESSION_INDEX", "comment": null}, "OS_VERSION": {"type": "TEXT", "index": 17, "name": "OS_VERSION", "comment": null}, "OS_TYPE": {"type": "TEXT", "index": 18, "name": "OS_TYPE", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 19, "name": "OS_TIMEZONE", "comment": null}, "SCREEN_RESOLUTION": {"type": "TEXT", "index": 20, "name": "SCREEN_RESOLUTION", "comment": null}, "YAUAA__DEVICE_CLASS": {"type": "TEXT", "index": 21, "name": "YAUAA__DEVICE_CLASS", "comment": null}, "YAUAA__DEVICE_VERSION": {"type": "TEXT", "index": 22, "name": "YAUAA__DEVICE_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_VERSION": {"type": "TEXT", "index": 23, "name": "YAUAA__OPERATING_SYSTEM_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_CLASS": {"type": "TEXT", "index": 24, "name": "YAUAA__OPERATING_SYSTEM_CLASS", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME": {"type": "TEXT", "index": 25, "name": "YAUAA__OPERATING_SYSTEM_NAME", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME_VERSION": {"type": "TEXT", "index": 26, "name": "YAUAA__OPERATING_SYSTEM_NAME_VERSION", "comment": null}, "MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 27, "name": "MOBILE__DEVICE_MANUFACTURER", "comment": null}, "MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 28, "name": "MOBILE__DEVICE_MODEL", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 29, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 30, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 31, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 32, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 33, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__CARRIER": {"type": "TEXT", "index": 34, "name": "MOBILE__CARRIER", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 35, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 36, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 37, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 38, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 39, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 40, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 41, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 42, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 43, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 44, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 45, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 46, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 47, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "FLOAT", "index": 48, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 49, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 50, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 51, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "FIRST_GEO_COUNTRY": {"type": "TEXT", "index": 52, "name": "FIRST_GEO_COUNTRY", "comment": null}, "FIRST_GEO_REGION_NAME": {"type": "TEXT", "index": 53, "name": "FIRST_GEO_REGION_NAME", "comment": null}, "FIRST_GEO_CITY": {"type": "TEXT", "index": 54, "name": "FIRST_GEO_CITY", "comment": null}, "FIRST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 55, "name": "FIRST_GEO_COUNTRY_NAME", "comment": null}, "FIRST_GEO_CONTINENT": {"type": "TEXT", "index": 56, "name": "FIRST_GEO_CONTINENT", "comment": null}, "LAST_GEO_COUNTRY": {"type": "TEXT", "index": 57, "name": "LAST_GEO_COUNTRY", "comment": null}, "LAST_GEO_REGION_NAME": {"type": "TEXT", "index": 58, "name": "LAST_GEO_REGION_NAME", "comment": null}, "LAST_GEO_CITY": {"type": "TEXT", "index": 59, "name": "LAST_GEO_CITY", "comment": null}, "LAST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 60, "name": "LAST_GEO_COUNTRY_NAME", "comment": null}, "LAST_GEO_CONTINENT": {"type": "TEXT", "index": 61, "name": "LAST_GEO_CONTINENT", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 62, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 63, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 64, "name": "GEO_LONGITUDE", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 65, "name": "GEO_TIMEZONE", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 66, "name": "USER_IPADDRESS", "comment": null}, "VIEWS": {"type": "NUMBER", "index": 67, "name": "VIEWS", "comment": null}, "EVENT_COUNTS": {"type": "VARIANT", "index": 68, "name": "EVENT_COUNTS", "comment": null}, "TOTAL_EVENTS": {"type": "NUMBER", "index": 69, "name": "TOTAL_EVENTS", "comment": null}, "IS_ENGAGED": {"type": "BOOLEAN", "index": 70, "name": "IS_ENGAGED", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 71, "name": "ENGAGED_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "NUMBER", "index": 72, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "SCREEN_NAMES_VIEWED": {"type": "NUMBER", "index": 73, "name": "SCREEN_NAMES_VIEWED", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 74, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 75, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 76, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 77, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 78, "name": "MKT_CAMPAIGN", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 79, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 80, "name": "MKT_NETWORK", "comment": null}, "DEFAULT_CHANNEL_GROUP": {"type": "TEXT", "index": 81, "name": "DEFAULT_CHANNEL_GROUP", "comment": null}, "MKT_SOURCE_PLATFORM": {"type": "TEXT", "index": 82, "name": "MKT_SOURCE_PLATFORM", "comment": null}, "FIRST_PAGE_URL": {"type": "TEXT", "index": 83, "name": "FIRST_PAGE_URL", "comment": null}, "LAST_PAGE_URL": {"type": "TEXT", "index": 84, "name": "LAST_PAGE_URL", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 85, "name": "PAGE_REFERRER", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 86, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 87, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 88, "name": "REFR_TERM", "comment": null}, "FIRST_PAGE_TITLE": {"type": "TEXT", "index": 89, "name": "FIRST_PAGE_TITLE", "comment": null}, "FIRST_PAGE_URLSCHEME": {"type": "TEXT", "index": 90, "name": "FIRST_PAGE_URLSCHEME", "comment": null}, "FIRST_PAGE_URLHOST": {"type": "TEXT", "index": 91, "name": "FIRST_PAGE_URLHOST", "comment": null}, "FIRST_PAGE_URLPATH": {"type": "TEXT", "index": 92, "name": "FIRST_PAGE_URLPATH", "comment": null}, "FIRST_PAGE_URLQUERY": {"type": "TEXT", "index": 93, "name": "FIRST_PAGE_URLQUERY", "comment": null}, "FIRST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 94, "name": "FIRST_PAGE_URLFRAGMENT", "comment": null}, "LAST_PAGE_TITLE": {"type": "TEXT", "index": 95, "name": "LAST_PAGE_TITLE", "comment": null}, "LAST_PAGE_URLSCHEME": {"type": "TEXT", "index": 96, "name": "LAST_PAGE_URLSCHEME", "comment": null}, "LAST_PAGE_URLHOST": {"type": "TEXT", "index": 97, "name": "LAST_PAGE_URLHOST", "comment": null}, "LAST_PAGE_URLPATH": {"type": "TEXT", "index": 98, "name": "LAST_PAGE_URLPATH", "comment": null}, "LAST_PAGE_URLQUERY": {"type": "TEXT", "index": 99, "name": "LAST_PAGE_URLQUERY", "comment": null}, "LAST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 100, "name": "LAST_PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 101, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 102, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 103, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 104, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 105, "name": "REFR_URLFRAGMENT", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 106, "name": "BR_RENDERENGINE", "comment": null}, "FIRST_BR_LANG": {"type": "TEXT", "index": 107, "name": "FIRST_BR_LANG", "comment": null}, "FIRST_BR_LANG_NAME": {"type": "TEXT", "index": 108, "name": "FIRST_BR_LANG_NAME", "comment": null}, "LAST_BR_LANG": {"type": "TEXT", "index": 109, "name": "LAST_BR_LANG", "comment": null}, "LAST_BR_LANG_NAME": {"type": "TEXT", "index": 110, "name": "LAST_BR_LANG_NAME", "comment": null}, "IAB__CATEGORY": {"type": "TEXT", "index": 111, "name": "IAB__CATEGORY", "comment": null}, "IAB__PRIMARY_IMPACT": {"type": "TEXT", "index": 112, "name": "IAB__PRIMARY_IMPACT", "comment": null}, "IAB__REASON": {"type": "TEXT", "index": 113, "name": "IAB__REASON", "comment": null}, "IAB__SPIDER_OR_ROBOT": {"type": "BOOLEAN", "index": 114, "name": "IAB__SPIDER_OR_ROBOT", "comment": null}, "YAUAA__DEVICE_NAME": {"type": "TEXT", "index": 115, "name": "YAUAA__DEVICE_NAME", "comment": null}, "YAUAA__AGENT_CLASS": {"type": "TEXT", "index": 116, "name": "YAUAA__AGENT_CLASS", "comment": null}, "YAUAA__AGENT_NAME": {"type": "TEXT", "index": 117, "name": "YAUAA__AGENT_NAME", "comment": null}, "YAUAA__AGENT_NAME_VERSION": {"type": "TEXT", "index": 118, "name": "YAUAA__AGENT_NAME_VERSION", "comment": null}, "YAUAA__AGENT_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 119, "name": "YAUAA__AGENT_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__AGENT_VERSION": {"type": "TEXT", "index": 120, "name": "YAUAA__AGENT_VERSION", "comment": null}, "YAUAA__AGENT_VERSION_MAJOR": {"type": "TEXT", "index": 121, "name": "YAUAA__AGENT_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_CLASS": {"type": "TEXT", "index": 122, "name": "YAUAA__LAYOUT_ENGINE_CLASS", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME": {"type": "TEXT", "index": 123, "name": "YAUAA__LAYOUT_ENGINE_NAME", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION": {"type": "TEXT", "index": 124, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 125, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION": {"type": "TEXT", "index": 126, "name": "YAUAA__LAYOUT_ENGINE_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR": {"type": "TEXT", "index": 127, "name": "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR", "comment": null}, "UA__DEVICE_FAMILY": {"type": "TEXT", "index": 128, "name": "UA__DEVICE_FAMILY", "comment": null}, "UA__OS_VERSION": {"type": "TEXT", "index": 129, "name": "UA__OS_VERSION", "comment": null}, "UA__OS_MAJOR": {"type": "TEXT", "index": 130, "name": "UA__OS_MAJOR", "comment": null}, "UA__OS_MINOR": {"type": "TEXT", "index": 131, "name": "UA__OS_MINOR", "comment": null}, "UA__OS_PATCH": {"type": "TEXT", "index": 132, "name": "UA__OS_PATCH", "comment": null}, "UA__OS_PATCH_MINOR": {"type": "TEXT", "index": 133, "name": "UA__OS_PATCH_MINOR", "comment": null}, "UA__USERAGENT_FAMILY": {"type": "TEXT", "index": 134, "name": "UA__USERAGENT_FAMILY", "comment": null}, "UA__USERAGENT_MAJOR": {"type": "TEXT", "index": 135, "name": "UA__USERAGENT_MAJOR", "comment": null}, "UA__USERAGENT_MINOR": {"type": "TEXT", "index": 136, "name": "UA__USERAGENT_MINOR", "comment": null}, "UA__USERAGENT_PATCH": {"type": "TEXT", "index": 137, "name": "UA__USERAGENT_PATCH", "comment": null}, "UA__USERAGENT_VERSION": {"type": "TEXT", "index": 138, "name": "UA__USERAGENT_VERSION", "comment": null}, "FIRST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 139, "name": "FIRST_SCREEN_VIEW__NAME", "comment": null}, "FIRST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 140, "name": "FIRST_SCREEN_VIEW__TYPE", "comment": null}, "LAST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 141, "name": "LAST_SCREEN_VIEW__NAME", "comment": null}, "LAST_SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 142, "name": "LAST_SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "LAST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 143, "name": "LAST_SCREEN_VIEW__TYPE", "comment": null}, "SCREEN_VIEW__PREVIOUS_ID": {"type": "TEXT", "index": 144, "name": "SCREEN_VIEW__PREVIOUS_ID", "comment": null}, "SCREEN_VIEW__PREVIOUS_NAME": {"type": "TEXT", "index": 145, "name": "SCREEN_VIEW__PREVIOUS_NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_TYPE": {"type": "TEXT", "index": 146, "name": "SCREEN_VIEW__PREVIOUS_TYPE", "comment": null}, "FIRST_APP__BUILD": {"type": "TEXT", "index": 147, "name": "FIRST_APP__BUILD", "comment": null}, "FIRST_APP__VERSION": {"type": "TEXT", "index": 148, "name": "FIRST_APP__VERSION", "comment": null}, "FIRST_GEO__ALTITUDE": {"type": "FLOAT", "index": 149, "name": "FIRST_GEO__ALTITUDE", "comment": null}, "FIRST_GEO__ALTITUDE_ACCURACY": {"type": "FLOAT", "index": 150, "name": "FIRST_GEO__ALTITUDE_ACCURACY", "comment": null}, "FIRST_GEO__BEARING": {"type": "FLOAT", "index": 151, "name": "FIRST_GEO__BEARING", "comment": null}, "FIRST_GEO__LATITUDE": {"type": "FLOAT", "index": 152, "name": "FIRST_GEO__LATITUDE", "comment": null}, "FIRST_GEO__LATITUDE_LONGITUDE_ACCURACY": {"type": "FLOAT", "index": 153, "name": "FIRST_GEO__LATITUDE_LONGITUDE_ACCURACY", "comment": null}, "FIRST_GEO__LONGITUDE": {"type": "FLOAT", "index": 154, "name": "FIRST_GEO__LONGITUDE", "comment": null}, "FIRST_GEO__SPEED": {"type": "FLOAT", "index": 155, "name": "FIRST_GEO__SPEED", "comment": null}, "SCREEN__FRAGMENT": {"type": "TEXT", "index": 156, "name": "SCREEN__FRAGMENT", "comment": null}, "SCREEN__TOP_VIEW_CONTROLLER": {"type": "TEXT", "index": 157, "name": "SCREEN__TOP_VIEW_CONTROLLER", "comment": null}, "SCREEN__VIEW_CONTROLLER": {"type": "TEXT", "index": 158, "name": "SCREEN__VIEW_CONTROLLER", "comment": null}, "APP_ERRORS": {"type": "NUMBER", "index": 159, "name": "APP_ERRORS", "comment": null}, "FATAL_APP_ERRORS": {"type": "NUMBER", "index": 160, "name": "FATAL_APP_ERRORS", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 161, "name": "USERAGENT", "comment": null}, "CV_VIEW_PAGE_VOLUME": {"type": "NUMBER", "index": 162, "name": "CV_VIEW_PAGE_VOLUME", "comment": null}, "CV_VIEW_PAGE_EVENTS": {"type": "ARRAY", "index": 163, "name": "CV_VIEW_PAGE_EVENTS", "comment": null}, "CV_VIEW_PAGE_VALUES": {"type": "ARRAY", "index": 164, "name": "CV_VIEW_PAGE_VALUES", "comment": null}, "CV_VIEW_PAGE_TOTAL": {"type": "FLOAT", "index": 165, "name": "CV_VIEW_PAGE_TOTAL", "comment": null}, "CV_VIEW_PAGE_FIRST_CONVERSION": {"type": "TIMESTAMP_NTZ", "index": 166, "name": "CV_VIEW_PAGE_FIRST_CONVERSION", "comment": null}, "CV_VIEW_PAGE_CONVERTED": {"type": "BOOLEAN", "index": 167, "name": "CV_VIEW_PAGE_CONVERTED", "comment": null}, "CV__ALL_VOLUME": {"type": "NUMBER", "index": 168, "name": "CV__ALL_VOLUME", "comment": null}, "CV__ALL_TOTAL": {"type": "FLOAT", "index": 169, "name": "CV__ALL_TOTAL", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 170, "name": "EVENT_ID", "comment": null}, "EVENT_ID2": {"type": "TEXT", "index": 171, "name": "EVENT_ID2", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 21, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 87040, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(to_date(start_tstamp))", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_sessions"}, "seed.snowplow_unified.snowplow_unified_dim_geo_country_mapping": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNOWPLOW_MANIFEST", "name": "SNOWPLOW_UNIFIED_DIM_GEO_COUNTRY_MAPPING", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"NAME": {"type": "TEXT", "index": 1, "name": "NAME", "comment": null}, "ALPHA_2": {"type": "TEXT", "index": 2, "name": "ALPHA_2", "comment": null}, "ALPHA_3": {"type": "TEXT", "index": 3, "name": "ALPHA_3", "comment": null}, "COUNTRY_CODE": {"type": "NUMBER", "index": 4, "name": "COUNTRY_CODE", "comment": null}, "ISO_3166_2": {"type": "TEXT", "index": 5, "name": "ISO_3166_2", "comment": null}, "REGION": {"type": "TEXT", "index": 6, "name": "REGION", "comment": null}, "SUB_REGION": {"type": "TEXT", "index": 7, "name": "SUB_REGION", "comment": null}, "INTERMEDIATE_REGION": {"type": "TEXT", "index": 8, "name": "INTERMEDIATE_REGION", "comment": null}, "REGION_CODE": {"type": "NUMBER", "index": 9, "name": "REGION_CODE", "comment": null}, "SUB_REGION_CODE": {"type": "NUMBER", "index": 10, "name": "SUB_REGION_CODE", "comment": null}, "INTERMEDIATE_REGION_CODE": {"type": "NUMBER", "index": 11, "name": "INTERMEDIATE_REGION_CODE", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 249, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 12800, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified.snowplow_unified_dim_geo_country_mapping"}, "seed.snowplow_unified_integration_tests.snowplow_unified_geolocation_context": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_GEOLOCATION_CONTEXT", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"ROOT_TSTAMP": {"type": "TEXT", "index": 1, "name": "ROOT_TSTAMP", "comment": null}, "ROOT_ID": {"type": "TEXT", "index": 2, "name": "ROOT_ID", "comment": null}, "LATITUDE": {"type": "FLOAT", "index": 3, "name": "LATITUDE", "comment": null}, "LONGITUDE": {"type": "FLOAT", "index": 4, "name": "LONGITUDE", "comment": null}, "LATITUDE_LONGITUDE_ACCURACY": {"type": "FLOAT", "index": 5, "name": "LATITUDE_LONGITUDE_ACCURACY", "comment": null}, "ALTITUDE": {"type": "FLOAT", "index": 6, "name": "ALTITUDE", "comment": null}, "ALTITUDE_ACCURACY": {"type": "FLOAT", "index": 7, "name": "ALTITUDE_ACCURACY", "comment": null}, "BEARING": {"type": "FLOAT", "index": 8, "name": "BEARING", "comment": null}, "SPEED": {"type": "FLOAT", "index": 9, "name": "SPEED", "comment": null}, "TIMESTAMP": {"type": "NUMBER", "index": 10, "name": "TIMESTAMP", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 124, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 10240, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_geolocation_context"}, "model.snowplow_unified.snowplow_unified_consent_totals": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_DERIVED", "name": "SNOWPLOW_UNIFIED_CONSENT_TOTALS", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"CONSENT_VERSION": {"type": "TEXT", "index": 1, "name": "CONSENT_VERSION", "comment": null}, "VERSION_START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "VERSION_START_TSTAMP", "comment": null}, "CONSENT_SCOPES": {"type": "TEXT", "index": 3, "name": "CONSENT_SCOPES", "comment": null}, "CONSENT_URL": {"type": "TEXT", "index": 4, "name": "CONSENT_URL", "comment": null}, "DOMAINS_APPLIED": {"type": "TEXT", "index": 5, "name": "DOMAINS_APPLIED", "comment": null}, "IS_LATEST_VERSION": {"type": "BOOLEAN", "index": 6, "name": "IS_LATEST_VERSION", "comment": null}, "LAST_ALLOW_ALL_EVENT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "LAST_ALLOW_ALL_EVENT", "comment": null}, "TOTAL_VISITORS": {"type": "NUMBER", "index": 8, "name": "TOTAL_VISITORS", "comment": null}, "ALLOW_ALL": {"type": "NUMBER", "index": 9, "name": "ALLOW_ALL", "comment": null}, "ALLOW_SELECTED": {"type": "NUMBER", "index": 10, "name": "ALLOW_SELECTED", "comment": null}, "ALLOW": {"type": "NUMBER", "index": 11, "name": "ALLOW", "comment": null}, "PENDING": {"type": "NUMBER", "index": 12, "name": "PENDING", "comment": null}, "DENIED": {"type": "NUMBER", "index": 13, "name": "DENIED", "comment": null}, "EXPIRED": {"type": "NUMBER", "index": 14, "name": "EXPIRED", "comment": null}, "WITHDRAWN": {"type": "NUMBER", "index": 15, "name": "WITHDRAWN", "comment": null}, "IMPLICIT_CONSENT": {"type": "NUMBER", "index": 16, "name": "IMPLICIT_CONSENT", "comment": null}, "EXPIRES_IN_SIX_MONTHS": {"type": "NUMBER", "index": 17, "name": "EXPIRES_IN_SIX_MONTHS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 5120, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_consent_totals"}, "seed.snowplow_unified_integration_tests.snowplow_unified_sessions_expected": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_SESSIONS_EXPECTED", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"FIRST_EVENT_NAME": {"type": "TEXT", "index": 1, "name": "FIRST_EVENT_NAME", "comment": null}, "LAST_EVENT_NAME": {"type": "TEXT", "index": 2, "name": "LAST_EVENT_NAME", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 3, "name": "SESSION_IDENTIFIER", "comment": null}, "SESSION__PREVIOUS_SESSION_ID": {"type": "TEXT", "index": 4, "name": "SESSION__PREVIOUS_SESSION_ID", "comment": null}, "USER_ID": {"type": "TEXT", "index": 5, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 6, "name": "USER_IDENTIFIER", "comment": null}, "STITCHED_USER_ID": {"type": "TEXT", "index": 7, "name": "STITCHED_USER_ID", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 8, "name": "NETWORK_USERID", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "END_TSTAMP", "comment": null}, "MODEL_TSTAMP": {"type": "TEXT", "index": 11, "name": "MODEL_TSTAMP", "comment": null}, "APP_ID": {"type": "TEXT", "index": 12, "name": "APP_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 13, "name": "PLATFORM", "comment": null}, "DEVICE_IDENTIFIER": {"type": "TEXT", "index": 14, "name": "DEVICE_IDENTIFIER", "comment": null}, "DEVICE_CATEGORY": {"type": "TEXT", "index": 15, "name": "DEVICE_CATEGORY", "comment": null}, "DEVICE_SESSION_INDEX": {"type": "NUMBER", "index": 16, "name": "DEVICE_SESSION_INDEX", "comment": null}, "OS_VERSION": {"type": "TEXT", "index": 17, "name": "OS_VERSION", "comment": null}, "OS_TYPE": {"type": "TEXT", "index": 18, "name": "OS_TYPE", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 19, "name": "OS_TIMEZONE", "comment": null}, "SCREEN_RESOLUTION": {"type": "TEXT", "index": 20, "name": "SCREEN_RESOLUTION", "comment": null}, "YAUAA__DEVICE_CLASS": {"type": "TEXT", "index": 21, "name": "YAUAA__DEVICE_CLASS", "comment": null}, "YAUAA__DEVICE_VERSION": {"type": "TEXT", "index": 22, "name": "YAUAA__DEVICE_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_VERSION": {"type": "TEXT", "index": 23, "name": "YAUAA__OPERATING_SYSTEM_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_CLASS": {"type": "TEXT", "index": 24, "name": "YAUAA__OPERATING_SYSTEM_CLASS", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME": {"type": "TEXT", "index": 25, "name": "YAUAA__OPERATING_SYSTEM_NAME", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME_VERSION": {"type": "TEXT", "index": 26, "name": "YAUAA__OPERATING_SYSTEM_NAME_VERSION", "comment": null}, "MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 27, "name": "MOBILE__DEVICE_MANUFACTURER", "comment": null}, "MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 28, "name": "MOBILE__DEVICE_MODEL", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 29, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 30, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 31, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 32, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 33, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__CARRIER": {"type": "TEXT", "index": 34, "name": "MOBILE__CARRIER", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 35, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 36, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 37, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 38, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 39, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 40, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 41, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 42, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 43, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 44, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 45, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 46, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 47, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "NUMBER", "index": 48, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 49, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 50, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 51, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "FIRST_GEO_COUNTRY": {"type": "TEXT", "index": 52, "name": "FIRST_GEO_COUNTRY", "comment": null}, "FIRST_GEO_REGION_NAME": {"type": "TEXT", "index": 53, "name": "FIRST_GEO_REGION_NAME", "comment": null}, "FIRST_GEO_CITY": {"type": "TEXT", "index": 54, "name": "FIRST_GEO_CITY", "comment": null}, "FIRST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 55, "name": "FIRST_GEO_COUNTRY_NAME", "comment": null}, "FIRST_GEO_CONTINENT": {"type": "TEXT", "index": 56, "name": "FIRST_GEO_CONTINENT", "comment": null}, "LAST_GEO_COUNTRY": {"type": "TEXT", "index": 57, "name": "LAST_GEO_COUNTRY", "comment": null}, "LAST_GEO_REGION_NAME": {"type": "TEXT", "index": 58, "name": "LAST_GEO_REGION_NAME", "comment": null}, "LAST_GEO_CITY": {"type": "TEXT", "index": 59, "name": "LAST_GEO_CITY", "comment": null}, "LAST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 60, "name": "LAST_GEO_COUNTRY_NAME", "comment": null}, "LAST_GEO_CONTINENT": {"type": "TEXT", "index": 61, "name": "LAST_GEO_CONTINENT", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 62, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 63, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 64, "name": "GEO_LONGITUDE", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 65, "name": "GEO_TIMEZONE", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 66, "name": "USER_IPADDRESS", "comment": null}, "VIEWS": {"type": "NUMBER", "index": 67, "name": "VIEWS", "comment": null}, "EVENT_COUNTS": {"type": "TEXT", "index": 68, "name": "EVENT_COUNTS", "comment": null}, "TOTAL_EVENTS": {"type": "NUMBER", "index": 69, "name": "TOTAL_EVENTS", "comment": null}, "IS_ENGAGED": {"type": "BOOLEAN", "index": 70, "name": "IS_ENGAGED", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 71, "name": "ENGAGED_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "NUMBER", "index": 72, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "SESSION_DURATION_S": {"type": "NUMBER", "index": 73, "name": "SESSION_DURATION_S", "comment": null}, "SCREEN_NAMES_VIEWED": {"type": "NUMBER", "index": 74, "name": "SCREEN_NAMES_VIEWED", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 75, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 76, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 77, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 78, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 79, "name": "MKT_CAMPAIGN", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 80, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 81, "name": "MKT_NETWORK", "comment": null}, "DEFAULT_CHANNEL_GROUP": {"type": "TEXT", "index": 82, "name": "DEFAULT_CHANNEL_GROUP", "comment": null}, "MKT_SOURCE_PLATFORM": {"type": "TEXT", "index": 83, "name": "MKT_SOURCE_PLATFORM", "comment": null}, "FIRST_PAGE_URL": {"type": "TEXT", "index": 84, "name": "FIRST_PAGE_URL", "comment": null}, "LAST_PAGE_URL": {"type": "TEXT", "index": 85, "name": "LAST_PAGE_URL", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 86, "name": "PAGE_REFERRER", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 87, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 88, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 89, "name": "REFR_TERM", "comment": null}, "FIRST_PAGE_TITLE": {"type": "TEXT", "index": 90, "name": "FIRST_PAGE_TITLE", "comment": null}, "FIRST_PAGE_URLSCHEME": {"type": "TEXT", "index": 91, "name": "FIRST_PAGE_URLSCHEME", "comment": null}, "FIRST_PAGE_URLHOST": {"type": "TEXT", "index": 92, "name": "FIRST_PAGE_URLHOST", "comment": null}, "FIRST_PAGE_URLPATH": {"type": "TEXT", "index": 93, "name": "FIRST_PAGE_URLPATH", "comment": null}, "FIRST_PAGE_URLQUERY": {"type": "TEXT", "index": 94, "name": "FIRST_PAGE_URLQUERY", "comment": null}, "FIRST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 95, "name": "FIRST_PAGE_URLFRAGMENT", "comment": null}, "LAST_PAGE_TITLE": {"type": "TEXT", "index": 96, "name": "LAST_PAGE_TITLE", "comment": null}, "LAST_PAGE_URLSCHEME": {"type": "TEXT", "index": 97, "name": "LAST_PAGE_URLSCHEME", "comment": null}, "LAST_PAGE_URLHOST": {"type": "TEXT", "index": 98, "name": "LAST_PAGE_URLHOST", "comment": null}, "LAST_PAGE_URLPATH": {"type": "TEXT", "index": 99, "name": "LAST_PAGE_URLPATH", "comment": null}, "LAST_PAGE_URLQUERY": {"type": "TEXT", "index": 100, "name": "LAST_PAGE_URLQUERY", "comment": null}, "LAST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 101, "name": "LAST_PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 102, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 103, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 104, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 105, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 106, "name": "REFR_URLFRAGMENT", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 107, "name": "BR_RENDERENGINE", "comment": null}, "FIRST_BR_LANG": {"type": "TEXT", "index": 108, "name": "FIRST_BR_LANG", "comment": null}, "FIRST_BR_LANG_NAME": {"type": "TEXT", "index": 109, "name": "FIRST_BR_LANG_NAME", "comment": null}, "LAST_BR_LANG": {"type": "TEXT", "index": 110, "name": "LAST_BR_LANG", "comment": null}, "LAST_BR_LANG_NAME": {"type": "TEXT", "index": 111, "name": "LAST_BR_LANG_NAME", "comment": null}, "IAB__CATEGORY": {"type": "TEXT", "index": 112, "name": "IAB__CATEGORY", "comment": null}, "IAB__PRIMARY_IMPACT": {"type": "TEXT", "index": 113, "name": "IAB__PRIMARY_IMPACT", "comment": null}, "IAB__REASON": {"type": "TEXT", "index": 114, "name": "IAB__REASON", "comment": null}, "IAB__SPIDER_OR_ROBOT": {"type": "BOOLEAN", "index": 115, "name": "IAB__SPIDER_OR_ROBOT", "comment": null}, "YAUAA__DEVICE_NAME": {"type": "TEXT", "index": 116, "name": "YAUAA__DEVICE_NAME", "comment": null}, "YAUAA__AGENT_CLASS": {"type": "TEXT", "index": 117, "name": "YAUAA__AGENT_CLASS", "comment": null}, "YAUAA__AGENT_NAME": {"type": "TEXT", "index": 118, "name": "YAUAA__AGENT_NAME", "comment": null}, "YAUAA__AGENT_NAME_VERSION": {"type": "TEXT", "index": 119, "name": "YAUAA__AGENT_NAME_VERSION", "comment": null}, "YAUAA__AGENT_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 120, "name": "YAUAA__AGENT_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__AGENT_VERSION": {"type": "TEXT", "index": 121, "name": "YAUAA__AGENT_VERSION", "comment": null}, "YAUAA__AGENT_VERSION_MAJOR": {"type": "TEXT", "index": 122, "name": "YAUAA__AGENT_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_CLASS": {"type": "TEXT", "index": 123, "name": "YAUAA__LAYOUT_ENGINE_CLASS", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME": {"type": "TEXT", "index": 124, "name": "YAUAA__LAYOUT_ENGINE_NAME", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION": {"type": "TEXT", "index": 125, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 126, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION": {"type": "TEXT", "index": 127, "name": "YAUAA__LAYOUT_ENGINE_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR": {"type": "TEXT", "index": 128, "name": "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR", "comment": null}, "UA__DEVICE_FAMILY": {"type": "TEXT", "index": 129, "name": "UA__DEVICE_FAMILY", "comment": null}, "UA__OS_VERSION": {"type": "TEXT", "index": 130, "name": "UA__OS_VERSION", "comment": null}, "UA__OS_MAJOR": {"type": "NUMBER", "index": 131, "name": "UA__OS_MAJOR", "comment": null}, "UA__OS_MINOR": {"type": "NUMBER", "index": 132, "name": "UA__OS_MINOR", "comment": null}, "UA__OS_PATCH": {"type": "NUMBER", "index": 133, "name": "UA__OS_PATCH", "comment": null}, "UA__OS_PATCH_MINOR": {"type": "NUMBER", "index": 134, "name": "UA__OS_PATCH_MINOR", "comment": null}, "UA__USERAGENT_FAMILY": {"type": "TEXT", "index": 135, "name": "UA__USERAGENT_FAMILY", "comment": null}, "UA__USERAGENT_MAJOR": {"type": "NUMBER", "index": 136, "name": "UA__USERAGENT_MAJOR", "comment": null}, "UA__USERAGENT_MINOR": {"type": "NUMBER", "index": 137, "name": "UA__USERAGENT_MINOR", "comment": null}, "UA__USERAGENT_PATCH": {"type": "NUMBER", "index": 138, "name": "UA__USERAGENT_PATCH", "comment": null}, "UA__USERAGENT_VERSION": {"type": "TEXT", "index": 139, "name": "UA__USERAGENT_VERSION", "comment": null}, "FIRST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 140, "name": "FIRST_SCREEN_VIEW__NAME", "comment": null}, "FIRST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 141, "name": "FIRST_SCREEN_VIEW__TYPE", "comment": null}, "LAST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 142, "name": "LAST_SCREEN_VIEW__NAME", "comment": null}, "LAST_SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 143, "name": "LAST_SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "LAST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 144, "name": "LAST_SCREEN_VIEW__TYPE", "comment": null}, "SCREEN_VIEW__PREVIOUS_ID": {"type": "TEXT", "index": 145, "name": "SCREEN_VIEW__PREVIOUS_ID", "comment": null}, "SCREEN_VIEW__PREVIOUS_NAME": {"type": "TEXT", "index": 146, "name": "SCREEN_VIEW__PREVIOUS_NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_TYPE": {"type": "TEXT", "index": 147, "name": "SCREEN_VIEW__PREVIOUS_TYPE", "comment": null}, "FIRST_APP__BUILD": {"type": "TEXT", "index": 148, "name": "FIRST_APP__BUILD", "comment": null}, "FIRST_APP__VERSION": {"type": "TEXT", "index": 149, "name": "FIRST_APP__VERSION", "comment": null}, "FIRST_GEO__ALTITUDE": {"type": "FLOAT", "index": 150, "name": "FIRST_GEO__ALTITUDE", "comment": null}, "FIRST_GEO__ALTITUDE_ACCURACY": {"type": "FLOAT", "index": 151, "name": "FIRST_GEO__ALTITUDE_ACCURACY", "comment": null}, "FIRST_GEO__BEARING": {"type": "FLOAT", "index": 152, "name": "FIRST_GEO__BEARING", "comment": null}, "FIRST_GEO__LATITUDE": {"type": "FLOAT", "index": 153, "name": "FIRST_GEO__LATITUDE", "comment": null}, "FIRST_GEO__LATITUDE_LONGITUDE_ACCURACY": {"type": "FLOAT", "index": 154, "name": "FIRST_GEO__LATITUDE_LONGITUDE_ACCURACY", "comment": null}, "FIRST_GEO__LONGITUDE": {"type": "FLOAT", "index": 155, "name": "FIRST_GEO__LONGITUDE", "comment": null}, "FIRST_GEO__SPEED": {"type": "FLOAT", "index": 156, "name": "FIRST_GEO__SPEED", "comment": null}, "SCREEN__FRAGMENT": {"type": "TEXT", "index": 157, "name": "SCREEN__FRAGMENT", "comment": null}, "SCREEN__TOP_VIEW_CONTROLLER": {"type": "TEXT", "index": 158, "name": "SCREEN__TOP_VIEW_CONTROLLER", "comment": null}, "SCREEN__VIEW_CONTROLLER": {"type": "TEXT", "index": 159, "name": "SCREEN__VIEW_CONTROLLER", "comment": null}, "APP_ERRORS": {"type": "NUMBER", "index": 160, "name": "APP_ERRORS", "comment": null}, "FATAL_APP_ERRORS": {"type": "NUMBER", "index": 161, "name": "FATAL_APP_ERRORS", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 162, "name": "USERAGENT", "comment": null}, "CV_VIEW_PAGE_VOLUME": {"type": "NUMBER", "index": 163, "name": "CV_VIEW_PAGE_VOLUME", "comment": null}, "CV_VIEW_PAGE_EVENTS": {"type": "TEXT", "index": 164, "name": "CV_VIEW_PAGE_EVENTS", "comment": null}, "CV_VIEW_PAGE_VALUES": {"type": "TEXT", "index": 165, "name": "CV_VIEW_PAGE_VALUES", "comment": null}, "CV_VIEW_PAGE_TOTAL": {"type": "FLOAT", "index": 166, "name": "CV_VIEW_PAGE_TOTAL", "comment": null}, "CV_VIEW_PAGE_FIRST_CONVERSION": {"type": "TIMESTAMP_NTZ", "index": 167, "name": "CV_VIEW_PAGE_FIRST_CONVERSION", "comment": null}, "CV_VIEW_PAGE_CONVERTED": {"type": "BOOLEAN", "index": 168, "name": "CV_VIEW_PAGE_CONVERTED", "comment": null}, "CV__ALL_VOLUME": {"type": "NUMBER", "index": 169, "name": "CV__ALL_VOLUME", "comment": null}, "CV__ALL_TOTAL": {"type": "FLOAT", "index": 170, "name": "CV__ALL_TOTAL", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 171, "name": "EVENT_ID", "comment": null}, "EVENT_ID2": {"type": "TEXT", "index": 172, "name": "EVENT_ID2", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 24, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 79872, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_sessions_expected"}, "model.snowplow_unified_integration_tests.snowplow_unified_views_expected_stg": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_VIEWS_EXPECTED_STG", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"APP_ID": {"type": "TEXT", "index": 1, "name": "APP_ID", "comment": null}, "DVCE_CREATED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "DVCE_CREATED_TSTAMP", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "DERIVED_TSTAMP", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "END_TSTAMP", "comment": null}, "VIEW_ID": {"type": "TEXT", "index": 6, "name": "VIEW_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 7, "name": "EVENT_NAME", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 8, "name": "EVENT_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 9, "name": "SESSION_IDENTIFIER", "comment": null}, "VIEW_IN_SESSION_INDEX": {"type": "NUMBER", "index": 10, "name": "VIEW_IN_SESSION_INDEX", "comment": null}, "VIEWS_IN_SESSION": {"type": "NUMBER", "index": 11, "name": "VIEWS_IN_SESSION", "comment": null}, "SESSION__PREVIOUS_SESSION_ID": {"type": "TEXT", "index": 12, "name": "SESSION__PREVIOUS_SESSION_ID", "comment": null}, "USER_ID": {"type": "TEXT", "index": 13, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 14, "name": "USER_IDENTIFIER", "comment": null}, "STITCHED_USER_ID": {"type": "TEXT", "index": 15, "name": "STITCHED_USER_ID", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 16, "name": "NETWORK_USERID", "comment": null}, "COLLECTOR_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "COLLECTOR_TSTAMP", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "DEVICE_IDENTIFIER": {"type": "TEXT", "index": 19, "name": "DEVICE_IDENTIFIER", "comment": null}, "DEVICE_CATEGORY": {"type": "TEXT", "index": 20, "name": "DEVICE_CATEGORY", "comment": null}, "DEVICE_SESSION_INDEX": {"type": "NUMBER", "index": 21, "name": "DEVICE_SESSION_INDEX", "comment": null}, "OS_VERSION": {"type": "TEXT", "index": 22, "name": "OS_VERSION", "comment": null}, "OS_TYPE": {"type": "TEXT", "index": 23, "name": "OS_TYPE", "comment": null}, "MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 24, "name": "MOBILE__DEVICE_MANUFACTURER", "comment": null}, "MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 25, "name": "MOBILE__DEVICE_MODEL", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 26, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 27, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 28, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 29, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 30, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__CARRIER": {"type": "TEXT", "index": 31, "name": "MOBILE__CARRIER", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 32, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 33, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 34, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 35, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 36, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 37, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 38, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 39, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 40, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 41, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 42, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 43, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 44, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "FLOAT", "index": 45, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 46, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 47, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 48, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 49, "name": "OS_TIMEZONE", "comment": null}, "SCREEN_RESOLUTION": {"type": "TEXT", "index": 50, "name": "SCREEN_RESOLUTION", "comment": null}, "YAUAA__DEVICE_CLASS": {"type": "TEXT", "index": 51, "name": "YAUAA__DEVICE_CLASS", "comment": null}, "YAUAA__DEVICE_VERSION": {"type": "TEXT", "index": 52, "name": "YAUAA__DEVICE_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_VERSION": {"type": "TEXT", "index": 53, "name": "YAUAA__OPERATING_SYSTEM_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_CLASS": {"type": "TEXT", "index": 54, "name": "YAUAA__OPERATING_SYSTEM_CLASS", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME": {"type": "TEXT", "index": 55, "name": "YAUAA__OPERATING_SYSTEM_NAME", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME_VERSION": {"type": "TEXT", "index": 56, "name": "YAUAA__OPERATING_SYSTEM_NAME_VERSION", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 57, "name": "GEO_COUNTRY", "comment": null}, "GEO_REGION": {"type": "TEXT", "index": 58, "name": "GEO_REGION", "comment": null}, "GEO_REGION_NAME": {"type": "TEXT", "index": 59, "name": "GEO_REGION_NAME", "comment": null}, "GEO_CITY": {"type": "TEXT", "index": 60, "name": "GEO_CITY", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 61, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 62, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 63, "name": "GEO_LONGITUDE", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 64, "name": "GEO_TIMEZONE", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 65, "name": "USER_IPADDRESS", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 66, "name": "ENGAGED_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "FLOAT", "index": 67, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "HORIZONTAL_PIXELS_SCROLLED": {"type": "NUMBER", "index": 68, "name": "HORIZONTAL_PIXELS_SCROLLED", "comment": null}, "VERTICAL_PIXELS_SCROLLED": {"type": "NUMBER", "index": 69, "name": "VERTICAL_PIXELS_SCROLLED", "comment": null}, "HORIZONTAL_PERCENTAGE_SCROLLED": {"type": "FLOAT", "index": 70, "name": "HORIZONTAL_PERCENTAGE_SCROLLED", "comment": null}, "VERTICAL_PERCENTAGE_SCROLLED": {"type": "FLOAT", "index": 71, "name": "VERTICAL_PERCENTAGE_SCROLLED", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 72, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 73, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 74, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 75, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 76, "name": "MKT_CAMPAIGN", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 77, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 78, "name": "MKT_NETWORK", "comment": null}, "DEFAULT_CHANNEL_GROUP": {"type": "TEXT", "index": 79, "name": "DEFAULT_CHANNEL_GROUP", "comment": null}, "PAGE_URL": {"type": "TEXT", "index": 80, "name": "PAGE_URL", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 81, "name": "PAGE_REFERRER", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 82, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 83, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 84, "name": "REFR_TERM", "comment": null}, "PAGE_TITLE": {"type": "TEXT", "index": 85, "name": "PAGE_TITLE", "comment": null}, "CONTENT_GROUP": {"type": "TEXT", "index": 86, "name": "CONTENT_GROUP", "comment": null}, "PAGE_URLSCHEME": {"type": "TEXT", "index": 87, "name": "PAGE_URLSCHEME", "comment": null}, "PAGE_URLHOST": {"type": "TEXT", "index": 88, "name": "PAGE_URLHOST", "comment": null}, "PAGE_URLPATH": {"type": "TEXT", "index": 89, "name": "PAGE_URLPATH", "comment": null}, "PAGE_URLQUERY": {"type": "TEXT", "index": 90, "name": "PAGE_URLQUERY", "comment": null}, "PAGE_URLFRAGMENT": {"type": "TEXT", "index": 91, "name": "PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 92, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 93, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 94, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 95, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 96, "name": "REFR_URLFRAGMENT", "comment": null}, "BR_LANG": {"type": "TEXT", "index": 97, "name": "BR_LANG", "comment": null}, "BR_VIEWWIDTH": {"type": "NUMBER", "index": 98, "name": "BR_VIEWWIDTH", "comment": null}, "BR_VIEWHEIGHT": {"type": "NUMBER", "index": 99, "name": "BR_VIEWHEIGHT", "comment": null}, "BR_COLORDEPTH": {"type": "TEXT", "index": 100, "name": "BR_COLORDEPTH", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 101, "name": "BR_RENDERENGINE", "comment": null}, "DOC_WIDTH": {"type": "NUMBER", "index": 102, "name": "DOC_WIDTH", "comment": null}, "DOC_HEIGHT": {"type": "NUMBER", "index": 103, "name": "DOC_HEIGHT", "comment": null}, "IAB__CATEGORY": {"type": "TEXT", "index": 104, "name": "IAB__CATEGORY", "comment": null}, "IAB__PRIMARY_IMPACT": {"type": "TEXT", "index": 105, "name": "IAB__PRIMARY_IMPACT", "comment": null}, "IAB__REASON": {"type": "TEXT", "index": 106, "name": "IAB__REASON", "comment": null}, "IAB__SPIDER_OR_ROBOT": {"type": "BOOLEAN", "index": 107, "name": "IAB__SPIDER_OR_ROBOT", "comment": null}, "YAUAA__DEVICE_NAME": {"type": "TEXT", "index": 108, "name": "YAUAA__DEVICE_NAME", "comment": null}, "YAUAA__AGENT_CLASS": {"type": "TEXT", "index": 109, "name": "YAUAA__AGENT_CLASS", "comment": null}, "YAUAA__AGENT_NAME": {"type": "TEXT", "index": 110, "name": "YAUAA__AGENT_NAME", "comment": null}, "YAUAA__AGENT_NAME_VERSION": {"type": "TEXT", "index": 111, "name": "YAUAA__AGENT_NAME_VERSION", "comment": null}, "YAUAA__AGENT_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 112, "name": "YAUAA__AGENT_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__AGENT_VERSION": {"type": "TEXT", "index": 113, "name": "YAUAA__AGENT_VERSION", "comment": null}, "YAUAA__AGENT_VERSION_MAJOR": {"type": "TEXT", "index": 114, "name": "YAUAA__AGENT_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_CLASS": {"type": "TEXT", "index": 115, "name": "YAUAA__LAYOUT_ENGINE_CLASS", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME": {"type": "TEXT", "index": 116, "name": "YAUAA__LAYOUT_ENGINE_NAME", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION": {"type": "TEXT", "index": 117, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 118, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION": {"type": "TEXT", "index": 119, "name": "YAUAA__LAYOUT_ENGINE_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR": {"type": "TEXT", "index": 120, "name": "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR", "comment": null}, "UA__DEVICE_FAMILY": {"type": "TEXT", "index": 121, "name": "UA__DEVICE_FAMILY", "comment": null}, "UA__OS_VERSION": {"type": "TEXT", "index": 122, "name": "UA__OS_VERSION", "comment": null}, "UA__OS_MAJOR": {"type": "TEXT", "index": 123, "name": "UA__OS_MAJOR", "comment": null}, "UA__OS_MINOR": {"type": "TEXT", "index": 124, "name": "UA__OS_MINOR", "comment": null}, "UA__OS_PATCH": {"type": "TEXT", "index": 125, "name": "UA__OS_PATCH", "comment": null}, "UA__OS_PATCH_MINOR": {"type": "TEXT", "index": 126, "name": "UA__OS_PATCH_MINOR", "comment": null}, "UA__USERAGENT_FAMILY": {"type": "TEXT", "index": 127, "name": "UA__USERAGENT_FAMILY", "comment": null}, "UA__USERAGENT_MAJOR": {"type": "TEXT", "index": 128, "name": "UA__USERAGENT_MAJOR", "comment": null}, "UA__USERAGENT_MINOR": {"type": "TEXT", "index": 129, "name": "UA__USERAGENT_MINOR", "comment": null}, "UA__USERAGENT_PATCH": {"type": "TEXT", "index": 130, "name": "UA__USERAGENT_PATCH", "comment": null}, "UA__USERAGENT_VERSION": {"type": "TEXT", "index": 131, "name": "UA__USERAGENT_VERSION", "comment": null}, "SCREEN_VIEW__NAME": {"type": "TEXT", "index": 132, "name": "SCREEN_VIEW__NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_ID": {"type": "TEXT", "index": 133, "name": "SCREEN_VIEW__PREVIOUS_ID", "comment": null}, "SCREEN_VIEW__PREVIOUS_NAME": {"type": "TEXT", "index": 134, "name": "SCREEN_VIEW__PREVIOUS_NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_TYPE": {"type": "TEXT", "index": 135, "name": "SCREEN_VIEW__PREVIOUS_TYPE", "comment": null}, "SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 136, "name": "SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 137, "name": "SCREEN_VIEW__TYPE", "comment": null}, "APP__BUILD": {"type": "TEXT", "index": 138, "name": "APP__BUILD", "comment": null}, "APP__VERSION": {"type": "TEXT", "index": 139, "name": "APP__VERSION", "comment": null}, "GEO__ALTITUDE": {"type": "FLOAT", "index": 140, "name": "GEO__ALTITUDE", "comment": null}, "GEO__ALTITUDE_ACCURACY": {"type": "FLOAT", "index": 141, "name": "GEO__ALTITUDE_ACCURACY", "comment": null}, "GEO__BEARING": {"type": "FLOAT", "index": 142, "name": "GEO__BEARING", "comment": null}, "GEO__LATITUDE": {"type": "FLOAT", "index": 143, "name": "GEO__LATITUDE", "comment": null}, "GEO__LATITUDE_LONGITUDE_ACCURACY": {"type": "FLOAT", "index": 144, "name": "GEO__LATITUDE_LONGITUDE_ACCURACY", "comment": null}, "GEO__LONGITUDE": {"type": "FLOAT", "index": 145, "name": "GEO__LONGITUDE", "comment": null}, "GEO__SPEED": {"type": "FLOAT", "index": 146, "name": "GEO__SPEED", "comment": null}, "SCREEN__FRAGMENT": {"type": "TEXT", "index": 147, "name": "SCREEN__FRAGMENT", "comment": null}, "SCREEN__TOP_VIEW_CONTROLLER": {"type": "TEXT", "index": 148, "name": "SCREEN__TOP_VIEW_CONTROLLER", "comment": null}, "SCREEN__VIEW_CONTROLLER": {"type": "TEXT", "index": 149, "name": "SCREEN__VIEW_CONTROLLER", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 150, "name": "USERAGENT", "comment": null}, "V_COLLECTOR": {"type": "TEXT", "index": 151, "name": "V_COLLECTOR", "comment": null}, "EVENT_ID2": {"type": "TEXT", "index": 152, "name": "EVENT_ID2", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_views_expected_stg"}, "model.snowplow_unified_integration_tests.snowplow_unified_events_stg": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_EVENTS_STG", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"APP_ID": {"type": "TEXT", "index": 1, "name": "APP_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 2, "name": "PLATFORM", "comment": null}, "ETL_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "ETL_TSTAMP", "comment": null}, "COLLECTOR_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "COLLECTOR_TSTAMP", "comment": null}, "DVCE_CREATED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "DVCE_CREATED_TSTAMP", "comment": null}, "EVENT": {"type": "TEXT", "index": 6, "name": "EVENT", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 7, "name": "EVENT_ID", "comment": null}, "TXN_ID": {"type": "NUMBER", "index": 8, "name": "TXN_ID", "comment": null}, "NAME_TRACKER": {"type": "TEXT", "index": 9, "name": "NAME_TRACKER", "comment": null}, "V_TRACKER": {"type": "TEXT", "index": 10, "name": "V_TRACKER", "comment": null}, "V_COLLECTOR": {"type": "TEXT", "index": 11, "name": "V_COLLECTOR", "comment": null}, "V_ETL": {"type": "TEXT", "index": 12, "name": "V_ETL", "comment": null}, "USER_ID": {"type": "TEXT", "index": 13, "name": "USER_ID", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 14, "name": "USER_IPADDRESS", "comment": null}, "USER_FINGERPRINT": {"type": "TEXT", "index": 15, "name": "USER_FINGERPRINT", "comment": null}, "DOMAIN_USERID": {"type": "TEXT", "index": 16, "name": "DOMAIN_USERID", "comment": null}, "DOMAIN_SESSIONIDX": {"type": "NUMBER", "index": 17, "name": "DOMAIN_SESSIONIDX", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 18, "name": "NETWORK_USERID", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 19, "name": "GEO_COUNTRY", "comment": null}, "GEO_REGION": {"type": "TEXT", "index": 20, "name": "GEO_REGION", "comment": null}, "GEO_CITY": {"type": "TEXT", "index": 21, "name": "GEO_CITY", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 22, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 23, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 24, "name": "GEO_LONGITUDE", "comment": null}, "GEO_REGION_NAME": {"type": "TEXT", "index": 25, "name": "GEO_REGION_NAME", "comment": null}, "IP_ISP": {"type": "TEXT", "index": 26, "name": "IP_ISP", "comment": null}, "IP_ORGANIZATION": {"type": "TEXT", "index": 27, "name": "IP_ORGANIZATION", "comment": null}, "IP_DOMAIN": {"type": "TEXT", "index": 28, "name": "IP_DOMAIN", "comment": null}, "IP_NETSPEED": {"type": "TEXT", "index": 29, "name": "IP_NETSPEED", "comment": null}, "PAGE_URL": {"type": "TEXT", "index": 30, "name": "PAGE_URL", "comment": null}, "PAGE_TITLE": {"type": "TEXT", "index": 31, "name": "PAGE_TITLE", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 32, "name": "PAGE_REFERRER", "comment": null}, "PAGE_URLSCHEME": {"type": "TEXT", "index": 33, "name": "PAGE_URLSCHEME", "comment": null}, "PAGE_URLHOST": {"type": "TEXT", "index": 34, "name": "PAGE_URLHOST", "comment": null}, "PAGE_URLPORT": {"type": "NUMBER", "index": 35, "name": "PAGE_URLPORT", "comment": null}, "PAGE_URLPATH": {"type": "TEXT", "index": 36, "name": "PAGE_URLPATH", "comment": null}, "PAGE_URLQUERY": {"type": "TEXT", "index": 37, "name": "PAGE_URLQUERY", "comment": null}, "PAGE_URLFRAGMENT": {"type": "TEXT", "index": 38, "name": "PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 39, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 40, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPORT": {"type": "NUMBER", "index": 41, "name": "REFR_URLPORT", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 42, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 43, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 44, "name": "REFR_URLFRAGMENT", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 45, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 46, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 47, "name": "REFR_TERM", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 48, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 49, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 50, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 51, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 52, "name": "MKT_CAMPAIGN", "comment": null}, "SE_CATEGORY": {"type": "TEXT", "index": 53, "name": "SE_CATEGORY", "comment": null}, "SE_ACTION": {"type": "TEXT", "index": 54, "name": "SE_ACTION", "comment": null}, "SE_LABEL": {"type": "TEXT", "index": 55, "name": "SE_LABEL", "comment": null}, "SE_PROPERTY": {"type": "TEXT", "index": 56, "name": "SE_PROPERTY", "comment": null}, "SE_VALUE": {"type": "FLOAT", "index": 57, "name": "SE_VALUE", "comment": null}, "TR_ORDERID": {"type": "TEXT", "index": 58, "name": "TR_ORDERID", "comment": null}, "TR_AFFILIATION": {"type": "TEXT", "index": 59, "name": "TR_AFFILIATION", "comment": null}, "TR_TOTAL": {"type": "FLOAT", "index": 60, "name": "TR_TOTAL", "comment": null}, "TR_TAX": {"type": "FLOAT", "index": 61, "name": "TR_TAX", "comment": null}, "TR_SHIPPING": {"type": "FLOAT", "index": 62, "name": "TR_SHIPPING", "comment": null}, "TR_CITY": {"type": "TEXT", "index": 63, "name": "TR_CITY", "comment": null}, "TR_STATE": {"type": "TEXT", "index": 64, "name": "TR_STATE", "comment": null}, "TR_COUNTRY": {"type": "TEXT", "index": 65, "name": "TR_COUNTRY", "comment": null}, "TI_ORDERID": {"type": "TEXT", "index": 66, "name": "TI_ORDERID", "comment": null}, "TI_SKU": {"type": "TEXT", "index": 67, "name": "TI_SKU", "comment": null}, "TI_NAME": {"type": "TEXT", "index": 68, "name": "TI_NAME", "comment": null}, "TI_CATEGORY": {"type": "TEXT", "index": 69, "name": "TI_CATEGORY", "comment": null}, "TI_PRICE": {"type": "FLOAT", "index": 70, "name": "TI_PRICE", "comment": null}, "TI_QUANTITY": {"type": "NUMBER", "index": 71, "name": "TI_QUANTITY", "comment": null}, "PP_XOFFSET_MIN": {"type": "NUMBER", "index": 72, "name": "PP_XOFFSET_MIN", "comment": null}, "PP_XOFFSET_MAX": {"type": "NUMBER", "index": 73, "name": "PP_XOFFSET_MAX", "comment": null}, "PP_YOFFSET_MIN": {"type": "NUMBER", "index": 74, "name": "PP_YOFFSET_MIN", "comment": null}, "PP_YOFFSET_MAX": {"type": "NUMBER", "index": 75, "name": "PP_YOFFSET_MAX", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 76, "name": "USERAGENT", "comment": null}, "BR_NAME": {"type": "TEXT", "index": 77, "name": "BR_NAME", "comment": null}, "BR_FAMILY": {"type": "TEXT", "index": 78, "name": "BR_FAMILY", "comment": null}, "BR_VERSION": {"type": "TEXT", "index": 79, "name": "BR_VERSION", "comment": null}, "BR_TYPE": {"type": "TEXT", "index": 80, "name": "BR_TYPE", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 81, "name": "BR_RENDERENGINE", "comment": null}, "BR_LANG": {"type": "TEXT", "index": 82, "name": "BR_LANG", "comment": null}, "BR_FEATURES_PDF": {"type": "BOOLEAN", "index": 83, "name": "BR_FEATURES_PDF", "comment": null}, "BR_FEATURES_FLASH": {"type": "BOOLEAN", "index": 84, "name": "BR_FEATURES_FLASH", "comment": null}, "BR_FEATURES_JAVA": {"type": "BOOLEAN", "index": 85, "name": "BR_FEATURES_JAVA", "comment": null}, "BR_FEATURES_DIRECTOR": {"type": "BOOLEAN", "index": 86, "name": "BR_FEATURES_DIRECTOR", "comment": null}, "BR_FEATURES_QUICKTIME": {"type": "BOOLEAN", "index": 87, "name": "BR_FEATURES_QUICKTIME", "comment": null}, "BR_FEATURES_REALPLAYER": {"type": "BOOLEAN", "index": 88, "name": "BR_FEATURES_REALPLAYER", "comment": null}, "BR_FEATURES_WINDOWSMEDIA": {"type": "BOOLEAN", "index": 89, "name": "BR_FEATURES_WINDOWSMEDIA", "comment": null}, "BR_FEATURES_GEARS": {"type": "BOOLEAN", "index": 90, "name": "BR_FEATURES_GEARS", "comment": null}, "BR_FEATURES_SILVERLIGHT": {"type": "BOOLEAN", "index": 91, "name": "BR_FEATURES_SILVERLIGHT", "comment": null}, "BR_COOKIES": {"type": "BOOLEAN", "index": 92, "name": "BR_COOKIES", "comment": null}, "BR_COLORDEPTH": {"type": "TEXT", "index": 93, "name": "BR_COLORDEPTH", "comment": null}, "BR_VIEWWIDTH": {"type": "NUMBER", "index": 94, "name": "BR_VIEWWIDTH", "comment": null}, "BR_VIEWHEIGHT": {"type": "NUMBER", "index": 95, "name": "BR_VIEWHEIGHT", "comment": null}, "OS_NAME": {"type": "TEXT", "index": 96, "name": "OS_NAME", "comment": null}, "OS_FAMILY": {"type": "TEXT", "index": 97, "name": "OS_FAMILY", "comment": null}, "OS_MANUFACTURER": {"type": "TEXT", "index": 98, "name": "OS_MANUFACTURER", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 99, "name": "OS_TIMEZONE", "comment": null}, "DVCE_TYPE": {"type": "TEXT", "index": 100, "name": "DVCE_TYPE", "comment": null}, "DVCE_ISMOBILE": {"type": "BOOLEAN", "index": 101, "name": "DVCE_ISMOBILE", "comment": null}, "DVCE_SCREENWIDTH": {"type": "NUMBER", "index": 102, "name": "DVCE_SCREENWIDTH", "comment": null}, "DVCE_SCREENHEIGHT": {"type": "NUMBER", "index": 103, "name": "DVCE_SCREENHEIGHT", "comment": null}, "DOC_CHARSET": {"type": "TEXT", "index": 104, "name": "DOC_CHARSET", "comment": null}, "DOC_WIDTH": {"type": "NUMBER", "index": 105, "name": "DOC_WIDTH", "comment": null}, "DOC_HEIGHT": {"type": "NUMBER", "index": 106, "name": "DOC_HEIGHT", "comment": null}, "TR_CURRENCY": {"type": "TEXT", "index": 107, "name": "TR_CURRENCY", "comment": null}, "TR_TOTAL_BASE": {"type": "FLOAT", "index": 108, "name": "TR_TOTAL_BASE", "comment": null}, "TR_TAX_BASE": {"type": "FLOAT", "index": 109, "name": "TR_TAX_BASE", "comment": null}, "TR_SHIPPING_BASE": {"type": "FLOAT", "index": 110, "name": "TR_SHIPPING_BASE", "comment": null}, "TI_CURRENCY": {"type": "TEXT", "index": 111, "name": "TI_CURRENCY", "comment": null}, "TI_PRICE_BASE": {"type": "FLOAT", "index": 112, "name": "TI_PRICE_BASE", "comment": null}, "BASE_CURRENCY": {"type": "TEXT", "index": 113, "name": "BASE_CURRENCY", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 114, "name": "GEO_TIMEZONE", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 115, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 116, "name": "MKT_NETWORK", "comment": null}, "ETL_TAGS": {"type": "TEXT", "index": 117, "name": "ETL_TAGS", "comment": null}, "DVCE_SENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 118, "name": "DVCE_SENT_TSTAMP", "comment": null}, "REFR_DOMAIN_USERID": {"type": "TEXT", "index": 119, "name": "REFR_DOMAIN_USERID", "comment": null}, "REFR_DVCE_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 120, "name": "REFR_DVCE_TSTAMP", "comment": null}, "DOMAIN_SESSIONID": {"type": "TEXT", "index": 121, "name": "DOMAIN_SESSIONID", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 122, "name": "DERIVED_TSTAMP", "comment": null}, "EVENT_VENDOR": {"type": "TEXT", "index": 123, "name": "EVENT_VENDOR", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 124, "name": "EVENT_NAME", "comment": null}, "EVENT_FORMAT": {"type": "TEXT", "index": 125, "name": "EVENT_FORMAT", "comment": null}, "EVENT_VERSION": {"type": "TEXT", "index": 126, "name": "EVENT_VERSION", "comment": null}, "EVENT_FINGERPRINT": {"type": "TEXT", "index": 127, "name": "EVENT_FINGERPRINT", "comment": null}, "TRUE_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 128, "name": "TRUE_TSTAMP", "comment": null}, "LOAD_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 129, "name": "LOAD_TSTAMP", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_WEB_PAGE_1": {"type": "VARIANT", "index": 130, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_WEB_PAGE_1", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CONSENT_PREFERENCES_1": {"type": "OBJECT", "index": 131, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CONSENT_PREFERENCES_1", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CMP_VISIBLE_1": {"type": "OBJECT", "index": 132, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CMP_VISIBLE_1", "comment": null}, "CONTEXTS_COM_IAB_SNOWPLOW_SPIDERS_AND_ROBOTS_1": {"type": "VARIANT", "index": 133, "name": "CONTEXTS_COM_IAB_SNOWPLOW_SPIDERS_AND_ROBOTS_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_UA_PARSER_CONTEXT_1": {"type": "VARIANT", "index": 134, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_UA_PARSER_CONTEXT_1", "comment": null}, "CONTEXTS_NL_BASJES_YAUAA_CONTEXT_1": {"type": "VARIANT", "index": 135, "name": "CONTEXTS_NL_BASJES_YAUAA_CONTEXT_1", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_VIEW_1": {"type": "OBJECT", "index": 136, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_VIEW_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_CLIENT_SESSION_1": {"type": "VARIANT", "index": 137, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_CLIENT_SESSION_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_GEOLOCATION_CONTEXT_1": {"type": "VARIANT", "index": 138, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_GEOLOCATION_CONTEXT_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_APPLICATION_1": {"type": "VARIANT", "index": 139, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_APPLICATION_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_DEEP_LINK_1": {"type": "VARIANT", "index": 140, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_DEEP_LINK_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_BROWSER_CONTEXT_1": {"type": "VARIANT", "index": 141, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_BROWSER_CONTEXT_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_MOBILE_CONTEXT_1": {"type": "VARIANT", "index": 142, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_MOBILE_CONTEXT_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_1": {"type": "VARIANT", "index": 143, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_1", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_APPLICATION_ERROR_1": {"type": "OBJECT", "index": 144, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_APPLICATION_ERROR_1", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_events_stg"}, "model.snowplow_unified.snowplow_unified_pv_scroll_depth": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SCRATCH", "name": "SNOWPLOW_UNIFIED_PV_SCROLL_DEPTH", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"VIEW_ID": {"type": "TEXT", "index": 1, "name": "VIEW_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "SESSION_IDENTIFIER", "comment": null}, "DOC_WIDTH": {"type": "NUMBER", "index": 3, "name": "DOC_WIDTH", "comment": null}, "DOC_HEIGHT": {"type": "NUMBER", "index": 4, "name": "DOC_HEIGHT", "comment": null}, "BR_VIEWWIDTH": {"type": "NUMBER", "index": 5, "name": "BR_VIEWWIDTH", "comment": null}, "BR_VIEWHEIGHT": {"type": "NUMBER", "index": 6, "name": "BR_VIEWHEIGHT", "comment": null}, "HMIN": {"type": "NUMBER", "index": 7, "name": "HMIN", "comment": null}, "HMAX": {"type": "NUMBER", "index": 8, "name": "HMAX", "comment": null}, "VMIN": {"type": "NUMBER", "index": 9, "name": "VMIN", "comment": null}, "VMAX": {"type": "NUMBER", "index": 10, "name": "VMAX", "comment": null}, "RELATIVE_HMIN": {"type": "FLOAT", "index": 11, "name": "RELATIVE_HMIN", "comment": null}, "RELATIVE_HMAX": {"type": "FLOAT", "index": 12, "name": "RELATIVE_HMAX", "comment": null}, "RELATIVE_VMIN": {"type": "FLOAT", "index": 13, "name": "RELATIVE_VMIN", "comment": null}, "RELATIVE_VMAX": {"type": "FLOAT", "index": 14, "name": "RELATIVE_VMAX", "comment": null}, "LAST_LIST_ITEM_INDEX": {"type": "NUMBER", "index": 15, "name": "LAST_LIST_ITEM_INDEX", "comment": null}, "LIST_ITEMS_COUNT": {"type": "NUMBER", "index": 16, "name": "LIST_ITEMS_COUNT", "comment": null}, "LIST_ITEMS_PERCENTAGE_SCROLLED": {"type": "NUMBER", "index": 17, "name": "LIST_ITEMS_PERCENTAGE_SCROLLED", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 33, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 8192, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_pv_scroll_depth"}, "seed.snowplow_unified_integration_tests.snowplow_unified_consent_preferences": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_PREFERENCES", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"ROOT_ID": {"type": "TEXT", "index": 1, "name": "ROOT_ID", "comment": null}, "ROOT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "ROOT_TSTAMP", "comment": null}, "BASIS_FOR_PROCESSING": {"type": "TEXT", "index": 3, "name": "BASIS_FOR_PROCESSING", "comment": null}, "CONSENT_VERSION": {"type": "TEXT", "index": 4, "name": "CONSENT_VERSION", "comment": null}, "CONSENT_SCOPES": {"type": "TEXT", "index": 5, "name": "CONSENT_SCOPES", "comment": null}, "CONSENT_URL": {"type": "TEXT", "index": 6, "name": "CONSENT_URL", "comment": null}, "DOMAINS_APPLIED": {"type": "TEXT", "index": 7, "name": "DOMAINS_APPLIED", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 8, "name": "EVENT_TYPE", "comment": null}, "GDPR_APPLIES": {"type": "BOOLEAN", "index": 9, "name": "GDPR_APPLIES", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 33, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 5120, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_preferences"}, "model.snowplow_unified.snowplow_unified_users_this_run": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SCRATCH", "name": "SNOWPLOW_UNIFIED_USERS_THIS_RUN", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"USER_ID": {"type": "TEXT", "index": 1, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "USER_IDENTIFIER", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 3, "name": "NETWORK_USERID", "comment": null}, "STITCHED_USER_ID": {"type": "TEXT", "index": 4, "name": "STITCHED_USER_ID", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "END_TSTAMP", "comment": null}, "MODEL_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "MODEL_TSTAMP", "comment": null}, "FIRST_PLATFORM": {"type": "TEXT", "index": 8, "name": "FIRST_PLATFORM", "comment": null}, "LAST_PLATFORM": {"type": "TEXT", "index": 9, "name": "LAST_PLATFORM", "comment": null}, "ON_WEB": {"type": "BOOLEAN", "index": 10, "name": "ON_WEB", "comment": null}, "ON_MOBILE": {"type": "BOOLEAN", "index": 11, "name": "ON_MOBILE", "comment": null}, "LAST_SCREEN_RESOLUTION": {"type": "TEXT", "index": 12, "name": "LAST_SCREEN_RESOLUTION", "comment": null}, "LAST_OS_TYPE": {"type": "TEXT", "index": 13, "name": "LAST_OS_TYPE", "comment": null}, "LAST_OS_VERSION": {"type": "TEXT", "index": 14, "name": "LAST_OS_VERSION", "comment": null}, "FIRST_MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 15, "name": "FIRST_MOBILE__DEVICE_MANUFACTURER", "comment": null}, "FIRST_MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 16, "name": "FIRST_MOBILE__DEVICE_MODEL", "comment": null}, "FIRST_MOBILE__CARRIER": {"type": "TEXT", "index": 17, "name": "FIRST_MOBILE__CARRIER", "comment": null}, "LAST_MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 18, "name": "LAST_MOBILE__DEVICE_MANUFACTURER", "comment": null}, "LAST_MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 19, "name": "LAST_MOBILE__DEVICE_MODEL", "comment": null}, "LAST_MOBILE__CARRIER": {"type": "TEXT", "index": 20, "name": "LAST_MOBILE__CARRIER", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 21, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 22, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 23, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 24, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 25, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 26, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 27, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 28, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 29, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 30, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 31, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 32, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 33, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 34, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 35, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 36, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 37, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 38, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "FLOAT", "index": 39, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 40, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 41, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 42, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "FIRST_GEO_COUNTRY": {"type": "TEXT", "index": 43, "name": "FIRST_GEO_COUNTRY", "comment": null}, "FIRST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 44, "name": "FIRST_GEO_COUNTRY_NAME", "comment": null}, "FIRST_GEO_CONTINENT": {"type": "TEXT", "index": 45, "name": "FIRST_GEO_CONTINENT", "comment": null}, "FIRST_GEO_CITY": {"type": "TEXT", "index": 46, "name": "FIRST_GEO_CITY", "comment": null}, "FIRST_GEO_REGION_NAME": {"type": "TEXT", "index": 47, "name": "FIRST_GEO_REGION_NAME", "comment": null}, "LAST_GEO_COUNTRY": {"type": "TEXT", "index": 48, "name": "LAST_GEO_COUNTRY", "comment": null}, "LAST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 49, "name": "LAST_GEO_COUNTRY_NAME", "comment": null}, "LAST_GEO_CONTINENT": {"type": "TEXT", "index": 50, "name": "LAST_GEO_CONTINENT", "comment": null}, "LAST_GEO_CITY": {"type": "TEXT", "index": 51, "name": "LAST_GEO_CITY", "comment": null}, "LAST_GEO_REGION_NAME": {"type": "TEXT", "index": 52, "name": "LAST_GEO_REGION_NAME", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 53, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 54, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 55, "name": "GEO_LONGITUDE", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 56, "name": "GEO_TIMEZONE", "comment": null}, "VIEWS": {"type": "NUMBER", "index": 57, "name": "VIEWS", "comment": null}, "SESSIONS": {"type": "NUMBER", "index": 58, "name": "SESSIONS", "comment": null}, "ACTIVE_DAYS": {"type": "NUMBER", "index": 59, "name": "ACTIVE_DAYS", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 60, "name": "ENGAGED_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "NUMBER", "index": 61, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "SCREEN_NAMES_VIEWED": {"type": "NUMBER", "index": 62, "name": "SCREEN_NAMES_VIEWED", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 63, "name": "PAGE_REFERRER", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 64, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 65, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 66, "name": "REFR_TERM", "comment": null}, "FIRST_PAGE_TITLE": {"type": "TEXT", "index": 67, "name": "FIRST_PAGE_TITLE", "comment": null}, "FIRST_PAGE_URL": {"type": "TEXT", "index": 68, "name": "FIRST_PAGE_URL", "comment": null}, "FIRST_PAGE_URLSCHEME": {"type": "TEXT", "index": 69, "name": "FIRST_PAGE_URLSCHEME", "comment": null}, "FIRST_PAGE_URLHOST": {"type": "TEXT", "index": 70, "name": "FIRST_PAGE_URLHOST", "comment": null}, "FIRST_PAGE_URLPATH": {"type": "TEXT", "index": 71, "name": "FIRST_PAGE_URLPATH", "comment": null}, "FIRST_PAGE_URLQUERY": {"type": "TEXT", "index": 72, "name": "FIRST_PAGE_URLQUERY", "comment": null}, "FIRST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 73, "name": "FIRST_PAGE_URLFRAGMENT", "comment": null}, "FIRST_BR_LANG": {"type": "TEXT", "index": 74, "name": "FIRST_BR_LANG", "comment": null}, "FIRST_BR_LANG_NAME": {"type": "TEXT", "index": 75, "name": "FIRST_BR_LANG_NAME", "comment": null}, "LAST_PAGE_TITLE": {"type": "TEXT", "index": 76, "name": "LAST_PAGE_TITLE", "comment": null}, "LAST_PAGE_URL": {"type": "TEXT", "index": 77, "name": "LAST_PAGE_URL", "comment": null}, "LAST_PAGE_URLSCHEME": {"type": "TEXT", "index": 78, "name": "LAST_PAGE_URLSCHEME", "comment": null}, "LAST_PAGE_URLHOST": {"type": "TEXT", "index": 79, "name": "LAST_PAGE_URLHOST", "comment": null}, "LAST_PAGE_URLPATH": {"type": "TEXT", "index": 80, "name": "LAST_PAGE_URLPATH", "comment": null}, "LAST_PAGE_URLQUERY": {"type": "TEXT", "index": 81, "name": "LAST_PAGE_URLQUERY", "comment": null}, "LAST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 82, "name": "LAST_PAGE_URLFRAGMENT", "comment": null}, "LAST_BR_LANG": {"type": "TEXT", "index": 83, "name": "LAST_BR_LANG", "comment": null}, "LAST_BR_LANG_NAME": {"type": "TEXT", "index": 84, "name": "LAST_BR_LANG_NAME", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 85, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 86, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 87, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 88, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 89, "name": "REFR_URLFRAGMENT", "comment": null}, "FIRST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 90, "name": "FIRST_SCREEN_VIEW__NAME", "comment": null}, "FIRST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 91, "name": "FIRST_SCREEN_VIEW__TYPE", "comment": null}, "LAST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 92, "name": "LAST_SCREEN_VIEW__NAME", "comment": null}, "LAST_SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 93, "name": "LAST_SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "LAST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 94, "name": "LAST_SCREEN_VIEW__TYPE", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 95, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 96, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 97, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 98, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 99, "name": "MKT_CAMPAIGN", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 100, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 101, "name": "MKT_NETWORK", "comment": null}, "MKT_SOURCE_PLATFORM": {"type": "TEXT", "index": 102, "name": "MKT_SOURCE_PLATFORM", "comment": null}, "DEFAULT_CHANNEL_GROUP": {"type": "TEXT", "index": 103, "name": "DEFAULT_CHANNEL_GROUP", "comment": null}, "APP_ERRORS": {"type": "NUMBER", "index": 104, "name": "APP_ERRORS", "comment": null}, "FATAL_APP_ERRORS": {"type": "NUMBER", "index": 105, "name": "FATAL_APP_ERRORS", "comment": null}, "FIRST_EVENT_ID": {"type": "TEXT", "index": 106, "name": "FIRST_EVENT_ID", "comment": null}, "FIRST_EVENT_ID2": {"type": "TEXT", "index": 107, "name": "FIRST_EVENT_ID2", "comment": null}, "LAST_EVENT_ID": {"type": "TEXT", "index": 108, "name": "LAST_EVENT_ID", "comment": null}, "LAST_EVENT_ID2": {"type": "TEXT", "index": 109, "name": "LAST_EVENT_ID2", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 13, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 48640, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_users_this_run"}, "seed.snowplow_unified.snowplow_unified_dim_ga4_source_categories": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNOWPLOW_MANIFEST", "name": "SNOWPLOW_UNIFIED_DIM_GA4_SOURCE_CATEGORIES", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"SOURCE": {"type": "TEXT", "index": 1, "name": "SOURCE", "comment": null}, "SOURCE_CATEGORY": {"type": "TEXT", "index": 2, "name": "SOURCE_CATEGORY", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 819, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 8704, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified.snowplow_unified_dim_ga4_source_categories"}, "seed.snowplow_unified_integration_tests.snowplow_unified_cwv": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CWV", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"CLS": {"type": "FLOAT", "index": 1, "name": "CLS", "comment": null}, "FCP": {"type": "NUMBER", "index": 2, "name": "FCP", "comment": null}, "FID": {"type": "FLOAT", "index": 3, "name": "FID", "comment": null}, "INP": {"type": "FLOAT", "index": 4, "name": "INP", "comment": null}, "LCP": {"type": "FLOAT", "index": 5, "name": "LCP", "comment": null}, "NAVIGATION_TYPE": {"type": "TEXT", "index": 6, "name": "NAVIGATION_TYPE", "comment": null}, "TTFB": {"type": "FLOAT", "index": 7, "name": "TTFB", "comment": null}, "ROOT_TSTAMP": {"type": "TEXT", "index": 8, "name": "ROOT_TSTAMP", "comment": null}, "ROOT_ID": {"type": "TEXT", "index": 9, "name": "ROOT_ID", "comment": null}, "SCHEMA_NAME": {"type": "NUMBER", "index": 10, "name": "SCHEMA_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1031, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 46592, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_cwv"}, "model.snowplow_unified_integration_tests.snowplow_unified_users_actual": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_USERS_ACTUAL", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"USER_ID": {"type": "TEXT", "index": 1, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "USER_IDENTIFIER", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 3, "name": "NETWORK_USERID", "comment": null}, "STITCHED_USER_ID": {"type": "TEXT", "index": 4, "name": "STITCHED_USER_ID", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "END_TSTAMP", "comment": null}, "FIRST_PLATFORM": {"type": "TEXT", "index": 7, "name": "FIRST_PLATFORM", "comment": null}, "LAST_PLATFORM": {"type": "TEXT", "index": 8, "name": "LAST_PLATFORM", "comment": null}, "ON_WEB": {"type": "BOOLEAN", "index": 9, "name": "ON_WEB", "comment": null}, "ON_MOBILE": {"type": "BOOLEAN", "index": 10, "name": "ON_MOBILE", "comment": null}, "LAST_SCREEN_RESOLUTION": {"type": "TEXT", "index": 11, "name": "LAST_SCREEN_RESOLUTION", "comment": null}, "LAST_OS_TYPE": {"type": "TEXT", "index": 12, "name": "LAST_OS_TYPE", "comment": null}, "LAST_OS_VERSION": {"type": "TEXT", "index": 13, "name": "LAST_OS_VERSION", "comment": null}, "FIRST_MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 14, "name": "FIRST_MOBILE__DEVICE_MANUFACTURER", "comment": null}, "FIRST_MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 15, "name": "FIRST_MOBILE__DEVICE_MODEL", "comment": null}, "FIRST_MOBILE__CARRIER": {"type": "TEXT", "index": 16, "name": "FIRST_MOBILE__CARRIER", "comment": null}, "LAST_MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 17, "name": "LAST_MOBILE__DEVICE_MANUFACTURER", "comment": null}, "LAST_MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 18, "name": "LAST_MOBILE__DEVICE_MODEL", "comment": null}, "LAST_MOBILE__CARRIER": {"type": "TEXT", "index": 19, "name": "LAST_MOBILE__CARRIER", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 20, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 21, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 22, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 23, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 24, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 25, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 26, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 27, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 28, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 29, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 30, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 31, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 32, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 33, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 34, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 35, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 36, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 37, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "FLOAT", "index": 38, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 39, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 40, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 41, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "FIRST_GEO_COUNTRY": {"type": "TEXT", "index": 42, "name": "FIRST_GEO_COUNTRY", "comment": null}, "FIRST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 43, "name": "FIRST_GEO_COUNTRY_NAME", "comment": null}, "FIRST_GEO_CONTINENT": {"type": "TEXT", "index": 44, "name": "FIRST_GEO_CONTINENT", "comment": null}, "FIRST_GEO_CITY": {"type": "TEXT", "index": 45, "name": "FIRST_GEO_CITY", "comment": null}, "FIRST_GEO_REGION_NAME": {"type": "TEXT", "index": 46, "name": "FIRST_GEO_REGION_NAME", "comment": null}, "LAST_GEO_COUNTRY": {"type": "TEXT", "index": 47, "name": "LAST_GEO_COUNTRY", "comment": null}, "LAST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 48, "name": "LAST_GEO_COUNTRY_NAME", "comment": null}, "LAST_GEO_CONTINENT": {"type": "TEXT", "index": 49, "name": "LAST_GEO_CONTINENT", "comment": null}, "LAST_GEO_CITY": {"type": "TEXT", "index": 50, "name": "LAST_GEO_CITY", "comment": null}, "LAST_GEO_REGION_NAME": {"type": "TEXT", "index": 51, "name": "LAST_GEO_REGION_NAME", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 52, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 53, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 54, "name": "GEO_LONGITUDE", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 55, "name": "GEO_TIMEZONE", "comment": null}, "VIEWS": {"type": "NUMBER", "index": 56, "name": "VIEWS", "comment": null}, "SESSIONS": {"type": "NUMBER", "index": 57, "name": "SESSIONS", "comment": null}, "ACTIVE_DAYS": {"type": "NUMBER", "index": 58, "name": "ACTIVE_DAYS", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 59, "name": "ENGAGED_TIME_IN_S", "comment": null}, "SCREEN_NAMES_VIEWED": {"type": "NUMBER", "index": 60, "name": "SCREEN_NAMES_VIEWED", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "NUMBER", "index": 61, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 62, "name": "PAGE_REFERRER", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 63, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 64, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 65, "name": "REFR_TERM", "comment": null}, "FIRST_PAGE_TITLE": {"type": "TEXT", "index": 66, "name": "FIRST_PAGE_TITLE", "comment": null}, "FIRST_PAGE_URL": {"type": "TEXT", "index": 67, "name": "FIRST_PAGE_URL", "comment": null}, "FIRST_PAGE_URLSCHEME": {"type": "TEXT", "index": 68, "name": "FIRST_PAGE_URLSCHEME", "comment": null}, "FIRST_PAGE_URLHOST": {"type": "TEXT", "index": 69, "name": "FIRST_PAGE_URLHOST", "comment": null}, "FIRST_PAGE_URLPATH": {"type": "TEXT", "index": 70, "name": "FIRST_PAGE_URLPATH", "comment": null}, "FIRST_PAGE_URLQUERY": {"type": "TEXT", "index": 71, "name": "FIRST_PAGE_URLQUERY", "comment": null}, "FIRST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 72, "name": "FIRST_PAGE_URLFRAGMENT", "comment": null}, "FIRST_BR_LANG": {"type": "TEXT", "index": 73, "name": "FIRST_BR_LANG", "comment": null}, "FIRST_BR_LANG_NAME": {"type": "TEXT", "index": 74, "name": "FIRST_BR_LANG_NAME", "comment": null}, "LAST_PAGE_TITLE": {"type": "TEXT", "index": 75, "name": "LAST_PAGE_TITLE", "comment": null}, "LAST_PAGE_URL": {"type": "TEXT", "index": 76, "name": "LAST_PAGE_URL", "comment": null}, "LAST_PAGE_URLSCHEME": {"type": "TEXT", "index": 77, "name": "LAST_PAGE_URLSCHEME", "comment": null}, "LAST_PAGE_URLHOST": {"type": "TEXT", "index": 78, "name": "LAST_PAGE_URLHOST", "comment": null}, "LAST_PAGE_URLPATH": {"type": "TEXT", "index": 79, "name": "LAST_PAGE_URLPATH", "comment": null}, "LAST_PAGE_URLQUERY": {"type": "TEXT", "index": 80, "name": "LAST_PAGE_URLQUERY", "comment": null}, "LAST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 81, "name": "LAST_PAGE_URLFRAGMENT", "comment": null}, "LAST_BR_LANG": {"type": "TEXT", "index": 82, "name": "LAST_BR_LANG", "comment": null}, "LAST_BR_LANG_NAME": {"type": "TEXT", "index": 83, "name": "LAST_BR_LANG_NAME", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 84, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 85, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 86, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 87, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 88, "name": "REFR_URLFRAGMENT", "comment": null}, "FIRST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 89, "name": "FIRST_SCREEN_VIEW__NAME", "comment": null}, "FIRST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 90, "name": "FIRST_SCREEN_VIEW__TYPE", "comment": null}, "LAST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 91, "name": "LAST_SCREEN_VIEW__NAME", "comment": null}, "LAST_SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 92, "name": "LAST_SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "LAST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 93, "name": "LAST_SCREEN_VIEW__TYPE", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 94, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 95, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 96, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 97, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 98, "name": "MKT_CAMPAIGN", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 99, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 100, "name": "MKT_NETWORK", "comment": null}, "MKT_SOURCE_PLATFORM": {"type": "TEXT", "index": 101, "name": "MKT_SOURCE_PLATFORM", "comment": null}, "DEFAULT_CHANNEL_GROUP": {"type": "TEXT", "index": 102, "name": "DEFAULT_CHANNEL_GROUP", "comment": null}, "APP_ERRORS": {"type": "NUMBER", "index": 103, "name": "APP_ERRORS", "comment": null}, "FATAL_APP_ERRORS": {"type": "NUMBER", "index": 104, "name": "FATAL_APP_ERRORS", "comment": null}, "FIRST_EVENT_ID": {"type": "TEXT", "index": 105, "name": "FIRST_EVENT_ID", "comment": null}, "FIRST_EVENT_ID2": {"type": "TEXT", "index": 106, "name": "FIRST_EVENT_ID2", "comment": null}, "LAST_EVENT_ID": {"type": "TEXT", "index": 107, "name": "LAST_EVENT_ID", "comment": null}, "LAST_EVENT_ID2": {"type": "TEXT", "index": 108, "name": "LAST_EVENT_ID2", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_users_actual"}, "seed.snowplow_unified_integration_tests.snowplow_unified_events": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_EVENTS", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"APP_ID": {"type": "TEXT", "index": 1, "name": "APP_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 2, "name": "PLATFORM", "comment": null}, "ETL_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "ETL_TSTAMP", "comment": null}, "COLLECTOR_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "COLLECTOR_TSTAMP", "comment": null}, "DVCE_CREATED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "DVCE_CREATED_TSTAMP", "comment": null}, "EVENT": {"type": "TEXT", "index": 6, "name": "EVENT", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 7, "name": "EVENT_ID", "comment": null}, "TXN_ID": {"type": "NUMBER", "index": 8, "name": "TXN_ID", "comment": null}, "NAME_TRACKER": {"type": "TEXT", "index": 9, "name": "NAME_TRACKER", "comment": null}, "V_TRACKER": {"type": "TEXT", "index": 10, "name": "V_TRACKER", "comment": null}, "V_COLLECTOR": {"type": "TEXT", "index": 11, "name": "V_COLLECTOR", "comment": null}, "V_ETL": {"type": "TEXT", "index": 12, "name": "V_ETL", "comment": null}, "USER_ID": {"type": "TEXT", "index": 13, "name": "USER_ID", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 14, "name": "USER_IPADDRESS", "comment": null}, "USER_FINGERPRINT": {"type": "TEXT", "index": 15, "name": "USER_FINGERPRINT", "comment": null}, "DOMAIN_USERID": {"type": "TEXT", "index": 16, "name": "DOMAIN_USERID", "comment": null}, "DOMAIN_SESSIONIDX": {"type": "NUMBER", "index": 17, "name": "DOMAIN_SESSIONIDX", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 18, "name": "NETWORK_USERID", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 19, "name": "GEO_COUNTRY", "comment": null}, "GEO_REGION": {"type": "TEXT", "index": 20, "name": "GEO_REGION", "comment": null}, "GEO_CITY": {"type": "TEXT", "index": 21, "name": "GEO_CITY", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 22, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 23, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 24, "name": "GEO_LONGITUDE", "comment": null}, "GEO_REGION_NAME": {"type": "TEXT", "index": 25, "name": "GEO_REGION_NAME", "comment": null}, "IP_ISP": {"type": "TEXT", "index": 26, "name": "IP_ISP", "comment": null}, "IP_ORGANIZATION": {"type": "TEXT", "index": 27, "name": "IP_ORGANIZATION", "comment": null}, "IP_DOMAIN": {"type": "TEXT", "index": 28, "name": "IP_DOMAIN", "comment": null}, "IP_NETSPEED": {"type": "TEXT", "index": 29, "name": "IP_NETSPEED", "comment": null}, "PAGE_URL": {"type": "TEXT", "index": 30, "name": "PAGE_URL", "comment": null}, "PAGE_TITLE": {"type": "TEXT", "index": 31, "name": "PAGE_TITLE", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 32, "name": "PAGE_REFERRER", "comment": null}, "PAGE_URLSCHEME": {"type": "TEXT", "index": 33, "name": "PAGE_URLSCHEME", "comment": null}, "PAGE_URLHOST": {"type": "TEXT", "index": 34, "name": "PAGE_URLHOST", "comment": null}, "PAGE_URLPORT": {"type": "NUMBER", "index": 35, "name": "PAGE_URLPORT", "comment": null}, "PAGE_URLPATH": {"type": "TEXT", "index": 36, "name": "PAGE_URLPATH", "comment": null}, "PAGE_URLQUERY": {"type": "TEXT", "index": 37, "name": "PAGE_URLQUERY", "comment": null}, "PAGE_URLFRAGMENT": {"type": "TEXT", "index": 38, "name": "PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 39, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 40, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPORT": {"type": "NUMBER", "index": 41, "name": "REFR_URLPORT", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 42, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 43, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 44, "name": "REFR_URLFRAGMENT", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 45, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 46, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 47, "name": "REFR_TERM", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 48, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 49, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 50, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 51, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 52, "name": "MKT_CAMPAIGN", "comment": null}, "SE_CATEGORY": {"type": "TEXT", "index": 53, "name": "SE_CATEGORY", "comment": null}, "SE_ACTION": {"type": "TEXT", "index": 54, "name": "SE_ACTION", "comment": null}, "SE_LABEL": {"type": "TEXT", "index": 55, "name": "SE_LABEL", "comment": null}, "SE_PROPERTY": {"type": "TEXT", "index": 56, "name": "SE_PROPERTY", "comment": null}, "SE_VALUE": {"type": "FLOAT", "index": 57, "name": "SE_VALUE", "comment": null}, "TR_ORDERID": {"type": "TEXT", "index": 58, "name": "TR_ORDERID", "comment": null}, "TR_AFFILIATION": {"type": "TEXT", "index": 59, "name": "TR_AFFILIATION", "comment": null}, "TR_TOTAL": {"type": "FLOAT", "index": 60, "name": "TR_TOTAL", "comment": null}, "TR_TAX": {"type": "FLOAT", "index": 61, "name": "TR_TAX", "comment": null}, "TR_SHIPPING": {"type": "FLOAT", "index": 62, "name": "TR_SHIPPING", "comment": null}, "TR_CITY": {"type": "TEXT", "index": 63, "name": "TR_CITY", "comment": null}, "TR_STATE": {"type": "TEXT", "index": 64, "name": "TR_STATE", "comment": null}, "TR_COUNTRY": {"type": "TEXT", "index": 65, "name": "TR_COUNTRY", "comment": null}, "TI_ORDERID": {"type": "TEXT", "index": 66, "name": "TI_ORDERID", "comment": null}, "TI_SKU": {"type": "TEXT", "index": 67, "name": "TI_SKU", "comment": null}, "TI_NAME": {"type": "TEXT", "index": 68, "name": "TI_NAME", "comment": null}, "TI_CATEGORY": {"type": "TEXT", "index": 69, "name": "TI_CATEGORY", "comment": null}, "TI_PRICE": {"type": "FLOAT", "index": 70, "name": "TI_PRICE", "comment": null}, "TI_QUANTITY": {"type": "NUMBER", "index": 71, "name": "TI_QUANTITY", "comment": null}, "PP_XOFFSET_MIN": {"type": "NUMBER", "index": 72, "name": "PP_XOFFSET_MIN", "comment": null}, "PP_XOFFSET_MAX": {"type": "NUMBER", "index": 73, "name": "PP_XOFFSET_MAX", "comment": null}, "PP_YOFFSET_MIN": {"type": "NUMBER", "index": 74, "name": "PP_YOFFSET_MIN", "comment": null}, "PP_YOFFSET_MAX": {"type": "NUMBER", "index": 75, "name": "PP_YOFFSET_MAX", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 76, "name": "USERAGENT", "comment": null}, "BR_NAME": {"type": "TEXT", "index": 77, "name": "BR_NAME", "comment": null}, "BR_FAMILY": {"type": "TEXT", "index": 78, "name": "BR_FAMILY", "comment": null}, "BR_VERSION": {"type": "TEXT", "index": 79, "name": "BR_VERSION", "comment": null}, "BR_TYPE": {"type": "TEXT", "index": 80, "name": "BR_TYPE", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 81, "name": "BR_RENDERENGINE", "comment": null}, "BR_LANG": {"type": "TEXT", "index": 82, "name": "BR_LANG", "comment": null}, "BR_FEATURES_PDF": {"type": "BOOLEAN", "index": 83, "name": "BR_FEATURES_PDF", "comment": null}, "BR_FEATURES_FLASH": {"type": "BOOLEAN", "index": 84, "name": "BR_FEATURES_FLASH", "comment": null}, "BR_FEATURES_JAVA": {"type": "BOOLEAN", "index": 85, "name": "BR_FEATURES_JAVA", "comment": null}, "BR_FEATURES_DIRECTOR": {"type": "BOOLEAN", "index": 86, "name": "BR_FEATURES_DIRECTOR", "comment": null}, "BR_FEATURES_QUICKTIME": {"type": "BOOLEAN", "index": 87, "name": "BR_FEATURES_QUICKTIME", "comment": null}, "BR_FEATURES_REALPLAYER": {"type": "BOOLEAN", "index": 88, "name": "BR_FEATURES_REALPLAYER", "comment": null}, "BR_FEATURES_WINDOWSMEDIA": {"type": "BOOLEAN", "index": 89, "name": "BR_FEATURES_WINDOWSMEDIA", "comment": null}, "BR_FEATURES_GEARS": {"type": "BOOLEAN", "index": 90, "name": "BR_FEATURES_GEARS", "comment": null}, "BR_FEATURES_SILVERLIGHT": {"type": "BOOLEAN", "index": 91, "name": "BR_FEATURES_SILVERLIGHT", "comment": null}, "BR_COOKIES": {"type": "BOOLEAN", "index": 92, "name": "BR_COOKIES", "comment": null}, "BR_COLORDEPTH": {"type": "TEXT", "index": 93, "name": "BR_COLORDEPTH", "comment": null}, "BR_VIEWWIDTH": {"type": "NUMBER", "index": 94, "name": "BR_VIEWWIDTH", "comment": null}, "BR_VIEWHEIGHT": {"type": "NUMBER", "index": 95, "name": "BR_VIEWHEIGHT", "comment": null}, "OS_NAME": {"type": "TEXT", "index": 96, "name": "OS_NAME", "comment": null}, "OS_FAMILY": {"type": "TEXT", "index": 97, "name": "OS_FAMILY", "comment": null}, "OS_MANUFACTURER": {"type": "TEXT", "index": 98, "name": "OS_MANUFACTURER", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 99, "name": "OS_TIMEZONE", "comment": null}, "DVCE_TYPE": {"type": "TEXT", "index": 100, "name": "DVCE_TYPE", "comment": null}, "DVCE_ISMOBILE": {"type": "BOOLEAN", "index": 101, "name": "DVCE_ISMOBILE", "comment": null}, "DVCE_SCREENWIDTH": {"type": "NUMBER", "index": 102, "name": "DVCE_SCREENWIDTH", "comment": null}, "DVCE_SCREENHEIGHT": {"type": "NUMBER", "index": 103, "name": "DVCE_SCREENHEIGHT", "comment": null}, "DOC_CHARSET": {"type": "TEXT", "index": 104, "name": "DOC_CHARSET", "comment": null}, "DOC_WIDTH": {"type": "NUMBER", "index": 105, "name": "DOC_WIDTH", "comment": null}, "DOC_HEIGHT": {"type": "NUMBER", "index": 106, "name": "DOC_HEIGHT", "comment": null}, "TR_CURRENCY": {"type": "TEXT", "index": 107, "name": "TR_CURRENCY", "comment": null}, "TR_TOTAL_BASE": {"type": "FLOAT", "index": 108, "name": "TR_TOTAL_BASE", "comment": null}, "TR_TAX_BASE": {"type": "FLOAT", "index": 109, "name": "TR_TAX_BASE", "comment": null}, "TR_SHIPPING_BASE": {"type": "FLOAT", "index": 110, "name": "TR_SHIPPING_BASE", "comment": null}, "TI_CURRENCY": {"type": "TEXT", "index": 111, "name": "TI_CURRENCY", "comment": null}, "TI_PRICE_BASE": {"type": "FLOAT", "index": 112, "name": "TI_PRICE_BASE", "comment": null}, "BASE_CURRENCY": {"type": "TEXT", "index": 113, "name": "BASE_CURRENCY", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 114, "name": "GEO_TIMEZONE", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 115, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 116, "name": "MKT_NETWORK", "comment": null}, "ETL_TAGS": {"type": "TEXT", "index": 117, "name": "ETL_TAGS", "comment": null}, "DVCE_SENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 118, "name": "DVCE_SENT_TSTAMP", "comment": null}, "REFR_DOMAIN_USERID": {"type": "TEXT", "index": 119, "name": "REFR_DOMAIN_USERID", "comment": null}, "REFR_DVCE_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 120, "name": "REFR_DVCE_TSTAMP", "comment": null}, "DOMAIN_SESSIONID": {"type": "TEXT", "index": 121, "name": "DOMAIN_SESSIONID", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 122, "name": "DERIVED_TSTAMP", "comment": null}, "EVENT_VENDOR": {"type": "TEXT", "index": 123, "name": "EVENT_VENDOR", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 124, "name": "EVENT_NAME", "comment": null}, "EVENT_FORMAT": {"type": "TEXT", "index": 125, "name": "EVENT_FORMAT", "comment": null}, "EVENT_VERSION": {"type": "TEXT", "index": 126, "name": "EVENT_VERSION", "comment": null}, "EVENT_FINGERPRINT": {"type": "TEXT", "index": 127, "name": "EVENT_FINGERPRINT", "comment": null}, "TRUE_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 128, "name": "TRUE_TSTAMP", "comment": null}, "LOAD_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 129, "name": "LOAD_TSTAMP", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_WEB_PAGE_1_0_0": {"type": "TEXT", "index": 130, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_WEB_PAGE_1_0_0", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CONSENT_PREFERENCES_1_0_0": {"type": "TEXT", "index": 131, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CONSENT_PREFERENCES_1_0_0", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CMP_VISIBLE_1_0_0": {"type": "TEXT", "index": 132, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CMP_VISIBLE_1_0_0", "comment": null}, "CONTEXTS_COM_IAB_SNOWPLOW_SPIDERS_AND_ROBOTS_1_0_0": {"type": "TEXT", "index": 133, "name": "CONTEXTS_COM_IAB_SNOWPLOW_SPIDERS_AND_ROBOTS_1_0_0", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_UA_PARSER_CONTEXT_1_0_0": {"type": "TEXT", "index": 134, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_UA_PARSER_CONTEXT_1_0_0", "comment": null}, "CONTEXTS_NL_BASJES_YAUAA_CONTEXT_1_0_0": {"type": "TEXT", "index": 135, "name": "CONTEXTS_NL_BASJES_YAUAA_CONTEXT_1_0_0", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_CLIENT_SESSION_1_0_0": {"type": "TEXT", "index": 136, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_CLIENT_SESSION_1_0_0", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_1_0_0": {"type": "TEXT", "index": 137, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_1_0_0", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_MOBILE_CONTEXT_1_0_0": {"type": "TEXT", "index": 138, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_MOBILE_CONTEXT_1_0_0", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_VIEW_1_0_0": {"type": "TEXT", "index": 139, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_VIEW_1_0_0", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_GEOLOCATION_CONTEXT_1_0_0": {"type": "TEXT", "index": 140, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_GEOLOCATION_CONTEXT_1_0_0", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_APPLICATION_1_0_0": {"type": "TEXT", "index": 141, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_APPLICATION_1_0_0", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_APPLICATION_ERROR_1_0_0": {"type": "TEXT", "index": 142, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_APPLICATION_ERROR_1_0_0", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_DEEP_LINK_1_0_0": {"type": "TEXT", "index": 143, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_DEEP_LINK_1_0_0", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_BROWSER_CONTEXT_1_0_0": {"type": "TEXT", "index": 144, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_BROWSER_CONTEXT_1_0_0", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 284, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 146432, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_events"}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_actual": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_CMP_STATS_ACTUAL", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"EVENT_ID": {"type": "TEXT", "index": 1, "name": "EVENT_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "USER_IDENTIFIER", "comment": null}, "VIEW_ID": {"type": "TEXT", "index": 3, "name": "VIEW_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 4, "name": "SESSION_IDENTIFIER", "comment": null}, "CMP_LOAD_TIME": {"type": "FLOAT", "index": 5, "name": "CMP_LOAD_TIME", "comment": null}, "CMP_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CMP_TSTAMP", "comment": null}, "FIRST_CONSENT_EVENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "FIRST_CONSENT_EVENT_TSTAMP", "comment": null}, "FIRST_CONSENT_EVENT_TYPE": {"type": "TEXT", "index": 8, "name": "FIRST_CONSENT_EVENT_TYPE", "comment": null}, "CMP_INTERACTION_TIME": {"type": "NUMBER", "index": 9, "name": "CMP_INTERACTION_TIME", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_actual"}, "model.snowplow_unified.snowplow_unified_consent_events_this_run": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SCRATCH", "name": "SNOWPLOW_UNIFIED_CONSENT_EVENTS_THIS_RUN", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"EVENT_ID": {"type": "TEXT", "index": 1, "name": "EVENT_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "USER_IDENTIFIER", "comment": null}, "USER_ID": {"type": "TEXT", "index": 3, "name": "USER_ID", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 4, "name": "GEO_COUNTRY", "comment": null}, "VIEW_ID": {"type": "TEXT", "index": 5, "name": "VIEW_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 6, "name": "SESSION_IDENTIFIER", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "DERIVED_TSTAMP", "comment": null}, "LOAD_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "LOAD_TSTAMP", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 9, "name": "EVENT_NAME", "comment": null}, "EVENT_TYPE": {"type": "TEXT", "index": 10, "name": "EVENT_TYPE", "comment": null}, "BASIS_FOR_PROCESSING": {"type": "TEXT", "index": 11, "name": "BASIS_FOR_PROCESSING", "comment": null}, "CONSENT_URL": {"type": "TEXT", "index": 12, "name": "CONSENT_URL", "comment": null}, "CONSENT_VERSION": {"type": "TEXT", "index": 13, "name": "CONSENT_VERSION", "comment": null}, "CONSENT_SCOPES": {"type": "TEXT", "index": 14, "name": "CONSENT_SCOPES", "comment": null}, "DOMAINS_APPLIED": {"type": "TEXT", "index": 15, "name": "DOMAINS_APPLIED", "comment": null}, "GDPR_APPLIES": {"type": "BOOLEAN", "index": 16, "name": "GDPR_APPLIES", "comment": null}, "CMP_LOAD_TIME": {"type": "FLOAT", "index": 17, "name": "CMP_LOAD_TIME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 63, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 13312, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_consent_events_this_run"}, "model.snowplow_unified.snowplow_unified_consent_versions": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_DERIVED", "name": "SNOWPLOW_UNIFIED_CONSENT_VERSIONS", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"CONSENT_VERSION": {"type": "TEXT", "index": 1, "name": "CONSENT_VERSION", "comment": null}, "VERSION_START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "VERSION_START_TSTAMP", "comment": null}, "CONSENT_SCOPES": {"type": "TEXT", "index": 3, "name": "CONSENT_SCOPES", "comment": null}, "CONSENT_URL": {"type": "TEXT", "index": 4, "name": "CONSENT_URL", "comment": null}, "DOMAINS_APPLIED": {"type": "TEXT", "index": 5, "name": "DOMAINS_APPLIED", "comment": null}, "IS_LATEST_VERSION": {"type": "BOOLEAN", "index": 6, "name": "IS_LATEST_VERSION", "comment": null}, "LAST_ALLOW_ALL_EVENT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "LAST_ALLOW_ALL_EVENT", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 3072, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_consent_versions"}, "seed.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_BASE_QUARANTINED_SESSIONS_EXPECTED", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"SESSION_IDENTIFIER": {"type": "TEXT", "index": 1, "name": "SESSION_IDENTIFIER", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 1024, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected"}, "seed.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_CMP_STATS_EXPECTED", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"EVENT_ID": {"type": "TEXT", "index": 1, "name": "EVENT_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "USER_IDENTIFIER", "comment": null}, "ORIGINAL_USER_IDENTIFIER": {"type": "TEXT", "index": 3, "name": "ORIGINAL_USER_IDENTIFIER", "comment": null}, "VIEW_ID": {"type": "NUMBER", "index": 4, "name": "VIEW_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 5, "name": "SESSION_IDENTIFIER", "comment": null}, "ORIGINAL_SESSION_IDENTIFIER": {"type": "TEXT", "index": 6, "name": "ORIGINAL_SESSION_IDENTIFIER", "comment": null}, "CMP_LOAD_TIME": {"type": "FLOAT", "index": 7, "name": "CMP_LOAD_TIME", "comment": null}, "CMP_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 8, "name": "CMP_TSTAMP", "comment": null}, "FIRST_CONSENT_EVENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 9, "name": "FIRST_CONSENT_EVENT_TSTAMP", "comment": null}, "FIRST_CONSENT_EVENT_TYPE": {"type": "TEXT", "index": 10, "name": "FIRST_CONSENT_EVENT_TYPE", "comment": null}, "CMP_INTERACTION_TIME": {"type": "FLOAT", "index": 11, "name": "CMP_INTERACTION_TIME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 33, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 12800, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected"}, "model.snowplow_unified.snowplow_unified_views": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_DERIVED", "name": "SNOWPLOW_UNIFIED_VIEWS", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"VIEW_ID": {"type": "TEXT", "index": 1, "name": "VIEW_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 2, "name": "EVENT_NAME", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 3, "name": "EVENT_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 4, "name": "SESSION_IDENTIFIER", "comment": null}, "VIEW_IN_SESSION_INDEX": {"type": "NUMBER", "index": 5, "name": "VIEW_IN_SESSION_INDEX", "comment": null}, "VIEWS_IN_SESSION": {"type": "NUMBER", "index": 6, "name": "VIEWS_IN_SESSION", "comment": null}, "SESSION__PREVIOUS_SESSION_ID": {"type": "TEXT", "index": 7, "name": "SESSION__PREVIOUS_SESSION_ID", "comment": null}, "USER_ID": {"type": "TEXT", "index": 8, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 9, "name": "USER_IDENTIFIER", "comment": null}, "STITCHED_USER_ID": {"type": "TEXT", "index": 10, "name": "STITCHED_USER_ID", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 11, "name": "NETWORK_USERID", "comment": null}, "DVCE_CREATED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "DVCE_CREATED_TSTAMP", "comment": null}, "COLLECTOR_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "COLLECTOR_TSTAMP", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "DERIVED_TSTAMP", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "END_TSTAMP", "comment": null}, "MODEL_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "MODEL_TSTAMP", "comment": null}, "APP_ID": {"type": "TEXT", "index": 18, "name": "APP_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 19, "name": "PLATFORM", "comment": null}, "DEVICE_IDENTIFIER": {"type": "TEXT", "index": 20, "name": "DEVICE_IDENTIFIER", "comment": null}, "DEVICE_CATEGORY": {"type": "TEXT", "index": 21, "name": "DEVICE_CATEGORY", "comment": null}, "DEVICE_SESSION_INDEX": {"type": "NUMBER", "index": 22, "name": "DEVICE_SESSION_INDEX", "comment": null}, "OS_VERSION": {"type": "TEXT", "index": 23, "name": "OS_VERSION", "comment": null}, "OS_TYPE": {"type": "TEXT", "index": 24, "name": "OS_TYPE", "comment": null}, "MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 25, "name": "MOBILE__DEVICE_MANUFACTURER", "comment": null}, "MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 26, "name": "MOBILE__DEVICE_MODEL", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 27, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 28, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 29, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 30, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 31, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__CARRIER": {"type": "TEXT", "index": 32, "name": "MOBILE__CARRIER", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 33, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 34, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 35, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 36, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 37, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 38, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 39, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 40, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 41, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 42, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 43, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 44, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 45, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "FLOAT", "index": 46, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 47, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 48, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 49, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 50, "name": "OS_TIMEZONE", "comment": null}, "SCREEN_RESOLUTION": {"type": "TEXT", "index": 51, "name": "SCREEN_RESOLUTION", "comment": null}, "YAUAA__DEVICE_CLASS": {"type": "TEXT", "index": 52, "name": "YAUAA__DEVICE_CLASS", "comment": null}, "YAUAA__DEVICE_VERSION": {"type": "TEXT", "index": 53, "name": "YAUAA__DEVICE_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_VERSION": {"type": "TEXT", "index": 54, "name": "YAUAA__OPERATING_SYSTEM_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_CLASS": {"type": "TEXT", "index": 55, "name": "YAUAA__OPERATING_SYSTEM_CLASS", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME": {"type": "TEXT", "index": 56, "name": "YAUAA__OPERATING_SYSTEM_NAME", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME_VERSION": {"type": "TEXT", "index": 57, "name": "YAUAA__OPERATING_SYSTEM_NAME_VERSION", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 58, "name": "GEO_COUNTRY", "comment": null}, "GEO_REGION": {"type": "TEXT", "index": 59, "name": "GEO_REGION", "comment": null}, "GEO_REGION_NAME": {"type": "TEXT", "index": 60, "name": "GEO_REGION_NAME", "comment": null}, "GEO_CITY": {"type": "TEXT", "index": 61, "name": "GEO_CITY", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 62, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 63, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 64, "name": "GEO_LONGITUDE", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 65, "name": "GEO_TIMEZONE", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 66, "name": "USER_IPADDRESS", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 67, "name": "ENGAGED_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "FLOAT", "index": 68, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "HORIZONTAL_PIXELS_SCROLLED": {"type": "NUMBER", "index": 69, "name": "HORIZONTAL_PIXELS_SCROLLED", "comment": null}, "VERTICAL_PIXELS_SCROLLED": {"type": "NUMBER", "index": 70, "name": "VERTICAL_PIXELS_SCROLLED", "comment": null}, "HORIZONTAL_PERCENTAGE_SCROLLED": {"type": "FLOAT", "index": 71, "name": "HORIZONTAL_PERCENTAGE_SCROLLED", "comment": null}, "VERTICAL_PERCENTAGE_SCROLLED": {"type": "FLOAT", "index": 72, "name": "VERTICAL_PERCENTAGE_SCROLLED", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 73, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 74, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 75, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 76, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 77, "name": "MKT_CAMPAIGN", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 78, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 79, "name": "MKT_NETWORK", "comment": null}, "DEFAULT_CHANNEL_GROUP": {"type": "TEXT", "index": 80, "name": "DEFAULT_CHANNEL_GROUP", "comment": null}, "PAGE_URL": {"type": "TEXT", "index": 81, "name": "PAGE_URL", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 82, "name": "PAGE_REFERRER", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 83, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 84, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 85, "name": "REFR_TERM", "comment": null}, "PAGE_TITLE": {"type": "TEXT", "index": 86, "name": "PAGE_TITLE", "comment": null}, "CONTENT_GROUP": {"type": "TEXT", "index": 87, "name": "CONTENT_GROUP", "comment": null}, "PAGE_URLSCHEME": {"type": "TEXT", "index": 88, "name": "PAGE_URLSCHEME", "comment": null}, "PAGE_URLHOST": {"type": "TEXT", "index": 89, "name": "PAGE_URLHOST", "comment": null}, "PAGE_URLPATH": {"type": "TEXT", "index": 90, "name": "PAGE_URLPATH", "comment": null}, "PAGE_URLQUERY": {"type": "TEXT", "index": 91, "name": "PAGE_URLQUERY", "comment": null}, "PAGE_URLFRAGMENT": {"type": "TEXT", "index": 92, "name": "PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 93, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 94, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 95, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 96, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 97, "name": "REFR_URLFRAGMENT", "comment": null}, "BR_LANG": {"type": "TEXT", "index": 98, "name": "BR_LANG", "comment": null}, "BR_VIEWWIDTH": {"type": "NUMBER", "index": 99, "name": "BR_VIEWWIDTH", "comment": null}, "BR_VIEWHEIGHT": {"type": "NUMBER", "index": 100, "name": "BR_VIEWHEIGHT", "comment": null}, "BR_COLORDEPTH": {"type": "TEXT", "index": 101, "name": "BR_COLORDEPTH", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 102, "name": "BR_RENDERENGINE", "comment": null}, "DOC_WIDTH": {"type": "NUMBER", "index": 103, "name": "DOC_WIDTH", "comment": null}, "DOC_HEIGHT": {"type": "NUMBER", "index": 104, "name": "DOC_HEIGHT", "comment": null}, "IAB__CATEGORY": {"type": "TEXT", "index": 105, "name": "IAB__CATEGORY", "comment": null}, "IAB__PRIMARY_IMPACT": {"type": "TEXT", "index": 106, "name": "IAB__PRIMARY_IMPACT", "comment": null}, "IAB__REASON": {"type": "TEXT", "index": 107, "name": "IAB__REASON", "comment": null}, "IAB__SPIDER_OR_ROBOT": {"type": "BOOLEAN", "index": 108, "name": "IAB__SPIDER_OR_ROBOT", "comment": null}, "YAUAA__DEVICE_NAME": {"type": "TEXT", "index": 109, "name": "YAUAA__DEVICE_NAME", "comment": null}, "YAUAA__AGENT_CLASS": {"type": "TEXT", "index": 110, "name": "YAUAA__AGENT_CLASS", "comment": null}, "YAUAA__AGENT_NAME": {"type": "TEXT", "index": 111, "name": "YAUAA__AGENT_NAME", "comment": null}, "YAUAA__AGENT_NAME_VERSION": {"type": "TEXT", "index": 112, "name": "YAUAA__AGENT_NAME_VERSION", "comment": null}, "YAUAA__AGENT_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 113, "name": "YAUAA__AGENT_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__AGENT_VERSION": {"type": "TEXT", "index": 114, "name": "YAUAA__AGENT_VERSION", "comment": null}, "YAUAA__AGENT_VERSION_MAJOR": {"type": "TEXT", "index": 115, "name": "YAUAA__AGENT_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_CLASS": {"type": "TEXT", "index": 116, "name": "YAUAA__LAYOUT_ENGINE_CLASS", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME": {"type": "TEXT", "index": 117, "name": "YAUAA__LAYOUT_ENGINE_NAME", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION": {"type": "TEXT", "index": 118, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 119, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION": {"type": "TEXT", "index": 120, "name": "YAUAA__LAYOUT_ENGINE_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR": {"type": "TEXT", "index": 121, "name": "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR", "comment": null}, "UA__DEVICE_FAMILY": {"type": "TEXT", "index": 122, "name": "UA__DEVICE_FAMILY", "comment": null}, "UA__OS_VERSION": {"type": "TEXT", "index": 123, "name": "UA__OS_VERSION", "comment": null}, "UA__OS_MAJOR": {"type": "TEXT", "index": 124, "name": "UA__OS_MAJOR", "comment": null}, "UA__OS_MINOR": {"type": "TEXT", "index": 125, "name": "UA__OS_MINOR", "comment": null}, "UA__OS_PATCH": {"type": "TEXT", "index": 126, "name": "UA__OS_PATCH", "comment": null}, "UA__OS_PATCH_MINOR": {"type": "TEXT", "index": 127, "name": "UA__OS_PATCH_MINOR", "comment": null}, "UA__USERAGENT_FAMILY": {"type": "TEXT", "index": 128, "name": "UA__USERAGENT_FAMILY", "comment": null}, "UA__USERAGENT_MAJOR": {"type": "TEXT", "index": 129, "name": "UA__USERAGENT_MAJOR", "comment": null}, "UA__USERAGENT_MINOR": {"type": "TEXT", "index": 130, "name": "UA__USERAGENT_MINOR", "comment": null}, "UA__USERAGENT_PATCH": {"type": "TEXT", "index": 131, "name": "UA__USERAGENT_PATCH", "comment": null}, "UA__USERAGENT_VERSION": {"type": "TEXT", "index": 132, "name": "UA__USERAGENT_VERSION", "comment": null}, "SCREEN_VIEW__NAME": {"type": "TEXT", "index": 133, "name": "SCREEN_VIEW__NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_ID": {"type": "TEXT", "index": 134, "name": "SCREEN_VIEW__PREVIOUS_ID", "comment": null}, "SCREEN_VIEW__PREVIOUS_NAME": {"type": "TEXT", "index": 135, "name": "SCREEN_VIEW__PREVIOUS_NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_TYPE": {"type": "TEXT", "index": 136, "name": "SCREEN_VIEW__PREVIOUS_TYPE", "comment": null}, "SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 137, "name": "SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 138, "name": "SCREEN_VIEW__TYPE", "comment": null}, "APP__BUILD": {"type": "TEXT", "index": 139, "name": "APP__BUILD", "comment": null}, "APP__VERSION": {"type": "TEXT", "index": 140, "name": "APP__VERSION", "comment": null}, "GEO__ALTITUDE": {"type": "FLOAT", "index": 141, "name": "GEO__ALTITUDE", "comment": null}, "GEO__ALTITUDE_ACCURACY": {"type": "FLOAT", "index": 142, "name": "GEO__ALTITUDE_ACCURACY", "comment": null}, "GEO__BEARING": {"type": "FLOAT", "index": 143, "name": "GEO__BEARING", "comment": null}, "GEO__LATITUDE": {"type": "FLOAT", "index": 144, "name": "GEO__LATITUDE", "comment": null}, "GEO__LATITUDE_LONGITUDE_ACCURACY": {"type": "FLOAT", "index": 145, "name": "GEO__LATITUDE_LONGITUDE_ACCURACY", "comment": null}, "GEO__LONGITUDE": {"type": "FLOAT", "index": 146, "name": "GEO__LONGITUDE", "comment": null}, "GEO__SPEED": {"type": "FLOAT", "index": 147, "name": "GEO__SPEED", "comment": null}, "SCREEN__FRAGMENT": {"type": "TEXT", "index": 148, "name": "SCREEN__FRAGMENT", "comment": null}, "SCREEN__TOP_VIEW_CONTROLLER": {"type": "TEXT", "index": 149, "name": "SCREEN__TOP_VIEW_CONTROLLER", "comment": null}, "SCREEN__VIEW_CONTROLLER": {"type": "TEXT", "index": 150, "name": "SCREEN__VIEW_CONTROLLER", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 151, "name": "USERAGENT", "comment": null}, "V_COLLECTOR": {"type": "TEXT", "index": 152, "name": "V_COLLECTOR", "comment": null}, "EVENT_ID2": {"type": "TEXT", "index": 153, "name": "EVENT_ID2", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 109, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 93184, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(to_date(start_tstamp))", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_views"}, "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_events": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_WEB_VITAL_EVENTS", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"APP_ID": {"type": "TEXT", "index": 1, "name": "APP_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 2, "name": "PLATFORM", "comment": null}, "ETL_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "ETL_TSTAMP", "comment": null}, "COLLECTOR_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "COLLECTOR_TSTAMP", "comment": null}, "DVCE_CREATED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "DVCE_CREATED_TSTAMP", "comment": null}, "EVENT": {"type": "NUMBER", "index": 6, "name": "EVENT", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 7, "name": "EVENT_ID", "comment": null}, "TXN_ID": {"type": "NUMBER", "index": 8, "name": "TXN_ID", "comment": null}, "NAME_TRACKER": {"type": "NUMBER", "index": 9, "name": "NAME_TRACKER", "comment": null}, "V_TRACKER": {"type": "NUMBER", "index": 10, "name": "V_TRACKER", "comment": null}, "V_COLLECTOR": {"type": "NUMBER", "index": 11, "name": "V_COLLECTOR", "comment": null}, "V_ETL": {"type": "NUMBER", "index": 12, "name": "V_ETL", "comment": null}, "USER_ID": {"type": "TEXT", "index": 13, "name": "USER_ID", "comment": null}, "USER_IPADDRESS": {"type": "NUMBER", "index": 14, "name": "USER_IPADDRESS", "comment": null}, "USER_FINGERPRINT": {"type": "TEXT", "index": 15, "name": "USER_FINGERPRINT", "comment": null}, "DOMAIN_USERID": {"type": "TEXT", "index": 16, "name": "DOMAIN_USERID", "comment": null}, "DOMAIN_SESSIONIDX": {"type": "NUMBER", "index": 17, "name": "DOMAIN_SESSIONIDX", "comment": null}, "NETWORK_USERID": {"type": "NUMBER", "index": 18, "name": "NETWORK_USERID", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 19, "name": "GEO_COUNTRY", "comment": null}, "GEO_REGION": {"type": "NUMBER", "index": 20, "name": "GEO_REGION", "comment": null}, "GEO_CITY": {"type": "NUMBER", "index": 21, "name": "GEO_CITY", "comment": null}, "GEO_ZIPCODE": {"type": "NUMBER", "index": 22, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "NUMBER", "index": 23, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "NUMBER", "index": 24, "name": "GEO_LONGITUDE", "comment": null}, "GEO_REGION_NAME": {"type": "NUMBER", "index": 25, "name": "GEO_REGION_NAME", "comment": null}, "IP_ISP": {"type": "TEXT", "index": 26, "name": "IP_ISP", "comment": null}, "IP_ORGANIZATION": {"type": "TEXT", "index": 27, "name": "IP_ORGANIZATION", "comment": null}, "IP_DOMAIN": {"type": "TEXT", "index": 28, "name": "IP_DOMAIN", "comment": null}, "IP_NETSPEED": {"type": "TEXT", "index": 29, "name": "IP_NETSPEED", "comment": null}, "PAGE_URL": {"type": "TEXT", "index": 30, "name": "PAGE_URL", "comment": null}, "PAGE_TITLE": {"type": "TEXT", "index": 31, "name": "PAGE_TITLE", "comment": null}, "PAGE_REFERRER": {"type": "NUMBER", "index": 32, "name": "PAGE_REFERRER", "comment": null}, "PAGE_URLSCHEME": {"type": "NUMBER", "index": 33, "name": "PAGE_URLSCHEME", "comment": null}, "PAGE_URLHOST": {"type": "NUMBER", "index": 34, "name": "PAGE_URLHOST", "comment": null}, "PAGE_URLPORT": {"type": "NUMBER", "index": 35, "name": "PAGE_URLPORT", "comment": null}, "PAGE_URLPATH": {"type": "NUMBER", "index": 36, "name": "PAGE_URLPATH", "comment": null}, "PAGE_URLQUERY": {"type": "NUMBER", "index": 37, "name": "PAGE_URLQUERY", "comment": null}, "PAGE_URLFRAGMENT": {"type": "TEXT", "index": 38, "name": "PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "NUMBER", "index": 39, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "NUMBER", "index": 40, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPORT": {"type": "NUMBER", "index": 41, "name": "REFR_URLPORT", "comment": null}, "REFR_URLPATH": {"type": "NUMBER", "index": 42, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "NUMBER", "index": 43, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 44, "name": "REFR_URLFRAGMENT", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 45, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 46, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 47, "name": "REFR_TERM", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 48, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 49, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 50, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 51, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 52, "name": "MKT_CAMPAIGN", "comment": null}, "SE_CATEGORY": {"type": "NUMBER", "index": 53, "name": "SE_CATEGORY", "comment": null}, "SE_ACTION": {"type": "NUMBER", "index": 54, "name": "SE_ACTION", "comment": null}, "SE_LABEL": {"type": "TEXT", "index": 55, "name": "SE_LABEL", "comment": null}, "SE_PROPERTY": {"type": "TEXT", "index": 56, "name": "SE_PROPERTY", "comment": null}, "SE_VALUE": {"type": "FLOAT", "index": 57, "name": "SE_VALUE", "comment": null}, "TR_ORDERID": {"type": "TEXT", "index": 58, "name": "TR_ORDERID", "comment": null}, "TR_AFFILIATION": {"type": "TEXT", "index": 59, "name": "TR_AFFILIATION", "comment": null}, "TR_TOTAL": {"type": "FLOAT", "index": 60, "name": "TR_TOTAL", "comment": null}, "TR_TAX": {"type": "FLOAT", "index": 61, "name": "TR_TAX", "comment": null}, "TR_SHIPPING": {"type": "FLOAT", "index": 62, "name": "TR_SHIPPING", "comment": null}, "TR_CITY": {"type": "TEXT", "index": 63, "name": "TR_CITY", "comment": null}, "TR_STATE": {"type": "TEXT", "index": 64, "name": "TR_STATE", "comment": null}, "TR_COUNTRY": {"type": "TEXT", "index": 65, "name": "TR_COUNTRY", "comment": null}, "TI_ORDERID": {"type": "TEXT", "index": 66, "name": "TI_ORDERID", "comment": null}, "TI_SKU": {"type": "TEXT", "index": 67, "name": "TI_SKU", "comment": null}, "TI_NAME": {"type": "TEXT", "index": 68, "name": "TI_NAME", "comment": null}, "TI_CATEGORY": {"type": "TEXT", "index": 69, "name": "TI_CATEGORY", "comment": null}, "TI_PRICE": {"type": "FLOAT", "index": 70, "name": "TI_PRICE", "comment": null}, "TI_QUANTITY": {"type": "NUMBER", "index": 71, "name": "TI_QUANTITY", "comment": null}, "PP_XOFFSET_MIN": {"type": "NUMBER", "index": 72, "name": "PP_XOFFSET_MIN", "comment": null}, "PP_XOFFSET_MAX": {"type": "NUMBER", "index": 73, "name": "PP_XOFFSET_MAX", "comment": null}, "PP_YOFFSET_MIN": {"type": "NUMBER", "index": 74, "name": "PP_YOFFSET_MIN", "comment": null}, "PP_YOFFSET_MAX": {"type": "NUMBER", "index": 75, "name": "PP_YOFFSET_MAX", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 76, "name": "USERAGENT", "comment": null}, "BR_NAME": {"type": "TEXT", "index": 77, "name": "BR_NAME", "comment": null}, "BR_FAMILY": {"type": "TEXT", "index": 78, "name": "BR_FAMILY", "comment": null}, "BR_VERSION": {"type": "TEXT", "index": 79, "name": "BR_VERSION", "comment": null}, "BR_TYPE": {"type": "TEXT", "index": 80, "name": "BR_TYPE", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 81, "name": "BR_RENDERENGINE", "comment": null}, "BR_LANG": {"type": "TEXT", "index": 82, "name": "BR_LANG", "comment": null}, "BR_FEATURES_PDF": {"type": "NUMBER", "index": 83, "name": "BR_FEATURES_PDF", "comment": null}, "BR_FEATURES_FLASH": {"type": "NUMBER", "index": 84, "name": "BR_FEATURES_FLASH", "comment": null}, "BR_FEATURES_JAVA": {"type": "NUMBER", "index": 85, "name": "BR_FEATURES_JAVA", "comment": null}, "BR_FEATURES_DIRECTOR": {"type": "NUMBER", "index": 86, "name": "BR_FEATURES_DIRECTOR", "comment": null}, "BR_FEATURES_QUICKTIME": {"type": "NUMBER", "index": 87, "name": "BR_FEATURES_QUICKTIME", "comment": null}, "BR_FEATURES_REALPLAYER": {"type": "NUMBER", "index": 88, "name": "BR_FEATURES_REALPLAYER", "comment": null}, "BR_FEATURES_WINDOWSMEDIA": {"type": "NUMBER", "index": 89, "name": "BR_FEATURES_WINDOWSMEDIA", "comment": null}, "BR_FEATURES_GEARS": {"type": "NUMBER", "index": 90, "name": "BR_FEATURES_GEARS", "comment": null}, "BR_FEATURES_SILVERLIGHT": {"type": "NUMBER", "index": 91, "name": "BR_FEATURES_SILVERLIGHT", "comment": null}, "BR_COOKIES": {"type": "NUMBER", "index": 92, "name": "BR_COOKIES", "comment": null}, "BR_COLORDEPTH": {"type": "TEXT", "index": 93, "name": "BR_COLORDEPTH", "comment": null}, "BR_VIEWWIDTH": {"type": "NUMBER", "index": 94, "name": "BR_VIEWWIDTH", "comment": null}, "BR_VIEWHEIGHT": {"type": "NUMBER", "index": 95, "name": "BR_VIEWHEIGHT", "comment": null}, "OS_NAME": {"type": "TEXT", "index": 96, "name": "OS_NAME", "comment": null}, "OS_FAMILY": {"type": "TEXT", "index": 97, "name": "OS_FAMILY", "comment": null}, "OS_MANUFACTURER": {"type": "TEXT", "index": 98, "name": "OS_MANUFACTURER", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 99, "name": "OS_TIMEZONE", "comment": null}, "DVCE_TYPE": {"type": "TEXT", "index": 100, "name": "DVCE_TYPE", "comment": null}, "DVCE_ISMOBILE": {"type": "BOOLEAN", "index": 101, "name": "DVCE_ISMOBILE", "comment": null}, "DVCE_SCREENWIDTH": {"type": "NUMBER", "index": 102, "name": "DVCE_SCREENWIDTH", "comment": null}, "DVCE_SCREENHEIGHT": {"type": "NUMBER", "index": 103, "name": "DVCE_SCREENHEIGHT", "comment": null}, "DOC_CHARSET": {"type": "NUMBER", "index": 104, "name": "DOC_CHARSET", "comment": null}, "DOC_WIDTH": {"type": "NUMBER", "index": 105, "name": "DOC_WIDTH", "comment": null}, "DOC_HEIGHT": {"type": "NUMBER", "index": 106, "name": "DOC_HEIGHT", "comment": null}, "TR_CURRENCY": {"type": "TEXT", "index": 107, "name": "TR_CURRENCY", "comment": null}, "TR_TOTAL_BASE": {"type": "FLOAT", "index": 108, "name": "TR_TOTAL_BASE", "comment": null}, "TR_TAX_BASE": {"type": "FLOAT", "index": 109, "name": "TR_TAX_BASE", "comment": null}, "TR_SHIPPING_BASE": {"type": "FLOAT", "index": 110, "name": "TR_SHIPPING_BASE", "comment": null}, "TI_CURRENCY": {"type": "TEXT", "index": 111, "name": "TI_CURRENCY", "comment": null}, "TI_PRICE_BASE": {"type": "FLOAT", "index": 112, "name": "TI_PRICE_BASE", "comment": null}, "BASE_CURRENCY": {"type": "TEXT", "index": 113, "name": "BASE_CURRENCY", "comment": null}, "GEO_TIMEZONE": {"type": "NUMBER", "index": 114, "name": "GEO_TIMEZONE", "comment": null}, "MKT_CLICKID": {"type": "NUMBER", "index": 115, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "NUMBER", "index": 116, "name": "MKT_NETWORK", "comment": null}, "ETL_TAGS": {"type": "TEXT", "index": 117, "name": "ETL_TAGS", "comment": null}, "DVCE_SENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 118, "name": "DVCE_SENT_TSTAMP", "comment": null}, "REFR_DOMAIN_USERID": {"type": "TEXT", "index": 119, "name": "REFR_DOMAIN_USERID", "comment": null}, "REFR_DVCE_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 120, "name": "REFR_DVCE_TSTAMP", "comment": null}, "DOMAIN_SESSIONID": {"type": "TEXT", "index": 121, "name": "DOMAIN_SESSIONID", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 122, "name": "DERIVED_TSTAMP", "comment": null}, "EVENT_VENDOR": {"type": "NUMBER", "index": 123, "name": "EVENT_VENDOR", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 124, "name": "EVENT_NAME", "comment": null}, "EVENT_FORMAT": {"type": "NUMBER", "index": 125, "name": "EVENT_FORMAT", "comment": null}, "EVENT_VERSION": {"type": "NUMBER", "index": 126, "name": "EVENT_VERSION", "comment": null}, "EVENT_FINGERPRINT": {"type": "NUMBER", "index": 127, "name": "EVENT_FINGERPRINT", "comment": null}, "TRUE_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 128, "name": "TRUE_TSTAMP", "comment": null}, "LOAD_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 129, "name": "LOAD_TSTAMP", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_WEB_PAGE_1_0_0": {"type": "TEXT", "index": 130, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_WEB_PAGE_1_0_0", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CONSENT_PREFERENCES_1_0_0": {"type": "TEXT", "index": 131, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CONSENT_PREFERENCES_1_0_0", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CMP_VISIBLE_1_0_0": {"type": "TEXT", "index": 132, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CMP_VISIBLE_1_0_0", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_WEB_VITALS_1_0_0": {"type": "TEXT", "index": 133, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_WEB_VITALS_1_0_0", "comment": null}, "CONTEXTS_NL_BASJES_YAUAA_CONTEXT_1_0_0": {"type": "TEXT", "index": 134, "name": "CONTEXTS_NL_BASJES_YAUAA_CONTEXT_1_0_0", "comment": null}, "CONTEXTS_COM_IAB_SNOWPLOW_SPIDERS_AND_ROBOTS_1_0_0": {"type": "TEXT", "index": 135, "name": "CONTEXTS_COM_IAB_SNOWPLOW_SPIDERS_AND_ROBOTS_1_0_0", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 1001, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 181248, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_events"}, "model.snowplow_unified_integration_tests.snowplow_unified_sessions_actual": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_SESSIONS_ACTUAL", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"EVENT_COUNTS": {"type": "TEXT", "index": 1, "name": "EVENT_COUNTS", "comment": null}, "CV_VIEW_PAGE_VOLUME": {"type": "NUMBER", "index": 2, "name": "CV_VIEW_PAGE_VOLUME", "comment": null}, "CV_VIEW_PAGE_EVENTS": {"type": "ARRAY", "index": 3, "name": "CV_VIEW_PAGE_EVENTS", "comment": null}, "CV_VIEW_PAGE_VALUES": {"type": "ARRAY", "index": 4, "name": "CV_VIEW_PAGE_VALUES", "comment": null}, "CV_VIEW_PAGE_TOTAL": {"type": "FLOAT", "index": 5, "name": "CV_VIEW_PAGE_TOTAL", "comment": null}, "CV_VIEW_PAGE_FIRST_CONVERSION": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CV_VIEW_PAGE_FIRST_CONVERSION", "comment": null}, "CV_VIEW_PAGE_CONVERTED": {"type": "BOOLEAN", "index": 7, "name": "CV_VIEW_PAGE_CONVERTED", "comment": null}, "CV__ALL_VOLUME": {"type": "NUMBER", "index": 8, "name": "CV__ALL_VOLUME", "comment": null}, "CV__ALL_TOTAL": {"type": "FLOAT", "index": 9, "name": "CV__ALL_TOTAL", "comment": null}, "FIRST_EVENT_NAME": {"type": "TEXT", "index": 10, "name": "FIRST_EVENT_NAME", "comment": null}, "LAST_EVENT_NAME": {"type": "TEXT", "index": 11, "name": "LAST_EVENT_NAME", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 12, "name": "SESSION_IDENTIFIER", "comment": null}, "SESSION__PREVIOUS_SESSION_ID": {"type": "TEXT", "index": 13, "name": "SESSION__PREVIOUS_SESSION_ID", "comment": null}, "USER_ID": {"type": "TEXT", "index": 14, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 15, "name": "USER_IDENTIFIER", "comment": null}, "STITCHED_USER_ID": {"type": "TEXT", "index": 16, "name": "STITCHED_USER_ID", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 17, "name": "NETWORK_USERID", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 18, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 19, "name": "END_TSTAMP", "comment": null}, "APP_ID": {"type": "TEXT", "index": 20, "name": "APP_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 21, "name": "PLATFORM", "comment": null}, "DEVICE_IDENTIFIER": {"type": "TEXT", "index": 22, "name": "DEVICE_IDENTIFIER", "comment": null}, "DEVICE_CATEGORY": {"type": "TEXT", "index": 23, "name": "DEVICE_CATEGORY", "comment": null}, "DEVICE_SESSION_INDEX": {"type": "NUMBER", "index": 24, "name": "DEVICE_SESSION_INDEX", "comment": null}, "OS_VERSION": {"type": "TEXT", "index": 25, "name": "OS_VERSION", "comment": null}, "OS_TYPE": {"type": "TEXT", "index": 26, "name": "OS_TYPE", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 27, "name": "OS_TIMEZONE", "comment": null}, "SCREEN_RESOLUTION": {"type": "TEXT", "index": 28, "name": "SCREEN_RESOLUTION", "comment": null}, "YAUAA__DEVICE_CLASS": {"type": "TEXT", "index": 29, "name": "YAUAA__DEVICE_CLASS", "comment": null}, "YAUAA__DEVICE_VERSION": {"type": "TEXT", "index": 30, "name": "YAUAA__DEVICE_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_VERSION": {"type": "TEXT", "index": 31, "name": "YAUAA__OPERATING_SYSTEM_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_CLASS": {"type": "TEXT", "index": 32, "name": "YAUAA__OPERATING_SYSTEM_CLASS", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME": {"type": "TEXT", "index": 33, "name": "YAUAA__OPERATING_SYSTEM_NAME", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME_VERSION": {"type": "TEXT", "index": 34, "name": "YAUAA__OPERATING_SYSTEM_NAME_VERSION", "comment": null}, "MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 35, "name": "MOBILE__DEVICE_MANUFACTURER", "comment": null}, "MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 36, "name": "MOBILE__DEVICE_MODEL", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 37, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 38, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 39, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 40, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 41, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__CARRIER": {"type": "TEXT", "index": 42, "name": "MOBILE__CARRIER", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 43, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 44, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 45, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 46, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 47, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 48, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 49, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 50, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 51, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 52, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 53, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 54, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 55, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "FLOAT", "index": 56, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 57, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 58, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 59, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "FIRST_GEO_COUNTRY": {"type": "TEXT", "index": 60, "name": "FIRST_GEO_COUNTRY", "comment": null}, "FIRST_GEO_REGION_NAME": {"type": "TEXT", "index": 61, "name": "FIRST_GEO_REGION_NAME", "comment": null}, "FIRST_GEO_CITY": {"type": "TEXT", "index": 62, "name": "FIRST_GEO_CITY", "comment": null}, "FIRST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 63, "name": "FIRST_GEO_COUNTRY_NAME", "comment": null}, "FIRST_GEO_CONTINENT": {"type": "TEXT", "index": 64, "name": "FIRST_GEO_CONTINENT", "comment": null}, "LAST_GEO_COUNTRY": {"type": "TEXT", "index": 65, "name": "LAST_GEO_COUNTRY", "comment": null}, "LAST_GEO_REGION_NAME": {"type": "TEXT", "index": 66, "name": "LAST_GEO_REGION_NAME", "comment": null}, "LAST_GEO_CITY": {"type": "TEXT", "index": 67, "name": "LAST_GEO_CITY", "comment": null}, "LAST_GEO_COUNTRY_NAME": {"type": "TEXT", "index": 68, "name": "LAST_GEO_COUNTRY_NAME", "comment": null}, "LAST_GEO_CONTINENT": {"type": "TEXT", "index": 69, "name": "LAST_GEO_CONTINENT", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 70, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 71, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 72, "name": "GEO_LONGITUDE", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 73, "name": "GEO_TIMEZONE", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 74, "name": "USER_IPADDRESS", "comment": null}, "VIEWS": {"type": "NUMBER", "index": 75, "name": "VIEWS", "comment": null}, "TOTAL_EVENTS": {"type": "NUMBER", "index": 76, "name": "TOTAL_EVENTS", "comment": null}, "IS_ENGAGED": {"type": "BOOLEAN", "index": 77, "name": "IS_ENGAGED", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 78, "name": "ENGAGED_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "NUMBER", "index": 79, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "SCREEN_NAMES_VIEWED": {"type": "NUMBER", "index": 80, "name": "SCREEN_NAMES_VIEWED", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 81, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 82, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 83, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 84, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 85, "name": "MKT_CAMPAIGN", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 86, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 87, "name": "MKT_NETWORK", "comment": null}, "DEFAULT_CHANNEL_GROUP": {"type": "TEXT", "index": 88, "name": "DEFAULT_CHANNEL_GROUP", "comment": null}, "MKT_SOURCE_PLATFORM": {"type": "TEXT", "index": 89, "name": "MKT_SOURCE_PLATFORM", "comment": null}, "FIRST_PAGE_URL": {"type": "TEXT", "index": 90, "name": "FIRST_PAGE_URL", "comment": null}, "LAST_PAGE_URL": {"type": "TEXT", "index": 91, "name": "LAST_PAGE_URL", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 92, "name": "PAGE_REFERRER", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 93, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 94, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 95, "name": "REFR_TERM", "comment": null}, "FIRST_PAGE_TITLE": {"type": "TEXT", "index": 96, "name": "FIRST_PAGE_TITLE", "comment": null}, "FIRST_PAGE_URLSCHEME": {"type": "TEXT", "index": 97, "name": "FIRST_PAGE_URLSCHEME", "comment": null}, "FIRST_PAGE_URLHOST": {"type": "TEXT", "index": 98, "name": "FIRST_PAGE_URLHOST", "comment": null}, "FIRST_PAGE_URLPATH": {"type": "TEXT", "index": 99, "name": "FIRST_PAGE_URLPATH", "comment": null}, "FIRST_PAGE_URLQUERY": {"type": "TEXT", "index": 100, "name": "FIRST_PAGE_URLQUERY", "comment": null}, "FIRST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 101, "name": "FIRST_PAGE_URLFRAGMENT", "comment": null}, "LAST_PAGE_TITLE": {"type": "TEXT", "index": 102, "name": "LAST_PAGE_TITLE", "comment": null}, "LAST_PAGE_URLSCHEME": {"type": "TEXT", "index": 103, "name": "LAST_PAGE_URLSCHEME", "comment": null}, "LAST_PAGE_URLHOST": {"type": "TEXT", "index": 104, "name": "LAST_PAGE_URLHOST", "comment": null}, "LAST_PAGE_URLPATH": {"type": "TEXT", "index": 105, "name": "LAST_PAGE_URLPATH", "comment": null}, "LAST_PAGE_URLQUERY": {"type": "TEXT", "index": 106, "name": "LAST_PAGE_URLQUERY", "comment": null}, "LAST_PAGE_URLFRAGMENT": {"type": "TEXT", "index": 107, "name": "LAST_PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 108, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 109, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 110, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 111, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 112, "name": "REFR_URLFRAGMENT", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 113, "name": "BR_RENDERENGINE", "comment": null}, "FIRST_BR_LANG": {"type": "TEXT", "index": 114, "name": "FIRST_BR_LANG", "comment": null}, "FIRST_BR_LANG_NAME": {"type": "TEXT", "index": 115, "name": "FIRST_BR_LANG_NAME", "comment": null}, "LAST_BR_LANG": {"type": "TEXT", "index": 116, "name": "LAST_BR_LANG", "comment": null}, "LAST_BR_LANG_NAME": {"type": "TEXT", "index": 117, "name": "LAST_BR_LANG_NAME", "comment": null}, "IAB__CATEGORY": {"type": "TEXT", "index": 118, "name": "IAB__CATEGORY", "comment": null}, "IAB__PRIMARY_IMPACT": {"type": "TEXT", "index": 119, "name": "IAB__PRIMARY_IMPACT", "comment": null}, "IAB__REASON": {"type": "TEXT", "index": 120, "name": "IAB__REASON", "comment": null}, "IAB__SPIDER_OR_ROBOT": {"type": "BOOLEAN", "index": 121, "name": "IAB__SPIDER_OR_ROBOT", "comment": null}, "YAUAA__DEVICE_NAME": {"type": "TEXT", "index": 122, "name": "YAUAA__DEVICE_NAME", "comment": null}, "YAUAA__AGENT_CLASS": {"type": "TEXT", "index": 123, "name": "YAUAA__AGENT_CLASS", "comment": null}, "YAUAA__AGENT_NAME": {"type": "TEXT", "index": 124, "name": "YAUAA__AGENT_NAME", "comment": null}, "YAUAA__AGENT_NAME_VERSION": {"type": "TEXT", "index": 125, "name": "YAUAA__AGENT_NAME_VERSION", "comment": null}, "YAUAA__AGENT_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 126, "name": "YAUAA__AGENT_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__AGENT_VERSION": {"type": "TEXT", "index": 127, "name": "YAUAA__AGENT_VERSION", "comment": null}, "YAUAA__AGENT_VERSION_MAJOR": {"type": "TEXT", "index": 128, "name": "YAUAA__AGENT_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_CLASS": {"type": "TEXT", "index": 129, "name": "YAUAA__LAYOUT_ENGINE_CLASS", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME": {"type": "TEXT", "index": 130, "name": "YAUAA__LAYOUT_ENGINE_NAME", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION": {"type": "TEXT", "index": 131, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 132, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION": {"type": "TEXT", "index": 133, "name": "YAUAA__LAYOUT_ENGINE_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR": {"type": "TEXT", "index": 134, "name": "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR", "comment": null}, "UA__DEVICE_FAMILY": {"type": "TEXT", "index": 135, "name": "UA__DEVICE_FAMILY", "comment": null}, "UA__OS_VERSION": {"type": "TEXT", "index": 136, "name": "UA__OS_VERSION", "comment": null}, "UA__OS_MAJOR": {"type": "TEXT", "index": 137, "name": "UA__OS_MAJOR", "comment": null}, "UA__OS_MINOR": {"type": "TEXT", "index": 138, "name": "UA__OS_MINOR", "comment": null}, "UA__OS_PATCH": {"type": "TEXT", "index": 139, "name": "UA__OS_PATCH", "comment": null}, "UA__OS_PATCH_MINOR": {"type": "TEXT", "index": 140, "name": "UA__OS_PATCH_MINOR", "comment": null}, "UA__USERAGENT_FAMILY": {"type": "TEXT", "index": 141, "name": "UA__USERAGENT_FAMILY", "comment": null}, "UA__USERAGENT_MAJOR": {"type": "TEXT", "index": 142, "name": "UA__USERAGENT_MAJOR", "comment": null}, "UA__USERAGENT_MINOR": {"type": "TEXT", "index": 143, "name": "UA__USERAGENT_MINOR", "comment": null}, "UA__USERAGENT_PATCH": {"type": "TEXT", "index": 144, "name": "UA__USERAGENT_PATCH", "comment": null}, "UA__USERAGENT_VERSION": {"type": "TEXT", "index": 145, "name": "UA__USERAGENT_VERSION", "comment": null}, "FIRST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 146, "name": "FIRST_SCREEN_VIEW__NAME", "comment": null}, "FIRST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 147, "name": "FIRST_SCREEN_VIEW__TYPE", "comment": null}, "LAST_SCREEN_VIEW__NAME": {"type": "TEXT", "index": 148, "name": "LAST_SCREEN_VIEW__NAME", "comment": null}, "LAST_SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 149, "name": "LAST_SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "LAST_SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 150, "name": "LAST_SCREEN_VIEW__TYPE", "comment": null}, "SCREEN_VIEW__PREVIOUS_ID": {"type": "TEXT", "index": 151, "name": "SCREEN_VIEW__PREVIOUS_ID", "comment": null}, "SCREEN_VIEW__PREVIOUS_NAME": {"type": "TEXT", "index": 152, "name": "SCREEN_VIEW__PREVIOUS_NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_TYPE": {"type": "TEXT", "index": 153, "name": "SCREEN_VIEW__PREVIOUS_TYPE", "comment": null}, "FIRST_APP__BUILD": {"type": "TEXT", "index": 154, "name": "FIRST_APP__BUILD", "comment": null}, "FIRST_APP__VERSION": {"type": "TEXT", "index": 155, "name": "FIRST_APP__VERSION", "comment": null}, "FIRST_GEO__ALTITUDE": {"type": "FLOAT", "index": 156, "name": "FIRST_GEO__ALTITUDE", "comment": null}, "FIRST_GEO__ALTITUDE_ACCURACY": {"type": "FLOAT", "index": 157, "name": "FIRST_GEO__ALTITUDE_ACCURACY", "comment": null}, "FIRST_GEO__BEARING": {"type": "FLOAT", "index": 158, "name": "FIRST_GEO__BEARING", "comment": null}, "FIRST_GEO__LATITUDE": {"type": "FLOAT", "index": 159, "name": "FIRST_GEO__LATITUDE", "comment": null}, "FIRST_GEO__LATITUDE_LONGITUDE_ACCURACY": {"type": "FLOAT", "index": 160, "name": "FIRST_GEO__LATITUDE_LONGITUDE_ACCURACY", "comment": null}, "FIRST_GEO__LONGITUDE": {"type": "FLOAT", "index": 161, "name": "FIRST_GEO__LONGITUDE", "comment": null}, "FIRST_GEO__SPEED": {"type": "FLOAT", "index": 162, "name": "FIRST_GEO__SPEED", "comment": null}, "APP_ERRORS": {"type": "NUMBER", "index": 163, "name": "APP_ERRORS", "comment": null}, "FATAL_APP_ERRORS": {"type": "NUMBER", "index": 164, "name": "FATAL_APP_ERRORS", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 165, "name": "USERAGENT", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 166, "name": "EVENT_ID", "comment": null}, "EVENT_ID2": {"type": "TEXT", "index": 167, "name": "EVENT_ID2", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_sessions_actual"}, "seed.snowplow_unified_integration_tests.snowplow_unified_screen_engagement_events": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_SCREEN_ENGAGEMENT_EVENTS", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"APP_ID": {"type": "TEXT", "index": 1, "name": "APP_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 2, "name": "PLATFORM", "comment": null}, "ETL_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "ETL_TSTAMP", "comment": null}, "COLLECTOR_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "COLLECTOR_TSTAMP", "comment": null}, "DVCE_CREATED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "DVCE_CREATED_TSTAMP", "comment": null}, "EVENT": {"type": "TEXT", "index": 6, "name": "EVENT", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 7, "name": "EVENT_ID", "comment": null}, "TXN_ID": {"type": "NUMBER", "index": 8, "name": "TXN_ID", "comment": null}, "NAME_TRACKER": {"type": "TEXT", "index": 9, "name": "NAME_TRACKER", "comment": null}, "V_TRACKER": {"type": "TEXT", "index": 10, "name": "V_TRACKER", "comment": null}, "V_COLLECTOR": {"type": "TEXT", "index": 11, "name": "V_COLLECTOR", "comment": null}, "V_ETL": {"type": "TEXT", "index": 12, "name": "V_ETL", "comment": null}, "USER_ID": {"type": "TEXT", "index": 13, "name": "USER_ID", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 14, "name": "USER_IPADDRESS", "comment": null}, "USER_FINGERPRINT": {"type": "TEXT", "index": 15, "name": "USER_FINGERPRINT", "comment": null}, "DOMAIN_USERID": {"type": "TEXT", "index": 16, "name": "DOMAIN_USERID", "comment": null}, "DOMAIN_SESSIONIDX": {"type": "NUMBER", "index": 17, "name": "DOMAIN_SESSIONIDX", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 18, "name": "NETWORK_USERID", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 19, "name": "GEO_COUNTRY", "comment": null}, "GEO_REGION": {"type": "NUMBER", "index": 20, "name": "GEO_REGION", "comment": null}, "GEO_CITY": {"type": "NUMBER", "index": 21, "name": "GEO_CITY", "comment": null}, "GEO_ZIPCODE": {"type": "NUMBER", "index": 22, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "NUMBER", "index": 23, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "NUMBER", "index": 24, "name": "GEO_LONGITUDE", "comment": null}, "GEO_REGION_NAME": {"type": "NUMBER", "index": 25, "name": "GEO_REGION_NAME", "comment": null}, "IP_ISP": {"type": "TEXT", "index": 26, "name": "IP_ISP", "comment": null}, "IP_ORGANIZATION": {"type": "TEXT", "index": 27, "name": "IP_ORGANIZATION", "comment": null}, "IP_DOMAIN": {"type": "TEXT", "index": 28, "name": "IP_DOMAIN", "comment": null}, "IP_NETSPEED": {"type": "TEXT", "index": 29, "name": "IP_NETSPEED", "comment": null}, "PAGE_URL": {"type": "TEXT", "index": 30, "name": "PAGE_URL", "comment": null}, "PAGE_TITLE": {"type": "TEXT", "index": 31, "name": "PAGE_TITLE", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 32, "name": "PAGE_REFERRER", "comment": null}, "PAGE_URLSCHEME": {"type": "NUMBER", "index": 33, "name": "PAGE_URLSCHEME", "comment": null}, "PAGE_URLHOST": {"type": "NUMBER", "index": 34, "name": "PAGE_URLHOST", "comment": null}, "PAGE_URLPORT": {"type": "NUMBER", "index": 35, "name": "PAGE_URLPORT", "comment": null}, "PAGE_URLPATH": {"type": "NUMBER", "index": 36, "name": "PAGE_URLPATH", "comment": null}, "PAGE_URLQUERY": {"type": "TEXT", "index": 37, "name": "PAGE_URLQUERY", "comment": null}, "PAGE_URLFRAGMENT": {"type": "TEXT", "index": 38, "name": "PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "NUMBER", "index": 39, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "NUMBER", "index": 40, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPORT": {"type": "NUMBER", "index": 41, "name": "REFR_URLPORT", "comment": null}, "REFR_URLPATH": {"type": "NUMBER", "index": 42, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "NUMBER", "index": 43, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 44, "name": "REFR_URLFRAGMENT", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 45, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 46, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 47, "name": "REFR_TERM", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 48, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 49, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 50, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 51, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 52, "name": "MKT_CAMPAIGN", "comment": null}, "SE_CATEGORY": {"type": "NUMBER", "index": 53, "name": "SE_CATEGORY", "comment": null}, "SE_ACTION": {"type": "NUMBER", "index": 54, "name": "SE_ACTION", "comment": null}, "SE_LABEL": {"type": "TEXT", "index": 55, "name": "SE_LABEL", "comment": null}, "SE_PROPERTY": {"type": "TEXT", "index": 56, "name": "SE_PROPERTY", "comment": null}, "SE_VALUE": {"type": "FLOAT", "index": 57, "name": "SE_VALUE", "comment": null}, "TR_ORDERID": {"type": "TEXT", "index": 58, "name": "TR_ORDERID", "comment": null}, "TR_AFFILIATION": {"type": "TEXT", "index": 59, "name": "TR_AFFILIATION", "comment": null}, "TR_TOTAL": {"type": "FLOAT", "index": 60, "name": "TR_TOTAL", "comment": null}, "TR_TAX": {"type": "FLOAT", "index": 61, "name": "TR_TAX", "comment": null}, "TR_SHIPPING": {"type": "FLOAT", "index": 62, "name": "TR_SHIPPING", "comment": null}, "TR_CITY": {"type": "TEXT", "index": 63, "name": "TR_CITY", "comment": null}, "TR_STATE": {"type": "TEXT", "index": 64, "name": "TR_STATE", "comment": null}, "TR_COUNTRY": {"type": "TEXT", "index": 65, "name": "TR_COUNTRY", "comment": null}, "TI_ORDERID": {"type": "TEXT", "index": 66, "name": "TI_ORDERID", "comment": null}, "TI_SKU": {"type": "TEXT", "index": 67, "name": "TI_SKU", "comment": null}, "TI_NAME": {"type": "TEXT", "index": 68, "name": "TI_NAME", "comment": null}, "TI_CATEGORY": {"type": "TEXT", "index": 69, "name": "TI_CATEGORY", "comment": null}, "TI_PRICE": {"type": "FLOAT", "index": 70, "name": "TI_PRICE", "comment": null}, "TI_QUANTITY": {"type": "NUMBER", "index": 71, "name": "TI_QUANTITY", "comment": null}, "PP_XOFFSET_MIN": {"type": "NUMBER", "index": 72, "name": "PP_XOFFSET_MIN", "comment": null}, "PP_XOFFSET_MAX": {"type": "NUMBER", "index": 73, "name": "PP_XOFFSET_MAX", "comment": null}, "PP_YOFFSET_MIN": {"type": "NUMBER", "index": 74, "name": "PP_YOFFSET_MIN", "comment": null}, "PP_YOFFSET_MAX": {"type": "NUMBER", "index": 75, "name": "PP_YOFFSET_MAX", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 76, "name": "USERAGENT", "comment": null}, "BR_NAME": {"type": "TEXT", "index": 77, "name": "BR_NAME", "comment": null}, "BR_FAMILY": {"type": "TEXT", "index": 78, "name": "BR_FAMILY", "comment": null}, "BR_VERSION": {"type": "TEXT", "index": 79, "name": "BR_VERSION", "comment": null}, "BR_TYPE": {"type": "TEXT", "index": 80, "name": "BR_TYPE", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 81, "name": "BR_RENDERENGINE", "comment": null}, "BR_LANG": {"type": "TEXT", "index": 82, "name": "BR_LANG", "comment": null}, "BR_FEATURES_PDF": {"type": "NUMBER", "index": 83, "name": "BR_FEATURES_PDF", "comment": null}, "BR_FEATURES_FLASH": {"type": "NUMBER", "index": 84, "name": "BR_FEATURES_FLASH", "comment": null}, "BR_FEATURES_JAVA": {"type": "NUMBER", "index": 85, "name": "BR_FEATURES_JAVA", "comment": null}, "BR_FEATURES_DIRECTOR": {"type": "NUMBER", "index": 86, "name": "BR_FEATURES_DIRECTOR", "comment": null}, "BR_FEATURES_QUICKTIME": {"type": "NUMBER", "index": 87, "name": "BR_FEATURES_QUICKTIME", "comment": null}, "BR_FEATURES_REALPLAYER": {"type": "NUMBER", "index": 88, "name": "BR_FEATURES_REALPLAYER", "comment": null}, "BR_FEATURES_WINDOWSMEDIA": {"type": "NUMBER", "index": 89, "name": "BR_FEATURES_WINDOWSMEDIA", "comment": null}, "BR_FEATURES_GEARS": {"type": "NUMBER", "index": 90, "name": "BR_FEATURES_GEARS", "comment": null}, "BR_FEATURES_SILVERLIGHT": {"type": "NUMBER", "index": 91, "name": "BR_FEATURES_SILVERLIGHT", "comment": null}, "BR_COOKIES": {"type": "NUMBER", "index": 92, "name": "BR_COOKIES", "comment": null}, "BR_COLORDEPTH": {"type": "TEXT", "index": 93, "name": "BR_COLORDEPTH", "comment": null}, "BR_VIEWWIDTH": {"type": "NUMBER", "index": 94, "name": "BR_VIEWWIDTH", "comment": null}, "BR_VIEWHEIGHT": {"type": "NUMBER", "index": 95, "name": "BR_VIEWHEIGHT", "comment": null}, "OS_NAME": {"type": "TEXT", "index": 96, "name": "OS_NAME", "comment": null}, "OS_FAMILY": {"type": "TEXT", "index": 97, "name": "OS_FAMILY", "comment": null}, "OS_MANUFACTURER": {"type": "TEXT", "index": 98, "name": "OS_MANUFACTURER", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 99, "name": "OS_TIMEZONE", "comment": null}, "DVCE_TYPE": {"type": "TEXT", "index": 100, "name": "DVCE_TYPE", "comment": null}, "DVCE_ISMOBILE": {"type": "BOOLEAN", "index": 101, "name": "DVCE_ISMOBILE", "comment": null}, "DVCE_SCREENWIDTH": {"type": "NUMBER", "index": 102, "name": "DVCE_SCREENWIDTH", "comment": null}, "DVCE_SCREENHEIGHT": {"type": "NUMBER", "index": 103, "name": "DVCE_SCREENHEIGHT", "comment": null}, "DOC_CHARSET": {"type": "NUMBER", "index": 104, "name": "DOC_CHARSET", "comment": null}, "DOC_WIDTH": {"type": "NUMBER", "index": 105, "name": "DOC_WIDTH", "comment": null}, "DOC_HEIGHT": {"type": "NUMBER", "index": 106, "name": "DOC_HEIGHT", "comment": null}, "TR_CURRENCY": {"type": "TEXT", "index": 107, "name": "TR_CURRENCY", "comment": null}, "TR_TOTAL_BASE": {"type": "FLOAT", "index": 108, "name": "TR_TOTAL_BASE", "comment": null}, "TR_TAX_BASE": {"type": "FLOAT", "index": 109, "name": "TR_TAX_BASE", "comment": null}, "TR_SHIPPING_BASE": {"type": "FLOAT", "index": 110, "name": "TR_SHIPPING_BASE", "comment": null}, "TI_CURRENCY": {"type": "TEXT", "index": 111, "name": "TI_CURRENCY", "comment": null}, "TI_PRICE_BASE": {"type": "FLOAT", "index": 112, "name": "TI_PRICE_BASE", "comment": null}, "BASE_CURRENCY": {"type": "TEXT", "index": 113, "name": "BASE_CURRENCY", "comment": null}, "GEO_TIMEZONE": {"type": "NUMBER", "index": 114, "name": "GEO_TIMEZONE", "comment": null}, "MKT_CLICKID": {"type": "NUMBER", "index": 115, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "NUMBER", "index": 116, "name": "MKT_NETWORK", "comment": null}, "ETL_TAGS": {"type": "TEXT", "index": 117, "name": "ETL_TAGS", "comment": null}, "DVCE_SENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 118, "name": "DVCE_SENT_TSTAMP", "comment": null}, "REFR_DOMAIN_USERID": {"type": "TEXT", "index": 119, "name": "REFR_DOMAIN_USERID", "comment": null}, "REFR_DEVICE_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 120, "name": "REFR_DEVICE_TSTAMP", "comment": null}, "DOMAIN_SESSIONID": {"type": "TEXT", "index": 121, "name": "DOMAIN_SESSIONID", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 122, "name": "DERIVED_TSTAMP", "comment": null}, "EVENT_VENDOR": {"type": "TEXT", "index": 123, "name": "EVENT_VENDOR", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 124, "name": "EVENT_NAME", "comment": null}, "EVENT_FORMAT": {"type": "TEXT", "index": 125, "name": "EVENT_FORMAT", "comment": null}, "EVENT_VERSION": {"type": "TEXT", "index": 126, "name": "EVENT_VERSION", "comment": null}, "EVENT_FINGERPRINT": {"type": "NUMBER", "index": 127, "name": "EVENT_FINGERPRINT", "comment": null}, "TRUE_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 128, "name": "TRUE_TSTAMP", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_VIEW_1_0_0": {"type": "TEXT", "index": 129, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_VIEW_1_0_0", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_APPLICATION_BACKGROUND_1_0_0": {"type": "TEXT", "index": 130, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_APPLICATION_BACKGROUND_1_0_0", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_APPLICATION_FOREGROUND_1_0_0": {"type": "TEXT", "index": 131, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_APPLICATION_FOREGROUND_1_0_0", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_CLIENT_SESSION_1_0_2": {"type": "TEXT", "index": 132, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_CLIENT_SESSION_1_0_2", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_APPLICATION_LIFECYCLE_1_0_0": {"type": "TEXT", "index": 133, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_APPLICATION_LIFECYCLE_1_0_0", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_MOBILE_CONTEXT_1_0_3": {"type": "TEXT", "index": 134, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_MOBILE_CONTEXT_1_0_3", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_APPLICATION_1_0_0": {"type": "TEXT", "index": 135, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_APPLICATION_1_0_0", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_1_0_0": {"type": "TEXT", "index": 136, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_1_0_0", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_SUMMARY_1_0_0": {"type": "TEXT", "index": 137, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_SUMMARY_1_0_0", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_IGLU_ANYTHING_A_1_0_0": {"type": "TEXT", "index": 138, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_IGLU_ANYTHING_A_1_0_0", "comment": null}, "LOAD_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 139, "name": "LOAD_TSTAMP", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_ECOMMERCE_USER_1_0_0": {"type": "TEXT", "index": 140, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_ECOMMERCE_USER_1_0_0", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_GDPR_1_0_0": {"type": "TEXT", "index": 141, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_GDPR_1_0_0", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 64, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 46592, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_screen_engagement_events"}, "seed.snowplow_unified_integration_tests.snowplow_unified_views_expected": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_VIEWS_EXPECTED", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"VIEW_ID": {"type": "TEXT", "index": 1, "name": "VIEW_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 2, "name": "EVENT_NAME", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 3, "name": "EVENT_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 4, "name": "SESSION_IDENTIFIER", "comment": null}, "VIEW_IN_SESSION_INDEX": {"type": "NUMBER", "index": 5, "name": "VIEW_IN_SESSION_INDEX", "comment": null}, "VIEWS_IN_SESSION": {"type": "NUMBER", "index": 6, "name": "VIEWS_IN_SESSION", "comment": null}, "SESSION__PREVIOUS_SESSION_ID": {"type": "TEXT", "index": 7, "name": "SESSION__PREVIOUS_SESSION_ID", "comment": null}, "USER_ID": {"type": "TEXT", "index": 8, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 9, "name": "USER_IDENTIFIER", "comment": null}, "STITCHED_USER_ID": {"type": "TEXT", "index": 10, "name": "STITCHED_USER_ID", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 11, "name": "NETWORK_USERID", "comment": null}, "DVCE_CREATED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "DVCE_CREATED_TSTAMP", "comment": null}, "COLLECTOR_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "COLLECTOR_TSTAMP", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 14, "name": "DERIVED_TSTAMP", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 15, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 16, "name": "END_TSTAMP", "comment": null}, "MODEL_TSTAMP": {"type": "TEXT", "index": 17, "name": "MODEL_TSTAMP", "comment": null}, "APP_ID": {"type": "TEXT", "index": 18, "name": "APP_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 19, "name": "PLATFORM", "comment": null}, "DEVICE_IDENTIFIER": {"type": "TEXT", "index": 20, "name": "DEVICE_IDENTIFIER", "comment": null}, "DEVICE_CATEGORY": {"type": "TEXT", "index": 21, "name": "DEVICE_CATEGORY", "comment": null}, "DEVICE_SESSION_INDEX": {"type": "NUMBER", "index": 22, "name": "DEVICE_SESSION_INDEX", "comment": null}, "OS_VERSION": {"type": "TEXT", "index": 23, "name": "OS_VERSION", "comment": null}, "OS_TYPE": {"type": "TEXT", "index": 24, "name": "OS_TYPE", "comment": null}, "MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 25, "name": "MOBILE__DEVICE_MANUFACTURER", "comment": null}, "MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 26, "name": "MOBILE__DEVICE_MODEL", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 27, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 28, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 29, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 30, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 31, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__CARRIER": {"type": "TEXT", "index": 32, "name": "MOBILE__CARRIER", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 33, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 34, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 35, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 36, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 37, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 38, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 39, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 40, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 41, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 42, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 43, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 44, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 45, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "FLOAT", "index": 46, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 47, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 48, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 49, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 50, "name": "OS_TIMEZONE", "comment": null}, "SCREEN_RESOLUTION": {"type": "TEXT", "index": 51, "name": "SCREEN_RESOLUTION", "comment": null}, "YAUAA__DEVICE_CLASS": {"type": "TEXT", "index": 52, "name": "YAUAA__DEVICE_CLASS", "comment": null}, "YAUAA__DEVICE_VERSION": {"type": "TEXT", "index": 53, "name": "YAUAA__DEVICE_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_VERSION": {"type": "TEXT", "index": 54, "name": "YAUAA__OPERATING_SYSTEM_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_CLASS": {"type": "TEXT", "index": 55, "name": "YAUAA__OPERATING_SYSTEM_CLASS", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME": {"type": "TEXT", "index": 56, "name": "YAUAA__OPERATING_SYSTEM_NAME", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME_VERSION": {"type": "TEXT", "index": 57, "name": "YAUAA__OPERATING_SYSTEM_NAME_VERSION", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 58, "name": "GEO_COUNTRY", "comment": null}, "GEO_REGION": {"type": "TEXT", "index": 59, "name": "GEO_REGION", "comment": null}, "GEO_REGION_NAME": {"type": "TEXT", "index": 60, "name": "GEO_REGION_NAME", "comment": null}, "GEO_CITY": {"type": "TEXT", "index": 61, "name": "GEO_CITY", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 62, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 63, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 64, "name": "GEO_LONGITUDE", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 65, "name": "GEO_TIMEZONE", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 66, "name": "USER_IPADDRESS", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 67, "name": "ENGAGED_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "FLOAT", "index": 68, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "HORIZONTAL_PIXELS_SCROLLED": {"type": "NUMBER", "index": 69, "name": "HORIZONTAL_PIXELS_SCROLLED", "comment": null}, "VERTICAL_PIXELS_SCROLLED": {"type": "NUMBER", "index": 70, "name": "VERTICAL_PIXELS_SCROLLED", "comment": null}, "HORIZONTAL_PERCENTAGE_SCROLLED": {"type": "FLOAT", "index": 71, "name": "HORIZONTAL_PERCENTAGE_SCROLLED", "comment": null}, "VERTICAL_PERCENTAGE_SCROLLED": {"type": "FLOAT", "index": 72, "name": "VERTICAL_PERCENTAGE_SCROLLED", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 73, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 74, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 75, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 76, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 77, "name": "MKT_CAMPAIGN", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 78, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 79, "name": "MKT_NETWORK", "comment": null}, "DEFAULT_CHANNEL_GROUP": {"type": "TEXT", "index": 80, "name": "DEFAULT_CHANNEL_GROUP", "comment": null}, "PAGE_URL": {"type": "TEXT", "index": 81, "name": "PAGE_URL", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 82, "name": "PAGE_REFERRER", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 83, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 84, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 85, "name": "REFR_TERM", "comment": null}, "PAGE_TITLE": {"type": "TEXT", "index": 86, "name": "PAGE_TITLE", "comment": null}, "CONTENT_GROUP": {"type": "TEXT", "index": 87, "name": "CONTENT_GROUP", "comment": null}, "PAGE_URLSCHEME": {"type": "TEXT", "index": 88, "name": "PAGE_URLSCHEME", "comment": null}, "PAGE_URLHOST": {"type": "TEXT", "index": 89, "name": "PAGE_URLHOST", "comment": null}, "PAGE_URLPATH": {"type": "TEXT", "index": 90, "name": "PAGE_URLPATH", "comment": null}, "PAGE_URLQUERY": {"type": "TEXT", "index": 91, "name": "PAGE_URLQUERY", "comment": null}, "PAGE_URLFRAGMENT": {"type": "TEXT", "index": 92, "name": "PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 93, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 94, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 95, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 96, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 97, "name": "REFR_URLFRAGMENT", "comment": null}, "BR_LANG": {"type": "TEXT", "index": 98, "name": "BR_LANG", "comment": null}, "BR_VIEWWIDTH": {"type": "NUMBER", "index": 99, "name": "BR_VIEWWIDTH", "comment": null}, "BR_VIEWHEIGHT": {"type": "NUMBER", "index": 100, "name": "BR_VIEWHEIGHT", "comment": null}, "BR_COLORDEPTH": {"type": "TEXT", "index": 101, "name": "BR_COLORDEPTH", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 102, "name": "BR_RENDERENGINE", "comment": null}, "DOC_WIDTH": {"type": "NUMBER", "index": 103, "name": "DOC_WIDTH", "comment": null}, "DOC_HEIGHT": {"type": "NUMBER", "index": 104, "name": "DOC_HEIGHT", "comment": null}, "IAB__CATEGORY": {"type": "TEXT", "index": 105, "name": "IAB__CATEGORY", "comment": null}, "IAB__PRIMARY_IMPACT": {"type": "TEXT", "index": 106, "name": "IAB__PRIMARY_IMPACT", "comment": null}, "IAB__REASON": {"type": "TEXT", "index": 107, "name": "IAB__REASON", "comment": null}, "IAB__SPIDER_OR_ROBOT": {"type": "BOOLEAN", "index": 108, "name": "IAB__SPIDER_OR_ROBOT", "comment": null}, "YAUAA__DEVICE_NAME": {"type": "TEXT", "index": 109, "name": "YAUAA__DEVICE_NAME", "comment": null}, "YAUAA__AGENT_CLASS": {"type": "TEXT", "index": 110, "name": "YAUAA__AGENT_CLASS", "comment": null}, "YAUAA__AGENT_NAME": {"type": "TEXT", "index": 111, "name": "YAUAA__AGENT_NAME", "comment": null}, "YAUAA__AGENT_NAME_VERSION": {"type": "TEXT", "index": 112, "name": "YAUAA__AGENT_NAME_VERSION", "comment": null}, "YAUAA__AGENT_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 113, "name": "YAUAA__AGENT_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__AGENT_VERSION": {"type": "TEXT", "index": 114, "name": "YAUAA__AGENT_VERSION", "comment": null}, "YAUAA__AGENT_VERSION_MAJOR": {"type": "TEXT", "index": 115, "name": "YAUAA__AGENT_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_CLASS": {"type": "TEXT", "index": 116, "name": "YAUAA__LAYOUT_ENGINE_CLASS", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME": {"type": "TEXT", "index": 117, "name": "YAUAA__LAYOUT_ENGINE_NAME", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION": {"type": "TEXT", "index": 118, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 119, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION": {"type": "TEXT", "index": 120, "name": "YAUAA__LAYOUT_ENGINE_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR": {"type": "TEXT", "index": 121, "name": "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR", "comment": null}, "UA__DEVICE_FAMILY": {"type": "TEXT", "index": 122, "name": "UA__DEVICE_FAMILY", "comment": null}, "UA__OS_VERSION": {"type": "TEXT", "index": 123, "name": "UA__OS_VERSION", "comment": null}, "UA__OS_MAJOR": {"type": "TEXT", "index": 124, "name": "UA__OS_MAJOR", "comment": null}, "UA__OS_MINOR": {"type": "TEXT", "index": 125, "name": "UA__OS_MINOR", "comment": null}, "UA__OS_PATCH": {"type": "TEXT", "index": 126, "name": "UA__OS_PATCH", "comment": null}, "UA__OS_PATCH_MINOR": {"type": "TEXT", "index": 127, "name": "UA__OS_PATCH_MINOR", "comment": null}, "UA__USERAGENT_FAMILY": {"type": "TEXT", "index": 128, "name": "UA__USERAGENT_FAMILY", "comment": null}, "UA__USERAGENT_MAJOR": {"type": "TEXT", "index": 129, "name": "UA__USERAGENT_MAJOR", "comment": null}, "UA__USERAGENT_MINOR": {"type": "TEXT", "index": 130, "name": "UA__USERAGENT_MINOR", "comment": null}, "UA__USERAGENT_PATCH": {"type": "TEXT", "index": 131, "name": "UA__USERAGENT_PATCH", "comment": null}, "UA__USERAGENT_VERSION": {"type": "TEXT", "index": 132, "name": "UA__USERAGENT_VERSION", "comment": null}, "SCREEN_VIEW__NAME": {"type": "TEXT", "index": 133, "name": "SCREEN_VIEW__NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_ID": {"type": "TEXT", "index": 134, "name": "SCREEN_VIEW__PREVIOUS_ID", "comment": null}, "SCREEN_VIEW__PREVIOUS_NAME": {"type": "TEXT", "index": 135, "name": "SCREEN_VIEW__PREVIOUS_NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_TYPE": {"type": "TEXT", "index": 136, "name": "SCREEN_VIEW__PREVIOUS_TYPE", "comment": null}, "SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 137, "name": "SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 138, "name": "SCREEN_VIEW__TYPE", "comment": null}, "APP__BUILD": {"type": "TEXT", "index": 139, "name": "APP__BUILD", "comment": null}, "APP__VERSION": {"type": "TEXT", "index": 140, "name": "APP__VERSION", "comment": null}, "GEO__ALTITUDE": {"type": "FLOAT", "index": 141, "name": "GEO__ALTITUDE", "comment": null}, "GEO__ALTITUDE_ACCURACY": {"type": "FLOAT", "index": 142, "name": "GEO__ALTITUDE_ACCURACY", "comment": null}, "GEO__BEARING": {"type": "FLOAT", "index": 143, "name": "GEO__BEARING", "comment": null}, "GEO__LATITUDE": {"type": "FLOAT", "index": 144, "name": "GEO__LATITUDE", "comment": null}, "GEO__LATITUDE_LONGITUDE_ACCURACY": {"type": "FLOAT", "index": 145, "name": "GEO__LATITUDE_LONGITUDE_ACCURACY", "comment": null}, "GEO__LONGITUDE": {"type": "FLOAT", "index": 146, "name": "GEO__LONGITUDE", "comment": null}, "GEO__SPEED": {"type": "FLOAT", "index": 147, "name": "GEO__SPEED", "comment": null}, "SCREEN__FRAGMENT": {"type": "TEXT", "index": 148, "name": "SCREEN__FRAGMENT", "comment": null}, "SCREEN__TOP_VIEW_CONTROLLER": {"type": "TEXT", "index": 149, "name": "SCREEN__TOP_VIEW_CONTROLLER", "comment": null}, "SCREEN__VIEW_CONTROLLER": {"type": "TEXT", "index": 150, "name": "SCREEN__VIEW_CONTROLLER", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 151, "name": "USERAGENT", "comment": null}, "V_COLLECTOR": {"type": "TEXT", "index": 152, "name": "V_COLLECTOR", "comment": null}, "EVENT_ID2": {"type": "TEXT", "index": 153, "name": "EVENT_ID2", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 120, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 97280, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_views_expected"}, "seed.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_TOTALS_EXPECTED", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"CONSENT_VERSION": {"type": "TEXT", "index": 1, "name": "CONSENT_VERSION", "comment": null}, "VERSION_START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "VERSION_START_TSTAMP", "comment": null}, "CONSENT_SCOPES": {"type": "TEXT", "index": 3, "name": "CONSENT_SCOPES", "comment": null}, "CONSENT_URL": {"type": "TEXT", "index": 4, "name": "CONSENT_URL", "comment": null}, "DOMAINS_APPLIED": {"type": "TEXT", "index": 5, "name": "DOMAINS_APPLIED", "comment": null}, "IS_LATEST_VERSION": {"type": "BOOLEAN", "index": 6, "name": "IS_LATEST_VERSION", "comment": null}, "LAST_ALLOW_ALL_EVENT": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "LAST_ALLOW_ALL_EVENT", "comment": null}, "TOTAL_VISITORS": {"type": "NUMBER", "index": 8, "name": "TOTAL_VISITORS", "comment": null}, "ALLOW_ALL": {"type": "NUMBER", "index": 9, "name": "ALLOW_ALL", "comment": null}, "ALLOW_SELECTED": {"type": "NUMBER", "index": 10, "name": "ALLOW_SELECTED", "comment": null}, "ALLOW": {"type": "NUMBER", "index": 11, "name": "ALLOW", "comment": null}, "PENDING": {"type": "NUMBER", "index": 12, "name": "PENDING", "comment": null}, "DENIED": {"type": "NUMBER", "index": 13, "name": "DENIED", "comment": null}, "EXPIRED": {"type": "NUMBER", "index": 14, "name": "EXPIRED", "comment": null}, "WITHDRAWN": {"type": "NUMBER", "index": 15, "name": "WITHDRAWN", "comment": null}, "IMPLICIT_CONSENT": {"type": "NUMBER", "index": 16, "name": "IMPLICIT_CONSENT", "comment": null}, "EXPIRES_IN_SIX_MONTHS": {"type": "NUMBER", "index": 17, "name": "EXPIRES_IN_SIX_MONTHS", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 2, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 5632, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected"}, "model.snowplow_unified.snowplow_unified_consent_users": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_DERIVED", "name": "SNOWPLOW_UNIFIED_CONSENT_USERS", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"USER_IDENTIFIER": {"type": "TEXT", "index": 1, "name": "USER_IDENTIFIER", "comment": null}, "USER_ID": {"type": "TEXT", "index": 2, "name": "USER_ID", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 3, "name": "GEO_COUNTRY", "comment": null}, "CMP_EVENTS": {"type": "NUMBER", "index": 4, "name": "CMP_EVENTS", "comment": null}, "CONSENT_EVENTS": {"type": "NUMBER", "index": 5, "name": "CONSENT_EVENTS", "comment": null}, "LAST_CMP_EVENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "LAST_CMP_EVENT_TSTAMP", "comment": null}, "LAST_CONSENT_EVENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "LAST_CONSENT_EVENT_TSTAMP", "comment": null}, "LAST_CONSENT_EVENT_TYPE": {"type": "TEXT", "index": 8, "name": "LAST_CONSENT_EVENT_TYPE", "comment": null}, "LAST_CONSENT_SCOPES": {"type": "TEXT", "index": 9, "name": "LAST_CONSENT_SCOPES", "comment": null}, "LAST_CONSENT_VERSION": {"type": "TEXT", "index": 10, "name": "LAST_CONSENT_VERSION", "comment": null}, "LAST_CONSENT_URL": {"type": "TEXT", "index": 11, "name": "LAST_CONSENT_URL", "comment": null}, "LAST_DOMAINS_APPLIED": {"type": "TEXT", "index": 12, "name": "LAST_DOMAINS_APPLIED", "comment": null}, "LAST_PROCESSED_EVENT": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "LAST_PROCESSED_EVENT", "comment": null}, "IS_LATEST_VERSION": {"type": "BOOLEAN", "index": 14, "name": "IS_LATEST_VERSION", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 25, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 7680, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_consent_users"}, "model.snowplow_unified_integration_tests.snowplow_unified_views_actual": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_VIEWS_ACTUAL", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"APP_ID": {"type": "TEXT", "index": 1, "name": "APP_ID", "comment": null}, "DVCE_CREATED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 2, "name": "DVCE_CREATED_TSTAMP", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 3, "name": "DERIVED_TSTAMP", "comment": null}, "START_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "START_TSTAMP", "comment": null}, "END_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "END_TSTAMP", "comment": null}, "VIEW_ID": {"type": "TEXT", "index": 6, "name": "VIEW_ID", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 7, "name": "EVENT_NAME", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 8, "name": "EVENT_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 9, "name": "SESSION_IDENTIFIER", "comment": null}, "VIEW_IN_SESSION_INDEX": {"type": "NUMBER", "index": 10, "name": "VIEW_IN_SESSION_INDEX", "comment": null}, "VIEWS_IN_SESSION": {"type": "NUMBER", "index": 11, "name": "VIEWS_IN_SESSION", "comment": null}, "SESSION__PREVIOUS_SESSION_ID": {"type": "TEXT", "index": 12, "name": "SESSION__PREVIOUS_SESSION_ID", "comment": null}, "USER_ID": {"type": "TEXT", "index": 13, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 14, "name": "USER_IDENTIFIER", "comment": null}, "STITCHED_USER_ID": {"type": "TEXT", "index": 15, "name": "STITCHED_USER_ID", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 16, "name": "NETWORK_USERID", "comment": null}, "COLLECTOR_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 17, "name": "COLLECTOR_TSTAMP", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 18, "name": "PLATFORM", "comment": null}, "DEVICE_IDENTIFIER": {"type": "TEXT", "index": 19, "name": "DEVICE_IDENTIFIER", "comment": null}, "DEVICE_CATEGORY": {"type": "TEXT", "index": 20, "name": "DEVICE_CATEGORY", "comment": null}, "DEVICE_SESSION_INDEX": {"type": "NUMBER", "index": 21, "name": "DEVICE_SESSION_INDEX", "comment": null}, "OS_VERSION": {"type": "TEXT", "index": 22, "name": "OS_VERSION", "comment": null}, "OS_TYPE": {"type": "TEXT", "index": 23, "name": "OS_TYPE", "comment": null}, "MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 24, "name": "MOBILE__DEVICE_MANUFACTURER", "comment": null}, "MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 25, "name": "MOBILE__DEVICE_MODEL", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 26, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 27, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 28, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 29, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 30, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__CARRIER": {"type": "TEXT", "index": 31, "name": "MOBILE__CARRIER", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 32, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 33, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 34, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 35, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 36, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 37, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 38, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 39, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 40, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 41, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 42, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 43, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 44, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "FLOAT", "index": 45, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 46, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 47, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 48, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 49, "name": "OS_TIMEZONE", "comment": null}, "SCREEN_RESOLUTION": {"type": "TEXT", "index": 50, "name": "SCREEN_RESOLUTION", "comment": null}, "YAUAA__DEVICE_CLASS": {"type": "TEXT", "index": 51, "name": "YAUAA__DEVICE_CLASS", "comment": null}, "YAUAA__DEVICE_VERSION": {"type": "TEXT", "index": 52, "name": "YAUAA__DEVICE_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_VERSION": {"type": "TEXT", "index": 53, "name": "YAUAA__OPERATING_SYSTEM_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_CLASS": {"type": "TEXT", "index": 54, "name": "YAUAA__OPERATING_SYSTEM_CLASS", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME": {"type": "TEXT", "index": 55, "name": "YAUAA__OPERATING_SYSTEM_NAME", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME_VERSION": {"type": "TEXT", "index": 56, "name": "YAUAA__OPERATING_SYSTEM_NAME_VERSION", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 57, "name": "GEO_COUNTRY", "comment": null}, "GEO_REGION": {"type": "TEXT", "index": 58, "name": "GEO_REGION", "comment": null}, "GEO_REGION_NAME": {"type": "TEXT", "index": 59, "name": "GEO_REGION_NAME", "comment": null}, "GEO_CITY": {"type": "TEXT", "index": 60, "name": "GEO_CITY", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 61, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 62, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 63, "name": "GEO_LONGITUDE", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 64, "name": "GEO_TIMEZONE", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 65, "name": "USER_IPADDRESS", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "NUMBER", "index": 66, "name": "ENGAGED_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "FLOAT", "index": 67, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "HORIZONTAL_PIXELS_SCROLLED": {"type": "NUMBER", "index": 68, "name": "HORIZONTAL_PIXELS_SCROLLED", "comment": null}, "VERTICAL_PIXELS_SCROLLED": {"type": "NUMBER", "index": 69, "name": "VERTICAL_PIXELS_SCROLLED", "comment": null}, "HORIZONTAL_PERCENTAGE_SCROLLED": {"type": "FLOAT", "index": 70, "name": "HORIZONTAL_PERCENTAGE_SCROLLED", "comment": null}, "VERTICAL_PERCENTAGE_SCROLLED": {"type": "FLOAT", "index": 71, "name": "VERTICAL_PERCENTAGE_SCROLLED", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 72, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 73, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 74, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 75, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 76, "name": "MKT_CAMPAIGN", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 77, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 78, "name": "MKT_NETWORK", "comment": null}, "DEFAULT_CHANNEL_GROUP": {"type": "TEXT", "index": 79, "name": "DEFAULT_CHANNEL_GROUP", "comment": null}, "PAGE_URL": {"type": "TEXT", "index": 80, "name": "PAGE_URL", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 81, "name": "PAGE_REFERRER", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 82, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 83, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 84, "name": "REFR_TERM", "comment": null}, "PAGE_TITLE": {"type": "TEXT", "index": 85, "name": "PAGE_TITLE", "comment": null}, "CONTENT_GROUP": {"type": "TEXT", "index": 86, "name": "CONTENT_GROUP", "comment": null}, "PAGE_URLSCHEME": {"type": "TEXT", "index": 87, "name": "PAGE_URLSCHEME", "comment": null}, "PAGE_URLHOST": {"type": "TEXT", "index": 88, "name": "PAGE_URLHOST", "comment": null}, "PAGE_URLPATH": {"type": "TEXT", "index": 89, "name": "PAGE_URLPATH", "comment": null}, "PAGE_URLQUERY": {"type": "TEXT", "index": 90, "name": "PAGE_URLQUERY", "comment": null}, "PAGE_URLFRAGMENT": {"type": "TEXT", "index": 91, "name": "PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 92, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 93, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 94, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 95, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 96, "name": "REFR_URLFRAGMENT", "comment": null}, "BR_LANG": {"type": "TEXT", "index": 97, "name": "BR_LANG", "comment": null}, "BR_VIEWWIDTH": {"type": "NUMBER", "index": 98, "name": "BR_VIEWWIDTH", "comment": null}, "BR_VIEWHEIGHT": {"type": "NUMBER", "index": 99, "name": "BR_VIEWHEIGHT", "comment": null}, "BR_COLORDEPTH": {"type": "TEXT", "index": 100, "name": "BR_COLORDEPTH", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 101, "name": "BR_RENDERENGINE", "comment": null}, "DOC_WIDTH": {"type": "NUMBER", "index": 102, "name": "DOC_WIDTH", "comment": null}, "DOC_HEIGHT": {"type": "NUMBER", "index": 103, "name": "DOC_HEIGHT", "comment": null}, "IAB__CATEGORY": {"type": "TEXT", "index": 104, "name": "IAB__CATEGORY", "comment": null}, "IAB__PRIMARY_IMPACT": {"type": "TEXT", "index": 105, "name": "IAB__PRIMARY_IMPACT", "comment": null}, "IAB__REASON": {"type": "TEXT", "index": 106, "name": "IAB__REASON", "comment": null}, "IAB__SPIDER_OR_ROBOT": {"type": "BOOLEAN", "index": 107, "name": "IAB__SPIDER_OR_ROBOT", "comment": null}, "YAUAA__DEVICE_NAME": {"type": "TEXT", "index": 108, "name": "YAUAA__DEVICE_NAME", "comment": null}, "YAUAA__AGENT_CLASS": {"type": "TEXT", "index": 109, "name": "YAUAA__AGENT_CLASS", "comment": null}, "YAUAA__AGENT_NAME": {"type": "TEXT", "index": 110, "name": "YAUAA__AGENT_NAME", "comment": null}, "YAUAA__AGENT_NAME_VERSION": {"type": "TEXT", "index": 111, "name": "YAUAA__AGENT_NAME_VERSION", "comment": null}, "YAUAA__AGENT_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 112, "name": "YAUAA__AGENT_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__AGENT_VERSION": {"type": "TEXT", "index": 113, "name": "YAUAA__AGENT_VERSION", "comment": null}, "YAUAA__AGENT_VERSION_MAJOR": {"type": "TEXT", "index": 114, "name": "YAUAA__AGENT_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_CLASS": {"type": "TEXT", "index": 115, "name": "YAUAA__LAYOUT_ENGINE_CLASS", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME": {"type": "TEXT", "index": 116, "name": "YAUAA__LAYOUT_ENGINE_NAME", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION": {"type": "TEXT", "index": 117, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 118, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION": {"type": "TEXT", "index": 119, "name": "YAUAA__LAYOUT_ENGINE_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR": {"type": "TEXT", "index": 120, "name": "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR", "comment": null}, "UA__DEVICE_FAMILY": {"type": "TEXT", "index": 121, "name": "UA__DEVICE_FAMILY", "comment": null}, "UA__OS_VERSION": {"type": "TEXT", "index": 122, "name": "UA__OS_VERSION", "comment": null}, "UA__OS_MAJOR": {"type": "TEXT", "index": 123, "name": "UA__OS_MAJOR", "comment": null}, "UA__OS_MINOR": {"type": "TEXT", "index": 124, "name": "UA__OS_MINOR", "comment": null}, "UA__OS_PATCH": {"type": "TEXT", "index": 125, "name": "UA__OS_PATCH", "comment": null}, "UA__OS_PATCH_MINOR": {"type": "TEXT", "index": 126, "name": "UA__OS_PATCH_MINOR", "comment": null}, "UA__USERAGENT_FAMILY": {"type": "TEXT", "index": 127, "name": "UA__USERAGENT_FAMILY", "comment": null}, "UA__USERAGENT_MAJOR": {"type": "TEXT", "index": 128, "name": "UA__USERAGENT_MAJOR", "comment": null}, "UA__USERAGENT_MINOR": {"type": "TEXT", "index": 129, "name": "UA__USERAGENT_MINOR", "comment": null}, "UA__USERAGENT_PATCH": {"type": "TEXT", "index": 130, "name": "UA__USERAGENT_PATCH", "comment": null}, "UA__USERAGENT_VERSION": {"type": "TEXT", "index": 131, "name": "UA__USERAGENT_VERSION", "comment": null}, "SCREEN_VIEW__NAME": {"type": "TEXT", "index": 132, "name": "SCREEN_VIEW__NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_ID": {"type": "TEXT", "index": 133, "name": "SCREEN_VIEW__PREVIOUS_ID", "comment": null}, "SCREEN_VIEW__PREVIOUS_NAME": {"type": "TEXT", "index": 134, "name": "SCREEN_VIEW__PREVIOUS_NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_TYPE": {"type": "TEXT", "index": 135, "name": "SCREEN_VIEW__PREVIOUS_TYPE", "comment": null}, "SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 136, "name": "SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 137, "name": "SCREEN_VIEW__TYPE", "comment": null}, "APP__BUILD": {"type": "TEXT", "index": 138, "name": "APP__BUILD", "comment": null}, "APP__VERSION": {"type": "TEXT", "index": 139, "name": "APP__VERSION", "comment": null}, "GEO__ALTITUDE": {"type": "FLOAT", "index": 140, "name": "GEO__ALTITUDE", "comment": null}, "GEO__ALTITUDE_ACCURACY": {"type": "FLOAT", "index": 141, "name": "GEO__ALTITUDE_ACCURACY", "comment": null}, "GEO__BEARING": {"type": "FLOAT", "index": 142, "name": "GEO__BEARING", "comment": null}, "GEO__LATITUDE": {"type": "FLOAT", "index": 143, "name": "GEO__LATITUDE", "comment": null}, "GEO__LATITUDE_LONGITUDE_ACCURACY": {"type": "FLOAT", "index": 144, "name": "GEO__LATITUDE_LONGITUDE_ACCURACY", "comment": null}, "GEO__LONGITUDE": {"type": "FLOAT", "index": 145, "name": "GEO__LONGITUDE", "comment": null}, "GEO__SPEED": {"type": "FLOAT", "index": 146, "name": "GEO__SPEED", "comment": null}, "SCREEN__FRAGMENT": {"type": "TEXT", "index": 147, "name": "SCREEN__FRAGMENT", "comment": null}, "SCREEN__TOP_VIEW_CONTROLLER": {"type": "TEXT", "index": 148, "name": "SCREEN__TOP_VIEW_CONTROLLER", "comment": null}, "SCREEN__VIEW_CONTROLLER": {"type": "TEXT", "index": 149, "name": "SCREEN__VIEW_CONTROLLER", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 150, "name": "USERAGENT", "comment": null}, "V_COLLECTOR": {"type": "TEXT", "index": 151, "name": "V_COLLECTOR", "comment": null}, "EVENT_ID2": {"type": "TEXT", "index": 152, "name": "EVENT_ID2", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_views_actual"}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_actual": {"metadata": {"type": "VIEW", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_CONSENT_USERS_ACTUAL", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"USER_IDENTIFIER": {"type": "TEXT", "index": 1, "name": "USER_IDENTIFIER", "comment": null}, "USER_ID": {"type": "TEXT", "index": 2, "name": "USER_ID", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 3, "name": "GEO_COUNTRY", "comment": null}, "CMP_EVENTS": {"type": "NUMBER", "index": 4, "name": "CMP_EVENTS", "comment": null}, "CONSENT_EVENTS": {"type": "NUMBER", "index": 5, "name": "CONSENT_EVENTS", "comment": null}, "LAST_CMP_EVENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "LAST_CMP_EVENT_TSTAMP", "comment": null}, "LAST_CONSENT_EVENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "LAST_CONSENT_EVENT_TSTAMP", "comment": null}, "LAST_CONSENT_EVENT_TYPE": {"type": "TEXT", "index": 8, "name": "LAST_CONSENT_EVENT_TYPE", "comment": null}, "LAST_CONSENT_SCOPES": {"type": "TEXT", "index": 9, "name": "LAST_CONSENT_SCOPES", "comment": null}, "LAST_CONSENT_VERSION": {"type": "TEXT", "index": 10, "name": "LAST_CONSENT_VERSION", "comment": null}, "LAST_CONSENT_URL": {"type": "TEXT", "index": 11, "name": "LAST_CONSENT_URL", "comment": null}, "LAST_DOMAINS_APPLIED": {"type": "TEXT", "index": 12, "name": "LAST_DOMAINS_APPLIED", "comment": null}, "LAST_PROCESSED_EVENT": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "LAST_PROCESSED_EVENT", "comment": null}, "IS_LATEST_VERSION": {"type": "BOOLEAN", "index": 14, "name": "IS_LATEST_VERSION", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_actual"}, "model.snowplow_unified.snowplow_unified_app_errors": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_DERIVED", "name": "SNOWPLOW_UNIFIED_APP_ERRORS", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"EVENT_ID": {"type": "TEXT", "index": 1, "name": "EVENT_ID", "comment": null}, "APP_ID": {"type": "TEXT", "index": 2, "name": "APP_ID", "comment": null}, "USER_ID": {"type": "TEXT", "index": 3, "name": "USER_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 4, "name": "USER_IDENTIFIER", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 5, "name": "NETWORK_USERID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 6, "name": "SESSION_IDENTIFIER", "comment": null}, "SESSION_INDEX": {"type": "NUMBER", "index": 7, "name": "SESSION_INDEX", "comment": null}, "PREVIOUS_SESSION_ID": {"type": "TEXT", "index": 8, "name": "PREVIOUS_SESSION_ID", "comment": null}, "SESSION_FIRST_EVENT_ID": {"type": "TEXT", "index": 9, "name": "SESSION_FIRST_EVENT_ID", "comment": null}, "DVCE_CREATED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 10, "name": "DVCE_CREATED_TSTAMP", "comment": null}, "COLLECTOR_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 11, "name": "COLLECTOR_TSTAMP", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 12, "name": "DERIVED_TSTAMP", "comment": null}, "MODEL_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 13, "name": "MODEL_TSTAMP", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 14, "name": "PLATFORM", "comment": null}, "DVCE_SCREENWIDTH": {"type": "NUMBER", "index": 15, "name": "DVCE_SCREENWIDTH", "comment": null}, "DVCE_SCREENHEIGHT": {"type": "NUMBER", "index": 16, "name": "DVCE_SCREENHEIGHT", "comment": null}, "DEVICE_MANUFACTURER": {"type": "TEXT", "index": 17, "name": "DEVICE_MANUFACTURER", "comment": null}, "DEVICE_MODEL": {"type": "TEXT", "index": 18, "name": "DEVICE_MODEL", "comment": null}, "OS_TYPE": {"type": "TEXT", "index": 19, "name": "OS_TYPE", "comment": null}, "OS_VERSION": {"type": "TEXT", "index": 20, "name": "OS_VERSION", "comment": null}, "ANDROID_IDFA": {"type": "TEXT", "index": 21, "name": "ANDROID_IDFA", "comment": null}, "APPLE_IDFA": {"type": "TEXT", "index": 22, "name": "APPLE_IDFA", "comment": null}, "APPLE_IDFV": {"type": "TEXT", "index": 23, "name": "APPLE_IDFV", "comment": null}, "OPEN_IDFA": {"type": "TEXT", "index": 24, "name": "OPEN_IDFA", "comment": null}, "SCREEN_ID": {"type": "TEXT", "index": 25, "name": "SCREEN_ID", "comment": null}, "SCREEN_NAME": {"type": "TEXT", "index": 26, "name": "SCREEN_NAME", "comment": null}, "SCREEN_ACTIVITY": {"type": "TEXT", "index": 27, "name": "SCREEN_ACTIVITY", "comment": null}, "SCREEN_FRAGMENT": {"type": "TEXT", "index": 28, "name": "SCREEN_FRAGMENT", "comment": null}, "SCREEN_TOP_VIEW_CONTROLLER": {"type": "TEXT", "index": 29, "name": "SCREEN_TOP_VIEW_CONTROLLER", "comment": null}, "SCREEN_TYPE": {"type": "TEXT", "index": 30, "name": "SCREEN_TYPE", "comment": null}, "SCREEN_VIEW_CONTROLLER": {"type": "TEXT", "index": 31, "name": "SCREEN_VIEW_CONTROLLER", "comment": null}, "DEVICE_LATITUDE": {"type": "FLOAT", "index": 32, "name": "DEVICE_LATITUDE", "comment": null}, "DEVICE_LONGITUDE": {"type": "FLOAT", "index": 33, "name": "DEVICE_LONGITUDE", "comment": null}, "DEVICE_LATITUDE_LONGITUDE_ACCURACY": {"type": "FLOAT", "index": 34, "name": "DEVICE_LATITUDE_LONGITUDE_ACCURACY", "comment": null}, "DEVICE_ALTITUDE": {"type": "FLOAT", "index": 35, "name": "DEVICE_ALTITUDE", "comment": null}, "DEVICE_ALTITUDE_ACCURACY": {"type": "FLOAT", "index": 36, "name": "DEVICE_ALTITUDE_ACCURACY", "comment": null}, "DEVICE_BEARING": {"type": "FLOAT", "index": 37, "name": "DEVICE_BEARING", "comment": null}, "DEVICE_SPEED": {"type": "FLOAT", "index": 38, "name": "DEVICE_SPEED", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 39, "name": "GEO_COUNTRY", "comment": null}, "GEO_REGION": {"type": "TEXT", "index": 40, "name": "GEO_REGION", "comment": null}, "GEO_CITY": {"type": "TEXT", "index": 41, "name": "GEO_CITY", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 42, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 43, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 44, "name": "GEO_LONGITUDE", "comment": null}, "GEO_REGION_NAME": {"type": "TEXT", "index": 45, "name": "GEO_REGION_NAME", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 46, "name": "GEO_TIMEZONE", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 47, "name": "USER_IPADDRESS", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 48, "name": "USERAGENT", "comment": null}, "CARRIER": {"type": "TEXT", "index": 49, "name": "CARRIER", "comment": null}, "NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 50, "name": "NETWORK_TECHNOLOGY", "comment": null}, "NETWORK_TYPE": {"type": "TEXT", "index": 51, "name": "NETWORK_TYPE", "comment": null}, "BUILD": {"type": "TEXT", "index": 52, "name": "BUILD", "comment": null}, "VERSION": {"type": "TEXT", "index": 53, "name": "VERSION", "comment": null}, "EVENT_INDEX_IN_SESSION": {"type": "NUMBER", "index": 54, "name": "EVENT_INDEX_IN_SESSION", "comment": null}, "MESSAGE": {"type": "TEXT", "index": 55, "name": "MESSAGE", "comment": null}, "PROGRAMMING_LANGUAGE": {"type": "TEXT", "index": 56, "name": "PROGRAMMING_LANGUAGE", "comment": null}, "CLASS_NAME": {"type": "TEXT", "index": 57, "name": "CLASS_NAME", "comment": null}, "EXCEPTION_NAME": {"type": "TEXT", "index": 58, "name": "EXCEPTION_NAME", "comment": null}, "IS_FATAL": {"type": "BOOLEAN", "index": 59, "name": "IS_FATAL", "comment": null}, "LINE_NUMBER": {"type": "NUMBER", "index": 60, "name": "LINE_NUMBER", "comment": null}, "STACK_TRACE": {"type": "TEXT", "index": 61, "name": "STACK_TRACE", "comment": null}, "THREAD_ID": {"type": "NUMBER", "index": 62, "name": "THREAD_ID", "comment": null}, "THREAD_NAME": {"type": "TEXT", "index": 63, "name": "THREAD_NAME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 0, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 0, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "clustering_key": {"id": "clustering_key", "label": "Clustering Key", "value": "LINEAR(to_date(derived_tstamp))", "include": true, "description": "The key used to cluster this table"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_app_errors"}, "seed.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SNPLW_UNIFIED_INT_TESTS", "name": "SNOWPLOW_UNIFIED_VIEWS_MOBILE_SCREEN_ENGAGEMENT_EXPECTED", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"VIEW_ID": {"type": "TEXT", "index": 1, "name": "VIEW_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "SESSION_IDENTIFIER", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 3, "name": "USER_IDENTIFIER", "comment": null}, "ENGAGED_TIME_IN_S": {"type": "FLOAT", "index": 4, "name": "ENGAGED_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S": {"type": "FLOAT", "index": 5, "name": "ABSOLUTE_TIME_IN_S", "comment": null}, "ABSOLUTE_TIME_IN_S_BIGQUERY": {"type": "NUMBER", "index": 6, "name": "ABSOLUTE_TIME_IN_S_BIGQUERY", "comment": null}, "HORIZONTAL_PIXELS_SCROLLED": {"type": "NUMBER", "index": 7, "name": "HORIZONTAL_PIXELS_SCROLLED", "comment": null}, "VERTICAL_PIXELS_SCROLLED": {"type": "NUMBER", "index": 8, "name": "VERTICAL_PIXELS_SCROLLED", "comment": null}, "HORIZONTAL_PERCENTAGE_SCROLLED": {"type": "NUMBER", "index": 9, "name": "HORIZONTAL_PERCENTAGE_SCROLLED", "comment": null}, "VERTICAL_PERCENTAGE_SCROLLED": {"type": "NUMBER", "index": 10, "name": "VERTICAL_PERCENTAGE_SCROLLED", "comment": null}, "LAST_LIST_ITEM_INDEX": {"type": "NUMBER", "index": 11, "name": "LAST_LIST_ITEM_INDEX", "comment": null}, "LIST_ITEMS_COUNT": {"type": "NUMBER", "index": 12, "name": "LIST_ITEMS_COUNT", "comment": null}, "LIST_ITEMS_PERCENTAGE_SCROLLED": {"type": "NUMBER", "index": 13, "name": "LIST_ITEMS_PERCENTAGE_SCROLLED", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:57UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 39, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 7168, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected"}, "model.snowplow_unified.snowplow_unified_base_events_this_run": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_SCRATCH", "name": "SNOWPLOW_UNIFIED_BASE_EVENTS_THIS_RUN", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"SESSION_IDENTIFIER": {"type": "TEXT", "index": 1, "name": "SESSION_IDENTIFIER", "comment": null}, "APP_ID": {"type": "TEXT", "index": 2, "name": "APP_ID", "comment": null}, "PLATFORM": {"type": "TEXT", "index": 3, "name": "PLATFORM", "comment": null}, "ETL_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 4, "name": "ETL_TSTAMP", "comment": null}, "COLLECTOR_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 5, "name": "COLLECTOR_TSTAMP", "comment": null}, "DVCE_CREATED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "DVCE_CREATED_TSTAMP", "comment": null}, "EVENT": {"type": "TEXT", "index": 7, "name": "EVENT", "comment": null}, "EVENT_ID": {"type": "TEXT", "index": 8, "name": "EVENT_ID", "comment": null}, "TXN_ID": {"type": "NUMBER", "index": 9, "name": "TXN_ID", "comment": null}, "NAME_TRACKER": {"type": "TEXT", "index": 10, "name": "NAME_TRACKER", "comment": null}, "V_TRACKER": {"type": "TEXT", "index": 11, "name": "V_TRACKER", "comment": null}, "V_COLLECTOR": {"type": "TEXT", "index": 12, "name": "V_COLLECTOR", "comment": null}, "V_ETL": {"type": "TEXT", "index": 13, "name": "V_ETL", "comment": null}, "USER_ID": {"type": "TEXT", "index": 14, "name": "USER_ID", "comment": null}, "USER_IPADDRESS": {"type": "TEXT", "index": 15, "name": "USER_IPADDRESS", "comment": null}, "USER_FINGERPRINT": {"type": "TEXT", "index": 16, "name": "USER_FINGERPRINT", "comment": null}, "DOMAIN_USERID": {"type": "TEXT", "index": 17, "name": "DOMAIN_USERID", "comment": null}, "DOMAIN_SESSIONIDX": {"type": "NUMBER", "index": 18, "name": "DOMAIN_SESSIONIDX", "comment": null}, "NETWORK_USERID": {"type": "TEXT", "index": 19, "name": "NETWORK_USERID", "comment": null}, "GEO_COUNTRY": {"type": "TEXT", "index": 20, "name": "GEO_COUNTRY", "comment": null}, "GEO_REGION": {"type": "TEXT", "index": 21, "name": "GEO_REGION", "comment": null}, "GEO_CITY": {"type": "TEXT", "index": 22, "name": "GEO_CITY", "comment": null}, "GEO_ZIPCODE": {"type": "TEXT", "index": 23, "name": "GEO_ZIPCODE", "comment": null}, "GEO_LATITUDE": {"type": "FLOAT", "index": 24, "name": "GEO_LATITUDE", "comment": null}, "GEO_LONGITUDE": {"type": "FLOAT", "index": 25, "name": "GEO_LONGITUDE", "comment": null}, "GEO_REGION_NAME": {"type": "TEXT", "index": 26, "name": "GEO_REGION_NAME", "comment": null}, "IP_ISP": {"type": "TEXT", "index": 27, "name": "IP_ISP", "comment": null}, "IP_ORGANIZATION": {"type": "TEXT", "index": 28, "name": "IP_ORGANIZATION", "comment": null}, "IP_DOMAIN": {"type": "TEXT", "index": 29, "name": "IP_DOMAIN", "comment": null}, "IP_NETSPEED": {"type": "TEXT", "index": 30, "name": "IP_NETSPEED", "comment": null}, "PAGE_URL": {"type": "TEXT", "index": 31, "name": "PAGE_URL", "comment": null}, "PAGE_TITLE": {"type": "TEXT", "index": 32, "name": "PAGE_TITLE", "comment": null}, "PAGE_REFERRER": {"type": "TEXT", "index": 33, "name": "PAGE_REFERRER", "comment": null}, "PAGE_URLSCHEME": {"type": "TEXT", "index": 34, "name": "PAGE_URLSCHEME", "comment": null}, "PAGE_URLHOST": {"type": "TEXT", "index": 35, "name": "PAGE_URLHOST", "comment": null}, "PAGE_URLPORT": {"type": "NUMBER", "index": 36, "name": "PAGE_URLPORT", "comment": null}, "PAGE_URLPATH": {"type": "TEXT", "index": 37, "name": "PAGE_URLPATH", "comment": null}, "PAGE_URLQUERY": {"type": "TEXT", "index": 38, "name": "PAGE_URLQUERY", "comment": null}, "PAGE_URLFRAGMENT": {"type": "TEXT", "index": 39, "name": "PAGE_URLFRAGMENT", "comment": null}, "REFR_URLSCHEME": {"type": "TEXT", "index": 40, "name": "REFR_URLSCHEME", "comment": null}, "REFR_URLHOST": {"type": "TEXT", "index": 41, "name": "REFR_URLHOST", "comment": null}, "REFR_URLPORT": {"type": "NUMBER", "index": 42, "name": "REFR_URLPORT", "comment": null}, "REFR_URLPATH": {"type": "TEXT", "index": 43, "name": "REFR_URLPATH", "comment": null}, "REFR_URLQUERY": {"type": "TEXT", "index": 44, "name": "REFR_URLQUERY", "comment": null}, "REFR_URLFRAGMENT": {"type": "TEXT", "index": 45, "name": "REFR_URLFRAGMENT", "comment": null}, "REFR_MEDIUM": {"type": "TEXT", "index": 46, "name": "REFR_MEDIUM", "comment": null}, "REFR_SOURCE": {"type": "TEXT", "index": 47, "name": "REFR_SOURCE", "comment": null}, "REFR_TERM": {"type": "TEXT", "index": 48, "name": "REFR_TERM", "comment": null}, "MKT_MEDIUM": {"type": "TEXT", "index": 49, "name": "MKT_MEDIUM", "comment": null}, "MKT_SOURCE": {"type": "TEXT", "index": 50, "name": "MKT_SOURCE", "comment": null}, "MKT_TERM": {"type": "TEXT", "index": 51, "name": "MKT_TERM", "comment": null}, "MKT_CONTENT": {"type": "TEXT", "index": 52, "name": "MKT_CONTENT", "comment": null}, "MKT_CAMPAIGN": {"type": "TEXT", "index": 53, "name": "MKT_CAMPAIGN", "comment": null}, "SE_CATEGORY": {"type": "TEXT", "index": 54, "name": "SE_CATEGORY", "comment": null}, "SE_ACTION": {"type": "TEXT", "index": 55, "name": "SE_ACTION", "comment": null}, "SE_LABEL": {"type": "TEXT", "index": 56, "name": "SE_LABEL", "comment": null}, "SE_PROPERTY": {"type": "TEXT", "index": 57, "name": "SE_PROPERTY", "comment": null}, "SE_VALUE": {"type": "FLOAT", "index": 58, "name": "SE_VALUE", "comment": null}, "TR_ORDERID": {"type": "TEXT", "index": 59, "name": "TR_ORDERID", "comment": null}, "TR_AFFILIATION": {"type": "TEXT", "index": 60, "name": "TR_AFFILIATION", "comment": null}, "TR_TOTAL": {"type": "FLOAT", "index": 61, "name": "TR_TOTAL", "comment": null}, "TR_TAX": {"type": "FLOAT", "index": 62, "name": "TR_TAX", "comment": null}, "TR_SHIPPING": {"type": "FLOAT", "index": 63, "name": "TR_SHIPPING", "comment": null}, "TR_CITY": {"type": "TEXT", "index": 64, "name": "TR_CITY", "comment": null}, "TR_STATE": {"type": "TEXT", "index": 65, "name": "TR_STATE", "comment": null}, "TR_COUNTRY": {"type": "TEXT", "index": 66, "name": "TR_COUNTRY", "comment": null}, "TI_ORDERID": {"type": "TEXT", "index": 67, "name": "TI_ORDERID", "comment": null}, "TI_SKU": {"type": "TEXT", "index": 68, "name": "TI_SKU", "comment": null}, "TI_NAME": {"type": "TEXT", "index": 69, "name": "TI_NAME", "comment": null}, "TI_CATEGORY": {"type": "TEXT", "index": 70, "name": "TI_CATEGORY", "comment": null}, "TI_PRICE": {"type": "FLOAT", "index": 71, "name": "TI_PRICE", "comment": null}, "TI_QUANTITY": {"type": "NUMBER", "index": 72, "name": "TI_QUANTITY", "comment": null}, "PP_XOFFSET_MIN": {"type": "NUMBER", "index": 73, "name": "PP_XOFFSET_MIN", "comment": null}, "PP_XOFFSET_MAX": {"type": "NUMBER", "index": 74, "name": "PP_XOFFSET_MAX", "comment": null}, "PP_YOFFSET_MIN": {"type": "NUMBER", "index": 75, "name": "PP_YOFFSET_MIN", "comment": null}, "PP_YOFFSET_MAX": {"type": "NUMBER", "index": 76, "name": "PP_YOFFSET_MAX", "comment": null}, "USERAGENT": {"type": "TEXT", "index": 77, "name": "USERAGENT", "comment": null}, "BR_NAME": {"type": "TEXT", "index": 78, "name": "BR_NAME", "comment": null}, "BR_FAMILY": {"type": "TEXT", "index": 79, "name": "BR_FAMILY", "comment": null}, "BR_VERSION": {"type": "TEXT", "index": 80, "name": "BR_VERSION", "comment": null}, "BR_TYPE": {"type": "TEXT", "index": 81, "name": "BR_TYPE", "comment": null}, "BR_RENDERENGINE": {"type": "TEXT", "index": 82, "name": "BR_RENDERENGINE", "comment": null}, "BR_LANG": {"type": "TEXT", "index": 83, "name": "BR_LANG", "comment": null}, "BR_FEATURES_PDF": {"type": "BOOLEAN", "index": 84, "name": "BR_FEATURES_PDF", "comment": null}, "BR_FEATURES_FLASH": {"type": "BOOLEAN", "index": 85, "name": "BR_FEATURES_FLASH", "comment": null}, "BR_FEATURES_JAVA": {"type": "BOOLEAN", "index": 86, "name": "BR_FEATURES_JAVA", "comment": null}, "BR_FEATURES_DIRECTOR": {"type": "BOOLEAN", "index": 87, "name": "BR_FEATURES_DIRECTOR", "comment": null}, "BR_FEATURES_QUICKTIME": {"type": "BOOLEAN", "index": 88, "name": "BR_FEATURES_QUICKTIME", "comment": null}, "BR_FEATURES_REALPLAYER": {"type": "BOOLEAN", "index": 89, "name": "BR_FEATURES_REALPLAYER", "comment": null}, "BR_FEATURES_WINDOWSMEDIA": {"type": "BOOLEAN", "index": 90, "name": "BR_FEATURES_WINDOWSMEDIA", "comment": null}, "BR_FEATURES_GEARS": {"type": "BOOLEAN", "index": 91, "name": "BR_FEATURES_GEARS", "comment": null}, "BR_FEATURES_SILVERLIGHT": {"type": "BOOLEAN", "index": 92, "name": "BR_FEATURES_SILVERLIGHT", "comment": null}, "BR_COOKIES": {"type": "BOOLEAN", "index": 93, "name": "BR_COOKIES", "comment": null}, "BR_COLORDEPTH": {"type": "TEXT", "index": 94, "name": "BR_COLORDEPTH", "comment": null}, "BR_VIEWWIDTH": {"type": "NUMBER", "index": 95, "name": "BR_VIEWWIDTH", "comment": null}, "BR_VIEWHEIGHT": {"type": "NUMBER", "index": 96, "name": "BR_VIEWHEIGHT", "comment": null}, "OS_NAME": {"type": "TEXT", "index": 97, "name": "OS_NAME", "comment": null}, "OS_FAMILY": {"type": "TEXT", "index": 98, "name": "OS_FAMILY", "comment": null}, "OS_MANUFACTURER": {"type": "TEXT", "index": 99, "name": "OS_MANUFACTURER", "comment": null}, "OS_TIMEZONE": {"type": "TEXT", "index": 100, "name": "OS_TIMEZONE", "comment": null}, "DVCE_TYPE": {"type": "TEXT", "index": 101, "name": "DVCE_TYPE", "comment": null}, "DVCE_ISMOBILE": {"type": "BOOLEAN", "index": 102, "name": "DVCE_ISMOBILE", "comment": null}, "DVCE_SCREENWIDTH": {"type": "NUMBER", "index": 103, "name": "DVCE_SCREENWIDTH", "comment": null}, "DVCE_SCREENHEIGHT": {"type": "NUMBER", "index": 104, "name": "DVCE_SCREENHEIGHT", "comment": null}, "DOC_CHARSET": {"type": "TEXT", "index": 105, "name": "DOC_CHARSET", "comment": null}, "DOC_WIDTH": {"type": "NUMBER", "index": 106, "name": "DOC_WIDTH", "comment": null}, "DOC_HEIGHT": {"type": "NUMBER", "index": 107, "name": "DOC_HEIGHT", "comment": null}, "TR_CURRENCY": {"type": "TEXT", "index": 108, "name": "TR_CURRENCY", "comment": null}, "TR_TOTAL_BASE": {"type": "FLOAT", "index": 109, "name": "TR_TOTAL_BASE", "comment": null}, "TR_TAX_BASE": {"type": "FLOAT", "index": 110, "name": "TR_TAX_BASE", "comment": null}, "TR_SHIPPING_BASE": {"type": "FLOAT", "index": 111, "name": "TR_SHIPPING_BASE", "comment": null}, "TI_CURRENCY": {"type": "TEXT", "index": 112, "name": "TI_CURRENCY", "comment": null}, "TI_PRICE_BASE": {"type": "FLOAT", "index": 113, "name": "TI_PRICE_BASE", "comment": null}, "BASE_CURRENCY": {"type": "TEXT", "index": 114, "name": "BASE_CURRENCY", "comment": null}, "GEO_TIMEZONE": {"type": "TEXT", "index": 115, "name": "GEO_TIMEZONE", "comment": null}, "MKT_CLICKID": {"type": "TEXT", "index": 116, "name": "MKT_CLICKID", "comment": null}, "MKT_NETWORK": {"type": "TEXT", "index": 117, "name": "MKT_NETWORK", "comment": null}, "ETL_TAGS": {"type": "TEXT", "index": 118, "name": "ETL_TAGS", "comment": null}, "DVCE_SENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 119, "name": "DVCE_SENT_TSTAMP", "comment": null}, "REFR_DOMAIN_USERID": {"type": "TEXT", "index": 120, "name": "REFR_DOMAIN_USERID", "comment": null}, "REFR_DVCE_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 121, "name": "REFR_DVCE_TSTAMP", "comment": null}, "DOMAIN_SESSIONID": {"type": "TEXT", "index": 122, "name": "DOMAIN_SESSIONID", "comment": null}, "DERIVED_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 123, "name": "DERIVED_TSTAMP", "comment": null}, "EVENT_VENDOR": {"type": "TEXT", "index": 124, "name": "EVENT_VENDOR", "comment": null}, "EVENT_NAME": {"type": "TEXT", "index": 125, "name": "EVENT_NAME", "comment": null}, "EVENT_FORMAT": {"type": "TEXT", "index": 126, "name": "EVENT_FORMAT", "comment": null}, "EVENT_VERSION": {"type": "TEXT", "index": 127, "name": "EVENT_VERSION", "comment": null}, "EVENT_FINGERPRINT": {"type": "TEXT", "index": 128, "name": "EVENT_FINGERPRINT", "comment": null}, "TRUE_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 129, "name": "TRUE_TSTAMP", "comment": null}, "LOAD_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 130, "name": "LOAD_TSTAMP", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_WEB_PAGE_1": {"type": "VARIANT", "index": 131, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_WEB_PAGE_1", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CONSENT_PREFERENCES_1": {"type": "OBJECT", "index": 132, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CONSENT_PREFERENCES_1", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CMP_VISIBLE_1": {"type": "OBJECT", "index": 133, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_CMP_VISIBLE_1", "comment": null}, "CONTEXTS_COM_IAB_SNOWPLOW_SPIDERS_AND_ROBOTS_1": {"type": "VARIANT", "index": 134, "name": "CONTEXTS_COM_IAB_SNOWPLOW_SPIDERS_AND_ROBOTS_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_UA_PARSER_CONTEXT_1": {"type": "VARIANT", "index": 135, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_UA_PARSER_CONTEXT_1", "comment": null}, "CONTEXTS_NL_BASJES_YAUAA_CONTEXT_1": {"type": "VARIANT", "index": 136, "name": "CONTEXTS_NL_BASJES_YAUAA_CONTEXT_1", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_VIEW_1": {"type": "OBJECT", "index": 137, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_VIEW_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_CLIENT_SESSION_1": {"type": "VARIANT", "index": 138, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_CLIENT_SESSION_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_GEOLOCATION_CONTEXT_1": {"type": "VARIANT", "index": 139, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_GEOLOCATION_CONTEXT_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_APPLICATION_1": {"type": "VARIANT", "index": 140, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_APPLICATION_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_DEEP_LINK_1": {"type": "VARIANT", "index": 141, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_DEEP_LINK_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_BROWSER_CONTEXT_1": {"type": "VARIANT", "index": 142, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_BROWSER_CONTEXT_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_MOBILE_CONTEXT_1": {"type": "VARIANT", "index": 143, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_SNOWPLOW_MOBILE_CONTEXT_1", "comment": null}, "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_1": {"type": "VARIANT", "index": 144, "name": "CONTEXTS_COM_SNOWPLOWANALYTICS_MOBILE_SCREEN_1", "comment": null}, "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_APPLICATION_ERROR_1": {"type": "OBJECT", "index": 145, "name": "UNSTRUCT_EVENT_COM_SNOWPLOWANALYTICS_SNOWPLOW_APPLICATION_ERROR_1", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 146, "name": "USER_IDENTIFIER", "comment": null}, "PAGE_VIEW__ID": {"type": "TEXT", "index": 147, "name": "PAGE_VIEW__ID", "comment": null}, "IAB__CATEGORY": {"type": "TEXT", "index": 148, "name": "IAB__CATEGORY", "comment": null}, "IAB__PRIMARY_IMPACT": {"type": "TEXT", "index": 149, "name": "IAB__PRIMARY_IMPACT", "comment": null}, "IAB__REASON": {"type": "TEXT", "index": 150, "name": "IAB__REASON", "comment": null}, "IAB__SPIDER_OR_ROBOT": {"type": "BOOLEAN", "index": 151, "name": "IAB__SPIDER_OR_ROBOT", "comment": null}, "UA__USERAGENT_FAMILY": {"type": "TEXT", "index": 152, "name": "UA__USERAGENT_FAMILY", "comment": null}, "UA__USERAGENT_MAJOR": {"type": "TEXT", "index": 153, "name": "UA__USERAGENT_MAJOR", "comment": null}, "UA__USERAGENT_MINOR": {"type": "TEXT", "index": 154, "name": "UA__USERAGENT_MINOR", "comment": null}, "UA__USERAGENT_PATCH": {"type": "TEXT", "index": 155, "name": "UA__USERAGENT_PATCH", "comment": null}, "UA__USERAGENT_VERSION": {"type": "TEXT", "index": 156, "name": "UA__USERAGENT_VERSION", "comment": null}, "UA__OS_FAMILY": {"type": "TEXT", "index": 157, "name": "UA__OS_FAMILY", "comment": null}, "UA__OS_MAJOR": {"type": "TEXT", "index": 158, "name": "UA__OS_MAJOR", "comment": null}, "UA__OS_MINOR": {"type": "TEXT", "index": 159, "name": "UA__OS_MINOR", "comment": null}, "UA__OS_PATCH": {"type": "TEXT", "index": 160, "name": "UA__OS_PATCH", "comment": null}, "UA__OS_PATCH_MINOR": {"type": "TEXT", "index": 161, "name": "UA__OS_PATCH_MINOR", "comment": null}, "UA__OS_VERSION": {"type": "TEXT", "index": 162, "name": "UA__OS_VERSION", "comment": null}, "UA__DEVICE_FAMILY": {"type": "TEXT", "index": 163, "name": "UA__DEVICE_FAMILY", "comment": null}, "YAUAA__DEVICE_CLASS": {"type": "TEXT", "index": 164, "name": "YAUAA__DEVICE_CLASS", "comment": null}, "YAUAA__AGENT_CLASS": {"type": "TEXT", "index": 165, "name": "YAUAA__AGENT_CLASS", "comment": null}, "YAUAA__AGENT_NAME": {"type": "TEXT", "index": 166, "name": "YAUAA__AGENT_NAME", "comment": null}, "YAUAA__AGENT_NAME_VERSION": {"type": "TEXT", "index": 167, "name": "YAUAA__AGENT_NAME_VERSION", "comment": null}, "YAUAA__AGENT_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 168, "name": "YAUAA__AGENT_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__AGENT_VERSION": {"type": "TEXT", "index": 169, "name": "YAUAA__AGENT_VERSION", "comment": null}, "YAUAA__AGENT_VERSION_MAJOR": {"type": "TEXT", "index": 170, "name": "YAUAA__AGENT_VERSION_MAJOR", "comment": null}, "YAUAA__DEVICE_BRAND": {"type": "TEXT", "index": 171, "name": "YAUAA__DEVICE_BRAND", "comment": null}, "YAUAA__DEVICE_NAME": {"type": "TEXT", "index": 172, "name": "YAUAA__DEVICE_NAME", "comment": null}, "YAUAA__DEVICE_VERSION": {"type": "TEXT", "index": 173, "name": "YAUAA__DEVICE_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_CLASS": {"type": "TEXT", "index": 174, "name": "YAUAA__LAYOUT_ENGINE_CLASS", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME": {"type": "TEXT", "index": 175, "name": "YAUAA__LAYOUT_ENGINE_NAME", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION": {"type": "TEXT", "index": 176, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR": {"type": "TEXT", "index": 177, "name": "YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION": {"type": "TEXT", "index": 178, "name": "YAUAA__LAYOUT_ENGINE_VERSION", "comment": null}, "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR": {"type": "TEXT", "index": 179, "name": "YAUAA__LAYOUT_ENGINE_VERSION_MAJOR", "comment": null}, "YAUAA__OPERATING_SYSTEM_CLASS": {"type": "TEXT", "index": 180, "name": "YAUAA__OPERATING_SYSTEM_CLASS", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME": {"type": "TEXT", "index": 181, "name": "YAUAA__OPERATING_SYSTEM_NAME", "comment": null}, "YAUAA__OPERATING_SYSTEM_NAME_VERSION": {"type": "TEXT", "index": 182, "name": "YAUAA__OPERATING_SYSTEM_NAME_VERSION", "comment": null}, "YAUAA__OPERATING_SYSTEM_VERSION": {"type": "TEXT", "index": 183, "name": "YAUAA__OPERATING_SYSTEM_VERSION", "comment": null}, "BROWSER__VIEWPORT": {"type": "TEXT", "index": 184, "name": "BROWSER__VIEWPORT", "comment": null}, "BROWSER__DOCUMENT_SIZE": {"type": "TEXT", "index": 185, "name": "BROWSER__DOCUMENT_SIZE", "comment": null}, "BROWSER__RESOLUTION": {"type": "TEXT", "index": 186, "name": "BROWSER__RESOLUTION", "comment": null}, "BROWSER__COLOR_DEPTH": {"type": "NUMBER", "index": 187, "name": "BROWSER__COLOR_DEPTH", "comment": null}, "BROWSER__DEVICE_PIXEL_RATIO": {"type": "FLOAT", "index": 188, "name": "BROWSER__DEVICE_PIXEL_RATIO", "comment": null}, "BROWSER__COOKIES_ENABLED": {"type": "BOOLEAN", "index": 189, "name": "BROWSER__COOKIES_ENABLED", "comment": null}, "BROWSER__ONLINE": {"type": "BOOLEAN", "index": 190, "name": "BROWSER__ONLINE", "comment": null}, "BROWSER__BROWSER_LANGUAGE": {"type": "TEXT", "index": 191, "name": "BROWSER__BROWSER_LANGUAGE", "comment": null}, "BROWSER__DOCUMENT_LANGUAGE": {"type": "TEXT", "index": 192, "name": "BROWSER__DOCUMENT_LANGUAGE", "comment": null}, "BROWSER__WEBDRIVER": {"type": "BOOLEAN", "index": 193, "name": "BROWSER__WEBDRIVER", "comment": null}, "BROWSER__DEVICE_MEMORY": {"type": "NUMBER", "index": 194, "name": "BROWSER__DEVICE_MEMORY", "comment": null}, "BROWSER__HARDWARE_CONCURRENCY": {"type": "NUMBER", "index": 195, "name": "BROWSER__HARDWARE_CONCURRENCY", "comment": null}, "BROWSER__TAB_ID": {"type": "TEXT", "index": 196, "name": "BROWSER__TAB_ID", "comment": null}, "SCREEN_VIEW__ID": {"type": "TEXT", "index": 197, "name": "SCREEN_VIEW__ID", "comment": null}, "SCREEN_VIEW__NAME": {"type": "TEXT", "index": 198, "name": "SCREEN_VIEW__NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_ID": {"type": "TEXT", "index": 199, "name": "SCREEN_VIEW__PREVIOUS_ID", "comment": null}, "SCREEN_VIEW__PREVIOUS_NAME": {"type": "TEXT", "index": 200, "name": "SCREEN_VIEW__PREVIOUS_NAME", "comment": null}, "SCREEN_VIEW__PREVIOUS_TYPE": {"type": "TEXT", "index": 201, "name": "SCREEN_VIEW__PREVIOUS_TYPE", "comment": null}, "SCREEN_VIEW__TRANSITION_TYPE": {"type": "TEXT", "index": 202, "name": "SCREEN_VIEW__TRANSITION_TYPE", "comment": null}, "SCREEN_VIEW__TYPE": {"type": "TEXT", "index": 203, "name": "SCREEN_VIEW__TYPE", "comment": null}, "SESSION__SESSION_ID": {"type": "TEXT", "index": 204, "name": "SESSION__SESSION_ID", "comment": null}, "SESSION__SESSION_INDEX": {"type": "NUMBER", "index": 205, "name": "SESSION__SESSION_INDEX", "comment": null}, "SESSION__PREVIOUS_SESSION_ID": {"type": "TEXT", "index": 206, "name": "SESSION__PREVIOUS_SESSION_ID", "comment": null}, "SESSION__USER_ID": {"type": "TEXT", "index": 207, "name": "SESSION__USER_ID", "comment": null}, "SESSION__FIRST_EVENT_ID": {"type": "TEXT", "index": 208, "name": "SESSION__FIRST_EVENT_ID", "comment": null}, "SESSION__EVENT_INDEX": {"type": "NUMBER", "index": 209, "name": "SESSION__EVENT_INDEX", "comment": null}, "SESSION__STORAGE_MECHANISM": {"type": "TEXT", "index": 210, "name": "SESSION__STORAGE_MECHANISM", "comment": null}, "SESSION__FIRST_EVENT_TIMESTAMP": {"type": "TEXT", "index": 211, "name": "SESSION__FIRST_EVENT_TIMESTAMP", "comment": null}, "MOBILE__DEVICE_MANUFACTURER": {"type": "TEXT", "index": 212, "name": "MOBILE__DEVICE_MANUFACTURER", "comment": null}, "MOBILE__DEVICE_MODEL": {"type": "TEXT", "index": 213, "name": "MOBILE__DEVICE_MODEL", "comment": null}, "MOBILE__OS_TYPE": {"type": "TEXT", "index": 214, "name": "MOBILE__OS_TYPE", "comment": null}, "MOBILE__OS_VERSION": {"type": "TEXT", "index": 215, "name": "MOBILE__OS_VERSION", "comment": null}, "MOBILE__ANDROID_IDFA": {"type": "TEXT", "index": 216, "name": "MOBILE__ANDROID_IDFA", "comment": null}, "MOBILE__APPLE_IDFA": {"type": "TEXT", "index": 217, "name": "MOBILE__APPLE_IDFA", "comment": null}, "MOBILE__APPLE_IDFV": {"type": "TEXT", "index": 218, "name": "MOBILE__APPLE_IDFV", "comment": null}, "MOBILE__CARRIER": {"type": "TEXT", "index": 219, "name": "MOBILE__CARRIER", "comment": null}, "MOBILE__OPEN_IDFA": {"type": "TEXT", "index": 220, "name": "MOBILE__OPEN_IDFA", "comment": null}, "MOBILE__NETWORK_TECHNOLOGY": {"type": "TEXT", "index": 221, "name": "MOBILE__NETWORK_TECHNOLOGY", "comment": null}, "MOBILE__NETWORK_TYPE": {"type": "TEXT", "index": 222, "name": "MOBILE__NETWORK_TYPE", "comment": null}, "MOBILE__PHYSICAL_MEMORY": {"type": "NUMBER", "index": 223, "name": "MOBILE__PHYSICAL_MEMORY", "comment": null}, "MOBILE__SYSTEM_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 224, "name": "MOBILE__SYSTEM_AVAILABLE_MEMORY", "comment": null}, "MOBILE__APP_AVAILABLE_MEMORY": {"type": "NUMBER", "index": 225, "name": "MOBILE__APP_AVAILABLE_MEMORY", "comment": null}, "MOBILE__BATTERY_LEVEL": {"type": "NUMBER", "index": 226, "name": "MOBILE__BATTERY_LEVEL", "comment": null}, "MOBILE__BATTERY_STATE": {"type": "TEXT", "index": 227, "name": "MOBILE__BATTERY_STATE", "comment": null}, "MOBILE__LOW_POWER_MODE": {"type": "BOOLEAN", "index": 228, "name": "MOBILE__LOW_POWER_MODE", "comment": null}, "MOBILE__AVAILABLE_STORAGE": {"type": "NUMBER", "index": 229, "name": "MOBILE__AVAILABLE_STORAGE", "comment": null}, "MOBILE__TOTAL_STORAGE": {"type": "NUMBER", "index": 230, "name": "MOBILE__TOTAL_STORAGE", "comment": null}, "MOBILE__IS_PORTRAIT": {"type": "BOOLEAN", "index": 231, "name": "MOBILE__IS_PORTRAIT", "comment": null}, "MOBILE__RESOLUTION": {"type": "TEXT", "index": 232, "name": "MOBILE__RESOLUTION", "comment": null}, "MOBILE__SCALE": {"type": "FLOAT", "index": 233, "name": "MOBILE__SCALE", "comment": null}, "MOBILE__LANGUAGE": {"type": "TEXT", "index": 234, "name": "MOBILE__LANGUAGE", "comment": null}, "MOBILE__APP_SET_ID": {"type": "TEXT", "index": 235, "name": "MOBILE__APP_SET_ID", "comment": null}, "MOBILE__APP_SET_ID_SCOPE": {"type": "TEXT", "index": 236, "name": "MOBILE__APP_SET_ID_SCOPE", "comment": null}, "GEO__LATITUDE": {"type": "FLOAT", "index": 237, "name": "GEO__LATITUDE", "comment": null}, "GEO__LONGITUDE": {"type": "FLOAT", "index": 238, "name": "GEO__LONGITUDE", "comment": null}, "GEO__LATITUDE_LONGITUDE_ACCURACY": {"type": "FLOAT", "index": 239, "name": "GEO__LATITUDE_LONGITUDE_ACCURACY", "comment": null}, "GEO__ALTITUDE": {"type": "FLOAT", "index": 240, "name": "GEO__ALTITUDE", "comment": null}, "GEO__ALTITUDE_ACCURACY": {"type": "FLOAT", "index": 241, "name": "GEO__ALTITUDE_ACCURACY", "comment": null}, "GEO__BEARING": {"type": "FLOAT", "index": 242, "name": "GEO__BEARING", "comment": null}, "GEO__SPEED": {"type": "FLOAT", "index": 243, "name": "GEO__SPEED", "comment": null}, "APP__BUILD": {"type": "TEXT", "index": 244, "name": "APP__BUILD", "comment": null}, "APP__VERSION": {"type": "TEXT", "index": 245, "name": "APP__VERSION", "comment": null}, "SCREEN__ID": {"type": "TEXT", "index": 246, "name": "SCREEN__ID", "comment": null}, "SCREEN__NAME": {"type": "TEXT", "index": 247, "name": "SCREEN__NAME", "comment": null}, "SCREEN__ACTIVITY": {"type": "TEXT", "index": 248, "name": "SCREEN__ACTIVITY", "comment": null}, "SCREEN__FRAGMENT": {"type": "TEXT", "index": 249, "name": "SCREEN__FRAGMENT", "comment": null}, "SCREEN__TOP_VIEW_CONTROLLER": {"type": "TEXT", "index": 250, "name": "SCREEN__TOP_VIEW_CONTROLLER", "comment": null}, "SCREEN__TYPE": {"type": "TEXT", "index": 251, "name": "SCREEN__TYPE", "comment": null}, "SCREEN__VIEW_CONTROLLER": {"type": "TEXT", "index": 252, "name": "SCREEN__VIEW_CONTROLLER", "comment": null}, "DEEP_LINK__URL": {"type": "TEXT", "index": 253, "name": "DEEP_LINK__URL", "comment": null}, "DEEP_LINK__REFERRER": {"type": "TEXT", "index": 254, "name": "DEEP_LINK__REFERRER", "comment": null}, "APP_ERROR__MESSAGE": {"type": "TEXT", "index": 255, "name": "APP_ERROR__MESSAGE", "comment": null}, "APP_ERROR__PROGRAMMING_LANGUAGE": {"type": "TEXT", "index": 256, "name": "APP_ERROR__PROGRAMMING_LANGUAGE", "comment": null}, "APP_ERROR__CLASS_NAME": {"type": "TEXT", "index": 257, "name": "APP_ERROR__CLASS_NAME", "comment": null}, "APP_ERROR__EXCEPTION_NAME": {"type": "TEXT", "index": 258, "name": "APP_ERROR__EXCEPTION_NAME", "comment": null}, "APP_ERROR__IS_FATAL": {"type": "BOOLEAN", "index": 259, "name": "APP_ERROR__IS_FATAL", "comment": null}, "APP_ERROR__LINE_NUMBER": {"type": "NUMBER", "index": 260, "name": "APP_ERROR__LINE_NUMBER", "comment": null}, "APP_ERROR__STACK_TRACE": {"type": "TEXT", "index": 261, "name": "APP_ERROR__STACK_TRACE", "comment": null}, "APP_ERROR__THREAD_ID": {"type": "NUMBER", "index": 262, "name": "APP_ERROR__THREAD_ID", "comment": null}, "APP_ERROR__THREAD_NAME": {"type": "TEXT", "index": 263, "name": "APP_ERROR__THREAD_NAME", "comment": null}, "SCREEN_SUMMARY__FOREGROUND_SEC": {"type": "FLOAT", "index": 264, "name": "SCREEN_SUMMARY__FOREGROUND_SEC", "comment": null}, "SCREEN_SUMMARY__BACKGROUND_SEC": {"type": "FLOAT", "index": 265, "name": "SCREEN_SUMMARY__BACKGROUND_SEC", "comment": null}, "SCREEN_SUMMARY__LAST_ITEM_INDEX": {"type": "NUMBER", "index": 266, "name": "SCREEN_SUMMARY__LAST_ITEM_INDEX", "comment": null}, "SCREEN_SUMMARY__ITEMS_COUNT": {"type": "NUMBER", "index": 267, "name": "SCREEN_SUMMARY__ITEMS_COUNT", "comment": null}, "SCREEN_SUMMARY__MIN_X_OFFSET": {"type": "NUMBER", "index": 268, "name": "SCREEN_SUMMARY__MIN_X_OFFSET", "comment": null}, "SCREEN_SUMMARY__MIN_Y_OFFSET": {"type": "NUMBER", "index": 269, "name": "SCREEN_SUMMARY__MIN_Y_OFFSET", "comment": null}, "SCREEN_SUMMARY__MAX_X_OFFSET": {"type": "NUMBER", "index": 270, "name": "SCREEN_SUMMARY__MAX_X_OFFSET", "comment": null}, "SCREEN_SUMMARY__MAX_Y_OFFSET": {"type": "NUMBER", "index": 271, "name": "SCREEN_SUMMARY__MAX_Y_OFFSET", "comment": null}, "SCREEN_SUMMARY__CONTENT_WIDTH": {"type": "NUMBER", "index": 272, "name": "SCREEN_SUMMARY__CONTENT_WIDTH", "comment": null}, "SCREEN_SUMMARY__CONTENT_HEIGHT": {"type": "NUMBER", "index": 273, "name": "SCREEN_SUMMARY__CONTENT_HEIGHT", "comment": null}, "CONSENT__EVENT_TYPE": {"type": "TEXT", "index": 274, "name": "CONSENT__EVENT_TYPE", "comment": null}, "CONSENT__BASIS_FOR_PROCESSING": {"type": "TEXT", "index": 275, "name": "CONSENT__BASIS_FOR_PROCESSING", "comment": null}, "CONSENT__CONSENT_URL": {"type": "TEXT", "index": 276, "name": "CONSENT__CONSENT_URL", "comment": null}, "CONSENT__CONSENT_VERSION": {"type": "TEXT", "index": 277, "name": "CONSENT__CONSENT_VERSION", "comment": null}, "CONSENT__CONSENT_SCOPES": {"type": "ARRAY", "index": 278, "name": "CONSENT__CONSENT_SCOPES", "comment": null}, "CONSENT__DOMAINS_APPLIED": {"type": "ARRAY", "index": 279, "name": "CONSENT__DOMAINS_APPLIED", "comment": null}, "CONSENT__GDPR_APPLIES": {"type": "BOOLEAN", "index": 280, "name": "CONSENT__GDPR_APPLIES", "comment": null}, "CMP__ELAPSED_TIME": {"type": "FLOAT", "index": 281, "name": "CMP__ELAPSED_TIME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 219, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 244224, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_base_events_this_run"}, "model.snowplow_unified.snowplow_unified_consent_cmp_stats": {"metadata": {"type": "BASE TABLE", "schema": "GH_SP_WEB_DBT_1_6_DERIVED", "name": "SNOWPLOW_UNIFIED_CONSENT_CMP_STATS", "database": "SNOWPLOW_DEV1", "comment": null, "owner": "DEVELOPERS"}, "columns": {"EVENT_ID": {"type": "TEXT", "index": 1, "name": "EVENT_ID", "comment": null}, "USER_IDENTIFIER": {"type": "TEXT", "index": 2, "name": "USER_IDENTIFIER", "comment": null}, "VIEW_ID": {"type": "TEXT", "index": 3, "name": "VIEW_ID", "comment": null}, "SESSION_IDENTIFIER": {"type": "TEXT", "index": 4, "name": "SESSION_IDENTIFIER", "comment": null}, "CMP_LOAD_TIME": {"type": "FLOAT", "index": 5, "name": "CMP_LOAD_TIME", "comment": null}, "CMP_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 6, "name": "CMP_TSTAMP", "comment": null}, "FIRST_CONSENT_EVENT_TSTAMP": {"type": "TIMESTAMP_NTZ", "index": 7, "name": "FIRST_CONSENT_EVENT_TSTAMP", "comment": null}, "FIRST_CONSENT_EVENT_TYPE": {"type": "TEXT", "index": 8, "name": "FIRST_CONSENT_EVENT_TYPE", "comment": null}, "CMP_INTERACTION_TIME": {"type": "NUMBER", "index": 9, "name": "CMP_INTERACTION_TIME", "comment": null}}, "stats": {"last_modified": {"id": "last_modified", "label": "Last Modified", "value": "2024-01-30 10:58UTC", "include": true, "description": "The timestamp for last update/change"}, "row_count": {"id": "row_count", "label": "Row Count", "value": 32, "include": true, "description": "An approximate count of rows in this table"}, "bytes": {"id": "bytes", "label": "Approximate Size", "value": 8704, "include": true, "description": "Approximate size of the table as reported by Snowflake"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snowplow_unified.snowplow_unified_consent_cmp_stats"}}, "sources": {}, "errors": null} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 65749e44..2bcc7941 100644 --- a/docs/index.html +++ b/docs/index.html @@ -24,7 +24,7 @@
icons
- diff --git a/docs/manifest.json b/docs/manifest.json new file mode 100644 index 00000000..27554867 --- /dev/null +++ b/docs/manifest.json @@ -0,0 +1 @@ +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v10.json", "dbt_version": "1.6.9", "generated_at": "2024-01-30T10:58:58.517976Z", "invocation_id": "f39fda47-7768-452b-a139-2400d4b89531", "env": {}, "project_name": "snowplow_unified_integration_tests", "project_id": "ba8c543a7849e2e3f890a24e6aab1ba3", "user_id": null, "send_anonymous_usage_stats": false, "adapter_type": "snowflake"}, "nodes": {"model.snowplow_unified_integration_tests.test_late_enabled_contexts": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "test_late_enabled_contexts", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "test_late_enabled_contexts.sql", "original_file_path": "models/test_late_enabled_contexts.sql", "unique_id": "model.snowplow_unified_integration_tests.test_late_enabled_contexts", "fqn": ["snowplow_unified_integration_tests", "test_late_enabled_contexts"], "alias": "test_late_enabled_contexts", "checksum": {"name": "sha256", "checksum": "ee5d843e01a91be37be26fa9d78f27617e35c0fde6c91babfe1a8bd4c93ffd04"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "materialized": "incremental"}, "created_at": 1706612340.9640272, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.test_late_enabled_contexts", "raw_code": "{#\nCopyright (c) 2020-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Community License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Community License Version 1.0.\nYou may obtain a copy of the Snowplow Community License Version 1.0 at https://docs.snowplow.io/community-license-1.0\n#}\n\n{{\n config(\n materialized='incremental'\n )\n}}\n\nselect *\n\nfrom {{ ref('snowplow_unified_events_this_run') }}", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.snowplow_unified.snowplow_unified_events_this_run"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/test_late_enabled_contexts.sql", "compiled": true, "compiled_code": "\n\n\n\nselect *\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_events_this_run", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_actual": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_base_quarantined_sessions_actual", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "actual/snowplow_unified_base_quarantined_sessions_actual.sql", "original_file_path": "models/actual/snowplow_unified_base_quarantined_sessions_actual.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_actual", "fqn": ["snowplow_unified_integration_tests", "actual", "snowplow_unified_base_quarantined_sessions_actual"], "alias": "snowplow_unified_base_quarantined_sessions_actual", "checksum": {"name": "sha256", "checksum": "95b0e40cb18b8766a8feef3a1e490964ac667902af0464af17bebf9df5044869"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified_integration_tests://models/actual/actual_vs_expected.yml", "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests"}, "created_at": 1706612343.4185238, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_base_quarantined_sessions_actual", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n\nselect *\n\nfrom {{ ref('snowplow_unified_base_quarantined_sessions') }}", "language": "sql", "refs": [{"name": "snowplow_unified_base_quarantined_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.snowplow_unified.snowplow_unified_base_quarantined_sessions"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/snowplow_unified_base_quarantined_sessions_actual.sql", "compiled": true, "compiled_code": "\n\n\n\nselect *\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_base_quarantined_sessions", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_actual": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_web_vital_measurements_actual", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "actual/snowplow_unified_web_vital_measurements_actual.sql", "original_file_path": "models/actual/snowplow_unified_web_vital_measurements_actual.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_actual", "fqn": ["snowplow_unified_integration_tests", "actual", "snowplow_unified_web_vital_measurements_actual"], "alias": "snowplow_unified_web_vital_measurements_actual", "checksum": {"name": "sha256", "checksum": "db9b31819cb6ea9785c2f2eabf564db7f82f4c03dbd2c1d0232e1d1436af792f"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified_integration_tests://models/actual/actual_vs_expected.yml", "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": true}, "created_at": 1706612343.425046, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_web_vital_measurements_actual", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n{{\n config(\n enabled=var(\"snowplow__enable_cwv\", false) | as_bool()\n )\n}}\n\nselect *\n\nfrom {{ ref('snowplow_unified_web_vital_measurements') }}", "language": "sql", "refs": [{"name": "snowplow_unified_web_vital_measurements", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.snowplow_unified.snowplow_unified_web_vital_measurements"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/snowplow_unified_web_vital_measurements_actual.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect *\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_web_vital_measurements", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_sessions_actual": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_sessions_actual", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "actual/snowplow_unified_sessions_actual.sql", "original_file_path": "models/actual/snowplow_unified_sessions_actual.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_sessions_actual", "fqn": ["snowplow_unified_integration_tests", "actual", "snowplow_unified_sessions_actual"], "alias": "snowplow_unified_sessions_actual", "checksum": {"name": "sha256", "checksum": "5c97f6832d320b10600fae71ce55cfd9c5559cb8d8ee11e5a749128adf5b65ad"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified_integration_tests://models/actual/actual_vs_expected.yml", "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests"}, "created_at": 1706612343.4202044, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_sessions_actual", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n-- Removing model_tstamp\n\nselect\n\n {%- if var('snowplow__list_event_counts', false) %}\n -- just compare the string version for simplicity...\n {% if target.type == 'bigquery' %}\n to_json_string(event_counts) as event_counts\n {% elif target.type =='redshift' %}\n json_serialize(event_counts) as event_counts\n {% else %}\n cast(event_counts as {{snowplow_utils.type_max_string() }}) as event_counts\n {% endif %}\n {%- endif %}\n\n{% if var('snowplow__conversion_events', none) %}\n , cv_view_page_volume\n {% if target.type == 'bigquery' %}\n , to_json_string(cv_view_page_events) as cv_view_page_events\n , to_json_string(cv_view_page_values) as cv_view_page_values\n {% else %}\n , cv_view_page_events\n , cv_view_page_values\n {% endif %}\n , cv_view_page_total\n , cv_view_page_first_conversion\n , cv_view_page_converted\n {% if var('snowplow__total_all_conversions') %}\n , cv__all_volume\n , cv__all_total\n {% endif %}\n{% endif %}\n\n,first_event_name\n,last_event_name\n,session_identifier\n,session__previous_session_id\n,user_id\n,user_identifier\n,stitched_user_id\n,network_userid\n,start_tstamp\n,end_tstamp\n\n-- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n, case when event_id = 'b3eca04e-d277-45e0-9c7c-76dc7e8c16ff' then 'true base' else app_id end as app_id\n{% else %}\n, app_id\n{% endif %}\n,platform\n,device_identifier\n,device_category\n,device_session_index\n,os_version\n,os_type\n,os_timezone\n,screen_resolution\n,yauaa__device_class\n,yauaa__device_version\n,yauaa__operating_system_version\n,yauaa__operating_system_class\n,yauaa__operating_system_name\n,yauaa__operating_system_name_version\n,mobile__device_manufacturer\n,mobile__device_model\n,mobile__os_type\n,mobile__os_version\n,mobile__android_idfa\n,mobile__apple_idfa\n,mobile__apple_idfv\n,mobile__carrier\n,mobile__open_idfa\n,mobile__network_technology\n,mobile__network_type\n,mobile__physical_memory\n,mobile__system_available_memory\n,mobile__app_available_memory\n,mobile__battery_level\n,mobile__battery_state\n,mobile__low_power_mode\n,mobile__available_storage\n,mobile__total_storage\n,mobile__is_portrait\n,mobile__resolution\n,mobile__scale\n,mobile__language\n,mobile__app_set_id\n,mobile__app_set_id_scope\n,first_geo_country\n,first_geo_region_name\n,first_geo_city\n,first_geo_country_name\n,first_geo_continent\n,last_geo_country\n,last_geo_region_name\n,last_geo_city\n,last_geo_country_name\n,last_geo_continent\n,geo_zipcode\n,geo_latitude\n,geo_longitude\n,geo_timezone\n,user_ipaddress\n,views\n\n,total_events\n,is_engaged\n,engaged_time_in_s\n,absolute_time_in_s\n,screen_names_viewed\n,mkt_medium\n,mkt_source\n,mkt_term\n,mkt_content\n,mkt_campaign\n,mkt_clickid\n,mkt_network\n,default_channel_group\n,mkt_source_platform\n,first_page_url\n,last_page_url\n,page_referrer\n,refr_medium\n,refr_source\n,refr_term\n,first_page_title\n,first_page_urlscheme\n,first_page_urlhost\n,first_page_urlpath\n,first_page_urlquery\n,first_page_urlfragment\n,last_page_title\n,last_page_urlscheme\n,last_page_urlhost\n,last_page_urlpath\n,last_page_urlquery\n,last_page_urlfragment\n,refr_urlscheme\n,refr_urlhost\n,refr_urlpath\n,refr_urlquery\n,refr_urlfragment\n,br_renderengine\n,first_br_lang\n,first_br_lang_name\n,last_br_lang\n,last_br_lang_name\n,iab__category\n,iab__primary_impact\n,iab__reason\n,iab__spider_or_robot\n,yauaa__device_name\n,yauaa__agent_class\n,yauaa__agent_name\n,yauaa__agent_name_version\n,yauaa__agent_name_version_major\n,yauaa__agent_version\n,yauaa__agent_version_major\n,yauaa__layout_engine_class\n,yauaa__layout_engine_name\n,yauaa__layout_engine_name_version\n,yauaa__layout_engine_name_version_major\n,yauaa__layout_engine_version\n,yauaa__layout_engine_version_major\n,ua__device_family\n,ua__os_version\n,ua__os_major\n,ua__os_minor\n,ua__os_patch\n,ua__os_patch_minor\n,ua__useragent_family\n,ua__useragent_major\n,ua__useragent_minor\n,ua__useragent_patch\n,ua__useragent_version\n,first_screen_view__name\n,first_screen_view__type\n,last_screen_view__name\n,last_screen_view__transition_type\n,last_screen_view__type\n,screen_view__previous_id\n,screen_view__previous_name\n,screen_view__previous_type\n,first_app__build\n,first_app__version\n,first_geo__altitude\n,first_geo__altitude_accuracy\n,first_geo__bearing\n,first_geo__latitude\n,first_geo__latitude_longitude_accuracy\n,first_geo__longitude\n,first_geo__speed\n,app_errors\n,fatal_app_errors\n,useragent\n\n-- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n , case when event_id = 'b3eca04e-d277-45e0-9c7c-76dc7e8c16ff' then '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' else event_id end as event_id\n , case when event_id2 = 'b3eca04e-d277-45e0-9c7c-76dc7e8c16ff' then '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' else event_id2 end as event_id2\n{% else %}\n ,event_id\n ,event_id2\n{% endif %}\n\nfrom {{ ref('snowplow_unified_sessions') }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.type_max_string"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/snowplow_unified_sessions_actual.sql", "compiled": true, "compiled_code": "\n\n\n-- Removing model_tstamp\n\nselect\n -- just compare the string version for simplicity...\n \n cast(event_counts as \n TEXT\n) as event_counts\n \n\n\n , cv_view_page_volume\n \n , cv_view_page_events\n , cv_view_page_values\n \n , cv_view_page_total\n , cv_view_page_first_conversion\n , cv_view_page_converted\n \n , cv__all_volume\n , cv__all_total\n \n\n\n,first_event_name\n,last_event_name\n,session_identifier\n,session__previous_session_id\n,user_id\n,user_identifier\n,stitched_user_id\n,network_userid\n,start_tstamp\n,end_tstamp\n\n-- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n, app_id\n\n,platform\n,device_identifier\n,device_category\n,device_session_index\n,os_version\n,os_type\n,os_timezone\n,screen_resolution\n,yauaa__device_class\n,yauaa__device_version\n,yauaa__operating_system_version\n,yauaa__operating_system_class\n,yauaa__operating_system_name\n,yauaa__operating_system_name_version\n,mobile__device_manufacturer\n,mobile__device_model\n,mobile__os_type\n,mobile__os_version\n,mobile__android_idfa\n,mobile__apple_idfa\n,mobile__apple_idfv\n,mobile__carrier\n,mobile__open_idfa\n,mobile__network_technology\n,mobile__network_type\n,mobile__physical_memory\n,mobile__system_available_memory\n,mobile__app_available_memory\n,mobile__battery_level\n,mobile__battery_state\n,mobile__low_power_mode\n,mobile__available_storage\n,mobile__total_storage\n,mobile__is_portrait\n,mobile__resolution\n,mobile__scale\n,mobile__language\n,mobile__app_set_id\n,mobile__app_set_id_scope\n,first_geo_country\n,first_geo_region_name\n,first_geo_city\n,first_geo_country_name\n,first_geo_continent\n,last_geo_country\n,last_geo_region_name\n,last_geo_city\n,last_geo_country_name\n,last_geo_continent\n,geo_zipcode\n,geo_latitude\n,geo_longitude\n,geo_timezone\n,user_ipaddress\n,views\n\n,total_events\n,is_engaged\n,engaged_time_in_s\n,absolute_time_in_s\n,screen_names_viewed\n,mkt_medium\n,mkt_source\n,mkt_term\n,mkt_content\n,mkt_campaign\n,mkt_clickid\n,mkt_network\n,default_channel_group\n,mkt_source_platform\n,first_page_url\n,last_page_url\n,page_referrer\n,refr_medium\n,refr_source\n,refr_term\n,first_page_title\n,first_page_urlscheme\n,first_page_urlhost\n,first_page_urlpath\n,first_page_urlquery\n,first_page_urlfragment\n,last_page_title\n,last_page_urlscheme\n,last_page_urlhost\n,last_page_urlpath\n,last_page_urlquery\n,last_page_urlfragment\n,refr_urlscheme\n,refr_urlhost\n,refr_urlpath\n,refr_urlquery\n,refr_urlfragment\n,br_renderengine\n,first_br_lang\n,first_br_lang_name\n,last_br_lang\n,last_br_lang_name\n,iab__category\n,iab__primary_impact\n,iab__reason\n,iab__spider_or_robot\n,yauaa__device_name\n,yauaa__agent_class\n,yauaa__agent_name\n,yauaa__agent_name_version\n,yauaa__agent_name_version_major\n,yauaa__agent_version\n,yauaa__agent_version_major\n,yauaa__layout_engine_class\n,yauaa__layout_engine_name\n,yauaa__layout_engine_name_version\n,yauaa__layout_engine_name_version_major\n,yauaa__layout_engine_version\n,yauaa__layout_engine_version_major\n,ua__device_family\n,ua__os_version\n,ua__os_major\n,ua__os_minor\n,ua__os_patch\n,ua__os_patch_minor\n,ua__useragent_family\n,ua__useragent_major\n,ua__useragent_minor\n,ua__useragent_patch\n,ua__useragent_version\n,first_screen_view__name\n,first_screen_view__type\n,last_screen_view__name\n,last_screen_view__transition_type\n,last_screen_view__type\n,screen_view__previous_id\n,screen_view__previous_name\n,screen_view__previous_type\n,first_app__build\n,first_app__version\n,first_geo__altitude\n,first_geo__altitude_accuracy\n,first_geo__bearing\n,first_geo__latitude\n,first_geo__latitude_longitude_accuracy\n,first_geo__longitude\n,first_geo__speed\n,app_errors\n,fatal_app_errors\n,useragent\n\n-- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n ,event_id\n ,event_id2\n\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_sessions", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_actual": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_log_actual", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "actual/snowplow_unified_consent_log_actual.sql", "original_file_path": "models/actual/snowplow_unified_consent_log_actual.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_actual", "fqn": ["snowplow_unified_integration_tests", "actual", "snowplow_unified_consent_log_actual"], "alias": "snowplow_unified_consent_log_actual", "checksum": {"name": "sha256", "checksum": "2c4d6802fdb737e7580b529b4c84fed526fdd70d526fc76c30ed839a9dedf077"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified_integration_tests://models/actual/actual_vs_expected.yml", "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": true}, "created_at": 1706612343.4221804, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_log_actual", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n{{\n config(\n enabled=var(\"snowplow__enable_consent\", false)\n )\n}}\n\nselect\n\n event_id,\n user_identifier,\n user_id,\n geo_country,\n view_id,\n session_identifier,\n derived_tstamp,\n load_tstamp,\n event_name,\n event_type,\n basis_for_processing,\n consent_url,\n consent_version,\n case when consent_scopes = '' then null else consent_scopes end as consent_scopes,\n case when domains_applied = '' then null else domains_applied end as domains_applied,\n gdpr_applies,\n cmp_load_time\n\nfrom {{ ref('snowplow_unified_consent_log') }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_log", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.snowplow_unified.snowplow_unified_consent_log"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/snowplow_unified_consent_log_actual.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect\n\n event_id,\n user_identifier,\n user_id,\n geo_country,\n view_id,\n session_identifier,\n derived_tstamp,\n load_tstamp,\n event_name,\n event_type,\n basis_for_processing,\n consent_url,\n consent_version,\n case when consent_scopes = '' then null else consent_scopes end as consent_scopes,\n case when domains_applied = '' then null else domains_applied end as domains_applied,\n gdpr_applies,\n cmp_load_time\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_log", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_actual": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_users_actual", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "actual/snowplow_unified_consent_users_actual.sql", "original_file_path": "models/actual/snowplow_unified_consent_users_actual.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_actual", "fqn": ["snowplow_unified_integration_tests", "actual", "snowplow_unified_consent_users_actual"], "alias": "snowplow_unified_consent_users_actual", "checksum": {"name": "sha256", "checksum": "e367225c832b27063723e6c36772d3360cad671c597ed1dbf8675d5a9d9bd68a"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified_integration_tests://models/actual/actual_vs_expected.yml", "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": true}, "created_at": 1706612343.4239423, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_users_actual", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n{{\n config(\n enabled=var(\"snowplow__enable_consent\", false)\n )\n}}\n\nselect *\n\nfrom {{ ref('snowplow_unified_consent_users') }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.snowplow_unified.snowplow_unified_consent_users"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/snowplow_unified_consent_users_actual.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect *\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_users", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_actual": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_scope_status_actual", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "actual/snowplow_unified_consent_scope_status_actual.sql", "original_file_path": "models/actual/snowplow_unified_consent_scope_status_actual.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_actual", "fqn": ["snowplow_unified_integration_tests", "actual", "snowplow_unified_consent_scope_status_actual"], "alias": "snowplow_unified_consent_scope_status_actual", "checksum": {"name": "sha256", "checksum": "269473c10dbfce7143b0e8786a80d1aa54a51ee990f488b5d4c9ae350b18ccf5"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified_integration_tests://models/actual/actual_vs_expected.yml", "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": true}, "created_at": 1706612343.4227998, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_scope_status_actual", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n{{\n config(\n enabled=var(\"snowplow__enable_consent\", false)\n )\n}}\n\nselect *\n\nfrom {{ ref('snowplow_unified_consent_scope_status') }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_scope_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.snowplow_unified.snowplow_unified_consent_scope_status"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/snowplow_unified_consent_scope_status_actual.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect *\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_scope_status", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_actual": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_totals_actual", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "actual/snowplow_unified_consent_totals_actual.sql", "original_file_path": "models/actual/snowplow_unified_consent_totals_actual.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_actual", "fqn": ["snowplow_unified_integration_tests", "actual", "snowplow_unified_consent_totals_actual"], "alias": "snowplow_unified_consent_totals_actual", "checksum": {"name": "sha256", "checksum": "4c97071d0160ac22a0877cc56f09347742989575c60cf6f96f5550d7d22c5163"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified_integration_tests://models/actual/actual_vs_expected.yml", "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": true}, "created_at": 1706612343.4233754, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_totals_actual", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n{{\n config(\n enabled=var(\"snowplow__enable_consent\", false)\n )\n}}\n\nselect *\n\nfrom {{ ref('snowplow_unified_consent_totals') }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_totals", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.snowplow_unified.snowplow_unified_consent_totals"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/snowplow_unified_consent_totals_actual.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect *\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_totals", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_actual": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_versions_actual", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "actual/snowplow_unified_consent_versions_actual.sql", "original_file_path": "models/actual/snowplow_unified_consent_versions_actual.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_actual", "fqn": ["snowplow_unified_integration_tests", "actual", "snowplow_unified_consent_versions_actual"], "alias": "snowplow_unified_consent_versions_actual", "checksum": {"name": "sha256", "checksum": "55b2f04ec34c08ed419a5dd191d9a7175c4fb9d2d2cd523b288e42fb8e231287"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified_integration_tests://models/actual/actual_vs_expected.yml", "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": true}, "created_at": 1706612343.4245033, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_versions_actual", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n{{\n config(\n enabled=var(\"snowplow__enable_consent\", false)\n )\n}}\n\nselect *\n\nfrom {{ ref('snowplow_unified_consent_versions') }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_versions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.snowplow_unified.snowplow_unified_consent_versions"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/snowplow_unified_consent_versions_actual.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect *\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_versions", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_actual": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_cmp_stats_actual", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "actual/snowplow_unified_consent_cmp_stats_actual.sql", "original_file_path": "models/actual/snowplow_unified_consent_cmp_stats_actual.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_actual", "fqn": ["snowplow_unified_integration_tests", "actual", "snowplow_unified_consent_cmp_stats_actual"], "alias": "snowplow_unified_consent_cmp_stats_actual", "checksum": {"name": "sha256", "checksum": "4329d0a79be5f623e330fbc2ceaa6ed03064ecb8eeb5b3799a4111e4b5700ced"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified_integration_tests://models/actual/actual_vs_expected.yml", "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": true}, "created_at": 1706612343.4215167, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_cmp_stats_actual", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n{{\n config(\n enabled=var(\"snowplow__enable_consent\", false)\n )\n}}\n\nselect *\n\nfrom {{ ref('snowplow_unified_consent_cmp_stats') }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_cmp_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.snowplow_unified.snowplow_unified_consent_cmp_stats"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/snowplow_unified_consent_cmp_stats_actual.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect *\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_cmp_stats", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_views_actual": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_views_actual", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "actual/snowplow_unified_views_actual.sql", "original_file_path": "models/actual/snowplow_unified_views_actual.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_views_actual", "fqn": ["snowplow_unified_integration_tests", "actual", "snowplow_unified_views_actual"], "alias": "snowplow_unified_views_actual", "checksum": {"name": "sha256", "checksum": "7fc3f277ced664eeff882f58431054a33298510395875a1ab6ad4025aa3ac001"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified_integration_tests://models/actual/actual_vs_expected.yml", "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests"}, "created_at": 1706612343.419443, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_views_actual", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n-- Removing model_tstamp\n\nselect\n-- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n case when event_id in ('1b4b3b57-3cb7-4df2-a7fd-526afa9e3c76', '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f') then 'true base' else app_id end as app_id,\n{% else %}\n app_id,\n{% endif %}\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n case when event_id = '1b4b3b57-3cb7-4df2-a7fd-526afa9e3c76' then '2021-03-01 20:56:33.286'\n when event_id = '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' then '2021-02-26 10:50:43.000'\n else dvce_created_tstamp end as dvce_created_tstamp,\n{% else %}\n dvce_created_tstamp,\n{% endif %}\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n case when event_id = '1b4b3b57-3cb7-4df2-a7fd-526afa9e3c76' then '2021-03-01 20:56:39.192'\n when event_id = '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' then '2021-02-26 10:50:47.000'\n else derived_tstamp end as derived_tstamp,\n{% else %}\n derived_tstamp,\n{% endif %}\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n case when event_id = '1b4b3b57-3cb7-4df2-a7fd-526afa9e3c76' then '2021-03-01 20:56:39.192'\n when event_id = '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' then '2021-02-26 10:50:47.000'\n else start_tstamp end as start_tstamp,\n{% else %}\n start_tstamp,\n{% endif %}\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n case when event_id = '1b4b3b57-3cb7-4df2-a7fd-526afa9e3c76' then '2021-03-01 20:56:39.192'\n when event_id = '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' then '2021-02-26 10:50:47.000'\n else end_tstamp end as end_tstamp,\n{% else %}\n end_tstamp,\n{% endif %}\n\nview_id,\nevent_name,\nevent_id,\nsession_identifier,\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n case when event_id = '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' then 1\n when event_id = 'b3eca04e-d277-45e0-9c7c-76dc7e8c16ff' then 2\n else view_in_session_index end as view_in_session_index,\n{% else %}\n view_in_session_index,\n{% endif %}\n\nviews_in_session,\nsession__previous_session_id,\nuser_id,\nuser_identifier,\nstitched_user_id,\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n case when event_id = '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' then '0e77779ebe3beec35d423f1c1952b81d69ecda6325902921c8e761856835808d'\n else network_userid end as network_userid,\n{% else %}\n network_userid,\n{% endif %}\n\ncollector_tstamp,\n\nplatform,\ndevice_identifier,\ndevice_category,\ndevice_session_index,\nos_version,\nos_type,\nmobile__device_manufacturer,\nmobile__device_model,\nmobile__os_type,\nmobile__os_version,\nmobile__android_idfa,\nmobile__apple_idfa,\nmobile__apple_idfv,\nmobile__carrier,\nmobile__open_idfa,\nmobile__network_technology,\nmobile__network_type,\nmobile__physical_memory,\nmobile__system_available_memory,\nmobile__app_available_memory,\nmobile__battery_level,\nmobile__battery_state,\nmobile__low_power_mode,\nmobile__available_storage,\nmobile__total_storage,\nmobile__is_portrait,\nmobile__resolution,\nmobile__scale,\nmobile__language,\nmobile__app_set_id,\nmobile__app_set_id_scope,\nos_timezone,\nscreen_resolution,\nyauaa__device_class,\nyauaa__device_version,\nyauaa__operating_system_version,\nyauaa__operating_system_class,\nyauaa__operating_system_name,\nyauaa__operating_system_name_version,\ngeo_country,\ngeo_region,\ngeo_region_name,\ngeo_city,\ngeo_zipcode,\ngeo_latitude,\ngeo_longitude,\ngeo_timezone,\nuser_ipaddress,\nengaged_time_in_s,\nabsolute_time_in_s,\nhorizontal_pixels_scrolled,\nvertical_pixels_scrolled,\nhorizontal_percentage_scrolled,\nvertical_percentage_scrolled,\nmkt_medium,\nmkt_source,\nmkt_term,\nmkt_content,\nmkt_campaign,\nmkt_clickid,\nmkt_network,\ndefault_channel_group,\npage_url,\npage_referrer,\nrefr_medium,\nrefr_source,\nrefr_term,\npage_title,\ncontent_group,\npage_urlscheme,\npage_urlhost,\npage_urlpath,\npage_urlquery,\npage_urlfragment,\nrefr_urlscheme,\nrefr_urlhost,\nrefr_urlpath,\nrefr_urlquery,\nrefr_urlfragment,\nbr_lang,\nbr_viewwidth,\nbr_viewheight,\nbr_colordepth,\nbr_renderengine,\ndoc_width,\ndoc_height,\niab__category,\niab__primary_impact,\niab__reason,\niab__spider_or_robot,\nyauaa__device_name,\nyauaa__agent_class,\nyauaa__agent_name,\nyauaa__agent_name_version,\nyauaa__agent_name_version_major,\nyauaa__agent_version,\nyauaa__agent_version_major,\nyauaa__layout_engine_class,\nyauaa__layout_engine_name,\nyauaa__layout_engine_name_version,\nyauaa__layout_engine_name_version_major,\nyauaa__layout_engine_version,\nyauaa__layout_engine_version_major,\nua__device_family,\nua__os_version,\nua__os_major,\nua__os_minor,\nua__os_patch,\nua__os_patch_minor,\nua__useragent_family,\nua__useragent_major,\nua__useragent_minor,\nua__useragent_patch,\nua__useragent_version,\nscreen_view__name,\nscreen_view__previous_id,\nscreen_view__previous_name,\nscreen_view__previous_type,\nscreen_view__transition_type,\nscreen_view__type,\napp__build,\napp__version,\ngeo__altitude,\ngeo__altitude_accuracy,\ngeo__bearing,\ngeo__latitude,\ngeo__latitude_longitude_accuracy,\ngeo__longitude,\ngeo__speed,\nscreen__fragment,\nscreen__top_view_controller,\nscreen__view_controller,\nuseragent,\nv_collector,\nevent_id2\n\nfrom {{ ref('snowplow_unified_views') }}", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.snowplow_unified.snowplow_unified_views"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/snowplow_unified_views_actual.sql", "compiled": true, "compiled_code": "\n\n\n-- Removing model_tstamp\n\nselect\n-- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n app_id,\n\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n dvce_created_tstamp,\n\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n derived_tstamp,\n\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n start_tstamp,\n\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n end_tstamp,\n\n\nview_id,\nevent_name,\nevent_id,\nsession_identifier,\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n view_in_session_index,\n\n\nviews_in_session,\nsession__previous_session_id,\nuser_id,\nuser_identifier,\nstitched_user_id,\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n network_userid,\n\n\ncollector_tstamp,\n\nplatform,\ndevice_identifier,\ndevice_category,\ndevice_session_index,\nos_version,\nos_type,\nmobile__device_manufacturer,\nmobile__device_model,\nmobile__os_type,\nmobile__os_version,\nmobile__android_idfa,\nmobile__apple_idfa,\nmobile__apple_idfv,\nmobile__carrier,\nmobile__open_idfa,\nmobile__network_technology,\nmobile__network_type,\nmobile__physical_memory,\nmobile__system_available_memory,\nmobile__app_available_memory,\nmobile__battery_level,\nmobile__battery_state,\nmobile__low_power_mode,\nmobile__available_storage,\nmobile__total_storage,\nmobile__is_portrait,\nmobile__resolution,\nmobile__scale,\nmobile__language,\nmobile__app_set_id,\nmobile__app_set_id_scope,\nos_timezone,\nscreen_resolution,\nyauaa__device_class,\nyauaa__device_version,\nyauaa__operating_system_version,\nyauaa__operating_system_class,\nyauaa__operating_system_name,\nyauaa__operating_system_name_version,\ngeo_country,\ngeo_region,\ngeo_region_name,\ngeo_city,\ngeo_zipcode,\ngeo_latitude,\ngeo_longitude,\ngeo_timezone,\nuser_ipaddress,\nengaged_time_in_s,\nabsolute_time_in_s,\nhorizontal_pixels_scrolled,\nvertical_pixels_scrolled,\nhorizontal_percentage_scrolled,\nvertical_percentage_scrolled,\nmkt_medium,\nmkt_source,\nmkt_term,\nmkt_content,\nmkt_campaign,\nmkt_clickid,\nmkt_network,\ndefault_channel_group,\npage_url,\npage_referrer,\nrefr_medium,\nrefr_source,\nrefr_term,\npage_title,\ncontent_group,\npage_urlscheme,\npage_urlhost,\npage_urlpath,\npage_urlquery,\npage_urlfragment,\nrefr_urlscheme,\nrefr_urlhost,\nrefr_urlpath,\nrefr_urlquery,\nrefr_urlfragment,\nbr_lang,\nbr_viewwidth,\nbr_viewheight,\nbr_colordepth,\nbr_renderengine,\ndoc_width,\ndoc_height,\niab__category,\niab__primary_impact,\niab__reason,\niab__spider_or_robot,\nyauaa__device_name,\nyauaa__agent_class,\nyauaa__agent_name,\nyauaa__agent_name_version,\nyauaa__agent_name_version_major,\nyauaa__agent_version,\nyauaa__agent_version_major,\nyauaa__layout_engine_class,\nyauaa__layout_engine_name,\nyauaa__layout_engine_name_version,\nyauaa__layout_engine_name_version_major,\nyauaa__layout_engine_version,\nyauaa__layout_engine_version_major,\nua__device_family,\nua__os_version,\nua__os_major,\nua__os_minor,\nua__os_patch,\nua__os_patch_minor,\nua__useragent_family,\nua__useragent_major,\nua__useragent_minor,\nua__useragent_patch,\nua__useragent_version,\nscreen_view__name,\nscreen_view__previous_id,\nscreen_view__previous_name,\nscreen_view__previous_type,\nscreen_view__transition_type,\nscreen_view__type,\napp__build,\napp__version,\ngeo__altitude,\ngeo__altitude_accuracy,\ngeo__bearing,\ngeo__latitude,\ngeo__latitude_longitude_accuracy,\ngeo__longitude,\ngeo__speed,\nscreen__fragment,\nscreen__top_view_controller,\nscreen__view_controller,\nuseragent,\nv_collector,\nevent_id2\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_users_actual": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_users_actual", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "actual/snowplow_unified_users_actual.sql", "original_file_path": "models/actual/snowplow_unified_users_actual.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_users_actual", "fqn": ["snowplow_unified_integration_tests", "actual", "snowplow_unified_users_actual"], "alias": "snowplow_unified_users_actual", "checksum": {"name": "sha256", "checksum": "af9719f48d3f58d1884778b09eb67644a598c03c8f12d7c27acbf34d4040bd88"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified_integration_tests://models/actual/actual_vs_expected.yml", "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests"}, "created_at": 1706612343.4208858, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_users_actual", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n--Removing model_tstamp\n\nselect\n user_id\n ,user_identifier\n ,network_userid\n ,stitched_user_id\n ,start_tstamp\n ,end_tstamp\n\n ,first_platform\n ,last_platform\n ,on_web\n ,on_mobile\n ,last_screen_resolution\n ,last_os_type\n ,last_os_version\n ,first_mobile__device_manufacturer\n ,first_mobile__device_model\n ,first_mobile__carrier\n ,last_mobile__device_manufacturer\n ,last_mobile__device_model\n ,last_mobile__carrier\n ,mobile__os_type\n ,mobile__os_version\n ,mobile__android_idfa\n ,mobile__apple_idfa\n ,mobile__apple_idfv\n ,mobile__open_idfa\n ,mobile__network_technology\n ,mobile__network_type\n ,mobile__physical_memory\n ,mobile__system_available_memory\n ,mobile__app_available_memory\n ,mobile__battery_level\n ,mobile__battery_state\n ,mobile__low_power_mode\n ,mobile__available_storage\n ,mobile__total_storage\n ,mobile__is_portrait\n ,mobile__resolution\n ,mobile__scale\n ,mobile__language\n ,mobile__app_set_id\n ,mobile__app_set_id_scope\n ,first_geo_country\n ,first_geo_country_name\n ,first_geo_continent\n ,first_geo_city\n ,first_geo_region_name\n ,last_geo_country\n ,last_geo_country_name\n ,last_geo_continent\n ,last_geo_city\n ,last_geo_region_name\n ,geo_zipcode\n ,geo_latitude\n ,geo_longitude\n ,geo_timezone\n ,views\n ,sessions\n ,active_days\n ,engaged_time_in_s\n ,screen_names_viewed\n ,absolute_time_in_s\n ,page_referrer\n ,refr_medium\n ,refr_source\n ,refr_term\n ,first_page_title\n ,first_page_url\n ,first_page_urlscheme\n ,first_page_urlhost\n ,first_page_urlpath\n ,first_page_urlquery\n ,first_page_urlfragment\n ,first_br_lang\n ,first_br_lang_name\n ,last_page_title\n ,last_page_url\n ,last_page_urlscheme\n ,last_page_urlhost\n ,last_page_urlpath\n ,last_page_urlquery\n ,last_page_urlfragment\n ,last_br_lang\n ,last_br_lang_name\n ,refr_urlscheme\n ,refr_urlhost\n ,refr_urlpath\n ,refr_urlquery\n ,refr_urlfragment\n ,first_screen_view__name\n ,first_screen_view__type\n ,last_screen_view__name\n ,last_screen_view__transition_type\n ,last_screen_view__type\n ,mkt_medium\n ,mkt_source\n ,mkt_term\n ,mkt_content\n ,mkt_campaign\n ,mkt_clickid\n ,mkt_network\n ,mkt_source_platform\n ,default_channel_group\n ,app_errors\n ,fatal_app_errors\n\n-- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n , case when first_event_id = 'b3eca04e-d277-45e0-9c7c-76dc7e8c16ff' then '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' else first_event_id end as first_event_id\n , case when first_event_id2 = 'b3eca04e-d277-45e0-9c7c-76dc7e8c16ff-first' then '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f-first' else first_event_id2 end as first_event_id2\n , case when last_event_id = 'b3eca04e-d277-45e0-9c7c-76dc7e8c16ff' then '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' else last_event_id end as last_event_id\n , case when last_event_id2 = 'b3eca04e-d277-45e0-9c7c-76dc7e8c16ff-last' then '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f-last' else last_event_id2 end as last_event_id2\n{% else %}\n ,first_event_id\n ,first_event_id2\n ,last_event_id\n ,last_event_id2\n{% endif %}\n\nfrom {{ ref('snowplow_unified_users') }}", "language": "sql", "refs": [{"name": "snowplow_unified_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.snowplow_unified.snowplow_unified_users"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/snowplow_unified_users_actual.sql", "compiled": true, "compiled_code": "\n\n\n--Removing model_tstamp\n\nselect\n user_id\n ,user_identifier\n ,network_userid\n ,stitched_user_id\n ,start_tstamp\n ,end_tstamp\n\n ,first_platform\n ,last_platform\n ,on_web\n ,on_mobile\n ,last_screen_resolution\n ,last_os_type\n ,last_os_version\n ,first_mobile__device_manufacturer\n ,first_mobile__device_model\n ,first_mobile__carrier\n ,last_mobile__device_manufacturer\n ,last_mobile__device_model\n ,last_mobile__carrier\n ,mobile__os_type\n ,mobile__os_version\n ,mobile__android_idfa\n ,mobile__apple_idfa\n ,mobile__apple_idfv\n ,mobile__open_idfa\n ,mobile__network_technology\n ,mobile__network_type\n ,mobile__physical_memory\n ,mobile__system_available_memory\n ,mobile__app_available_memory\n ,mobile__battery_level\n ,mobile__battery_state\n ,mobile__low_power_mode\n ,mobile__available_storage\n ,mobile__total_storage\n ,mobile__is_portrait\n ,mobile__resolution\n ,mobile__scale\n ,mobile__language\n ,mobile__app_set_id\n ,mobile__app_set_id_scope\n ,first_geo_country\n ,first_geo_country_name\n ,first_geo_continent\n ,first_geo_city\n ,first_geo_region_name\n ,last_geo_country\n ,last_geo_country_name\n ,last_geo_continent\n ,last_geo_city\n ,last_geo_region_name\n ,geo_zipcode\n ,geo_latitude\n ,geo_longitude\n ,geo_timezone\n ,views\n ,sessions\n ,active_days\n ,engaged_time_in_s\n ,screen_names_viewed\n ,absolute_time_in_s\n ,page_referrer\n ,refr_medium\n ,refr_source\n ,refr_term\n ,first_page_title\n ,first_page_url\n ,first_page_urlscheme\n ,first_page_urlhost\n ,first_page_urlpath\n ,first_page_urlquery\n ,first_page_urlfragment\n ,first_br_lang\n ,first_br_lang_name\n ,last_page_title\n ,last_page_url\n ,last_page_urlscheme\n ,last_page_urlhost\n ,last_page_urlpath\n ,last_page_urlquery\n ,last_page_urlfragment\n ,last_br_lang\n ,last_br_lang_name\n ,refr_urlscheme\n ,refr_urlhost\n ,refr_urlpath\n ,refr_urlquery\n ,refr_urlfragment\n ,first_screen_view__name\n ,first_screen_view__type\n ,last_screen_view__name\n ,last_screen_view__transition_type\n ,last_screen_view__type\n ,mkt_medium\n ,mkt_source\n ,mkt_term\n ,mkt_content\n ,mkt_campaign\n ,mkt_clickid\n ,mkt_network\n ,mkt_source_platform\n ,default_channel_group\n ,app_errors\n ,fatal_app_errors\n\n-- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n ,first_event_id\n ,first_event_id2\n ,last_event_id\n ,last_event_id2\n\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_users", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected_stg": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_users_expected_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_consent_users_expected_stg.sql", "original_file_path": "models/expected/snowplow_unified_consent_users_expected_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected_stg", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_consent_users_expected_stg"], "alias": "snowplow_unified_consent_users_expected_stg", "checksum": {"name": "sha256", "checksum": "32e75b4151611c84e7e3a43c557286700e921903697ff1116a2866c1292f942c"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": true}, "created_at": 1706612341.081251, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_users_expected_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n{{\n config(\n enabled=var(\"snowplow__enable_consent\", false)\n )\n}}\n\nselect\n\n user_identifier,\n user_id,\n geo_country,\n cmp_events,\n consent_events,\n cast(last_cmp_event_tstamp as {{ dbt.type_timestamp() }}) as last_cmp_event_tstamp,\n cast(last_consent_event_tstamp as {{ dbt.type_timestamp() }}) as last_consent_event_tstamp,\n last_consent_event_type,\n last_consent_scopes,\n replace(cast(last_consent_version as {{ dbt.type_string() }}), '.0', '') ||'.0' as last_consent_version,\n last_consent_url,\n last_domains_applied,\n cast(last_processed_event as {{ dbt.type_timestamp() }}) as last_processed_event,\n cast(is_latest_version as {{ dbt.type_boolean() }}) as is_latest_version\n\nfrom {{ ref('snowplow_unified_consent_users_expected') }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_users_expected", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_boolean"], "nodes": ["seed.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/expected/snowplow_unified_consent_users_expected_stg.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect\n\n user_identifier,\n user_id,\n geo_country,\n cmp_events,\n consent_events,\n cast(last_cmp_event_tstamp as TIMESTAMP) as last_cmp_event_tstamp,\n cast(last_consent_event_tstamp as TIMESTAMP) as last_consent_event_tstamp,\n last_consent_event_type,\n last_consent_scopes,\n replace(cast(last_consent_version as TEXT), '.0', '') ||'.0' as last_consent_version,\n last_consent_url,\n last_domains_applied,\n cast(last_processed_event as TIMESTAMP) as last_processed_event,\n cast(is_latest_version as BOOLEAN) as is_latest_version\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_users_expected", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_sessions_expected_stg": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_sessions_expected_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_sessions_expected_stg.sql", "original_file_path": "models/expected/snowplow_unified_sessions_expected_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_sessions_expected_stg", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_sessions_expected_stg"], "alias": "snowplow_unified_sessions_expected_stg", "checksum": {"name": "sha256", "checksum": "bc1fdcd5bff774ccc1617c08363a1b99b743746a233f4063903b9c02323d200b"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests"}, "created_at": 1706612341.0944023, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_sessions_expected_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n-- Removing model_tstamp\n\nSELECT\n\n {% if target.type =='redshift' %}\n replace(event_counts, ' ', '') as event_counts\n {% else %}\n event_counts\n {% endif %}\n ,cv_view_page_volume\n {% if target.type in ['snowflake'] %}\n ,AS_ARRAY(parse_json(cv_view_page_events)) as cv_view_page_events\n ,AS_ARRAY(parse_json(cv_view_page_values)) as cv_view_page_values \n {% elif target.type in ['bigquery'] %}\n {# BQ cannott compare array columns #}\n ,to_json_string(array(select replace(x, '\"', '') from unnest(json_extract_array(cv_view_page_events,'$')) as x)) as cv_view_page_events\n ,to_json_string(array(select cast(x AS float64) from unnest(json_extract_array(cv_view_page_values,'$')) as x)) as cv_view_page_values\n {% elif target.type in ['spark', 'databricks'] %}\n {# thank you chatGPT #}\n ,filter(transform(split(regexp_replace(substring(cv_view_page_events, 3, length(cv_view_page_events)-3), '\\\\\"+', ''), ','), x -> CAST(trim(x) AS string)), x -> x is not null and x != '') as cv_view_page_events\n ,filter(transform(split(regexp_replace(substring(cv_view_page_values, 3, length(cv_view_page_values)-3), '\\\\\"+', ''), ','), x -> CAST(trim(x) AS double)), x -> x is not null) as cv_view_page_values\n {% elif target.type in ['postgres', 'redshift'] %}\n {% if target.type == 'redshift' %}\n ,nullif(split_to_array(translate(cv_view_page_events, '[]\"]', ''),','), array()) as cv_view_page_events\n ,nullif(split_to_array(translate(cv_view_page_values, '[]\"]', ''),','), array()) as cv_view_page_values\n {% else %}\n ,string_to_array(regexp_replace(cv_view_page_events, '[\\[\\]\\\"]', '', 'g'),',') as cv_view_page_events\n ,string_to_array(regexp_replace(cv_view_page_values, '[\\[\\]\\\"]', '', 'g'),',')::numeric[] as cv_view_page_values\n {% endif %}\n {% endif %}\n ,cv_view_page_total\n ,cv_view_page_first_conversion\n ,cv_view_page_converted\n ,cv__all_volume\n ,cv__all_total\n ,first_event_name\n ,last_event_name\n ,session_identifier\n ,session__previous_session_id\n ,user_id\n ,user_identifier\n ,stitched_user_id\n ,network_userid\n ,start_tstamp\n ,end_tstamp\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n {% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n , case when event_id = 'b3eca04e-d277-45e0-9c7c-76dc7e8c16ff' then 'true base' else app_id end as app_id\n {% else %}\n , app_id\n {% endif %}\n ,platform\n ,device_identifier\n ,device_category\n ,device_session_index\n ,os_version\n ,os_type\n ,os_timezone\n ,screen_resolution\n ,yauaa__device_class\n ,yauaa__device_version\n ,yauaa__operating_system_version\n ,yauaa__operating_system_class\n ,yauaa__operating_system_name\n ,yauaa__operating_system_name_version\n ,mobile__device_manufacturer\n ,mobile__device_model\n ,mobile__os_type\n ,mobile__os_version\n ,mobile__android_idfa\n ,mobile__apple_idfa\n ,mobile__apple_idfv\n ,mobile__carrier\n ,mobile__open_idfa\n ,mobile__network_technology\n ,mobile__network_type\n ,mobile__physical_memory\n ,mobile__system_available_memory\n ,mobile__app_available_memory\n ,mobile__battery_level\n ,mobile__battery_state\n ,mobile__low_power_mode\n ,mobile__available_storage\n ,mobile__total_storage\n ,mobile__is_portrait\n ,mobile__resolution\n ,mobile__scale\n ,mobile__language\n ,mobile__app_set_id\n ,mobile__app_set_id_scope\n ,first_geo_country\n ,first_geo_region_name\n ,first_geo_city\n ,first_geo_country_name\n ,first_geo_continent\n ,last_geo_country\n ,last_geo_region_name\n ,last_geo_city\n ,last_geo_country_name\n ,last_geo_continent\n ,geo_zipcode\n ,geo_latitude\n ,geo_longitude\n ,geo_timezone\n ,user_ipaddress\n ,views\n\n ,total_events\n ,is_engaged\n ,engaged_time_in_s\n\n -- hard-coding due to different rounding in Bigquery\n{% if target.type == 'bigquery' -%}\n ,case when session_identifier in ('79831faefff0edc56d0d93ccf192b5bb58c07bec8dfff185f5cc4b104c2f0a08', '067bcc8ea082fcaf940893b64943edc6b718f0dd1bc1bd5d054a507c64048318', '37b340c11359852988ae9b4f77f0c4b283cf2d4e87e2b5e5bceda36a185b81ff', '4d34b56a2a474e7c5d7f125c9a0ed11b7e526bf99910d6d31afaf6a8cc25d7ae', '540b6c4f7c15de9093e0f4f6cf45a062fba7606ce64558a0b1c5a34d8bb33af5','6b379f3eea11eb4ead878125af9cb708f8a91c455d9405b0bc617fa78c2e4291', '6f19f1f4f43224f646d6fed6358c39152faa088f7ab2d90f0a791ea1210a4656', '7605342329f0b916a4c1bcd8bddad038988920fb24f74ca9e7ada5d96df32c60', 'cde5b90f34224b1a94351fa90fcb61d41b26a52a1a8381603cf538a11edd2bb2') then absolute_time_in_s - 1\n else absolute_time_in_s end as absolute_time_in_s\n{% else %}\n ,absolute_time_in_s\n{% endif %}\n\n ,screen_names_viewed\n ,mkt_medium\n ,mkt_source\n ,mkt_term\n ,mkt_content\n ,mkt_campaign\n ,mkt_clickid\n ,mkt_network\n ,default_channel_group\n ,mkt_source_platform\n ,first_page_url\n ,last_page_url\n ,page_referrer\n ,refr_medium\n ,refr_source\n ,refr_term\n ,first_page_title\n ,first_page_urlscheme\n ,first_page_urlhost\n ,first_page_urlpath\n ,first_page_urlquery\n ,first_page_urlfragment\n ,last_page_title\n ,last_page_urlscheme\n ,last_page_urlhost\n ,last_page_urlpath\n ,last_page_urlquery\n ,last_page_urlfragment\n ,refr_urlscheme\n ,refr_urlhost\n ,refr_urlpath\n ,refr_urlquery\n ,refr_urlfragment\n ,br_renderengine\n ,first_br_lang\n ,first_br_lang_name\n ,last_br_lang\n ,last_br_lang_name\n ,iab__category\n ,iab__primary_impact\n ,iab__reason\n ,iab__spider_or_robot\n ,yauaa__device_name\n ,yauaa__agent_class\n ,yauaa__agent_name\n ,yauaa__agent_name_version\n ,yauaa__agent_name_version_major\n ,yauaa__agent_version\n ,yauaa__agent_version_major\n ,yauaa__layout_engine_class\n ,yauaa__layout_engine_name\n ,yauaa__layout_engine_name_version\n ,yauaa__layout_engine_name_version_major\n ,yauaa__layout_engine_version\n ,yauaa__layout_engine_version_major\n ,ua__device_family\n ,ua__os_version\n ,ua__os_major\n ,ua__os_minor\n ,ua__os_patch\n ,ua__os_patch_minor\n ,ua__useragent_family\n ,ua__useragent_major\n ,ua__useragent_minor\n ,ua__useragent_patch\n ,ua__useragent_version\n ,first_screen_view__name\n ,first_screen_view__type\n ,last_screen_view__name\n ,last_screen_view__transition_type\n ,last_screen_view__type\n ,screen_view__previous_id\n ,screen_view__previous_name\n ,screen_view__previous_type\n ,first_app__build\n ,first_app__version\n ,first_geo__altitude\n ,first_geo__altitude_accuracy\n ,first_geo__bearing\n ,first_geo__latitude\n ,first_geo__latitude_longitude_accuracy\n ,first_geo__longitude\n ,first_geo__speed\n ,app_errors\n ,fatal_app_errors\n ,useragent\n\n-- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n , case when event_id = 'b3eca04e-d277-45e0-9c7c-76dc7e8c16ff' then '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' else event_id end as event_id\n , case when event_id2 = 'b3eca04e-d277-45e0-9c7c-76dc7e8c16ff' then '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' else event_id2 end as event_id2\n{% else %}\n ,event_id\n ,event_id2\n{% endif %}\n\nFROM {{ ref('snowplow_unified_sessions_expected') }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions_expected", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["seed.snowplow_unified_integration_tests.snowplow_unified_sessions_expected"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/expected/snowplow_unified_sessions_expected_stg.sql", "compiled": true, "compiled_code": "\n\n\n-- Removing model_tstamp\n\nSELECT\n\n \n event_counts\n \n ,cv_view_page_volume\n \n ,AS_ARRAY(parse_json(cv_view_page_events)) as cv_view_page_events\n ,AS_ARRAY(parse_json(cv_view_page_values)) as cv_view_page_values \n \n ,cv_view_page_total\n ,cv_view_page_first_conversion\n ,cv_view_page_converted\n ,cv__all_volume\n ,cv__all_total\n ,first_event_name\n ,last_event_name\n ,session_identifier\n ,session__previous_session_id\n ,user_id\n ,user_identifier\n ,stitched_user_id\n ,network_userid\n ,start_tstamp\n ,end_tstamp\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n \n , app_id\n \n ,platform\n ,device_identifier\n ,device_category\n ,device_session_index\n ,os_version\n ,os_type\n ,os_timezone\n ,screen_resolution\n ,yauaa__device_class\n ,yauaa__device_version\n ,yauaa__operating_system_version\n ,yauaa__operating_system_class\n ,yauaa__operating_system_name\n ,yauaa__operating_system_name_version\n ,mobile__device_manufacturer\n ,mobile__device_model\n ,mobile__os_type\n ,mobile__os_version\n ,mobile__android_idfa\n ,mobile__apple_idfa\n ,mobile__apple_idfv\n ,mobile__carrier\n ,mobile__open_idfa\n ,mobile__network_technology\n ,mobile__network_type\n ,mobile__physical_memory\n ,mobile__system_available_memory\n ,mobile__app_available_memory\n ,mobile__battery_level\n ,mobile__battery_state\n ,mobile__low_power_mode\n ,mobile__available_storage\n ,mobile__total_storage\n ,mobile__is_portrait\n ,mobile__resolution\n ,mobile__scale\n ,mobile__language\n ,mobile__app_set_id\n ,mobile__app_set_id_scope\n ,first_geo_country\n ,first_geo_region_name\n ,first_geo_city\n ,first_geo_country_name\n ,first_geo_continent\n ,last_geo_country\n ,last_geo_region_name\n ,last_geo_city\n ,last_geo_country_name\n ,last_geo_continent\n ,geo_zipcode\n ,geo_latitude\n ,geo_longitude\n ,geo_timezone\n ,user_ipaddress\n ,views\n\n ,total_events\n ,is_engaged\n ,engaged_time_in_s\n\n -- hard-coding due to different rounding in Bigquery\n\n ,absolute_time_in_s\n\n\n ,screen_names_viewed\n ,mkt_medium\n ,mkt_source\n ,mkt_term\n ,mkt_content\n ,mkt_campaign\n ,mkt_clickid\n ,mkt_network\n ,default_channel_group\n ,mkt_source_platform\n ,first_page_url\n ,last_page_url\n ,page_referrer\n ,refr_medium\n ,refr_source\n ,refr_term\n ,first_page_title\n ,first_page_urlscheme\n ,first_page_urlhost\n ,first_page_urlpath\n ,first_page_urlquery\n ,first_page_urlfragment\n ,last_page_title\n ,last_page_urlscheme\n ,last_page_urlhost\n ,last_page_urlpath\n ,last_page_urlquery\n ,last_page_urlfragment\n ,refr_urlscheme\n ,refr_urlhost\n ,refr_urlpath\n ,refr_urlquery\n ,refr_urlfragment\n ,br_renderengine\n ,first_br_lang\n ,first_br_lang_name\n ,last_br_lang\n ,last_br_lang_name\n ,iab__category\n ,iab__primary_impact\n ,iab__reason\n ,iab__spider_or_robot\n ,yauaa__device_name\n ,yauaa__agent_class\n ,yauaa__agent_name\n ,yauaa__agent_name_version\n ,yauaa__agent_name_version_major\n ,yauaa__agent_version\n ,yauaa__agent_version_major\n ,yauaa__layout_engine_class\n ,yauaa__layout_engine_name\n ,yauaa__layout_engine_name_version\n ,yauaa__layout_engine_name_version_major\n ,yauaa__layout_engine_version\n ,yauaa__layout_engine_version_major\n ,ua__device_family\n ,ua__os_version\n ,ua__os_major\n ,ua__os_minor\n ,ua__os_patch\n ,ua__os_patch_minor\n ,ua__useragent_family\n ,ua__useragent_major\n ,ua__useragent_minor\n ,ua__useragent_patch\n ,ua__useragent_version\n ,first_screen_view__name\n ,first_screen_view__type\n ,last_screen_view__name\n ,last_screen_view__transition_type\n ,last_screen_view__type\n ,screen_view__previous_id\n ,screen_view__previous_name\n ,screen_view__previous_type\n ,first_app__build\n ,first_app__version\n ,first_geo__altitude\n ,first_geo__altitude_accuracy\n ,first_geo__bearing\n ,first_geo__latitude\n ,first_geo__latitude_longitude_accuracy\n ,first_geo__longitude\n ,first_geo__speed\n ,app_errors\n ,fatal_app_errors\n ,useragent\n\n-- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n ,event_id\n ,event_id2\n\n\nFROM SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_sessions_expected", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected_stg": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_log_expected_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_consent_log_expected_stg.sql", "original_file_path": "models/expected/snowplow_unified_consent_log_expected_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected_stg", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_consent_log_expected_stg"], "alias": "snowplow_unified_consent_log_expected_stg", "checksum": {"name": "sha256", "checksum": "d03321141b1ca4a09168343f26c36a1810f8b932b2dc9e2be5347f65eb9cefc1"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": true}, "created_at": 1706612341.1052966, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_log_expected_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n{{\n config(\n enabled=var(\"snowplow__enable_consent\", false)\n )\n}}\n\nselect\n\n event_id,\n user_identifier,\n user_id,\n geo_country,\n cast(view_id as {{ dbt.type_string() }}) as view_id,\n session_identifier,\n cast(derived_tstamp as {{ dbt.type_timestamp() }}) as derived_tstamp,\n cast(load_tstamp as {{ dbt.type_timestamp() }}) as load_tstamp,\n event_name,\n event_type,\n basis_for_processing,\n consent_url,\n replace(cast(consent_version as {{ dbt.type_string() }}), '.0', '') ||'.0' as consent_version,\n consent_scopes,\n domains_applied,\n gdpr_applies,\n cmp_load_time\n\nfrom {{ ref('snowplow_unified_consent_log_expected') }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_log_expected", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["seed.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/expected/snowplow_unified_consent_log_expected_stg.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect\n\n event_id,\n user_identifier,\n user_id,\n geo_country,\n cast(view_id as TEXT) as view_id,\n session_identifier,\n cast(derived_tstamp as TIMESTAMP) as derived_tstamp,\n cast(load_tstamp as TIMESTAMP) as load_tstamp,\n event_name,\n event_type,\n basis_for_processing,\n consent_url,\n replace(cast(consent_version as TEXT), '.0', '') ||'.0' as consent_version,\n consent_scopes,\n domains_applied,\n gdpr_applies,\n cmp_load_time\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_log_expected", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected_stg": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_views_mobile_screen_engagement_expected_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_views_mobile_screen_engagement_expected_stg.sql", "original_file_path": "models/expected/snowplow_unified_views_mobile_screen_engagement_expected_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected_stg", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_views_mobile_screen_engagement_expected_stg"], "alias": "snowplow_unified_views_mobile_screen_engagement_expected_stg", "checksum": {"name": "sha256", "checksum": "9a14d41b216a441d8ba2cdee710236e6403b6cfbed022fec2d699f38d81b0fc1"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests"}, "created_at": 1706612341.1144753, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_views_mobile_screen_engagement_expected_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n\nselect\n view_id,\n session_identifier,\n user_identifier,\n engaged_time_in_s,\n {% if target.type in ['bigquery'] %}\n -- BiqQuery calculates timestamp difference slightly differently\n coalesce(absolute_time_in_s_bigquery, absolute_time_in_s) as absolute_time_in_s,\n {% else %}\n absolute_time_in_s,\n {% endif %}\n horizontal_pixels_scrolled,\n vertical_pixels_scrolled,\n horizontal_percentage_scrolled,\n vertical_percentage_scrolled,\n last_list_item_index,\n list_items_count,\n list_items_percentage_scrolled\n\nfrom {{ ref('snowplow_unified_views_mobile_screen_engagement_expected') }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_mobile_screen_engagement_expected", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["seed.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/expected/snowplow_unified_views_mobile_screen_engagement_expected_stg.sql", "compiled": true, "compiled_code": "\n\n\n\nselect\n view_id,\n session_identifier,\n user_identifier,\n engaged_time_in_s,\n \n absolute_time_in_s,\n \n horizontal_pixels_scrolled,\n vertical_pixels_scrolled,\n horizontal_percentage_scrolled,\n vertical_percentage_scrolled,\n last_list_item_index,\n list_items_count,\n list_items_percentage_scrolled\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_views_mobile_screen_engagement_expected", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected_stg": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_cmp_stats_expected_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_consent_cmp_stats_expected_stg.sql", "original_file_path": "models/expected/snowplow_unified_consent_cmp_stats_expected_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected_stg", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_consent_cmp_stats_expected_stg"], "alias": "snowplow_unified_consent_cmp_stats_expected_stg", "checksum": {"name": "sha256", "checksum": "47c15f749c93e8bb82b7a7f69b7d954be60c0a0676efccadfae40b19584c05fa"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": true}, "created_at": 1706612341.1209507, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_cmp_stats_expected_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n{{\n config(\n enabled=var(\"snowplow__enable_consent\", false)\n )\n}}\n\nselect\n\n event_id,\n user_identifier,\n cast(view_id as {{ dbt.type_string() }}) as view_id,\n session_identifier,\n cmp_load_time,\n cast(cmp_tstamp as {{ dbt.type_timestamp() }}) as cmp_tstamp,\n cast(first_consent_event_tstamp as {{ dbt.type_timestamp() }}) as first_consent_event_tstamp,\n first_consent_event_type,\n cmp_interaction_time\n\nfrom {{ ref('snowplow_unified_consent_cmp_stats_expected') }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_cmp_stats_expected", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp"], "nodes": ["seed.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/expected/snowplow_unified_consent_cmp_stats_expected_stg.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect\n\n event_id,\n user_identifier,\n cast(view_id as TEXT) as view_id,\n session_identifier,\n cmp_load_time,\n cast(cmp_tstamp as TIMESTAMP) as cmp_tstamp,\n cast(first_consent_event_tstamp as TIMESTAMP) as first_consent_event_tstamp,\n first_consent_event_type,\n cmp_interaction_time\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_cmp_stats_expected", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected_stg": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_web_vital_measurements_expected_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_web_vital_measurements_expected_stg.sql", "original_file_path": "models/expected/snowplow_unified_web_vital_measurements_expected_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected_stg", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_web_vital_measurements_expected_stg"], "alias": "snowplow_unified_web_vital_measurements_expected_stg", "checksum": {"name": "sha256", "checksum": "cc8525fbf6aae89578f143aca75931c57249c7157982729b338712e5767e9fb7"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": true}, "created_at": 1706612341.1285756, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_web_vital_measurements_expected_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n{{\n config(\n enabled=var(\"snowplow__enable_cwv\", false) | as_bool()\n )\n}}\n\nselect\n compound_key,\n measurement_type,\n page_url,\n device_class,\n geo_country,\n country,\n time_period,\n view_count,\n lcp_75p,\n fid_75p,\n cls_75p,\n ttfb_75p,\n inp_75p,\n lcp_result,\n fid_result,\n cls_result,\n ttfb_result,\n inp_result,\n passed\n\nfrom {{ ref('snowplow_unified_web_vital_measurements_expected') }}", "language": "sql", "refs": [{"name": "snowplow_unified_web_vital_measurements_expected", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/expected/snowplow_unified_web_vital_measurements_expected_stg.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect\n compound_key,\n measurement_type,\n page_url,\n device_class,\n geo_country,\n country,\n time_period,\n view_count,\n lcp_75p,\n fid_75p,\n cls_75p,\n ttfb_75p,\n inp_75p,\n lcp_result,\n fid_result,\n cls_result,\n ttfb_result,\n inp_result,\n passed\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_web_vital_measurements_expected", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected_stg": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_base_quarantined_sessions_expected_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_base_quarantined_sessions_expected_stg.sql", "original_file_path": "models/expected/snowplow_unified_base_quarantined_sessions_expected_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected_stg", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_base_quarantined_sessions_expected_stg"], "alias": "snowplow_unified_base_quarantined_sessions_expected_stg", "checksum": {"name": "sha256", "checksum": "8778211a470dd5985dfcc15bc77afbc35ad484ac73c5ca2bba2aa77b8656b136"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests"}, "created_at": 1706612341.1352198, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_base_quarantined_sessions_expected_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n\nselect *\n\nfrom {{ ref('snowplow_unified_base_quarantined_sessions_expected') }}", "language": "sql", "refs": [{"name": "snowplow_unified_base_quarantined_sessions_expected", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["seed.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/expected/snowplow_unified_base_quarantined_sessions_expected_stg.sql", "compiled": true, "compiled_code": "\n\n\n\nselect *\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_base_quarantined_sessions_expected", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected_stg": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_scope_status_expected_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_consent_scope_status_expected_stg.sql", "original_file_path": "models/expected/snowplow_unified_consent_scope_status_expected_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected_stg", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_consent_scope_status_expected_stg"], "alias": "snowplow_unified_consent_scope_status_expected_stg", "checksum": {"name": "sha256", "checksum": "553691734c64e372636da0db8a99aae74f032589a9776ff29329808d044a67ab"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": true}, "created_at": 1706612341.1382852, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_scope_status_expected_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n{{\n config(\n enabled=var(\"snowplow__enable_consent\", false)\n )\n}}\n\nselect *\n\nfrom {{ ref('snowplow_unified_consent_scope_status_expected') }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_scope_status_expected", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["seed.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/expected/snowplow_unified_consent_scope_status_expected_stg.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect *\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_scope_status_expected", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_views_expected_stg": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_views_expected_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_views_expected_stg.sql", "original_file_path": "models/expected/snowplow_unified_views_expected_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_views_expected_stg", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_views_expected_stg"], "alias": "snowplow_unified_views_expected_stg", "checksum": {"name": "sha256", "checksum": "8bbc7bd657c97186a64abab4f7401ce7f0ce5af6ca7f935df1e28f773f141eea"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests"}, "created_at": 1706612341.1460087, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_views_expected_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n\nselect\n-- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n case when event_id in ('1b4b3b57-3cb7-4df2-a7fd-526afa9e3c76', '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f') then 'true base' else app_id end as app_id,\n{% else %}\n app_id,\n{% endif %}\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n case when event_id = '1b4b3b57-3cb7-4df2-a7fd-526afa9e3c76' then '2021-03-01 20:56:33.286'\n when event_id = '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' then '2021-02-26 10:50:43.000'\n else dvce_created_tstamp end as dvce_created_tstamp,\n{% else %}\n dvce_created_tstamp,\n{% endif %}\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n case when event_id = '1b4b3b57-3cb7-4df2-a7fd-526afa9e3c76' then '2021-03-01 20:56:39.192'\n when event_id = '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' then '2021-02-26 10:50:47.000'\n else derived_tstamp end as derived_tstamp,\n{% else %}\n derived_tstamp,\n{% endif %}\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n case when event_id = '1b4b3b57-3cb7-4df2-a7fd-526afa9e3c76' then '2021-03-01 20:56:39.192'\n when event_id = '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' then '2021-02-26 10:50:47.000'\n else start_tstamp end as start_tstamp,\n{% else %}\n start_tstamp,\n{% endif %}\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n case when event_id = '1b4b3b57-3cb7-4df2-a7fd-526afa9e3c76' then '2021-03-01 20:56:39.192'\n when event_id = '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' then '2021-02-26 10:50:47.000'\n else end_tstamp end as end_tstamp,\n{% else %}\n end_tstamp,\n{% endif %}\n\nview_id,\nevent_name,\nevent_id,\nsession_identifier,\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n case when event_id = '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' then 1\n when event_id = 'b3eca04e-d277-45e0-9c7c-76dc7e8c16ff' then 2\n else view_in_session_index end as view_in_session_index,\n{% else %}\n view_in_session_index,\n{% endif %}\n\nviews_in_session,\nsession__previous_session_id,\nuser_id,\nuser_identifier,\nstitched_user_id,\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n case when event_id = '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' then '0e77779ebe3beec35d423f1c1952b81d69ecda6325902921c8e761856835808d'\n else network_userid end as network_userid,\n{% else %}\n network_userid,\n{% endif %}\n\ncollector_tstamp,\n\nplatform,\ndevice_identifier,\ndevice_category,\ndevice_session_index,\nos_version,\nos_type,\nmobile__device_manufacturer,\nmobile__device_model,\nmobile__os_type,\nmobile__os_version,\nmobile__android_idfa,\nmobile__apple_idfa,\nmobile__apple_idfv,\nmobile__carrier,\nmobile__open_idfa,\nmobile__network_technology,\nmobile__network_type,\nmobile__physical_memory,\nmobile__system_available_memory,\nmobile__app_available_memory,\nmobile__battery_level,\nmobile__battery_state,\nmobile__low_power_mode,\nmobile__available_storage,\nmobile__total_storage,\nmobile__is_portrait,\nmobile__resolution,\nmobile__scale,\nmobile__language,\nmobile__app_set_id,\nmobile__app_set_id_scope,\nos_timezone,\nscreen_resolution,\nyauaa__device_class,\nyauaa__device_version,\nyauaa__operating_system_version,\nyauaa__operating_system_class,\nyauaa__operating_system_name,\nyauaa__operating_system_name_version,\ngeo_country,\ngeo_region,\ngeo_region_name,\ngeo_city,\ngeo_zipcode,\ngeo_latitude,\ngeo_longitude,\ngeo_timezone,\nuser_ipaddress,\nengaged_time_in_s,\nabsolute_time_in_s,\nhorizontal_pixels_scrolled,\nvertical_pixels_scrolled,\nhorizontal_percentage_scrolled,\nvertical_percentage_scrolled,\nmkt_medium,\nmkt_source,\nmkt_term,\nmkt_content,\nmkt_campaign,\nmkt_clickid,\nmkt_network,\ndefault_channel_group,\npage_url,\npage_referrer,\nrefr_medium,\nrefr_source,\nrefr_term,\npage_title,\ncontent_group,\npage_urlscheme,\npage_urlhost,\npage_urlpath,\npage_urlquery,\npage_urlfragment,\nrefr_urlscheme,\nrefr_urlhost,\nrefr_urlpath,\nrefr_urlquery,\nrefr_urlfragment,\nbr_lang,\nbr_viewwidth,\nbr_viewheight,\nbr_colordepth,\nbr_renderengine,\ndoc_width,\ndoc_height,\niab__category,\niab__primary_impact,\niab__reason,\niab__spider_or_robot,\nyauaa__device_name,\nyauaa__agent_class,\nyauaa__agent_name,\nyauaa__agent_name_version,\nyauaa__agent_name_version_major,\nyauaa__agent_version,\nyauaa__agent_version_major,\nyauaa__layout_engine_class,\nyauaa__layout_engine_name,\nyauaa__layout_engine_name_version,\nyauaa__layout_engine_name_version_major,\nyauaa__layout_engine_version,\nyauaa__layout_engine_version_major,\nua__device_family,\nua__os_version,\nua__os_major,\nua__os_minor,\nua__os_patch,\nua__os_patch_minor,\nua__useragent_family,\nua__useragent_major,\nua__useragent_minor,\nua__useragent_patch,\nua__useragent_version,\nscreen_view__name,\nscreen_view__previous_id,\nscreen_view__previous_name,\nscreen_view__previous_type,\nscreen_view__transition_type,\nscreen_view__type,\napp__build,\napp__version,\ngeo__altitude,\ngeo__altitude_accuracy,\ngeo__bearing,\ngeo__latitude,\ngeo__latitude_longitude_accuracy,\ngeo__longitude,\ngeo__speed,\nscreen__fragment,\ncast(screen__top_view_controller as {{ dbt.type_string() }}) as screen__top_view_controller,\ncast(screen__view_controller as {{ dbt.type_string() }}) as screen__view_controller,\nuseragent,\nv_collector,\nevent_id2\n\n\nfrom {{ ref('snowplow_unified_views_expected') }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_expected", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": ["seed.snowplow_unified_integration_tests.snowplow_unified_views_expected"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/expected/snowplow_unified_views_expected_stg.sql", "compiled": true, "compiled_code": "\n\n\n\nselect\n-- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n app_id,\n\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n dvce_created_tstamp,\n\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n derived_tstamp,\n\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n start_tstamp,\n\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n end_tstamp,\n\n\nview_id,\nevent_name,\nevent_id,\nsession_identifier,\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n view_in_session_index,\n\n\nviews_in_session,\nsession__previous_session_id,\nuser_id,\nuser_identifier,\nstitched_user_id,\n\n -- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n network_userid,\n\n\ncollector_tstamp,\n\nplatform,\ndevice_identifier,\ndevice_category,\ndevice_session_index,\nos_version,\nos_type,\nmobile__device_manufacturer,\nmobile__device_model,\nmobile__os_type,\nmobile__os_version,\nmobile__android_idfa,\nmobile__apple_idfa,\nmobile__apple_idfv,\nmobile__carrier,\nmobile__open_idfa,\nmobile__network_technology,\nmobile__network_type,\nmobile__physical_memory,\nmobile__system_available_memory,\nmobile__app_available_memory,\nmobile__battery_level,\nmobile__battery_state,\nmobile__low_power_mode,\nmobile__available_storage,\nmobile__total_storage,\nmobile__is_portrait,\nmobile__resolution,\nmobile__scale,\nmobile__language,\nmobile__app_set_id,\nmobile__app_set_id_scope,\nos_timezone,\nscreen_resolution,\nyauaa__device_class,\nyauaa__device_version,\nyauaa__operating_system_version,\nyauaa__operating_system_class,\nyauaa__operating_system_name,\nyauaa__operating_system_name_version,\ngeo_country,\ngeo_region,\ngeo_region_name,\ngeo_city,\ngeo_zipcode,\ngeo_latitude,\ngeo_longitude,\ngeo_timezone,\nuser_ipaddress,\nengaged_time_in_s,\nabsolute_time_in_s,\nhorizontal_pixels_scrolled,\nvertical_pixels_scrolled,\nhorizontal_percentage_scrolled,\nvertical_percentage_scrolled,\nmkt_medium,\nmkt_source,\nmkt_term,\nmkt_content,\nmkt_campaign,\nmkt_clickid,\nmkt_network,\ndefault_channel_group,\npage_url,\npage_referrer,\nrefr_medium,\nrefr_source,\nrefr_term,\npage_title,\ncontent_group,\npage_urlscheme,\npage_urlhost,\npage_urlpath,\npage_urlquery,\npage_urlfragment,\nrefr_urlscheme,\nrefr_urlhost,\nrefr_urlpath,\nrefr_urlquery,\nrefr_urlfragment,\nbr_lang,\nbr_viewwidth,\nbr_viewheight,\nbr_colordepth,\nbr_renderengine,\ndoc_width,\ndoc_height,\niab__category,\niab__primary_impact,\niab__reason,\niab__spider_or_robot,\nyauaa__device_name,\nyauaa__agent_class,\nyauaa__agent_name,\nyauaa__agent_name_version,\nyauaa__agent_name_version_major,\nyauaa__agent_version,\nyauaa__agent_version_major,\nyauaa__layout_engine_class,\nyauaa__layout_engine_name,\nyauaa__layout_engine_name_version,\nyauaa__layout_engine_name_version_major,\nyauaa__layout_engine_version,\nyauaa__layout_engine_version_major,\nua__device_family,\nua__os_version,\nua__os_major,\nua__os_minor,\nua__os_patch,\nua__os_patch_minor,\nua__useragent_family,\nua__useragent_major,\nua__useragent_minor,\nua__useragent_patch,\nua__useragent_version,\nscreen_view__name,\nscreen_view__previous_id,\nscreen_view__previous_name,\nscreen_view__previous_type,\nscreen_view__transition_type,\nscreen_view__type,\napp__build,\napp__version,\ngeo__altitude,\ngeo__altitude_accuracy,\ngeo__bearing,\ngeo__latitude,\ngeo__latitude_longitude_accuracy,\ngeo__longitude,\ngeo__speed,\nscreen__fragment,\ncast(screen__top_view_controller as TEXT) as screen__top_view_controller,\ncast(screen__view_controller as TEXT) as screen__view_controller,\nuseragent,\nv_collector,\nevent_id2\n\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_views_expected", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected_stg": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_totals_expected_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_consent_totals_expected_stg.sql", "original_file_path": "models/expected/snowplow_unified_consent_totals_expected_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected_stg", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_consent_totals_expected_stg"], "alias": "snowplow_unified_consent_totals_expected_stg", "checksum": {"name": "sha256", "checksum": "127d53803943b37d4b44bd567c2bf1665c1344d7f86619606833039e4d116f48"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": true}, "created_at": 1706612341.1579099, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_totals_expected_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n{{\n config(\n enabled=var(\"snowplow__enable_consent\", false)\n )\n}}\n\nselect\n\n replace(cast(consent_version as {{ dbt.type_string() }}), '.0', '') ||'.0' as consent_version,\n cast(version_start_tstamp as {{ dbt.type_timestamp() }}) as version_start_tstamp,\n consent_scopes,\n consent_url,\n domains_applied,\n cast(is_latest_version as {{ dbt.type_boolean() }})as is_latest_version,\n cast(last_allow_all_event as {{ dbt.type_timestamp() }}) as last_allow_all_event,\n total_visitors,\n allow_all,\n allow_selected,\n allow,\n pending,\n denied,\n expired,\n withdrawn,\n implicit_consent,\n expires_in_six_months\n\nfrom {{ ref('snowplow_unified_consent_totals_expected') }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_totals_expected", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_boolean"], "nodes": ["seed.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/expected/snowplow_unified_consent_totals_expected_stg.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect\n\n replace(cast(consent_version as TEXT), '.0', '') ||'.0' as consent_version,\n cast(version_start_tstamp as TIMESTAMP) as version_start_tstamp,\n consent_scopes,\n consent_url,\n domains_applied,\n cast(is_latest_version as BOOLEAN)as is_latest_version,\n cast(last_allow_all_event as TIMESTAMP) as last_allow_all_event,\n total_visitors,\n allow_all,\n allow_selected,\n allow,\n pending,\n denied,\n expired,\n withdrawn,\n implicit_consent,\n expires_in_six_months\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_totals_expected", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_users_expected_stg": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_users_expected_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_users_expected_stg.sql", "original_file_path": "models/expected/snowplow_unified_users_expected_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_users_expected_stg", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_users_expected_stg"], "alias": "snowplow_unified_users_expected_stg", "checksum": {"name": "sha256", "checksum": "8b0057a120930db1a00e1ac3da28d98acfda7d6e60be50e1d5e1d51b2aa8a9e3"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests"}, "created_at": 1706612341.1664305, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_users_expected_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n\nselect\n user_id\n ,user_identifier\n ,network_userid\n ,stitched_user_id\n ,start_tstamp\n ,end_tstamp\n\n ,first_platform\n ,last_platform\n ,on_web\n ,on_mobile\n ,last_screen_resolution\n ,last_os_type\n ,last_os_version\n ,first_mobile__device_manufacturer\n ,first_mobile__device_model\n ,first_mobile__carrier\n ,last_mobile__device_manufacturer\n ,last_mobile__device_model\n ,last_mobile__carrier\n ,mobile__os_type\n ,cast(mobile__os_version as {{type_string() }}) as mobile__os_version\n ,mobile__android_idfa\n ,mobile__apple_idfa\n ,mobile__apple_idfv\n ,mobile__open_idfa\n ,mobile__network_technology\n ,mobile__network_type\n ,mobile__physical_memory\n ,mobile__system_available_memory\n ,mobile__app_available_memory\n ,mobile__battery_level\n ,mobile__battery_state\n ,mobile__low_power_mode\n ,mobile__available_storage\n ,mobile__total_storage\n ,mobile__is_portrait\n ,mobile__resolution\n ,cast(mobile__scale as {{type_float() }}) as mobile__scale\n ,mobile__language\n ,mobile__app_set_id\n ,mobile__app_set_id_scope\n ,first_geo_country\n ,first_geo_country_name\n ,first_geo_continent\n ,first_geo_city\n ,first_geo_region_name\n ,last_geo_country\n ,last_geo_country_name\n ,last_geo_continent\n ,last_geo_city\n ,last_geo_region_name\n ,geo_zipcode\n ,geo_latitude\n ,geo_longitude\n ,geo_timezone\n ,views\n ,sessions\n ,active_days\n ,engaged_time_in_s\n ,screen_names_viewed\n\n -- hard-coding due to different rounding in Bigquery\n{% if target.type == 'bigquery' -%}\n ,case when user_identifier in ('066d5a7eecd5792fc6700998b72e58da69e690d9a6fb23c3b70f2bdb41230a70', '24837eb265f7e3f2e82196a3c3a05bf028135683819ab8ded7b8b79753bd52dd', '2e340eb6e94820ea8369c0174c612260d1cfe9d41f0fe46268994e28d9c0bbf17', '5d27ff97148de9e5f1c23e8fd0a4382c06852969f6495def03c66599e676f449','b3c883845957060b8cbebdaec8366d1d4ec6ad283eba1c70e8a512ec43d10875', 'bc0da66ea89bbb0991f1c37ecdc1830a97f1ed9e24296ef6dbf19635220a064e', 'f897c486aa47cefa7478e3db62c797922b9fe006fc10fc05dd4b71abbbbdcae2', '0e9ab97b5d9d9a174112df13fe9c44788af3ac9088a8b41e0998d92a8b4b5a4fc') then absolute_time_in_s - 1\n when user_identifier = '434dff58299fdc4f124ddf56a4f117d76f69bedb06f76d9858ffde85e16e14e1' then absolute_time_in_s - 2\n else absolute_time_in_s end as absolute_time_in_s\n{% else %}\n ,absolute_time_in_s\n{% endif %}\n\n ,page_referrer\n ,refr_medium\n ,refr_source\n ,refr_term\n ,first_page_title\n ,first_page_url\n ,first_page_urlscheme\n ,first_page_urlhost\n ,first_page_urlpath\n ,first_page_urlquery\n ,first_page_urlfragment\n ,first_br_lang\n ,first_br_lang_name\n ,last_page_title\n ,last_page_url\n ,last_page_urlscheme\n ,last_page_urlhost\n ,last_page_urlpath\n ,last_page_urlquery\n ,last_page_urlfragment\n ,last_br_lang\n ,last_br_lang_name\n ,refr_urlscheme\n ,refr_urlhost\n ,refr_urlpath\n ,refr_urlquery\n ,refr_urlfragment\n ,first_screen_view__name\n ,first_screen_view__type\n ,last_screen_view__name\n ,last_screen_view__transition_type\n ,last_screen_view__type\n ,mkt_medium\n ,mkt_source\n ,mkt_term\n ,mkt_content\n ,mkt_campaign\n ,mkt_clickid\n ,mkt_network\n ,mkt_source_platform\n ,default_channel_group\n ,app_errors\n ,fatal_app_errors\n\n-- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n{% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n , case when first_event_id = 'b3eca04e-d277-45e0-9c7c-76dc7e8c16ff' then '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' else first_event_id end as first_event_id\n , case when first_event_id2 = 'b3eca04e-d277-45e0-9c7c-76dc7e8c16ff-first' then '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f-first' else first_event_id2 end as first_event_id2\n , case when last_event_id = 'b3eca04e-d277-45e0-9c7c-76dc7e8c16ff' then '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f' else last_event_id end as last_event_id\n , case when last_event_id2 = 'b3eca04e-d277-45e0-9c7c-76dc7e8c16ff-last' then '3cfe1cd4-a20e-4fc7-952a-a5cb7f7d063f-last' else last_event_id2 end as last_event_id2\n{% else %}\n ,first_event_id\n ,first_event_id2\n ,last_event_id\n ,last_event_id2\n{% endif %}\n\nfrom {{ ref('snowplow_unified_users_expected') }}", "language": "sql", "refs": [{"name": "snowplow_unified_users_expected", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_float"], "nodes": ["seed.snowplow_unified_integration_tests.snowplow_unified_users_expected"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/expected/snowplow_unified_users_expected_stg.sql", "compiled": true, "compiled_code": "\n\n\n\nselect\n user_id\n ,user_identifier\n ,network_userid\n ,stitched_user_id\n ,start_tstamp\n ,end_tstamp\n\n ,first_platform\n ,last_platform\n ,on_web\n ,on_mobile\n ,last_screen_resolution\n ,last_os_type\n ,last_os_version\n ,first_mobile__device_manufacturer\n ,first_mobile__device_model\n ,first_mobile__carrier\n ,last_mobile__device_manufacturer\n ,last_mobile__device_model\n ,last_mobile__carrier\n ,mobile__os_type\n ,cast(mobile__os_version as TEXT) as mobile__os_version\n ,mobile__android_idfa\n ,mobile__apple_idfa\n ,mobile__apple_idfv\n ,mobile__open_idfa\n ,mobile__network_technology\n ,mobile__network_type\n ,mobile__physical_memory\n ,mobile__system_available_memory\n ,mobile__app_available_memory\n ,mobile__battery_level\n ,mobile__battery_state\n ,mobile__low_power_mode\n ,mobile__available_storage\n ,mobile__total_storage\n ,mobile__is_portrait\n ,mobile__resolution\n ,cast(mobile__scale as FLOAT) as mobile__scale\n ,mobile__language\n ,mobile__app_set_id\n ,mobile__app_set_id_scope\n ,first_geo_country\n ,first_geo_country_name\n ,first_geo_continent\n ,first_geo_city\n ,first_geo_region_name\n ,last_geo_country\n ,last_geo_country_name\n ,last_geo_continent\n ,last_geo_city\n ,last_geo_region_name\n ,geo_zipcode\n ,geo_latitude\n ,geo_longitude\n ,geo_timezone\n ,views\n ,sessions\n ,active_days\n ,engaged_time_in_s\n ,screen_names_viewed\n\n -- hard-coding due to different rounding in Bigquery\n\n ,absolute_time_in_s\n\n\n ,page_referrer\n ,refr_medium\n ,refr_source\n ,refr_term\n ,first_page_title\n ,first_page_url\n ,first_page_urlscheme\n ,first_page_urlhost\n ,first_page_urlpath\n ,first_page_urlquery\n ,first_page_urlfragment\n ,first_br_lang\n ,first_br_lang_name\n ,last_page_title\n ,last_page_url\n ,last_page_urlscheme\n ,last_page_urlhost\n ,last_page_urlpath\n ,last_page_urlquery\n ,last_page_urlfragment\n ,last_br_lang\n ,last_br_lang_name\n ,refr_urlscheme\n ,refr_urlhost\n ,refr_urlpath\n ,refr_urlquery\n ,refr_urlfragment\n ,first_screen_view__name\n ,first_screen_view__type\n ,last_screen_view__name\n ,last_screen_view__transition_type\n ,last_screen_view__type\n ,mkt_medium\n ,mkt_source\n ,mkt_term\n ,mkt_content\n ,mkt_campaign\n ,mkt_clickid\n ,mkt_network\n ,mkt_source_platform\n ,default_channel_group\n ,app_errors\n ,fatal_app_errors\n\n-- hard-coding due to non-deterministic outcome from row_number for Redshift/Postgres/databricks\n\n ,first_event_id\n ,first_event_id2\n ,last_event_id\n ,last_event_id2\n\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_users_expected", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected_stg": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_versions_expected_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_consent_versions_expected_stg.sql", "original_file_path": "models/expected/snowplow_unified_consent_versions_expected_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected_stg", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_consent_versions_expected_stg"], "alias": "snowplow_unified_consent_versions_expected_stg", "checksum": {"name": "sha256", "checksum": "cdc015f38a5e1f229cf3d303a1ef7f0408d437595341aee133b1450dc4f67925"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": true}, "created_at": 1706612341.1771066, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_versions_expected_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n{{\n config(\n enabled=var(\"snowplow__enable_consent\", false)\n )\n}}\n\nselect\n\n replace(cast(consent_version as {{ dbt.type_string() }}), '.0', '') ||'.0' as consent_version,\n cast(version_start_tstamp as {{ dbt.type_timestamp() }}) as version_start_tstamp,\n consent_scopes,\n consent_url,\n domains_applied,\n cast(is_latest_version as {{ dbt.type_boolean() }}) as is_latest_version,\n cast(last_allow_all_event as {{ dbt.type_timestamp() }}) as last_allow_all_event\n\nfrom {{ ref('snowplow_unified_consent_versions_expected') }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_versions_expected", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_boolean"], "nodes": ["seed.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/expected/snowplow_unified_consent_versions_expected_stg.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect\n\n replace(cast(consent_version as TEXT), '.0', '') ||'.0' as consent_version,\n cast(version_start_tstamp as TIMESTAMP) as version_start_tstamp,\n consent_scopes,\n consent_url,\n domains_applied,\n cast(is_latest_version as BOOLEAN) as is_latest_version,\n cast(last_allow_all_event as TIMESTAMP) as last_allow_all_event\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_versions_expected", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified_integration_tests.snowplow_unified_events_stg": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_events_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/snowflake/snowplow_unified_events_stg.sql", "original_file_path": "models/source/snowflake/snowplow_unified_events_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_events_stg", "fqn": ["snowplow_unified_integration_tests", "source", "snowflake", "snowplow_unified_events_stg"], "alias": "snowplow_unified_events_stg", "checksum": {"name": "sha256", "checksum": "0b3f914b2304c4102730bb7d7630a517d8a60d63124d090838e1d818a5cbb591"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type == 'snowflake' | as_bool() }}"}, "created_at": 1706612341.1862369, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_events_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{# CWV tests run on a different source dataset, this is an easy way to hack them together. #}\n{% if not var(\"snowplow__enable_cwv\", false) and not var(\"snowplow__enable_screen_summary_context\", false) %}\n\n -- page view context is given as json string in csv. Parse json\n with prep as (\n select\n *,\n parse_json(contexts_com_snowplowanalytics_snowplow_web_page_1_0_0) as contexts_com_snowplowanalytics_snowplow_web_page_1,\n parse_json(unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1_0_0) as unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1,\n parse_json(unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1_0_0) as unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1,\n parse_json(contexts_com_iab_snowplow_spiders_and_robots_1_0_0) as contexts_com_iab_snowplow_spiders_and_robots_1,\n parse_json(contexts_com_snowplowanalytics_snowplow_ua_parser_context_1_0_0) as contexts_com_snowplowanalytics_snowplow_ua_parser_context_1,\n parse_json(contexts_nl_basjes_yauaa_context_1_0_0) as contexts_nl_basjes_yauaa_context_1,\n parse_json(unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0) as unstruct_event_com_snowplowanalytics_mobile_screen_view_1,\n parse_json(contexts_com_snowplowanalytics_snowplow_client_session_1_0_0) as contexts_com_snowplowanalytics_snowplow_client_session_1,\n parse_json(contexts_com_snowplowanalytics_snowplow_geolocation_context_1_0_0) as contexts_com_snowplowanalytics_snowplow_geolocation_context_1,\n parse_json(contexts_com_snowplowanalytics_mobile_application_1_0_0) as contexts_com_snowplowanalytics_mobile_application_1,\n parse_json(contexts_com_snowplowanalytics_mobile_deep_link_1_0_0) as contexts_com_snowplowanalytics_mobile_deep_link_1,\n parse_json(contexts_com_snowplowanalytics_snowplow_browser_context_1_0_0) as contexts_com_snowplowanalytics_snowplow_browser_context_1,\n parse_json(contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_0) as contexts_com_snowplowanalytics_snowplow_mobile_context_1,\n parse_json(unstruct_event_com_snowplowanalytics_snowplow_application_error_1_0_0) as unstruct_event_com_snowplowanalytics_snowplow_application_error_1,\n parse_json(contexts_com_snowplowanalytics_mobile_screen_1_0_0) as contexts_com_snowplowanalytics_mobile_screen_1\n\n from {{ ref('snowplow_unified_events') }}\n )\n\n , flatten as (\n select\n *,\n contexts_nl_basjes_yauaa_context_1[0].agentClass as agent_class,\n contexts_nl_basjes_yauaa_context_1[0].agentInformationEmail as agent_information_email,\n contexts_nl_basjes_yauaa_context_1[0].agentName as agent_name,\n contexts_nl_basjes_yauaa_context_1[0].agentNameVersion as agent_name_version,\n contexts_nl_basjes_yauaa_context_1[0].agentNameVersionMajor as agent_name_version_major,\n contexts_nl_basjes_yauaa_context_1[0].agentVersion as agent_version,\n contexts_nl_basjes_yauaa_context_1[0].agentVersionMajor as agent_version_major,\n contexts_nl_basjes_yauaa_context_1[0].deviceBrand as device_brand,\n contexts_nl_basjes_yauaa_context_1[0].deviceClass as device_class,\n contexts_nl_basjes_yauaa_context_1[0].deviceCpu as device_cpu,\n contexts_nl_basjes_yauaa_context_1[0].deviceCpuBits as device_cpu_bits,\n contexts_nl_basjes_yauaa_context_1[0].deviceName as device_name,\n contexts_nl_basjes_yauaa_context_1[0].deviceVersion as device_version,\n contexts_nl_basjes_yauaa_context_1[0].layoutEngineClass as layout_engine_class,\n contexts_nl_basjes_yauaa_context_1[0].layoutEngineName as layout_engine_name,\n contexts_nl_basjes_yauaa_context_1[0].layoutEngineNameVersion as layout_engine_name_version,\n contexts_nl_basjes_yauaa_context_1[0].layoutEngineNameVersionMajor as layout_engine_name_version_major,\n contexts_nl_basjes_yauaa_context_1[0].layoutEngineVersion as layout_engine_version,\n contexts_nl_basjes_yauaa_context_1[0].layoutEngineVersionMajor as layout_engine_version_major,\n contexts_nl_basjes_yauaa_context_1[0].networkType as network_type,\n contexts_nl_basjes_yauaa_context_1[0].operatingSystemClass as operating_system_class,\n contexts_nl_basjes_yauaa_context_1[0].operatingSystemName as operating_system_name,\n contexts_nl_basjes_yauaa_context_1[0].operatingSystemNameVersion as operating_system_name_version,\n contexts_nl_basjes_yauaa_context_1[0].operatingSystemNameVersionMajor as operating_system_name_version_major,\n contexts_nl_basjes_yauaa_context_1[0].operatingSystemVersion as operating_system_version,\n contexts_nl_basjes_yauaa_context_1[0].operatingSystemVersionBuild as operating_system_version_build,\n contexts_nl_basjes_yauaa_context_1[0].operatingSystemVersionMajor as operating_system_version_major,\n contexts_nl_basjes_yauaa_context_1[0].webviewAppName as webview_app_name,\n contexts_nl_basjes_yauaa_context_1[0].webviewAppNameVersionMajor as webview_app_name_version_major,\n contexts_nl_basjes_yauaa_context_1[0].webviewAppVersion as webview_app_version,\n contexts_nl_basjes_yauaa_context_1[0].webviewAppVersionMajor as webview_app_version_major,\n contexts_com_iab_snowplow_spiders_and_robots_1[0].category as category,\n contexts_com_iab_snowplow_spiders_and_robots_1[0].primaryImpact as primaryImpact,\n contexts_com_iab_snowplow_spiders_and_robots_1[0].reason as reason,\n contexts_com_iab_snowplow_spiders_and_robots_1[0].spiderOrRobot as spiderOrRobot,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].basis_for_processing as basisForProcessing,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].consent_scopes as consentScopes,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].consent_url as consentUrl,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].consent_version as consentVersion,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].domains_applied as domainsApplied,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].event_type as eventType,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].gdpr_applies as gdprApplies,\n unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1[0]:elapsed_time as elapsedTime,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0]:id::varchar AS id,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0]:name::varchar AS name,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0]:previousId::varchar AS previousId,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0]:previousName::varchar AS previousName,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0]:previousType::varchar AS previousType,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0]:transitionType::varchar AS transitionType,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0]:type::varchar AS type,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0]:firstEventId::varchar AS firstEventId,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0]:previousSessionId::varchar AS previousSessionId,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0]:sessionId::varchar AS sessionId,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0]:sessionIndex::int AS sessionIndex,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0]:userId::varchar AS userId,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0]:eventIndex::int AS eventIndex,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0]:storageMechanism::varchar AS storageMechanism,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0]:firstEventTimestamp::timestamp AS firstEventTimestamp,\n contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:latitude::float AS latitude,\n contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:longitude::float AS longitude,\n contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:latitudeLongitudeAccuracy::float AS latitudeLongitudeAccuracy,\n contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:altitude::float AS altitude,\n contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:altitudeAccuracy::float AS altitudeAccuracy,\n contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:bearing::float AS bearing,\n contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:speed::float AS speed,\n contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:timestamp::int AS timestamp,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:viewport::varchar AS viewport,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:documentSize::varchar AS documentSize,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:resolution::varchar AS resolution,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:colorDepth::int AS colorDepth,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:devicePixelRatio::float AS devicePixelRatio,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:cookiesEnabled::boolean AS cookiesEnabled,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:online::boolean AS online,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:browserLanguage::varchar AS browserLanguage,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:documentLanguage::varchar AS documentLanguage,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:webdriver::boolean AS webdriver,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:deviceMemory::int AS deviceMemory,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:hardwareConcurrency::int AS hardwareConcurrency,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:tabId::varchar AS tabId,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:deviceManufacturer::varchar AS deviceManufacturer,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:deviceModel::varchar AS deviceModel,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:osType::varchar AS osType,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:osVersion::varchar AS osVersion,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:androidIdfa::varchar AS androidIdfa,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:appleIdfa::varchar AS appleIdfa,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:appleIdfv::varchar AS appleIdfv,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:carrier::varchar AS carrier,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:openIdfa::varchar AS openIdfa,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:networkTechnology::varchar AS networkTechnology,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:networkType::varchar(255) AS networkType,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].physicalMemory::int AS physicalMemory,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].systemAvailableMemory::int AS systemAvailableMemory,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].appAvailableMemory::int AS appAvailableMemory,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].batteryLevel::int AS batteryLevel,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].batteryState::string AS batteryState,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].lowPowerMode::string AS lowPowerMode,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].availableStorage::int AS availableStorage,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].totalStorage::int AS totalStorage,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].isPortrait::boolean AS isPortrait,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].resolution::string AS resolution2,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].scale::string AS scale,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].language::string AS language,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].appSetId::string AS appSetId,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].appSetIdScope::string AS appSetIdScope,\n contexts_com_snowplowanalytics_mobile_screen_1[0].id::varchar AS id2,\n contexts_com_snowplowanalytics_mobile_screen_1[0].name::varchar AS name2,\n contexts_com_snowplowanalytics_mobile_screen_1[0].activity::varchar AS activity,\n contexts_com_snowplowanalytics_mobile_screen_1[0].fragment::varchar AS fragment,\n contexts_com_snowplowanalytics_mobile_screen_1[0].topViewController::varchar AS topViewController,\n contexts_com_snowplowanalytics_mobile_screen_1[0].type::varchar AS type2,\n contexts_com_snowplowanalytics_mobile_screen_1[0].viewController::varchar(255) AS viewController,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].message::varchar AS message,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].programmingLanguage::varchar AS programmingLanguage,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].className::varchar AS className,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].exceptionName::varchar AS exceptionName,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].isFatal::boolean AS isFatal,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].lineNumber::float AS lineNumber,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].stackTrace::varchar AS stackTrace,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].threadId::int AS threadId,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].threadName::varchar AS threadName\n\n from prep\n\n )\n\n select\n app_id,\n platform,\n etl_tstamp,\n collector_tstamp,\n dvce_created_tstamp,\n event,\n event_id,\n txn_id,\n name_tracker,\n v_tracker,\n v_collector,\n v_etl,\n user_id,\n user_ipaddress,\n user_fingerprint,\n domain_userid,\n domain_sessionidx,\n network_userid,\n geo_country,\n geo_region,\n geo_city,\n geo_zipcode,\n geo_latitude,\n geo_longitude,\n geo_region_name,\n ip_isp,\n ip_organization,\n ip_domain,\n ip_netspeed,\n page_url,\n page_title,\n page_referrer,\n page_urlscheme,\n page_urlhost,\n page_urlport,\n page_urlpath,\n page_urlquery,\n page_urlfragment,\n refr_urlscheme,\n refr_urlhost,\n refr_urlport,\n refr_urlpath,\n refr_urlquery,\n refr_urlfragment,\n refr_medium,\n refr_source,\n refr_term,\n mkt_medium,\n mkt_source,\n mkt_term,\n mkt_content,\n mkt_campaign,\n se_category,\n se_action,\n se_label,\n se_property,\n se_value,\n tr_orderid,\n tr_affiliation,\n tr_total,\n tr_tax,\n tr_shipping,\n tr_city,\n tr_state,\n tr_country,\n ti_orderid,\n ti_sku,\n ti_name,\n ti_category,\n ti_price,\n ti_quantity,\n pp_xoffset_min,\n pp_xoffset_max,\n pp_yoffset_min,\n pp_yoffset_max,\n useragent,\n br_name,\n br_family,\n br_version,\n br_type,\n br_renderengine,\n br_lang,\n br_features_pdf,\n br_features_flash,\n br_features_java,\n br_features_director,\n br_features_quicktime,\n br_features_realplayer,\n br_features_windowsmedia,\n br_features_gears,\n br_features_silverlight,\n br_cookies,\n br_colordepth,\n br_viewwidth,\n br_viewheight,\n os_name,\n os_family,\n os_manufacturer,\n os_timezone,\n dvce_type,\n dvce_ismobile,\n dvce_screenwidth,\n dvce_screenheight,\n doc_charset,\n doc_width,\n doc_height,\n tr_currency,\n tr_total_base,\n tr_tax_base,\n tr_shipping_base,\n ti_currency,\n ti_price_base,\n base_currency,\n geo_timezone,\n mkt_clickid,\n mkt_network,\n etl_tags,\n dvce_sent_tstamp,\n refr_domain_userid,\n refr_dvce_tstamp,\n domain_sessionid,\n derived_tstamp,\n event_vendor,\n event_name,\n event_format,\n event_version,\n event_fingerprint,\n true_tstamp,\n load_tstamp,\n contexts_com_snowplowanalytics_snowplow_web_page_1,\n object_construct('basisForProcessing', basisForProcessing,'consentScopes', consentScopes, 'consentUrl', consentUrl, 'consentVersion', consentVersion, 'domainsApplied', domainsApplied, 'eventType', eventType, 'gdprApplies', gdprApplies) as unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1,\n object_construct_keep_null('elapsedTime', elapsedTime) as unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1,\n contexts_com_iab_snowplow_spiders_and_robots_1,\n contexts_com_snowplowanalytics_snowplow_ua_parser_context_1,\n contexts_nl_basjes_yauaa_context_1,\n object_construct('id',id,'name',name,'previousId',previousId,'previousName',previousName,'previousType',previousType,'transitionType',transitionType,'type',type) as unstruct_event_com_snowplowanalytics_mobile_screen_view_1,\n parse_json('[{\"sessionId\":\"'||sessionId||'\",\"userId\":\"'||userId||'\", \"sessionIndex\":\"'||sessionIndex||'\", \"firstEventId\":\"'||firstEventId||'\", \"previousSessionId\":\"'||previousSessionId||'\", \"eventIndex\":\"'||eventIndex||'\", \"storageMechanism\":\"'||storageMechanism||'\", \"firstEventTimestamp\":\"'||firstEventTimestamp||'\"}]' ) as contexts_com_snowplowanalytics_snowplow_client_session_1,\n to_variant([OBJECT_CONSTRUCT_KEEP_NULL('latitude', latitude, 'longitude', longitude, 'latitudeLongitudeAccuracy', latitudeLongitudeAccuracy, 'altitude', altitude, 'altitudeAccuracy', altitudeAccuracy, 'bearing', bearing,'speed', speed,'timestamp', timestamp)]) as contexts_com_snowplowanalytics_snowplow_geolocation_context_1,\n contexts_com_snowplowanalytics_mobile_application_1,\n contexts_com_snowplowanalytics_mobile_deep_link_1,\n parse_json('[{\"viewport\":\"'||viewport||'\", \"documentSize\":\"'||documentSize||'\", \"resolution\":\"'||resolution||'\", \"colorDepth\":\"'||colorDepth||'\", \"devicePixelRatio\":\"'||devicePixelRatio||'\", \"cookiesEnabled\":\"'||cookiesEnabled||'\", \"online\":\"'||online||'\", \"browserLanguage\":\"'||browserLanguage||'\",\"documentLanguage\":\"'||documentLanguage||'\", \"webdriver\":\"'||webdriver||'\", \"deviceMemory\":\"'||deviceMemory||'\", \"hardwareConcurrency\":\"'||hardwareConcurrency||'\", \"tabId\":\"'||tabId||'\"}]' ) as contexts_com_snowplowanalytics_snowplow_browser_context_1,\n parse_json('[{\"deviceManufacturer\":\"'||deviceManufacturer||'\", \"deviceModel\":\"'||deviceModel||'\", \"osType\":\"'||osType||'\", \"osVersion\":\"'||osVersion||'\", \"androidIdfa\":\"'||androidIdfa||'\", \"appleIdfa\":\"'||appleIdfa||'\", \"appleIdfv\":\"'||appleIdfv||'\", \"carrier\":\"'||carrier||'\", \"openIdfa\":\"'||openIdfa||'\", \"networkTechnology\":\"'||networkTechnology||'\", \"networkType\":\"'||networkType||'\", \"physicalMemory\":\"'||physicalMemory||'\", \"systemAvailableMemory\":\"'||systemAvailableMemory||'\", \"appAvailableMemory\":\"'||appAvailableMemory||'\", \"batteryLevel\":\"'||batteryLevel||'\", \"batteryState\":\"'||batteryState||'\", \"lowPowerMode\":\"'||lowPowerMode||'\", \"availableStorage\":\"'||availableStorage||'\", \"isPortrait\":\"'||isPortrait||'\", \"totalStorage\":\"'||totalStorage||'\", \"resolution\":\"'||resolution2||'\", \"scale\":\"'||scale||'\", \"language\":\"'||language||'\", \"appSetId\":\"'||appSetId||'\", \"appSetIdScope\":\"'||appSetIdScope||'\"}]' ) as contexts_com_snowplowanalytics_snowplow_mobile_context_1,\n parse_json('[{\"id\":\"'||id2||'\", \"name\":\"'||name2||'\", \"activity\":\"'||activity||'\", \"fragment\":\"'||fragment||'\", \"topViewController\":\"'||topViewController||'\", \"type\":\"'||type2||'\", \"viewController\":\"'||viewController||'\"}]' ) as contexts_com_snowplowanalytics_mobile_screen_1,\n object_construct('message', message,'programmingLanguage', programmingLanguage, 'className', className, 'exceptionName', exceptionName, 'isFatal', isFatal, 'lineNumber', lineNumber, 'stackTrace', stackTrace, 'threadId', threadId, 'threadName', threadName) as unstruct_event_com_snowplowanalytics_snowplow_application_error_1\n\n from flatten\n\n{% elif var(\"snowplow__enable_screen_summary_context\", false) %}\n\n select\n *,\n\n parse_json(unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0) as unstruct_event_com_snowplowanalytics_mobile_screen_view_1,\n parse_json(unstruct_event_com_snowplowanalytics_snowplow_application_background_1_0_0) as unstruct_event_com_snowplowanalytics_snowplow_application_background_1,\n parse_json(unstruct_event_com_snowplowanalytics_snowplow_application_foreground_1_0_0) as unstruct_event_com_snowplowanalytics_snowplow_application_foreground_1,\n parse_json(contexts_com_snowplowanalytics_snowplow_client_session_1_0_2) as contexts_com_snowplowanalytics_snowplow_client_session_1,\n parse_json(contexts_com_snowplowanalytics_mobile_application_lifecycle_1_0_0) as contexts_com_snowplowanalytics_mobile_application_lifecycle_1,\n parse_json(contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_3) as contexts_com_snowplowanalytics_snowplow_mobile_context_1,\n parse_json(contexts_com_snowplowanalytics_mobile_application_1_0_0) as contexts_com_snowplowanalytics_mobile_application_1,\n parse_json(contexts_com_snowplowanalytics_mobile_screen_1_0_0) as contexts_com_snowplowanalytics_mobile_screen_1,\n parse_json(contexts_com_snowplowanalytics_mobile_screen_summary_1_0_0) as contexts_com_snowplowanalytics_mobile_screen_summary_1,\n parse_json(contexts_com_snowplowanalytics_iglu_anything_a_1_0_0) as contexts_com_snowplowanalytics_iglu_anything_a_1,\n parse_json(contexts_com_snowplowanalytics_snowplow_ecommerce_user_1_0_0) as contexts_com_snowplowanalytics_snowplow_ecommerce_user_1,\n parse_json(contexts_com_snowplowanalytics_snowplow_gdpr_1_0_0) as contexts_com_snowplowanalytics_snowplow_gdpr_1\n\n from {{ ref('snowplow_unified_screen_engagement_events') }}\n\n{% else %}\n\n -- page view context is given as json string in csv. Parse json\n\n with prep as (\n select\n *,\n parse_json(contexts_com_snowplowanalytics_snowplow_web_page_1_0_0) as contexts_com_snowplowanalytics_snowplow_web_page_1,\n parse_json(unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1_0_0) as unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1,\n parse_json(contexts_nl_basjes_yauaa_context_1_0_0) as contexts_nl_basjes_yauaa_context_1,\n parse_json(contexts_com_iab_snowplow_spiders_and_robots_1_0_0) as contexts_com_iab_snowplow_spiders_and_robots_1\n from {{ ref('snowplow_unified_web_vital_events') }}\n\n )\n\n , flatten as (\n select\n *,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].lcp as lcp,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].fcp as fcp,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].fid as fid,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].cls as cls,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].inp as inp,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].ttfb as ttfb,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].navigation_type as navigationType,\n contexts_nl_basjes_yauaa_context_1[0].device_class as deviceClass,\n contexts_nl_basjes_yauaa_context_1[0].agent_class as agentClass,\n contexts_nl_basjes_yauaa_context_1[0].agent_name as agentName,\n contexts_nl_basjes_yauaa_context_1[0].agent_name_version as agentNameVersion,\n contexts_nl_basjes_yauaa_context_1[0].agent_name_version_major as agentNameVersionMajor,\n contexts_nl_basjes_yauaa_context_1[0].agent_version as agentVersion,\n contexts_nl_basjes_yauaa_context_1[0].agent_version_major as agentVersionMajor,\n contexts_nl_basjes_yauaa_context_1[0].device_brand as deviceBrand,\n contexts_nl_basjes_yauaa_context_1[0].device_name as deviceName,\n contexts_nl_basjes_yauaa_context_1[0].device_version as deviceVersion,\n contexts_nl_basjes_yauaa_context_1[0].layout_engine_class as layoutEngineClass,\n contexts_nl_basjes_yauaa_context_1[0].layout_engine_name as layoutEngineName,\n contexts_nl_basjes_yauaa_context_1[0].layout_engine_name_version as layoutEngineNameVersion,\n contexts_nl_basjes_yauaa_context_1[0].layout_engine_name_version_major as layoutEngineNameVersionMajor,\n contexts_nl_basjes_yauaa_context_1[0].layout_engine_version as layoutEngineVersion,\n contexts_nl_basjes_yauaa_context_1[0].layout_engine_version_major as layoutEngineVersionMajor,\n contexts_nl_basjes_yauaa_context_1[0].operating_system_class as operatingSystemClass,\n contexts_nl_basjes_yauaa_context_1[0].operating_system_name as operatingSystemName,\n contexts_nl_basjes_yauaa_context_1[0].operating_system_name_version as operatingSystemNameVersion,\n contexts_nl_basjes_yauaa_context_1[0].operating_system_version as operatingSystemVersion,\n contexts_com_iab_snowplow_spiders_and_robots_1[0].category as category,\n contexts_com_iab_snowplow_spiders_and_robots_1[0].primary_impact as primaryImpact,\n contexts_com_iab_snowplow_spiders_and_robots_1[0].reason as reason,\n contexts_com_iab_snowplow_spiders_and_robots_1[0].spider_or_robot as spiderOrRobot\n\n from prep\n\n )\n\n select\n app_id,\n platform,\n etl_tstamp,\n collector_tstamp,\n dvce_created_tstamp,\n event,\n event_id,\n txn_id,\n name_tracker,\n v_tracker,\n v_collector,\n v_etl,\n user_id,\n user_ipaddress,\n user_fingerprint,\n domain_userid,\n domain_sessionidx,\n network_userid,\n geo_country,\n geo_region,\n geo_city,\n geo_zipcode,\n geo_latitude,\n geo_longitude,\n geo_region_name,\n ip_isp,\n ip_organization,\n ip_domain,\n ip_netspeed,\n page_url,\n page_title,\n page_referrer,\n page_urlscheme,\n page_urlhost,\n page_urlport,\n page_urlpath,\n page_urlquery,\n page_urlfragment,\n refr_urlscheme,\n refr_urlhost,\n refr_urlport,\n refr_urlpath,\n refr_urlquery,\n refr_urlfragment,\n refr_medium,\n refr_source,\n refr_term,\n mkt_medium,\n mkt_source,\n mkt_term,\n mkt_content,\n mkt_campaign,\n se_category,\n se_action,\n se_label,\n se_property,\n se_value,\n tr_orderid,\n tr_affiliation,\n tr_total,\n tr_tax,\n tr_shipping,\n tr_city,\n tr_state,\n tr_country,\n ti_orderid,\n ti_sku,\n ti_name,\n ti_category,\n ti_price,\n ti_quantity,\n pp_xoffset_min,\n pp_xoffset_max,\n pp_yoffset_min,\n pp_yoffset_max,\n useragent,\n br_name,\n br_family,\n br_version,\n br_type,\n br_renderengine,\n br_lang,\n br_features_pdf,\n br_features_flash,\n br_features_java,\n br_features_director,\n br_features_quicktime,\n br_features_realplayer,\n br_features_windowsmedia,\n br_features_gears,\n br_features_silverlight,\n br_cookies,\n br_colordepth,\n br_viewwidth,\n br_viewheight,\n os_name,\n os_family,\n os_manufacturer,\n os_timezone,\n dvce_type,\n dvce_ismobile,\n dvce_screenwidth,\n dvce_screenheight,\n doc_charset,\n doc_width,\n doc_height,\n tr_currency,\n tr_total_base,\n tr_tax_base,\n tr_shipping_base,\n ti_currency,\n ti_price_base,\n base_currency,\n geo_timezone,\n mkt_clickid,\n mkt_network,\n etl_tags,\n dvce_sent_tstamp,\n refr_domain_userid,\n refr_dvce_tstamp,\n domain_sessionid,\n derived_tstamp,\n event_vendor,\n event_name,\n event_format,\n event_version,\n event_fingerprint,\n true_tstamp,\n load_tstamp,\n contexts_com_snowplowanalytics_snowplow_web_page_1,\n object_construct('cls', cls, 'fcp', fcp, 'fid', fid, 'inp', inp, 'lcp', lcp, 'navigationType', navigationType, 'ttfb', ttfb) as unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1,\n parse_json('[{\"deviceClass\":\"'||deviceClass||'\", \"agentClass\":\"'||agentClass||'\", \"agentName\":\"'||agentName||'\", \"agentNameVersion\":\"'||agentNameVersion||'\", \"agentNameVersionMajor\":\"'||agentNameVersionMajor||'\", \"agentVersion\":\"'||agentVersion||'\", \"agentVersionMajor\":\"'||agentVersionMajor||'\", \"deviceBrand\":\"'||deviceBrand||'\", \"deviceName\":\"'||deviceName||'\", \"deviceVersion\":\"'||deviceVersion||'\", \"layoutEngineClass\":\"'||layoutEngineClass||'\", \"layoutEngineName\":\"'||layoutEngineName||'\", \"layoutEngineNameVersion\":\"'||layoutEngineNameVersion||'\", \"layoutEngineNameVersionMajor\":\"'||layoutEngineNameVersionMajor||'\", \"layoutEngineVersion\":\"'||layoutEngineVersion||'\", \"layoutEngineVersionMajor\":\"'||layoutEngineVersionMajor||'\", \"operatingSystemClass\":\"'||operatingSystemClass||'\", \"operatingSystemName\":\"'||operatingSystemName||'\", \"operatingSystemNameVersion\":\"'||operatingSystemNameVersion||'\", \"operatingSystemVersion\":\"'||operatingSystemVersion||'\"}]') as contexts_nl_basjes_yauaa_context_1,\n parse_json('[{\"category\":\"'||category||'\", \"primaryImpact\":\"'||primaryImpact||'\", \"reason\":\"'||reason||'\", \"spiderOrRobot\":\"'||spiderOrRobot||'\"}]') as contexts_com_iab_snowplow_spiders_and_robots_1\n\nfrom flatten\n\n{% endif %}", "language": "sql", "refs": [{"name": "snowplow_unified_web_vital_events", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_events"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/source/snowflake/snowplow_unified_events_stg.sql", "compiled": true, "compiled_code": "\n\n\n\n\n -- page view context is given as json string in csv. Parse json\n\n with prep as (\n select\n *,\n parse_json(contexts_com_snowplowanalytics_snowplow_web_page_1_0_0) as contexts_com_snowplowanalytics_snowplow_web_page_1,\n parse_json(unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1_0_0) as unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1,\n parse_json(contexts_nl_basjes_yauaa_context_1_0_0) as contexts_nl_basjes_yauaa_context_1,\n parse_json(contexts_com_iab_snowplow_spiders_and_robots_1_0_0) as contexts_com_iab_snowplow_spiders_and_robots_1\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_web_vital_events\n\n )\n\n , flatten as (\n select\n *,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].lcp as lcp,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].fcp as fcp,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].fid as fid,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].cls as cls,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].inp as inp,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].ttfb as ttfb,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].navigation_type as navigationType,\n contexts_nl_basjes_yauaa_context_1[0].device_class as deviceClass,\n contexts_nl_basjes_yauaa_context_1[0].agent_class as agentClass,\n contexts_nl_basjes_yauaa_context_1[0].agent_name as agentName,\n contexts_nl_basjes_yauaa_context_1[0].agent_name_version as agentNameVersion,\n contexts_nl_basjes_yauaa_context_1[0].agent_name_version_major as agentNameVersionMajor,\n contexts_nl_basjes_yauaa_context_1[0].agent_version as agentVersion,\n contexts_nl_basjes_yauaa_context_1[0].agent_version_major as agentVersionMajor,\n contexts_nl_basjes_yauaa_context_1[0].device_brand as deviceBrand,\n contexts_nl_basjes_yauaa_context_1[0].device_name as deviceName,\n contexts_nl_basjes_yauaa_context_1[0].device_version as deviceVersion,\n contexts_nl_basjes_yauaa_context_1[0].layout_engine_class as layoutEngineClass,\n contexts_nl_basjes_yauaa_context_1[0].layout_engine_name as layoutEngineName,\n contexts_nl_basjes_yauaa_context_1[0].layout_engine_name_version as layoutEngineNameVersion,\n contexts_nl_basjes_yauaa_context_1[0].layout_engine_name_version_major as layoutEngineNameVersionMajor,\n contexts_nl_basjes_yauaa_context_1[0].layout_engine_version as layoutEngineVersion,\n contexts_nl_basjes_yauaa_context_1[0].layout_engine_version_major as layoutEngineVersionMajor,\n contexts_nl_basjes_yauaa_context_1[0].operating_system_class as operatingSystemClass,\n contexts_nl_basjes_yauaa_context_1[0].operating_system_name as operatingSystemName,\n contexts_nl_basjes_yauaa_context_1[0].operating_system_name_version as operatingSystemNameVersion,\n contexts_nl_basjes_yauaa_context_1[0].operating_system_version as operatingSystemVersion,\n contexts_com_iab_snowplow_spiders_and_robots_1[0].category as category,\n contexts_com_iab_snowplow_spiders_and_robots_1[0].primary_impact as primaryImpact,\n contexts_com_iab_snowplow_spiders_and_robots_1[0].reason as reason,\n contexts_com_iab_snowplow_spiders_and_robots_1[0].spider_or_robot as spiderOrRobot\n\n from prep\n\n )\n\n select\n app_id,\n platform,\n etl_tstamp,\n collector_tstamp,\n dvce_created_tstamp,\n event,\n event_id,\n txn_id,\n name_tracker,\n v_tracker,\n v_collector,\n v_etl,\n user_id,\n user_ipaddress,\n user_fingerprint,\n domain_userid,\n domain_sessionidx,\n network_userid,\n geo_country,\n geo_region,\n geo_city,\n geo_zipcode,\n geo_latitude,\n geo_longitude,\n geo_region_name,\n ip_isp,\n ip_organization,\n ip_domain,\n ip_netspeed,\n page_url,\n page_title,\n page_referrer,\n page_urlscheme,\n page_urlhost,\n page_urlport,\n page_urlpath,\n page_urlquery,\n page_urlfragment,\n refr_urlscheme,\n refr_urlhost,\n refr_urlport,\n refr_urlpath,\n refr_urlquery,\n refr_urlfragment,\n refr_medium,\n refr_source,\n refr_term,\n mkt_medium,\n mkt_source,\n mkt_term,\n mkt_content,\n mkt_campaign,\n se_category,\n se_action,\n se_label,\n se_property,\n se_value,\n tr_orderid,\n tr_affiliation,\n tr_total,\n tr_tax,\n tr_shipping,\n tr_city,\n tr_state,\n tr_country,\n ti_orderid,\n ti_sku,\n ti_name,\n ti_category,\n ti_price,\n ti_quantity,\n pp_xoffset_min,\n pp_xoffset_max,\n pp_yoffset_min,\n pp_yoffset_max,\n useragent,\n br_name,\n br_family,\n br_version,\n br_type,\n br_renderengine,\n br_lang,\n br_features_pdf,\n br_features_flash,\n br_features_java,\n br_features_director,\n br_features_quicktime,\n br_features_realplayer,\n br_features_windowsmedia,\n br_features_gears,\n br_features_silverlight,\n br_cookies,\n br_colordepth,\n br_viewwidth,\n br_viewheight,\n os_name,\n os_family,\n os_manufacturer,\n os_timezone,\n dvce_type,\n dvce_ismobile,\n dvce_screenwidth,\n dvce_screenheight,\n doc_charset,\n doc_width,\n doc_height,\n tr_currency,\n tr_total_base,\n tr_tax_base,\n tr_shipping_base,\n ti_currency,\n ti_price_base,\n base_currency,\n geo_timezone,\n mkt_clickid,\n mkt_network,\n etl_tags,\n dvce_sent_tstamp,\n refr_domain_userid,\n refr_dvce_tstamp,\n domain_sessionid,\n derived_tstamp,\n event_vendor,\n event_name,\n event_format,\n event_version,\n event_fingerprint,\n true_tstamp,\n load_tstamp,\n contexts_com_snowplowanalytics_snowplow_web_page_1,\n object_construct('cls', cls, 'fcp', fcp, 'fid', fid, 'inp', inp, 'lcp', lcp, 'navigationType', navigationType, 'ttfb', ttfb) as unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1,\n parse_json('[{\"deviceClass\":\"'||deviceClass||'\", \"agentClass\":\"'||agentClass||'\", \"agentName\":\"'||agentName||'\", \"agentNameVersion\":\"'||agentNameVersion||'\", \"agentNameVersionMajor\":\"'||agentNameVersionMajor||'\", \"agentVersion\":\"'||agentVersion||'\", \"agentVersionMajor\":\"'||agentVersionMajor||'\", \"deviceBrand\":\"'||deviceBrand||'\", \"deviceName\":\"'||deviceName||'\", \"deviceVersion\":\"'||deviceVersion||'\", \"layoutEngineClass\":\"'||layoutEngineClass||'\", \"layoutEngineName\":\"'||layoutEngineName||'\", \"layoutEngineNameVersion\":\"'||layoutEngineNameVersion||'\", \"layoutEngineNameVersionMajor\":\"'||layoutEngineNameVersionMajor||'\", \"layoutEngineVersion\":\"'||layoutEngineVersion||'\", \"layoutEngineVersionMajor\":\"'||layoutEngineVersionMajor||'\", \"operatingSystemClass\":\"'||operatingSystemClass||'\", \"operatingSystemName\":\"'||operatingSystemName||'\", \"operatingSystemNameVersion\":\"'||operatingSystemNameVersion||'\", \"operatingSystemVersion\":\"'||operatingSystemVersion||'\"}]') as contexts_nl_basjes_yauaa_context_1,\n parse_json('[{\"category\":\"'||category||'\", \"primaryImpact\":\"'||primaryImpact||'\", \"reason\":\"'||reason||'\", \"spiderOrRobot\":\"'||spiderOrRobot||'\"}]') as contexts_com_iab_snowplow_spiders_and_robots_1\n\nfrom flatten\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "seed.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_cmp_stats_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_consent_cmp_stats_expected.csv", "original_file_path": "data/expected/snowplow_unified_consent_cmp_stats_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_consent_cmp_stats_expected"], "alias": "snowplow_unified_consent_cmp_stats_expected", "checksum": {"name": "sha256", "checksum": "6ff7ad053ef3afcb63676d3d114109728ca9c3364acb5ffbf12934b318940345"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"event_id": "varchar", "domain_userid": "varchar", "page_view_id": "varchar", "domain_sessionid": "varchar", "cmp_load_time": "float", "cmp_tstamp": "timestamp", "first_consent_event_tstamp": "timestamp", "first_consent_event_type": "varchar", "cmp_interaction_time": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "column_types": {"event_id": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "domain_userid": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "page_view_id": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "domain_sessionid": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "cmp_load_time": "float", "cmp_tstamp": "timestamp", "first_consent_event_tstamp": "timestamp", "first_consent_event_type": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "cmp_interaction_time": "float"}}, "created_at": 1706612341.4248588, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_cmp_stats_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_scope_status_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_consent_scope_status_expected.csv", "original_file_path": "data/expected/snowplow_unified_consent_scope_status_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_consent_scope_status_expected"], "alias": "snowplow_unified_consent_scope_status_expected", "checksum": {"name": "sha256", "checksum": "604e19742bd6ca1e4dfdac121b5a63ca45185fd94c600ceb9f3a5582a93847e9"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"scope": "varchar", "total": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "column_types": {"scope": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "total": "integer"}}, "created_at": 1706612341.4286265, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_scope_status_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_totals_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_consent_totals_expected.csv", "original_file_path": "data/expected/snowplow_unified_consent_totals_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_consent_totals_expected"], "alias": "snowplow_unified_consent_totals_expected", "checksum": {"name": "sha256", "checksum": "992dde1e98160dca5debc3fdffb9af278176323cc5092a6f11dad072156afb76"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"consent_version": "varchar", "version_start_tstamp": "timestamp", "consent_scopes": "varchar", "consent_url": "varchar", "domains_applied": "varchar", "is_latest_version": "boolean", "last_allow_all_event": "timestamp", "total_visitors": "integer", "allow_all": "integer", "allow_selected": "integer", "allow": "integer", "pending": "integer", "denied": "integer", "expired": "integer", "withdrawn": "integer", "implicit_consent": "integer", "expires_in_six_months": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "column_types": {"consent_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "version_start_tstamp": "timestamp", "consent_scopes": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "consent_url": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "domains_applied": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "is_latest_version": "boolean", "last_allow_all_event": "timestamp", "total_visitors": "integer", "allow_all": "integer", "allow_selected": "integer", "allow": "integer", "pending": "integer", "denied": "integer", "expired": "integer", "withdrawn": "integer", "implicit_consent": "integer", "expires_in_six_months": "integer"}}, "created_at": 1706612341.4318228, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_totals_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_versions_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_consent_versions_expected.csv", "original_file_path": "data/expected/snowplow_unified_consent_versions_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_consent_versions_expected"], "alias": "snowplow_unified_consent_versions_expected", "checksum": {"name": "sha256", "checksum": "85e10a035eed4d7616e5eb3417eb33eb2f82bf6986b55218720df04c41688696"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"consent_version": "varchar", "version_start_tstamp": "timestamp", "consent_scopes": "varchar", "consent_url": "varchar", "domains_applied": "varchar", "is_latest_version": "boolean", "last_allow_all_event": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "column_types": {"consent_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "version_start_tstamp": "timestamp", "consent_scopes": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "consent_url": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "domains_applied": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "is_latest_version": "boolean", "last_allow_all_event": "timestamp"}}, "created_at": 1706612341.4349613, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_versions_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_users_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_consent_users_expected.csv", "original_file_path": "data/expected/snowplow_unified_consent_users_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_consent_users_expected"], "alias": "snowplow_unified_consent_users_expected", "checksum": {"name": "sha256", "checksum": "758adfb2bda61b8a52f496b608a1b94be48317af851d1bbc254fb0c83309a371"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"domain_userid": "varchar", "user_id": "varchar", "geo_country": "varchar", "cmp_events": "integer", "consent_events": "integer", "last_cmp_event_tstamp": "timestamp", "last_consent_event_tstamp": "timestamp", "last_consent_event_type": "varchar", "last_consent_scopes": "varchar", "last_consent_version": "varchar", "last_consent_url": "varchar", "last_domains_applied": "varchar", "last_processed_event": "timestamp", "is_latest_version": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "column_types": {"domain_userid": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "user_id": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "geo_country": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "cmp_events": "integer", "consent_events": "integer", "last_cmp_event_tstamp": "timestamp", "last_consent_event_tstamp": "timestamp", "last_consent_event_type": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "last_consent_scopes": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "last_consent_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "last_consent_url": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "last_domains_applied": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "last_processed_event": "timestamp", "is_latest_version": "boolean"}}, "created_at": 1706612341.4380677, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_users_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_views_expected": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_views_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_views_expected.csv", "original_file_path": "data/expected/snowplow_unified_views_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_views_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_views_expected"], "alias": "snowplow_unified_views_expected", "checksum": {"name": "sha256", "checksum": "fd3f8c7ce74100c1138b8939062ff2d51dc36b8ea75febbf5be53e0f207ea456"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"app_id": "varchar", "horizontal_percentage_scrolled": "float", "vertical_percentage_scrolled": "float", "dvce_created_tstamp": "timestamp", "collector_tstamp": "timestamp", "derived_tstamp": "timestamp", "start_tstamp": "timestamp", "end_tstamp": "timestamp", "page_urlfragment": "varchar", "mkt_term": "varchar", "mkt_content": "varchar", "refr_urlfragment": "varchar", "refr_medium": "varchar", "refr_source": "varchar", "refr_term": "varchar", "br_colordepth": "varchar", "br_renderengine": "varchar", "category": "varchar", "primary_impact": "varchar", "reason": "varchar", "spider_or_robot": "boolean", "useragent_family": "varchar", "useragent_major": "varchar", "useragent_minor": "varchar", "useragent_patch": "varchar", "useragent_version": "varchar", "os_family": "varchar", "os_major": "varchar", "os_minor": "varchar", "os_patch": "varchar", "os_patch_minor": "varchar", "os_version": "varchar", "device_family": "varchar", "device_class": "varchar", "agent_class": "varchar", "agent_name": "varchar", "agent_name_version": "varchar", "agent_name_version_major": "varchar", "agent_version": "varchar", "agent_version_major": "varchar", "device_brand": "varchar", "device_name": "varchar", "device_version": "varchar", "layout_engine_class": "varchar", "layout_engine_name": "varchar", "layout_engine_name_version": "varchar", "layout_engine_name_version_major": "varchar", "layout_engine_version": "varchar", "layout_engine_version_major": "varchar", "operating_system_class": "varchar", "operating_system_name": "varchar", "operating_system_name_version": "varchar", "operating_system_version": "varchar", "geo_longitude": "float", "geo_latitude": "float", "mobile__scale": "float", "absolute_time_in_s": "float", "geo__altitude": "float", "geo__altitude_accuracy": "float", "geo__bearing": "float", "geo__latitude": "float", "geo__latitude_longitude_accuracy": "float", "geo__longitude": "float", "geo__speed": "float", "mobile__low_power_mode": "boolean", "mobile__is_portrait": "boolean", "iab__spider_or_robot": "boolean", "stitched_user_id": "varchar", "mobile__total_storage": "integer", "mobile__os_version": "varchar", "mobile__available_storage": "integer", "yauaa__agent_version": "varchar", "yauaa__agent_version_major": "varchar", "yauaa__layout_engine_version": "varchar", "yauaa__layout_engine_version_major": "varchar", "ua__useragent_family": "varchar", "ua__useragent_major": "varchar", "ua__useragent_minor": "varchar", "ua__useragent_patch": "varchar", "ua__useragent_version": "varchar", "ua__os_family": "varchar", "ua__os_major": "varchar", "ua__os_minor": "varchar", "ua__os_patch": "varchar", "ua__os_patch_minor": "varchar", "ua__os_version": "varchar", "ua__device_family": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "column_types": {"app_id": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "horizontal_percentage_scrolled": "float", "vertical_percentage_scrolled": "float", "dvce_created_tstamp": "timestamp", "collector_tstamp": "timestamp", "derived_tstamp": "timestamp", "start_tstamp": "timestamp", "end_tstamp": "timestamp", "page_urlfragment": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mkt_term": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mkt_content": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_urlfragment": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_medium": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_source": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_term": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_colordepth": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_renderengine": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "category": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "primary_impact": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "reason": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "spider_or_robot": "boolean", "useragent_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "useragent_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "useragent_minor": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "useragent_patch": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "useragent_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "os_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "os_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "os_minor": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "os_patch": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "os_patch_minor": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "os_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "device_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "device_class": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "agent_class": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "agent_name": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "agent_name_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "agent_name_version_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "agent_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "agent_version_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "device_brand": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "device_name": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "device_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "layout_engine_class": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "layout_engine_name": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "layout_engine_name_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "layout_engine_name_version_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "layout_engine_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "layout_engine_version_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "operating_system_class": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "operating_system_name": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "operating_system_name_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "operating_system_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "geo_longitude": "{{ 'double' if target.type in ['databricks', 'spark'] else 'float' }}", "geo_latitude": "{{ 'double' if target.type in ['databricks', 'spark'] else 'float' }}", "mobile__scale": "float", "absolute_time_in_s": "float", "geo__altitude": "{{ 'double' if target.type in ['spark', 'databricks'] else 'float' }}", "geo__altitude_accuracy": "{{ 'double' if target.type in ['spark', 'databricks'] else 'float' }}", "geo__bearing": "{{ 'double' if target.type in ['spark', 'databricks'] else 'float' }}", "geo__latitude": "{{ 'double' if target.type in ['spark', 'databricks'] else 'float' }}", "geo__latitude_longitude_accuracy": "{{ 'double' if target.type in ['spark', 'databricks'] else 'float' }}", "geo__longitude": "{{ 'double' if target.type in ['spark', 'databricks'] else 'float' }}", "geo__speed": "{{ 'double' if target.type in ['spark', 'databricks'] else 'float' }}", "mobile__low_power_mode": "boolean", "mobile__is_portrait": "boolean", "iab__spider_or_robot": "boolean", "stitched_user_id": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mobile__total_storage": "{{ 'bigint' if target.type in ['postgres', 'spark', 'databricks', 'redshift'] else 'integer' }}", "mobile__os_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mobile__available_storage": "{{ 'bigint' if target.type in ['postgres', 'spark', 'databricks', 'redshift'] else 'integer' }}", "yauaa__agent_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "yauaa__agent_version_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "yauaa__layout_engine_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "yauaa__layout_engine_version_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_minor": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_patch": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_minor": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_patch": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_patch_minor": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__device_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}"}}, "created_at": 1706612341.4412289, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_views_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_users_expected": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_users_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_users_expected.csv", "original_file_path": "data/expected/snowplow_unified_users_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_users_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_users_expected"], "alias": "snowplow_unified_users_expected", "checksum": {"name": "sha256", "checksum": "51d047649895fcb2c329a2d99df01614cf4cbedcb8b96f911eff231d3f24bd3e"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"start_tstamp": "timestamp", "end_tstamp": "timestamp", "first_page_urlfragment": "varchar", "last_page_urlfragment": "varchar", "last_page_urlquery": "varchar", "refr_urlquery": "varchar", "refr_urlfragment": "varchar", "refr_medium": "varchar", "refr_source": "varchar", "refr_term": "varchar", "mkt_term": "varchar", "mkt_content": "varchar", "mobile__total_storage": "integer", "mobile__available_storage": "integer"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "column_types": {"start_tstamp": "timestamp", "end_tstamp": "timestamp", "first_page_urlfragment": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "last_page_urlfragment": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "last_page_urlquery": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_urlquery": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_urlfragment": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_medium": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_source": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_term": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mkt_term": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mkt_content": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mobile__total_storage": "{{ 'bigint' if target.type in ['postgres', 'spark', 'databricks', 'redshift'] else 'integer' }}", "mobile__available_storage": "{{ 'bigint' if target.type in ['postgres', 'spark', 'databricks', 'redshift'] else 'integer' }}"}}, "created_at": 1706612341.4448678, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_users_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_views_mobile_screen_engagement_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_views_mobile_screen_engagement_expected.csv", "original_file_path": "data/expected/snowplow_unified_views_mobile_screen_engagement_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_views_mobile_screen_engagement_expected"], "alias": "snowplow_unified_views_mobile_screen_engagement_expected", "checksum": {"name": "sha256", "checksum": "cd349d9f7ab2db4a1861d00e4eb984c3176c0aec9b07d181ee01906c116ff3c1"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests"}, "created_at": 1706612341.4478495, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_views_mobile_screen_engagement_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_log_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_consent_log_expected.csv", "original_file_path": "data/expected/snowplow_unified_consent_log_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_consent_log_expected"], "alias": "snowplow_unified_consent_log_expected", "checksum": {"name": "sha256", "checksum": "dc6d90bf82c0062a8f244339df27bfe38fbef1dd63a1be692397332dd3022481"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"event_id": "varchar", "domain_userid": "varchar", "user_id": "varchar", "geo_country": "varchar", "page_view_id": "varchar", "domain_sessionid": "varchar", "derived_tstamp": "timestamp", "load_tstamp": "timestamp", "event_name": "varchar", "event_type": "varchar", "basis_for_processing": "varchar", "consent_url": "varchar", "consent_version": "varchar", "consent_scopes": "varchar", "domains_applied": "varchar", "gdpr_applies": "boolean", "cmp_load_time": "float", "derived_tstamp_date": "date"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "column_types": {"event_id": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "domain_userid": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "user_id": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "geo_country": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "page_view_id": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "domain_sessionid": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "derived_tstamp": "timestamp", "load_tstamp": "timestamp", "event_name": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "event_type": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "basis_for_processing": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "consent_url": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "consent_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "consent_scopes": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "domains_applied": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "gdpr_applies": "boolean", "cmp_load_time": "float", "derived_tstamp_date": "date"}}, "created_at": 1706612341.4508138, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_log_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_base_quarantined_sessions_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowplow_unified_base_quarantined_sessions_expected.csv", "original_file_path": "data/expected/snowplow_unified_base_quarantined_sessions_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "snowplow_unified_base_quarantined_sessions_expected"], "alias": "snowplow_unified_base_quarantined_sessions_expected", "checksum": {"name": "sha256", "checksum": "88f40479ed0f31c11e1f4fa3cc0cb0cd302bf719b64cb7d58fbe3f06eab5b501"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests"}, "created_at": 1706612341.4537885, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_base_quarantined_sessions_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_web_vital_measurements_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowflake/snowplow_unified_web_vital_measurements_expected.csv", "original_file_path": "data/expected/snowflake/snowplow_unified_web_vital_measurements_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "snowflake", "snowplow_unified_web_vital_measurements_expected"], "alias": "snowplow_unified_web_vital_measurements_expected", "checksum": {"name": "sha256", "checksum": "72d92b5b00f535ef2456fb224285e0490fec4ccbc8be91aed7fba9552f210a1a"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type == 'snowflake' | as_bool() }}"}, "created_at": 1706612341.4567082, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_web_vital_measurements_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_sessions_expected": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_sessions_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/snowflake/snowplow_unified_sessions_expected.csv", "original_file_path": "data/expected/snowflake/snowplow_unified_sessions_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_sessions_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "snowflake", "snowplow_unified_sessions_expected"], "alias": "snowplow_unified_sessions_expected", "checksum": {"name": "sha256", "checksum": "b3428b8624dab36b80775db7fd5773a2f6f21b7056350611fb7525fdc8c84a04"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"app_id": "varchar", "start_tstamp": "timestamp", "end_tstamp": "timestamp", "is_engaged": "boolean", "first_page_urlfragment": "varchar", "last_page_urlfragment": "varchar", "refr_urlquery": "varchar", "refr_urlfragment": "varchar", "refr_medium": "varchar", "refr_source": "varchar", "refr_term": "varchar", "mkt_term": "varchar", "mkt_content": "varchar", "last_page_urlquery": "varchar", "br_renderengine": "varchar", "category": "varchar", "primary_impact": "varchar", "reason": "varchar", "spider_or_robot": "boolean", "useragent_family": "varchar", "useragent_major": "varchar", "useragent_minor": "varchar", "useragent_patch": "varchar", "useragent_version": "varchar", "os_family": "varchar", "os_major": "varchar", "os_minor": "varchar", "os_patch": "varchar", "os_patch_minor": "varchar", "os_version": "varchar", "device_family": "varchar", "device_class": "varchar", "agent_class": "varchar", "agent_name": "varchar", "agent_name_version": "varchar", "agent_name_version_major": "varchar", "agent_version": "varchar", "agent_version_major": "varchar", "device_brand": "varchar", "device_name": "varchar", "device_version": "varchar", "layout_engine_class": "varchar", "layout_engine_name": "varchar", "layout_engine_name_version": "varchar", "layout_engine_name_version_major": "varchar", "layout_engine_version": "varchar", "layout_engine_version_major": "varchar", "operating_system_class": "varchar", "operating_system_name": "varchar", "operating_system_name_version": "varchar", "operating_system_version": "varchar", "cv_view_page_volume": "integer", "cv_view_page_total": "float", "cv_view_page_first_conversion": "timestamp", "cv_view_page_converted": "boolean", "mobile__os_version": "varchar", "mobile__available_storage": "integer", "yauaa__agent_version": "varchar", "yauaa__agent_version_major": "varchar", "yauaa__layout_engine_version": "varchar", "yauaa__layout_engine_version_major": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type == 'snowflake' | as_bool() }}", "column_types": {"app_id": "varchar", "start_tstamp": "timestamp", "end_tstamp": "timestamp", "is_engaged": "boolean", "first_page_urlfragment": "varchar", "last_page_urlfragment": "varchar", "refr_urlquery": "varchar", "refr_urlfragment": "varchar", "refr_medium": "varchar", "refr_source": "varchar", "refr_term": "varchar", "mkt_term": "varchar", "mkt_content": "varchar", "last_page_urlquery": "varchar", "br_renderengine": "varchar", "category": "varchar", "primary_impact": "varchar", "reason": "varchar", "spider_or_robot": "boolean", "useragent_family": "varchar", "useragent_major": "varchar", "useragent_minor": "varchar", "useragent_patch": "varchar", "useragent_version": "varchar", "os_family": "varchar", "os_major": "varchar", "os_minor": "varchar", "os_patch": "varchar", "os_patch_minor": "varchar", "os_version": "varchar", "device_family": "varchar", "device_class": "varchar", "agent_class": "varchar", "agent_name": "varchar", "agent_name_version": "varchar", "agent_name_version_major": "varchar", "agent_version": "varchar", "agent_version_major": "varchar", "device_brand": "varchar", "device_name": "varchar", "device_version": "varchar", "layout_engine_class": "varchar", "layout_engine_name": "varchar", "layout_engine_name_version": "varchar", "layout_engine_name_version_major": "varchar", "layout_engine_version": "varchar", "layout_engine_version_major": "varchar", "operating_system_class": "varchar", "operating_system_name": "varchar", "operating_system_name_version": "varchar", "operating_system_version": "varchar", "cv_view_page_volume": "integer", "cv_view_page_total": "float", "cv_view_page_first_conversion": "timestamp", "cv_view_page_converted": "boolean", "mobile__os_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mobile__available_storage": "{{ 'bigint' if target.type in ['postgres', 'spark', 'databricks', 'redshift'] else 'integer' }}", "yauaa__agent_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "yauaa__agent_version_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "yauaa__layout_engine_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "yauaa__layout_engine_version_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}"}}, "created_at": 1706612341.4601183, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_sessions_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_cwv": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_cwv", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "source/snowplow_unified_cwv.csv", "original_file_path": "data/source/snowplow_unified_cwv.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_cwv", "fqn": ["snowplow_unified_integration_tests", "source", "snowplow_unified_cwv"], "alias": "snowplow_unified_cwv", "checksum": {"name": "sha256", "checksum": "f92a1da35f76296d5ad8a5a4aef2ffd64897a1eeb2ba4df3622199b1e5a570df"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests"}, "created_at": 1706612341.4832745, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_cwv", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_screen_engagement_events": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_screen_engagement_events", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "source/snowplow_unified_screen_engagement_events.csv", "original_file_path": "data/source/snowplow_unified_screen_engagement_events.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_screen_engagement_events", "fqn": ["snowplow_unified_integration_tests", "source", "snowplow_unified_screen_engagement_events"], "alias": "snowplow_unified_screen_engagement_events", "checksum": {"name": "sha256", "checksum": "8ec6d94ae7b7534d9e5e8138c6a5cc40bf93a7077b07dde419101ca80f4d837c"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"app_id": "varchar", "etl_tstamp": "timestamp", "collector_tstamp": "timestamp", "dvce_created_tstamp": "timestamp", "domain_sessionid": "varchar", "domain_userid": "varchar", "mkt_source": "varchar", "br_lang": "varchar", "mkt_medium": "varchar", "mkt_campaign": "varchar", "user_fingerprint": "varchar", "ip_isp": "varchar", "ip_organization": "varchar", "ip_domain": "varchar", "ip_netspeed": "varchar", "page_url": "varchar", "page_urlfragment": "varchar", "page_urlquery": "varchar", "user_id": "varchar", "geo_country": "varchar", "page_title": "varchar", "page_referrer": "varchar", "refr_device_tstamp": "timestamp", "refr_urlfragment": "varchar", "refr_medium": "varchar", "refr_source": "varchar", "refr_term": "varchar", "mkt_term": "varchar", "mkt_content": "varchar", "se_label": "varchar", "se_property": "varchar", "se_value": "float", "tr_orderid": "varchar", "tr_affiliation": "varchar", "tr_total": "float", "tr_tax": "float", "tr_shipping": "float", "tr_city": "varchar", "tr_state": "varchar", "tr_country": "varchar", "ti_orderid": "varchar", "ti_sku": "varchar", "ti_name": "varchar", "ti_category": "varchar", "ti_price": "float", "br_name": "varchar", "br_family": "varchar", "br_version": "varchar", "br_type": "varchar", "br_renderengine": "varchar", "br_colordepth": "varchar", "os_name": "varchar", "os_family": "varchar", "os_manufacturer": "varchar", "dvce_type": "varchar", "dvce_ismobile": "boolean", "tr_currency": "varchar", "tr_total_base": "float", "tr_tax_base": "float", "tr_shipping_base": "float", "ti_currency": "varchar", "ti_price_base": "float", "base_currency": "varchar", "etl_tags": "varchar", "dvce_sent_tstamp": "timestamp", "refr_domain_userid": "varchar", "refr_dvce_tstamp": "timestamp", "derived_tstamp": "timestamp", "true_tstamp": "timestamp", "load_tstamp": "timestamp", "unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0": "varchar(65535)", "contexts_com_snowplowanalytics_snowplow_client_session_1_0_2": "varchar(65535)", "contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_3": "varchar(65535)", "contexts_com_snowplowanalytics_mobile_application_1_0_0": "varchar(65535)", "contexts_com_snowplowanalytics_mobile_screen_1_0_0": "varchar(65535)", "contexts_com_snowplowanalytics_mobile_screen_summary_1_0_0": "varchar(65535)"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "column_types": {"app_id": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "etl_tstamp": "timestamp", "collector_tstamp": "timestamp", "dvce_created_tstamp": "timestamp", "domain_sessionid": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "domain_userid": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mkt_source": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_lang": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mkt_medium": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mkt_campaign": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "user_fingerprint": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ip_isp": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ip_organization": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ip_domain": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ip_netspeed": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "page_url": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "page_urlfragment": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "page_urlquery": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "user_id": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "geo_country": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "page_title": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "page_referrer": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_device_tstamp": "timestamp", "refr_urlfragment": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_medium": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_source": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_term": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mkt_term": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mkt_content": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "se_label": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "se_property": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "se_value": "float", "tr_orderid": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "tr_affiliation": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "tr_total": "float", "tr_tax": "float", "tr_shipping": "float", "tr_city": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "tr_state": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "tr_country": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_orderid": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_sku": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_name": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_category": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_price": "float", "br_name": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_type": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_renderengine": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_colordepth": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "os_name": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "os_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "os_manufacturer": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "dvce_type": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "dvce_ismobile": "boolean", "tr_currency": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "tr_total_base": "{{ 'decimal(9,1)' if target.type in ['databricks', 'spark'] else 'float' }}", "tr_tax_base": "float", "tr_shipping_base": "float", "ti_currency": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_price_base": "float", "base_currency": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "etl_tags": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "dvce_sent_tstamp": "timestamp", "refr_domain_userid": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_dvce_tstamp": "timestamp", "derived_tstamp": "timestamp", "true_tstamp": "timestamp", "load_tstamp": "timestamp", "unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar(65535)' }}", "contexts_com_snowplowanalytics_snowplow_client_session_1_0_2": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar(65535)' }}", "contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_3": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar(65535)' }}", "contexts_com_snowplowanalytics_mobile_application_1_0_0": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar(65535)' }}", "contexts_com_snowplowanalytics_mobile_screen_1_0_0": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar(65535)' }}", "contexts_com_snowplowanalytics_mobile_screen_summary_1_0_0": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar(65535)' }}"}}, "created_at": 1706612341.4894161, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_screen_engagement_events", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_session_context": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_session_context", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "source/snowplow_unified_session_context.csv", "original_file_path": "data/source/snowplow_unified_session_context.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_session_context", "fqn": ["snowplow_unified_integration_tests", "source", "snowplow_unified_session_context"], "alias": "snowplow_unified_session_context", "checksum": {"name": "sha256", "checksum": "88d51c4802dea41f8f26b62438164bb860ff46cd25fe7bf041da070450af35d6"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests"}, "created_at": 1706612341.4928968, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_session_context", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_events": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_events", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "source/snowplow_unified_events.csv", "original_file_path": "data/source/snowplow_unified_events.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_events", "fqn": ["snowplow_unified_integration_tests", "source", "snowplow_unified_events"], "alias": "snowplow_unified_events", "checksum": {"name": "sha256", "checksum": "1c9911be3e04656e16ee28847d15a5dda06ecbf2f7b50abfa44e8de95005e5dc"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"app_id": "varchar", "etl_tstamp": "timestamp", "collector_tstamp": "timestamp", "dvce_created_tstamp": "timestamp", "user_fingerprint": "varchar", "ip_isp": "varchar", "ip_organization": "varchar", "ip_domain": "varchar", "ip_netspeed": "varchar", "page_urlfragment": "varchar", "refr_urlfragment": "varchar", "refr_medium": "varchar", "refr_source": "varchar", "refr_term": "varchar", "mkt_term": "varchar", "mkt_content": "varchar", "se_label": "varchar", "se_property": "varchar", "se_value": "float", "tr_orderid": "varchar", "tr_affiliation": "varchar", "tr_total": "float", "tr_tax": "float", "tr_shipping": "float", "tr_city": "varchar", "tr_state": "varchar", "tr_country": "varchar", "ti_orderid": "varchar", "ti_sku": "varchar", "ti_name": "varchar", "ti_category": "varchar", "ti_price": "float", "br_name": "varchar", "br_family": "varchar", "br_version": "varchar", "br_type": "varchar", "br_renderengine": "varchar", "br_colordepth": "varchar", "os_name": "varchar", "os_family": "varchar", "os_manufacturer": "varchar", "dvce_type": "varchar", "dvce_ismobile": "boolean", "tr_currency": "varchar", "tr_total_base": "float", "tr_tax_base": "float", "tr_shipping_base": "float", "ti_currency": "varchar", "ti_price_base": "float", "base_currency": "varchar", "etl_tags": "varchar", "dvce_sent_tstamp": "timestamp", "refr_domain_userid": "varchar", "refr_dvce_tstamp": "timestamp", "derived_tstamp": "timestamp", "true_tstamp": "timestamp", "load_tstamp": "timestamp", "contexts_com_snowplowanalytics_snowplow_client_session_1_0_0": "varchar(65535)", "unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0": "varchar(65535)", "contexts_com_snowplowanalytics_snowplow_geolocation_context_1_0_0": "varchar(65535)"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "column_types": {"app_id": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "etl_tstamp": "timestamp", "collector_tstamp": "timestamp", "dvce_created_tstamp": "timestamp", "user_fingerprint": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ip_isp": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ip_organization": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ip_domain": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ip_netspeed": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "page_urlfragment": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_urlfragment": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_medium": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_source": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_term": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mkt_term": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mkt_content": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "se_label": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "se_property": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "se_value": "float", "tr_orderid": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "tr_affiliation": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "tr_total": "float", "tr_tax": "float", "tr_shipping": "float", "tr_city": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "tr_state": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "tr_country": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_orderid": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_sku": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_name": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_category": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_price": "float", "br_name": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_type": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_renderengine": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_colordepth": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "os_name": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "os_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "os_manufacturer": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "dvce_type": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "dvce_ismobile": "boolean", "tr_currency": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "tr_total_base": "{{ 'decimal(9,1)' if target.type in ['databricks', 'spark'] else 'float' }}", "tr_tax_base": "float", "tr_shipping_base": "float", "ti_currency": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_price_base": "float", "base_currency": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "etl_tags": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "dvce_sent_tstamp": "timestamp", "refr_domain_userid": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_dvce_tstamp": "timestamp", "derived_tstamp": "timestamp", "true_tstamp": "timestamp", "load_tstamp": "timestamp", "contexts_com_snowplowanalytics_snowplow_client_session_1_0_0": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar(65535)' }}", "unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar(65535)' }}", "contexts_com_snowplowanalytics_snowplow_geolocation_context_1_0_0": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar(65535)' }}"}}, "created_at": 1706612341.4959447, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_events", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_events": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_web_vital_events", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "source/snowplow_unified_web_vital_events.csv", "original_file_path": "data/source/snowplow_unified_web_vital_events.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_events", "fqn": ["snowplow_unified_integration_tests", "source", "snowplow_unified_web_vital_events"], "alias": "snowplow_unified_web_vital_events", "checksum": {"name": "path", "checksum": "data/source/snowplow_unified_web_vital_events.csv"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"app_id": "varchar", "etl_tstamp": "timestamp", "collector_tstamp": "timestamp", "dvce_created_tstamp": "timestamp", "user_fingerprint": "varchar", "ip_isp": "varchar", "ip_organization": "varchar", "ip_domain": "varchar", "ip_netspeed": "varchar", "page_urlfragment": "varchar", "refr_urlfragment": "varchar", "refr_medium": "varchar", "refr_source": "varchar", "refr_term": "varchar", "mkt_term": "varchar", "mkt_content": "varchar", "se_label": "varchar", "se_property": "varchar", "se_value": "float", "tr_orderid": "varchar", "tr_affiliation": "varchar", "tr_total": "float", "tr_tax": "float", "tr_shipping": "float", "tr_city": "varchar", "tr_state": "varchar", "tr_country": "varchar", "ti_orderid": "varchar", "ti_sku": "varchar", "ti_name": "varchar", "ti_category": "varchar", "ti_price": "float", "br_name": "varchar", "br_family": "varchar", "br_version": "varchar", "br_type": "varchar", "br_renderengine": "varchar", "br_colordepth": "varchar", "os_name": "varchar", "os_family": "varchar", "os_manufacturer": "varchar", "dvce_type": "varchar", "dvce_ismobile": "boolean", "tr_currency": "varchar", "tr_total_base": "float", "tr_tax_base": "float", "tr_shipping_base": "float", "ti_currency": "varchar", "ti_price_base": "float", "base_currency": "varchar", "etl_tags": "varchar", "dvce_sent_tstamp": "timestamp", "refr_domain_userid": "varchar", "refr_dvce_tstamp": "timestamp", "derived_tstamp": "timestamp", "true_tstamp": "timestamp", "load_tstamp": "timestamp", "event_name": "varchar", "user_id": "varchar", "mkt_source": "varchar", "br_lang": "varchar", "mkt_medium": "varchar", "mkt_campaign": "varchar", "unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1_0_0": "varchar", "unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1_0_0": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "column_types": {"app_id": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "etl_tstamp": "timestamp", "collector_tstamp": "timestamp", "dvce_created_tstamp": "timestamp", "user_fingerprint": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ip_isp": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ip_organization": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ip_domain": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ip_netspeed": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "page_urlfragment": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_urlfragment": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_medium": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_source": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_term": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mkt_term": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mkt_content": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "se_label": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "se_property": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "se_value": "float", "tr_orderid": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "tr_affiliation": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "tr_total": "float", "tr_tax": "float", "tr_shipping": "float", "tr_city": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "tr_state": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "tr_country": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_orderid": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_sku": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_name": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_category": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_price": "float", "br_name": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_type": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_renderengine": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_colordepth": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "os_name": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "os_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "os_manufacturer": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "dvce_type": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "dvce_ismobile": "boolean", "tr_currency": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "tr_total_base": "float", "tr_tax_base": "float", "tr_shipping_base": "float", "ti_currency": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ti_price_base": "float", "base_currency": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "etl_tags": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "dvce_sent_tstamp": "timestamp", "refr_domain_userid": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "refr_dvce_tstamp": "timestamp", "derived_tstamp": "timestamp", "true_tstamp": "timestamp", "load_tstamp": "timestamp", "event_name": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "user_id": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mkt_source": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "br_lang": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mkt_medium": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mkt_campaign": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1_0_0": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1_0_0": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}"}}, "created_at": 1706612341.4992194, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_web_vital_events", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_visible": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_cmp_visible", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "source/snowplow_unified_consent_cmp_visible.csv", "original_file_path": "data/source/snowplow_unified_consent_cmp_visible.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_visible", "fqn": ["snowplow_unified_integration_tests", "source", "snowplow_unified_consent_cmp_visible"], "alias": "snowplow_unified_consent_cmp_visible", "checksum": {"name": "sha256", "checksum": "ebf3b1ca6810a1e589a31b9dc7c4771e8246ec36510c40521fba8eff79d17597"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"root_id": "varchar", "root_tstamp": "timestamp", "elapsed_time": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "column_types": {"root_id": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "root_tstamp": "timestamp", "elapsed_time": "float"}}, "created_at": 1706612341.5055063, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_cmp_visible", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_geolocation_context": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_geolocation_context", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "source/snowplow_unified_geolocation_context.csv", "original_file_path": "data/source/snowplow_unified_geolocation_context.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_geolocation_context", "fqn": ["snowplow_unified_integration_tests", "source", "snowplow_unified_geolocation_context"], "alias": "snowplow_unified_geolocation_context", "checksum": {"name": "sha256", "checksum": "ad3da05869d69b8753ee80a9905adb11d0c039d20c8f5caabf474ca33824b1fe"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests"}, "created_at": 1706612341.5087798, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_geolocation_context", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_consent_preferences": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_preferences", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "source/snowplow_unified_consent_preferences.csv", "original_file_path": "data/source/snowplow_unified_consent_preferences.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_preferences", "fqn": ["snowplow_unified_integration_tests", "source", "snowplow_unified_consent_preferences"], "alias": "snowplow_unified_consent_preferences", "checksum": {"name": "sha256", "checksum": "1641336b12f05f5fba77847cb00d1e9e39fd2e5de6e90970828d1acce65e124e"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"root_id": "varchar", "root_tstamp": "timestamp", "basis_for_processing": "varchar", "consent_version": "varchar", "consent_scopes": "varchar", "consent_url": "varchar", "domains_applied": "varchar", "event_type": "varchar", "gdpr_applies": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "column_types": {"root_id": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "root_tstamp": "timestamp", "basis_for_processing": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "consent_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "consent_scopes": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "consent_url": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "domains_applied": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "event_type": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "gdpr_applies": "boolean"}}, "created_at": 1706612341.5147736, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_preferences", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "seed.snowplow_unified_integration_tests.snowplow_unified_screen_view_event": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_screen_view_event", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "source/snowplow_unified_screen_view_event.csv", "original_file_path": "data/source/snowplow_unified_screen_view_event.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_screen_view_event", "fqn": ["snowplow_unified_integration_tests", "source", "snowplow_unified_screen_view_event"], "alias": "snowplow_unified_screen_view_event", "checksum": {"name": "sha256", "checksum": "f62b4d8da5933869e707260ee6797f5f63351d11faec5018c7205957a4f7f995"}, "config": {"enabled": true, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests"}, "created_at": 1706612341.5178373, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_screen_view_event", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}}, "model.snowplow_unified.snowplow_unified_views": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_derived", "name": "snowplow_unified_views", "resource_type": "model", "package_name": "snowplow_unified", "path": "views/snowplow_unified_views.sql", "original_file_path": "models/views/snowplow_unified_views.sql", "unique_id": "model.snowplow_unified.snowplow_unified_views", "fqn": ["snowplow_unified", "views", "snowplow_unified_views"], "alias": "snowplow_unified_views", "checksum": {"name": "sha256", "checksum": "45b3011c34bfd307980be55f95d6cb9627e67de1ace0cebb0cecd013d3ac2d7b"}, "config": {"enabled": true, "alias": null, "schema": "derived", "database": null, "tags": ["snowplow_unified_incremental", "derived"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "view_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "cluster_by": ["to_date(start_tstamp)"], "upsert_date_key": "start_tstamp", "sort": "start_tstamp", "dist": "view_id", "partition_by": null, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "snowplow_optimize": true, "post-hook": [{"sql": "{{ snowplow_unified.stitch_user_identifiers(\n enabled=var('snowplow__view_stitching')\n ) }}", "transaction": true, "index": null}], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived"], "description": "This derived incremental table contains all historic page/screen views and should be the end point for any analysis or BI tools.", "columns": {"view_id": {"name": "view_id", "description": "A UUID for each page view e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}, "event_id": {"name": "event_id", "description": "A UUID for each event e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_id": {"name": "app_id", "description": "Application ID e.g. \u2018angry-birds\u2019 is used to distinguish different applications that are being tracked by the same Snowplow stack, e.g. production versus dev.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "Unique ID set by business e.g. \u2018jon.doe@email.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stitched_user_id": {"name": "stitched_user_id", "description": "The `user_id` (or `domain_user_id` if not found during user stitching) when the `snowplow__session_stitching` or `snowplow__view_stitching` variable is enabled otherwise NULL. The `user_id` field to be used for stitching can be overwritten by `var('snowplow__user_stitching_id')`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network_userid": {"name": "network_userid", "description": "User ID set by Snowplow using 3rd party cookie e.g. \u2018ecdff4d0-9175-40ac-a8bb-325c49733607\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_identifier": {"name": "session_identifier", "description": "The session identifier as defined in your project variables. Default to domain_sessionid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_session_index": {"name": "device_session_index", "description": "A visit / session index e.g. 3", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_in_session_index": {"name": "view_in_session_index", "description": "A view index within a single session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "views_in_session": {"name": "views_in_session", "description": "Distinct count of `view_id` within a session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_created_tstamp": {"name": "dvce_created_tstamp", "description": "Timestamp event was recorded on the client device e.g. \u20182013-11-26 00:03:57.885\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "collector_tstamp": {"name": "collector_tstamp", "description": "Time stamp for the event recorded by the collector e.g. \u20182013-11-26 00:02:05\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "derived_tstamp": {"name": "derived_tstamp", "description": "Timestamp making allowance for innaccurate device clock e.g. \u20182013-11-26 00:02:04\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_tstamp": {"name": "start_tstamp", "description": "Timestamp for the start of the page view, based on `derived_tstamp`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_tstamp": {"name": "end_tstamp", "description": "Timestamp for the end of the page view, based on `derived_tstamp`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_tstamp": {"name": "model_tstamp", "description": "The current timestamp when the model processed this row.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "engaged_time_in_s": {"name": "engaged_time_in_s", "description": "Time spent by the user on the page or screen.\n\nOn Web, it is calculated using page pings.\nOn mobile, it is calculated using information in the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "absolute_time_in_s": {"name": "absolute_time_in_s", "description": "Total time in seconds of the page or screen view (including inactivity).\n\nOn Web, it is the time between the `start_tstamp` and `end_tstamp` of the page view and the last page ping.\nOn mobile, it is the time that the app was in foreground + background during the screen view (taken from the `screen_summary` context).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "horizontal_pixels_scrolled": {"name": "horizontal_pixels_scrolled", "description": "Distance the user scrolled horizontally in pixels.\n\nOn Web, it is calculated based on the page ping events.\nOn mobile, it is calculated using the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vertical_pixels_scrolled": {"name": "vertical_pixels_scrolled", "description": "Distance the user scrolled vertically in pixels.\n\nOn Web, it is calculated based on the page ping events.\nOn mobile, it is calculated using the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "horizontal_percentage_scrolled": {"name": "horizontal_percentage_scrolled", "description": "Percentage of page scrolled horizontally.\n\nOn Web, it is calculated based on the page ping events.\nOn mobile, it is calculated using the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vertical_percentage_scrolled": {"name": "vertical_percentage_scrolled", "description": "Percentage of page scrolled vertically.\n\nOn Web, it is calculated based on the page ping events.\nOn mobile, it is calculated using the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_list_item_index": {"name": "last_list_item_index", "description": "Index of the last viewed item in the list on the screen\n\nThis is calculated only for mobile apps based on the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "list_items_count": {"name": "list_items_count", "description": "Total number of items in the list on the screen\n\nThis is calculated only for mobile apps based on the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "list_items_percentage_scrolled": {"name": "list_items_percentage_scrolled", "description": "Percentage of the list on the screen that the user scrolled to.\n\nThis is calculated only for mobile apps based on the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "doc_width": {"name": "doc_width", "description": "The page\u2019s width in pixels e.g. 1024\n\nOn mobile, it is the content width reported in the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "doc_height": {"name": "doc_height", "description": "The page\u2019s height in pixels e.g. 3000\n\nOn mobile, it is the content height reported in the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_title": {"name": "page_title", "description": "Web page title e.g. \u2018Snowplow Docs \u2013 Understanding the structure of Snowplow data\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_url": {"name": "page_url", "description": "The page URL e.g. \u2018http://www.example.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlscheme": {"name": "page_urlscheme", "description": "Scheme aka protocol e.g. \u2018https\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlhost": {"name": "page_urlhost", "description": "Host aka domain e.g. \u2018\u201cwww.snowplow.io\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlpath": {"name": "page_urlpath", "description": "Path to page e.g. \u2018/product/index.html\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlquery": {"name": "page_urlquery", "description": "Querystring e.g. \u2018id=GTM-DLRG\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlfragment": {"name": "page_urlfragment", "description": "Fragment aka anchor e.g. \u20184-conclusion\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_medium": {"name": "mkt_medium", "description": "Type of traffic source e.g. \u2018cpc\u2019, \u2018affiliate\u2019, \u2018organic\u2019, \u2018social\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_source": {"name": "mkt_source", "description": "The company / website where the traffic came from e.g. \u2018Google\u2019, \u2018Facebook\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_term": {"name": "mkt_term", "description": "Any keywords associated with the referrer e.g. \u2018new age tarot decks\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_content": {"name": "mkt_content", "description": "The content of the ad. (Or an ID so that it can be looked up.) e.g. 13894723", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_campaign": {"name": "mkt_campaign", "description": "The campaign ID e.g. \u2018diageo-123\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_clickid": {"name": "mkt_clickid", "description": "The click ID e.g. \u2018ac3d8e459\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_network": {"name": "mkt_network", "description": "The ad network to which the click ID belongs e.g. \u2018DoubleClick\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_referrer": {"name": "page_referrer", "description": "URL of the referrer e.g. \u2018http://www.referrer.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlscheme": {"name": "refr_urlscheme", "description": "Referer scheme e.g. \u2018http\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlhost": {"name": "refr_urlhost", "description": "Referer host e.g. \u2018www.bing.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlpath": {"name": "refr_urlpath", "description": "Referer page path e.g. \u2018/images/search\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlquery": {"name": "refr_urlquery", "description": "Referer URL querystring e.g. \u2018q=psychic+oracle+cards\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlfragment": {"name": "refr_urlfragment", "description": "Referer URL fragment", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_medium": {"name": "refr_medium", "description": "Type of referer e.g. \u2018search\u2019, \u2018internal\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_source": {"name": "refr_source", "description": "Name of referer if recognised e.g. \u2018Bing images\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_term": {"name": "refr_term", "description": "Keywords if source is a search engine e.g. \u2018psychic oracle cards\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_country": {"name": "geo_country", "description": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_region": {"name": "geo_region", "description": "ISO-3166-2 code for country region the visitor is in e.g. \u2018I9\u2019, \u2018TX\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_region_name": {"name": "geo_region_name", "description": "Visitor region name e.g. \u2018Florida\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_city": {"name": "geo_city", "description": "City the visitor is in e.g. \u2018New York\u2019, \u2018London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_zipcode": {"name": "geo_zipcode", "description": "Postcode the visitor is in e.g. \u201894109\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_latitude": {"name": "geo_latitude", "description": "Visitor location latitude e.g. 37.443604", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_longitude": {"name": "geo_longitude", "description": "Visitor location longitude e.g. -122.4124", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_timezone": {"name": "geo_timezone", "description": "Visitor timezone name e.g. \u2018Europe/London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_ipaddress": {"name": "user_ipaddress", "description": "User IP address e.g. \u201892.231.54.234\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent": {"name": "useragent", "description": "Raw useragent", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_lang": {"name": "br_lang", "description": "Language the browser is set to e.g. \u2018en-GB\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_viewwidth": {"name": "br_viewwidth", "description": "Viewport width e.g. 1000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_viewheight": {"name": "br_viewheight", "description": "Viewport height e.g. 1000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_colordepth": {"name": "br_colordepth", "description": "Bit depth of the browser color palette e.g. 24", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_renderengine": {"name": "br_renderengine", "description": "Browser rendering engine e.g. \u2018GECKO\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_timezone": {"name": "os_timezone", "description": "Client operating system timezone e.g. \u2018Europe/London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__previous_session_id": {"name": "session__previous_session_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_identifier": {"name": "device_identifier", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_category": {"name": "device_category", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_version": {"name": "os_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_type": {"name": "os_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__device_manufacturer": {"name": "mobile__device_manufacturer", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__device_model": {"name": "mobile__device_model", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__os_type": {"name": "mobile__os_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__os_version": {"name": "mobile__os_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__android_idfa": {"name": "mobile__android_idfa", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__apple_idfa": {"name": "mobile__apple_idfa", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__apple_idfv": {"name": "mobile__apple_idfv", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__carrier": {"name": "mobile__carrier", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__open_idfa": {"name": "mobile__open_idfa", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__network_technology": {"name": "mobile__network_technology", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__network_type": {"name": "mobile__network_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__physical_memory": {"name": "mobile__physical_memory", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__system_available_memory": {"name": "mobile__system_available_memory", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__app_available_memory": {"name": "mobile__app_available_memory", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__battery_level": {"name": "mobile__battery_level", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__battery_state": {"name": "mobile__battery_state", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__low_power_mode": {"name": "mobile__low_power_mode", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__available_storage": {"name": "mobile__available_storage", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__total_storage": {"name": "mobile__total_storage", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__is_portrait": {"name": "mobile__is_portrait", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__resolution": {"name": "mobile__resolution", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__scale": {"name": "mobile__scale", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__language": {"name": "mobile__language", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__app_set_id": {"name": "mobile__app_set_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__app_set_id_scope": {"name": "mobile__app_set_id_scope", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_resolution": {"name": "screen_resolution", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_class": {"name": "yauaa__device_class", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_version": {"name": "yauaa__device_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_version": {"name": "yauaa__operating_system_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_class": {"name": "yauaa__operating_system_class", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_name": {"name": "yauaa__operating_system_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_name_version": {"name": "yauaa__operating_system_name_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_channel_group": {"name": "default_channel_group", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "content_group": {"name": "content_group", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab__category": {"name": "iab__category", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab__primary_impact": {"name": "iab__primary_impact", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab__reason": {"name": "iab__reason", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab__spider_or_robot": {"name": "iab__spider_or_robot", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_name": {"name": "yauaa__device_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_class": {"name": "yauaa__agent_class", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_name": {"name": "yauaa__agent_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_name_version": {"name": "yauaa__agent_name_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_name_version_major": {"name": "yauaa__agent_name_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_version": {"name": "yauaa__agent_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_version_major": {"name": "yauaa__agent_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_class": {"name": "yauaa__layout_engine_class", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_name": {"name": "yauaa__layout_engine_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_name_version": {"name": "yauaa__layout_engine_name_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_name_version_major": {"name": "yauaa__layout_engine_name_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_version": {"name": "yauaa__layout_engine_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_version_major": {"name": "yauaa__layout_engine_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__device_family": {"name": "ua__device_family", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_version": {"name": "ua__os_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_major": {"name": "ua__os_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_minor": {"name": "ua__os_minor", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_patch": {"name": "ua__os_patch", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_patch_minor": {"name": "ua__os_patch_minor", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_family": {"name": "ua__useragent_family", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_major": {"name": "ua__useragent_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_minor": {"name": "ua__useragent_minor", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_patch": {"name": "ua__useragent_patch", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_version": {"name": "ua__useragent_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__name": {"name": "screen_view__name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__previous_id": {"name": "screen_view__previous_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__previous_name": {"name": "screen_view__previous_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__previous_type": {"name": "screen_view__previous_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__transition_type": {"name": "screen_view__transition_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__type": {"name": "screen_view__type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app__build": {"name": "app__build", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app__version": {"name": "app__version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__altitude": {"name": "geo__altitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__altitude_accuracy": {"name": "geo__altitude_accuracy", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__bearing": {"name": "geo__bearing", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__latitude": {"name": "geo__latitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__latitude_longitude_accuracy": {"name": "geo__latitude_longitude_accuracy", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__longitude": {"name": "geo__longitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__speed": {"name": "geo__speed", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__fragment": {"name": "screen__fragment", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__top_view_controller": {"name": "screen__top_view_controller", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__view_controller": {"name": "screen__view_controller", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/views/views.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "file_format": "delta", "bind": false, "schema": "derived", "tags": ["derived"], "on_schema_change": "append_new_columns", "unique_key": "view_id", "upsert_date_key": "start_tstamp", "sort": "start_tstamp", "dist": "view_id", "partition_by": null, "cluster_by": ["to_date(start_tstamp)"], "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "snowplow_optimize": true, "post-hook": ["{{ snowplow_unified.stitch_user_identifiers(\n enabled=var('snowplow__view_stitching')\n ) }}"]}, "created_at": 1706612343.7128747, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized='incremental',\n on_schema_change='append_new_columns',\n unique_key='view_id',\n upsert_date_key='start_tstamp',\n sort='start_tstamp',\n dist='view_id',\n partition_by = snowplow_utils.get_value_by_target_type(bigquery_val = {\n \"field\": \"start_tstamp\",\n \"data_type\": \"timestamp\"\n }, databricks_val='start_tstamp_date'),\n cluster_by=snowplow_utils.get_value_by_target_type(bigquery_val=[\"user_identifier\",\"session_identifier\"], snowflake_val=[\"to_date(start_tstamp)\"]),\n tags=[\"derived\"],\n post_hook=\"{{ snowplow_unified.stitch_user_identifiers(\n enabled=var('snowplow__view_stitching')\n ) }}\",\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt')),\n tblproperties={\n 'delta.autoOptimize.optimizeWrite' : 'true',\n 'delta.autoOptimize.autoCompact' : 'true'\n },\n snowplow_optimize = true\n )\n}}\n\n\nselect *\n {% if target.type in ['databricks', 'spark'] -%}\n , DATE(start_tstamp) as start_tstamp_date\n {%- endif %}\nfrom {{ ref('snowplow_unified_views_this_run') }}\nwhere {{ snowplow_utils.is_run_with_new_events('snowplow_unified') }} --returns false if run doesn't contain new events.", "language": "sql", "refs": [{"name": "snowplow_unified_views_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.get_value_by_target_type", "macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.is_run_with_new_events", "macro.snowplow_unified.stitch_user_identifiers"], "nodes": ["model.snowplow_unified.snowplow_unified_views_this_run", "model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_incremental_manifest"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/snowplow_unified_views.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect *\n \nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_views_this_run\nwhere cast(True as boolean) --returns false if run doesn't contain new events.", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_pv_engaged_time": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_pv_engaged_time", "resource_type": "model", "package_name": "snowplow_unified", "path": "views/scratch/snowplow_unified_pv_engaged_time.sql", "original_file_path": "models/views/scratch/snowplow_unified_pv_engaged_time.sql", "unique_id": "model.snowplow_unified.snowplow_unified_pv_engaged_time", "fqn": ["snowplow_unified", "views", "scratch", "snowplow_unified_pv_engaged_time"], "alias": "snowplow_unified_pv_engaged_time", "checksum": {"name": "sha256", "checksum": "7ce0806bf1f594e2f49a2177c4ccee819d6023ef4df0e55e59f81b7514fc5a51"}, "config": {"enabled": true, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "scratch"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "scratch"], "description": "This model calculates the time a visitor spent engaged on a given page view. This is calculated using the number of page ping events received for that page view.", "columns": {"view_id": {"name": "view_id", "description": "A UUID for each page view e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_identifier": {"name": "session_identifier", "description": "The session identifier as defined in your project variables. Default to domain_sessionid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/views/scratch/views_scratch.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": "scratch", "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612343.7678814, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_pv_engaged_time", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\n-- the first page ping fires after the minimum visit length (n seconds), every subsequent page ping fires after every heartbeat length (n seconds)\n-- there may be imperfectly timed pings and odd duplicates therefore the safest is to do a special calculation:\n-- each pings' epoch timestamp is taken (n seconds) which are then divided by the heartbeat length, floored (to get precise heartbeat length separated intervals)\n-- each distinct value means the user spent that * the heartbeat length on the website (minus the first, which needed the minimum visit lenght to fire)\n\n{% set heartbeat_length = var(\"snowplow__heartbeat\", 10) %}\n{% set min_visit_length = var(\"snowplow__min_visit_length\", 5) %}\n{% set n_unique_pings = \"count(distinct(floor(\" ~ snowplow_utils.to_unixtstamp('ev.dvce_created_tstamp') ~ \"/\" ~ heartbeat_length ~ \")))\" %}\n\nselect\n ev.view_id,\n ev.session_identifier,\n max(ev.derived_tstamp) as end_tstamp,\n ({{ heartbeat_length }} * ({{ n_unique_pings }} - 1)) + {{ min_visit_length }} as engaged_time_in_s,\n cast(null as {{ type_float() }}) as absolute_time_in_s\n\nfrom {{ ref('snowplow_unified_events_this_run') }} as ev\n\nwhere ev.event_name = 'page_ping'\nand ev.view_id is not null\n\ngroup by 1, 2\n\n{% if var('snowplow__enable_screen_summary_context', false) %}\nunion all\n\nselect\n t.view_id,\n t.session_identifier,\n cast(null as {{ dbt.type_timestamp() }}) as end_tstamp,\n t.foreground_sec as engaged_time_in_s,\n t.foreground_sec + coalesce(t.background_sec, 0) as absolute_time_in_s\n\nfrom {{ ref('snowplow_unified_screen_summary_metrics') }} as t\n{% endif %}", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.to_unixtstamp", "macro.dbt.type_float"], "nodes": ["model.snowplow_unified.snowplow_unified_events_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/snowplow_unified_pv_engaged_time.sql", "compiled": true, "compiled_code": "\n\n\n\n-- the first page ping fires after the minimum visit length (n seconds), every subsequent page ping fires after every heartbeat length (n seconds)\n-- there may be imperfectly timed pings and odd duplicates therefore the safest is to do a special calculation:\n-- each pings' epoch timestamp is taken (n seconds) which are then divided by the heartbeat length, floored (to get precise heartbeat length separated intervals)\n-- each distinct value means the user spent that * the heartbeat length on the website (minus the first, which needed the minimum visit lenght to fire)\n\n\n\n\n\nselect\n ev.view_id,\n ev.session_identifier,\n max(ev.derived_tstamp) as end_tstamp,\n (10 * (count(distinct(floor(date_part('epoch_seconds', ev.dvce_created_tstamp)/10))) - 1)) + 5 as engaged_time_in_s,\n cast(null as FLOAT) as absolute_time_in_s\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_events_this_run as ev\n\nwhere ev.event_name = 'page_ping'\nand ev.view_id is not null\n\ngroup by 1, 2\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_pv_scroll_depth": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_pv_scroll_depth", "resource_type": "model", "package_name": "snowplow_unified", "path": "views/scratch/snowplow_unified_pv_scroll_depth.sql", "original_file_path": "models/views/scratch/snowplow_unified_pv_scroll_depth.sql", "unique_id": "model.snowplow_unified.snowplow_unified_pv_scroll_depth", "fqn": ["snowplow_unified", "views", "scratch", "snowplow_unified_pv_scroll_depth"], "alias": "snowplow_unified_pv_scroll_depth", "checksum": {"name": "sha256", "checksum": "ec8eff501798c6ea70f8111a57045cc0319b7212ce01a8d676d5284e9ca8adfd"}, "config": {"enabled": true, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "scratch"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "scratch"], "description": "This model calculates the horizontal and vertical scroll depth of the visitor on a given page view. Such metrics are useful when assessing engagement on a page view.", "columns": {"view_id": {"name": "view_id", "description": "A UUID for each page view e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/views/scratch/views_scratch.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": "scratch", "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612343.7685666, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_pv_scroll_depth", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\nwith prep as (\n select\n ev.view_id,\n ev.session_identifier,\n\n max(ev.doc_width) as doc_width,\n max(ev.doc_height) as doc_height,\n\n max(ev.br_viewwidth) as br_viewwidth,\n max(ev.br_viewheight) as br_viewheight,\n\n -- coalesce replaces null with 0 (because the page view event does send an offset)\n -- greatest prevents outliers (negative offsets)\n -- least also prevents outliers (offsets greater than the docwidth or docheight)\n\n {# coalesce with max value from the screen_summary event \u2013 hmin \u2013 min_x_offset, hmax \u2013 max_x_offset #}\n least(greatest(min(coalesce(ev.pp_xoffset_min, 0)), 0), max(ev.doc_width)) as hmin, -- should be zero\n least(greatest(max(coalesce(ev.pp_xoffset_max, 0)), 0), max(ev.doc_width)) as hmax,\n\n {# coalesce with max value from the screen_summary event \u2013 vmin \u2013 min_y_offset, vmax \u2013 max_y_offset #}\n least(greatest(min(coalesce(ev.pp_yoffset_min, 0)), 0), max(ev.doc_height)) as vmin, -- should be zero (edge case: not zero because the pv event is missing)\n least(greatest(max(coalesce(ev.pp_yoffset_max, 0)), 0), max(ev.doc_height)) as vmax\n\n from {{ ref('snowplow_unified_events_this_run') }} as ev\n\n where ev.event_name in ('page_view', 'page_ping')\n and ev.view_id is not null\n and ev.doc_height > 0 -- exclude problematic (but rare) edge case\n and ev.doc_width > 0 -- exclude problematic (but rare) edge case\n\n group by 1, 2\n)\n\nselect\n view_id,\n session_identifier,\n\n doc_width,\n doc_height,\n\n br_viewwidth,\n br_viewheight,\n\n hmin,\n hmax,\n vmin,\n vmax,\n\n cast(round(100*(greatest(hmin, 0)/cast(doc_width as {{ type_float() }}))) as {{ type_float() }}) as relative_hmin, -- brackets matter: because hmin is of type int, we need to divide before we multiply by 100 or we risk an overflow\n cast(round(100*(least(hmax + br_viewwidth, doc_width)/cast(doc_width as {{ type_float() }}))) as {{ type_float() }}) as relative_hmax,\n cast(round(100*(greatest(vmin, 0)/cast(doc_height as {{ type_float() }}))) as {{ type_float() }}) as relative_vmin,\n cast(round(100*(least(vmax + br_viewheight, doc_height)/cast(doc_height as {{ type_float() }}))) as {{ type_float() }}) as relative_vmax, -- not zero when a user hasn't scrolled because it includes the non-zero viewheight\n\n cast(null as {{ type_int() }}) as last_list_item_index,\n cast(null as {{ type_int() }}) as list_items_count,\n cast(null as {{ type_int() }}) as list_items_percentage_scrolled\n\nfrom prep\n\n{% if var('snowplow__enable_screen_summary_context', false) %}\nunion all\n\nselect\n t.view_id,\n t.session_identifier,\n\n t.content_width as doc_width,\n t.content_height as doc_height,\n\n cast(null as {{ type_int() }}) as br_viewwidth,\n cast(null as {{ type_int() }}) as br_viewheight,\n\n t.min_x_offset as hmin,\n t.max_x_offset as hmax,\n t.min_y_offset as vmin,\n t.max_y_offset as vmax,\n\n cast(null as {{ type_float() }}) as relative_hmin,\n t.horizontal_percentage_scrolled as relative_hmax,\n cast(null as {{ type_float() }}) as relative_vmin,\n t.vertical_percentage_scrolled as relative_vmax,\n\n t.last_item_index as last_list_item_index,\n t.items_count as list_items_count,\n t.list_items_percentage_scrolled\n\nfrom {{ ref('snowplow_unified_screen_summary_metrics') }} as t\n\n{% endif %}", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.dbt.type_float", "macro.dbt.type_int"], "nodes": ["model.snowplow_unified.snowplow_unified_events_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/snowplow_unified_pv_scroll_depth.sql", "compiled": true, "compiled_code": "\n\n\n\nwith prep as (\n select\n ev.view_id,\n ev.session_identifier,\n\n max(ev.doc_width) as doc_width,\n max(ev.doc_height) as doc_height,\n\n max(ev.br_viewwidth) as br_viewwidth,\n max(ev.br_viewheight) as br_viewheight,\n\n -- coalesce replaces null with 0 (because the page view event does send an offset)\n -- greatest prevents outliers (negative offsets)\n -- least also prevents outliers (offsets greater than the docwidth or docheight)\n\n \n least(greatest(min(coalesce(ev.pp_xoffset_min, 0)), 0), max(ev.doc_width)) as hmin, -- should be zero\n least(greatest(max(coalesce(ev.pp_xoffset_max, 0)), 0), max(ev.doc_width)) as hmax,\n\n \n least(greatest(min(coalesce(ev.pp_yoffset_min, 0)), 0), max(ev.doc_height)) as vmin, -- should be zero (edge case: not zero because the pv event is missing)\n least(greatest(max(coalesce(ev.pp_yoffset_max, 0)), 0), max(ev.doc_height)) as vmax\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_events_this_run as ev\n\n where ev.event_name in ('page_view', 'page_ping')\n and ev.view_id is not null\n and ev.doc_height > 0 -- exclude problematic (but rare) edge case\n and ev.doc_width > 0 -- exclude problematic (but rare) edge case\n\n group by 1, 2\n)\n\nselect\n view_id,\n session_identifier,\n\n doc_width,\n doc_height,\n\n br_viewwidth,\n br_viewheight,\n\n hmin,\n hmax,\n vmin,\n vmax,\n\n cast(round(100*(greatest(hmin, 0)/cast(doc_width as FLOAT))) as FLOAT) as relative_hmin, -- brackets matter: because hmin is of type int, we need to divide before we multiply by 100 or we risk an overflow\n cast(round(100*(least(hmax + br_viewwidth, doc_width)/cast(doc_width as FLOAT))) as FLOAT) as relative_hmax,\n cast(round(100*(greatest(vmin, 0)/cast(doc_height as FLOAT))) as FLOAT) as relative_vmin,\n cast(round(100*(least(vmax + br_viewheight, doc_height)/cast(doc_height as FLOAT))) as FLOAT) as relative_vmax, -- not zero when a user hasn't scrolled because it includes the non-zero viewheight\n\n cast(null as INT) as last_list_item_index,\n cast(null as INT) as list_items_count,\n cast(null as INT) as list_items_percentage_scrolled\n\nfrom prep\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_views_this_run": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_views_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "views/scratch/snowplow_unified_views_this_run.sql", "original_file_path": "models/views/scratch/snowplow_unified_views_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_views_this_run", "fqn": ["snowplow_unified", "views", "scratch", "snowplow_unified_views_this_run"], "alias": "snowplow_unified_views_this_run", "checksum": {"name": "sha256", "checksum": "0613e0700d66481c429b7ea701836eb447d731204f359c22218efddd26add27d"}, "config": {"enabled": true, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "scratch", "this_run"], "description": "This staging table contains all the page and screen views for the given run of the model. It possess all the same columns as `snowplow_unified_page_views`. If building a custom module that requires page/screen view events, this is the table you should reference.", "columns": {"view_id": {"name": "view_id", "description": "A UUID for each page view e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}, "event_id": {"name": "event_id", "description": "A UUID for each event e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_id": {"name": "app_id", "description": "Application ID e.g. \u2018angry-birds\u2019 is used to distinguish different applications that are being tracked by the same Snowplow stack, e.g. production versus dev.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "Platform e.g. \u2018web\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "Unique ID set by business e.g. \u2018jon.doe@email.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network_userid": {"name": "network_userid", "description": "User ID set by Snowplow using 3rd party cookie e.g. \u2018ecdff4d0-9175-40ac-a8bb-325c49733607\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_identifier": {"name": "session_identifier", "description": "The session identifier as defined in your project variables. Default to domain_sessionid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_session_index": {"name": "device_session_index", "description": "A visit / session index e.g. 3", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_in_session_index": {"name": "view_in_session_index", "description": "A view index within a single session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "views_in_session": {"name": "views_in_session", "description": "Distinct count of `view_id` within a session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_created_tstamp": {"name": "dvce_created_tstamp", "description": "Timestamp event was recorded on the client device e.g. \u20182013-11-26 00:03:57.885\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "collector_tstamp": {"name": "collector_tstamp", "description": "Time stamp for the event recorded by the collector e.g. \u20182013-11-26 00:02:05\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "derived_tstamp": {"name": "derived_tstamp", "description": "Timestamp making allowance for innaccurate device clock e.g. \u20182013-11-26 00:02:04\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_tstamp": {"name": "start_tstamp", "description": "Timestamp for the start of the page view, based on `derived_tstamp`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_tstamp": {"name": "end_tstamp", "description": "Timestamp for the end of the page view, based on `derived_tstamp`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_tstamp": {"name": "model_tstamp", "description": "The current timestamp when the model processed this row.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "engaged_time_in_s": {"name": "engaged_time_in_s", "description": "Time spent by the user on the page or screen.\n\nOn Web, it is calculated using page pings.\nOn mobile, it is calculated using information in the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "absolute_time_in_s": {"name": "absolute_time_in_s", "description": "Total time in seconds of the page or screen view (including inactivity).\n\nOn Web, it is the time between the `start_tstamp` and `end_tstamp` of the page view and the last page ping.\nOn mobile, it is the time that the app was in foreground + background during the screen view (taken from the `screen_summary` context).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "horizontal_pixels_scrolled": {"name": "horizontal_pixels_scrolled", "description": "Distance the user scrolled horizontally in pixels.\n\nOn Web, it is calculated based on the page ping events.\nOn mobile, it is calculated using the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vertical_pixels_scrolled": {"name": "vertical_pixels_scrolled", "description": "Distance the user scrolled vertically in pixels.\n\nOn Web, it is calculated based on the page ping events.\nOn mobile, it is calculated using the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "horizontal_percentage_scrolled": {"name": "horizontal_percentage_scrolled", "description": "Percentage of page scrolled horizontally.\n\nOn Web, it is calculated based on the page ping events.\nOn mobile, it is calculated using the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vertical_percentage_scrolled": {"name": "vertical_percentage_scrolled", "description": "Percentage of page scrolled vertically.\n\nOn Web, it is calculated based on the page ping events.\nOn mobile, it is calculated using the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_list_item_index": {"name": "last_list_item_index", "description": "Index of the last viewed item in the list on the screen\n\nThis is calculated only for mobile apps based on the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "list_items_count": {"name": "list_items_count", "description": "Total number of items in the list on the screen\n\nThis is calculated only for mobile apps based on the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "list_items_percentage_scrolled": {"name": "list_items_percentage_scrolled", "description": "Percentage of the list on the screen that the user scrolled to.\n\nThis is calculated only for mobile apps based on the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "doc_width": {"name": "doc_width", "description": "The page\u2019s width in pixels e.g. 1024\n\nOn mobile, it is the content width reported in the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "doc_height": {"name": "doc_height", "description": "The page\u2019s height in pixels e.g. 3000\n\nOn mobile, it is the content height reported in the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_title": {"name": "page_title", "description": "Web page title e.g. \u2018Snowplow Docs \u2013 Understanding the structure of Snowplow data\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "content_group": {"name": "content_group", "description": "Custom defined rule builder to classify page based on url title, etc. Defined in macro `content_group_query`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_url": {"name": "page_url", "description": "The page URL e.g. \u2018http://www.example.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlscheme": {"name": "page_urlscheme", "description": "Scheme aka protocol e.g. \u2018https\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlhost": {"name": "page_urlhost", "description": "Host aka domain e.g. \u2018\u201cwww.snowplow.io\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlpath": {"name": "page_urlpath", "description": "Path to page e.g. \u2018/product/index.html\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlquery": {"name": "page_urlquery", "description": "Querystring e.g. \u2018id=GTM-DLRG\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlfragment": {"name": "page_urlfragment", "description": "Fragment aka anchor e.g. \u20184-conclusion\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_medium": {"name": "mkt_medium", "description": "Type of traffic source e.g. \u2018cpc\u2019, \u2018affiliate\u2019, \u2018organic\u2019, \u2018social\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_source": {"name": "mkt_source", "description": "The company / website where the traffic came from e.g. \u2018Google\u2019, \u2018Facebook\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_term": {"name": "mkt_term", "description": "Any keywords associated with the referrer e.g. \u2018new age tarot decks\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_content": {"name": "mkt_content", "description": "The content of the ad. (Or an ID so that it can be looked up.) e.g. 13894723", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_campaign": {"name": "mkt_campaign", "description": "The campaign ID e.g. \u2018diageo-123\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_clickid": {"name": "mkt_clickid", "description": "The click ID e.g. \u2018ac3d8e459\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_network": {"name": "mkt_network", "description": "The ad network to which the click ID belongs e.g. \u2018DoubleClick\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_channel_group": {"name": "default_channel_group", "description": "The channels by which users arrived at your site.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_referrer": {"name": "page_referrer", "description": "URL of the referrer e.g. \u2018http://www.referrer.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlscheme": {"name": "refr_urlscheme", "description": "Referer scheme e.g. \u2018http\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlhost": {"name": "refr_urlhost", "description": "Referer host e.g. \u2018www.bing.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlpath": {"name": "refr_urlpath", "description": "Referer page path e.g. \u2018/images/search\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlquery": {"name": "refr_urlquery", "description": "Referer URL querystring e.g. \u2018q=psychic+oracle+cards\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlfragment": {"name": "refr_urlfragment", "description": "Referer URL fragment", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_medium": {"name": "refr_medium", "description": "Type of referer e.g. \u2018search\u2019, \u2018internal\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_source": {"name": "refr_source", "description": "Name of referer if recognised e.g. \u2018Bing images\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_term": {"name": "refr_term", "description": "Keywords if source is a search engine e.g. \u2018psychic oracle cards\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_country": {"name": "geo_country", "description": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_region": {"name": "geo_region", "description": "ISO-3166-2 code for country region the visitor is in e.g. \u2018I9\u2019, \u2018TX\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_region_name": {"name": "geo_region_name", "description": "Visitor region name e.g. \u2018Florida\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_city": {"name": "geo_city", "description": "City the visitor is in e.g. \u2018New York\u2019, \u2018London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_zipcode": {"name": "geo_zipcode", "description": "Postcode the visitor is in e.g. \u201894109\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_latitude": {"name": "geo_latitude", "description": "Visitor location latitude e.g. 37.443604", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_longitude": {"name": "geo_longitude", "description": "Visitor location longitude e.g. -122.4124", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_timezone": {"name": "geo_timezone", "description": "Visitor timezone name e.g. \u2018Europe/London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_ipaddress": {"name": "user_ipaddress", "description": "User IP address e.g. \u201892.231.54.234\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent": {"name": "useragent", "description": "Raw useragent", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_lang": {"name": "br_lang", "description": "Language the browser is set to e.g. \u2018en-GB\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_viewwidth": {"name": "br_viewwidth", "description": "Viewport width e.g. 1000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_viewheight": {"name": "br_viewheight", "description": "Viewport height e.g. 1000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_colordepth": {"name": "br_colordepth", "description": "Bit depth of the browser color palette e.g. 24", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_renderengine": {"name": "br_renderengine", "description": "Browser rendering engine e.g. \u2018GECKO\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_timezone": {"name": "os_timezone", "description": "Client operating system timezone e.g. \u2018Europe/London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "Category based on activity if the IP/UA is a spider or robot, BROWSER otherwise", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_impact": {"name": "primary_impact", "description": "Whether the spider or robot would affect page impression measurement, ad impression measurement, both or none", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason": {"name": "reason", "description": "Type of failed check if the IP/UA is a spider or robot, PASSED_ALL otherwise", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spider_or_robot": {"name": "spider_or_robot", "description": "True if the IP address or user agent checked against the list is a spider or robot, false otherwise", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent_family": {"name": "useragent_family", "description": "Useragent family (browser) name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent_major": {"name": "useragent_major", "description": "Useragent major version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent_minor": {"name": "useragent_minor", "description": "Useragent minor version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent_patch": {"name": "useragent_patch", "description": "Useragent patch version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent_version": {"name": "useragent_version", "description": "Full version of the useragent", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_family": {"name": "os_family", "description": "Operating system family e.g. \u2018Linux\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_major": {"name": "os_major", "description": "Operation system major version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_minor": {"name": "os_minor", "description": "Operation system minor version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_patch": {"name": "os_patch", "description": "Operation system patch version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_patch_minor": {"name": "os_patch_minor", "description": "Operation system patch minor version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_version": {"name": "os_version", "description": "Operation system full version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_family": {"name": "device_family", "description": "Device type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_class": {"name": "device_class", "description": "Class of device e.g. phone", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_category": {"name": "device_category", "description": "Derived from the `device_class` it is used to classify devices into one of the following: Desktop / Mobile / Tablet / Other.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_resolution": {"name": "screen_resolution", "description": "Combines dvce_screenwidth x dvce_screenheight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_class": {"name": "agent_class", "description": "Class of agent e.g. browser", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_name": {"name": "agent_name", "description": "Name of agent e.g. Chrome", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_name_version": {"name": "agent_name_version", "description": "Name and version of agent e.g. Chrome 53.0.2785.124", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_name_version_major": {"name": "agent_name_version_major", "description": "Name and major version of agent e.g. Chrome 53", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_version": {"name": "agent_version", "description": "Version of agent e.g. 53.0.2785.124", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_version_major": {"name": "agent_version_major", "description": "Major version of agent e.g. 53", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_brand": {"name": "device_brand", "description": "Brand of device e.g. Google", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_name": {"name": "device_name", "description": "Name of device e.g. Google Nexus 6", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_version": {"name": "device_version", "description": "Version of device e.g. 6.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_class": {"name": "layout_engine_class", "description": "Class of layout engine e.g. Browser", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_name": {"name": "layout_engine_name", "description": "Name of layout engine e.g. Blink", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_name_version": {"name": "layout_engine_name_version", "description": "Name and version of layout engine e.g. Blink 53.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_name_version_major": {"name": "layout_engine_name_version_major", "description": "Name and major version of layout engine e.g. Blink 53", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_version": {"name": "layout_engine_version", "description": "Version of layout engine e.g. 53.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_version_major": {"name": "layout_engine_version_major", "description": "Major version of layout engine e.g. 53", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operating_system_class": {"name": "operating_system_class", "description": "Class of the OS e.g. Mobile", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operating_system_name": {"name": "operating_system_name", "description": "Name of the OS e.g. Android", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operating_system_name_version": {"name": "operating_system_name_version", "description": "Name and version of the OS e.g. Android 7.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operating_system_version": {"name": "operating_system_version", "description": "Version of the OS e.g. 7.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/views/scratch/views_scratch.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": ["this_run"], "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612343.7667828, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_views_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n tags=[\"this_run\"],\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\nwith prep as (\n select\n\n {{ platform_independent_fields('ev') }}\n , view_id\n , session_identifier\n , event_id\n\n\n {% if var('snowplow__enable_web') %}\n {{ web_only_fields('ev') }}\n , {{ content_group_query() }} as content_group\n , coalesce(\n {% if var('snowplow__enable_browser_context') %}\n cast(ev.browser__color_depth as {{ type_string() }}),\n {% else %}\n ev.br_colordepth,\n {% endif %}\n null) as br_colordepth\n {% endif %}\n\n {% if var('snowplow__enable_mobile') %}\n {{ mobile_only_fields('ev') }}\n {% endif %}\n\n {% if var('snowplow__view_stitching') %}\n -- updated with mapping as part of post hook on derived page_views table\n , cast(ev.user_identifier as {{ snowplow_utils.type_max_string() }}) as stitched_user_id\n {% else %}\n , cast(null as {{ snowplow_utils.type_max_string() }}) as stitched_user_id\n {% endif %}\n\n {% if var('snowplow__enable_iab') %}\n {{ iab_context_fields('ev') }}\n {% endif %}\n\n {% if var('snowplow__enable_yauaa') %}\n {{ yauaa_context_fields('ev') }}\n {% endif %}\n\n {% if var('snowplow__enable_ua') %}\n {{ ua_context_fields('ev') }}\n {% endif %}\n\n {% if var('snowplow__enable_application_context') %}\n {{ app_context_fields('ev') }}\n {% endif %}\n\n {% if var('snowplow__enable_geolocation_context') %}\n {{ geo_context_fields('ev') }}\n {% endif %}\n\n {% if var('snowplow__enable_screen_context') %}\n {{ screen_context_fields('ev') }}\n {% endif %}\n\n {% if var('snowplow__enable_mobile_context') %}\n {{ mobile_context_fields('ev')}}\n {% endif %}\n\n {% if target.type == 'postgres' %}\n ,row_number() over (partition by ev.view_id order by ev.derived_tstamp, ev.dvce_created_tstamp) as view_id_dedupe_index\n {% endif %}\n\n {%- if var('snowplow__page_view_passthroughs', []) -%}\n {%- set passthrough_names = [] -%}\n {%- for identifier in var('snowplow__page_view_passthroughs', []) %}\n {# Check if it is a simple column or a sql+alias #}\n {%- if identifier is mapping -%}\n ,{{identifier['sql']}} as {{identifier['alias']}}\n {%- do passthrough_names.append(identifier['alias']) -%}\n {%- else -%}\n ,ev.{{identifier}}\n {%- do passthrough_names.append(identifier) -%}\n {%- endif -%}\n {% endfor -%}\n {%- endif %}\n\n from {{ ref('snowplow_unified_events_this_run') }} as ev\n\n left join {{ ref(var('snowplow__ga4_categories_seed')) }} c on lower(trim(ev.mkt_source)) = lower(c.source)\n\n where ev.event_name in ('page_view', 'screen_view')\n and ev.view_id is not null\n\n {% if var(\"snowplow__ua_bot_filter\", true) %}\n {{ filter_bots('ev') }}\n {% endif %}\n\n {% if target.type not in ['postgres'] %}\n qualify row_number() over (partition by ev.view_id order by ev.derived_tstamp, ev.dvce_created_tstamp) = 1\n {% endif %}\n)\n\n, view_events as (\n select\n\n p.*\n\n , row_number() over (partition by p.session_identifier order by p.derived_tstamp, p.dvce_created_tstamp, p.event_id) AS view_in_session_index\n\n , coalesce(t.end_tstamp, p.derived_tstamp) as end_tstamp -- only page views with pings will have a row in table t\n\n {% if var('snowplow__enable_web') or var('snowplow__enable_screen_summary_context', false) %}\n , coalesce(t.engaged_time_in_s, 0) as engaged_time_in_s -- where there are no pings, engaged time is 0.\n , coalesce(\n t.absolute_time_in_s,\n {{ datediff('p.derived_tstamp', 'coalesce(t.end_tstamp, p.derived_tstamp)', 'second') }}\n ) as absolute_time_in_s\n , sd.hmax as horizontal_pixels_scrolled\n , sd.vmax as vertical_pixels_scrolled\n , sd.relative_hmax as horizontal_percentage_scrolled\n , sd.relative_vmax as vertical_percentage_scrolled\n {% endif %}\n {% if var('snowplow__enable_screen_summary_context', false) %}\n , sd.last_list_item_index\n , sd.list_items_count\n , sd.list_items_percentage_scrolled\n {% endif %}\n\n , {{ snowplow_utils.current_timestamp_in_utc() }} as model_tstamp\n\n from prep p\n\n left join {{ ref('snowplow_unified_pv_engaged_time') }} t\n on p.view_id = t.view_id and p.session_identifier = t.session_identifier\n\n left join {{ ref('snowplow_unified_pv_scroll_depth') }} sd\n on p.view_id = sd.view_id and p.session_identifier = sd.session_identifier\n\n {% if target.type == 'postgres' %}\n where view_id_dedupe_index = 1\n {% endif %}\n\n)\n\nselect\n\n -- event categorization fields\n pve.view_id\n , pve.event_name\n , pve.event_id\n , pve.session_identifier\n , pve.view_in_session_index\n , max(pve.view_in_session_index) over (partition by pve.session_identifier) as views_in_session\n {% if var('snowplow__enable_mobile') %}\n , pve.session__previous_session_id\n {% endif %}\n\n -- user id fields\n , pve.user_id\n , pve.user_identifier\n , pve.stitched_user_id\n , pve.network_userid\n\n -- timestamp fields\n , pve.dvce_created_tstamp\n , pve.collector_tstamp\n , pve.derived_tstamp\n , pve.derived_tstamp as start_tstamp\n , pve.end_tstamp -- only page views with pings will have a row in table t\n , pve.model_tstamp\n\n -- device fields\n , pve.app_id\n , pve.platform\n , pve.device_identifier\n , pve.device_category\n , pve.device_session_index\n , pve.os_version\n , pve.os_type\n {% if var('snowplow__enable_mobile_context') %}\n {{ mobile_context_fields('pve')}}\n {% endif %}\n {% if var('snowplow__enable_web') %}\n , pve.os_timezone\n {% endif %}\n , pve.screen_resolution\n {% if var('snowplow__enable_yauaa') %}\n , pve.yauaa__device_class\n , pve.yauaa__device_version\n , pve.yauaa__operating_system_version\n , pve.yauaa__operating_system_class\n , pve.yauaa__operating_system_name\n , pve.yauaa__operating_system_name_version\n {% endif %}\n\n -- geo fields\n , pve.geo_country\n , pve.geo_region\n , pve.geo_region_name\n , pve.geo_city\n , pve.geo_zipcode\n , pve.geo_latitude\n , pve.geo_longitude\n , pve.geo_timezone\n , pve.user_ipaddress\n\n -- engagement fields\n {% if var('snowplow__enable_web') or var('snowplow__enable_screen_summary_context', false) %}\n , pve.engaged_time_in_s -- where there are no pings, engaged time is 0.\n , pve.absolute_time_in_s\n , pve.horizontal_pixels_scrolled\n , pve.vertical_pixels_scrolled\n , pve.horizontal_percentage_scrolled\n , pve.vertical_percentage_scrolled\n {% endif %}\n {% if var('snowplow__enable_screen_summary_context', false) %}\n , pve.last_list_item_index\n , pve.list_items_count\n , pve.list_items_percentage_scrolled\n {% endif %}\n\n -- marketing fields\n , pve.mkt_medium\n , pve.mkt_source\n , pve.mkt_term\n , pve.mkt_content\n , pve.mkt_campaign\n , pve.mkt_clickid\n , pve.mkt_network\n , pve.default_channel_group\n\n -- webpage / referer / browser fields\n , pve.page_url\n , pve.page_referrer\n , pve.refr_medium\n , pve.refr_source\n , pve.refr_term\n\n {% if var('snowplow__enable_web') %}\n\n , pve.page_title\n , pve.content_group\n\n , pve.page_urlscheme\n , pve.page_urlhost\n , pve.page_urlpath\n , pve.page_urlquery\n , pve.page_urlfragment\n\n , pve.refr_urlscheme\n , pve.refr_urlhost\n , pve.refr_urlpath\n , pve.refr_urlquery\n , pve.refr_urlfragment\n\n\n , pve.br_lang\n , pve.br_viewwidth\n , pve.br_viewheight\n , pve.br_colordepth\n , pve.br_renderengine\n\n , pve.doc_width\n , pve.doc_height\n\n {% endif %}\n\n -- iab enrichment fields\n {% if var('snowplow__enable_iab') %}\n , pve.iab__category\n , pve.iab__primary_impact\n , pve.iab__reason\n , pve.iab__spider_or_robot\n {% endif %}\n\n -- yauaa enrichment fields\n {% if var('snowplow__enable_yauaa') %}\n , pve.yauaa__device_name\n , pve.yauaa__agent_class\n , pve.yauaa__agent_name\n , pve.yauaa__agent_name_version\n , pve.yauaa__agent_name_version_major\n , pve.yauaa__agent_version\n , pve.yauaa__agent_version_major\n , pve.yauaa__layout_engine_class\n , pve.yauaa__layout_engine_name\n , pve.yauaa__layout_engine_name_version\n , pve.yauaa__layout_engine_name_version_major\n , pve.yauaa__layout_engine_version\n , pve.yauaa__layout_engine_version_major\n {% endif %}\n\n -- ua parser enrichment fields\n {% if var('snowplow__enable_ua') %}\n , pve.ua__device_family\n , pve.ua__os_version\n , pve.ua__os_major\n , pve.ua__os_minor\n , pve.ua__os_patch\n , pve.ua__os_patch_minor\n , pve.ua__useragent_family\n , pve.ua__useragent_major\n , pve.ua__useragent_minor\n , pve.ua__useragent_patch\n , pve.ua__useragent_version\n {% endif %}\n\n -- mobile only\n {% if var('snowplow__enable_mobile') %}\n , pve.screen_view__name\n , pve.screen_view__previous_id\n , pve.screen_view__previous_name\n , pve.screen_view__previous_type\n , pve.screen_view__transition_type\n , pve.screen_view__type\n {% endif %}\n\n {% if var('snowplow__enable_application_context') %}\n , pve.app__build\n , pve.app__version\n {% endif %}\n\n {% if var('snowplow__enable_geolocation_context') %}\n , pve.geo__altitude\n , pve.geo__altitude_accuracy\n , pve.geo__bearing\n , pve.geo__latitude\n , pve.geo__latitude_longitude_accuracy\n , pve.geo__longitude\n , pve.geo__speed\n {% endif %}\n\n {% if var('snowplow__enable_screen_context') %}\n , pve.screen__fragment\n , pve.screen__top_view_controller\n , pve.screen__view_controller\n {% endif %}\n\n , pve.useragent\n\n {%- if var('snowplow__page_view_passthroughs', []) -%}\n {%- for col in passthrough_names %}\n , pve.{{col}}\n {%- endfor -%}\n {%- endif %}\n\nfrom view_events pve", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}, {"name": "snowplow_unified_dim_ga4_source_categories", "package": null, "version": null}, {"name": "snowplow_unified_pv_engaged_time", "package": null, "version": null}, {"name": "snowplow_unified_pv_scroll_depth", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.snowplow_unified.platform_independent_fields", "macro.snowplow_unified.web_only_fields", "macro.snowplow_unified.content_group_query", "macro.dbt.type_string", "macro.snowplow_unified.mobile_only_fields", "macro.snowplow_utils.type_max_string", "macro.snowplow_unified.iab_context_fields", "macro.snowplow_unified.yauaa_context_fields", "macro.snowplow_unified.ua_context_fields", "macro.snowplow_unified.app_context_fields", "macro.snowplow_unified.geo_context_fields", "macro.snowplow_unified.screen_context_fields", "macro.snowplow_unified.mobile_context_fields", "macro.snowplow_unified.filter_bots", "macro.dbt.datediff", "macro.snowplow_utils.current_timestamp_in_utc"], "nodes": ["model.snowplow_unified.snowplow_unified_events_this_run", "seed.snowplow_unified.snowplow_unified_dim_ga4_source_categories", "model.snowplow_unified.snowplow_unified_pv_engaged_time", "model.snowplow_unified.snowplow_unified_pv_scroll_depth"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/snowplow_unified_views_this_run.sql", "compiled": true, "compiled_code": "\n\n\n\nwith prep as (\n select\n\n \n\n -- event categorization fields\n ev.event_name,\n ev.user_id,\n ev.user_identifier,\n ev.network_userid,\n\n -- timestamp fields\n ev.dvce_created_tstamp,\n ev.collector_tstamp,\n ev.derived_tstamp,\n ev.derived_tstamp as start_tstamp,\n\n -- geo fields\n ev.geo_country,\n ev.geo_region,\n ev.geo_region_name,\n ev.geo_city,\n ev.geo_zipcode,\n ev.geo_latitude,\n ev.geo_longitude,\n ev.geo_timezone,\n ev.user_ipaddress,\n\n -- device fields\n ev.app_id,\n ev.platform,\n ev.device_identifier,\n ev.device_category,\n ev.device_session_index,\n ev.os_version,\n ev.os_type,\n ev.screen_resolution,\n\n -- marketing fields\n ev.mkt_medium,\n ev.mkt_source,\n ev.mkt_term,\n ev.mkt_content,\n ev.mkt_campaign,\n ev.mkt_clickid,\n ev.mkt_network,\n \ncase\n when lower(trim(mkt_source)) = '(direct)' and lower(trim(mkt_medium)) in ('(not set)', '(none)') then 'Direct'\n when lower(trim(mkt_medium)) like '%cross-network%' then 'Cross-network'\n when regexp_like(lower(trim(mkt_medium)), '^(.*cp.*|ppc|retargeting|paid.*)$') then\n case\n when upper(source_category) = 'SOURCE_CATEGORY_SHOPPING'\n or regexp_like(lower(trim(mkt_campaign)), '^(.*(([^a-df-z]|^)shop|shopping).*)$') then 'Paid Shopping'\n when upper(source_category) = 'SOURCE_CATEGORY_SEARCH' then 'Paid Search'\n when upper(source_category) = 'SOURCE_CATEGORY_SOCIAL' then 'Paid Social'\n when upper(source_category) = 'SOURCE_CATEGORY_VIDEO' then 'Paid Video'\n else 'Paid Other'\n end\n when lower(trim(mkt_medium)) in ('display', 'banner', 'expandable', 'intersitial', 'cpm') then 'Display'\n when upper(source_category) = 'SOURCE_CATEGORY_SHOPPING'\n or regexp_like(lower(trim(mkt_campaign)), '^(.*(([^a-df-z]|^)shop|shopping).*)$') then 'Organic Shopping'\n when upper(source_category) = 'SOURCE_CATEGORY_SOCIAL' or lower(trim(mkt_medium)) in ('social', 'social-network', 'sm', 'social network', 'social media') then 'Organic Social'\n when upper(source_category) = 'SOURCE_CATEGORY_VIDEO'\n or regexp_like(lower(trim(mkt_medium)), '^(.*video.*)$') then 'Organic Video'\n when upper(source_category) = 'SOURCE_CATEGORY_SEARCH' or lower(trim(mkt_medium)) = 'organic' then 'Organic Search'\n when lower(trim(mkt_medium)) in ('referral', 'app', 'link') then 'Referral'\n when lower(trim(mkt_source)) in ('email', 'e-mail', 'e_mail', 'e mail') or lower(trim(mkt_medium)) in ('email', 'e-mail', 'e_mail', 'e mail') then 'Email'\n when lower(trim(mkt_medium)) = 'affiliate' then 'Affiliates'\n when lower(trim(mkt_medium)) = 'audio' then 'Audio'\n when lower(trim(mkt_source)) = 'sms' or lower(trim(mkt_medium)) = 'sms' then 'SMS'\n when lower(trim(mkt_medium)) like '%push' or regexp_like(lower(trim(mkt_medium)), '.*(mobile|notification).*') or lower(trim(mkt_source)) = 'firebase' then 'Mobile Push Notifications'\n else 'Unassigned'\nend\n as default_channel_group,\n\n -- webpage / referer / browser fields\n ev.page_url,\n ev.page_referrer,\n ev.refr_medium,\n ev.refr_source,\n ev.refr_term,\n ev.useragent\n\n\n , view_id\n , session_identifier\n , event_id\n\n\n \n \n\n , ev.br_lang\n , ev.br_viewwidth\n , ev.br_viewheight\n , ev.br_renderengine\n , ev.doc_width\n , ev.doc_height\n , ev.page_title\n , ev.page_urlscheme\n , ev.page_urlhost\n , ev.page_urlpath\n , ev.page_urlquery\n , ev.page_urlfragment\n , ev.refr_urlscheme\n , ev.refr_urlhost\n , ev.refr_urlpath\n , ev.refr_urlquery\n , ev.refr_urlfragment\n , ev.os_timezone\n\n\n , \n case when ev.view_id = 'ff8cc048-afe8-4913-843d-37de6b7d87d0' then 'Look no further, I am the test subject!'\n when ev.page_url like '%/product%' then 'PDP'\n when ev.page_url like '%/list%' then 'PLP'\n when ev.page_url like '%/checkout%' then 'checkout'\n when ev.page_url like '%/home%' then 'homepage'\n else 'other'\n end\n as content_group\n , coalesce(\n \n cast(ev.browser__color_depth as TEXT),\n \n null) as br_colordepth\n \n\n \n \n\n , ev.session__previous_session_id\n , ev.screen_view__name\n , ev.screen_view__previous_id\n , ev.screen_view__previous_name\n , ev.screen_view__previous_type\n , ev.screen_view__transition_type\n , ev.screen_view__type\n\n\n \n\n \n , cast(null as \n TEXT\n) as stitched_user_id\n \n\n \n \n\n , ev.iab__category\n , ev.iab__primary_impact\n , ev.iab__reason\n , ev.iab__spider_or_robot\n\n\n \n\n \n \n\n , ev.yauaa__device_class\n , ev.yauaa__agent_class\n , ev.yauaa__agent_name\n , ev.yauaa__agent_name_version\n , ev.yauaa__agent_name_version_major\n , ev.yauaa__agent_version\n , ev.yauaa__agent_version_major\n , ev.yauaa__device_brand\n , ev.yauaa__device_name\n , ev.yauaa__device_version\n , ev.yauaa__layout_engine_class\n , ev.yauaa__layout_engine_name\n , ev.yauaa__layout_engine_name_version\n , ev.yauaa__layout_engine_name_version_major\n , ev.yauaa__layout_engine_version\n , ev.yauaa__layout_engine_version_major\n , ev.yauaa__operating_system_class\n , ev.yauaa__operating_system_name\n , ev.yauaa__operating_system_name_version\n , ev.yauaa__operating_system_version\n\n\n \n\n \n \n\n , ev.ua__useragent_family\n , ev.ua__useragent_major\n , ev.ua__useragent_minor\n , ev.ua__useragent_patch\n , ev.ua__useragent_version\n , ev.ua__os_family\n , ev.ua__os_major\n , ev.ua__os_minor\n , ev.ua__os_patch\n , ev.ua__os_patch_minor\n , ev.ua__os_version\n , ev.ua__device_family\n\n\n \n\n \n \n\n , ev.app__build\n , ev.app__version\n\n\n \n\n \n \n\n , ev.geo__latitude\n , ev.geo__longitude\n , ev.geo__latitude_longitude_accuracy\n , ev.geo__altitude\n , ev.geo__altitude_accuracy\n , ev.geo__bearing\n , ev.geo__speed\n\n\n \n\n \n \n\n , ev.screen__id\n , ev.screen__name\n , ev.screen__activity\n , ev.screen__fragment\n , ev.screen__top_view_controller\n , ev.screen__type\n , ev.screen__view_controller\n\n\n \n\n \n \n\n , ev.mobile__device_manufacturer\n , ev.mobile__device_model\n , ev.mobile__os_type\n , ev.mobile__os_version\n , ev.mobile__android_idfa\n , ev.mobile__apple_idfa\n , ev.mobile__apple_idfv\n , ev.mobile__carrier\n , ev.mobile__open_idfa\n , ev.mobile__network_technology\n , ev.mobile__network_type\n , ev.mobile__physical_memory\n , ev.mobile__system_available_memory\n , ev.mobile__app_available_memory\n , ev.mobile__battery_level\n , ev.mobile__battery_state\n , ev.mobile__low_power_mode\n , ev.mobile__available_storage\n , ev.mobile__total_storage\n , ev.mobile__is_portrait\n , ev.mobile__resolution\n , ev.mobile__scale\n , ev.mobile__language\n , ev.mobile__app_set_id\n , ev.mobile__app_set_id_scope\n\n\n \n\n \n ,ev.v_collector\n ,event_id as event_id2\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_events_this_run as ev\n\n left join SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_dim_ga4_source_categories c on lower(trim(ev.mkt_source)) = lower(c.source)\n\n where ev.event_name in ('page_view', 'screen_view')\n and ev.view_id is not null\n\n \n \n and not rlike(ev.useragent, '.*(bot|crawl|slurp|spider|archiv|spinn|sniff|seo|audit|survey|pingdom|worm|capture|(browser|screen)shots|analyz|index|thumb|check|facebook|PingdomBot|PhantomJS|YandexBot|Twitterbot|a_archiver|facebookexternalhit|Bingbot|BingPreview|Googlebot|Baiduspider|360(Spider|User-agent)|semalt).*')\n\n \n\n \n qualify row_number() over (partition by ev.view_id order by ev.derived_tstamp, ev.dvce_created_tstamp) = 1\n \n)\n\n, view_events as (\n select\n\n p.*\n\n , row_number() over (partition by p.session_identifier order by p.derived_tstamp, p.dvce_created_tstamp, p.event_id) AS view_in_session_index\n\n , coalesce(t.end_tstamp, p.derived_tstamp) as end_tstamp -- only page views with pings will have a row in table t\n\n \n , coalesce(t.engaged_time_in_s, 0) as engaged_time_in_s -- where there are no pings, engaged time is 0.\n , coalesce(\n t.absolute_time_in_s,\n datediff(\n second,\n p.derived_tstamp,\n coalesce(t.end_tstamp, p.derived_tstamp)\n )\n ) as absolute_time_in_s\n , sd.hmax as horizontal_pixels_scrolled\n , sd.vmax as vertical_pixels_scrolled\n , sd.relative_hmax as horizontal_percentage_scrolled\n , sd.relative_vmax as vertical_percentage_scrolled\n \n \n\n , \n convert_timezone('UTC', convert_timezone('UTC', current_timestamp()))::TIMESTAMP\n as model_tstamp\n\n from prep p\n\n left join SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_pv_engaged_time t\n on p.view_id = t.view_id and p.session_identifier = t.session_identifier\n\n left join SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_pv_scroll_depth sd\n on p.view_id = sd.view_id and p.session_identifier = sd.session_identifier\n\n \n\n)\n\nselect\n\n -- event categorization fields\n pve.view_id\n , pve.event_name\n , pve.event_id\n , pve.session_identifier\n , pve.view_in_session_index\n , max(pve.view_in_session_index) over (partition by pve.session_identifier) as views_in_session\n \n , pve.session__previous_session_id\n \n\n -- user id fields\n , pve.user_id\n , pve.user_identifier\n , pve.stitched_user_id\n , pve.network_userid\n\n -- timestamp fields\n , pve.dvce_created_tstamp\n , pve.collector_tstamp\n , pve.derived_tstamp\n , pve.derived_tstamp as start_tstamp\n , pve.end_tstamp -- only page views with pings will have a row in table t\n , pve.model_tstamp\n\n -- device fields\n , pve.app_id\n , pve.platform\n , pve.device_identifier\n , pve.device_category\n , pve.device_session_index\n , pve.os_version\n , pve.os_type\n \n \n\n , pve.mobile__device_manufacturer\n , pve.mobile__device_model\n , pve.mobile__os_type\n , pve.mobile__os_version\n , pve.mobile__android_idfa\n , pve.mobile__apple_idfa\n , pve.mobile__apple_idfv\n , pve.mobile__carrier\n , pve.mobile__open_idfa\n , pve.mobile__network_technology\n , pve.mobile__network_type\n , pve.mobile__physical_memory\n , pve.mobile__system_available_memory\n , pve.mobile__app_available_memory\n , pve.mobile__battery_level\n , pve.mobile__battery_state\n , pve.mobile__low_power_mode\n , pve.mobile__available_storage\n , pve.mobile__total_storage\n , pve.mobile__is_portrait\n , pve.mobile__resolution\n , pve.mobile__scale\n , pve.mobile__language\n , pve.mobile__app_set_id\n , pve.mobile__app_set_id_scope\n\n\n \n \n , pve.os_timezone\n \n , pve.screen_resolution\n \n , pve.yauaa__device_class\n , pve.yauaa__device_version\n , pve.yauaa__operating_system_version\n , pve.yauaa__operating_system_class\n , pve.yauaa__operating_system_name\n , pve.yauaa__operating_system_name_version\n \n\n -- geo fields\n , pve.geo_country\n , pve.geo_region\n , pve.geo_region_name\n , pve.geo_city\n , pve.geo_zipcode\n , pve.geo_latitude\n , pve.geo_longitude\n , pve.geo_timezone\n , pve.user_ipaddress\n\n -- engagement fields\n \n , pve.engaged_time_in_s -- where there are no pings, engaged time is 0.\n , pve.absolute_time_in_s\n , pve.horizontal_pixels_scrolled\n , pve.vertical_pixels_scrolled\n , pve.horizontal_percentage_scrolled\n , pve.vertical_percentage_scrolled\n \n \n\n -- marketing fields\n , pve.mkt_medium\n , pve.mkt_source\n , pve.mkt_term\n , pve.mkt_content\n , pve.mkt_campaign\n , pve.mkt_clickid\n , pve.mkt_network\n , pve.default_channel_group\n\n -- webpage / referer / browser fields\n , pve.page_url\n , pve.page_referrer\n , pve.refr_medium\n , pve.refr_source\n , pve.refr_term\n\n \n\n , pve.page_title\n , pve.content_group\n\n , pve.page_urlscheme\n , pve.page_urlhost\n , pve.page_urlpath\n , pve.page_urlquery\n , pve.page_urlfragment\n\n , pve.refr_urlscheme\n , pve.refr_urlhost\n , pve.refr_urlpath\n , pve.refr_urlquery\n , pve.refr_urlfragment\n\n\n , pve.br_lang\n , pve.br_viewwidth\n , pve.br_viewheight\n , pve.br_colordepth\n , pve.br_renderengine\n\n , pve.doc_width\n , pve.doc_height\n\n \n\n -- iab enrichment fields\n \n , pve.iab__category\n , pve.iab__primary_impact\n , pve.iab__reason\n , pve.iab__spider_or_robot\n \n\n -- yauaa enrichment fields\n \n , pve.yauaa__device_name\n , pve.yauaa__agent_class\n , pve.yauaa__agent_name\n , pve.yauaa__agent_name_version\n , pve.yauaa__agent_name_version_major\n , pve.yauaa__agent_version\n , pve.yauaa__agent_version_major\n , pve.yauaa__layout_engine_class\n , pve.yauaa__layout_engine_name\n , pve.yauaa__layout_engine_name_version\n , pve.yauaa__layout_engine_name_version_major\n , pve.yauaa__layout_engine_version\n , pve.yauaa__layout_engine_version_major\n \n\n -- ua parser enrichment fields\n \n , pve.ua__device_family\n , pve.ua__os_version\n , pve.ua__os_major\n , pve.ua__os_minor\n , pve.ua__os_patch\n , pve.ua__os_patch_minor\n , pve.ua__useragent_family\n , pve.ua__useragent_major\n , pve.ua__useragent_minor\n , pve.ua__useragent_patch\n , pve.ua__useragent_version\n \n\n -- mobile only\n \n , pve.screen_view__name\n , pve.screen_view__previous_id\n , pve.screen_view__previous_name\n , pve.screen_view__previous_type\n , pve.screen_view__transition_type\n , pve.screen_view__type\n \n\n \n , pve.app__build\n , pve.app__version\n \n\n \n , pve.geo__altitude\n , pve.geo__altitude_accuracy\n , pve.geo__bearing\n , pve.geo__latitude\n , pve.geo__latitude_longitude_accuracy\n , pve.geo__longitude\n , pve.geo__speed\n \n\n \n , pve.screen__fragment\n , pve.screen__top_view_controller\n , pve.screen__view_controller\n \n\n , pve.useragent\n , pve.v_collector\n , pve.event_id2\n\nfrom view_events pve", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_base_sessions_this_run": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_base_sessions_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "base/scratch/snowplow_unified_base_sessions_this_run.sql", "original_file_path": "models/base/scratch/snowplow_unified_base_sessions_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_base_sessions_this_run", "fqn": ["snowplow_unified", "base", "scratch", "snowplow_unified_base_sessions_this_run"], "alias": "snowplow_unified_base_sessions_this_run", "checksum": {"name": "sha256", "checksum": "b4e04e94ae072a3f6d472171c0c76e6e000acffd20ee77096f0bf8ac9e12dee0"}, "config": {"enabled": true, "alias": null, "schema": "scratch", "database": null, "tags": ["base", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [{"sql": "{{ snowplow_utils.base_quarantine_sessions(var('snowplow__max_session_days', 3), var('snowplow__quarantined_sessions', 'snowplow_unified_base_quarantined_sessions')) }}", "transaction": true, "index": null}], "pre-hook": []}, "tags": ["base", "scratch", "this_run"], "description": "For any given run, this table contains all the required sessions.", "columns": {"session_identifier": {"name": "session_identifier", "description": "The session identifier as defined in your project variables. Default to domain_sessionid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}, "user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_tstamp": {"name": "start_tstamp", "description": "The `collector_tstamp` when the session began", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_tstamp": {"name": "end_tstamp", "description": "The `collector_tstamp` when the session ended", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/base/scratch/base_scratch.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "tags": ["this_run"], "schema": "scratch", "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": ["{{ snowplow_utils.base_quarantine_sessions(var('snowplow__max_session_days', 3), var('snowplow__quarantined_sessions', 'snowplow_unified_base_quarantined_sessions')) }}"]}, "created_at": 1706612343.9103007, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_base_sessions_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n tags=[\"this_run\"],\n post_hook=[\"{{ snowplow_utils.base_quarantine_sessions(var('snowplow__max_session_days', 3), var('snowplow__quarantined_sessions', 'snowplow_unified_base_quarantined_sessions')) }}\"],\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\n\n{% set sessions_query = snowplow_utils.base_create_snowplow_sessions_this_run(\n lifecycle_manifest_table='snowplow_unified_base_sessions_lifecycle_manifest',\n new_event_limits_table='snowplow_unified_base_new_event_limits') %}\n\n{{ sessions_query }}", "language": "sql", "refs": [{"name": "snowplow_unified_base_sessions_lifecycle_manifest", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_base_quarantined_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.base_create_snowplow_sessions_this_run", "macro.snowplow_utils.base_quarantine_sessions"], "nodes": ["model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest", "model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_base_quarantined_sessions"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/scratch/snowplow_unified_base_sessions_this_run.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n\n\n\n select\n s.session_identifier,\n s.user_identifier,\n s.start_tstamp,\n -- end_tstamp used in next step to limit events. When backfilling, set end_tstamp to upper_limit if end_tstamp > upper_limit.\n -- This ensures we don't accidentally process events after upper_limit\n case when s.end_tstamp > \n cast('2021-03-03 00:00:00' as TIMESTAMP)\n then \n cast('2021-03-03 00:00:00' as TIMESTAMP)\n else s.end_tstamp end as end_tstamp\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_base_sessions_lifecycle_manifest s\n\n where\n -- General window of start_tstamps to limit table scans. Logic complicated by backfills.\n -- To be within the run, session start_tstamp must be >= lower_limit - max_session_days as we limit end_tstamp in manifest to start_tstamp + max_session_days\n s.start_tstamp >= \n cast('2020-06-30 00:00:00' as TIMESTAMP)\n \n and s.start_tstamp <= \n cast('2021-03-03 00:00:00' as TIMESTAMP)\n \n -- Select sessions within window that either; start or finish between lower & upper limit, start and finish outside of lower and upper limits\n and not (s.start_tstamp > \n cast('2021-03-03 00:00:00' as TIMESTAMP)\n or s.end_tstamp < \n cast('2020-07-03 00:00:00' as TIMESTAMP)\n )\n ", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_base_new_event_limits": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_base_new_event_limits", "resource_type": "model", "package_name": "snowplow_unified", "path": "base/scratch/snowplow_unified_base_new_event_limits.sql", "original_file_path": "models/base/scratch/snowplow_unified_base_new_event_limits.sql", "unique_id": "model.snowplow_unified.snowplow_unified_base_new_event_limits", "fqn": ["snowplow_unified", "base", "scratch", "snowplow_unified_base_new_event_limits"], "alias": "snowplow_unified_base_new_event_limits", "checksum": {"name": "sha256", "checksum": "c06baaf4dafe8c976e46933451327c7ef8180a2b10acd8e96de25603ae914134"}, "config": {"enabled": true, "alias": null, "schema": "scratch", "database": null, "tags": ["base", "scratch"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [{"sql": "{{snowplow_utils.print_run_limits(this, 'snowplow_unified')}}", "transaction": true, "index": null}], "pre-hook": []}, "tags": ["base", "scratch"], "description": "This table contains the lower and upper timestamp limits for the given run of the unified model. These limits are used to select new events from the events table.", "columns": {"lower_limit": {"name": "lower_limit", "description": "The lower `collector_tstamp` limit for the run", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "upper_limit": {"name": "upper_limit", "description": "The upper `collector_tstamp` limit for the run", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/base/scratch/base_scratch.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "tags": "scratch", "schema": "scratch", "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": ["{{snowplow_utils.print_run_limits(this, 'snowplow_unified')}}"]}, "created_at": 1706612343.909353, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_base_new_event_limits", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{ config(\n post_hook=[\"{{snowplow_utils.print_run_limits(this, 'snowplow_unified')}}\"],\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\n\n{%- set models_in_run = snowplow_utils.get_enabled_snowplow_models('snowplow_unified') -%}\n\n{% set min_last_success,\n max_last_success,\n models_matched_from_manifest,\n has_matched_all_models = snowplow_utils.get_incremental_manifest_status(ref('snowplow_unified_incremental_manifest'),\n models_in_run) -%}\n\n\n{% set run_limits_query = snowplow_utils.get_run_limits(min_last_success,\n max_last_success,\n models_matched_from_manifest,\n has_matched_all_models,\n var(\"snowplow__start_date\",\"2020-01-01\")) -%}\n\n\n{{ run_limits_query }}", "language": "sql", "refs": [{"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.get_enabled_snowplow_models", "macro.snowplow_utils.get_incremental_manifest_status", "macro.snowplow_utils.get_run_limits", "macro.snowplow_utils.print_run_limits"], "nodes": ["model.snowplow_unified.snowplow_unified_incremental_manifest"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/scratch/snowplow_unified_base_new_event_limits.sql", "compiled": true, "compiled_code": "\n\n\n select \n cast('2020-07-03' as TIMESTAMP)\n as lower_limit,\n least(\n cast('2021-03-02 23:57:07.557000' as TIMESTAMP)\n ,\n \n\n dateadd(\n day,\n 2,\n \n cast('2020-07-03' as TIMESTAMP)\n \n )\n\n) as upper_limit\n ", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_base_events_this_run": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_base_events_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "base/scratch/snowplow_unified_base_events_this_run.sql", "original_file_path": "models/base/scratch/snowplow_unified_base_events_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_base_events_this_run", "fqn": ["snowplow_unified", "base", "scratch", "snowplow_unified_base_events_this_run"], "alias": "snowplow_unified_base_events_this_run", "checksum": {"name": "sha256", "checksum": "c4397cf0574b19fb11ee2087ec85f60f7456779b154b3095b08fb1fffc838956"}, "config": {"enabled": true, "alias": null, "schema": "scratch", "database": null, "tags": ["base", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sort": "collector_tstamp", "dist": "event_id", "post-hook": [], "pre-hook": []}, "tags": ["base", "scratch", "this_run"], "description": "For any given run, this table contains all required events to be consumed by subsequent nodes in the Snowplow dbt unified package. This is a cleaned, deduped dataset, containing all columns from the raw events table. On top, all the most common context/sde fields are also extracted if they are available, otherwise NULLs are displayed. Such fields are named with a shortened version of the field name followed by double underscores + field name (e.g. `yauaa__device_class`).", "columns": {"app_id": {"name": "app_id", "description": "Application ID e.g. \u2018angry-birds\u2019 is used to distinguish different applications that are being tracked by the same Snowplow stack, e.g. production versus dev.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "Platform e.g. \u2018web\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "etl_tstamp": {"name": "etl_tstamp", "description": "Timestamp event began ETL e.g. \u20182017-01-26 00:01:25.292\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "collector_tstamp": {"name": "collector_tstamp", "description": "Time stamp for the event recorded by the collector e.g. \u20182013-11-26 00:02:05\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_created_tstamp": {"name": "dvce_created_tstamp", "description": "Timestamp event was recorded on the client device e.g. \u20182013-11-26 00:03:57.885\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event": {"name": "event", "description": "The type of event recorded e.g. \u2018page_view\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "A UUID for each event e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}, "txn_id": {"name": "txn_id", "description": "Transaction ID set client-side, used to de-dupe records e.g. 421828", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name_tracker": {"name": "name_tracker", "description": "Tracker namespace e.g. \u2018sp1\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "v_tracker": {"name": "v_tracker", "description": "Tracker version e.g. \u2018js-3.0.0\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "v_collector": {"name": "v_collector", "description": "Collector version e.g. \u2018ssc-2.1.0-kinesis\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "v_etl": {"name": "v_etl", "description": "ETL version e.g. \u2018snowplow-micro-1.1.0-common-1.4.2\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "Unique ID set by business e.g. \u2018jon.doe@email.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_ipaddress": {"name": "user_ipaddress", "description": "User IP address e.g. \u201892.231.54.234\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_fingerprint": {"name": "user_fingerprint", "description": "A user fingerprint generated by looking at the individual browser features e.g. 2161814971", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_session_index": {"name": "device_session_index", "description": "A visit / session index e.g. 3", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network_userid": {"name": "network_userid", "description": "User ID set by Snowplow using 3rd party cookie e.g. \u2018ecdff4d0-9175-40ac-a8bb-325c49733607\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_country": {"name": "geo_country", "description": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_region": {"name": "geo_region", "description": "ISO-3166-2 code for country region the visitor is in e.g. \u2018I9\u2019, \u2018TX\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_city": {"name": "geo_city", "description": "City the visitor is in e.g. \u2018New York\u2019, \u2018London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_zipcode": {"name": "geo_zipcode", "description": "Postcode the visitor is in e.g. \u201894109\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_latitude": {"name": "geo_latitude", "description": "Visitor location latitude e.g. 37.443604", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_longitude": {"name": "geo_longitude", "description": "Visitor location longitude e.g. -122.4124", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_region_name": {"name": "geo_region_name", "description": "Visitor region name e.g. \u2018Florida\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ip_isp": {"name": "ip_isp", "description": "Visitor\u2019s ISP e.g. \u2018FDN Communications\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ip_organization": {"name": "ip_organization", "description": "Organization associated with the visitor\u2019s IP address \u2013 defaults to ISP name if none is found e.g. \u2018Bouygues Telecom\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ip_domain": {"name": "ip_domain", "description": "Second level domain name associated with the visitor\u2019s IP address e.g. \u2018nuvox.net\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ip_netspeed": {"name": "ip_netspeed", "description": "Visitor\u2019s connection type e.g. \u2018Cable/DSL\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_url": {"name": "page_url", "description": "The page URL e.g. \u2018http://www.example.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_title": {"name": "page_title", "description": "Web page title e.g. \u2018Snowplow Docs \u2013 Understanding the structure of Snowplow data\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_referrer": {"name": "page_referrer", "description": "URL of the referrer e.g. \u2018http://www.referrer.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlscheme": {"name": "page_urlscheme", "description": "Scheme aka protocol e.g. \u2018https\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlhost": {"name": "page_urlhost", "description": "Host aka domain e.g. \u2018\u201cwww.snowplow.io\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlport": {"name": "page_urlport", "description": "Port if specified, 80 if not 80", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlpath": {"name": "page_urlpath", "description": "Path to page e.g. \u2018/product/index.html\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlquery": {"name": "page_urlquery", "description": "Querystring e.g. \u2018id=GTM-DLRG\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlfragment": {"name": "page_urlfragment", "description": "Fragment aka anchor e.g. \u20184-conclusion\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlscheme": {"name": "refr_urlscheme", "description": "Referer scheme e.g. \u2018http\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlhost": {"name": "refr_urlhost", "description": "Referer host e.g. \u2018www.bing.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlport": {"name": "refr_urlport", "description": "Referer port e.g. 80", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlpath": {"name": "refr_urlpath", "description": "Referer page path e.g. \u2018/images/search\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlquery": {"name": "refr_urlquery", "description": "Referer URL querystring e.g. \u2018q=psychic+oracle+cards\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlfragment": {"name": "refr_urlfragment", "description": "Referer URL fragment", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_medium": {"name": "refr_medium", "description": "Type of referer e.g. \u2018search\u2019, \u2018internal\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_source": {"name": "refr_source", "description": "Name of referer if recognised e.g. \u2018Bing images\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_term": {"name": "refr_term", "description": "Keywords if source is a search engine e.g. \u2018psychic oracle cards\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_medium": {"name": "mkt_medium", "description": "Type of traffic source e.g. \u2018cpc\u2019, \u2018affiliate\u2019, \u2018organic\u2019, \u2018social\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_source": {"name": "mkt_source", "description": "The company / website where the traffic came from e.g. \u2018Google\u2019, \u2018Facebook\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_term": {"name": "mkt_term", "description": "Any keywords associated with the referrer e.g. \u2018new age tarot decks\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_content": {"name": "mkt_content", "description": "The content of the ad. (Or an ID so that it can be looked up.) e.g. 13894723", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_campaign": {"name": "mkt_campaign", "description": "The campaign ID e.g. \u2018diageo-123\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "se_category": {"name": "se_category", "description": "Category of event e.g. \u2018ecomm\u2019, \u2018video\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "se_action": {"name": "se_action", "description": "Action performed / event name e.g. \u2018add-to-basket\u2019, \u2018play-video\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "se_label": {"name": "se_label", "description": "The object of the action e.g. the ID of the video played or SKU of the product added-to-basket e.g. \u2018pbz00123\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "se_property": {"name": "se_property", "description": "A property associated with the object of the action e.g. \u2018HD\u2019, \u2018large\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "se_value": {"name": "se_value", "description": "A value associated with the event / action e.g. the value of goods added-to-basket e.g. 9.99", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_orderid": {"name": "tr_orderid", "description": "Order ID e.g. \u2018#134\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_affiliation": {"name": "tr_affiliation", "description": "Transaction affiliation (e.g. store where sale took place) e.g. \u2018web\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_total": {"name": "tr_total", "description": "Total transaction value e.g. 12.99", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_tax": {"name": "tr_tax", "description": "Total tax included in transaction value e.g. 3.00", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_shipping": {"name": "tr_shipping", "description": "Delivery cost charged e.g. 0.00", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_city": {"name": "tr_city", "description": "Delivery address, city e.g. \u2018London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_state": {"name": "tr_state", "description": "Delivery address, state e.g. \u2018Washington\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_country": {"name": "tr_country", "description": "Delivery address, country e.g. \u2018France\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_orderid": {"name": "ti_orderid", "description": "Order ID e.g. \u2018#134\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_sku": {"name": "ti_sku", "description": "Product SKU e.g. \u2018pbz00123\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_name": {"name": "ti_name", "description": "Product name e.g. \u2018Cone pendulum\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_category": {"name": "ti_category", "description": "Product category e.g. \u2018New Age\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_price": {"name": "ti_price", "description": "Product unit price e.g. 9.99", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_quantity": {"name": "ti_quantity", "description": "Number of product in transaction e.g. 2", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pp_xoffset_min": {"name": "pp_xoffset_min", "description": "Minimum page x offset seen in the last ping period e.g. 0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pp_xoffset_max": {"name": "pp_xoffset_max", "description": "Maximum page x offset seen in the last ping period e.g. 100", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pp_yoffset_min": {"name": "pp_yoffset_min", "description": "Minimum page y offset seen in the last ping period e.g. 0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pp_yoffset_max": {"name": "pp_yoffset_max", "description": "Maximum page y offset seen in the last ping period e.g. 200", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent": {"name": "useragent", "description": "Raw useragent", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_name": {"name": "br_name", "description": "Browser name e.g. \u2018Firefox 12\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_family": {"name": "br_family", "description": "Browser family e.g. \u2018Firefox\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_version": {"name": "br_version", "description": "Browser version e.g. \u201812.0\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_type": {"name": "br_type", "description": "Browser type e.g. \u2018Browser\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_renderengine": {"name": "br_renderengine", "description": "Browser rendering engine e.g. \u2018GECKO\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_lang": {"name": "br_lang", "description": "Language the browser is set to e.g. \u2018en-GB\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_pdf": {"name": "br_features_pdf", "description": "Whether the browser recognizes PDFs e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_flash": {"name": "br_features_flash", "description": "Whether Flash is installed e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_java": {"name": "br_features_java", "description": "Whether Java is installed e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_director": {"name": "br_features_director", "description": "Whether Adobe Shockwave is installed e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_quicktime": {"name": "br_features_quicktime", "description": "Whether QuickTime is installed e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_realplayer": {"name": "br_features_realplayer", "description": "Whether RealPlayer is installed e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_windowsmedia": {"name": "br_features_windowsmedia", "description": "Whether mplayer2 is installed e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_gears": {"name": "br_features_gears", "description": "Whether Google Gears is installed e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_silverlight": {"name": "br_features_silverlight", "description": "Whether Microsoft Silverlight is installed e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_cookies": {"name": "br_cookies", "description": "Whether cookies are enabled e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_colordepth": {"name": "br_colordepth", "description": "Bit depth of the browser color palette e.g. 24", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_viewwidth": {"name": "br_viewwidth", "description": "Viewport width e.g. 1000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_viewheight": {"name": "br_viewheight", "description": "Viewport height e.g. 1000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_name": {"name": "os_name", "description": "Name of operating system e.g. \u2018Android\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_family": {"name": "os_family", "description": "Operating system family e.g. \u2018Linux\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_manufacturer": {"name": "os_manufacturer", "description": "Company responsible for OS e.g. \u2018Apple\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_timezone": {"name": "os_timezone", "description": "Client operating system timezone e.g. \u2018Europe/London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_type": {"name": "dvce_type", "description": "Type of device e.g. \u2018Computer\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_ismobile": {"name": "dvce_ismobile", "description": "Is the device mobile? e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_screenwidth": {"name": "dvce_screenwidth", "description": "Screen width in pixels e.g. 1900", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_screenheight": {"name": "dvce_screenheight", "description": "Screen height in pixels e.g. 1024", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "doc_charset": {"name": "doc_charset", "description": "The page\u2019s character encoding e.g. , \u2018UTF-8\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "doc_width": {"name": "doc_width", "description": "The page\u2019s width in pixels e.g. 1024\n\nOn mobile, it is the content width reported in the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "doc_height": {"name": "doc_height", "description": "The page\u2019s height in pixels e.g. 3000\n\nOn mobile, it is the content height reported in the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_currency": {"name": "tr_currency", "description": "Currency e.g. \u2018USD\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_total_base": {"name": "tr_total_base", "description": "Total in base currency e.g. 12.99", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_tax_base": {"name": "tr_tax_base", "description": "Total tax in base currency e.g. 3.00", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_shipping_base": {"name": "tr_shipping_base", "description": "decimal Delivery cost in base currency e.g. 0.00", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_currency": {"name": "ti_currency", "description": "Currency e.g. \u2018EUR\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_price_base": {"name": "ti_price_base", "description": "decimal Price in base currency e.g. 9.99", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_currency": {"name": "base_currency", "description": "Reporting currency e.g. \u2018GBP\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_timezone": {"name": "geo_timezone", "description": "Visitor timezone name e.g. \u2018Europe/London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_clickid": {"name": "mkt_clickid", "description": "The click ID e.g. \u2018ac3d8e459\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_network": {"name": "mkt_network", "description": "The ad network to which the click ID belongs e.g. \u2018DoubleClick\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "etl_tags": {"name": "etl_tags", "description": "JSON of tags for this ETL run e.g. \u201c[\u2018prod\u2019]\u201d", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_sent_tstamp": {"name": "dvce_sent_tstamp", "description": "When the event was sent by the client device e.g. \u20182013-11-26 00:03:58.032\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_user_identifier": {"name": "refr_user_identifier", "description": "User identifier specified in your project variables. By default this is the true domain_userid, a user ID set by Snowplow using 1st party cookie e.g. \u2018bc2e92ec6c204a14\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_dvce_tstamp": {"name": "refr_dvce_tstamp", "description": "The time of attaching the domain_userid to the inbound link e.g. \u20182013-11-26 00:02:05\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_identifier": {"name": "session_identifier", "description": "The session identifier as defined in your project variables. Default to domain_sessionid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "derived_tstamp": {"name": "derived_tstamp", "description": "Timestamp making allowance for innaccurate device clock e.g. \u20182013-11-26 00:02:04\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_vendor": {"name": "event_vendor", "description": "Who defined the event e.g. \u2018com.acme\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "Event name e.g. \u2018link_click\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_format": {"name": "event_format", "description": "Format for event e.g. \u2018jsonschema\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_version": {"name": "event_version", "description": "Version of event schema e.g. \u20181-0-2\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_fingerprint": {"name": "event_fingerprint", "description": "Hash client-set event fields e.g. AADCE520E20C2899F4CED228A79A3083", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "true_tstamp": {"name": "true_tstamp", "description": "User-set \u201ctrue timestamp\u201d for the event e.g. \u20182013-11-26 00:02:04\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_id": {"name": "view_id", "description": "A UUID for each page view e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_view__id": {"name": "page_view__id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_view___tstamp": {"name": "page_view___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_view___id": {"name": "page_view___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab__category": {"name": "iab__category", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab__primary_impact": {"name": "iab__primary_impact", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab__reason": {"name": "iab__reason", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab__spider_or_robot": {"name": "iab__spider_or_robot", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab___tstamp": {"name": "iab___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab___id": {"name": "iab___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__device_family": {"name": "ua__device_family", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_family": {"name": "ua__os_family", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_major": {"name": "ua__os_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_minor": {"name": "ua__os_minor", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_patch": {"name": "ua__os_patch", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_patch_minor": {"name": "ua__os_patch_minor", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_version": {"name": "ua__os_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_family": {"name": "ua__useragent_family", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_major": {"name": "ua__useragent_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_minor": {"name": "ua__useragent_minor", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_patch": {"name": "ua__useragent_patch", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_version": {"name": "ua__useragent_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua___tstamp": {"name": "ua___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua___id": {"name": "ua___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmp__elapsed_time": {"name": "cmp__elapsed_time", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmp___tstamp": {"name": "cmp___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmp___id": {"name": "cmp___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent__basis_for_processing": {"name": "consent__basis_for_processing", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent__consent_version": {"name": "consent__consent_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent__consent_scopes": {"name": "consent__consent_scopes", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent__domains_applied": {"name": "consent__domains_applied", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent__consent_url": {"name": "consent__consent_url", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent__event_type": {"name": "consent__event_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent__gdpr_applies": {"name": "consent__gdpr_applies", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent___tstamp": {"name": "consent___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent___id": {"name": "consent___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__viewport": {"name": "browser__viewport", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__document_size": {"name": "browser__document_size", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__resolution": {"name": "browser__resolution", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__color_depth": {"name": "browser__color_depth", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__device_pixel_ratio": {"name": "browser__device_pixel_ratio", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__cookies_enabled": {"name": "browser__cookies_enabled", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__online": {"name": "browser__online", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__browser_language": {"name": "browser__browser_language", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__document_language": {"name": "browser__document_language", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__webdriver": {"name": "browser__webdriver", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__device_memory": {"name": "browser__device_memory", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__hardware_concurrency": {"name": "browser__hardware_concurrency", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__tab_id": {"name": "browser__tab_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser___tstamp": {"name": "browser___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser___id": {"name": "browser___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_class": {"name": "yauaa__agent_class", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_information_email": {"name": "yauaa__agent_information_email", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_name": {"name": "yauaa__agent_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_name_version": {"name": "yauaa__agent_name_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_name_version_major": {"name": "yauaa__agent_name_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_version": {"name": "yauaa__agent_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_version_major": {"name": "yauaa__agent_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_brand": {"name": "yauaa__device_brand", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_class": {"name": "yauaa__device_class", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_cpu": {"name": "yauaa__device_cpu", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_cpu_bits": {"name": "yauaa__device_cpu_bits", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_name": {"name": "yauaa__device_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_version": {"name": "yauaa__device_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_class": {"name": "yauaa__layout_engine_class", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_name": {"name": "yauaa__layout_engine_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_name_version": {"name": "yauaa__layout_engine_name_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_name_version_major": {"name": "yauaa__layout_engine_name_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_version": {"name": "yauaa__layout_engine_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_version_major": {"name": "yauaa__layout_engine_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__network_type": {"name": "yauaa__network_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_class": {"name": "yauaa__operating_system_class", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_name": {"name": "yauaa__operating_system_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_name_version": {"name": "yauaa__operating_system_name_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_name_version_major": {"name": "yauaa__operating_system_name_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_version": {"name": "yauaa__operating_system_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_version_build": {"name": "yauaa__operating_system_version_build", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_version_major": {"name": "yauaa__operating_system_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__webview_app_name": {"name": "yauaa__webview_app_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__webview_app_name_version_major": {"name": "yauaa__webview_app_name_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__webview_app_version": {"name": "yauaa__webview_app_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__webview_app_version_major": {"name": "yauaa__webview_app_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa___tstamp": {"name": "yauaa___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa___id": {"name": "yauaa___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__id": {"name": "screen_view__id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__name": {"name": "screen_view__name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__previous_id": {"name": "screen_view__previous_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__previous_name": {"name": "screen_view__previous_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__previous_type": {"name": "screen_view__previous_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__transition_type": {"name": "screen_view__transition_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__type": {"name": "screen_view__type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__session_id": {"name": "session__session_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__session_index": {"name": "session__session_index", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__previous_session_id": {"name": "session__previous_session_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__user_id": {"name": "session__user_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__first_event_id": {"name": "session__first_event_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__event_index": {"name": "session__event_index", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__storage_mechanism": {"name": "session__storage_mechanism", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__first_event_timestamp": {"name": "session__first_event_timestamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__device_manufacturer": {"name": "mobile__device_manufacturer", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__device_model": {"name": "mobile__device_model", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__os_type": {"name": "mobile__os_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__os_version": {"name": "mobile__os_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__android_idfa": {"name": "mobile__android_idfa", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__apple_idfa": {"name": "mobile__apple_idfa", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__apple_idfv": {"name": "mobile__apple_idfv", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__carrier": {"name": "mobile__carrier", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__open_idfa": {"name": "mobile__open_idfa", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__network_technology": {"name": "mobile__network_technology", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__network_type": {"name": "mobile__network_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__physical_memory": {"name": "mobile__physical_memory", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__system_available_memory": {"name": "mobile__system_available_memory", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__app_available_memory": {"name": "mobile__app_available_memory", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__battery_level": {"name": "mobile__battery_level", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__battery_state": {"name": "mobile__battery_state", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__low_power_mode": {"name": "mobile__low_power_mode", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__available_storage": {"name": "mobile__available_storage", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__total_storage": {"name": "mobile__total_storage", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__is_portrait": {"name": "mobile__is_portrait", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__resolution": {"name": "mobile__resolution", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__scale": {"name": "mobile__scale", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__language": {"name": "mobile__language", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__app_set_id": {"name": "mobile__app_set_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__app_set_id_scope": {"name": "mobile__app_set_id_scope", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__latitude": {"name": "geo__latitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__longitude": {"name": "geo__longitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__latitude_longitude_accuracy": {"name": "geo__latitude_longitude_accuracy", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__altitude": {"name": "geo__altitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__altitude_accuracy": {"name": "geo__altitude_accuracy", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__bearing": {"name": "geo__bearing", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__speed": {"name": "geo__speed", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app__build": {"name": "app__build", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app__version": {"name": "app__version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__id": {"name": "screen__id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__name": {"name": "screen__name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__activity": {"name": "screen__activity", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__fragment": {"name": "screen__fragment", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__top_view_controller": {"name": "screen__top_view_controller", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__type": {"name": "screen__type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__view_controller": {"name": "screen__view_controller", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deep_link__url": {"name": "deep_link__url", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deep_link__referrer": {"name": "deep_link__referrer", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__message": {"name": "app_error__message", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__programming_language": {"name": "app_error__programming_language", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__class_name": {"name": "app_error__class_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__exception_name": {"name": "app_error__exception_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__is_fatal": {"name": "app_error__is_fatal", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__line_number": {"name": "app_error__line_number", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__stack_trace": {"name": "app_error__stack_trace", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__thread_id": {"name": "app_error__thread_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__thread_name": {"name": "app_error__thread_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__foreground_sec": {"name": "screen_summary__foreground_sec", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__background_sec": {"name": "screen_summary__background_sec", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__last_item_index": {"name": "screen_summary__last_item_index", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__items_count": {"name": "screen_summary__items_count", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__min_x_offset": {"name": "screen_summary__min_x_offset", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__min_y_offset": {"name": "screen_summary__min_y_offset", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__max_x_offset": {"name": "screen_summary__max_x_offset", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__max_y_offset": {"name": "screen_summary__max_y_offset", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__content_width": {"name": "screen_summary__content_width", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__content_height": {"name": "screen_summary__content_height", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/base/scratch/base_scratch.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "tags": ["this_run"], "schema": "scratch", "sort": "collector_tstamp", "dist": "event_id"}, "created_at": 1706612343.9526873, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_base_events_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n sort='collector_tstamp',\n dist='event_id',\n tags=[\"this_run\"]\n )\n}}\n\n{# Setting sdes or contexts for Postgres / Redshift. Dbt passes variables by reference so need to use copy to avoid altering the list multiple times #}\n{% set contexts = var('snowplow__entities_or_sdes', []).copy() %}\n\n{% if var('snowplow__enable_web') %}\n\n {% do contexts.append({'schema': var('snowplow__page_view_context'), 'prefix': 'page_view_', 'single_entity': True}) %}\n\n {% if var('snowplow__enable_iab', false) -%}\n {% do contexts.append({'schema': var('snowplow__iab_context'), 'prefix': 'iab_', 'single_entity': True}) %}\n {% endif -%}\n\n {% if var('snowplow__enable_ua', false) -%}\n {% do contexts.append({'schema': var('snowplow__ua_parser_context'), 'prefix': 'ua_', 'single_entity': True}) %}\n {% endif -%}\n\n {% if var('snowplow__enable_consent', false) -%}\n {% do contexts.append({'schema': var('snowplow__cmp_visible_events'), 'prefix': 'cmp_', 'single_entity': True}) %}\n {% do contexts.append({'schema': var('snowplow__consent_preferences_events'), 'prefix': 'consent_', 'single_entity': True}) %}\n {% endif -%}\n\n {% if var('snowplow__enable_cwv', false) -%}\n {% do contexts.append({'schema': var('snowplow__cwv_events'), 'prefix': 'cwv_', 'single_entity': True}) %}\n {% endif -%}\n\n {% if var('snowplow__enable_browser_context', false) -%}\n {% do contexts.append({'schema': var('snowplow__browser_context'), 'prefix': 'browser_', 'single_entity': True}) %}\n {% endif -%}\n\n{% endif -%}\n\n{% if var('snowplow__enable_mobile') %}\n\n {% do contexts.append({'schema': var('snowplow__screen_view_events'), 'prefix': 'screen_view_', 'single_entity': True}) %}\n {% do contexts.append({'schema': var('snowplow__session_context'), 'prefix': 'session_', 'single_entity': True}) %}\n\n {% if var('snowplow__enable_mobile_context', false) -%}\n {% do contexts.append({'schema': var('snowplow__mobile_context'), 'prefix': 'mobile_', 'single_entity': True}) %}\n {% endif -%}\n\n {% if var('snowplow__enable_geolocation_context', false) -%}\n {% do contexts.append({'schema': var('snowplow__geolocation_context'), 'prefix': 'geo_', 'single_entity': True}) %}\n {% endif -%}\n\n {% if var('snowplow__enable_application_context', false) -%}\n {% do contexts.append({'schema': var('snowplow__application_context'), 'prefix': 'app_', 'single_entity': True}) %}\n {% endif -%}\n\n {% if var('snowplow__enable_screen_context', false) -%}\n {% do contexts.append({'schema': var('snowplow__screen_context'), 'prefix': 'screen_', 'single_entity': True}) %}\n {% endif -%}\n\n {% if var('snowplow__enable_app_errors', false) -%}\n {% do contexts.append({'schema': var('snowplow__application_error_events'), 'prefix': 'app_error_', 'single_entity': True}) %}\n {% endif -%}\n\n {% if var('snowplow__enable_deep_link_context', false) -%}\n {% do contexts.append({'schema': var('snowplow__deep_link_context'), 'prefix': 'deep_link_', 'single_entity': True}) %}\n {% endif -%}\n\n {% if var('snowplow__enable_screen_summary_context', false) -%}\n {% do contexts.append({'schema': var('snowplow__screen_summary_context'), 'prefix': 'screen_summary_', 'single_entity': True}) %}\n {% endif -%}\n\n{% endif -%}\n\n{% if var('snowplow__enable_yauaa', false) -%}\n {% do contexts.append({'schema': var('snowplow__yauaa_context'), 'prefix': 'yauaa_', 'single_entity': True}) %}\n{% endif -%}\n\n{% set base_events_query = snowplow_utils.base_create_snowplow_events_this_run(\n sessions_this_run_table='snowplow_unified_base_sessions_this_run',\n session_identifiers= session_identifiers(),\n session_sql=var('snowplow__session_sql', none),\n session_timestamp=var('snowplow__session_timestamp', 'collector_tstamp'),\n derived_tstamp_partitioned=var('snowplow__derived_tstamp_partitioned', true),\n days_late_allowed=var('snowplow__days_late_allowed', 3),\n max_session_days=var('snowplow__max_session_days', 3),\n app_ids=var('snowplow__app_id', []),\n snowplow_events_database=var('snowplow__database', target.database) if target.type not in ['databricks', 'spark'] else var('snowplow__databricks_catalog', 'hive_metastore') if target.type in ['databricks'] else var('snowplow__atomic_schema', 'atomic'),\n snowplow_events_schema=var('snowplow__atomic_schema', 'atomic'),\n snowplow_events_table=var('snowplow__events_table', 'events'),\n entities_or_sdes=contexts\n ) %}\n\n\nwith base_query as (\n {{ base_events_query }}\n)\n\nselect\n *\n -- extract commonly used contexts / sdes (prefixed)\n {{ get_web_page_context_fields() }}\n {{ get_iab_context_fields() }}\n {{ get_ua_context_fields() }}\n {{ get_yauaa_context_fields() }}\n {{ get_browser_context_fields() }}\n {{ get_screen_view_event_fields() }}\n {{ get_session_context_fields() }}\n {{ get_mobile_context_fields() }}\n {{ get_geo_context_fields() }}\n {{ get_app_context_fields() }}\n {{ get_screen_context_fields() }}\n {{ get_deep_link_context_fields() }}\n {{ get_app_error_event_fields() }}\n {{ get_screen_summary_context_fields() }}\n\n\n{% if var('snowplow__enable_consent', false) -%}\n {{ get_consent_event_fields() }}\n {{ get_cmp_visible_event_fields() }}\n{% endif -%}\n\n{% if var('snowplow__enable_cwv', false) -%}\n {{ get_cwv_fields() }}\n{% endif -%}\nfrom base_query", "language": "sql", "refs": [{"name": "snowplow_unified_base_sessions_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_sessions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_unified.session_identifiers", "macro.snowplow_utils.base_create_snowplow_events_this_run", "macro.snowplow_unified.get_web_page_context_fields", "macro.snowplow_unified.get_iab_context_fields", "macro.snowplow_unified.get_ua_context_fields", "macro.snowplow_unified.get_yauaa_context_fields", "macro.snowplow_unified.get_browser_context_fields", "macro.snowplow_unified.get_screen_view_event_fields", "macro.snowplow_unified.get_session_context_fields", "macro.snowplow_unified.get_mobile_context_fields", "macro.snowplow_unified.get_geo_context_fields", "macro.snowplow_unified.get_app_context_fields", "macro.snowplow_unified.get_screen_context_fields", "macro.snowplow_unified.get_deep_link_context_fields", "macro.snowplow_unified.get_app_error_event_fields", "macro.snowplow_unified.get_screen_summary_context_fields", "macro.snowplow_unified.get_consent_event_fields", "macro.snowplow_unified.get_cmp_visible_event_fields", "macro.snowplow_unified.get_cwv_fields"], "nodes": ["model.snowplow_unified.snowplow_unified_base_sessions_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/scratch/snowplow_unified_base_events_this_run.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n\n\n \n\n \n \n \n \n \n \n \n\n \n \n\n \n \n \n \n \n \n \n\n\n\nwith base_query as (\n \n with identified_events AS (\n select\n COALESCE(\n \ne.contexts_com_snowplowanalytics_snowplow_client_session_1[0]:sessionId::TEXT\n,e.domain_sessionid,NULL\n ) as session_identifier,\n e.*\n \n\n from SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.snowplow_unified_events_stg e\n\n )\n\n select\n a.*,\n b.user_identifier -- take user_identifier from manifest. This ensures only 1 domain_userid per session.\n\n from identified_events as a\n inner join SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_base_sessions_this_run as b\n on a.session_identifier = b.session_identifier\n\n where a.collector_tstamp <= \n\n dateadd(\n day,\n 3,\n b.start_tstamp\n )\n\n\n and a.dvce_sent_tstamp <= \n\n dateadd(\n day,\n 3,\n a.dvce_created_tstamp\n )\n\n\n and a.collector_tstamp >= \n cast('2020-07-03 15:55:18.542000' as TIMESTAMP)\n \n and a.collector_tstamp <= \n cast('2021-03-02 23:57:07.557000' as TIMESTAMP)\n \n and a.collector_tstamp >= b.start_tstamp -- deal with late loading events\n\n \n\n and true\n\n qualify row_number() over (partition by a.event_id order by a.collector_tstamp, a.dvce_created_tstamp) = 1\n \n)\n\nselect\n *\n -- extract commonly used contexts / sdes (prefixed)\n \n \n , contexts_com_snowplowanalytics_snowplow_web_page_1[0]:id::varchar as page_view__id\n \n\n \n , contexts_com_iab_snowplow_spiders_and_robots_1[0]:category::VARCHAR as iab__category\n , contexts_com_iab_snowplow_spiders_and_robots_1[0]:primaryImpact::VARCHAR as iab__primary_impact\n , contexts_com_iab_snowplow_spiders_and_robots_1[0]:reason::VARCHAR as iab__reason\n , contexts_com_iab_snowplow_spiders_and_robots_1[0]:spiderOrRobot::BOOLEAN as iab__spider_or_robot\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:useragentFamily::VARCHAR as ua__useragent_family\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:useragentMajor::VARCHAR as ua__useragent_major\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:useragentMinor::VARCHAR as ua__useragent_minor\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:useragentPatch::VARCHAR as ua__useragent_patch\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:useragentVersion::VARCHAR as ua__useragent_version\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:osFamily::VARCHAR as ua__os_family\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:osMajor::VARCHAR as ua__os_major\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:osMinor::VARCHAR as ua__os_minor\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:osPatch::VARCHAR as ua__os_patch\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:osPatchMinor::VARCHAR as ua__os_patch_minor\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:osVersion::VARCHAR as ua__os_version\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:deviceFamily::VARCHAR as ua__device_family\n\n , contexts_nl_basjes_yauaa_context_1[0]:deviceClass::VARCHAR as yauaa__device_class\n , contexts_nl_basjes_yauaa_context_1[0]:agentClass::VARCHAR as yauaa__agent_class\n , contexts_nl_basjes_yauaa_context_1[0]:agentName::VARCHAR as yauaa__agent_name\n , contexts_nl_basjes_yauaa_context_1[0]:agentNameVersion::VARCHAR as yauaa__agent_name_version\n , contexts_nl_basjes_yauaa_context_1[0]:agentNameVersionMajor::VARCHAR as yauaa__agent_name_version_major\n , contexts_nl_basjes_yauaa_context_1[0]:agentVersion::VARCHAR as yauaa__agent_version\n , contexts_nl_basjes_yauaa_context_1[0]:agentVersionMajor::VARCHAR as yauaa__agent_version_major\n , contexts_nl_basjes_yauaa_context_1[0]:deviceBrand::VARCHAR as yauaa__device_brand\n , contexts_nl_basjes_yauaa_context_1[0]:deviceName::VARCHAR as yauaa__device_name\n , contexts_nl_basjes_yauaa_context_1[0]:deviceVersion::VARCHAR as yauaa__device_version\n , contexts_nl_basjes_yauaa_context_1[0]:layoutEngineClass::VARCHAR as yauaa__layout_engine_class\n , contexts_nl_basjes_yauaa_context_1[0]:layoutEngineName::VARCHAR as yauaa__layout_engine_name\n , contexts_nl_basjes_yauaa_context_1[0]:layoutEngineNameVersion::VARCHAR as yauaa__layout_engine_name_version\n , contexts_nl_basjes_yauaa_context_1[0]:layoutEngineNameVersionMajor::VARCHAR as yauaa__layout_engine_name_version_major\n , contexts_nl_basjes_yauaa_context_1[0]:layoutEngineVersion::VARCHAR as yauaa__layout_engine_version\n , contexts_nl_basjes_yauaa_context_1[0]:layoutEngineVersionMajor::VARCHAR as yauaa__layout_engine_version_major\n , contexts_nl_basjes_yauaa_context_1[0]:operatingSystemClass::VARCHAR as yauaa__operating_system_class\n , contexts_nl_basjes_yauaa_context_1[0]:operatingSystemName::VARCHAR as yauaa__operating_system_name\n , contexts_nl_basjes_yauaa_context_1[0]:operatingSystemNameVersion::VARCHAR as yauaa__operating_system_name_version\n , contexts_nl_basjes_yauaa_context_1[0]:operatingSystemVersion::VARCHAR as yauaa__operating_system_version\n \n \n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:viewport::varchar AS browser__viewport\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:documentSize::varchar AS browser__document_size\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:resolution::varchar AS browser__resolution\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:colorDepth::int AS browser__color_depth\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:devicePixelRatio::float AS browser__device_pixel_ratio\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:cookiesEnabled::boolean AS browser__cookies_enabled\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:online::boolean AS browser__online\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:browserLanguage::varchar AS browser__browser_language\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:documentLanguage::varchar AS browser__document_language\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:webdriver::boolean AS browser__webdriver\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:deviceMemory::int AS browser__device_memory\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:hardwareConcurrency::int AS browser__hardware_concurrency\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:tabId::varchar AS browser__tab_id\n \n\n \n \n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1:id::varchar(36) AS screen_view__id\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1:name::varchar AS screen_view__name\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1:previousId::varchar(36) AS screen_view__previous_id\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1:previousName::varchar AS screen_view__previous_name\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1:previousType::varchar AS screen_view__previous_type\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1:transitionType::varchar AS screen_view__transition_type\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1:type::varchar AS screen_view__type\n \n\n \n \n , contexts_com_snowplowanalytics_snowplow_client_session_1[0]:sessionId::varchar(36) AS session__session_id\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0]:sessionIndex::int AS session__session_index\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0]:previousSessionId::varchar(36) AS session__previous_session_id\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0]:userId::varchar(36) AS session__user_id\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0]:firstEventId::varchar(36) AS session__first_event_id\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0]:eventIndex::int AS session__event_index\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0]:storageMechanism::varchar(36) AS session__storage_mechanism\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0]:firstEventTimestamp::varchar(36) AS session__first_event_timestamp\n \n\n \n \n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:deviceManufacturer::varchar AS mobile__device_manufacturer\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:deviceModel::varchar AS mobile__device_model\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:osType::varchar AS mobile__os_type\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:osVersion::varchar AS mobile__os_version\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:androidIdfa::varchar AS mobile__android_idfa\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:appleIdfa::varchar AS mobile__apple_idfa\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:appleIdfv::varchar AS mobile__apple_idfv\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:carrier::varchar AS mobile__carrier\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:openIdfa::varchar AS mobile__open_idfa\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:networkTechnology::varchar AS mobile__network_technology\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:networkType::varchar(255) AS mobile__network_type\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:physicalMemory::int AS mobile__physical_memory\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:systemAvailableMemory::int AS mobile__system_available_memory\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:appAvailableMemory::int AS mobile__app_available_memory\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:batteryLevel::int AS mobile__battery_level\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:batteryState::varchar AS mobile__battery_state\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:lowPowerMode::boolean AS mobile__low_power_mode\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:availableStorage::int AS mobile__available_storage\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:totalStorage::int AS mobile__total_storage\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:isPortrait::boolean AS mobile__is_portrait\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:resolution::varchar AS mobile__resolution\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:scale::float AS mobile__scale\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:language::varchar AS mobile__language\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:appSetId::varchar AS mobile__app_set_id\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:appSetIdScope::varchar AS mobile__app_set_id_scope\n \n\n \n \n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:latitude::float AS geo__latitude\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:longitude::float AS geo__longitude\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:latitudeLongitudeAccuracy::float AS geo__latitude_longitude_accuracy\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:altitude::float AS geo__altitude\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:altitudeAccuracy::float AS geo__altitude_accuracy\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:bearing::float AS geo__bearing\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:speed::float AS geo__speed\n \n\n \n \n , contexts_com_snowplowanalytics_mobile_application_1[0]:build::varchar(255) AS app__build\n , contexts_com_snowplowanalytics_mobile_application_1[0]:version::varchar(255) AS app__version\n \n\n \n \n , contexts_com_snowplowanalytics_mobile_screen_1[0]:id::varchar(36) AS screen__id\n , contexts_com_snowplowanalytics_mobile_screen_1[0]:name::varchar AS screen__name\n , contexts_com_snowplowanalytics_mobile_screen_1[0]:activity::varchar AS screen__activity\n , contexts_com_snowplowanalytics_mobile_screen_1[0]:fragment::varchar AS screen__fragment\n , contexts_com_snowplowanalytics_mobile_screen_1[0]:topViewController::varchar AS screen__top_view_controller\n , contexts_com_snowplowanalytics_mobile_screen_1[0]:type::varchar AS screen__type\n , contexts_com_snowplowanalytics_mobile_screen_1[0]:viewController::varchar AS screen__view_controller\n \n\n \n \n , contexts_com_snowplowanalytics_mobile_deep_link_1[0]:url::varchar AS deep_link__url\n , contexts_com_snowplowanalytics_mobile_deep_link_1[0]:referrer::varchar AS deep_link__referrer\n \n\n \n \n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:message::VARCHAR() AS app_error__message\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:programmingLanguage::VARCHAR() AS app_error__programming_language\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:className::VARCHAR() AS app_error__class_name\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:exceptionName::VARCHAR() AS app_error__exception_name\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:isFatal::BOOLEAN AS app_error__is_fatal\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:lineNumber::INT AS app_error__line_number\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:stackTrace::VARCHAR() AS app_error__stack_trace\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:threadId::INT AS app_error__thread_id\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:threadName::VARCHAR() AS app_error__thread_name\n \n\n \n \n , cast(null as FLOAT) as screen_summary__foreground_sec\n , cast(null as FLOAT) as screen_summary__background_sec\n , cast(null as INT) as screen_summary__last_item_index\n , cast(null as INT) as screen_summary__items_count\n , cast(null as INT) as screen_summary__min_x_offset\n , cast(null as INT) as screen_summary__min_y_offset\n , cast(null as INT) as screen_summary__max_x_offset\n , cast(null as INT) as screen_summary__max_y_offset\n , cast(null as INT) as screen_summary__content_width\n , cast(null as INT) as screen_summary__content_height\n \n\n\n\n\n \n\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1:eventType::varchar as consent__event_type\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1:basisForProcessing::varchar as consent__basis_for_processing\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1:consentUrl::varchar as consent__consent_url\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1:consentVersion::varchar as consent__consent_version\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1:consentScopes::array as consent__consent_scopes\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1:domainsApplied::array as consent__domains_applied\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1:gdprApplies::boolean as consent__gdpr_applies\n\n \n\n \n \n , unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1:elapsedTime::float as cmp__elapsed_time\n \n\n\n \n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1:lcp::decimal(14,4) as cwv__lcp\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1:fcp::decimal(14,4) as cwv__fcp\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1:fid::decimal(14,4) as cwv__fid\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1:cls::decimal(14,4) as cwv__cls\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1:inp::decimal(14,4) as cwv__inp\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1:ttfb::decimal(14,4) as cwv__ttfb\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1:navigationType::varchar as cwv__navigation_type\n \n\nfrom base_query", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_events_this_run": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_events_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "base/scratch/snowplow_unified_events_this_run.sql", "original_file_path": "models/base/scratch/snowplow_unified_events_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_events_this_run", "fqn": ["snowplow_unified", "base", "scratch", "snowplow_unified_events_this_run"], "alias": "snowplow_unified_events_this_run", "checksum": {"name": "sha256", "checksum": "1b15a9289933dbb2bf6df61c048be46bd040df3a39f35ddc65bfabb0bc367b4f"}, "config": {"enabled": true, "alias": null, "schema": "scratch", "database": null, "tags": ["base", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sort": "collector_tstamp", "dist": "event_id", "post-hook": [], "pre-hook": []}, "tags": ["base", "scratch", "this_run"], "description": "This table takes all the fields from the `base_events_this_run` table and with a help of a set of coalesces unifies certain fields for web and mobile depending on what is defined in the `unify_fields_query()` macro for easier downstream usage.\n\n**Note: This table should be used as the input to any custom modules that require event level data, rather than selecting straight from `atomic.events`**", "columns": {"session_identifier": {"name": "session_identifier", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_id": {"name": "app_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "etl_tstamp": {"name": "etl_tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "collector_tstamp": {"name": "collector_tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_created_tstamp": {"name": "dvce_created_tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event": {"name": "event", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "A UUID for each event e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}, "txn_id": {"name": "txn_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name_tracker": {"name": "name_tracker", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "v_tracker": {"name": "v_tracker", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "v_collector": {"name": "v_collector", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "v_etl": {"name": "v_etl", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_ipaddress": {"name": "user_ipaddress", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_fingerprint": {"name": "user_fingerprint", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "domain_userid": {"name": "domain_userid", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "domain_sessionidx": {"name": "domain_sessionidx", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network_userid": {"name": "network_userid", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_country": {"name": "geo_country", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_region": {"name": "geo_region", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_city": {"name": "geo_city", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_zipcode": {"name": "geo_zipcode", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_latitude": {"name": "geo_latitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_longitude": {"name": "geo_longitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_region_name": {"name": "geo_region_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ip_isp": {"name": "ip_isp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ip_organization": {"name": "ip_organization", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ip_domain": {"name": "ip_domain", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ip_netspeed": {"name": "ip_netspeed", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_url": {"name": "page_url", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_title": {"name": "page_title", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_referrer": {"name": "page_referrer", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlscheme": {"name": "page_urlscheme", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlhost": {"name": "page_urlhost", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlport": {"name": "page_urlport", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlpath": {"name": "page_urlpath", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlquery": {"name": "page_urlquery", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlfragment": {"name": "page_urlfragment", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlscheme": {"name": "refr_urlscheme", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlhost": {"name": "refr_urlhost", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlport": {"name": "refr_urlport", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlpath": {"name": "refr_urlpath", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlquery": {"name": "refr_urlquery", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlfragment": {"name": "refr_urlfragment", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_medium": {"name": "refr_medium", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_source": {"name": "refr_source", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_term": {"name": "refr_term", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_medium": {"name": "mkt_medium", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_source": {"name": "mkt_source", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_term": {"name": "mkt_term", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_content": {"name": "mkt_content", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_campaign": {"name": "mkt_campaign", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "se_category": {"name": "se_category", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "se_action": {"name": "se_action", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "se_label": {"name": "se_label", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "se_property": {"name": "se_property", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "se_value": {"name": "se_value", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_orderid": {"name": "tr_orderid", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_affiliation": {"name": "tr_affiliation", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_total": {"name": "tr_total", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_tax": {"name": "tr_tax", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_shipping": {"name": "tr_shipping", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_city": {"name": "tr_city", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_state": {"name": "tr_state", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_country": {"name": "tr_country", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_orderid": {"name": "ti_orderid", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_sku": {"name": "ti_sku", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_name": {"name": "ti_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_category": {"name": "ti_category", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_price": {"name": "ti_price", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_quantity": {"name": "ti_quantity", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pp_xoffset_min": {"name": "pp_xoffset_min", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pp_xoffset_max": {"name": "pp_xoffset_max", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pp_yoffset_min": {"name": "pp_yoffset_min", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pp_yoffset_max": {"name": "pp_yoffset_max", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent": {"name": "useragent", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_name": {"name": "br_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_family": {"name": "br_family", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_version": {"name": "br_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_type": {"name": "br_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_renderengine": {"name": "br_renderengine", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_lang": {"name": "br_lang", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_pdf": {"name": "br_features_pdf", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_flash": {"name": "br_features_flash", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_java": {"name": "br_features_java", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_director": {"name": "br_features_director", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_quicktime": {"name": "br_features_quicktime", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_realplayer": {"name": "br_features_realplayer", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_windowsmedia": {"name": "br_features_windowsmedia", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_gears": {"name": "br_features_gears", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_silverlight": {"name": "br_features_silverlight", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_cookies": {"name": "br_cookies", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_colordepth": {"name": "br_colordepth", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_viewwidth": {"name": "br_viewwidth", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_viewheight": {"name": "br_viewheight", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_name": {"name": "os_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_family": {"name": "os_family", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_manufacturer": {"name": "os_manufacturer", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_timezone": {"name": "os_timezone", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_type": {"name": "dvce_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_ismobile": {"name": "dvce_ismobile", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_screenwidth": {"name": "dvce_screenwidth", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_screenheight": {"name": "dvce_screenheight", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "doc_charset": {"name": "doc_charset", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "doc_width": {"name": "doc_width", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "doc_height": {"name": "doc_height", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_currency": {"name": "tr_currency", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_total_base": {"name": "tr_total_base", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_tax_base": {"name": "tr_tax_base", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_shipping_base": {"name": "tr_shipping_base", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_currency": {"name": "ti_currency", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_price_base": {"name": "ti_price_base", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_currency": {"name": "base_currency", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_timezone": {"name": "geo_timezone", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_clickid": {"name": "mkt_clickid", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_network": {"name": "mkt_network", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "etl_tags": {"name": "etl_tags", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_sent_tstamp": {"name": "dvce_sent_tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_domain_userid": {"name": "refr_domain_userid", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_dvce_tstamp": {"name": "refr_dvce_tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "domain_sessionid": {"name": "domain_sessionid", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "derived_tstamp": {"name": "derived_tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_vendor": {"name": "event_vendor", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_format": {"name": "event_format", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_version": {"name": "event_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_fingerprint": {"name": "event_fingerprint", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "true_tstamp": {"name": "true_tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "load_tstamp": {"name": "load_tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_identifier": {"name": "user_identifier", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_view__id": {"name": "page_view__id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_view___tstamp": {"name": "page_view___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_view___id": {"name": "page_view___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab__category": {"name": "iab__category", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab__primary_impact": {"name": "iab__primary_impact", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab__reason": {"name": "iab__reason", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab__spider_or_robot": {"name": "iab__spider_or_robot", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab___tstamp": {"name": "iab___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab___id": {"name": "iab___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__device_family": {"name": "ua__device_family", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_family": {"name": "ua__os_family", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_major": {"name": "ua__os_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_minor": {"name": "ua__os_minor", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_patch": {"name": "ua__os_patch", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_patch_minor": {"name": "ua__os_patch_minor", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_version": {"name": "ua__os_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_family": {"name": "ua__useragent_family", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_major": {"name": "ua__useragent_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_minor": {"name": "ua__useragent_minor", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_patch": {"name": "ua__useragent_patch", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_version": {"name": "ua__useragent_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua___tstamp": {"name": "ua___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua___id": {"name": "ua___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmp__elapsed_time": {"name": "cmp__elapsed_time", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmp___tstamp": {"name": "cmp___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmp___id": {"name": "cmp___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent__basis_for_processing": {"name": "consent__basis_for_processing", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent__consent_version": {"name": "consent__consent_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent__consent_scopes": {"name": "consent__consent_scopes", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent__domains_applied": {"name": "consent__domains_applied", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent__consent_url": {"name": "consent__consent_url", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent__event_type": {"name": "consent__event_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent__gdpr_applies": {"name": "consent__gdpr_applies", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent___tstamp": {"name": "consent___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent___id": {"name": "consent___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__viewport": {"name": "browser__viewport", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__document_size": {"name": "browser__document_size", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__resolution": {"name": "browser__resolution", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__color_depth": {"name": "browser__color_depth", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__device_pixel_ratio": {"name": "browser__device_pixel_ratio", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__cookies_enabled": {"name": "browser__cookies_enabled", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__online": {"name": "browser__online", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__browser_language": {"name": "browser__browser_language", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__document_language": {"name": "browser__document_language", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__webdriver": {"name": "browser__webdriver", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__device_memory": {"name": "browser__device_memory", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__hardware_concurrency": {"name": "browser__hardware_concurrency", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser__tab_id": {"name": "browser__tab_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser___tstamp": {"name": "browser___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser___id": {"name": "browser___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__id": {"name": "screen_view__id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__name": {"name": "screen_view__name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__previous_id": {"name": "screen_view__previous_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__previous_name": {"name": "screen_view__previous_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__previous_type": {"name": "screen_view__previous_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__transition_type": {"name": "screen_view__transition_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__type": {"name": "screen_view__type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view___tstamp": {"name": "screen_view___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view___id": {"name": "screen_view___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__session_index": {"name": "session__session_index", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__session_id": {"name": "session__session_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__previous_session_id": {"name": "session__previous_session_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__user_id": {"name": "session__user_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__first_event_id": {"name": "session__first_event_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__event_index": {"name": "session__event_index", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__storage_mechanism": {"name": "session__storage_mechanism", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__first_event_timestamp": {"name": "session__first_event_timestamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session___tstamp": {"name": "session___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session___id": {"name": "session___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__device_manufacturer": {"name": "mobile__device_manufacturer", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__device_model": {"name": "mobile__device_model", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__os_type": {"name": "mobile__os_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__os_version": {"name": "mobile__os_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__android_idfa": {"name": "mobile__android_idfa", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__apple_idfa": {"name": "mobile__apple_idfa", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__apple_idfv": {"name": "mobile__apple_idfv", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__carrier": {"name": "mobile__carrier", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__open_idfa": {"name": "mobile__open_idfa", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__network_technology": {"name": "mobile__network_technology", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__network_type": {"name": "mobile__network_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__physical_memory": {"name": "mobile__physical_memory", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__system_available_memory": {"name": "mobile__system_available_memory", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__app_available_memory": {"name": "mobile__app_available_memory", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__battery_level": {"name": "mobile__battery_level", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__battery_state": {"name": "mobile__battery_state", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__low_power_mode": {"name": "mobile__low_power_mode", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__available_storage": {"name": "mobile__available_storage", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__total_storage": {"name": "mobile__total_storage", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__is_portrait": {"name": "mobile__is_portrait", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__resolution": {"name": "mobile__resolution", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__scale": {"name": "mobile__scale", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__language": {"name": "mobile__language", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__app_set_id": {"name": "mobile__app_set_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__app_set_id_scope": {"name": "mobile__app_set_id_scope", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile___tstamp": {"name": "mobile___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile___id": {"name": "mobile___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__latitude": {"name": "geo__latitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__longitude": {"name": "geo__longitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__latitude_longitude_accuracy": {"name": "geo__latitude_longitude_accuracy", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__altitude": {"name": "geo__altitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__altitude_accuracy": {"name": "geo__altitude_accuracy", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__bearing": {"name": "geo__bearing", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo__speed": {"name": "geo__speed", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo___tstamp": {"name": "geo___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo___id": {"name": "geo___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app__build": {"name": "app__build", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app__version": {"name": "app__version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app___tstamp": {"name": "app___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app___id": {"name": "app___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__id": {"name": "screen__id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__name": {"name": "screen__name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__activity": {"name": "screen__activity", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__type": {"name": "screen__type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__fragment": {"name": "screen__fragment", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__top_view_controller": {"name": "screen__top_view_controller", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__view_controller": {"name": "screen__view_controller", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen___tstamp": {"name": "screen___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen___id": {"name": "screen___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__message": {"name": "app_error__message", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__programming_language": {"name": "app_error__programming_language", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__class_name": {"name": "app_error__class_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__exception_name": {"name": "app_error__exception_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__is_fatal": {"name": "app_error__is_fatal", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__line_number": {"name": "app_error__line_number", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__stack_trace": {"name": "app_error__stack_trace", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__thread_id": {"name": "app_error__thread_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error__thread_name": {"name": "app_error__thread_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error___tstamp": {"name": "app_error___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_error___id": {"name": "app_error___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__foreground_sec": {"name": "screen_summary__foreground_sec", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__background_sec": {"name": "screen_summary__background_sec", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__last_item_index": {"name": "screen_summary__last_item_index", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__items_count": {"name": "screen_summary__items_count", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__min_x_offset": {"name": "screen_summary__min_x_offset", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__min_y_offset": {"name": "screen_summary__min_y_offset", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__max_x_offset": {"name": "screen_summary__max_x_offset", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__max_y_offset": {"name": "screen_summary__max_y_offset", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__content_width": {"name": "screen_summary__content_width", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_summary__content_height": {"name": "screen_summary__content_height", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deep_link__url": {"name": "deep_link__url", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deep_link__referrer": {"name": "deep_link__referrer", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deep_link___tstamp": {"name": "deep_link___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deep_link___id": {"name": "deep_link___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_class": {"name": "yauaa__agent_class", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_information_email": {"name": "yauaa__agent_information_email", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_name": {"name": "yauaa__agent_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_name_version": {"name": "yauaa__agent_name_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_name_version_major": {"name": "yauaa__agent_name_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_version": {"name": "yauaa__agent_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_version_major": {"name": "yauaa__agent_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_brand": {"name": "yauaa__device_brand", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_class": {"name": "yauaa__device_class", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_cpu": {"name": "yauaa__device_cpu", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_cpu_bits": {"name": "yauaa__device_cpu_bits", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_name": {"name": "yauaa__device_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_version": {"name": "yauaa__device_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_class": {"name": "yauaa__layout_engine_class", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_name": {"name": "yauaa__layout_engine_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_name_version": {"name": "yauaa__layout_engine_name_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_name_version_major": {"name": "yauaa__layout_engine_name_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_version": {"name": "yauaa__layout_engine_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_version_major": {"name": "yauaa__layout_engine_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__network_type": {"name": "yauaa__network_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_class": {"name": "yauaa__operating_system_class", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_name": {"name": "yauaa__operating_system_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_name_version": {"name": "yauaa__operating_system_name_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_name_version_major": {"name": "yauaa__operating_system_name_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_version": {"name": "yauaa__operating_system_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_version_build": {"name": "yauaa__operating_system_version_build", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_version_major": {"name": "yauaa__operating_system_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__webview_app_name": {"name": "yauaa__webview_app_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__webview_app_name_version_major": {"name": "yauaa__webview_app_name_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__webview_app_version": {"name": "yauaa__webview_app_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__webview_app_version_major": {"name": "yauaa__webview_app_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa___tstamp": {"name": "yauaa___tstamp", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa___id": {"name": "yauaa___id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_id": {"name": "view_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_session_index": {"name": "device_session_index", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referrer": {"name": "referrer", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url": {"name": "url", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_resolution": {"name": "screen_resolution", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_type": {"name": "os_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_version": {"name": "os_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_identifier": {"name": "device_identifier", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform_name": {"name": "platform_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_category": {"name": "device_category", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/base/scratch/base_scratch.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "tags": ["this_run"], "schema": "scratch", "sort": "collector_tstamp", "dist": "event_id"}, "created_at": 1706612343.9780705, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_events_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n sort='collector_tstamp',\n dist='event_id',\n tags=[\"this_run\"]\n )\n}}\n\n{{ unify_fields_query() }}", "language": "sql", "refs": [{"name": "snowplow_unified_base_events_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_unified.unify_fields_query"], "nodes": ["model.snowplow_unified.snowplow_unified_base_events_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/scratch/snowplow_unified_events_this_run.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n with base as (\n\n select\n *,\n\n cast(coalesce(\n \n ev.page_view__id,\n \n \n ev.screen_view__id,\n \n ev.screen__id,\n \n \n null, null) as TEXT ) as view_id,\n\n cast(coalesce(\n \n ev.session__session_index,\n \n \n ev.domain_sessionidx,\n \n null, null) as INT ) as device_session_index,\n\n cast(coalesce(\n \n ev.deep_link__referrer,\n \n null, null) as TEXT ) as referrer,\n\n cast(coalesce(\n \n ev.deep_link__url,\n \n null, null) as TEXT ) as url,\n\n cast(coalesce(\n \n ev.mobile__resolution,\n \n null, null) as TEXT ) as screen_resolution,\n\n cast(coalesce(\n \n ev.mobile__os_type,\n \n \n ev.yauaa__operating_system_name,\n \n \n ev.ua__os_family,\n \n null, null) as TEXT ) as os_type,\n\n cast(coalesce(\n \n ev.yauaa__operating_system_version,\n \n \n ev.mobile__os_version,\n \n \n ev.ua__os_version,\n \n null, null) as TEXT ) as os_version,\n\n cast(coalesce(\n \n ev.domain_userid,\n \n \n ev.session__user_id,\n \n null, null) as TEXT ) as device_identifier,\n\n case when platform = 'web' then 'Web' --includes mobile web\n when platform = 'mob' then 'Mobile/Tablet'\n when platform = 'pc' then 'Desktop/Laptop/Netbook'\n when platform = 'srv' then 'Server-Side App'\n when platform = 'app' then 'General App'\n when platform = 'tv' then 'Connected TV'\n when platform = 'cnsl' then 'Games Console'\n when platform = 'iot' then 'Internet of Things'\n when platform = 'headset' then 'AR/VR Headset' end as platform_name\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_base_events_this_run as ev\n\n )\n\n select\n *,\n\n \n case when platform = 'web' then yauaa__device_class\n when yauaa__device_class = 'Phone' then 'Mobile'\n when yauaa__device_class = 'Tablet' then 'Tablet'\n else platform_name end as device_category\n\n from base\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snowplow_manifest", "name": "snowplow_unified_base_sessions_lifecycle_manifest", "resource_type": "model", "package_name": "snowplow_unified", "path": "base/manifest/snowplow_unified_base_sessions_lifecycle_manifest.sql", "original_file_path": "models/base/manifest/snowplow_unified_base_sessions_lifecycle_manifest.sql", "unique_id": "model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest", "fqn": ["snowplow_unified", "base", "manifest", "snowplow_unified_base_sessions_lifecycle_manifest"], "alias": "snowplow_unified_base_sessions_lifecycle_manifest", "checksum": {"name": "sha256", "checksum": "f012dccb461225597c99baed26e9a63eff4b46b800b27eecb914ccc9e663f851"}, "config": {"enabled": true, "alias": null, "schema": "snowplow_manifest", "database": null, "tags": ["base", "manifest"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": "session_identifier", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "cluster_by": ["to_date(start_tstamp)"], "upsert_date_key": "start_tstamp", "sort": "start_tstamp", "dist": "session_identifier", "partition_by": null, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "snowplow_optimize": true, "post-hook": [], "pre-hook": []}, "tags": ["base", "manifest"], "description": "This incremental table is a manifest of all sessions that have been processed by the Snowplow dbt unified model. For each session, the start and end timestamp is recorded.\n\nBy knowing the lifecycle of a session the model is able to able to determine which sessions and thus events to process for a given timeframe, as well as the complete date range required to reprocess all events of each session.", "columns": {"session_identifier": {"name": "session_identifier", "description": "The session identifier as defined in your project variables. Default to domain_sessionid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}, "user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_tstamp": {"name": "start_tstamp", "description": "The `collector_tstamp` when the session began", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_tstamp": {"name": "end_tstamp", "description": "The `collector_tstamp` when the session ended", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/base/manifest/base_manifest.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "file_format": "delta", "bind": false, "tags": ["manifest"], "schema": "snowplow_manifest", "unique_key": "session_identifier", "upsert_date_key": "start_tstamp", "sort": "start_tstamp", "dist": "session_identifier", "partition_by": null, "cluster_by": ["to_date(start_tstamp)"], "full_refresh": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "snowplow_optimize": true}, "created_at": 1706612343.9934244, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_base_sessions_lifecycle_manifest", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized='incremental',\n unique_key='session_identifier',\n upsert_date_key='start_tstamp',\n sort='start_tstamp',\n dist='session_identifier',\n partition_by = snowplow_utils.get_value_by_target_type(bigquery_val={\n \"field\": \"start_tstamp\",\n \"data_type\": \"timestamp\"\n }, databricks_val='start_tstamp_date'),\n cluster_by=snowplow_utils.get_value_by_target_type(bigquery_val=[\"session_identifier\"], snowflake_val=[\"to_date(start_tstamp)\"]),\n full_refresh=snowplow_unified.allow_refresh(),\n tags=[\"manifest\"],\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt')),\n tblproperties={\n 'delta.autoOptimize.optimizeWrite' : 'true',\n 'delta.autoOptimize.autoCompact' : 'true'\n },\n snowplow_optimize = true\n )\n}}\n\n{% set sessions_lifecycle_manifest_query = snowplow_utils.base_create_snowplow_sessions_lifecycle_manifest(\n session_identifiers= session_identifiers(),\n session_sql=var('snowplow__session_sql', none),\n session_timestamp=var('snowplow__session_timestamp', 'collector_tstamp'),\n user_identifiers= user_identifiers(),\n user_sql=var('snowplow__user_sql', none),\n quarantined_sessions='snowplow_unified_base_quarantined_sessions',\n derived_tstamp_partitioned=var('snowplow__derived_tstamp_partitioned', true),\n days_late_allowed=var('snowplow__days_late_allowed', 3),\n max_session_days=var('snowplow__max_session_days', 3),\n app_ids=var('snowplow__app_id', []),\n snowplow_events_database=var('snowplow__database', target.database) if target.type not in ['databricks', 'spark'] else var('snowplow__databricks_catalog', 'hive_metastore') if target.type in ['databricks'] else var('snowplow__atomic_schema', 'atomic'),\n snowplow_events_schema=var('snowplow__atomic_schema', 'atomic'),\n snowplow_events_table=var('snowplow__events_table', 'events'),\n event_limits_table='snowplow_unified_base_new_event_limits',\n incremental_manifest_table='snowplow_unified_incremental_manifest'\n) %}\n\n{{ sessions_lifecycle_manifest_query }}", "language": "sql", "refs": [{"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}, {"name": "snowplow_unified_base_quarantined_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.get_value_by_target_type", "macro.snowplow_unified.allow_refresh", "macro.snowplow_utils.set_query_tag", "macro.snowplow_unified.session_identifiers", "macro.snowplow_unified.user_identifiers", "macro.snowplow_utils.base_create_snowplow_sessions_lifecycle_manifest"], "nodes": ["model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_incremental_manifest", "model.snowplow_unified.snowplow_unified_base_quarantined_sessions"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/manifest/snowplow_unified_base_sessions_lifecycle_manifest.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n\n with new_events_session_ids_init as (\n select\n \n COALESCE(\n \ne.contexts_com_snowplowanalytics_snowplow_client_session_1[0]:sessionId::TEXT\n,e.domain_sessionid,NULL\n ) as session_identifier,\n max(\n COALESCE(\n \ne.contexts_com_snowplowanalytics_snowplow_client_session_1[0]:userId::TEXT\n,e.domain_userid,NULL\n )\n ) as user_identifier, -- Edge case 1: Arbitary selection to avoid window function like first_value.\n \n min(collector_tstamp) as start_tstamp,\n max(collector_tstamp) as end_tstamp\n\n from SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.snowplow_unified_events_stg e\n\n where\n dvce_sent_tstamp <= \n\n dateadd(\n day,\n 3,\n dvce_created_tstamp\n )\n\n -- don't process data that's too late\n and collector_tstamp >= \n cast('2020-07-03 00:00:00' as TIMESTAMP)\n \n and collector_tstamp <= \n cast('2021-03-03 00:00:00' as TIMESTAMP)\n \n and true\n and cast(True as boolean) --don't reprocess sessions that have already been processed.\n \n\n group by 1\n ), new_events_session_ids as (\n select *\n from new_events_session_ids_init e\n \n where session_identifier is not null\n and not exists (select 1 from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_base_quarantined_sessions as a where a.session_identifier = e.session_identifier) -- don't continue processing v.long sessions\n\n )\n \n\n , previous_sessions as (\n select *\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_base_sessions_lifecycle_manifest\n\n where start_tstamp >= \n cast('2018-07-04 00:00:00' as TIMESTAMP)\n \n and cast(True as boolean) --don't reprocess sessions that have already been processed.\n )\n\n , session_lifecycle as (\n select\n ns.session_identifier,\n coalesce(self.user_identifier, ns.user_identifier) as user_identifier, -- Edge case 1: Take previous value to keep domain_userid consistent. Not deterministic but performant\n least(ns.start_tstamp, coalesce(self.start_tstamp, ns.start_tstamp)) as start_tstamp,\n greatest(ns.end_tstamp, coalesce(self.end_tstamp, ns.end_tstamp)) as end_tstamp -- BQ 1 NULL will return null hence coalesce\n\n from new_events_session_ids ns\n left join previous_sessions as self\n on ns.session_identifier = self.session_identifier\n\n where\n self.session_identifier is null -- process all new sessions\n or self.end_tstamp < \n\n dateadd(\n day,\n 3,\n self.start_tstamp\n )\n\n --stop updating sessions exceeding 3 days\n )\n\n \n\n select\n sl.session_identifier,\n sl.user_identifier,\n sl.start_tstamp,\n least(\n\n dateadd(\n day,\n 3,\n sl.start_tstamp\n )\n\n, sl.end_tstamp) as end_tstamp -- limit session length to max_session_days\n \n\n from session_lifecycle sl\n ", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_base_quarantined_sessions": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snowplow_manifest", "name": "snowplow_unified_base_quarantined_sessions", "resource_type": "model", "package_name": "snowplow_unified", "path": "base/manifest/snowplow_unified_base_quarantined_sessions.sql", "original_file_path": "models/base/manifest/snowplow_unified_base_quarantined_sessions.sql", "unique_id": "model.snowplow_unified.snowplow_unified_base_quarantined_sessions", "fqn": ["snowplow_unified", "base", "manifest", "snowplow_unified_base_quarantined_sessions"], "alias": "snowplow_unified_base_quarantined_sessions", "checksum": {"name": "sha256", "checksum": "0364370639a07c73add6c66440c46ee913c636b1fea9f1de8662eb7f03593717"}, "config": {"enabled": true, "alias": null, "schema": "snowplow_manifest", "database": null, "tags": ["base"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "post-hook": [], "pre-hook": []}, "tags": ["base"], "description": "This table contains any sessions that have been quarantined. Sessions are quarantined once they exceed the maximum allowed session length, defined by `snowplow__max_session_days`.\nOnce quarantined, no further events from these sessions will be processed. Events up until the point of quarantine remain in your derived tables.\nThe reason for removing long sessions is to reduce table scans on both the events table and all derived tables. This improves performance greatly.", "columns": {"session_identifier": {"name": "session_identifier", "description": "The `session_identifier` of the quarantined session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/base/manifest/base_manifest.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "file_format": "delta", "bind": false, "tags": "base", "schema": "snowplow_manifest", "full_refresh": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}}, "created_at": 1706612343.9955213, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_base_quarantined_sessions", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized='incremental',\n full_refresh=snowplow_unified.allow_refresh(),\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt')),\n tblproperties={\n 'delta.autoOptimize.optimizeWrite' : 'true',\n 'delta.autoOptimize.autoCompact' : 'true'\n }\n )\n}}\n\n{% set quarantined_query = snowplow_utils.base_create_snowplow_quarantined_sessions() %}\n\n{{ quarantined_query }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_unified.allow_refresh", "macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.base_create_snowplow_quarantined_sessions"], "nodes": []}, "compiled_path": "target/compiled/snowplow_unified/models/base/manifest/snowplow_unified_base_quarantined_sessions.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n with prep as (\n select\n \n cast(null as \n TEXT\n) session_identifier\n \n )\n\n select *\n\n from prep\n where false\n\n ", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_incremental_manifest": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snowplow_manifest", "name": "snowplow_unified_incremental_manifest", "resource_type": "model", "package_name": "snowplow_unified", "path": "base/manifest/snowplow_unified_incremental_manifest.sql", "original_file_path": "models/base/manifest/snowplow_unified_incremental_manifest.sql", "unique_id": "model.snowplow_unified.snowplow_unified_incremental_manifest", "fqn": ["snowplow_unified", "base", "manifest", "snowplow_unified_incremental_manifest"], "alias": "snowplow_unified_incremental_manifest", "checksum": {"name": "sha256", "checksum": "b7d45f7d65418f5e454c0ee226ef3c08a40c4f52039db472ef525c3046f7bbaf"}, "config": {"enabled": true, "alias": null, "schema": "snowplow_manifest", "database": null, "tags": ["base"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": false, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "post-hook": [], "pre-hook": []}, "tags": ["base"], "description": "This incremental table is a manifest of the timestamp of the latest event consumed per model within the `snowplow-unified` package as well as any models leveraging the incremental framework provided by the package. The latest event's timestamp is based off `collector_tstamp`. This table is used to determine what events should be processed in the next run of the model.", "columns": {"model": {"name": "model", "description": "The name of the model.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}, "last_success": {"name": "last_success", "description": "The latest event consumed by the model, based on `collector_tstamp`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/base/manifest/base_manifest.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "file_format": "delta", "bind": false, "tags": "base", "schema": "snowplow_manifest", "full_refresh": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}}, "created_at": 1706612343.9948425, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_incremental_manifest", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized='incremental',\n full_refresh=snowplow_unified.allow_refresh(),\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt')),\n tblproperties={\n 'delta.autoOptimize.optimizeWrite' : 'true',\n 'delta.autoOptimize.autoCompact' : 'true'\n }\n )\n}}\n\n{% set incremental_manifest_query = snowplow_utils.base_create_snowplow_incremental_manifest() %}\n\n{{ incremental_manifest_query }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_unified.allow_refresh", "macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.base_create_snowplow_incremental_manifest"], "nodes": []}, "compiled_path": "target/compiled/snowplow_unified/models/base/manifest/snowplow_unified_incremental_manifest.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n with prep as (\n select\n cast(null as \n TEXT\n) model,\n cast('1970-01-01' as TIMESTAMP) as last_success\n )\n\n select *\n\n from prep\n where false\n ", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_users": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_derived", "name": "snowplow_unified_users", "resource_type": "model", "package_name": "snowplow_unified", "path": "users/snowplow_unified_users.sql", "original_file_path": "models/users/snowplow_unified_users.sql", "unique_id": "model.snowplow_unified.snowplow_unified_users", "fqn": ["snowplow_unified", "users", "snowplow_unified_users"], "alias": "snowplow_unified_users", "checksum": {"name": "sha256", "checksum": "5dc70c39016aacc4ad5fb6dc089da7010dd7e7c139fc35792e139956f8e32884"}, "config": {"enabled": true, "alias": null, "schema": "derived", "database": null, "tags": ["snowplow_unified_incremental", "derived"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "user_identifier", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "cluster_by": ["to_date(start_tstamp)"], "upsert_date_key": "start_tstamp", "disable_upsert_lookback": true, "sort": "start_tstamp", "dist": "user_identifier", "partition_by": null, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "snowplow_optimize": true, "post-hook": [{"sql": "{{ snowplow_unified.stitch_user_identifiers(\n enabled=var('snowplow__session_stitching')\n ) }}", "transaction": true, "index": null}], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived"], "description": "This derived incremental table contains all historic users data and should be the end point for any analysis or BI tools.", "columns": {"user_id": {"name": "user_id", "description": "Unique ID set by business e.g. \u2018jon.doe@email.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}, "network_userid": {"name": "network_userid", "description": "User ID set by Snowplow using 3rd party cookie e.g. \u2018ecdff4d0-9175-40ac-a8bb-325c49733607\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stitched_user_id": {"name": "stitched_user_id", "description": "The `user_id` (or `domain_user_id` if not found during user stitching) when the `snowplow__session_stitching` or `snowplow__view_stitching` variable is enabled otherwise NULL. The `user_id` field to be used for stitching can be overwritten by `var('snowplow__user_stitching_id')`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_tstamp": {"name": "start_tstamp", "description": "Timestamp for the start of the users lifecycle, based on `derived_tstamp`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_tstamp": {"name": "end_tstamp", "description": "Timestamp for the last time the user was seen, based on `derived_tstamp`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_tstamp": {"name": "model_tstamp", "description": "The current timestamp when the model processed this row.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "views": {"name": "views", "description": "The total page views by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sessions": {"name": "sessions", "description": "The total sessions by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "engaged_time_in_s": {"name": "engaged_time_in_s", "description": "The total engaged time in seconds by the user.\n\nOn Web, it is calculated using page pings.\nOn mobile, it is calculated using information in the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_title": {"name": "first_page_title", "description": "The title of the first page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_url": {"name": "first_page_url", "description": "The url of the first page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlscheme": {"name": "first_page_urlscheme", "description": "The urlscheme of the first page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlhost": {"name": "first_page_urlhost", "description": "The urlhost of the first page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlpath": {"name": "first_page_urlpath", "description": "The urlpath of the first page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlquery": {"name": "first_page_urlquery", "description": "The urlquery of the first page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlfragment": {"name": "first_page_urlfragment", "description": "The urlfragment of the first page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo_country": {"name": "first_geo_country", "description": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo_country_name": {"name": "first_geo_country_name", "description": "Name of the country the visitor is located in", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo_continent": {"name": "first_geo_continent", "description": "Name of the continent the visitor is located in", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo_city": {"name": "first_geo_city", "description": "City the visitor is in e.g. \u2018New York\u2019, \u2018London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo_region_name": {"name": "first_geo_region_name", "description": "Visitor region name e.g. \u2018Florida\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_br_lang": {"name": "first_br_lang", "description": "Language the browser is set to e.g. \u2018en-GB\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_br_lang_name": {"name": "first_br_lang_name", "description": "Full name of the language the browser is set to e.g. \u2018English (United Kingdom)\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_title": {"name": "last_page_title", "description": "The title of the last page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_url": {"name": "last_page_url", "description": "The url of the last page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlscheme": {"name": "last_page_urlscheme", "description": "The urlscheme of the last page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlhost": {"name": "last_page_urlhost", "description": "The urlhost of the last page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlpath": {"name": "last_page_urlpath", "description": "The urlpath of the last page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlquery": {"name": "last_page_urlquery", "description": "The urlquery of the last page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlfragment": {"name": "last_page_urlfragment", "description": "The urlfragment of the last page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_country": {"name": "last_geo_country", "description": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_country_name": {"name": "last_geo_country_name", "description": "Name of the country the visitor is located in", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_continent": {"name": "last_geo_continent", "description": "Name of the continent the visitor is located in", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_city": {"name": "last_geo_city", "description": "City the visitor is in e.g. \u2018New York\u2019, \u2018London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_region_name": {"name": "last_geo_region_name", "description": "Visitor region name e.g. \u2018Florida\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_br_lang": {"name": "last_br_lang", "description": "Language the browser is set to e.g. \u2018en-GB\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_br_lang_name": {"name": "last_br_lang_name", "description": "Full name of the language the browser is set to e.g. \u2018English (United Kingdom)\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlscheme": {"name": "refr_urlscheme", "description": "Referer scheme e.g. \u2018http\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlhost": {"name": "refr_urlhost", "description": "Referer host e.g. \u2018www.bing.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlpath": {"name": "refr_urlpath", "description": "Referer page path e.g. \u2018/images/search\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlquery": {"name": "refr_urlquery", "description": "Referer URL querystring e.g. \u2018q=psychic+oracle+cards\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlfragment": {"name": "refr_urlfragment", "description": "Referer URL fragment", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_medium": {"name": "refr_medium", "description": "Type of referer e.g. \u2018search\u2019, \u2018internal\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_source": {"name": "refr_source", "description": "Name of referer if recognised e.g. \u2018Bing images\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_term": {"name": "refr_term", "description": "Keywords if source is a search engine e.g. \u2018psychic oracle cards\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_medium": {"name": "mkt_medium", "description": "Type of traffic source e.g. \u2018cpc\u2019, \u2018affiliate\u2019, \u2018organic\u2019, \u2018social\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_source": {"name": "mkt_source", "description": "The company / website where the traffic came from e.g. \u2018Google\u2019, \u2018Facebook\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_term": {"name": "mkt_term", "description": "Any keywords associated with the referrer e.g. \u2018new age tarot decks\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_content": {"name": "mkt_content", "description": "The content of the ad. (Or an ID so that it can be looked up.) e.g. 13894723", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_campaign": {"name": "mkt_campaign", "description": "The campaign ID e.g. \u2018diageo-123\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_clickid": {"name": "mkt_clickid", "description": "The click ID e.g. \u2018ac3d8e459\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_network": {"name": "mkt_network", "description": "The ad network to which the click ID belongs e.g. \u2018DoubleClick\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_source_platform": {"name": "mkt_source_platform", "description": "Source platform based off the `utm_source_platform` parameter of the first page_url in the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_channel_group": {"name": "default_channel_group", "description": "The channels by which users arrived at your site.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_platform": {"name": "first_platform", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_platform": {"name": "last_platform", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_web": {"name": "on_web", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_mobile": {"name": "on_mobile", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_screen_resolution": {"name": "last_screen_resolution", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_os_type": {"name": "last_os_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_os_version": {"name": "last_os_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_mobile__device_manufacturer": {"name": "first_mobile__device_manufacturer", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_mobile__device_model": {"name": "first_mobile__device_model", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_mobile__carrier": {"name": "first_mobile__carrier", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_mobile__device_manufacturer": {"name": "last_mobile__device_manufacturer", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_mobile__device_model": {"name": "last_mobile__device_model", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_mobile__carrier": {"name": "last_mobile__carrier", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__os_type": {"name": "mobile__os_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__os_version": {"name": "mobile__os_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__android_idfa": {"name": "mobile__android_idfa", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__apple_idfa": {"name": "mobile__apple_idfa", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__apple_idfv": {"name": "mobile__apple_idfv", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__open_idfa": {"name": "mobile__open_idfa", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__network_technology": {"name": "mobile__network_technology", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__network_type": {"name": "mobile__network_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__physical_memory": {"name": "mobile__physical_memory", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__system_available_memory": {"name": "mobile__system_available_memory", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__app_available_memory": {"name": "mobile__app_available_memory", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__battery_level": {"name": "mobile__battery_level", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__battery_state": {"name": "mobile__battery_state", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__low_power_mode": {"name": "mobile__low_power_mode", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__available_storage": {"name": "mobile__available_storage", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__total_storage": {"name": "mobile__total_storage", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__is_portrait": {"name": "mobile__is_portrait", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__resolution": {"name": "mobile__resolution", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__scale": {"name": "mobile__scale", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__language": {"name": "mobile__language", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__app_set_id": {"name": "mobile__app_set_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__app_set_id_scope": {"name": "mobile__app_set_id_scope", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_zipcode": {"name": "geo_zipcode", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_latitude": {"name": "geo_latitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_longitude": {"name": "geo_longitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_timezone": {"name": "geo_timezone", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_days": {"name": "active_days", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_names_viewed": {"name": "screen_names_viewed", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "absolute_time_in_s": {"name": "absolute_time_in_s", "description": "The time in seconds between the `start_tstamp` and `end_tstamp` of the first and last event of sessions of the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_referrer": {"name": "page_referrer", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_screen_view__name": {"name": "first_screen_view__name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_screen_view__type": {"name": "first_screen_view__type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_screen_view__name": {"name": "last_screen_view__name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_screen_view__transition_type": {"name": "last_screen_view__transition_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_screen_view__type": {"name": "last_screen_view__type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_errors": {"name": "app_errors", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fatal_app_errors": {"name": "fatal_app_errors", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/users/users.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "file_format": "delta", "bind": false, "schema": "derived", "tags": ["derived"], "on_schema_change": "append_new_columns", "unique_key": "user_identifier", "upsert_date_key": "start_tstamp", "disable_upsert_lookback": true, "sort": "start_tstamp", "dist": "user_identifier", "partition_by": null, "cluster_by": ["to_date(start_tstamp)"], "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "snowplow_optimize": true, "post-hook": ["{{ snowplow_unified.stitch_user_identifiers(\n enabled=var('snowplow__session_stitching')\n ) }}"]}, "created_at": 1706612344.037516, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_users", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized='incremental',\n on_schema_change='append_new_columns',\n unique_key='user_identifier',\n upsert_date_key='start_tstamp',\n disable_upsert_lookback=true,\n sort='start_tstamp',\n dist='user_identifier',\n partition_by = snowplow_utils.get_value_by_target_type(bigquery_val={\n \"field\": \"start_tstamp\",\n \"data_type\": \"timestamp\"\n }, databricks_val='start_tstamp_date'),\n post_hook=\"{{ snowplow_unified.stitch_user_identifiers(\n enabled=var('snowplow__session_stitching')\n ) }}\",\n cluster_by=snowplow_utils.get_value_by_target_type(bigquery_val=[\"user_id\",\"user_identifier\"], snowflake_val=[\"to_date(start_tstamp)\"]),\n tags=[\"derived\"],\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt')),\n tblproperties={\n 'delta.autoOptimize.optimizeWrite' : 'true',\n 'delta.autoOptimize.autoCompact' : 'true'\n },\n snowplow_optimize = true\n )\n}}\n\nselect *\n {% if target.type in ['databricks', 'spark'] -%}\n , DATE(start_tstamp) as start_tstamp_date\n {%- endif %}\nfrom {{ ref('snowplow_unified_users_this_run') }}\nwhere {{ snowplow_utils.is_run_with_new_events('snowplow_unified') }} --returns false if run doesn't contain new events.", "language": "sql", "refs": [{"name": "snowplow_unified_users_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}, {"name": "snowplow_unified_user_mapping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.get_value_by_target_type", "macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.is_run_with_new_events", "macro.snowplow_unified.stitch_user_identifiers"], "nodes": ["model.snowplow_unified.snowplow_unified_users_this_run", "model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_incremental_manifest", "model.snowplow_unified.snowplow_unified_user_mapping"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/snowplow_unified_users.sql", "compiled": true, "compiled_code": "\n\n\n\nselect *\n \nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_this_run\nwhere cast(True as boolean) --returns false if run doesn't contain new events.", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_users_aggs": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_users_aggs", "resource_type": "model", "package_name": "snowplow_unified", "path": "users/scratch/snowplow_unified_users_aggs.sql", "original_file_path": "models/users/scratch/snowplow_unified_users_aggs.sql", "unique_id": "model.snowplow_unified.snowplow_unified_users_aggs", "fqn": ["snowplow_unified", "users", "scratch", "snowplow_unified_users_aggs"], "alias": "snowplow_unified_users_aggs", "checksum": {"name": "sha256", "checksum": "e8838f8659aabaf4529e155814787a75c06ef77f676befba522df368a16d2681"}, "config": {"enabled": true, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "scratch"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "cluster_by": null, "partition_by": null, "sort": "user_identifier", "dist": "user_identifier", "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "scratch"], "description": "This model aggregates various metrics derived from sessions to a users level.", "columns": {"user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/users/scratch/users_scratch.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": "scratch", "partition_by": null, "cluster_by": null, "sort": "user_identifier", "dist": "user_identifier", "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612344.0623813, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_aggs", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n partition_by = snowplow_utils.get_value_by_target_type(bigquery_val={\n \"field\": \"start_tstamp\",\n \"data_type\": \"timestamp\"\n }),\n cluster_by=snowplow_utils.get_value_by_target_type(bigquery_val=[\"user_identifier\"]),\n sort='user_identifier',\n dist='user_identifier',\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\nselect\n user_identifier\n -- time\n , user_start_tstamp as start_tstamp\n , user_end_tstamp as end_tstamp\n -- first/last session. Max to resolve edge case with multiple sessions with the same start/end tstamp\n , max(case when start_tstamp = user_start_tstamp then session_identifier end) as first_session_identifier\n , max(case when end_tstamp = user_end_tstamp then session_identifier end) as last_session_identifier\n -- engagement\n , sum(views) as views\n , count(distinct session_identifier) as sessions\n , count(distinct {{ date_trunc('day', 'start_tstamp') }}) as active_days\n\n {% if var('snowplow__enable_web') or var('snowplow__enable_screen_summary_context', false) %}\n , sum(engaged_time_in_s) as engaged_time_in_s\n {% endif %}\n\n , sum(absolute_time_in_s) as absolute_time_in_s\n\n {% if var('snowplow__enable_mobile') %}\n , sum(screen_names_viewed) as screen_names_viewed\n {% endif %}\n\n {% if var('snowplow__enable_app_errors') %}\n , sum(app_errors) as app_errors\n , sum(fatal_app_errors) as fatal_app_errors\n {% endif %}\n\nfrom {{ ref('snowplow_unified_users_sessions_this_run') }}\n\ngroup by 1,2,3", "language": "sql", "refs": [{"name": "snowplow_unified_users_sessions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.get_value_by_target_type", "macro.snowplow_utils.set_query_tag", "macro.dbt.date_trunc"], "nodes": ["model.snowplow_unified.snowplow_unified_users_sessions_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/snowplow_unified_users_aggs.sql", "compiled": true, "compiled_code": "\n\n\n\nselect\n user_identifier\n -- time\n , user_start_tstamp as start_tstamp\n , user_end_tstamp as end_tstamp\n -- first/last session. Max to resolve edge case with multiple sessions with the same start/end tstamp\n , max(case when start_tstamp = user_start_tstamp then session_identifier end) as first_session_identifier\n , max(case when end_tstamp = user_end_tstamp then session_identifier end) as last_session_identifier\n -- engagement\n , sum(views) as views\n , count(distinct session_identifier) as sessions\n , count(distinct date_trunc('day', start_tstamp)) as active_days\n\n \n , sum(engaged_time_in_s) as engaged_time_in_s\n \n\n , sum(absolute_time_in_s) as absolute_time_in_s\n\n \n , sum(screen_names_viewed) as screen_names_viewed\n \n\n \n , sum(app_errors) as app_errors\n , sum(fatal_app_errors) as fatal_app_errors\n \n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_sessions_this_run\n\ngroup by 1,2,3", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_users_lasts": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_users_lasts", "resource_type": "model", "package_name": "snowplow_unified", "path": "users/scratch/snowplow_unified_users_lasts.sql", "original_file_path": "models/users/scratch/snowplow_unified_users_lasts.sql", "unique_id": "model.snowplow_unified.snowplow_unified_users_lasts", "fqn": ["snowplow_unified", "users", "scratch", "snowplow_unified_users_lasts"], "alias": "snowplow_unified_users_lasts", "checksum": {"name": "sha256", "checksum": "9d661234c816687a843fecc5b147dc782f3134fe3a42759301cd244216a589ae"}, "config": {"enabled": true, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "scratch"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "scratch"], "description": "This model identifies the last page view for a user and returns various dimensions associated with that page view.", "columns": {"user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/users/scratch/users_scratch.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": "scratch", "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612344.0631235, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_lasts", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\n\nselect\n a.user_identifier\n , a.platform as last_platform\n , os_type as last_os_type\n , os_version as last_os_version\n , screen_resolution as last_screen_resolution\n , a.last_geo_country\n , a.last_geo_country_name\n , a.last_geo_continent\n , a.last_geo_city\n , a.last_geo_region_name\n , a.last_page_url\n\n {% if var('snowplow__enable_web') %}\n , a.last_page_title\n , a.last_page_urlscheme\n , a.last_page_urlhost\n , a.last_page_urlpath\n , a.last_page_urlquery\n , a.last_page_urlfragment\n\n , a.last_br_lang\n , a.last_br_lang_name\n {%- endif %}\n\n {% if var('snowplow__enable_mobile') %}\n , a.last_screen_view__name\n , a.last_screen_view__transition_type\n , a.last_screen_view__type\n {% endif %}\n\n {% if var('snowplow__enable_mobile_context') %}\n , a.mobile__carrier as last_mobile__carrier\n , a.mobile__device_manufacturer as last_mobile__device_manufacturer\n , a.mobile__device_model as last_mobile__device_model\n {% endif %}\n \n {%- if var('snowplow__user_last_passthroughs', []) -%}\n {%- for identifier in var('snowplow__user_last_passthroughs', []) %}\n {# Check if it is a simple column or a sql+alias #}\n {%- if identifier is mapping -%}\n , {{identifier['sql']}} as {{identifier['alias']}}\n {%- else -%}\n , a.{{identifier}} as last_{{identifier}}\n {%- endif -%}\n {% endfor -%}\n {%- endif %}\n\nfrom {{ ref('snowplow_unified_users_sessions_this_run') }} a\n\ninner join {{ ref('snowplow_unified_users_aggs') }} b\non a.session_identifier = b.last_session_identifier", "language": "sql", "refs": [{"name": "snowplow_unified_users_sessions_this_run", "package": null, "version": null}, {"name": "snowplow_unified_users_aggs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag"], "nodes": ["model.snowplow_unified.snowplow_unified_users_sessions_this_run", "model.snowplow_unified.snowplow_unified_users_aggs"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/snowplow_unified_users_lasts.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect\n a.user_identifier\n , a.platform as last_platform\n , os_type as last_os_type\n , os_version as last_os_version\n , screen_resolution as last_screen_resolution\n , a.last_geo_country\n , a.last_geo_country_name\n , a.last_geo_continent\n , a.last_geo_city\n , a.last_geo_region_name\n , a.last_page_url\n\n \n , a.last_page_title\n , a.last_page_urlscheme\n , a.last_page_urlhost\n , a.last_page_urlpath\n , a.last_page_urlquery\n , a.last_page_urlfragment\n\n , a.last_br_lang\n , a.last_br_lang_name\n\n \n , a.last_screen_view__name\n , a.last_screen_view__transition_type\n , a.last_screen_view__type\n \n\n \n , a.mobile__carrier as last_mobile__carrier\n , a.mobile__device_manufacturer as last_mobile__device_manufacturer\n , a.mobile__device_model as last_mobile__device_model\n \n , a.event_id as last_event_id\n , event_id2 || '-last' as last_event_id2\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_sessions_this_run a\n\ninner join SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_aggs b\non a.session_identifier = b.last_session_identifier", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_users_this_run": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_users_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "users/scratch/snowplow_unified_users_this_run.sql", "original_file_path": "models/users/scratch/snowplow_unified_users_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_users_this_run", "fqn": ["snowplow_unified", "users", "scratch", "snowplow_unified_users_this_run"], "alias": "snowplow_unified_users_this_run", "checksum": {"name": "sha256", "checksum": "8233e96dd40cb66c83deb0f29de21c4dd0db3ec9782af78a115fe4c0b710ec9c"}, "config": {"enabled": true, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "scratch", "this_run"], "description": "This staging table contains all the users for the given run of the model. It possess all the same columns as `snowplow_unified_users`. If building a custom module that requires session level data, this is the table you should reference.", "columns": {"user_id": {"name": "user_id", "description": "Unique ID set by business e.g. \u2018jon.doe@email.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}, "network_userid": {"name": "network_userid", "description": "User ID set by Snowplow using 3rd party cookie e.g. \u2018ecdff4d0-9175-40ac-a8bb-325c49733607\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_tstamp": {"name": "start_tstamp", "description": "Timestamp for the start of the users lifecycle, based on `derived_tstamp`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_tstamp": {"name": "end_tstamp", "description": "Timestamp for the last time the user was seen, based on `derived_tstamp`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_tstamp": {"name": "model_tstamp", "description": "The current timestamp when the model processed this row.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "views": {"name": "views", "description": "The total page views by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sessions": {"name": "sessions", "description": "The total sessions by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "engaged_time_in_s": {"name": "engaged_time_in_s", "description": "The total engaged time in seconds by the user.\n\nOn Web, it is calculated using page pings.\nOn mobile, it is calculated using information in the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "absolute_time_in_s": {"name": "absolute_time_in_s", "description": "The time in seconds between the `start_tstamp` and `end_tstamp` of the first and last event of sessions of the user.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_title": {"name": "first_page_title", "description": "The title of the first page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_url": {"name": "first_page_url", "description": "The url of the first page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlscheme": {"name": "first_page_urlscheme", "description": "The urlscheme of the first page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlhost": {"name": "first_page_urlhost", "description": "The urlhost of the first page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlpath": {"name": "first_page_urlpath", "description": "The urlpath of the first page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlquery": {"name": "first_page_urlquery", "description": "The urlquery of the first page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlfragment": {"name": "first_page_urlfragment", "description": "The urlfragment of the first page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo_country": {"name": "first_geo_country", "description": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo_country_name": {"name": "first_geo_country_name", "description": "Name of the country the visitor is located in", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo_continent": {"name": "first_geo_continent", "description": "Name of the continent the visitor is located in", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo_city": {"name": "first_geo_city", "description": "City the visitor is in e.g. \u2018New York\u2019, \u2018London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo_region_name": {"name": "first_geo_region_name", "description": "Visitor region name e.g. \u2018Florida\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_br_lang": {"name": "first_br_lang", "description": "Language the browser is set to e.g. \u2018en-GB\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_br_lang_name": {"name": "first_br_lang_name", "description": "Full name of the language the browser is set to e.g. \u2018English (United Kingdom)\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_title": {"name": "last_page_title", "description": "The title of the last page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_url": {"name": "last_page_url", "description": "The url of the last page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlscheme": {"name": "last_page_urlscheme", "description": "The urlscheme of the last page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlhost": {"name": "last_page_urlhost", "description": "The urlhost of the last page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlpath": {"name": "last_page_urlpath", "description": "The urlpath of the last page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlquery": {"name": "last_page_urlquery", "description": "The urlquery of the last page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlfragment": {"name": "last_page_urlfragment", "description": "The urlfragment of the last page visited by the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_country": {"name": "last_geo_country", "description": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_country_name": {"name": "last_geo_country_name", "description": "Name of the country the visitor is located in", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_continent": {"name": "last_geo_continent", "description": "Name of the continent the visitor is located in", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_city": {"name": "last_geo_city", "description": "City the visitor is in e.g. \u2018New York\u2019, \u2018London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_region_name": {"name": "last_geo_region_name", "description": "Visitor region name e.g. \u2018Florida\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_br_lang": {"name": "last_br_lang", "description": "Language the browser is set to e.g. \u2018en-GB\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_br_lang_name": {"name": "last_br_lang_name", "description": "Full name of the language the browser is set to e.g. \u2018English (United Kingdom)\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referrer": {"name": "referrer", "description": "The referrer associated with the first page view of the user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlscheme": {"name": "refr_urlscheme", "description": "Referer scheme e.g. \u2018http\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlhost": {"name": "refr_urlhost", "description": "Referer host e.g. \u2018www.bing.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlpath": {"name": "refr_urlpath", "description": "Referer page path e.g. \u2018/images/search\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlquery": {"name": "refr_urlquery", "description": "Referer URL querystring e.g. \u2018q=psychic+oracle+cards\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlfragment": {"name": "refr_urlfragment", "description": "Referer URL fragment", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_medium": {"name": "refr_medium", "description": "Type of referer e.g. \u2018search\u2019, \u2018internal\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_source": {"name": "refr_source", "description": "Name of referer if recognised e.g. \u2018Bing images\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_term": {"name": "refr_term", "description": "Keywords if source is a search engine e.g. \u2018psychic oracle cards\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_medium": {"name": "mkt_medium", "description": "Type of traffic source e.g. \u2018cpc\u2019, \u2018affiliate\u2019, \u2018organic\u2019, \u2018social\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_source": {"name": "mkt_source", "description": "The company / website where the traffic came from e.g. \u2018Google\u2019, \u2018Facebook\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_term": {"name": "mkt_term", "description": "Any keywords associated with the referrer e.g. \u2018new age tarot decks\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_content": {"name": "mkt_content", "description": "The content of the ad. (Or an ID so that it can be looked up.) e.g. 13894723", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_campaign": {"name": "mkt_campaign", "description": "The campaign ID e.g. \u2018diageo-123\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_clickid": {"name": "mkt_clickid", "description": "The click ID e.g. \u2018ac3d8e459\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_network": {"name": "mkt_network", "description": "The ad network to which the click ID belongs e.g. \u2018DoubleClick\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_source_platform": {"name": "mkt_source_platform", "description": "Source platform based off the `utm_source_platform` parameter of the first page_url in the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_channel_group": {"name": "default_channel_group", "description": "The channels by which users arrived at your site.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/users/scratch/users_scratch.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": ["this_run"], "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612344.0613744, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n tags=[\"this_run\"],\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\nselect\n -- user fields\n a.user_id\n , a.user_identifier\n , a.network_userid\n {% if var('snowplow__session_stitching') %}\n -- updated with mapping as part of post hook on derived sessions table\n , cast(a.user_identifier as {{ snowplow_utils.type_max_string() }}) as stitched_user_id\n {% else %}\n , cast(null as {{ snowplow_utils.type_max_string() }}) as stitched_user_id\n {% endif %}\n\n -- timestamp fields\n , b.start_tstamp\n , b.end_tstamp\n , {{ snowplow_utils.current_timestamp_in_utc() }} as model_tstamp\n\n -- device fields\n , a.platform as first_platform\n , c.last_platform\n , a.on_web\n , a.on_mobile\n , c.last_screen_resolution\n , c.last_os_type\n , c.last_os_version\n\n {% if var('snowplow__enable_mobile_context') %}\n , a.mobile__device_manufacturer as first_mobile__device_manufacturer\n , a.mobile__device_model as first_mobile__device_model\n , a.mobile__carrier as first_mobile__carrier\n , c.last_mobile__device_manufacturer\n , c.last_mobile__device_model\n , c.last_mobile__carrier\n\n , a.mobile__os_type\n , a.mobile__os_version\n , a.mobile__android_idfa\n , a.mobile__apple_idfa\n , a.mobile__apple_idfv\n , a.mobile__open_idfa\n , a.mobile__network_technology\n , a.mobile__network_type\n , a.mobile__physical_memory\n , a.mobile__system_available_memory\n , a.mobile__app_available_memory\n , a.mobile__battery_level\n , a.mobile__battery_state\n , a.mobile__low_power_mode\n , a.mobile__available_storage\n , a.mobile__total_storage\n , a.mobile__is_portrait\n , a.mobile__resolution\n , a.mobile__scale\n , a.mobile__language\n , a.mobile__app_set_id\n , a.mobile__app_set_id_scope\n {% endif %}\n\n -- geo fields\n , a.first_geo_country\n , a.first_geo_country_name\n , a.first_geo_continent\n , a.first_geo_city\n , a.first_geo_region_name\n , c.last_geo_country\n , c.last_geo_country_name\n , c.last_geo_continent\n , c.last_geo_city\n , c.last_geo_region_name\n\n , a.geo_zipcode\n , a.geo_latitude\n , a.geo_longitude\n , a.geo_timezone\n\n -- engagement fields\n , b.views\n , b.sessions\n , b.active_days\n\n {% if var('snowplow__enable_web') or var('snowplow__enable_screen_summary_context', false) %}\n , b.engaged_time_in_s\n {% endif %}\n\n , b.absolute_time_in_s\n\n {% if var('snowplow__enable_mobile') %}\n , b.screen_names_viewed\n {% endif %}\n\n\n -- webpage / referer / browser fields\n , a.page_referrer\n , a.refr_medium\n , a.refr_source\n , a.refr_term\n\n {% if var('snowplow__enable_web') %}\n , a.first_page_title\n , a.first_page_url\n , a.first_page_urlscheme\n , a.first_page_urlhost\n , a.first_page_urlpath\n , a.first_page_urlquery\n , a.first_page_urlfragment\n , a.first_br_lang\n , a.first_br_lang_name\n , c.last_page_title\n , c.last_page_url\n , c.last_page_urlscheme\n , c.last_page_urlhost\n , c.last_page_urlpath\n , c.last_page_urlquery\n , c.last_page_urlfragment\n , c.last_br_lang\n , c.last_br_lang_name\n , a.refr_urlscheme\n , a.refr_urlhost\n , a.refr_urlpath\n , a.refr_urlquery\n , a.refr_urlfragment\n {%- endif %}\n\n {% if var('snowplow__enable_mobile') %}\n , a.first_screen_view__name\n , a.first_screen_view__type\n , c.last_screen_view__name\n , c.last_screen_view__transition_type\n , c.last_screen_view__type\n {%- endif %}\n\n -- marketing fields\n , a.mkt_medium\n , a.mkt_source\n , a.mkt_term\n , a.mkt_content\n , a.mkt_campaign\n , a.mkt_clickid\n , a.mkt_network\n , a.mkt_source_platform\n , a.default_channel_group\n\n {% if var('snowplow__enable_app_errors') %}\n , b.app_errors\n , b.fatal_app_errors\n {%- endif %}\n\n {%- if var('snowplow__user_first_passthroughs', []) -%}\n {%- for identifier in var('snowplow__user_first_passthroughs', []) %}\n {# Check if it is a simple column or a sql+alias #}\n {%- if identifier is mapping -%}\n ,{{identifier['sql']}} as {{identifier['alias']}}\n {%- else -%}\n ,a.{{identifier}} as first_{{identifier}}\n {%- endif -%}\n {% endfor -%}\n {%- endif %}\n {%- if var('snowplow__user_last_passthroughs', []) -%}\n {%- for identifier in var('snowplow__user_last_passthroughs', []) %}\n {# Check if it is a simple column or a sql+alias #}\n {%- if identifier is mapping -%}\n ,c.{{identifier['alias']}}\n {%- else -%}\n ,c.last_{{identifier}}\n {%- endif -%}\n {% endfor -%}\n {%- endif %}\n\nfrom {{ ref('snowplow_unified_users_aggs') }} as b\n\ninner join {{ ref('snowplow_unified_users_sessions_this_run') }} as a\non a.session_identifier = b.first_session_identifier\n\ninner join {{ ref('snowplow_unified_users_lasts') }} c\non b.user_identifier = c.user_identifier", "language": "sql", "refs": [{"name": "snowplow_unified_users_aggs", "package": null, "version": null}, {"name": "snowplow_unified_users_sessions_this_run", "package": null, "version": null}, {"name": "snowplow_unified_users_lasts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.type_max_string", "macro.snowplow_utils.current_timestamp_in_utc"], "nodes": ["model.snowplow_unified.snowplow_unified_users_aggs", "model.snowplow_unified.snowplow_unified_users_sessions_this_run", "model.snowplow_unified.snowplow_unified_users_lasts"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/snowplow_unified_users_this_run.sql", "compiled": true, "compiled_code": "\n\n\n\nselect\n -- user fields\n a.user_id\n , a.user_identifier\n , a.network_userid\n \n -- updated with mapping as part of post hook on derived sessions table\n , cast(a.user_identifier as \n TEXT\n) as stitched_user_id\n \n\n -- timestamp fields\n , b.start_tstamp\n , b.end_tstamp\n , \n convert_timezone('UTC', convert_timezone('UTC', current_timestamp()))::TIMESTAMP\n as model_tstamp\n\n -- device fields\n , a.platform as first_platform\n , c.last_platform\n , a.on_web\n , a.on_mobile\n , c.last_screen_resolution\n , c.last_os_type\n , c.last_os_version\n\n \n , a.mobile__device_manufacturer as first_mobile__device_manufacturer\n , a.mobile__device_model as first_mobile__device_model\n , a.mobile__carrier as first_mobile__carrier\n , c.last_mobile__device_manufacturer\n , c.last_mobile__device_model\n , c.last_mobile__carrier\n\n , a.mobile__os_type\n , a.mobile__os_version\n , a.mobile__android_idfa\n , a.mobile__apple_idfa\n , a.mobile__apple_idfv\n , a.mobile__open_idfa\n , a.mobile__network_technology\n , a.mobile__network_type\n , a.mobile__physical_memory\n , a.mobile__system_available_memory\n , a.mobile__app_available_memory\n , a.mobile__battery_level\n , a.mobile__battery_state\n , a.mobile__low_power_mode\n , a.mobile__available_storage\n , a.mobile__total_storage\n , a.mobile__is_portrait\n , a.mobile__resolution\n , a.mobile__scale\n , a.mobile__language\n , a.mobile__app_set_id\n , a.mobile__app_set_id_scope\n \n\n -- geo fields\n , a.first_geo_country\n , a.first_geo_country_name\n , a.first_geo_continent\n , a.first_geo_city\n , a.first_geo_region_name\n , c.last_geo_country\n , c.last_geo_country_name\n , c.last_geo_continent\n , c.last_geo_city\n , c.last_geo_region_name\n\n , a.geo_zipcode\n , a.geo_latitude\n , a.geo_longitude\n , a.geo_timezone\n\n -- engagement fields\n , b.views\n , b.sessions\n , b.active_days\n\n \n , b.engaged_time_in_s\n \n\n , b.absolute_time_in_s\n\n \n , b.screen_names_viewed\n \n\n\n -- webpage / referer / browser fields\n , a.page_referrer\n , a.refr_medium\n , a.refr_source\n , a.refr_term\n\n \n , a.first_page_title\n , a.first_page_url\n , a.first_page_urlscheme\n , a.first_page_urlhost\n , a.first_page_urlpath\n , a.first_page_urlquery\n , a.first_page_urlfragment\n , a.first_br_lang\n , a.first_br_lang_name\n , c.last_page_title\n , c.last_page_url\n , c.last_page_urlscheme\n , c.last_page_urlhost\n , c.last_page_urlpath\n , c.last_page_urlquery\n , c.last_page_urlfragment\n , c.last_br_lang\n , c.last_br_lang_name\n , a.refr_urlscheme\n , a.refr_urlhost\n , a.refr_urlpath\n , a.refr_urlquery\n , a.refr_urlfragment\n\n \n , a.first_screen_view__name\n , a.first_screen_view__type\n , c.last_screen_view__name\n , c.last_screen_view__transition_type\n , c.last_screen_view__type\n\n -- marketing fields\n , a.mkt_medium\n , a.mkt_source\n , a.mkt_term\n , a.mkt_content\n , a.mkt_campaign\n , a.mkt_clickid\n , a.mkt_network\n , a.mkt_source_platform\n , a.default_channel_group\n\n \n , b.app_errors\n , b.fatal_app_errors\n ,a.event_id as first_event_id\n ,event_id2 || '-first' as first_event_id2\n ,c.last_event_id\n ,c.last_event_id2\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_aggs as b\n\ninner join SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_sessions_this_run as a\non a.session_identifier = b.first_session_identifier\n\ninner join SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_lasts c\non b.user_identifier = c.user_identifier", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_users_sessions_this_run": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_users_sessions_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "users/scratch/snowplow_unified_users_sessions_this_run.sql", "original_file_path": "models/users/scratch/snowplow_unified_users_sessions_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_users_sessions_this_run", "fqn": ["snowplow_unified", "users", "scratch", "snowplow_unified_users_sessions_this_run"], "alias": "snowplow_unified_users_sessions_this_run", "checksum": {"name": "sha256", "checksum": "e1d13fa274bcee08c2080a5fa39772d7aa3d7767988ea6aa73f05cf6a5ff15a9"}, "config": {"enabled": true, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "scratch", "this_run"], "description": "This model contains all sessions data related to users contained in the given run of the model", "columns": {"session_identifier": {"name": "session_identifier", "description": "The session identifier as defined in your project variables. Default to domain_sessionid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/users/scratch/users_scratch.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": ["this_run"], "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612344.0638428, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_sessions_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n tags=[\"this_run\"],\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\nwith prep as (\n select\n a.*,\n case when platform = 'web' then true else false end on_web_base,\n case when platform <> 'web' then true else false end on_mobile_base,\n min(a.start_tstamp) over(partition by a.user_identifier) as user_start_tstamp,\n max(a.end_tstamp) over(partition by a.user_identifier) as user_end_tstamp\n\n from {{ var('snowplow__sessions_table') }} a\n where exists (select 1 from {{ ref('snowplow_unified_base_sessions_this_run') }} b where a.user_identifier = b.user_identifier)\n\n)\n\nselect *,\n cast(max(cast(on_web_base as {{ type_int() }})) over(partition by user_identifier) as {{ type_boolean() }}) as on_web,\n cast(max(cast(on_mobile_base as {{ type_int() }})) over(partition by user_identifier) as {{ type_boolean() }}) as on_mobile\n\nfrom prep", "language": "sql", "refs": [{"name": "snowplow_unified_sessions", "package": null, "version": null}, {"name": "snowplow_unified_base_sessions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.dbt.type_int", "macro.dbt.type_boolean"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions", "model.snowplow_unified.snowplow_unified_base_sessions_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/snowplow_unified_users_sessions_this_run.sql", "compiled": true, "compiled_code": "\n\n\n\nwith prep as (\n select\n a.*,\n case when platform = 'web' then true else false end on_web_base,\n case when platform <> 'web' then true else false end on_mobile_base,\n min(a.start_tstamp) over(partition by a.user_identifier) as user_start_tstamp,\n max(a.end_tstamp) over(partition by a.user_identifier) as user_end_tstamp\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_sessions a\n where exists (select 1 from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_base_sessions_this_run b where a.user_identifier = b.user_identifier)\n\n)\n\nselect *,\n cast(max(cast(on_web_base as INT)) over(partition by user_identifier) as BOOLEAN) as on_web,\n cast(max(cast(on_mobile_base as INT)) over(partition by user_identifier) as BOOLEAN) as on_mobile\n\nfrom prep", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_consent_cmp_stats": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_derived", "name": "snowplow_unified_consent_cmp_stats", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/consent/snowplow_unified_consent_cmp_stats.sql", "original_file_path": "models/optional_modules/consent/snowplow_unified_consent_cmp_stats.sql", "unique_id": "model.snowplow_unified.snowplow_unified_consent_cmp_stats", "fqn": ["snowplow_unified", "optional_modules", "consent", "snowplow_unified_consent_cmp_stats"], "alias": "snowplow_unified_consent_cmp_stats", "checksum": {"name": "sha256", "checksum": "98fe7195ade0cbc078ed71579d5900055cc55b61d2296fc1378566af5f7816ca"}, "config": {"enabled": true, "alias": null, "schema": "derived", "database": null, "tags": ["snowplow_unified_incremental", "derived", "consent"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "consent"], "description": "Used for modeling cmp_visible events and related metrics", "columns": {"event_id": {"name": "event_id", "description": "A UUID for each event e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_identifier": {"name": "user_identifier", "description": "The optional userid of a user", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_id": {"name": "view_id", "description": "A UUID for each page view e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_identifier": {"name": "session_identifier", "description": "The session identifier as defined in your project variables. Default to domain_sessionid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmp_load_time": {"name": "cmp_load_time", "description": "The time taken for the consent box to be shown to the screen", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmp_tstamp": {"name": "cmp_tstamp", "description": "The timestamp of the cmp_visible event", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_consent_event_tstamp": {"name": "first_consent_event_tstamp", "description": "The timestamp of the first consent event after a cmp_visible event", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_consent_event_type": {"name": "first_consent_event_type", "description": "The event type of the first consent event after a cmp_visible event", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmp_interaction_time": {"name": "cmp_interaction_time", "description": "The time it takes for the user to make a consent choice after the cmp_visible event is fired", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/optional_modules/consent/consent.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "derived", "tags": ["snowplow_unified_incremental", "derived", "consent"], "enabled": true, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612344.1143575, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_cmp_stats", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized='table',\n enabled=var(\"snowplow__enable_consent\", false),\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\n{%- if target.type in ('postgres') -%}\n\nwith events as (\n\n select\n event_id,\n user_identifier,\n view_id,\n session_identifier,\n derived_tstamp,\n event_name,\n event_type,\n cmp_load_time,\n -- postgres does not allow the IGNORE NULL clause within last_value(), below workaround should do the same: removing NULLS using array_remove then using the COUNT window function (which counts the number of non-null items and count is bounded up to the current row) to access the array using that as its index position\n (array_remove(array_agg(case when event_name = 'cmp_visible' then event_id else null end) over (partition by user_identifier order by derived_tstamp), null))[count(case when event_name = 'cmp_visible' then event_id else null end) over (partition by user_identifier order by derived_tstamp rows between unbounded preceding and current row)] as cmp_id\n\n from {{ ref('snowplow_unified_consent_log') }}\n\n where event_type <> 'pending' or event_type is null\n\n)\n\n{%- elif target.type in ('databricks', 'spark') -%}\n\nwith events as (\n\n select\n event_id,\n user_identifier,\n view_id,\n session_identifier,\n derived_tstamp,\n event_name,\n event_type,\n cmp_load_time,\n last_value(case when event_name = 'cmp_visible' then event_id else null end, TRUE)\n over (partition by user_identifier order by derived_tstamp\n rows between unbounded preceding and current row) as cmp_id\n\n from {{ ref('snowplow_unified_consent_log') }}\n\n where event_type <> 'pending' or event_type is null\n\n)\n\n{%- else -%}\n\nwith events as (\n\n select\n event_id,\n user_identifier,\n view_id,\n session_identifier,\n derived_tstamp,\n event_name,\n event_type,\n cmp_load_time,\n last_value(case when event_name = 'cmp_visible' then event_id else null end ignore nulls)\n over (partition by user_identifier order by derived_tstamp\n rows between unbounded preceding and current row) as cmp_id\n\n from {{ ref('snowplow_unified_consent_log') }}\n\n where event_type <> 'pending' or event_type is null\n\n)\n\n{%- endif -%}\n\n, event_orders as (\n\n select\n event_id,\n event_type,\n cmp_id,\n derived_tstamp,\n row_number() over(partition by cmp_id order by derived_tstamp) as row_num\n\n from events\n\n)\n\n, first_consent_events as (\n\n select\n event_id,\n cmp_id,\n event_type,\n derived_tstamp as first_consent_event_tstamp\n\n from event_orders\n\n where row_num = 2\n\n)\n\n, cmp_events as (\n\n select distinct\n event_id,\n user_identifier,\n view_id,\n session_identifier,\n cmp_load_time,\n derived_tstamp as cmp_tstamp\n\n from events\n\n where event_name = 'cmp_visible'\n\n)\n\nselect\n e.event_id,\n e.user_identifier,\n e.view_id,\n e.session_identifier,\n e.cmp_load_time,\n e.cmp_tstamp,\n f.first_consent_event_tstamp,\n f.event_type as first_consent_event_type,\n {{ datediff('e.cmp_tstamp', 'f.first_consent_event_tstamp', 'second') }} as cmp_interaction_time\n\nfrom cmp_events e\n\nleft join first_consent_events f\non e.event_id = f.cmp_id", "language": "sql", "refs": [{"name": "snowplow_unified_consent_log", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.dbt.datediff"], "nodes": ["model.snowplow_unified.snowplow_unified_consent_log"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/snowplow_unified_consent_cmp_stats.sql", "compiled": true, "compiled_code": "\n\nwith events as (\n\n select\n event_id,\n user_identifier,\n view_id,\n session_identifier,\n derived_tstamp,\n event_name,\n event_type,\n cmp_load_time,\n last_value(case when event_name = 'cmp_visible' then event_id else null end ignore nulls)\n over (partition by user_identifier order by derived_tstamp\n rows between unbounded preceding and current row) as cmp_id\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_log\n\n where event_type <> 'pending' or event_type is null\n\n), event_orders as (\n\n select\n event_id,\n event_type,\n cmp_id,\n derived_tstamp,\n row_number() over(partition by cmp_id order by derived_tstamp) as row_num\n\n from events\n\n)\n\n, first_consent_events as (\n\n select\n event_id,\n cmp_id,\n event_type,\n derived_tstamp as first_consent_event_tstamp\n\n from event_orders\n\n where row_num = 2\n\n)\n\n, cmp_events as (\n\n select distinct\n event_id,\n user_identifier,\n view_id,\n session_identifier,\n cmp_load_time,\n derived_tstamp as cmp_tstamp\n\n from events\n\n where event_name = 'cmp_visible'\n\n)\n\nselect\n e.event_id,\n e.user_identifier,\n e.view_id,\n e.session_identifier,\n e.cmp_load_time,\n e.cmp_tstamp,\n f.first_consent_event_tstamp,\n f.event_type as first_consent_event_type,\n datediff(\n second,\n e.cmp_tstamp,\n f.first_consent_event_tstamp\n ) as cmp_interaction_time\n\nfrom cmp_events e\n\nleft join first_consent_events f\non e.event_id = f.cmp_id", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_consent_log": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_derived", "name": "snowplow_unified_consent_log", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/consent/snowplow_unified_consent_log.sql", "original_file_path": "models/optional_modules/consent/snowplow_unified_consent_log.sql", "unique_id": "model.snowplow_unified.snowplow_unified_consent_log", "fqn": ["snowplow_unified", "optional_modules", "consent", "snowplow_unified_consent_log"], "alias": "snowplow_unified_consent_log", "checksum": {"name": "sha256", "checksum": "9cdb60da1083138b62a22a45c3c62b227a81d90ebf01adea177fc4d56e2dd453"}, "config": {"enabled": true, "alias": null, "schema": "derived", "database": null, "tags": ["snowplow_unified_incremental", "derived", "consent", "derived"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "event_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "cluster_by": ["to_date(load_tstamp)"], "upsert_date_key": "derived_tstamp", "sort": "derived_tstamp", "dist": "event_id", "partition_by": null, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "snowplow_optimize": true, "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "consent"], "description": "Incremental table showing the audit trail of consent and Consent Management Platform (cmp) events", "columns": {"event_id": {"name": "event_id", "description": "A UUID for each event e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "Unique ID set by business e.g. \u2018jon.doe@email.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_country": {"name": "geo_country", "description": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_id": {"name": "view_id", "description": "A UUID for each page view e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_identifier": {"name": "session_identifier", "description": "The session identifier as defined in your project variables. Default to domain_sessionid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "derived_tstamp": {"name": "derived_tstamp", "description": "Timestamp making allowance for innaccurate device clock e.g. \u20182013-11-26 00:02:04\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "load_tstamp": {"name": "load_tstamp", "description": "The timestamp of the event landing the data warehouse.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "Event name e.g. \u2018link_click\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_type": {"name": "event_type", "description": "The action for the consent preferences of a user E.g allow_all", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "basis_for_processing": {"name": "basis_for_processing", "description": "GDPR lawful basis for data collection & processing", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent_url": {"name": "consent_url", "description": "URI of the privacy policy related document", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent_version": {"name": "consent_version", "description": "Version of the privacy policy related document", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent_scopes": {"name": "consent_scopes", "description": "The scopes allowed after the user finalized his selection of consent preferences Eg ['analytics', 'functional', 'advertisement']", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "domains_applied": {"name": "domains_applied", "description": "The domains for which this consent allows these preferences to persist to", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gdpr_applies": {"name": "gdpr_applies", "description": "A boolean which determines if GDPR applies based on the user's geo-location", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmp_load_time": {"name": "cmp_load_time", "description": "The time taken for the consent box to be shown to the screen", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/optional_modules/consent/consent.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "file_format": "delta", "bind": false, "schema": "derived", "tags": ["derived"], "enabled": true, "unique_key": "event_id", "upsert_date_key": "derived_tstamp", "sort": "derived_tstamp", "dist": "event_id", "partition_by": null, "cluster_by": ["to_date(load_tstamp)"], "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "snowplow_optimize": true}, "created_at": 1706612344.099836, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_log", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized= 'incremental',\n enabled=var(\"snowplow__enable_consent\", false),\n unique_key='event_id',\n upsert_date_key='derived_tstamp',\n sort='derived_tstamp',\n dist='event_id',\n tags=[\"derived\"],\n partition_by = snowplow_utils.get_value_by_target_type(bigquery_val = {\n \"field\": \"derived_tstamp\",\n \"data_type\": \"timestamp\"\n }, databricks_val = 'derived_tstamp_date'),\n cluster_by=snowplow_utils.get_value_by_target_type(bigquery_val=[\"event_id\",\"user_identifier\"], snowflake_val=[\"to_date(load_tstamp)\"]),\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt')),\n tblproperties={\n 'delta.autoOptimize.optimizeWrite' : 'true',\n 'delta.autoOptimize.autoCompact' : 'true'\n },\n snowplow_optimize= true\n )\n}}\n\nselect\n *\n {% if target.type in ['databricks', 'spark'] -%}\n , DATE(derived_tstamp) as derived_tstamp_date\n {%- endif %}\n\nfrom {{ ref('snowplow_unified_consent_events_this_run') }}\n\nwhere {{ snowplow_utils.is_run_with_new_events('snowplow_unified') }} --returns false if run doesn't contain new events.", "language": "sql", "refs": [{"name": "snowplow_unified_consent_events_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.get_value_by_target_type", "macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.is_run_with_new_events"], "nodes": ["model.snowplow_unified.snowplow_unified_consent_events_this_run", "model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_incremental_manifest"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/snowplow_unified_consent_log.sql", "compiled": true, "compiled_code": "\n\n\n\nselect\n *\n \n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_consent_events_this_run\n\nwhere cast(True as boolean) --returns false if run doesn't contain new events.", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_consent_versions": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_derived", "name": "snowplow_unified_consent_versions", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/consent/snowplow_unified_consent_versions.sql", "original_file_path": "models/optional_modules/consent/snowplow_unified_consent_versions.sql", "unique_id": "model.snowplow_unified.snowplow_unified_consent_versions", "fqn": ["snowplow_unified", "optional_modules", "consent", "snowplow_unified_consent_versions"], "alias": "snowplow_unified_consent_versions", "checksum": {"name": "sha256", "checksum": "cd1c041a58ac72890a5d451472ad29c1fb88b938f4245feece986ef779639d47"}, "config": {"enabled": true, "alias": null, "schema": "derived", "database": null, "tags": ["snowplow_unified_incremental", "derived", "consent"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "consent_version", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sort": "version_start_tstamp", "dist": "consent_version", "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "consent"], "description": "Used to keep track of each consent version and its validity", "columns": {"consent_version": {"name": "consent_version", "description": "Version of the privacy policy related document", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "version_start_tstamp": {"name": "version_start_tstamp", "description": "The time_stamp of the first allow_all event related to a consent version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent_scopes": {"name": "consent_scopes", "description": "The scopes allowed after the user finalized his selection of consent preferences Eg ['analytics', 'functional', 'advertisement']", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent_url": {"name": "consent_url", "description": "URI of the privacy policy related document", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "domains_applied": {"name": "domains_applied", "description": "The domains for which this consent allows these preferences to persist to", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "A boolean to filter whether the last consent or cmp visible event is sent after the latest privacy policy version goes live", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_allow_all_event": {"name": "last_allow_all_event", "description": "The timestamp of the last allow_all event used for the incremental update", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/optional_modules/consent/consent.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "file_format": "delta", "bind": false, "schema": "derived", "tags": ["snowplow_unified_incremental", "derived", "consent"], "enabled": true, "unique_key": "consent_version", "sort": "version_start_tstamp", "dist": "consent_version", "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612344.1154265, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_versions", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized='incremental',\n enabled=var(\"snowplow__enable_consent\", false),\n unique_key='consent_version',\n sort = 'version_start_tstamp',\n dist = 'consent_version',\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\n\n{% if is_incremental() %}\n{%- set lower_limit, upper_limit = snowplow_utils.return_limits_from_model(this,\n 'last_allow_all_event',\n 'last_allow_all_event') %}\n{% endif %}\n\nwith consent_versions as (\n\n select\n consent_version,\n consent_scopes,\n consent_url,\n domains_applied,\n min(derived_tstamp) as version_start_tstamp,\n max(load_tstamp) as last_allow_all_event\n\n from {{ ref('snowplow_unified_consent_log') }}\n\n where event_name <> 'cmp_visible' and event_type = 'allow_all'\n\n {% if is_incremental() %} -- and it has not been processed yet\n and load_tstamp > {{ upper_limit }}\n {% endif %}\n\n group by 1,2,3,4\n)\n\n, latest_version as (\n\n select\n consent_version,\n version_start_tstamp\n\n from consent_versions\n\n order by 2 desc limit 1\n)\n\n{% if is_incremental() %}\n\nselect\n v.consent_version,\n least(v.version_start_tstamp, t.version_start_tstamp) as version_start_tstamp,\n v.consent_scopes,\n v.consent_url,\n v.domains_applied,\n case when l.consent_version is not null then True else False end is_latest_version,\n v.last_allow_all_event\n\nfrom consent_versions v\n\nleft join latest_version l\n\non v.consent_version = l.consent_version\n\nleft join {{ this }} t\non t.consent_version = v.consent_version\n\n{% else %}\n\nselect\n v.consent_version,\n v.version_start_tstamp,\n v.consent_scopes,\n v.consent_url,\n v.domains_applied,\n case when l.consent_version is not null then True else False end is_latest_version,\n v.last_allow_all_event\n\nfrom consent_versions v\n\nleft join latest_version l\n\non v.consent_version = l.consent_version\n\n{% endif %}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_log", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.dbt.is_incremental", "macro.snowplow_utils.return_limits_from_model"], "nodes": ["model.snowplow_unified.snowplow_unified_consent_log"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/snowplow_unified_consent_versions.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n\nwith consent_versions as (\n\n select\n consent_version,\n consent_scopes,\n consent_url,\n domains_applied,\n min(derived_tstamp) as version_start_tstamp,\n max(load_tstamp) as last_allow_all_event\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_log\n\n where event_name <> 'cmp_visible' and event_type = 'allow_all'\n\n -- and it has not been processed yet\n and load_tstamp > \n cast('2021-02-26 09:13:39.940000' as TIMESTAMP)\n \n \n\n group by 1,2,3,4\n)\n\n, latest_version as (\n\n select\n consent_version,\n version_start_tstamp\n\n from consent_versions\n\n order by 2 desc limit 1\n)\n\n\n\nselect\n v.consent_version,\n least(v.version_start_tstamp, t.version_start_tstamp) as version_start_tstamp,\n v.consent_scopes,\n v.consent_url,\n v.domains_applied,\n case when l.consent_version is not null then True else False end is_latest_version,\n v.last_allow_all_event\n\nfrom consent_versions v\n\nleft join latest_version l\n\non v.consent_version = l.consent_version\n\nleft join SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_versions t\non t.consent_version = v.consent_version\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_consent_scope_status": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_derived", "name": "snowplow_unified_consent_scope_status", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/consent/snowplow_unified_consent_scope_status.sql", "original_file_path": "models/optional_modules/consent/snowplow_unified_consent_scope_status.sql", "unique_id": "model.snowplow_unified.snowplow_unified_consent_scope_status", "fqn": ["snowplow_unified", "optional_modules", "consent", "snowplow_unified_consent_scope_status"], "alias": "snowplow_unified_consent_scope_status", "checksum": {"name": "sha256", "checksum": "3a346faa62f447388018707546ac72b8d7da1b9f33eb7c2a5967b2655e15c99a"}, "config": {"enabled": true, "alias": null, "schema": "derived", "database": null, "tags": ["snowplow_unified_incremental", "derived", "consent"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "consent"], "description": "Aggregate of current number of users consented to each consent scope", "columns": {"scope": {"name": "scope", "description": "Consent scope", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_consent": {"name": "total_consent", "description": "The number of consent events corresponding to a scope", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/optional_modules/consent/consent.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "derived", "tags": ["snowplow_unified_incremental", "derived", "consent"], "enabled": true}, "created_at": 1706612344.111747, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_scope_status", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized='table',\n enabled=var(\"snowplow__enable_consent\", false)\n )\n}}\n\nwith arrays as (\n\n select\n u.user_identifier,\n {{ snowplow_utils.get_split_to_array('last_consent_scopes', 'u', ', ') }} as scope_array\n\n from {{ ref('snowplow_unified_consent_users') }} u\n\n where is_latest_version\n\n )\n\n , unnesting as (\n\n {{ snowplow_utils.unnest('user_identifier', 'scope_array', 'consent_scope', 'arrays') }}\n\n )\n\nselect\n replace(replace(replace(cast(consent_scope as {{ snowplow_utils.type_max_string() }}), '\"', ''), '[', ''), ']', '') as scope,\n count(*) as total_consent\n\nfrom unnesting\n\ngroup by 1", "language": "sql", "refs": [{"name": "snowplow_unified_consent_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.get_split_to_array", "macro.snowplow_utils.unnest", "macro.snowplow_utils.type_max_string"], "nodes": ["model.snowplow_unified.snowplow_unified_consent_users"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/snowplow_unified_consent_scope_status.sql", "compiled": true, "compiled_code": "\n\n\n\nwith arrays as (\n\n select\n u.user_identifier,\n \n split(u.last_consent_scopes, ', ')\n as scope_array\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_users u\n\n where is_latest_version\n\n )\n\n , unnesting as (\n\n \n select t.user_identifier, replace(r.value, '\"', '') as consent_scope\n \n from arrays t, table(flatten(t.scope_array)) r\n\n\n )\n\nselect\n replace(replace(replace(cast(consent_scope as \n TEXT\n), '\"', ''), '[', ''), ']', '') as scope,\n count(*) as total_consent\n\nfrom unnesting\n\ngroup by 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_consent_users": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_derived", "name": "snowplow_unified_consent_users", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/consent/snowplow_unified_consent_users.sql", "original_file_path": "models/optional_modules/consent/snowplow_unified_consent_users.sql", "unique_id": "model.snowplow_unified.snowplow_unified_consent_users", "fqn": ["snowplow_unified", "optional_modules", "consent", "snowplow_unified_consent_users"], "alias": "snowplow_unified_consent_users", "checksum": {"name": "sha256", "checksum": "7e405c3b9c3c833072423b5c4361e2bfd41c618129775429c04587a12456c4e2"}, "config": {"enabled": true, "alias": null, "schema": "derived", "database": null, "tags": ["snowplow_unified_incremental", "derived", "consent"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "user_identifier", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sort": "last_consent_event_tstamp", "dist": "user_identifier", "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "consent"], "description": "By user consent stats", "columns": {"user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "Unique ID set by business e.g. \u2018jon.doe@email.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_country": {"name": "geo_country", "description": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cmp_events": {"name": "cmp_events", "description": "The number of cmp_visible events the user has generated", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent_events": {"name": "consent_events", "description": "The number of cosent events the user has generated", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_cmp_event_tstamp": {"name": "last_cmp_event_tstamp", "description": "The timestamp of the last cmp_visible event", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_consent_event_tstamp": {"name": "last_consent_event_tstamp", "description": "The timestamp of the last consent event after the cmp_visible event happened", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_consent_event_type": {"name": "last_consent_event_type", "description": "The type of the last consent event after the cmp_visible event happened", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_consent_scopes": {"name": "last_consent_scopes", "description": "The list of consent scopes in connection with the last consent event", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_consent_version": {"name": "last_consent_version", "description": "The privacy policy version in connection with the last consent event", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_consent_url": {"name": "last_consent_url", "description": "The privacy policy url in connection with the last consent event", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_domains_applied": {"name": "last_domains_applied", "description": "The domains for which the last consent event applies", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_processed_event": {"name": "last_processed_event", "description": "The timestamp of the last processed event needed for the incremental logic", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "A boolean to filter whether the last consent or cmp visible event is sent after the latest privacy policy version goes live", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/optional_modules/consent/consent.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "file_format": "delta", "bind": false, "schema": "derived", "tags": ["snowplow_unified_incremental", "derived", "consent"], "enabled": true, "unique_key": "user_identifier", "sort": "last_consent_event_tstamp", "dist": "user_identifier", "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612344.1046658, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_users", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized='incremental',\n enabled=var(\"snowplow__enable_consent\", false),\n unique_key='user_identifier',\n sort = 'last_consent_event_tstamp',\n dist = 'user_identifier',\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\n\n{% if is_incremental() %}\n{%- set lower_limit, upper_limit = snowplow_utils.return_limits_from_model(this,\n 'last_processed_event',\n 'last_processed_event') %}\n{% endif %}\n\nwith base as (\n\n select\n user_identifier,\n user_id,\n geo_country,\n max(load_tstamp) as last_processed_event,\n count(case when event_name = 'cmp_visible' then 1 end) as cmp_events,\n count(case when event_name = 'consent_preferences' then 1 end) as consent_events,\n max(case when event_name = 'cmp_visible' then derived_tstamp end) as last_cmp_event_tstamp,\n row_number() over(partition by user_identifier order by max(load_tstamp) desc) as latest_event_by_user_rank\n\n from {{ ref('snowplow_unified_consent_log') }}\n\n {% if is_incremental() %} -- and it has not been processed yet\n where load_tstamp > {{ upper_limit }}\n {% endif %}\n\n group by 1,2,3\n\n)\n\n, latest_consents as (\n\n select\n user_identifier,\n derived_tstamp as last_consent_event_tstamp,\n event_type as last_consent_event_type,\n consent_scopes as last_consent_scopes,\n consent_version as last_consent_version,\n consent_url as last_consent_url,\n domains_applied as last_domains_applied,\n row_number() over(partition by user_identifier order by load_tstamp desc) as latest_consent_event_by_user_rank\n\n from {{ ref('snowplow_unified_consent_log') }}\n\n where event_name = 'consent_preferences'\n\n {% if is_incremental() %} -- and it has not been processed yet\n and load_tstamp > {{ upper_limit }}\n {% endif %}\n\n)\n\n{% if is_incremental() %}\n\nselect\n b.user_identifier,\n b.user_id,\n b.geo_country,\n coalesce(b.cmp_events, 0) + coalesce(t.cmp_events, 0) as cmp_events,\n coalesce(b.consent_events, 0) + coalesce(t.consent_events, 0) as consent_events,\n b.last_cmp_event_tstamp,\n l.last_consent_event_tstamp,\n l.last_consent_event_type,\n l.last_consent_scopes,\n l.last_consent_version,\n l.last_consent_url,\n l.last_domains_applied,\n b.last_processed_event,\n case when v.is_latest_version then True else False end as is_latest_version\n\nfrom base b\n\nleft join latest_consents l\non b.user_identifier = l.user_identifier\n\nleft join {{ ref('snowplow_unified_consent_versions')}} v\non v.consent_version = l.last_consent_version\n\nleft join {{ this }} t\non t.user_identifier = b.user_identifier\n\nwhere (l.latest_consent_event_by_user_rank = 1 or l.user_identifier is null)\nand b.latest_event_by_user_rank = 1\n\n{% else %}\n\nselect\n b.user_identifier,\n b.user_id,\n b.geo_country,\n b.cmp_events,\n b.consent_events,\n b.last_cmp_event_tstamp,\n l.last_consent_event_tstamp,\n l.last_consent_event_type,\n l.last_consent_scopes,\n l.last_consent_version,\n l.last_consent_url,\n l.last_domains_applied,\n b.last_processed_event,\n case when v.is_latest_version then True else False end as is_latest_version\n\nfrom base b\n\nleft join latest_consents l\non b.user_identifier = l.user_identifier\n\nleft join {{ ref('snowplow_unified_consent_versions') }} v\non v.consent_version = l.last_consent_version\n\nwhere (l.latest_consent_event_by_user_rank = 1 or l.user_identifier is null)\nand b.latest_event_by_user_rank = 1\n\n{% endif %}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_log", "package": null, "version": null}, {"name": "snowplow_unified_consent_log", "package": null, "version": null}, {"name": "snowplow_unified_consent_versions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.dbt.is_incremental", "macro.snowplow_utils.return_limits_from_model"], "nodes": ["model.snowplow_unified.snowplow_unified_consent_log", "model.snowplow_unified.snowplow_unified_consent_versions"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/snowplow_unified_consent_users.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\n\n\nwith base as (\n\n select\n user_identifier,\n user_id,\n geo_country,\n max(load_tstamp) as last_processed_event,\n count(case when event_name = 'cmp_visible' then 1 end) as cmp_events,\n count(case when event_name = 'consent_preferences' then 1 end) as consent_events,\n max(case when event_name = 'cmp_visible' then derived_tstamp end) as last_cmp_event_tstamp,\n row_number() over(partition by user_identifier order by max(load_tstamp) desc) as latest_event_by_user_rank\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_log\n\n -- and it has not been processed yet\n where load_tstamp > \n cast('2021-02-26 09:13:51.444000' as TIMESTAMP)\n \n \n\n group by 1,2,3\n\n)\n\n, latest_consents as (\n\n select\n user_identifier,\n derived_tstamp as last_consent_event_tstamp,\n event_type as last_consent_event_type,\n consent_scopes as last_consent_scopes,\n consent_version as last_consent_version,\n consent_url as last_consent_url,\n domains_applied as last_domains_applied,\n row_number() over(partition by user_identifier order by load_tstamp desc) as latest_consent_event_by_user_rank\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_log\n\n where event_name = 'consent_preferences'\n\n -- and it has not been processed yet\n and load_tstamp > \n cast('2021-02-26 09:13:51.444000' as TIMESTAMP)\n \n \n\n)\n\n\n\nselect\n b.user_identifier,\n b.user_id,\n b.geo_country,\n coalesce(b.cmp_events, 0) + coalesce(t.cmp_events, 0) as cmp_events,\n coalesce(b.consent_events, 0) + coalesce(t.consent_events, 0) as consent_events,\n b.last_cmp_event_tstamp,\n l.last_consent_event_tstamp,\n l.last_consent_event_type,\n l.last_consent_scopes,\n l.last_consent_version,\n l.last_consent_url,\n l.last_domains_applied,\n b.last_processed_event,\n case when v.is_latest_version then True else False end as is_latest_version\n\nfrom base b\n\nleft join latest_consents l\non b.user_identifier = l.user_identifier\n\nleft join SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_versions v\non v.consent_version = l.last_consent_version\n\nleft join SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_users t\non t.user_identifier = b.user_identifier\n\nwhere (l.latest_consent_event_by_user_rank = 1 or l.user_identifier is null)\nand b.latest_event_by_user_rank = 1\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_consent_totals": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_derived", "name": "snowplow_unified_consent_totals", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/consent/snowplow_unified_consent_totals.sql", "original_file_path": "models/optional_modules/consent/snowplow_unified_consent_totals.sql", "unique_id": "model.snowplow_unified.snowplow_unified_consent_totals", "fqn": ["snowplow_unified", "optional_modules", "consent", "snowplow_unified_consent_totals"], "alias": "snowplow_unified_consent_totals", "checksum": {"name": "sha256", "checksum": "85eb814f7563854ca2fa78fdd087bb72381fefd87c65d96cc1ad0ec8db2702ac"}, "config": {"enabled": true, "alias": null, "schema": "derived", "database": null, "tags": ["snowplow_unified_incremental", "derived", "consent"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "consent"], "description": "Summary of the latest consent status as per consent version", "columns": {"consent_version": {"name": "consent_version", "description": "Version of the privacy policy related document", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "version_start_tstamp": {"name": "version_start_tstamp", "description": "The first allow_all consent event belonging to a consent version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent_scopes": {"name": "consent_scopes", "description": "The scopes allowed after the user finalized his selection of consent preferences Eg ['analytics', 'functional', 'advertisement']", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "consent_url": {"name": "consent_url", "description": "URI of the privacy policy related document", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "domains_applied": {"name": "domains_applied", "description": "The domains for which this consent allows these preferences to persist to", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_latest_version": {"name": "is_latest_version", "description": "A boolean to filter whether the last consent or cmp visible event is sent after the latest privacy policy version goes live", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_allow_all_event": {"name": "last_allow_all_event", "description": "The timestamp of the last allow_all consent event generated by the latest consent version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_visitors": {"name": "total_visitors", "description": "The number of visitors who have visited since the last consent version is live", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "allow_all": {"name": "allow_all", "description": "Total number of users whose last consent event sent from the latest consent version has type allow_all", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "allow_selected": {"name": "allow_selected", "description": "Total number of users whose last consent event sent from the latest consent version has type allow_selected", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "allow": {"name": "allow", "description": "Total number of users whose last consent event sent from the latest consent version has type allow", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pending": {"name": "pending", "description": "Total number of users whose last consent event sent from the latest consent version has type pending", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "denied": {"name": "denied", "description": "Total number of users whose last consent event sent from the latest consent version has type denied", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expired": {"name": "expired", "description": "Total number of users whose last consent event sent from the latest consent version has type expired", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "implicit_consent": {"name": "implicit_consent", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": [], "describtion": "Total number of users whose last consent event sent from the latest consent version has type implicit_consent"}, "withdrawn": {"name": "withdrawn", "description": "Total number of users whose last consent event sent from the latest consent version has type withdrawn", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expires_in_six_months": {"name": "expires_in_six_months", "description": "The total number of users whose consent expires in six months (only the offical version is taken into account)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/optional_modules/consent/consent.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "derived", "tags": ["snowplow_unified_incremental", "derived", "consent"], "enabled": true, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612344.1103852, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_totals", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized='table',\n enabled=var(\"snowplow__enable_consent\", false),\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\nwith totals as (\n\n select\n last_consent_version,\n count(distinct user_identifier) as total_visitors,\n count(case when last_consent_event_type ='allow_all' then 1 end) as allow_all,\n count(case when last_consent_event_type ='allow_selected' then 1 end) as allow_selected,\n count(case when last_consent_event_type IN ('allow_all', 'allow_selected') then 1 end) as allow,\n count(case when last_consent_event_type = 'pending' then 1 end) as pending,\n count(case when last_consent_event_type = 'deny_all' then 1 end) as denied,\n count(case when last_consent_event_type = 'expired' then 1 end) as expired,\n count(case when last_consent_event_type = 'withdrawn' then 1 end) as withdrawn,\n count(case when last_consent_event_type = 'implicit_consent' then 1 end) as implicit_consent,\n count(case when {{ dateadd('year', '1', 'last_consent_event_tstamp') }} <= {{ dateadd('month', '6', 'current_date') }}\n and last_consent_event_type <> 'expired'\n and {{ dateadd('year', '1', 'last_consent_event_tstamp') }} > current_date then 1 end) as expires_in_six_months\n\n from {{ ref('snowplow_unified_consent_users') }}\n\n where last_consent_event_type is not null\n\n group by 1\n\n)\n\nselect\n v.*,\n t.total_visitors,\n t.allow_all,\n t.allow_selected,\n t.allow,\n t.pending,\n t.denied,\n t.expired,\n t.withdrawn,\n t.implicit_consent,\n t.expires_in_six_months\n\nfrom {{ ref('snowplow_unified_consent_versions') }} v\n\nleft join totals t\non t.last_consent_version = v.consent_version\n\norder by v.version_start_tstamp desc", "language": "sql", "refs": [{"name": "snowplow_unified_consent_users", "package": null, "version": null}, {"name": "snowplow_unified_consent_versions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.dbt.dateadd"], "nodes": ["model.snowplow_unified.snowplow_unified_consent_users", "model.snowplow_unified.snowplow_unified_consent_versions"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/snowplow_unified_consent_totals.sql", "compiled": true, "compiled_code": "\n\n\n\nwith totals as (\n\n select\n last_consent_version,\n count(distinct user_identifier) as total_visitors,\n count(case when last_consent_event_type ='allow_all' then 1 end) as allow_all,\n count(case when last_consent_event_type ='allow_selected' then 1 end) as allow_selected,\n count(case when last_consent_event_type IN ('allow_all', 'allow_selected') then 1 end) as allow,\n count(case when last_consent_event_type = 'pending' then 1 end) as pending,\n count(case when last_consent_event_type = 'deny_all' then 1 end) as denied,\n count(case when last_consent_event_type = 'expired' then 1 end) as expired,\n count(case when last_consent_event_type = 'withdrawn' then 1 end) as withdrawn,\n count(case when last_consent_event_type = 'implicit_consent' then 1 end) as implicit_consent,\n count(case when \n\n dateadd(\n year,\n 1,\n last_consent_event_tstamp\n )\n\n <= \n\n dateadd(\n month,\n 6,\n current_date\n )\n\n\n and last_consent_event_type <> 'expired'\n and \n\n dateadd(\n year,\n 1,\n last_consent_event_tstamp\n )\n\n > current_date then 1 end) as expires_in_six_months\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_users\n\n where last_consent_event_type is not null\n\n group by 1\n\n)\n\nselect\n v.*,\n t.total_visitors,\n t.allow_all,\n t.allow_selected,\n t.allow,\n t.pending,\n t.denied,\n t.expired,\n t.withdrawn,\n t.implicit_consent,\n t.expires_in_six_months\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_versions v\n\nleft join totals t\non t.last_consent_version = v.consent_version\n\norder by v.version_start_tstamp desc", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_consent_events_this_run": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_consent_events_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/consent/scratch/snowflake/snowplow_unified_consent_events_this_run.sql", "original_file_path": "models/optional_modules/consent/scratch/snowflake/snowplow_unified_consent_events_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_consent_events_this_run", "fqn": ["snowplow_unified", "optional_modules", "consent", "scratch", "snowflake", "snowplow_unified_consent_events_this_run"], "alias": "snowplow_unified_consent_events_this_run", "checksum": {"name": "sha256", "checksum": "a9723d022a118d6632cb6bab2b9d50627d2841202a0ab59b3ebd84175354daa5"}, "config": {"enabled": true, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "derived", "consent", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "consent", "scratch", "this_run"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": ["this_run"], "enabled": true, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612342.3327613, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_consent_events_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n tags=[\"this_run\"],\n enabled=var(\"snowplow__enable_consent\", false) and target.type == 'snowflake' | as_bool(),\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\nwith prep as (\n\n select\n e.event_id\n , e.user_identifier\n , e.user_id\n , e.geo_country\n , e.view_id\n , e.session_identifier\n , e.derived_tstamp\n , e.load_tstamp\n , e.event_name\n , e.consent__event_type as event_type\n , e.consent__basis_for_processing as basis_for_processing\n , e.consent__consent_url as consent_url\n , e.consent__consent_version as consent_version\n , e.consent__consent_scopes as consent_scopes\n , e.consent__domains_applied as domains_applied\n , e.consent__gdpr_applies as gdpr_applies\n , e.cmp__elapsed_time as cmp_load_time\n\n from {{ ref(\"snowplow_unified_events_this_run\") }} as e\n\n where event_name in ('cmp_visible', 'consent_preferences')\n\n and {{ snowplow_utils.is_run_with_new_events('snowplow_unified') }} --returns false if run doesn't contain new events.\n\n {% if var(\"snowplow__ua_bot_filter\", false) %}\n {{ filter_bots() }}\n {% endif %}\n\n)\n\nselect\n p.event_id,\n p.user_identifier,\n p.user_id,\n p.geo_country,\n p.view_id,\n p.session_identifier,\n p.derived_tstamp,\n p.load_tstamp,\n p.event_name,\n p.event_type,\n p.basis_for_processing,\n p.consent_url,\n p.consent_version,\n {{ snowplow_utils.get_array_to_string('consent_scopes', 'p', ', ') }} as consent_scopes,\n {{ snowplow_utils.get_array_to_string('domains_applied', 'p', ', ') }} as domains_applied,\n coalesce(p.gdpr_applies, false) as gdpr_applies,\n p.cmp_load_time\n\nfrom prep p", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.is_run_with_new_events", "macro.snowplow_unified.filter_bots", "macro.snowplow_utils.get_array_to_string"], "nodes": ["model.snowplow_unified.snowplow_unified_events_this_run", "model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_incremental_manifest"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/scratch/snowflake/snowplow_unified_consent_events_this_run.sql", "compiled": true, "compiled_code": "\n\n\n\nwith prep as (\n\n select\n e.event_id\n , e.user_identifier\n , e.user_id\n , e.geo_country\n , e.view_id\n , e.session_identifier\n , e.derived_tstamp\n , e.load_tstamp\n , e.event_name\n , e.consent__event_type as event_type\n , e.consent__basis_for_processing as basis_for_processing\n , e.consent__consent_url as consent_url\n , e.consent__consent_version as consent_version\n , e.consent__consent_scopes as consent_scopes\n , e.consent__domains_applied as domains_applied\n , e.consent__gdpr_applies as gdpr_applies\n , e.cmp__elapsed_time as cmp_load_time\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_events_this_run as e\n\n where event_name in ('cmp_visible', 'consent_preferences')\n\n and True --returns false if run doesn't contain new events.\n\n \n \n and not rlike(useragent, '.*(bot|crawl|slurp|spider|archiv|spinn|sniff|seo|audit|survey|pingdom|worm|capture|(browser|screen)shots|analyz|index|thumb|check|facebook|PingdomBot|PhantomJS|YandexBot|Twitterbot|a_archiver|facebookexternalhit|Bingbot|BingPreview|Googlebot|Baiduspider|360(Spider|User-agent)|semalt).*')\n\n \n\n)\n\nselect\n p.event_id,\n p.user_identifier,\n p.user_id,\n p.geo_country,\n p.view_id,\n p.session_identifier,\n p.derived_tstamp,\n p.load_tstamp,\n p.event_name,\n p.event_type,\n p.basis_for_processing,\n p.consent_url,\n p.consent_version,\n \n array_to_string(p.consent_scopes,', ')\n as consent_scopes,\n \n array_to_string(p.domains_applied,', ')\n as domains_applied,\n coalesce(p.gdpr_applies, false) as gdpr_applies,\n p.cmp_load_time\n\nfrom prep p", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_app_errors": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_derived", "name": "snowplow_unified_app_errors", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/app_errors/snowplow_unified_app_errors.sql", "original_file_path": "models/optional_modules/app_errors/snowplow_unified_app_errors.sql", "unique_id": "model.snowplow_unified.snowplow_unified_app_errors", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "snowplow_unified_app_errors"], "alias": "snowplow_unified_app_errors", "checksum": {"name": "sha256", "checksum": "a80677370a7ab7e33c46a9d7392827c37101157362cf60587de5938ddc22f731"}, "config": {"enabled": true, "alias": null, "schema": "derived", "database": null, "tags": ["snowplow_mobile_incremental", "derived"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "event_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "cluster_by": ["to_date(derived_tstamp)"], "upsert_date_key": "derived_tstamp", "sort": "derived_tstamp", "dist": "event_id", "partition_by": null, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "snowplow_optimize": true, "post-hook": [], "pre-hook": []}, "tags": ["snowplow_mobile_incremental", "derived"], "description": "This derived table contains all app errors and should be the end point for any analysis or BI tools looking to investigate app errors. This is an optional table that will be empty if the `app_errors` module is not enabled.", "columns": {"event_id": {"name": "event_id", "description": "A UUID for each event e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}, "app_id": {"name": "app_id", "description": "Application ID e.g. \u2018angry-birds\u2019 is used to distinguish different applications that are being tracked by the same Snowplow stack, e.g. production versus dev.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "Unique ID set by business e.g. \u2018jon.doe@email.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network_userid": {"name": "network_userid", "description": "User ID set by Snowplow using 3rd party cookie e.g. \u2018ecdff4d0-9175-40ac-a8bb-325c49733607\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_identifier": {"name": "session_identifier", "description": "The session identifier as defined in your project variables. Default to domain_sessionid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_index": {"name": "session_index", "description": "A visit / session index e.g. `3`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "previous_session_identifier": {"name": "previous_session_identifier", "description": "A previous visit / session index e.g. `3`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_first_event_id": {"name": "session_first_event_id", "description": "A first visit / session index e.g. `3`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_created_tstamp": {"name": "dvce_created_tstamp", "description": "Timestamp event was recorded on the client device e.g. \u20182013-11-26 00:03:57.885\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "collector_tstamp": {"name": "collector_tstamp", "description": "Time stamp for the event recorded by the collector e.g. \u20182013-11-26 00:02:05\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "derived_tstamp": {"name": "derived_tstamp", "description": "Timestamp making allowance for innaccurate device clock e.g. \u20182013-11-26 00:02:04\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_tstamp": {"name": "model_tstamp", "description": "The current timestamp when the model processed this row.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "Platform e.g. \u2018web\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_screenwidth": {"name": "dvce_screenwidth", "description": "Screen width in pixels e.g. 1900", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_screenheight": {"name": "dvce_screenheight", "description": "Screen height in pixels e.g. 1024", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_manufacturer": {"name": "device_manufacturer", "description": "Manufacturer name of the device eg. `Apple`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_model": {"name": "device_model", "description": "Model of the mobile device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_type": {"name": "os_type", "description": "Type of OS running on the mobile device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_version": {"name": "os_version", "description": "Operation system full version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "android_idfa": {"name": "android_idfa", "description": "Identifier for Advertisers for Android devices.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "apple_idfa": {"name": "apple_idfa", "description": "Identifier for Advertisers for Apple devices.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "apple_idfv": {"name": "apple_idfv", "description": "Identifier for Vendors for Apple devices.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "open_idfa": {"name": "open_idfa", "description": "Identifier for Vendors for Open devices.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_id": {"name": "screen_id", "description": "A UUID for each screen e.g. `738f1fbc-5298-46fa-9474-bc0a65f014ab`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_name": {"name": "screen_name", "description": "The name set for a specific screen, e.g. `DemoScreenName`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_activity": {"name": "screen_activity", "description": "The name of the Activity element in the screen.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_fragment": {"name": "screen_fragment", "description": "The name of the screen fragment (also known as an anchor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_top_view_controller": {"name": "screen_top_view_controller", "description": "The name of the root view controller.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_type": {"name": "screen_type", "description": "The type of screen that was viewed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view_controller": {"name": "screen_view_controller", "description": "The name of the view controller.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_latitude": {"name": "device_latitude", "description": "Latitude coordinates for device location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_longitude": {"name": "device_longitude", "description": "Longitude coordinates for device location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_latitude_longitude_accuracy": {"name": "device_latitude_longitude_accuracy", "description": "Accuracy of Latitude and Longitude coordinates for device location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_altitude": {"name": "device_altitude", "description": "Altitude coordinates for device location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_altitude_accuracy": {"name": "device_altitude_accuracy", "description": "Accuracy of device altitude coordinates.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_bearing": {"name": "device_bearing", "description": "Horizontal angle between device and true north.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_speed": {"name": "device_speed", "description": "Mobile device speed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_country": {"name": "geo_country", "description": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_region": {"name": "geo_region", "description": "ISO-3166-2 code for country region the visitor is in e.g. \u2018I9\u2019, \u2018TX\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_city": {"name": "geo_city", "description": "City the visitor is in e.g. \u2018New York\u2019, \u2018London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_zipcode": {"name": "geo_zipcode", "description": "Postcode the visitor is in e.g. \u201894109\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_latitude": {"name": "geo_latitude", "description": "Visitor location latitude e.g. 37.443604", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_longitude": {"name": "geo_longitude", "description": "Visitor location longitude e.g. -122.4124", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_region_name": {"name": "geo_region_name", "description": "Visitor region name e.g. \u2018Florida\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_timezone": {"name": "geo_timezone", "description": "Visitor timezone name e.g. \u2018Europe/London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_ipaddress": {"name": "user_ipaddress", "description": "User IP address e.g. \u201892.231.54.234\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent": {"name": "useragent", "description": "Raw useragent", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "carrier": {"name": "carrier", "description": "Carrier serivce provider used within device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network_technology": {"name": "network_technology", "description": "technology used by the network provider of the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network_type": {"name": "network_type", "description": "Type of network eg. `3G`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "build": {"name": "build", "description": "The build of the application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "version": {"name": "version", "description": "The application version.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_index_in_session": {"name": "event_index_in_session", "description": "A session index of the event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "message": {"name": "message", "description": "The app error message.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "programming_language": {"name": "programming_language", "description": "The app error's programming language.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_name": {"name": "class_name", "description": "The app error class name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exception_name": {"name": "exception_name", "description": "The app error excetion's name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_fatal": {"name": "is_fatal", "description": "Boolean whether the app error is fatal or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_number": {"name": "line_number", "description": "The app error line number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stack_trace": {"name": "stack_trace", "description": "The stack trace of the app error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "thread_id": {"name": "thread_id", "description": "The app error's thread id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "thread_name": {"name": "thread_name", "description": "The app error's thread name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/optional_modules/app_errors/app_errors.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "file_format": "delta", "bind": false, "schema": "derived", "tags": ["derived"], "unique_key": "event_id", "upsert_date_key": "derived_tstamp", "sort": "derived_tstamp", "dist": "event_id", "partition_by": null, "cluster_by": ["to_date(derived_tstamp)"], "enabled": true, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "snowplow_optimize": true}, "created_at": 1706612344.1637497, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_app_errors", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized=\"incremental\",\n unique_key='event_id',\n upsert_date_key='derived_tstamp',\n sort='derived_tstamp',\n dist='event_id',\n partition_by = snowplow_utils.get_value_by_target_type(bigquery_val={\n \"field\": \"derived_tstamp\",\n \"data_type\": \"timestamp\"\n }, databricks_val='derived_tstamp_date'),\n cluster_by=snowplow_utils.get_value_by_target_type(bigquery_val=[\"session_identifier\"], snowflake_val=[\"to_date(derived_tstamp)\"]),\n tags=[\"derived\"],\n enabled=var(\"snowplow__enable_app_errors\", false),\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt')),\n tblproperties={\n 'delta.autoOptimize.optimizeWrite' : 'true',\n 'delta.autoOptimize.autoCompact' : 'true'\n },\n snowplow_optimize=true\n )\n}}\n\n\nselect *\n {% if target.type in ['databricks', 'spark'] -%}\n , date(derived_tstamp) as derived_tstamp_date\n {%- endif %}\nfrom {{ ref('snowplow_unified_app_errors_this_run') }}\nwhere {{ snowplow_utils.is_run_with_new_events('snowplow_unified') }} --returns false if run doesn't contain new events.", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.get_value_by_target_type", "macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.is_run_with_new_events"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors_this_run", "model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_incremental_manifest"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/snowplow_unified_app_errors.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect *\n \nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_app_errors_this_run\nwhere cast(True as boolean) --returns false if run doesn't contain new events.", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_app_errors_this_run": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_app_errors_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/app_errors/scratch/snowplow_unified_app_errors_this_run.sql", "original_file_path": "models/optional_modules/app_errors/scratch/snowplow_unified_app_errors_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_app_errors_this_run", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "scratch", "snowplow_unified_app_errors_this_run"], "alias": "snowplow_unified_app_errors_this_run", "checksum": {"name": "sha256", "checksum": "1c2f64fcf5b2e1a29568f0426701ad44d31597e3c4a63142ba9e2e7957b060ac"}, "config": {"enabled": true, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_mobile_incremental", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sort": "derived_tstamp", "dist": "event_id", "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_mobile_incremental", "scratch", "this_run"], "description": "This staging table contains all the app errors for the given run of the unified model. This is an optional table that will not be generated if the `app_errors` module is not enabled.", "columns": {"event_id": {"name": "event_id", "description": "A UUID for each event e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}, "app_id": {"name": "app_id", "description": "Application ID e.g. \u2018angry-birds\u2019 is used to distinguish different applications that are being tracked by the same Snowplow stack, e.g. production versus dev.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "Unique ID set by business e.g. \u2018jon.doe@email.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network_userid": {"name": "network_userid", "description": "User ID set by Snowplow using 3rd party cookie e.g. \u2018ecdff4d0-9175-40ac-a8bb-325c49733607\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_identifier": {"name": "session_identifier", "description": "The session identifier as defined in your project variables. Default to domain_sessionid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_index": {"name": "session_index", "description": "A visit / session index e.g. `3`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "previous_session_identifier": {"name": "previous_session_identifier", "description": "A previous visit / session index e.g. `3`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_first_event_id": {"name": "session_first_event_id", "description": "A first visit / session index e.g. `3`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_created_tstamp": {"name": "dvce_created_tstamp", "description": "Timestamp event was recorded on the client device e.g. \u20182013-11-26 00:03:57.885\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "collector_tstamp": {"name": "collector_tstamp", "description": "Time stamp for the event recorded by the collector e.g. \u20182013-11-26 00:02:05\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "derived_tstamp": {"name": "derived_tstamp", "description": "Timestamp making allowance for innaccurate device clock e.g. \u20182013-11-26 00:02:04\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_tstamp": {"name": "model_tstamp", "description": "The current timestamp when the model processed this row.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "Platform e.g. \u2018web\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_screenwidth": {"name": "dvce_screenwidth", "description": "Screen width in pixels e.g. 1900", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_screenheight": {"name": "dvce_screenheight", "description": "Screen height in pixels e.g. 1024", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_manufacturer": {"name": "device_manufacturer", "description": "Manufacturer name of the device eg. `Apple`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_model": {"name": "device_model", "description": "Model of the mobile device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_type": {"name": "os_type", "description": "Type of OS running on the mobile device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_version": {"name": "os_version", "description": "Operation system full version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "android_idfa": {"name": "android_idfa", "description": "Identifier for Advertisers for Android devices.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "apple_idfa": {"name": "apple_idfa", "description": "Identifier for Advertisers for Apple devices.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "apple_idfv": {"name": "apple_idfv", "description": "Identifier for Vendors for Apple devices.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "open_idfa": {"name": "open_idfa", "description": "Identifier for Vendors for Open devices.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_id": {"name": "screen_id", "description": "A UUID for each screen e.g. `738f1fbc-5298-46fa-9474-bc0a65f014ab`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_name": {"name": "screen_name", "description": "The name set for a specific screen, e.g. `DemoScreenName`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_activity": {"name": "screen_activity", "description": "The name of the Activity element in the screen.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_fragment": {"name": "screen_fragment", "description": "The name of the screen fragment (also known as an anchor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_top_view_controller": {"name": "screen_top_view_controller", "description": "The name of the root view controller.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_type": {"name": "screen_type", "description": "The type of screen that was viewed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view_controller": {"name": "screen_view_controller", "description": "The name of the view controller.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_latitude": {"name": "device_latitude", "description": "Latitude coordinates for device location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_longitude": {"name": "device_longitude", "description": "Longitude coordinates for device location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_latitude_longitude_accuracy": {"name": "device_latitude_longitude_accuracy", "description": "Accuracy of Latitude and Longitude coordinates for device location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_altitude": {"name": "device_altitude", "description": "Altitude coordinates for device location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_altitude_accuracy": {"name": "device_altitude_accuracy", "description": "Accuracy of device altitude coordinates.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_bearing": {"name": "device_bearing", "description": "Horizontal angle between device and true north.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_speed": {"name": "device_speed", "description": "Mobile device speed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_country": {"name": "geo_country", "description": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_region": {"name": "geo_region", "description": "ISO-3166-2 code for country region the visitor is in e.g. \u2018I9\u2019, \u2018TX\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_city": {"name": "geo_city", "description": "City the visitor is in e.g. \u2018New York\u2019, \u2018London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_zipcode": {"name": "geo_zipcode", "description": "Postcode the visitor is in e.g. \u201894109\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_latitude": {"name": "geo_latitude", "description": "Visitor location latitude e.g. 37.443604", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_longitude": {"name": "geo_longitude", "description": "Visitor location longitude e.g. -122.4124", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_region_name": {"name": "geo_region_name", "description": "Visitor region name e.g. \u2018Florida\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_timezone": {"name": "geo_timezone", "description": "Visitor timezone name e.g. \u2018Europe/London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_ipaddress": {"name": "user_ipaddress", "description": "User IP address e.g. \u201892.231.54.234\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent": {"name": "useragent", "description": "Raw useragent", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "carrier": {"name": "carrier", "description": "Carrier serivce provider used within device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network_technology": {"name": "network_technology", "description": "technology used by the network provider of the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network_type": {"name": "network_type", "description": "Type of network eg. `3G`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "build": {"name": "build", "description": "The build of the application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "version": {"name": "version", "description": "The application version.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_index_in_session": {"name": "event_index_in_session", "description": "A session index of the event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "message": {"name": "message", "description": "The app error message.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "programming_language": {"name": "programming_language", "description": "The app error's programming language.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_name": {"name": "class_name", "description": "The app error class name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exception_name": {"name": "exception_name", "description": "The app error excetion's name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_fatal": {"name": "is_fatal", "description": "Boolean whether the app error is fatal or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_number": {"name": "line_number", "description": "The app error line number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stack_trace": {"name": "stack_trace", "description": "The stack trace of the app error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "thread_id": {"name": "thread_id", "description": "The app error's thread id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "thread_name": {"name": "thread_name", "description": "The app error's thread name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/optional_modules/app_errors/scratch/app_errors_scratch.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": ["this_run"], "sort": "derived_tstamp", "dist": "event_id", "enabled": true, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612344.2036304, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_app_errors_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n sort='derived_tstamp',\n dist='event_id',\n tags=[\"this_run\"],\n enabled=(var(\"snowplow__enable_app_errors\", false)),\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\nselect\n e.event_id,\n\n e.app_id,\n\n e.user_id,\n e.user_identifier,\n e.network_userid,\n\n e.session_identifier,\n e.session__session_index as session_index,\n e.session__previous_session_id as previous_session_id,\n e.session__first_event_id as session_first_event_id,\n\n e.dvce_created_tstamp,\n e.collector_tstamp,\n e.derived_tstamp,\n\n {% if target.type in ['redshift', 'postgres', 'databricks'] -%}\n CURRENT_TIMESTAMP as model_tstamp,\n {% else %}\n {{ snowplow_utils.current_timestamp_in_utc() }} as model_tstamp,\n {% endif %}\n\n e.platform,\n e.dvce_screenwidth,\n e.dvce_screenheight,\n e.mobile__device_manufacturer as device_manufacturer,\n e.mobile__device_model as device_model,\n e.mobile__os_type as os_type,\n e.mobile__os_version as os_version,\n e.mobile__android_idfa as android_idfa,\n e.mobile__apple_idfa as apple_idfa,\n e.mobile__apple_idfv as apple_idfv,\n e.mobile__open_idfa as open_idfa,\n\n e.screen__id as screen_id,\n e.screen__name as screen_name,\n e.screen__activity as screen_activity,\n e.screen__fragment as screen_fragment,\n e.screen__top_view_controller as screen_top_view_controller,\n e.screen__type as screen_type,\n e.screen__view_controller as screen_view_controller,\n\n e.geo__latitude as device_latitude,\n e.geo__longitude as device_longitude,\n e.geo__latitude_longitude_accuracy as device_latitude_longitude_accuracy,\n e.geo__altitude as device_altitude,\n e.geo__altitude_accuracy as device_altitude_accuracy,\n e.geo__bearing as device_bearing,\n e.geo__speed as device_speed,\n e.geo_country,\n e.geo_region,\n e.geo_city,\n e.geo_zipcode,\n e.geo__latitude as geo_latitude,\n e.geo__longitude as geo_longitude,\n e.geo_region_name as geo_region_name,\n e.geo_timezone as geo_timezone,\n\n e.user_ipaddress,\n e.useragent,\n\n e.mobile__carrier as carrier,\n e.mobile__network_technology as network_technology,\n e.mobile__network_type as network_type,\n\n e.app__build as build,\n e.app__build as version,\n row_number() over(partition by e.session_identifier order by e.derived_tstamp) as event_index_in_session,\n\n -- app error events\n e.app_error__message as message,\n e.app_error__programming_language as programming_language,\n e.app_error__class_name as class_name,\n e.app_error__exception_name as exception_name,\n e.app_error__is_fatal as is_fatal,\n e.app_error__line_number as line_number,\n e.app_error__stack_trace as stack_trace,\n e.app_error__thread_id as thread_id,\n e.app_error__thread_name as thread_name\n\nfrom {{ ref('snowplow_unified_events_this_run') }} as e\nwhere e.event_name = 'application_error'", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.current_timestamp_in_utc"], "nodes": ["model.snowplow_unified.snowplow_unified_events_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/scratch/snowplow_unified_app_errors_this_run.sql", "compiled": true, "compiled_code": "\n\n\n\nselect\n e.event_id,\n\n e.app_id,\n\n e.user_id,\n e.user_identifier,\n e.network_userid,\n\n e.session_identifier,\n e.session__session_index as session_index,\n e.session__previous_session_id as previous_session_id,\n e.session__first_event_id as session_first_event_id,\n\n e.dvce_created_tstamp,\n e.collector_tstamp,\n e.derived_tstamp,\n\n \n \n convert_timezone('UTC', convert_timezone('UTC', current_timestamp()))::TIMESTAMP\n as model_tstamp,\n \n\n e.platform,\n e.dvce_screenwidth,\n e.dvce_screenheight,\n e.mobile__device_manufacturer as device_manufacturer,\n e.mobile__device_model as device_model,\n e.mobile__os_type as os_type,\n e.mobile__os_version as os_version,\n e.mobile__android_idfa as android_idfa,\n e.mobile__apple_idfa as apple_idfa,\n e.mobile__apple_idfv as apple_idfv,\n e.mobile__open_idfa as open_idfa,\n\n e.screen__id as screen_id,\n e.screen__name as screen_name,\n e.screen__activity as screen_activity,\n e.screen__fragment as screen_fragment,\n e.screen__top_view_controller as screen_top_view_controller,\n e.screen__type as screen_type,\n e.screen__view_controller as screen_view_controller,\n\n e.geo__latitude as device_latitude,\n e.geo__longitude as device_longitude,\n e.geo__latitude_longitude_accuracy as device_latitude_longitude_accuracy,\n e.geo__altitude as device_altitude,\n e.geo__altitude_accuracy as device_altitude_accuracy,\n e.geo__bearing as device_bearing,\n e.geo__speed as device_speed,\n e.geo_country,\n e.geo_region,\n e.geo_city,\n e.geo_zipcode,\n e.geo__latitude as geo_latitude,\n e.geo__longitude as geo_longitude,\n e.geo_region_name as geo_region_name,\n e.geo_timezone as geo_timezone,\n\n e.user_ipaddress,\n e.useragent,\n\n e.mobile__carrier as carrier,\n e.mobile__network_technology as network_technology,\n e.mobile__network_type as network_type,\n\n e.app__build as build,\n e.app__build as version,\n row_number() over(partition by e.session_identifier order by e.derived_tstamp) as event_index_in_session,\n\n -- app error events\n e.app_error__message as message,\n e.app_error__programming_language as programming_language,\n e.app_error__class_name as class_name,\n e.app_error__exception_name as exception_name,\n e.app_error__is_fatal as is_fatal,\n e.app_error__line_number as line_number,\n e.app_error__stack_trace as stack_trace,\n e.app_error__thread_id as thread_id,\n e.app_error__thread_name as thread_name\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_events_this_run as e\nwhere e.event_name = 'application_error'", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_web_vitals": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_derived", "name": "snowplow_unified_web_vitals", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/core_web_vitals/snowplow_unified_web_vitals.sql", "original_file_path": "models/optional_modules/core_web_vitals/snowplow_unified_web_vitals.sql", "unique_id": "model.snowplow_unified.snowplow_unified_web_vitals", "fqn": ["snowplow_unified", "optional_modules", "core_web_vitals", "snowplow_unified_web_vitals"], "alias": "snowplow_unified_web_vitals", "checksum": {"name": "sha256", "checksum": "9469bbb7b44648b0d79811157490932f89fff1736c6c74587fb673da5f72a5ec"}, "config": {"enabled": true, "alias": null, "schema": "derived", "database": null, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals", "derived"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "view_id", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "cluster_by": ["to_date(derived_tstamp)"], "upsert_date_key": "derived_tstamp", "sort": "derived_tstamp", "dist": "view_id", "partition_by": null, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "snowplow_optimize": true, "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals"], "description": "An incremental table used as a base for storing core web vital events (first event per pageview).", "columns": {"event_id": {"name": "event_id", "description": "A UUID for each event e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "Event name e.g. \u2018link_click\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_id": {"name": "app_id", "description": "Application ID e.g. \u2018angry-birds\u2019 is used to distinguish different applications that are being tracked by the same Snowplow stack, e.g. production versus dev.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "Platform e.g. \u2018web\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "Unique ID set by business e.g. \u2018jon.doe@email.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_id": {"name": "view_id", "description": "A UUID for each page view e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_identifier": {"name": "session_identifier", "description": "The session identifier as defined in your project variables. Default to domain_sessionid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "collector_tstamp": {"name": "collector_tstamp", "description": "Time stamp for the event recorded by the collector e.g. \u20182013-11-26 00:02:05\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "derived_tstamp": {"name": "derived_tstamp", "description": "Timestamp making allowance for innaccurate device clock e.g. \u20182013-11-26 00:02:04\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "load_tstamp": {"name": "load_tstamp", "description": "The timestamp of the event landing the data warehouse.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_country": {"name": "geo_country", "description": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_url": {"name": "page_url", "description": "The page URL e.g. \u2018http://www.example.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_title": {"name": "page_title", "description": "Web page title e.g. \u2018Snowplow Docs \u2013 Understanding the structure of Snowplow data\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent": {"name": "useragent", "description": "Raw useragent", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_class": {"name": "device_class", "description": "Class of device e.g. phone", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_name": {"name": "device_name", "description": "Name of device e.g. Google Nexus 6", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_name": {"name": "agent_name", "description": "Name of agent e.g. Chrome", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_version": {"name": "agent_version", "description": "Version of agent e.g. 53.0.2785.124", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operating_system_name": {"name": "operating_system_name", "description": "Name of the OS e.g. Android", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "lcp": {"name": "lcp", "description": "A metric for measuring perceived load speed because it marks the point in the page load timeline when the page's main content has likely loaded. Measured in milliseconds. For more information https://web.dev/lcp/.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fcp": {"name": "fcp", "description": "A metric for measuring the time from when the page starts loading to when any part of the page's content is rendered on the screen.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fid": {"name": "fid", "description": "A metric for measuring load responsiveness because it quantifies the experience users feel when trying to interact with unresponsive pages. Measured in milliseconds. For more information https://web.dev/fid/.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cls": {"name": "cls", "description": "A unitless metric for measuring visual stability because it helps quantify how often users experience unexpected layout shifts. For more information https://web.dev/cls/.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inp": {"name": "inp", "description": "A metric that assesses responsiveness. INP observes the latency of all interactions a user has made with the page, and reports a single value which all (or nearly all) interactions were below that value. For more information https://web.dev/inp/.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ttfb": {"name": "ttfb", "description": "A DOMHighResTimeStamp referring to the time in milliseconds between the browser requesting a page and when it receives the first byte of information from the server. For more information https://web.dev/ttfb/.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "navigation_type": {"name": "navigation_type", "description": "The navigation type recognised from the Navigation Timing API https://www.w3.org/TR/navigation-timing-2/. E.g. 'navigate', 'reload', 'back-forward', 'back-forward-cache', 'prerender', 'restore'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "lcp_result": {"name": "lcp_result", "description": "The evaluation of the metric in question. One of 'good' / 'needs improvement' / 'poor' depending on the tresholds defined in macro core_web_vital_results_query().", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fid_result": {"name": "fid_result", "description": "The evaluation of the metric in question. One of 'good' / 'needs improvement' / 'poor' depending on the tresholds defined in macro core_web_vital_results_query()", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cls_result": {"name": "cls_result", "description": "The evaluation of the metric in question. One of 'good' / 'needs improvement' / 'poor' depending on the tresholds defined in macro core_web_vital_results_query()", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ttfb_result": {"name": "ttfb_result", "description": "The evaluation of the metric in question. One of 'good' / 'needs improvement' / 'poor' depending on the tresholds defined in macro core_web_vital_results_query()", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/optional_modules/core_web_vitals/core_web_vitals.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "file_format": "delta", "bind": false, "schema": "derived", "tags": ["derived"], "enabled": true, "unique_key": "view_id", "upsert_date_key": "derived_tstamp", "sort": "derived_tstamp", "dist": "view_id", "partition_by": null, "cluster_by": ["to_date(derived_tstamp)"], "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "snowplow_optimize": true}, "created_at": 1706612344.2786314, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_web_vitals", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized= 'incremental',\n enabled=var(\"snowplow__enable_cwv\", false) | as_bool(),\n unique_key='view_id',\n upsert_date_key='derived_tstamp',\n sort='derived_tstamp',\n dist='view_id',\n tags=[\"derived\"],\n partition_by = snowplow_utils.get_value_by_target_type(bigquery_val = {\n \"field\": \"derived_tstamp\",\n \"data_type\": \"timestamp\"\n }, databricks_val = 'derived_tstamp_date'),\n cluster_by=snowplow_utils.get_value_by_target_type(bigquery_val=[\"view_id\",\"user_identifier\"], snowflake_val=[\"to_date(derived_tstamp)\"]),\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt')),\n tblproperties={\n 'delta.autoOptimize.optimizeWrite' : 'true',\n 'delta.autoOptimize.autoCompact' : 'true'\n },\n snowplow_optimize= true\n )\n}}\n\nselect\n *\n {% if target.type in ['databricks', 'spark'] -%}\n , DATE(derived_tstamp) as derived_tstamp_date\n {%- endif %}\n\nfrom {{ ref('snowplow_unified_web_vitals_this_run') }}\n\nwhere {{ snowplow_utils.is_run_with_new_events('snowplow_unified') }} --returns false if run doesn't contain new events.", "language": "sql", "refs": [{"name": "snowplow_unified_web_vitals_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.get_value_by_target_type", "macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.is_run_with_new_events"], "nodes": ["model.snowplow_unified.snowplow_unified_web_vitals_this_run", "model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_incremental_manifest"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/core_web_vitals/snowplow_unified_web_vitals.sql", "compiled": true, "compiled_code": "\n\n\n\nselect\n *\n \n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_web_vitals_this_run\n\nwhere True --returns false if run doesn't contain new events.", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_web_vital_measurements": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_derived", "name": "snowplow_unified_web_vital_measurements", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/core_web_vitals/snowflake/snowplow_unified_web_vital_measurements.sql", "original_file_path": "models/optional_modules/core_web_vitals/snowflake/snowplow_unified_web_vital_measurements.sql", "unique_id": "model.snowplow_unified.snowplow_unified_web_vital_measurements", "fqn": ["snowplow_unified", "optional_modules", "core_web_vitals", "snowflake", "snowplow_unified_web_vital_measurements"], "alias": "snowplow_unified_web_vital_measurements", "checksum": {"name": "sha256", "checksum": "3ff5b53464ef7250972dde4c917922230660410239addf278b5ff06dbd09b1f5"}, "config": {"enabled": true, "alias": null, "schema": "derived", "database": null, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals"], "description": "A table aimed to use for visualisations that takes core web vital measurements at the user specified percentile point. Defaulted to 75.", "columns": {"compound_key": {"name": "compound_key", "description": "A compound key for the table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "measurement_type": {"name": "measurement_type", "description": "The category to be measured. E.g. By country", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_url": {"name": "page_url", "description": "The page URL e.g. \u2018http://www.example.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_class": {"name": "device_class", "description": "Class of device e.g. phone", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_country": {"name": "geo_country", "description": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "Name of the country the visitor is located in", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_period": {"name": "time_period", "description": "The specific time period (usually day) of the measured period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_count": {"name": "view_count", "description": "The number of page_views within the measured range.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "lcp_75p": {"name": "lcp_75p", "description": "The lcp result at the given percentile point.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fid_75p": {"name": "fid_75p", "description": "The fid result at the given percentile point.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cls_75p": {"name": "cls_75p", "description": "The cls result at the given percentile point.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ttfb_75p": {"name": "ttfb_75p", "description": "The ttfb result at the given percentile point.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "lcp_result": {"name": "lcp_result", "description": "The evaluation of the metric in question. One of 'good' / 'needs improvement' / 'poor' depending on the tresholds defined in macro core_web_vital_results_query()", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fid_result": {"name": "fid_result", "description": "The evaluation of the metric in question. One of 'good' / 'needs improvement' / 'poor' depending on the tresholds defined in macro core_web_vital_results_query()", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cls_result": {"name": "cls_result", "description": "The evaluation of the metric in question. One of 'good' / 'needs improvement' / 'poor' depending on the tresholds defined in macro core_web_vital_results_query()", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ttfb_result": {"name": "ttfb_result", "description": "The evaluation of the metric in question. One of 'good' / 'needs improvement' / 'poor' depending on the tresholds defined in macro core_web_vital_results_query()", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "passed": {"name": "passed", "description": "Evaluation that only passes when all of the lcp/fid/cls results pass.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/optional_modules/core_web_vitals/core_web_vitals.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "derived", "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals"], "enabled": true, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612344.283825, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_web_vital_measurements", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized='table',\n enabled=var(\"snowplow__enable_cwv\", false) and target.type == 'snowflake' | as_bool(),\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\nwith measurements as (\n\n select\n page_url,\n device_class,\n geo_country,\n cast( {{ dbt.date_trunc('day', 'derived_tstamp') }} as {{ dbt.type_string() }}) as time_period,\n count(*) as view_count,\n grouping_id(page_url, device_class) as id_url_and_device,\n grouping_id(device_class) as id_device,\n grouping_id(cast( {{ dbt.date_trunc('day', 'derived_tstamp') }} as {{ dbt.type_string() }})) as id_period,\n grouping_id(cast( {{ dbt.date_trunc('day', 'derived_tstamp') }} as {{ dbt.type_string() }}), device_class) as id_period_and_device,\n grouping_id(geo_country) as id_country,\n grouping_id(geo_country, device_class) as id_country_and_device,\n percentile_cont(0.{{ var('snowplow__cwv_percentile') }}) within group (order by lcp) as lcp_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(0.{{ var('snowplow__cwv_percentile') }}) within group (order by fid) as fid_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(0.{{ var('snowplow__cwv_percentile') }}) within group (order by cls) as cls_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(0.{{ var('snowplow__cwv_percentile') }}) within group (order by ttfb) as ttfb_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(0.{{ var('snowplow__cwv_percentile') }}) within group (order by inp) as inp_{{ var('snowplow__cwv_percentile') }}p\n\n from {{ ref('snowplow_unified_web_vitals') }}\n\n where cast(derived_tstamp as date) >= {{ dateadd('day', '-'+var('snowplow__cwv_days_to_measure')|string, date_trunc('day', snowplow_utils.current_timestamp_in_utc())) }}\n\n group by grouping sets ((), (page_url, device_class), (device_class), (cast( {{ dbt.date_trunc('day', 'derived_tstamp') }} as {{ dbt.type_string() }})), (cast( {{ dbt.date_trunc('day', 'derived_tstamp') }} as {{ dbt.type_string() }}), device_class), (geo_country), (geo_country, device_class))\n\n)\n\n, measurement_type as (\n\n select\n *,\n case when id_url_and_device <> 0 and id_device <> 0 and id_period <> 0 and id_period_and_device <> 0 and id_country <> 0 and id_country_and_device <> 0 then 'overall'\n when id_url_and_device = 0 then 'by_url_and_device'\n when id_period_and_device = 0 then 'by_day_and_device'\n when id_country_and_device = 0 then 'by_country_and_device'\n when id_country = 0 then 'by_country'\n when id_device = 0 then 'by_device'\n when id_period = 0 then 'by_day'\n end as measurement_type,\n {{ snowplow_unified.core_web_vital_results_query('_' + var('snowplow__cwv_percentile') | string + 'p') }}\n\n from measurements\n)\n\n, coalesce as (\n\n select\n m.measurement_type,\n coalesce(m.page_url, 'all') as page_url,\n coalesce(m.device_class, 'all') as device_class,\n coalesce(m.geo_country, 'all') as geo_country,\n coalesce(g.name, 'all') as country,\n coalesce(time_period, 'last {{var(\"snowplow__cwv_days_to_measure\")|string }} days') as time_period,\n view_count,\n ceil(lcp_{{ var('snowplow__cwv_percentile') }}p, 3) as lcp_{{ var('snowplow__cwv_percentile') }}p,\n ceil(fid_{{ var('snowplow__cwv_percentile') }}p, 3) as fid_{{ var('snowplow__cwv_percentile') }}p,\n ceil(cls_{{ var('snowplow__cwv_percentile') }}p, 3) as cls_{{ var('snowplow__cwv_percentile') }}p,\n ceil(ttfb_{{ var('snowplow__cwv_percentile') }}p, 3) as ttfb_{{ var('snowplow__cwv_percentile') }}p,\n ceil(inp_{{ var('snowplow__cwv_percentile') }}p, 3) as inp_{{ var('snowplow__cwv_percentile') }}p,\n m.lcp_result,\n m.fid_result,\n m.cls_result,\n m.ttfb_result,\n m.inp_result,\n {{ snowplow_unified.core_web_vital_pass_query() }} as passed\n\n from measurement_type m\n\n left join {{ ref(var('snowplow__geo_mapping_seed')) }} g on lower(m.geo_country) = lower(g.alpha_2)\n\n order by 1\n\n)\n\nselect\n {{ dbt.concat(['page_url', \"'-'\" , 'device_class', \"'-'\" , 'geo_country', \"'-'\" , 'time_period' ]) }} compound_key,\n *\nfrom coalesce", "language": "sql", "refs": [{"name": "snowplow_unified_web_vitals", "package": null, "version": null}, {"name": "snowplow_unified_dim_geo_country_mapping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.dbt.date_trunc", "macro.dbt.type_string", "macro.snowplow_utils.current_timestamp_in_utc", "macro.dbt.dateadd", "macro.snowplow_unified.core_web_vital_results_query", "macro.snowplow_unified.core_web_vital_pass_query", "macro.dbt.concat"], "nodes": ["model.snowplow_unified.snowplow_unified_web_vitals", "seed.snowplow_unified.snowplow_unified_dim_geo_country_mapping"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/core_web_vitals/snowflake/snowplow_unified_web_vital_measurements.sql", "compiled": true, "compiled_code": "\n\n\n\nwith measurements as (\n\n select\n page_url,\n device_class,\n geo_country,\n cast( date_trunc('day', derived_tstamp) as TEXT) as time_period,\n count(*) as view_count,\n grouping_id(page_url, device_class) as id_url_and_device,\n grouping_id(device_class) as id_device,\n grouping_id(cast( date_trunc('day', derived_tstamp) as TEXT)) as id_period,\n grouping_id(cast( date_trunc('day', derived_tstamp) as TEXT), device_class) as id_period_and_device,\n grouping_id(geo_country) as id_country,\n grouping_id(geo_country, device_class) as id_country_and_device,\n percentile_cont(0.75) within group (order by lcp) as lcp_75p,\n percentile_cont(0.75) within group (order by fid) as fid_75p,\n percentile_cont(0.75) within group (order by cls) as cls_75p,\n percentile_cont(0.75) within group (order by ttfb) as ttfb_75p,\n percentile_cont(0.75) within group (order by inp) as inp_75p\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_web_vitals\n\n where cast(derived_tstamp as date) >= \n\n dateadd(\n day,\n -28,\n date_trunc('day', \n convert_timezone('UTC', convert_timezone('UTC', current_timestamp()))::TIMESTAMP\n)\n )\n\n\n\n group by grouping sets ((), (page_url, device_class), (device_class), (cast( date_trunc('day', derived_tstamp) as TEXT)), (cast( date_trunc('day', derived_tstamp) as TEXT), device_class), (geo_country), (geo_country, device_class))\n\n)\n\n, measurement_type as (\n\n select\n *,\n case when id_url_and_device <> 0 and id_device <> 0 and id_period <> 0 and id_period_and_device <> 0 and id_country <> 0 and id_country_and_device <> 0 then 'overall'\n when id_url_and_device = 0 then 'by_url_and_device'\n when id_period_and_device = 0 then 'by_day_and_device'\n when id_country_and_device = 0 then 'by_country_and_device'\n when id_country = 0 then 'by_country'\n when id_device = 0 then 'by_device'\n when id_period = 0 then 'by_day'\n end as measurement_type,\n \n case when lcp_75p is null then 'not measurable'\n when lcp_75p < 2.5 then 'good'\n when lcp_75p < 4 then 'needs improvement'\n else 'poor' end as lcp_result,\n\n case when fid_75p is null then 'not measurable'\n when fid_75p < 100 then 'good'\n when fid_75p < 300 then 'needs improvement'\n else 'poor' end as fid_result,\n\n case when cls_75p is null then 'not measurable'\n when cls_75p < 0.1 then 'good'\n when cls_75p < 0.25 then 'needs improvement'\n else 'poor' end as cls_result,\n\n case when ttfb_75p is null then 'not measurable'\n when ttfb_75p < 800 then 'good'\n when ttfb_75p < 1800 then 'needs improvement'\n else 'poor' end as ttfb_result,\n\n case when inp_75p is null then 'not measurable'\n when inp_75p < 200 then 'good'\n when inp_75p < 500 then 'needs improvement'\n else 'poor' end as inp_result\n\n\n\n from measurements\n)\n\n, coalesce as (\n\n select\n m.measurement_type,\n coalesce(m.page_url, 'all') as page_url,\n coalesce(m.device_class, 'all') as device_class,\n coalesce(m.geo_country, 'all') as geo_country,\n coalesce(g.name, 'all') as country,\n coalesce(time_period, 'last 28 days') as time_period,\n view_count,\n ceil(lcp_75p, 3) as lcp_75p,\n ceil(fid_75p, 3) as fid_75p,\n ceil(cls_75p, 3) as cls_75p,\n ceil(ttfb_75p, 3) as ttfb_75p,\n ceil(inp_75p, 3) as inp_75p,\n m.lcp_result,\n m.fid_result,\n m.cls_result,\n m.ttfb_result,\n m.inp_result,\n \n\ncase when m.lcp_result = 'good' and m.fid_result = 'good' and m.cls_result = 'good' then 1 else 0 end\n\n as passed\n\n from measurement_type m\n\n left join SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_dim_geo_country_mapping g on lower(m.geo_country) = lower(g.alpha_2)\n\n order by 1\n\n)\n\nselect\n page_url || '-' || device_class || '-' || geo_country || '-' || time_period compound_key,\n *\nfrom coalesce", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_web_vitals_this_run": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_web_vitals_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/core_web_vitals/scratch/snowplow_unified_web_vitals_this_run.sql", "original_file_path": "models/optional_modules/core_web_vitals/scratch/snowplow_unified_web_vitals_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_web_vitals_this_run", "fqn": ["snowplow_unified", "optional_modules", "core_web_vitals", "scratch", "snowplow_unified_web_vitals_this_run"], "alias": "snowplow_unified_web_vitals_this_run", "checksum": {"name": "sha256", "checksum": "b1187170dfbe9b471587e7163f326f465843a8f5c1b13a7659269aba1137164c"}, "config": {"enabled": true, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals", "scratch", "this_run"], "description": "A scratch table used as a base for creating the main incremental core web vital events (first event per pageview).", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/optional_modules/core_web_vitals/core_web_vitals.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": ["this_run"], "enabled": true, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612344.2745936, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_web_vitals_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n enabled=var(\"snowplow__enable_cwv\", false) | as_bool(),\n tags=[\"this_run\"],\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\nwith prep as (\n\n select\n e.event_id,\n e.event_name,\n e.app_id,\n e.platform,\n e.user_identifier,\n e.user_id,\n e.view_id,\n e.session_identifier,\n e.collector_tstamp,\n e.derived_tstamp,\n e.load_tstamp,\n coalesce(e.geo_country, 'unknown_geo_country') as geo_country,\n coalesce(e.page_url, 'unknown_page_url') as page_url,\n {{ core_web_vital_page_groups() }} as url_group,\n e.page_title,\n e.useragent,\n coalesce(e.device_class, 'unknown_device_class') as device_class,\n e.device_name,\n e.agent_name,\n e.agent_version,\n e.operating_system_name,\n e.lcp,\n e.fcp,\n e.fid,\n e.cls,\n e.inp,\n e.ttfb,\n e.navigation_type,\n row_number() over (partition by e.view_id order by e.derived_tstamp, e.dvce_created_tstamp, e.event_id) dedupe_index\n\n from {{ ref(\"snowplow_unified_web_vital_events_this_run\") }} as e\n\n where {{ snowplow_utils.is_run_with_new_events('snowplow_unified') }} --returns false if run doesn't contain new events.\n\n\n)\n\nselect\n *,\n {{ snowplow_unified.core_web_vital_results_query() }}\n\nfrom prep p\n\nwhere dedupe_index = 1", "language": "sql", "refs": [{"name": "snowplow_unified_web_vital_events_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.snowplow_unified.core_web_vital_page_groups", "macro.snowplow_utils.is_run_with_new_events", "macro.snowplow_unified.core_web_vital_results_query"], "nodes": ["model.snowplow_unified.snowplow_unified_web_vital_events_this_run", "model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_incremental_manifest"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/core_web_vitals/scratch/snowplow_unified_web_vitals_this_run.sql", "compiled": true, "compiled_code": "\n\n\n\nwith prep as (\n\n select\n e.event_id,\n e.event_name,\n e.app_id,\n e.platform,\n e.user_identifier,\n e.user_id,\n e.view_id,\n e.session_identifier,\n e.collector_tstamp,\n e.derived_tstamp,\n e.load_tstamp,\n coalesce(e.geo_country, 'unknown_geo_country') as geo_country,\n coalesce(e.page_url, 'unknown_page_url') as page_url,\n \n\n case when page_url like '%/product%' then 'PDP'\n when page_url like '%/list%' then 'PLP'\n when page_url like '%/checkout%' then 'checkout'\n when page_url like '%/home%' then 'homepage'\n else 'other' end\n\n as url_group,\n e.page_title,\n e.useragent,\n coalesce(e.device_class, 'unknown_device_class') as device_class,\n e.device_name,\n e.agent_name,\n e.agent_version,\n e.operating_system_name,\n e.lcp,\n e.fcp,\n e.fid,\n e.cls,\n e.inp,\n e.ttfb,\n e.navigation_type,\n row_number() over (partition by e.view_id order by e.derived_tstamp, e.dvce_created_tstamp, e.event_id) dedupe_index\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_web_vital_events_this_run as e\n\n where True --returns false if run doesn't contain new events.\n\n\n)\n\nselect\n *,\n \n case when lcp is null then 'not measurable'\n when lcp < 2.5 then 'good'\n when lcp < 4 then 'needs improvement'\n else 'poor' end as lcp_result,\n\n case when fid is null then 'not measurable'\n when fid < 100 then 'good'\n when fid < 300 then 'needs improvement'\n else 'poor' end as fid_result,\n\n case when cls is null then 'not measurable'\n when cls < 0.1 then 'good'\n when cls < 0.25 then 'needs improvement'\n else 'poor' end as cls_result,\n\n case when ttfb is null then 'not measurable'\n when ttfb < 800 then 'good'\n when ttfb < 1800 then 'needs improvement'\n else 'poor' end as ttfb_result,\n\n case when inp is null then 'not measurable'\n when inp < 200 then 'good'\n when inp < 500 then 'needs improvement'\n else 'poor' end as inp_result\n\n\n\nfrom prep p\n\nwhere dedupe_index = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_web_vital_events_this_run": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_web_vital_events_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/core_web_vitals/scratch/snowflake/snowplow_unified_web_vital_events_this_run.sql", "original_file_path": "models/optional_modules/core_web_vitals/scratch/snowflake/snowplow_unified_web_vital_events_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_web_vital_events_this_run", "fqn": ["snowplow_unified", "optional_modules", "core_web_vitals", "scratch", "snowflake", "snowplow_unified_web_vital_events_this_run"], "alias": "snowplow_unified_web_vital_events_this_run", "checksum": {"name": "sha256", "checksum": "00577ee7a0efe5b50d56a06b6c7480d3b95c6e7e42223c7d7f91ac7c3ff2d0f8"}, "config": {"enabled": true, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals", "scratch", "this_run"], "description": "An upstream scratch table extracting all the relevant fields that could be used to model core web vital metrics.", "columns": {"event_id": {"name": "event_id", "description": "A UUID for each event e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "Event name e.g. \u2018link_click\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_id": {"name": "app_id", "description": "Application ID e.g. \u2018angry-birds\u2019 is used to distinguish different applications that are being tracked by the same Snowplow stack, e.g. production versus dev.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "Platform e.g. \u2018web\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "Unique ID set by business e.g. \u2018jon.doe@email.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_id": {"name": "view_id", "description": "A UUID for each page view e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_identifier": {"name": "session_identifier", "description": "The session identifier as defined in your project variables. Default to domain_sessionid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "collector_tstamp": {"name": "collector_tstamp", "description": "Time stamp for the event recorded by the collector e.g. \u20182013-11-26 00:02:05\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "derived_tstamp": {"name": "derived_tstamp", "description": "Timestamp making allowance for innaccurate device clock e.g. \u20182013-11-26 00:02:04\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_created_tstamp": {"name": "dvce_created_tstamp", "description": "Timestamp event was recorded on the client device e.g. \u20182013-11-26 00:03:57.885\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "load_tstamp": {"name": "load_tstamp", "description": "The timestamp of the event landing the data warehouse.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_country": {"name": "geo_country", "description": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_url": {"name": "page_url", "description": "The page URL e.g. \u2018http://www.example.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_title": {"name": "page_title", "description": "Web page title e.g. \u2018Snowplow Docs \u2013 Understanding the structure of Snowplow data\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent": {"name": "useragent", "description": "Raw useragent", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_class": {"name": "device_class", "description": "Class of device e.g. phone", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_class": {"name": "agent_class", "description": "Class of agent e.g. browser", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_name": {"name": "agent_name", "description": "Name of agent e.g. Chrome", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_name_version": {"name": "agent_name_version", "description": "Name and version of agent e.g. Chrome 53.0.2785.124", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_name_version_major": {"name": "agent_name_version_major", "description": "Name and major version of agent e.g. Chrome 53", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_version": {"name": "agent_version", "description": "Version of agent e.g. 53.0.2785.124", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_version_major": {"name": "agent_version_major", "description": "Major version of agent e.g. 53", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_brand": {"name": "device_brand", "description": "Brand of device e.g. Google", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_name": {"name": "device_name", "description": "Name of device e.g. Google Nexus 6", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_version": {"name": "device_version", "description": "Version of device e.g. 6.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_class": {"name": "layout_engine_class", "description": "Class of layout engine e.g. Browser", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_name": {"name": "layout_engine_name", "description": "Name of layout engine e.g. Blink", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_name_version": {"name": "layout_engine_name_version", "description": "Name and version of layout engine e.g. Blink 53.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_name_version_major": {"name": "layout_engine_name_version_major", "description": "Name and major version of layout engine e.g. Blink 53", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_version": {"name": "layout_engine_version", "description": "Version of layout engine e.g. 53.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_version_major": {"name": "layout_engine_version_major", "description": "Major version of layout engine e.g. 53", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operating_system_class": {"name": "operating_system_class", "description": "Class of the OS e.g. Mobile", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operating_system_name": {"name": "operating_system_name", "description": "Name of the OS e.g. Android", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operating_system_name_version": {"name": "operating_system_name_version", "description": "Name and version of the OS e.g. Android 7.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operating_system_version": {"name": "operating_system_version", "description": "Version of the OS e.g. 7.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "lcp": {"name": "lcp", "description": "A metric for measuring perceived load speed because it marks the point in the page load timeline when the page's main content has likely loaded. Measured in milliseconds. For more information https://web.dev/lcp/.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fcp": {"name": "fcp", "description": "A metric for measuring the time from when the page starts loading to when any part of the page's content is rendered on the screen.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fid": {"name": "fid", "description": "A metric for measuring load responsiveness because it quantifies the experience users feel when trying to interact with unresponsive pages. Measured in milliseconds. For more information https://web.dev/fid/.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cls": {"name": "cls", "description": "A unitless metric for measuring visual stability because it helps quantify how often users experience unexpected layout shifts. For more information https://web.dev/cls/.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inp": {"name": "inp", "description": "A metric that assesses responsiveness. INP observes the latency of all interactions a user has made with the page, and reports a single value which all (or nearly all) interactions were below that value. For more information https://web.dev/inp/.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ttfb": {"name": "ttfb", "description": "A DOMHighResTimeStamp referring to the time in milliseconds between the browser requesting a page and when it receives the first byte of information from the server. For more information https://web.dev/ttfb/.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "navigation_type": {"name": "navigation_type", "description": "The navigation type recognised from the Navigation Timing API https://www.w3.org/TR/navigation-timing-2/. E.g. 'navigate', 'reload', 'back-forward', 'back-forward-cache', 'prerender', 'restore'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/optional_modules/core_web_vitals/core_web_vitals.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": ["this_run"], "enabled": true, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612344.273884, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_web_vital_events_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n tags=[\"this_run\"],\n enabled=var(\"snowplow__enable_cwv\", false) and target.type == 'snowflake' | as_bool(),\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\nwith prep as (\n\n select\n e.event_id\n , e.event_name\n , e.app_id\n , e.platform\n , e.user_identifier\n , e.user_id\n , e.view_id\n , e.session_identifier\n , e.collector_tstamp\n , e.derived_tstamp\n , e.dvce_created_tstamp\n , e.load_tstamp\n , e.geo_country\n , e.page_url\n , e.page_title\n , e.useragent\n , e.yauaa__device_class as device_class\n , e.yauaa__agent_class as agent_class\n , e.yauaa__agent_name as agent_name\n , e.yauaa__agent_name_version as agent_name_version\n , e.yauaa__agent_name_version_major as agent_name_version_major\n , e.yauaa__agent_version as agent_version\n , e.yauaa__agent_version_major agent_version_major\n , e.yauaa__device_brand as device_brand\n , e.yauaa__device_name as device_name\n , e.yauaa__device_version as device_version\n , e.yauaa__layout_engine_class as layout_engine_class\n , e.yauaa__layout_engine_name as layout_engine_name\n , e.yauaa__layout_engine_name_version as layout_engine_name_version\n , e.yauaa__layout_engine_name_version_major as layout_engine_name_version_major\n , e.yauaa__layout_engine_version as layout_engine_version\n , e.yauaa__layout_engine_version_major as layout_engine_version_major\n , e.yauaa__operating_system_class as operating_system_class\n , e.yauaa__operating_system_name as operating_system_name\n , e.yauaa__operating_system_name_version as operating_system_name_version\n , e.yauaa__operating_system_version as operating_system_version\n , ceil(e.cwv__lcp, 3) /1000 as lcp\n , ceil(e.cwv__fcp, 3) as fcp\n , ceil(e.cwv__fid, 3) as fid\n , ceil(e.cwv__cls, 3) as cls\n , ceil(e.cwv__inp, 3)as inp\n , ceil(e.cwv__ttfb, 3) as ttfb\n , e.cwv__navigation_type as navigation_type\n\n from {{ ref(\"snowplow_unified_events_this_run\") }} as e\n\n where {{ snowplow_utils.is_run_with_new_events('snowplow_unified') }} --returns false if run doesn't contain new events.\n\n and event_name = 'web_vitals'\n\n and view_id is not null\n\n -- exclude bot traffic\n\n {% if var('snowplow__enable_iab', false) %}\n and not {{ snowplow_utils.get_field(column_name = 'contexts_com_iab_snowplow_spiders_and_robots_1',\n field_name = 'spiderOrRobot',\n table_alias = 'e',\n type = 'boolean',\n array_index = 0)}} = True\n {% endif %}\n\n {{ filter_bots() }}\n\n)\n\nselect\n event_id,\n event_name,\n app_id,\n platform,\n user_identifier,\n user_id,\n view_id,\n session_identifier,\n collector_tstamp,\n derived_tstamp,\n dvce_created_tstamp,\n load_tstamp,\n geo_country,\n page_url,\n page_title,\n useragent,\n lower(device_class) as device_class,\n agent_class,\n agent_name,\n agent_name_version,\n agent_name_version_major,\n agent_version,\n agent_version_major,\n device_brand,\n device_name,\n device_version,\n layout_engine_class,\n layout_engine_name,\n layout_engine_name_version,\n layout_engine_name_version_major,\n layout_engine_version,\n layout_engine_version_major,\n operating_system_class,\n operating_system_name,\n operating_system_name_version,\n operating_system_version,\n lcp,\n fcp,\n fid,\n cls,\n inp,\n ttfb,\n navigation_type\n\nfrom prep p", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.is_run_with_new_events", "macro.snowplow_utils.get_field", "macro.snowplow_unified.filter_bots"], "nodes": ["model.snowplow_unified.snowplow_unified_events_this_run", "model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_incremental_manifest"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/core_web_vitals/scratch/snowflake/snowplow_unified_web_vital_events_this_run.sql", "compiled": true, "compiled_code": "\n\n\n\nwith prep as (\n\n select\n e.event_id\n , e.event_name\n , e.app_id\n , e.platform\n , e.user_identifier\n , e.user_id\n , e.view_id\n , e.session_identifier\n , e.collector_tstamp\n , e.derived_tstamp\n , e.dvce_created_tstamp\n , e.load_tstamp\n , e.geo_country\n , e.page_url\n , e.page_title\n , e.useragent\n , e.yauaa__device_class as device_class\n , e.yauaa__agent_class as agent_class\n , e.yauaa__agent_name as agent_name\n , e.yauaa__agent_name_version as agent_name_version\n , e.yauaa__agent_name_version_major as agent_name_version_major\n , e.yauaa__agent_version as agent_version\n , e.yauaa__agent_version_major agent_version_major\n , e.yauaa__device_brand as device_brand\n , e.yauaa__device_name as device_name\n , e.yauaa__device_version as device_version\n , e.yauaa__layout_engine_class as layout_engine_class\n , e.yauaa__layout_engine_name as layout_engine_name\n , e.yauaa__layout_engine_name_version as layout_engine_name_version\n , e.yauaa__layout_engine_name_version_major as layout_engine_name_version_major\n , e.yauaa__layout_engine_version as layout_engine_version\n , e.yauaa__layout_engine_version_major as layout_engine_version_major\n , e.yauaa__operating_system_class as operating_system_class\n , e.yauaa__operating_system_name as operating_system_name\n , e.yauaa__operating_system_name_version as operating_system_name_version\n , e.yauaa__operating_system_version as operating_system_version\n , ceil(e.cwv__lcp, 3) /1000 as lcp\n , ceil(e.cwv__fcp, 3) as fcp\n , ceil(e.cwv__fid, 3) as fid\n , ceil(e.cwv__cls, 3) as cls\n , ceil(e.cwv__inp, 3)as inp\n , ceil(e.cwv__ttfb, 3) as ttfb\n , e.cwv__navigation_type as navigation_type\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_events_this_run as e\n\n where True --returns false if run doesn't contain new events.\n\n and event_name = 'web_vitals'\n\n and view_id is not null\n\n -- exclude bot traffic\n\n \n and not \ne.contexts_com_iab_snowplow_spiders_and_robots_1[0]:spiderOrRobot::boolean\n = True\n \n\n \n and not rlike(useragent, '.*(bot|crawl|slurp|spider|archiv|spinn|sniff|seo|audit|survey|pingdom|worm|capture|(browser|screen)shots|analyz|index|thumb|check|facebook|PingdomBot|PhantomJS|YandexBot|Twitterbot|a_archiver|facebookexternalhit|Bingbot|BingPreview|Googlebot|Baiduspider|360(Spider|User-agent)|semalt).*')\n\n\n)\n\nselect\n event_id,\n event_name,\n app_id,\n platform,\n user_identifier,\n user_id,\n view_id,\n session_identifier,\n collector_tstamp,\n derived_tstamp,\n dvce_created_tstamp,\n load_tstamp,\n geo_country,\n page_url,\n page_title,\n useragent,\n lower(device_class) as device_class,\n agent_class,\n agent_name,\n agent_name_version,\n agent_name_version_major,\n agent_version,\n agent_version_major,\n device_brand,\n device_name,\n device_version,\n layout_engine_class,\n layout_engine_name,\n layout_engine_name_version,\n layout_engine_name_version_major,\n layout_engine_version,\n layout_engine_version_major,\n operating_system_class,\n operating_system_name,\n operating_system_name_version,\n operating_system_version,\n lcp,\n fcp,\n fid,\n cls,\n inp,\n ttfb,\n navigation_type\n\nfrom prep p", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_sessions": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_derived", "name": "snowplow_unified_sessions", "resource_type": "model", "package_name": "snowplow_unified", "path": "sessions/snowplow_unified_sessions.sql", "original_file_path": "models/sessions/snowplow_unified_sessions.sql", "unique_id": "model.snowplow_unified.snowplow_unified_sessions", "fqn": ["snowplow_unified", "sessions", "snowplow_unified_sessions"], "alias": "snowplow_unified_sessions", "checksum": {"name": "sha256", "checksum": "8b4f0ad5b4c06a818d603a755a8de6cb8f0e2a95988697747c5b5566aac118e9"}, "config": {"enabled": true, "alias": null, "schema": "derived", "database": null, "tags": ["snowplow_unified_incremental", "derived"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "session_identifier", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "cluster_by": ["to_date(start_tstamp)"], "upsert_date_key": "start_tstamp", "sort": "start_tstamp", "dist": "session_identifier", "partition_by": null, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "snowplow_optimize": true, "post-hook": [{"sql": "{{ snowplow_unified.stitch_user_identifiers(\n enabled=var('snowplow__session_stitching')\n ) }}", "transaction": true, "index": null}], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived"], "description": "This derived incremental table contains all historic sessions and should be the end point for any analysis or BI tools.", "columns": {"app_id": {"name": "app_id", "description": "Application ID e.g. \u2018angry-birds\u2019 is used to distinguish different applications that are being tracked by the same Snowplow stack, e.g. production versus dev.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_identifier": {"name": "session_identifier", "description": "The session identifier as defined in your project variables. Default to domain_sessionid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}, "device_session_index": {"name": "device_session_index", "description": "A visit / session index e.g. 3", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_tstamp": {"name": "start_tstamp", "description": "Timestamp for the start of the session, based on `derived_tstamp`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_tstamp": {"name": "end_tstamp", "description": "Timestamp for the end of the session, based on `derived_tstamp`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_tstamp": {"name": "model_tstamp", "description": "The current timestamp when the model processed this row.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "Unique ID set by business e.g. \u2018jon.doe@email.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stitched_user_id": {"name": "stitched_user_id", "description": "The `user_id` (or `domain_user_id` if not found during user stitching) when the `snowplow__session_stitching` or `snowplow__view_stitching` variable is enabled otherwise NULL. The `user_id` field to be used for stitching can be overwritten by `var('snowplow__user_stitching_id')`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network_userid": {"name": "network_userid", "description": "User ID set by Snowplow using 3rd party cookie e.g. \u2018ecdff4d0-9175-40ac-a8bb-325c49733607\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "views": {"name": "views", "description": "The number of distinct page or screen views within a session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "engaged_time_in_s": {"name": "engaged_time_in_s", "description": "The total time engaged by a user within a session.\n\nOn Web, it is calculated using page pings.\nOn mobile, it is calculated using information in the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_counts": {"name": "event_counts", "description": "A json-type (warehouse dependant) object that gives counts for all event_names of events within the session (note you can get more page view events than true page_views based on their id)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_events": {"name": "total_events", "description": "Count of all events in the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_engaged": {"name": "is_engaged", "description": "A calculated boolean for if it was an engaged session or not, defined as having 2 or more page views, engaged time greater than or equal to 2 heartbeat lengths, or having any conversion event (if enabled)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "absolute_time_in_s": {"name": "absolute_time_in_s", "description": "The time in seconds between the `start_tstamp` and `end_tstamp` of the first and last event in the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_title": {"name": "first_page_title", "description": "The title of the first page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_url": {"name": "first_page_url", "description": "The url of the first page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlscheme": {"name": "first_page_urlscheme", "description": "The urlscheme of the first page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlhost": {"name": "first_page_urlhost", "description": "The urlhost of the first page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlpath": {"name": "first_page_urlpath", "description": "The urlpath of the first page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlquery": {"name": "first_page_urlquery", "description": "The urlquery of the first page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlfragment": {"name": "first_page_urlfragment", "description": "The urlfragment of the first page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_title": {"name": "last_page_title", "description": "The title of the last page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_url": {"name": "last_page_url", "description": "The url of the last page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlscheme": {"name": "last_page_urlscheme", "description": "The urlscheme of the last page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlhost": {"name": "last_page_urlhost", "description": "The urlhost of the last page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlpath": {"name": "last_page_urlpath", "description": "The urlpath of the last page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlquery": {"name": "last_page_urlquery", "description": "The urlquery of the last page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlfragment": {"name": "last_page_urlfragment", "description": "The urlfragment of the last page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_event_name": {"name": "first_event_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_event_name": {"name": "last_event_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session__previous_session_id": {"name": "session__previous_session_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_identifier": {"name": "device_identifier", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_category": {"name": "device_category", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_version": {"name": "os_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_type": {"name": "os_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_timezone": {"name": "os_timezone", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_resolution": {"name": "screen_resolution", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_class": {"name": "yauaa__device_class", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_version": {"name": "yauaa__device_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_version": {"name": "yauaa__operating_system_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_class": {"name": "yauaa__operating_system_class", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_name": {"name": "yauaa__operating_system_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__operating_system_name_version": {"name": "yauaa__operating_system_name_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__device_manufacturer": {"name": "mobile__device_manufacturer", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__device_model": {"name": "mobile__device_model", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__os_type": {"name": "mobile__os_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__os_version": {"name": "mobile__os_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__android_idfa": {"name": "mobile__android_idfa", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__apple_idfa": {"name": "mobile__apple_idfa", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__apple_idfv": {"name": "mobile__apple_idfv", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__carrier": {"name": "mobile__carrier", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__open_idfa": {"name": "mobile__open_idfa", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__network_technology": {"name": "mobile__network_technology", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__network_type": {"name": "mobile__network_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__physical_memory": {"name": "mobile__physical_memory", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__system_available_memory": {"name": "mobile__system_available_memory", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__app_available_memory": {"name": "mobile__app_available_memory", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__battery_level": {"name": "mobile__battery_level", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__battery_state": {"name": "mobile__battery_state", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__low_power_mode": {"name": "mobile__low_power_mode", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__available_storage": {"name": "mobile__available_storage", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__total_storage": {"name": "mobile__total_storage", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__is_portrait": {"name": "mobile__is_portrait", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__resolution": {"name": "mobile__resolution", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__scale": {"name": "mobile__scale", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__language": {"name": "mobile__language", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__app_set_id": {"name": "mobile__app_set_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mobile__app_set_id_scope": {"name": "mobile__app_set_id_scope", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo_country": {"name": "first_geo_country", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo_region_name": {"name": "first_geo_region_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo_city": {"name": "first_geo_city", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo_country_name": {"name": "first_geo_country_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo_continent": {"name": "first_geo_continent", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_country": {"name": "last_geo_country", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_region_name": {"name": "last_geo_region_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_city": {"name": "last_geo_city", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_country_name": {"name": "last_geo_country_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_continent": {"name": "last_geo_continent", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_zipcode": {"name": "geo_zipcode", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_latitude": {"name": "geo_latitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_longitude": {"name": "geo_longitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_timezone": {"name": "geo_timezone", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_ipaddress": {"name": "user_ipaddress", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_names_viewed": {"name": "screen_names_viewed", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_medium": {"name": "mkt_medium", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_source": {"name": "mkt_source", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_term": {"name": "mkt_term", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_content": {"name": "mkt_content", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_campaign": {"name": "mkt_campaign", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_clickid": {"name": "mkt_clickid", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_network": {"name": "mkt_network", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_channel_group": {"name": "default_channel_group", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_source_platform": {"name": "mkt_source_platform", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_referrer": {"name": "page_referrer", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_medium": {"name": "refr_medium", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_source": {"name": "refr_source", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_term": {"name": "refr_term", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlscheme": {"name": "refr_urlscheme", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlhost": {"name": "refr_urlhost", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlpath": {"name": "refr_urlpath", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlquery": {"name": "refr_urlquery", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlfragment": {"name": "refr_urlfragment", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_renderengine": {"name": "br_renderengine", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_br_lang": {"name": "first_br_lang", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_br_lang_name": {"name": "first_br_lang_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_br_lang": {"name": "last_br_lang", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_br_lang_name": {"name": "last_br_lang_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab__category": {"name": "iab__category", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab__primary_impact": {"name": "iab__primary_impact", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab__reason": {"name": "iab__reason", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iab__spider_or_robot": {"name": "iab__spider_or_robot", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__device_name": {"name": "yauaa__device_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_class": {"name": "yauaa__agent_class", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_name": {"name": "yauaa__agent_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_name_version": {"name": "yauaa__agent_name_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_name_version_major": {"name": "yauaa__agent_name_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_version": {"name": "yauaa__agent_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__agent_version_major": {"name": "yauaa__agent_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_class": {"name": "yauaa__layout_engine_class", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_name": {"name": "yauaa__layout_engine_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_name_version": {"name": "yauaa__layout_engine_name_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_name_version_major": {"name": "yauaa__layout_engine_name_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_version": {"name": "yauaa__layout_engine_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "yauaa__layout_engine_version_major": {"name": "yauaa__layout_engine_version_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__device_family": {"name": "ua__device_family", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_version": {"name": "ua__os_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_major": {"name": "ua__os_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_minor": {"name": "ua__os_minor", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_patch": {"name": "ua__os_patch", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__os_patch_minor": {"name": "ua__os_patch_minor", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_family": {"name": "ua__useragent_family", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_major": {"name": "ua__useragent_major", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_minor": {"name": "ua__useragent_minor", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_patch": {"name": "ua__useragent_patch", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ua__useragent_version": {"name": "ua__useragent_version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_screen_view__name": {"name": "first_screen_view__name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_screen_view__type": {"name": "first_screen_view__type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_screen_view__name": {"name": "last_screen_view__name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_screen_view__transition_type": {"name": "last_screen_view__transition_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_screen_view__type": {"name": "last_screen_view__type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__previous_id": {"name": "screen_view__previous_id", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__previous_name": {"name": "screen_view__previous_name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_view__previous_type": {"name": "screen_view__previous_type", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_app__build": {"name": "first_app__build", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_app__version": {"name": "first_app__version", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo__altitude": {"name": "first_geo__altitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo__altitude_accuracy": {"name": "first_geo__altitude_accuracy", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo__bearing": {"name": "first_geo__bearing", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo__latitude": {"name": "first_geo__latitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo__latitude_longitude_accuracy": {"name": "first_geo__latitude_longitude_accuracy", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo__longitude": {"name": "first_geo__longitude", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_geo__speed": {"name": "first_geo__speed", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__fragment": {"name": "screen__fragment", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__top_view_controller": {"name": "screen__top_view_controller", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen__view_controller": {"name": "screen__view_controller", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_errors": {"name": "app_errors", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fatal_app_errors": {"name": "fatal_app_errors", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent": {"name": "useragent", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cv_view_page_volume": {"name": "cv_view_page_volume", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cv_view_page_events": {"name": "cv_view_page_events", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cv_view_page_values": {"name": "cv_view_page_values", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cv_view_page_total": {"name": "cv_view_page_total", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cv_view_page_first_conversion": {"name": "cv_view_page_first_conversion", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cv_view_page_converted": {"name": "cv_view_page_converted", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cv__all_volume": {"name": "cv__all_volume", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cv__all_total": {"name": "cv__all_total", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/sessions/sessions.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "file_format": "delta", "bind": false, "schema": "derived", "tags": ["derived"], "on_schema_change": "append_new_columns", "unique_key": "session_identifier", "upsert_date_key": "start_tstamp", "sort": "start_tstamp", "dist": "session_identifier", "partition_by": null, "cluster_by": ["to_date(start_tstamp)"], "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "snowplow_optimize": true, "post-hook": ["{{ snowplow_unified.stitch_user_identifiers(\n enabled=var('snowplow__session_stitching')\n ) }}"]}, "created_at": 1706612344.318308, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_sessions", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized='incremental',\n on_schema_change='append_new_columns',\n unique_key='session_identifier',\n upsert_date_key='start_tstamp',\n sort='start_tstamp',\n dist='session_identifier',\n partition_by = snowplow_utils.get_value_by_target_type(bigquery_val={\n \"field\": \"start_tstamp\",\n \"data_type\": \"timestamp\"\n }, databricks_val='start_tstamp_date'),\n cluster_by=snowplow_utils.get_value_by_target_type(bigquery_val=[\"user_identifier\"], snowflake_val=[\"to_date(start_tstamp)\"]),\n tags=[\"derived\"],\n post_hook=\"{{ snowplow_unified.stitch_user_identifiers(\n enabled=var('snowplow__session_stitching')\n ) }}\",\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt')),\n tblproperties={\n 'delta.autoOptimize.optimizeWrite' : 'true',\n 'delta.autoOptimize.autoCompact' : 'true'\n },\n snowplow_optimize = true\n )\n}}\n\n\nselect *\n {% if target.type in ['databricks', 'spark'] -%}\n , DATE(start_tstamp) as start_tstamp_date\n {%- endif %}\nfrom {{ ref('snowplow_unified_sessions_this_run') }}\nwhere {{ snowplow_utils.is_run_with_new_events('snowplow_unified') }} --returns false if run doesn't contain new events.", "language": "sql", "refs": [{"name": "snowplow_unified_sessions_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}, {"name": "snowplow_unified_user_mapping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.get_value_by_target_type", "macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.is_run_with_new_events", "macro.snowplow_unified.stitch_user_identifiers"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions_this_run", "model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_incremental_manifest", "model.snowplow_unified.snowplow_unified_user_mapping"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/snowplow_unified_sessions.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect *\n \nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_sessions_this_run\nwhere cast(True as boolean) --returns false if run doesn't contain new events.", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_sessions_this_run": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_sessions_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "sessions/scratch/snowplow_unified_sessions_this_run.sql", "original_file_path": "models/sessions/scratch/snowplow_unified_sessions_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_sessions_this_run", "fqn": ["snowplow_unified", "sessions", "scratch", "snowplow_unified_sessions_this_run"], "alias": "snowplow_unified_sessions_this_run", "checksum": {"name": "sha256", "checksum": "01dad4853485bed4c10f43d875c006e063595c6758fcaeba3fcbda7051d5b099"}, "config": {"enabled": true, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "scratch", "this_run"], "description": "This staging table contains all the sessions for the given run of the model. It possess all the same columns as `snowplow_unified_sessions`. If building a custom module that requires session level data, this is the table you should reference.", "columns": {"app_id": {"name": "app_id", "description": "Application ID e.g. \u2018angry-birds\u2019 is used to distinguish different applications that are being tracked by the same Snowplow stack, e.g. production versus dev.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "Platform e.g. \u2018web\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_identifier": {"name": "session_identifier", "description": "The session identifier as defined in your project variables. Default to domain_sessionid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}, "device_session_index": {"name": "device_session_index", "description": "A visit / session index e.g. 3", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_tstamp": {"name": "start_tstamp", "description": "Timestamp for the start of the session, based on `derived_tstamp`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_tstamp": {"name": "end_tstamp", "description": "Timestamp for the end of the session, based on `derived_tstamp`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "model_tstamp": {"name": "model_tstamp", "description": "The current timestamp when the model processed this row.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "Unique ID set by business e.g. \u2018jon.doe@email.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network_userid": {"name": "network_userid", "description": "User ID set by Snowplow using 3rd party cookie e.g. \u2018ecdff4d0-9175-40ac-a8bb-325c49733607\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "views": {"name": "views", "description": "The number of distinct page and screen views within a session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "engaged_time_in_s": {"name": "engaged_time_in_s", "description": "The total time engaged by a user within a session.\n\nOn Web, it is calculated using page pings.\nOn mobile, it is calculated using information in the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_counts": {"name": "event_counts", "description": "A json-type (warehouse dependant) object that gives counts for all event_names of events within the session (note you can get more page view events than true page_views based on their id)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_events": {"name": "total_events", "description": "Count of all events in the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_engaged": {"name": "is_engaged", "description": "A calculated boolean for if it was an engaged session or not, defined as having 2 or more page views, engaged time greater than or equal to 2 heartbeat lengths, or having any conversion event (if enabled)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "absolute_time_in_s": {"name": "absolute_time_in_s", "description": "The time in seconds between the `start_tstamp` and `end_tstamp` of the first and last event in the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_title": {"name": "first_page_title", "description": "The title of the first page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_url": {"name": "first_page_url", "description": "The url of the first page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlscheme": {"name": "first_page_urlscheme", "description": "The urlscheme of the first page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlhost": {"name": "first_page_urlhost", "description": "The urlhost of the first page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlpath": {"name": "first_page_urlpath", "description": "The urlpath of the first page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlquery": {"name": "first_page_urlquery", "description": "The urlquery of the first page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_page_urlfragment": {"name": "first_page_urlfragment", "description": "The urlfragment of the first page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_title": {"name": "last_page_title", "description": "The title of the last page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_url": {"name": "last_page_url", "description": "The url of the last page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlscheme": {"name": "last_page_urlscheme", "description": "The urlscheme of the last page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlhost": {"name": "last_page_urlhost", "description": "The urlhost of the last page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlpath": {"name": "last_page_urlpath", "description": "The urlpath of the last page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlquery": {"name": "last_page_urlquery", "description": "The urlquery of the last page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_page_urlfragment": {"name": "last_page_urlfragment", "description": "The urlfragment of the last page visited within the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referrer": {"name": "referrer", "description": "The referrer associated with the first page view of the session", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlscheme": {"name": "refr_urlscheme", "description": "Referer scheme e.g. \u2018http\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlhost": {"name": "refr_urlhost", "description": "Referer host e.g. \u2018www.bing.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlpath": {"name": "refr_urlpath", "description": "Referer page path e.g. \u2018/images/search\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlquery": {"name": "refr_urlquery", "description": "Referer URL querystring e.g. \u2018q=psychic+oracle+cards\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlfragment": {"name": "refr_urlfragment", "description": "Referer URL fragment", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_medium": {"name": "refr_medium", "description": "Type of referer e.g. \u2018search\u2019, \u2018internal\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_source": {"name": "refr_source", "description": "Name of referer if recognised e.g. \u2018Bing images\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_term": {"name": "refr_term", "description": "Keywords if source is a search engine e.g. \u2018psychic oracle cards\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_medium": {"name": "mkt_medium", "description": "Type of traffic source e.g. \u2018cpc\u2019, \u2018affiliate\u2019, \u2018organic\u2019, \u2018social\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_source": {"name": "mkt_source", "description": "The company / website where the traffic came from e.g. \u2018Google\u2019, \u2018Facebook\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_term": {"name": "mkt_term", "description": "Any keywords associated with the referrer e.g. \u2018new age tarot decks\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_content": {"name": "mkt_content", "description": "The content of the ad. (Or an ID so that it can be looked up.) e.g. 13894723", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_campaign": {"name": "mkt_campaign", "description": "The campaign ID e.g. \u2018diageo-123\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_clickid": {"name": "mkt_clickid", "description": "The click ID e.g. \u2018ac3d8e459\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_network": {"name": "mkt_network", "description": "The ad network to which the click ID belongs e.g. \u2018DoubleClick\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_source_platform": {"name": "mkt_source_platform", "description": "Source platform based off the `utm_source_platform` parameter of the first page_url in the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_channel_group": {"name": "default_channel_group", "description": "The channels by which users arrived at your site.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_country": {"name": "geo_country", "description": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_region": {"name": "geo_region", "description": "ISO-3166-2 code for country region the visitor is in e.g. \u2018I9\u2019, \u2018TX\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_region_name": {"name": "geo_region_name", "description": "Visitor region name e.g. \u2018Florida\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_city": {"name": "geo_city", "description": "City the visitor is in e.g. \u2018New York\u2019, \u2018London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_zipcode": {"name": "geo_zipcode", "description": "Postcode the visitor is in e.g. \u201894109\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_latitude": {"name": "geo_latitude", "description": "Visitor location latitude e.g. 37.443604", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_longitude": {"name": "geo_longitude", "description": "Visitor location longitude e.g. -122.4124", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_country_name": {"name": "geo_country_name", "description": "Name of the country the visitor is located in", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_continent": {"name": "geo_continent", "description": "Name of the continent the visitor is located in", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_country": {"name": "last_geo_country", "description": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_region_name": {"name": "last_geo_region_name", "description": "Visitor region name e.g. \u2018Florida\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_city": {"name": "last_geo_city", "description": "City the visitor is in e.g. \u2018New York\u2019, \u2018London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_country_name": {"name": "last_geo_country_name", "description": "Name of the country the visitor is located in", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_geo_continent": {"name": "last_geo_continent", "description": "Name of the continent the visitor is located in", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_timezone": {"name": "geo_timezone", "description": "Visitor timezone name e.g. \u2018Europe/London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_ipaddress": {"name": "user_ipaddress", "description": "User IP address e.g. \u201892.231.54.234\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent": {"name": "useragent", "description": "Raw useragent", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_renderengine": {"name": "br_renderengine", "description": "Browser rendering engine e.g. \u2018GECKO\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_lang": {"name": "br_lang", "description": "Language the browser is set to e.g. \u2018en-GB\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_lang_name": {"name": "br_lang_name", "description": "Full name of the language the browser is set to e.g. \u2018English (United Kingdom)\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_br_lang": {"name": "last_br_lang", "description": "Language the browser is set to e.g. \u2018en-GB\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_br_lang_name": {"name": "last_br_lang_name", "description": "Full name of the language the browser is set to e.g. \u2018English (United Kingdom)\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_timezone": {"name": "os_timezone", "description": "Client operating system timezone e.g. \u2018Europe/London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "Category based on activity if the IP/UA is a spider or robot, BROWSER otherwise", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_impact": {"name": "primary_impact", "description": "Whether the spider or robot would affect page impression measurement, ad impression measurement, both or none", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason": {"name": "reason", "description": "Type of failed check if the IP/UA is a spider or robot, PASSED_ALL otherwise", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spider_or_robot": {"name": "spider_or_robot", "description": "True if the IP address or user agent checked against the list is a spider or robot, false otherwise", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent_family": {"name": "useragent_family", "description": "Useragent family (browser) name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent_major": {"name": "useragent_major", "description": "Useragent major version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent_minor": {"name": "useragent_minor", "description": "Useragent minor version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent_patch": {"name": "useragent_patch", "description": "Useragent patch version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent_version": {"name": "useragent_version", "description": "Full version of the useragent", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_family": {"name": "os_family", "description": "Operating system family e.g. \u2018Linux\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_major": {"name": "os_major", "description": "Operation system major version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_minor": {"name": "os_minor", "description": "Operation system minor version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_patch": {"name": "os_patch", "description": "Operation system patch version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_patch_minor": {"name": "os_patch_minor", "description": "Operation system patch minor version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_version": {"name": "os_version", "description": "Operation system full version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_family": {"name": "device_family", "description": "Device type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_class": {"name": "device_class", "description": "Class of device e.g. phone", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_class": {"name": "agent_class", "description": "Class of agent e.g. browser", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_name": {"name": "agent_name", "description": "Name of agent e.g. Chrome", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_name_version": {"name": "agent_name_version", "description": "Name and version of agent e.g. Chrome 53.0.2785.124", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_name_version_major": {"name": "agent_name_version_major", "description": "Name and major version of agent e.g. Chrome 53", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_version": {"name": "agent_version", "description": "Version of agent e.g. 53.0.2785.124", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_version_major": {"name": "agent_version_major", "description": "Major version of agent e.g. 53", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_brand": {"name": "device_brand", "description": "Brand of device e.g. Google", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_name": {"name": "device_name", "description": "Name of device e.g. Google Nexus 6", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_version": {"name": "device_version", "description": "Version of device e.g. 6.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_category": {"name": "device_category", "description": "Derived from the `device_class` it is used to classify devices into one of the following: Desktop / Mobile / Tablet / Other.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "screen_resolution": {"name": "screen_resolution", "description": "Combines dvce_screenwidth x dvce_screenheight.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_class": {"name": "layout_engine_class", "description": "Class of layout engine e.g. Browser", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_name": {"name": "layout_engine_name", "description": "Name of layout engine e.g. Blink", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_name_version": {"name": "layout_engine_name_version", "description": "Name and version of layout engine e.g. Blink 53.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_name_version_major": {"name": "layout_engine_name_version_major", "description": "Name and major version of layout engine e.g. Blink 53", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_version": {"name": "layout_engine_version", "description": "Version of layout engine e.g. 53.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_version_major": {"name": "layout_engine_version_major", "description": "Major version of layout engine e.g. 53", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operating_system_class": {"name": "operating_system_class", "description": "Class of the OS e.g. Mobile", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operating_system_name": {"name": "operating_system_name", "description": "Name of the OS e.g. Android", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operating_system_name_version": {"name": "operating_system_name_version", "description": "Name and version of the OS e.g. Android 7.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operating_system_version": {"name": "operating_system_version", "description": "Version of the OS e.g. 7.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/sessions/scratch/sessions_scratch.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": ["this_run"], "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612344.3523133, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_sessions_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n tags=[\"this_run\"],\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\nwith session_firsts as (\n select\n {{ platform_independent_fields('ev') }}\n , session_identifier\n\n {% if var('snowplow__enable_web') %}\n {{ web_only_fields('ev') }}\n {% endif %}\n\n {% if var('snowplow__enable_mobile') %}\n {{ mobile_only_fields('ev') }}\n {% endif %}\n\n {% if var('snowplow__session_stitching') %}\n -- updated with mapping as part of post hook on derived sessions table\n , cast(user_identifier as {{ snowplow_utils.type_max_string() }}) as stitched_user_id\n {% else %}\n , cast(null as {{ snowplow_utils.type_max_string() }}) as stitched_user_id\n {% endif %}\n\n {% if var('snowplow__enable_iab') %}\n {{ iab_context_fields('ev') }}\n {% endif %}\n\n {% if var('snowplow__enable_yauaa') %}\n {{ yauaa_context_fields('ev') }}\n {% endif %}\n\n {% if var('snowplow__enable_ua') %}\n {{ ua_context_fields('ev') }}\n {% endif %}\n\n {% if var('snowplow__enable_application_context') %}\n {{ app_context_fields('ev') }}\n {% endif %}\n\n {% if var('snowplow__enable_geolocation_context') %}\n {{ geo_context_fields('ev') }}\n {% endif %}\n\n , g.name as geo_country_name\n , g.region as geo_continent\n , l.name as br_lang_name\n\n {% if var('snowplow__enable_screen_context') %}\n {{ screen_context_fields('ev') }}\n {% endif %}\n\n {% if var('snowplow__enable_mobile_context') %}\n {{ mobile_context_fields('ev')}}\n {% endif %}\n\n {% if target.type == 'postgres' %}\n , row_number() over (partition by ev.session_identifier order by ev.derived_tstamp, ev.dvce_created_tstamp, ev.event_id) as session_dedupe_index\n {% endif %}\n\n , {{ mkt_source_platform_query() }} as mkt_source_platform\n\n {%- if var('snowplow__session_passthroughs', []) -%}\n {%- set passthrough_names = [] -%}\n {%- for identifier in var('snowplow__session_passthroughs', []) %}\n {# Check if it is a simple column or a sql+alias #}\n {%- if identifier is mapping -%}\n ,{{identifier['sql']}} as {{identifier['alias']}}\n {%- do passthrough_names.append(identifier['alias']) -%}\n {%- else -%}\n ,ev.{{identifier}}\n {%- do passthrough_names.append(identifier) -%}\n {%- endif -%}\n {% endfor -%}\n {%- endif %}\n\n from {{ ref('snowplow_unified_events_this_run') }} ev\n left join\n {{ ref(var('snowplow__ga4_categories_seed')) }} c on lower(trim(ev.mkt_source)) = lower(c.source)\n left join\n {{ ref(var('snowplow__rfc_5646_seed')) }} l on lower(ev.br_lang) = lower(l.lang_tag)\n left join\n {{ ref(var('snowplow__geo_mapping_seed')) }} g on lower(ev.geo_country) = lower(g.alpha_2)\n where event_name in ('page_ping', 'page_view', 'screen_view')\n and view_id is not null\n\n {% if var(\"snowplow__ua_bot_filter\", true) %}\n {{ filter_bots() }}\n {% endif %}\n\n {% if target.type not in ['postgres'] %}\n qualify row_number() over (partition by session_identifier order by derived_tstamp, dvce_created_tstamp, event_id) = 1\n {% endif %}\n)\n\n, session_lasts as (\n select\n\n ev.event_name as last_event_name,\n ev.geo_country as last_geo_country,\n ev.geo_city as last_geo_city,\n ev.geo_region_name as last_geo_region_name,\n g.name as last_geo_country_name,\n g.region as last_geo_continent,\n ev.page_url as last_page_url,\n\n {% if var('snowplow__enable_web') %}\n ev.page_title as last_page_title,\n ev.page_urlscheme as last_page_urlscheme,\n ev.page_urlhost as last_page_urlhost,\n ev.page_urlpath as last_page_urlpath,\n ev.page_urlquery as last_page_urlquery,\n ev.page_urlfragment as last_page_urlfragment,\n br_lang as last_br_lang,\n l.name as last_br_lang_name,\n {% endif %}\n\n {% if var('snowplow__enable_mobile') %}\n ev.screen_view__name as last_screen_view__name,\n ev.screen_view__transition_type as last_screen_view__transition_type,\n ev.screen_view__type as last_screen_view__type,\n {% endif %}\n\n {% if target.type == 'postgres' %}\n row_number() over (partition by ev.session_identifier order by ev.derived_tstamp desc, ev.dvce_created_tstamp desc, ev.event_id) AS session_dedupe_index,\n {% endif %}\n\n session_identifier\n\n from {{ ref('snowplow_unified_events_this_run') }} ev\n left join\n {{ ref(var('snowplow__rfc_5646_seed')) }} l on lower(ev.br_lang) = lower(l.lang_tag)\n left join\n {{ ref(var('snowplow__geo_mapping_seed')) }} g on lower(ev.geo_country) = lower(g.alpha_2)\n where\n event_name in ('page_view', 'screen_view')\n and view_id is not null\n {% if var(\"snowplow__ua_bot_filter\", true) %}\n {{ filter_bots() }}\n {% endif %}\n\n {% if target.type not in ['postgres'] %}\n qualify row_number() over (partition by session_identifier order by derived_tstamp desc, dvce_created_tstamp desc, event_id) = 1\n {% endif %}\n)\n\n, session_aggs as (\n select\n session_identifier\n , min(derived_tstamp) as start_tstamp\n , max(derived_tstamp) as end_tstamp\n , count(*) as total_events\n , count(distinct view_id) as views\n\n {%- if var('snowplow__list_event_counts', false) %}\n , {{ event_counts_string_query() }} as event_counts_string\n {%- endif %}\n\n {% if var('snowplow__enable_web') %}\n -- (hb * (#page pings - # distinct page view ids ON page pings)) + (# distinct page view ids ON page pings * min visit length)\n , ({{ var(\"snowplow__heartbeat\", 10) }} * (\n -- number of (unqiue in heartbeat increment) pages pings following a page ping (gap of heartbeat)\n count(distinct case when event_name = 'page_ping' and view_id is not null then\n -- need to get a unique list of floored time PER page view, so create a dummy surrogate key...\n {{ dbt.concat(['view_id', \"cast(floor(\"~snowplow_utils.to_unixtstamp('dvce_created_tstamp')~\"/\"~var('snowplow__heartbeat', 10)~\") as \"~dbt.type_string()~\")\" ]) }}\n else null end) - count(distinct case when event_name = 'page_ping' and view_id is not null then view_id else null end)\n )) +\n -- number of page pings following a page view (or no event) (gap of min visit length)\n (count(distinct case when event_name = 'page_ping' and view_id is not null then view_id else null end) * {{ var(\"snowplow__min_visit_length\", 5) }}) as engaged_time_in_s_web\n {% endif %}\n\n , {{ snowplow_utils.timestamp_diff('min(derived_tstamp)', 'max(derived_tstamp)', 'second') }} as absolute_time_in_s\n\n {% if var(\"snowplow__enable_app_errors\", false) %}\n , count(distinct case when event_name = 'application_error' then 1 end) as app_errors\n , count(distinct case when app_error__is_fatal then event_id end) as fatal_app_errors\n {% endif %}\n\n {% if var('snowplow__enable_mobile') %}\n , count(distinct screen_view__name) as screen_names_viewed\n {% endif %}\n\n from {{ ref('snowplow_unified_events_this_run') }}\n where 1 = 1\n\n {% if var(\"snowplow__ua_bot_filter\", true) %}\n {{ filter_bots() }}\n {% endif %}\n\n group by session_identifier\n)\n\n, session_aggs_with_engaged_time as (\n {% if var('snowplow__enable_screen_summary_context', false) %}\n select a.*\n\n , coalesce(\n ss.foreground_sec,\n {% if var('snowplow__enable_web') %}a.engaged_time_in_s_web,{% endif %}\n null\n ) as engaged_time_in_s\n\n from session_aggs a\n\n left join {{ ref('snowplow_unified_session_screen_summary_metrics') }} ss\n on a.session_identifier = ss.session_identifier\n {% else %}\n select a.*\n\n {% if var('snowplow__enable_web') %}\n , a.engaged_time_in_s_web as engaged_time_in_s\n {% endif %}\n\n from session_aggs a\n {% endif %}\n)\n\n-- Redshift does not allow listagg and other aggregations in the same CTE\n{%- if var('snowplow__conversion_events', none) %}\n,session_convs as (\n select\n session_identifier\n {%- for conv_def in var('snowplow__conversion_events') %}\n {{ snowplow_unified.conversion_query(conv_def)}}\n {%- endfor %}\n {% if var('snowplow__enable_conversions', false) %}\n from {{ ref('snowplow_unified_conversions_this_run') }}\n {% else %}\n from {{ ref('snowplow_unified_events_this_run') }}\n where 1 = 1\n {% if var(\"snowplow__ua_bot_filter\", true) %}\n {{ filter_bots() }}\n {% endif %}\n {% endif %}\n group by session_identifier\n)\n{%- endif %}\n\nselect\n\n -- event categorization fields\n f.event_name as first_event_name\n , l.last_event_name\n , f.session_identifier\n {% if var('snowplow__enable_mobile') %}\n , f.session__previous_session_id\n {% endif %}\n\n -- user id fields\n , f.user_id\n , f.user_identifier\n , f.stitched_user_id\n , f.network_userid\n\n -- timestamp fields\n -- when the session starts with a ping we need to add the min visit length to get when the session actually started\n , case when f.event_name = 'page_ping' then {{ snowplow_utils.timestamp_add(datepart=\"second\", interval=-var(\"snowplow__min_visit_length\", 5), tstamp=\"a.start_tstamp\") }} else a.start_tstamp end as start_tstamp\n , a.end_tstamp -- only page views with pings will have a row in table t\n , {{ snowplow_utils.current_timestamp_in_utc() }} as model_tstamp\n\n -- device fields\n , f.app_id\n , f.platform\n , f.device_identifier\n , f.device_category\n , f.device_session_index\n , f.os_version\n , f.os_type\n\n {% if var('snowplow__enable_web') %}\n , f.os_timezone\n {% endif %}\n\n , f.screen_resolution\n\n {% if var('snowplow__enable_yauaa') %}\n , f.yauaa__device_class\n , f.yauaa__device_version\n , f.yauaa__operating_system_version\n , f.yauaa__operating_system_class\n , f.yauaa__operating_system_name\n , f.yauaa__operating_system_name_version\n {% endif %}\n\n {% if var('snowplow__enable_mobile_context') %}\n {{ mobile_context_fields('f')}}\n {% endif %}\n\n -- geo fields\n , f.geo_country as first_geo_country\n , f.geo_region_name as first_geo_region_name\n , f.geo_city as first_geo_city\n , f.geo_country_name as first_geo_country_name\n , f.geo_continent as first_geo_continent\n\n , case when l.last_geo_country is null then coalesce(l.last_geo_country, f.geo_country) else l.last_geo_country end as last_geo_country\n , case when l.last_geo_country is null then coalesce(l.last_geo_region_name, f.geo_region_name) else l.last_geo_region_name end as last_geo_region_name\n , case when l.last_geo_country is null then coalesce(l.last_geo_city, f.geo_city) else l.last_geo_city end as last_geo_city\n , case when l.last_geo_country is null then coalesce(l.last_geo_country_name,f.geo_country_name) else l.last_geo_country_name end as last_geo_country_name\n , case when l.last_geo_country is null then coalesce(l.last_geo_continent, f.geo_continent) else l.last_geo_continent end as last_geo_continent\n\n , f.geo_zipcode\n , f.geo_latitude\n , f.geo_longitude\n , f.geo_timezone\n , f.user_ipaddress\n\n -- engagement fields\n , a.views\n {%- if var('snowplow__list_event_counts', false) %}\n , {{ event_counts_query() }} as event_counts\n {%- endif %}\n , a.total_events\n , coalesce({{ engaged_session() }}, false) as is_engaged\n -- when the session starts with a ping we need to add the min visit length to get when the session actually started\n\n {% if var('snowplow__enable_web') or var('snowplow__enable_screen_summary_context', false) %}\n , a.engaged_time_in_s\n {%- endif %}\n\n , a.absolute_time_in_s + case when f.event_name = 'page_ping' then {{ var(\"snowplow__min_visit_length\", 5) }} else 0 end as absolute_time_in_s\n\n {% if var('snowplow__enable_mobile') %}\n , a.screen_names_viewed\n {%- endif %}\n\n -- marketing fields\n , f.mkt_medium\n , f.mkt_source\n , f.mkt_term\n , f.mkt_content\n , f.mkt_campaign\n , f.mkt_clickid\n , f.mkt_network\n , f.default_channel_group\n , mkt_source_platform\n\n -- webpage / referrer / browser fields\n , f.page_url as first_page_url\n , case when l.last_page_url is null then coalesce(l.last_page_url, f.page_url) else l.last_page_url end as last_page_url\n , f.page_referrer\n , f.refr_medium\n , f.refr_source\n , f.refr_term\n\n {% if var('snowplow__enable_web') %}\n , f.page_title as first_page_title\n , f.page_urlscheme as first_page_urlscheme\n , f.page_urlhost as first_page_urlhost\n , f.page_urlpath as first_page_urlpath\n , f.page_urlquery as first_page_urlquery\n , f.page_urlfragment as first_page_urlfragment\n -- only take the first value when the last is genuinely missing (base on url as has to always be populated)\n , case when l.last_page_url is null then coalesce(l.last_page_title, f.page_title) else l.last_page_title end as last_page_title\n , case when l.last_page_url is null then coalesce(l.last_page_urlscheme, f.page_urlscheme) else l.last_page_urlscheme end as last_page_urlscheme\n , case when l.last_page_url is null then coalesce(l.last_page_urlhost, f.page_urlhost) else l.last_page_urlhost end as last_page_urlhost\n , case when l.last_page_url is null then coalesce(l.last_page_urlpath, f.page_urlpath) else l.last_page_urlpath end as last_page_urlpath\n , case when l.last_page_url is null then coalesce(l.last_page_urlquery, f.page_urlquery) else l.last_page_urlquery end as last_page_urlquery\n , case when l.last_page_url is null then coalesce(l.last_page_urlfragment, f.page_urlfragment) else l.last_page_urlfragment end as last_page_urlfragment\n , f.refr_urlscheme\n , f.refr_urlhost\n , f.refr_urlpath\n , f.refr_urlquery\n , f.refr_urlfragment\n , f.br_renderengine\n , f.br_lang as first_br_lang\n , f.br_lang_name as first_br_lang_name\n , case when l.last_br_lang is null then coalesce(l.last_br_lang, f.br_lang) else l.last_br_lang end as last_br_lang\n , case when l.last_br_lang is null then coalesce(l.last_br_lang_name, f.br_lang_name) else l.last_br_lang_name end as last_br_lang_name\n {% endif %}\n\n -- iab enrichment fields\n {% if var('snowplow__enable_iab') %}\n , f.iab__category\n , f.iab__primary_impact\n , f.iab__reason\n , f.iab__spider_or_robot\n {% endif %}\n\n -- yauaa enrichment fields\n {% if var('snowplow__enable_yauaa') %}\n , f.yauaa__device_name\n , f.yauaa__agent_class\n , f.yauaa__agent_name\n , f.yauaa__agent_name_version\n , f.yauaa__agent_name_version_major\n , f.yauaa__agent_version\n , f.yauaa__agent_version_major\n , f.yauaa__layout_engine_class\n , f.yauaa__layout_engine_name\n , f.yauaa__layout_engine_name_version\n , f.yauaa__layout_engine_name_version_major\n , f.yauaa__layout_engine_version\n , f.yauaa__layout_engine_version_major\n {% endif %}\n\n -- ua parser enrichment fields\n {% if var('snowplow__enable_ua') %}\n , f.ua__device_family\n , f.ua__os_version\n , f.ua__os_major\n , f.ua__os_minor\n , f.ua__os_patch\n , f.ua__os_patch_minor\n , f.ua__useragent_family\n , f.ua__useragent_major\n , f.ua__useragent_minor\n , f.ua__useragent_patch\n , f.ua__useragent_version\n {% endif %}\n\n -- mobile only\n {% if var('snowplow__enable_mobile') %}\n , f.screen_view__name as first_screen_view__name\n , f.screen_view__type as first_screen_view__type\n , case when l.last_screen_view__name is null then coalesce(l.last_screen_view__name, f.screen_view__name) else l.last_screen_view__name end as last_screen_view__name\n , case when l.last_screen_view__transition_type is null then coalesce(l.last_screen_view__transition_type, f.screen_view__transition_type) else l.last_screen_view__transition_type end as last_screen_view__transition_type\n , case when l.last_screen_view__type is null then coalesce(l.last_screen_view__type, f.screen_view__type) else l.last_screen_view__type end as last_screen_view__type\n , f.screen_view__previous_id\n , f.screen_view__previous_name\n , f.screen_view__previous_type\n\n {% endif %}\n\n {% if var('snowplow__enable_application_context') %}\n , f.app__build as first_app__build\n , f.app__version as first_app__version\n {% endif %}\n\n {% if var('snowplow__enable_geolocation_context') %}\n , f.geo__altitude as first_geo__altitude\n , f.geo__altitude_accuracy as first_geo__altitude_accuracy\n , f.geo__bearing as first_geo__bearing\n , f.geo__latitude as first_geo__latitude\n , f.geo__latitude_longitude_accuracy as first_geo__latitude_longitude_accuracy\n , f.geo__longitude as first_geo__longitude\n , f.geo__speed as first_geo__speed\n {% endif %}\n\n {% if var('snowplow__enable_screen_context') %}\n , f.screen__fragment\n , f.screen__top_view_controller\n , f.screen__view_controller\n {% endif %}\n\n {% if var(\"snowplow__enable_app_errors\", false) %}\n , a.app_errors\n , a.fatal_app_errors\n {% endif %}\n\n , f.useragent\n\n -- conversion fields\n {%- if var('snowplow__conversion_events', none) %}\n {%- for conv_def in var('snowplow__conversion_events') %}\n {{ snowplow_unified.conversion_query(conv_def, names_only = true)}}\n {%- endfor %}\n {% if var('snowplow__total_all_conversions', false) %}\n ,{%- for conv_def in var('snowplow__conversion_events') %} coalesce({{'cv_' ~ conv_def['name'] ~ '_volume'}},0) {%- if not loop.last %} + {% endif -%}{%- endfor %} as cv__all_volume\n {# Use 0 in case of no conversions having a value field #}\n ,0 {%- for conv_def in var('snowplow__conversion_events') %}{%- if conv_def.get('value') %} + coalesce({{'cv_' ~ conv_def['name'] ~ '_total'}}, 0){% endif -%}{%- endfor %} as cv__all_total\n {% endif %}\n {%- endif %}\n\n -- passthrough fields\n {%- if var('snowplow__session_passthroughs', []) -%}\n {%- for col in passthrough_names %}\n , f.{{col}}\n {%- endfor -%}\n {%- endif %}\n\nfrom session_firsts f\n\nleft join session_lasts l\non f.session_identifier = l.session_identifier\n\n{% if target.type == 'postgres' %}\n and l.session_dedupe_index = 1\n{%- endif %}\n\nleft join session_aggs_with_engaged_time a\non f.session_identifier = a.session_identifier\n\n{%- if var('snowplow__conversion_events', none) %}\nleft join session_convs d on f.session_identifier = d.session_identifier\n{%- endif %}\n\n{% if target.type == 'postgres' %}\n where f.session_dedupe_index = 1\n{%- endif %}", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}, {"name": "snowplow_unified_dim_ga4_source_categories", "package": null, "version": null}, {"name": "snowplow_unified_dim_rfc_5646_language_mapping", "package": null, "version": null}, {"name": "snowplow_unified_dim_geo_country_mapping", "package": null, "version": null}, {"name": "snowplow_unified_events_this_run", "package": null, "version": null}, {"name": "snowplow_unified_dim_rfc_5646_language_mapping", "package": null, "version": null}, {"name": "snowplow_unified_dim_geo_country_mapping", "package": null, "version": null}, {"name": "snowplow_unified_events_this_run", "package": null, "version": null}, {"name": "snowplow_unified_events_this_run", "package": null, "version": null}, {"name": "snowplow_unified_events_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.snowplow_unified.platform_independent_fields", "macro.snowplow_unified.web_only_fields", "macro.snowplow_unified.mobile_only_fields", "macro.snowplow_utils.type_max_string", "macro.snowplow_unified.iab_context_fields", "macro.snowplow_unified.yauaa_context_fields", "macro.snowplow_unified.ua_context_fields", "macro.snowplow_unified.app_context_fields", "macro.snowplow_unified.geo_context_fields", "macro.snowplow_unified.screen_context_fields", "macro.snowplow_unified.mobile_context_fields", "macro.snowplow_unified.mkt_source_platform_query", "macro.snowplow_unified.filter_bots", "macro.snowplow_unified.event_counts_string_query", "macro.snowplow_utils.to_unixtstamp", "macro.dbt.type_string", "macro.dbt.concat", "macro.snowplow_utils.timestamp_diff", "macro.snowplow_unified.conversion_query", "macro.snowplow_utils.timestamp_add", "macro.snowplow_utils.current_timestamp_in_utc", "macro.snowplow_unified.event_counts_query", "macro.snowplow_unified.engaged_session"], "nodes": ["model.snowplow_unified.snowplow_unified_events_this_run", "seed.snowplow_unified.snowplow_unified_dim_ga4_source_categories", "seed.snowplow_unified.snowplow_unified_dim_rfc_5646_language_mapping", "seed.snowplow_unified.snowplow_unified_dim_geo_country_mapping"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/scratch/snowplow_unified_sessions_this_run.sql", "compiled": true, "compiled_code": "\n\n\n\nwith session_firsts as (\n select\n \n\n -- event categorization fields\n ev.event_name,\n ev.user_id,\n ev.user_identifier,\n ev.network_userid,\n\n -- timestamp fields\n ev.dvce_created_tstamp,\n ev.collector_tstamp,\n ev.derived_tstamp,\n ev.derived_tstamp as start_tstamp,\n\n -- geo fields\n ev.geo_country,\n ev.geo_region,\n ev.geo_region_name,\n ev.geo_city,\n ev.geo_zipcode,\n ev.geo_latitude,\n ev.geo_longitude,\n ev.geo_timezone,\n ev.user_ipaddress,\n\n -- device fields\n ev.app_id,\n ev.platform,\n ev.device_identifier,\n ev.device_category,\n ev.device_session_index,\n ev.os_version,\n ev.os_type,\n ev.screen_resolution,\n\n -- marketing fields\n ev.mkt_medium,\n ev.mkt_source,\n ev.mkt_term,\n ev.mkt_content,\n ev.mkt_campaign,\n ev.mkt_clickid,\n ev.mkt_network,\n \ncase\n when lower(trim(mkt_source)) = '(direct)' and lower(trim(mkt_medium)) in ('(not set)', '(none)') then 'Direct'\n when lower(trim(mkt_medium)) like '%cross-network%' then 'Cross-network'\n when regexp_like(lower(trim(mkt_medium)), '^(.*cp.*|ppc|retargeting|paid.*)$') then\n case\n when upper(source_category) = 'SOURCE_CATEGORY_SHOPPING'\n or regexp_like(lower(trim(mkt_campaign)), '^(.*(([^a-df-z]|^)shop|shopping).*)$') then 'Paid Shopping'\n when upper(source_category) = 'SOURCE_CATEGORY_SEARCH' then 'Paid Search'\n when upper(source_category) = 'SOURCE_CATEGORY_SOCIAL' then 'Paid Social'\n when upper(source_category) = 'SOURCE_CATEGORY_VIDEO' then 'Paid Video'\n else 'Paid Other'\n end\n when lower(trim(mkt_medium)) in ('display', 'banner', 'expandable', 'intersitial', 'cpm') then 'Display'\n when upper(source_category) = 'SOURCE_CATEGORY_SHOPPING'\n or regexp_like(lower(trim(mkt_campaign)), '^(.*(([^a-df-z]|^)shop|shopping).*)$') then 'Organic Shopping'\n when upper(source_category) = 'SOURCE_CATEGORY_SOCIAL' or lower(trim(mkt_medium)) in ('social', 'social-network', 'sm', 'social network', 'social media') then 'Organic Social'\n when upper(source_category) = 'SOURCE_CATEGORY_VIDEO'\n or regexp_like(lower(trim(mkt_medium)), '^(.*video.*)$') then 'Organic Video'\n when upper(source_category) = 'SOURCE_CATEGORY_SEARCH' or lower(trim(mkt_medium)) = 'organic' then 'Organic Search'\n when lower(trim(mkt_medium)) in ('referral', 'app', 'link') then 'Referral'\n when lower(trim(mkt_source)) in ('email', 'e-mail', 'e_mail', 'e mail') or lower(trim(mkt_medium)) in ('email', 'e-mail', 'e_mail', 'e mail') then 'Email'\n when lower(trim(mkt_medium)) = 'affiliate' then 'Affiliates'\n when lower(trim(mkt_medium)) = 'audio' then 'Audio'\n when lower(trim(mkt_source)) = 'sms' or lower(trim(mkt_medium)) = 'sms' then 'SMS'\n when lower(trim(mkt_medium)) like '%push' or regexp_like(lower(trim(mkt_medium)), '.*(mobile|notification).*') or lower(trim(mkt_source)) = 'firebase' then 'Mobile Push Notifications'\n else 'Unassigned'\nend\n as default_channel_group,\n\n -- webpage / referer / browser fields\n ev.page_url,\n ev.page_referrer,\n ev.refr_medium,\n ev.refr_source,\n ev.refr_term,\n ev.useragent\n\n\n , session_identifier\n\n \n \n\n , ev.br_lang\n , ev.br_viewwidth\n , ev.br_viewheight\n , ev.br_renderengine\n , ev.doc_width\n , ev.doc_height\n , ev.page_title\n , ev.page_urlscheme\n , ev.page_urlhost\n , ev.page_urlpath\n , ev.page_urlquery\n , ev.page_urlfragment\n , ev.refr_urlscheme\n , ev.refr_urlhost\n , ev.refr_urlpath\n , ev.refr_urlquery\n , ev.refr_urlfragment\n , ev.os_timezone\n\n\n \n\n \n \n\n , ev.session__previous_session_id\n , ev.screen_view__name\n , ev.screen_view__previous_id\n , ev.screen_view__previous_name\n , ev.screen_view__previous_type\n , ev.screen_view__transition_type\n , ev.screen_view__type\n\n\n \n\n \n -- updated with mapping as part of post hook on derived sessions table\n , cast(user_identifier as \n TEXT\n) as stitched_user_id\n \n\n \n \n\n , ev.iab__category\n , ev.iab__primary_impact\n , ev.iab__reason\n , ev.iab__spider_or_robot\n\n\n \n\n \n \n\n , ev.yauaa__device_class\n , ev.yauaa__agent_class\n , ev.yauaa__agent_name\n , ev.yauaa__agent_name_version\n , ev.yauaa__agent_name_version_major\n , ev.yauaa__agent_version\n , ev.yauaa__agent_version_major\n , ev.yauaa__device_brand\n , ev.yauaa__device_name\n , ev.yauaa__device_version\n , ev.yauaa__layout_engine_class\n , ev.yauaa__layout_engine_name\n , ev.yauaa__layout_engine_name_version\n , ev.yauaa__layout_engine_name_version_major\n , ev.yauaa__layout_engine_version\n , ev.yauaa__layout_engine_version_major\n , ev.yauaa__operating_system_class\n , ev.yauaa__operating_system_name\n , ev.yauaa__operating_system_name_version\n , ev.yauaa__operating_system_version\n\n\n \n\n \n \n\n , ev.ua__useragent_family\n , ev.ua__useragent_major\n , ev.ua__useragent_minor\n , ev.ua__useragent_patch\n , ev.ua__useragent_version\n , ev.ua__os_family\n , ev.ua__os_major\n , ev.ua__os_minor\n , ev.ua__os_patch\n , ev.ua__os_patch_minor\n , ev.ua__os_version\n , ev.ua__device_family\n\n\n \n\n \n \n\n , ev.app__build\n , ev.app__version\n\n\n \n\n \n \n\n , ev.geo__latitude\n , ev.geo__longitude\n , ev.geo__latitude_longitude_accuracy\n , ev.geo__altitude\n , ev.geo__altitude_accuracy\n , ev.geo__bearing\n , ev.geo__speed\n\n\n \n\n , g.name as geo_country_name\n , g.region as geo_continent\n , l.name as br_lang_name\n\n \n \n\n , ev.screen__id\n , ev.screen__name\n , ev.screen__activity\n , ev.screen__fragment\n , ev.screen__top_view_controller\n , ev.screen__type\n , ev.screen__view_controller\n\n\n \n\n \n \n\n , ev.mobile__device_manufacturer\n , ev.mobile__device_model\n , ev.mobile__os_type\n , ev.mobile__os_version\n , ev.mobile__android_idfa\n , ev.mobile__apple_idfa\n , ev.mobile__apple_idfv\n , ev.mobile__carrier\n , ev.mobile__open_idfa\n , ev.mobile__network_technology\n , ev.mobile__network_type\n , ev.mobile__physical_memory\n , ev.mobile__system_available_memory\n , ev.mobile__app_available_memory\n , ev.mobile__battery_level\n , ev.mobile__battery_state\n , ev.mobile__low_power_mode\n , ev.mobile__available_storage\n , ev.mobile__total_storage\n , ev.mobile__is_portrait\n , ev.mobile__resolution\n , ev.mobile__scale\n , ev.mobile__language\n , ev.mobile__app_set_id\n , ev.mobile__app_set_id_scope\n\n\n \n\n \n\n , \n regexp_substr(page_urlquery, 'utm_source_platform=([^?&#]*)', 1, 1, 'e')\n as mkt_source_platform\n ,ev.event_id\n ,event_id as event_id2\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_events_this_run ev\n left join\n SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_dim_ga4_source_categories c on lower(trim(ev.mkt_source)) = lower(c.source)\n left join\n SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_dim_rfc_5646_language_mapping l on lower(ev.br_lang) = lower(l.lang_tag)\n left join\n SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_dim_geo_country_mapping g on lower(ev.geo_country) = lower(g.alpha_2)\n where event_name in ('page_ping', 'page_view', 'screen_view')\n and view_id is not null\n\n \n \n and not rlike(useragent, '.*(bot|crawl|slurp|spider|archiv|spinn|sniff|seo|audit|survey|pingdom|worm|capture|(browser|screen)shots|analyz|index|thumb|check|facebook|PingdomBot|PhantomJS|YandexBot|Twitterbot|a_archiver|facebookexternalhit|Bingbot|BingPreview|Googlebot|Baiduspider|360(Spider|User-agent)|semalt).*')\n\n \n\n \n qualify row_number() over (partition by session_identifier order by derived_tstamp, dvce_created_tstamp, event_id) = 1\n \n)\n\n, session_lasts as (\n select\n\n ev.event_name as last_event_name,\n ev.geo_country as last_geo_country,\n ev.geo_city as last_geo_city,\n ev.geo_region_name as last_geo_region_name,\n g.name as last_geo_country_name,\n g.region as last_geo_continent,\n ev.page_url as last_page_url,\n\n \n ev.page_title as last_page_title,\n ev.page_urlscheme as last_page_urlscheme,\n ev.page_urlhost as last_page_urlhost,\n ev.page_urlpath as last_page_urlpath,\n ev.page_urlquery as last_page_urlquery,\n ev.page_urlfragment as last_page_urlfragment,\n br_lang as last_br_lang,\n l.name as last_br_lang_name,\n \n\n \n ev.screen_view__name as last_screen_view__name,\n ev.screen_view__transition_type as last_screen_view__transition_type,\n ev.screen_view__type as last_screen_view__type,\n \n\n \n\n session_identifier\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_events_this_run ev\n left join\n SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_dim_rfc_5646_language_mapping l on lower(ev.br_lang) = lower(l.lang_tag)\n left join\n SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_dim_geo_country_mapping g on lower(ev.geo_country) = lower(g.alpha_2)\n where\n event_name in ('page_view', 'screen_view')\n and view_id is not null\n \n \n and not rlike(useragent, '.*(bot|crawl|slurp|spider|archiv|spinn|sniff|seo|audit|survey|pingdom|worm|capture|(browser|screen)shots|analyz|index|thumb|check|facebook|PingdomBot|PhantomJS|YandexBot|Twitterbot|a_archiver|facebookexternalhit|Bingbot|BingPreview|Googlebot|Baiduspider|360(Spider|User-agent)|semalt).*')\n\n \n\n \n qualify row_number() over (partition by session_identifier order by derived_tstamp desc, dvce_created_tstamp desc, event_id) = 1\n \n)\n\n, session_aggs as (\n select\n session_identifier\n , min(derived_tstamp) as start_tstamp\n , max(derived_tstamp) as end_tstamp\n , count(*) as total_events\n , count(distinct view_id) as views\n , \n \n \n\n '{' || rtrim(\n case when sum(case when event_name = 'application_background' then 1 else 0 end) > 0 then '\"application_background\" :' || sum(case when event_name = 'application_background' then 1 else 0 end) || ', ' else '' end ||\n case when sum(case when event_name = 'application_foreground' then 1 else 0 end) > 0 then '\"application_foreground\" :' || sum(case when event_name = 'application_foreground' then 1 else 0 end) || ', ' else '' end ||\n case when sum(case when event_name = 'cmp_visible' then 1 else 0 end) > 0 then '\"cmp_visible\" :' || sum(case when event_name = 'cmp_visible' then 1 else 0 end) || ', ' else '' end ||\n case when sum(case when event_name = 'consent_preferences' then 1 else 0 end) > 0 then '\"consent_preferences\" :' || sum(case when event_name = 'consent_preferences' then 1 else 0 end) || ', ' else '' end ||\n case when sum(case when event_name = 'data_structures_workflow' then 1 else 0 end) > 0 then '\"data_structures_workflow\" :' || sum(case when event_name = 'data_structures_workflow' then 1 else 0 end) || ', ' else '' end ||\n case when sum(case when event_name = 'event' then 1 else 0 end) > 0 then '\"event\" :' || sum(case when event_name = 'event' then 1 else 0 end) || ', ' else '' end ||\n case when sum(case when event_name = 'link_click' then 1 else 0 end) > 0 then '\"link_click\" :' || sum(case when event_name = 'link_click' then 1 else 0 end) || ', ' else '' end ||\n case when sum(case when event_name = 'page_ping' then 1 else 0 end) > 0 then '\"page_ping\" :' || sum(case when event_name = 'page_ping' then 1 else 0 end) || ', ' else '' end ||\n case when sum(case when event_name = 'page_view' then 1 else 0 end) > 0 then '\"page_view\" :' || sum(case when event_name = 'page_view' then 1 else 0 end) || ', ' else '' end ||\n case when sum(case when event_name = 'screen_view' then 1 else 0 end) > 0 then '\"screen_view\" :' || sum(case when event_name = 'screen_view' then 1 else 0 end) || ', ' else '' end ||\n case when sum(case when event_name = 'snplow_cookies' then 1 else 0 end) > 0 then '\"snplow_cookies\" :' || sum(case when event_name = 'snplow_cookies' then 1 else 0 end) || ', ' else '' end ||'', ', ') || '}'\n\n as event_counts_string\n\n \n -- (hb * (#page pings - # distinct page view ids ON page pings)) + (# distinct page view ids ON page pings * min visit length)\n , (10 * (\n -- number of (unqiue in heartbeat increment) pages pings following a page ping (gap of heartbeat)\n count(distinct case when event_name = 'page_ping' and view_id is not null then\n -- need to get a unique list of floored time PER page view, so create a dummy surrogate key...\n view_id || cast(floor(date_part('epoch_seconds', dvce_created_tstamp)/10) as TEXT)\n else null end) - count(distinct case when event_name = 'page_ping' and view_id is not null then view_id else null end)\n )) +\n -- number of page pings following a page view (or no event) (gap of min visit length)\n (count(distinct case when event_name = 'page_ping' and view_id is not null then view_id else null end) * 5) as engaged_time_in_s_web\n \n\n , datediff(\n second,\n min(derived_tstamp),\n max(derived_tstamp)\n ) as absolute_time_in_s\n\n \n , count(distinct case when event_name = 'application_error' then 1 end) as app_errors\n , count(distinct case when app_error__is_fatal then event_id end) as fatal_app_errors\n \n\n \n , count(distinct screen_view__name) as screen_names_viewed\n \n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_events_this_run\n where 1 = 1\n\n \n \n and not rlike(useragent, '.*(bot|crawl|slurp|spider|archiv|spinn|sniff|seo|audit|survey|pingdom|worm|capture|(browser|screen)shots|analyz|index|thumb|check|facebook|PingdomBot|PhantomJS|YandexBot|Twitterbot|a_archiver|facebookexternalhit|Bingbot|BingPreview|Googlebot|Baiduspider|360(Spider|User-agent)|semalt).*')\n\n \n\n group by session_identifier\n)\n\n, session_aggs_with_engaged_time as (\n \n select a.*\n\n \n , a.engaged_time_in_s_web as engaged_time_in_s\n \n\n from session_aggs a\n \n)\n\n-- Redshift does not allow listagg and other aggregations in the same CTE\n,session_convs as (\n select\n session_identifier\n \n\n\n\n\n,COUNT(CASE WHEN event_name = 'page_view' THEN 1 ELSE null END) AS cv_view_page_volume\n,ARRAYAGG(CASE WHEN event_name = 'page_view' THEN event_id ELSE null END) WITHIN GROUP (ORDER BY derived_tstamp, dvce_created_tstamp, event_id) AS cv_view_page_events\n,ARRAYAGG(CASE WHEN event_name = 'page_view' THEN coalesce(tr_total_base,0.5) ELSE null END) WITHIN GROUP (ORDER BY derived_tstamp, dvce_created_tstamp, event_id) AS cv_view_page_values\n,SUM(CASE WHEN event_name = 'page_view' THEN coalesce(tr_total_base, 0.5) ELSE 0 END) AS cv_view_page_total\n,MIN(CASE WHEN event_name = 'page_view' THEN derived_tstamp ELSE null END) AS cv_view_page_first_conversion\n,CAST(MAX(CASE WHEN event_name = 'page_view' THEN 1 ELSE 0 END) AS BOOLEAN) AS cv_view_page_converted\n\n \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_events_this_run\n where 1 = 1\n \n \n and not rlike(useragent, '.*(bot|crawl|slurp|spider|archiv|spinn|sniff|seo|audit|survey|pingdom|worm|capture|(browser|screen)shots|analyz|index|thumb|check|facebook|PingdomBot|PhantomJS|YandexBot|Twitterbot|a_archiver|facebookexternalhit|Bingbot|BingPreview|Googlebot|Baiduspider|360(Spider|User-agent)|semalt).*')\n\n \n \n group by session_identifier\n)\n\nselect\n\n -- event categorization fields\n f.event_name as first_event_name\n , l.last_event_name\n , f.session_identifier\n \n , f.session__previous_session_id\n \n\n -- user id fields\n , f.user_id\n , f.user_identifier\n , f.stitched_user_id\n , f.network_userid\n\n -- timestamp fields\n -- when the session starts with a ping we need to add the min visit length to get when the session actually started\n , case when f.event_name = 'page_ping' then \n\n dateadd(\n second,\n -5,\n a.start_tstamp\n )\n\n else a.start_tstamp end as start_tstamp\n , a.end_tstamp -- only page views with pings will have a row in table t\n , \n convert_timezone('UTC', convert_timezone('UTC', current_timestamp()))::TIMESTAMP\n as model_tstamp\n\n -- device fields\n , f.app_id\n , f.platform\n , f.device_identifier\n , f.device_category\n , f.device_session_index\n , f.os_version\n , f.os_type\n\n \n , f.os_timezone\n \n\n , f.screen_resolution\n\n \n , f.yauaa__device_class\n , f.yauaa__device_version\n , f.yauaa__operating_system_version\n , f.yauaa__operating_system_class\n , f.yauaa__operating_system_name\n , f.yauaa__operating_system_name_version\n \n\n \n \n\n , f.mobile__device_manufacturer\n , f.mobile__device_model\n , f.mobile__os_type\n , f.mobile__os_version\n , f.mobile__android_idfa\n , f.mobile__apple_idfa\n , f.mobile__apple_idfv\n , f.mobile__carrier\n , f.mobile__open_idfa\n , f.mobile__network_technology\n , f.mobile__network_type\n , f.mobile__physical_memory\n , f.mobile__system_available_memory\n , f.mobile__app_available_memory\n , f.mobile__battery_level\n , f.mobile__battery_state\n , f.mobile__low_power_mode\n , f.mobile__available_storage\n , f.mobile__total_storage\n , f.mobile__is_portrait\n , f.mobile__resolution\n , f.mobile__scale\n , f.mobile__language\n , f.mobile__app_set_id\n , f.mobile__app_set_id_scope\n\n\n \n\n -- geo fields\n , f.geo_country as first_geo_country\n , f.geo_region_name as first_geo_region_name\n , f.geo_city as first_geo_city\n , f.geo_country_name as first_geo_country_name\n , f.geo_continent as first_geo_continent\n\n , case when l.last_geo_country is null then coalesce(l.last_geo_country, f.geo_country) else l.last_geo_country end as last_geo_country\n , case when l.last_geo_country is null then coalesce(l.last_geo_region_name, f.geo_region_name) else l.last_geo_region_name end as last_geo_region_name\n , case when l.last_geo_country is null then coalesce(l.last_geo_city, f.geo_city) else l.last_geo_city end as last_geo_city\n , case when l.last_geo_country is null then coalesce(l.last_geo_country_name,f.geo_country_name) else l.last_geo_country_name end as last_geo_country_name\n , case when l.last_geo_country is null then coalesce(l.last_geo_continent, f.geo_continent) else l.last_geo_continent end as last_geo_continent\n\n , f.geo_zipcode\n , f.geo_latitude\n , f.geo_longitude\n , f.geo_timezone\n , f.user_ipaddress\n\n -- engagement fields\n , a.views\n , \n try_parse_json(event_counts_string)\n as event_counts\n , a.total_events\n , coalesce(\n case when a.session_identifier= '0b0c7bb589ebd041177514f3e43446ca5d4343328936d2f8f12a42b41bf9140e' then true\n else\n views >= 2\n\n \n or engaged_time_in_s / 10 >= 2\n or cv_view_page_converted end\n, false) as is_engaged\n -- when the session starts with a ping we need to add the min visit length to get when the session actually started\n\n \n , a.engaged_time_in_s\n\n , a.absolute_time_in_s + case when f.event_name = 'page_ping' then 5 else 0 end as absolute_time_in_s\n\n \n , a.screen_names_viewed\n\n -- marketing fields\n , f.mkt_medium\n , f.mkt_source\n , f.mkt_term\n , f.mkt_content\n , f.mkt_campaign\n , f.mkt_clickid\n , f.mkt_network\n , f.default_channel_group\n , mkt_source_platform\n\n -- webpage / referrer / browser fields\n , f.page_url as first_page_url\n , case when l.last_page_url is null then coalesce(l.last_page_url, f.page_url) else l.last_page_url end as last_page_url\n , f.page_referrer\n , f.refr_medium\n , f.refr_source\n , f.refr_term\n\n \n , f.page_title as first_page_title\n , f.page_urlscheme as first_page_urlscheme\n , f.page_urlhost as first_page_urlhost\n , f.page_urlpath as first_page_urlpath\n , f.page_urlquery as first_page_urlquery\n , f.page_urlfragment as first_page_urlfragment\n -- only take the first value when the last is genuinely missing (base on url as has to always be populated)\n , case when l.last_page_url is null then coalesce(l.last_page_title, f.page_title) else l.last_page_title end as last_page_title\n , case when l.last_page_url is null then coalesce(l.last_page_urlscheme, f.page_urlscheme) else l.last_page_urlscheme end as last_page_urlscheme\n , case when l.last_page_url is null then coalesce(l.last_page_urlhost, f.page_urlhost) else l.last_page_urlhost end as last_page_urlhost\n , case when l.last_page_url is null then coalesce(l.last_page_urlpath, f.page_urlpath) else l.last_page_urlpath end as last_page_urlpath\n , case when l.last_page_url is null then coalesce(l.last_page_urlquery, f.page_urlquery) else l.last_page_urlquery end as last_page_urlquery\n , case when l.last_page_url is null then coalesce(l.last_page_urlfragment, f.page_urlfragment) else l.last_page_urlfragment end as last_page_urlfragment\n , f.refr_urlscheme\n , f.refr_urlhost\n , f.refr_urlpath\n , f.refr_urlquery\n , f.refr_urlfragment\n , f.br_renderengine\n , f.br_lang as first_br_lang\n , f.br_lang_name as first_br_lang_name\n , case when l.last_br_lang is null then coalesce(l.last_br_lang, f.br_lang) else l.last_br_lang end as last_br_lang\n , case when l.last_br_lang is null then coalesce(l.last_br_lang_name, f.br_lang_name) else l.last_br_lang_name end as last_br_lang_name\n \n\n -- iab enrichment fields\n \n , f.iab__category\n , f.iab__primary_impact\n , f.iab__reason\n , f.iab__spider_or_robot\n \n\n -- yauaa enrichment fields\n \n , f.yauaa__device_name\n , f.yauaa__agent_class\n , f.yauaa__agent_name\n , f.yauaa__agent_name_version\n , f.yauaa__agent_name_version_major\n , f.yauaa__agent_version\n , f.yauaa__agent_version_major\n , f.yauaa__layout_engine_class\n , f.yauaa__layout_engine_name\n , f.yauaa__layout_engine_name_version\n , f.yauaa__layout_engine_name_version_major\n , f.yauaa__layout_engine_version\n , f.yauaa__layout_engine_version_major\n \n\n -- ua parser enrichment fields\n \n , f.ua__device_family\n , f.ua__os_version\n , f.ua__os_major\n , f.ua__os_minor\n , f.ua__os_patch\n , f.ua__os_patch_minor\n , f.ua__useragent_family\n , f.ua__useragent_major\n , f.ua__useragent_minor\n , f.ua__useragent_patch\n , f.ua__useragent_version\n \n\n -- mobile only\n \n , f.screen_view__name as first_screen_view__name\n , f.screen_view__type as first_screen_view__type\n , case when l.last_screen_view__name is null then coalesce(l.last_screen_view__name, f.screen_view__name) else l.last_screen_view__name end as last_screen_view__name\n , case when l.last_screen_view__transition_type is null then coalesce(l.last_screen_view__transition_type, f.screen_view__transition_type) else l.last_screen_view__transition_type end as last_screen_view__transition_type\n , case when l.last_screen_view__type is null then coalesce(l.last_screen_view__type, f.screen_view__type) else l.last_screen_view__type end as last_screen_view__type\n , f.screen_view__previous_id\n , f.screen_view__previous_name\n , f.screen_view__previous_type\n\n \n\n \n , f.app__build as first_app__build\n , f.app__version as first_app__version\n \n\n \n , f.geo__altitude as first_geo__altitude\n , f.geo__altitude_accuracy as first_geo__altitude_accuracy\n , f.geo__bearing as first_geo__bearing\n , f.geo__latitude as first_geo__latitude\n , f.geo__latitude_longitude_accuracy as first_geo__latitude_longitude_accuracy\n , f.geo__longitude as first_geo__longitude\n , f.geo__speed as first_geo__speed\n \n\n \n , f.screen__fragment\n , f.screen__top_view_controller\n , f.screen__view_controller\n \n\n \n , a.app_errors\n , a.fatal_app_errors\n \n\n , f.useragent\n\n -- conversion fields\n \n\n\n\n,coalesce(cv_view_page_volume, 0) as cv_view_page_volume\n,coalesce(cv_view_page_events, []) as cv_view_page_events\n,coalesce(cv_view_page_values, []) as cv_view_page_values\n,coalesce(cv_view_page_total, 0) as cv_view_page_total\n,cv_view_page_first_conversion\n,coalesce(cv_view_page_converted, false) as cv_view_page_converted\n\n \n , coalesce(cv_view_page_volume,0) as cv__all_volume\n \n ,0 + coalesce(cv_view_page_total, 0) as cv__all_total\n \n\n -- passthrough fields\n , f.event_id\n , f.event_id2\n\nfrom session_firsts f\n\nleft join session_lasts l\non f.session_identifier = l.session_identifier\n\n\n\nleft join session_aggs_with_engaged_time a\non f.session_identifier = a.session_identifier\nleft join session_convs d on f.session_identifier = d.session_identifier\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.snowplow_unified.snowplow_unified_user_mapping": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_derived", "name": "snowplow_unified_user_mapping", "resource_type": "model", "package_name": "snowplow_unified", "path": "user_mapping/snowplow_unified_user_mapping.sql", "original_file_path": "models/user_mapping/snowplow_unified_user_mapping.sql", "unique_id": "model.snowplow_unified.snowplow_unified_user_mapping", "fqn": ["snowplow_unified", "user_mapping", "snowplow_unified_user_mapping"], "alias": "snowplow_unified_user_mapping", "checksum": {"name": "sha256", "checksum": "37e60fdf2a8a4891dd5e634a84b09844766adc0138c8bc17c0a0939baff3ad8d"}, "config": {"enabled": true, "alias": null, "schema": "derived", "database": null, "tags": ["snowplow_unified_incremental", "derived"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "user_identifier", "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sort": "end_tstamp", "dist": "user_identifier", "partition_by": null, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived"], "description": "A mapping table between `user_identifier` and `user_id`.", "columns": {"user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}, "user_id": {"name": "user_id", "description": "Unique ID set by business e.g. \u2018jon.doe@email.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_tstamp": {"name": "end_tstamp", "description": "The `collector_tstamp` when the user was last active", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/user_mapping/user_mapping.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "file_format": "delta", "bind": false, "schema": "derived", "tags": ["derived"], "unique_key": "user_identifier", "sort": "end_tstamp", "dist": "user_identifier", "partition_by": null, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612344.3806868, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_user_mapping", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized='incremental',\n unique_key='user_identifier',\n sort='end_tstamp',\n dist='user_identifier',\n partition_by = snowplow_utils.get_value_by_target_type(bigquery_val={\n \"field\": \"end_tstamp\",\n \"data_type\": \"timestamp\"\n }),\n tags=[\"derived\"],\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\n\nselect distinct\n user_identifier,\n last_value({{ var('snowplow__user_stitching_id', 'user_id') }}) over(\n partition by user_identifier\n order by collector_tstamp\n rows between unbounded preceding and unbounded following\n ) as user_id,\n max(collector_tstamp) over (partition by user_identifier) as end_tstamp\n\nfrom {{ ref('snowplow_unified_events_this_run') }}\n\nwhere {{ snowplow_utils.is_run_with_new_events('snowplow_unified') }} --returns false if run doesn't contain new events.\nand {{ var('snowplow__user_stitching_id', 'user_id') }} is not null\nand user_identifier is not null", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.get_value_by_target_type", "macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.is_run_with_new_events"], "nodes": ["model.snowplow_unified.snowplow_unified_events_this_run", "model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_incremental_manifest"]}, "compiled_path": "target/compiled/snowplow_unified/models/user_mapping/snowplow_unified_user_mapping.sql", "compiled": true, "compiled_code": "\n\n\n\n\nselect distinct\n user_identifier,\n last_value(user_id) over(\n partition by user_identifier\n order by collector_tstamp\n rows between unbounded preceding and unbounded following\n ) as user_id,\n max(collector_tstamp) over (partition by user_identifier) as end_tstamp\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_events_this_run\n\nwhere cast(True as boolean) --returns false if run doesn't contain new events.\nand user_id is not null\nand user_identifier is not null", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.snowplow_unified.snowplow_tests_consent_versions": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "snowplow_tests_consent_versions", "resource_type": "test", "package_name": "snowplow_unified", "path": "snowplow_tests_consent_versions.sql", "original_file_path": "tests/snowplow_tests_consent_versions.sql", "unique_id": "test.snowplow_unified.snowplow_tests_consent_versions", "fqn": ["snowplow_unified", "snowplow_tests_consent_versions"], "alias": "snowplow_tests_consent_versions", "checksum": {"name": "sha256", "checksum": "72a8fdabac6e27400b61a8465a103c8e0f830f99942d956416258d84485c64da"}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612342.822563, "relation_name": null, "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Community License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Community License Version 1.0.\nYou may obtain a copy of the Snowplow Community License Version 1.0 at https://docs.snowplow.io/community-license-1.0\n#}\n\nwith prep as (\n\n select\n consent_version,\n count(*) as n_consents\n\n from {{ ref('snowplow_unified_consent_versions')}}\n\n group by 1\n\n having count(*)>1\n)\n\nselect * from prep", "language": "sql", "refs": [{"name": "snowplow_unified_consent_versions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.snowplow_unified.snowplow_unified_consent_versions"]}, "compiled_path": "target/compiled/snowplow_unified/tests/snowplow_tests_consent_versions.sql", "compiled": true, "compiled_code": "\n\nwith prep as (\n\n select\n consent_version,\n count(*) as n_consents\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_versions\n\n group by 1\n\n having count(*)>1\n)\n\nselect * from prep", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}}, "test.snowplow_unified.snowplow_tests_view_in_session_values": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "snowplow_tests_view_in_session_values", "resource_type": "test", "package_name": "snowplow_unified", "path": "page_screen_views/snowplow_tests_view_in_session_values.sql", "original_file_path": "tests/page_screen_views/snowplow_tests_view_in_session_values.sql", "unique_id": "test.snowplow_unified.snowplow_tests_view_in_session_values", "fqn": ["snowplow_unified", "page_screen_views", "snowplow_tests_view_in_session_values"], "alias": "snowplow_tests_view_in_session_values", "checksum": {"name": "sha256", "checksum": "e678490f12893033505c72fabeaffc33071419e34238f163a21e3fbd963c5cc1"}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612342.8288457, "relation_name": null, "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Community License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Community License Version 1.0.\nYou may obtain a copy of the Snowplow Community License Version 1.0 at https://docs.snowplow.io/community-license-1.0\n#}\n\n\nwith prep as (\n select\n session_identifier,\n count(distinct views_in_session) as dist_pvis_values,\n count(*) - count(distinct view_in_session_index) as all_minus_dist_pvisi,\n count(*) - count(distinct view_id) as all_minus_dist_pvids\n\n from {{ ref('snowplow_unified_views') }}\n group by 1\n)\n\nselect\n session_identifier\n\nfrom prep\n\nwhere dist_pvis_values != 1\nor all_minus_dist_pvisi != 0\nor all_minus_dist_pvids != 0", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.snowplow_unified.snowplow_unified_views"]}, "compiled_path": "target/compiled/snowplow_unified/tests/page_screen_views/snowplow_tests_view_in_session_values.sql", "compiled": true, "compiled_code": "\n\n\nwith prep as (\n select\n session_identifier,\n count(distinct views_in_session) as dist_pvis_values,\n count(*) - count(distinct view_in_session_index) as all_minus_dist_pvisi,\n count(*) - count(distinct view_id) as all_minus_dist_pvids\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views\n group by 1\n)\n\nselect\n session_identifier\n\nfrom prep\n\nwhere dist_pvis_values != 1\nor all_minus_dist_pvisi != 0\nor all_minus_dist_pvids != 0", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}}, "seed.snowplow_unified.snowplow_unified_dim_geo_country_mapping": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snowplow_manifest", "name": "snowplow_unified_dim_geo_country_mapping", "resource_type": "seed", "package_name": "snowplow_unified", "path": "snowplow_unified_dim_geo_country_mapping.csv", "original_file_path": "seeds/snowplow_unified_dim_geo_country_mapping.csv", "unique_id": "seed.snowplow_unified.snowplow_unified_dim_geo_country_mapping", "fqn": ["snowplow_unified", "snowplow_unified_dim_geo_country_mapping"], "alias": "snowplow_unified_dim_geo_country_mapping", "checksum": {"name": "sha256", "checksum": "762ac9ad7cd75083200d54b7612ded658c434d06bb73c58325c6c40b7acd58db"}, "config": {"enabled": true, "alias": null, "schema": "snowplow_manifest", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "A mapping from geo_country alpha-2 ISO 3166-2 codes to the other properties of the country.", "columns": {"name": {"name": "name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "alpha_2": {"name": "alpha_2", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "alpha_3": {"name": "alpha_3", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "iso_3166_2": {"name": "iso_3166_2", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region": {"name": "region", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sub_region": {"name": "sub_region", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "intermediate_region": {"name": "intermediate_region", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_code": {"name": "region_code", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sub_region_code": {"name": "sub_region_code", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "intermediate_region_code": {"name": "intermediate_region_code", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://seeds/seeds.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snowplow_manifest", "quote_columns": false}, "created_at": 1706612344.404677, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_dim_geo_country_mapping", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests/dbt_packages/snowplow_unified", "depends_on": {"macros": []}}, "seed.snowplow_unified.snowplow_unified_dim_rfc_5646_language_mapping": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snowplow_manifest", "name": "snowplow_unified_dim_rfc_5646_language_mapping", "resource_type": "seed", "package_name": "snowplow_unified", "path": "snowplow_unified_dim_rfc_5646_language_mapping.csv", "original_file_path": "seeds/snowplow_unified_dim_rfc_5646_language_mapping.csv", "unique_id": "seed.snowplow_unified.snowplow_unified_dim_rfc_5646_language_mapping", "fqn": ["snowplow_unified", "snowplow_unified_dim_rfc_5646_language_mapping"], "alias": "snowplow_unified_dim_rfc_5646_language_mapping", "checksum": {"name": "sha256", "checksum": "67873752fcbfd8f7c5539e6c27eee69da446270f6758e3fa6f4630c4f52afaab"}, "config": {"enabled": true, "alias": null, "schema": "snowplow_manifest", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "A mapping between the RFC 5646 language code to the full name of the language.", "columns": {"lang_tag": {"name": "lang_tag", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://seeds/seeds.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snowplow_manifest", "quote_columns": false}, "created_at": 1706612344.4058692, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_dim_rfc_5646_language_mapping", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests/dbt_packages/snowplow_unified", "depends_on": {"macros": []}}, "seed.snowplow_unified.snowplow_unified_dim_ga4_source_categories": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snowplow_manifest", "name": "snowplow_unified_dim_ga4_source_categories", "resource_type": "seed", "package_name": "snowplow_unified", "path": "snowplow_unified_dim_ga4_source_categories.csv", "original_file_path": "seeds/snowplow_unified_dim_ga4_source_categories.csv", "unique_id": "seed.snowplow_unified.snowplow_unified_dim_ga4_source_categories", "fqn": ["snowplow_unified", "snowplow_unified_dim_ga4_source_categories"], "alias": "snowplow_unified_dim_ga4_source_categories", "checksum": {"name": "sha256", "checksum": "666a7476b86698c1b76584e32c7bdb6958aa019812c43b6b1ffa9aeca7759903"}, "config": {"enabled": true, "alias": null, "schema": "snowplow_manifest", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "A list of all source (websites) and their corresponding GA4 category.", "columns": {"source": {"name": "source", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_category": {"name": "source_category", "description": "", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://seeds/seeds.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snowplow_manifest", "quote_columns": false}, "created_at": 1706612344.4001431, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_dim_ga4_source_categories", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests/dbt_packages/snowplow_unified", "depends_on": {"macros": []}}, "operation.snowplow_unified.snowplow_unified-on-run-start-0": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6", "name": "snowplow_unified-on-run-start-0", "resource_type": "operation", "package_name": "snowplow_unified", "path": "hooks/snowplow_unified-on-run-start-0.sql", "original_file_path": "./dbt_project.yml", "unique_id": "operation.snowplow_unified.snowplow_unified-on-run-start-0", "fqn": ["snowplow_unified", "hooks", "snowplow_unified-on-run-start-0"], "alias": "snowplow_unified-on-run-start-0", "checksum": {"name": "sha256", "checksum": "f514ece412f4935293651319dddff68c9fcf883d1947c1e0f49645000461b45a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "post-hook": [], "pre-hook": []}, "tags": ["on-run-start"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false}, "created_at": 1706612343.217386, "relation_name": null, "raw_code": "{{ snowplow_utils.snowplow_delete_from_manifest(var('models_to_remove',[])) }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.snowplow_delete_from_manifest"], "nodes": []}, "compiled_path": null, "compiled": true, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "index": 0}, "operation.snowplow_unified.snowplow_unified-on-run-start-1": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6", "name": "snowplow_unified-on-run-start-1", "resource_type": "operation", "package_name": "snowplow_unified", "path": "hooks/snowplow_unified-on-run-start-1.sql", "original_file_path": "./dbt_project.yml", "unique_id": "operation.snowplow_unified.snowplow_unified-on-run-start-1", "fqn": ["snowplow_unified", "hooks", "snowplow_unified-on-run-start-1"], "alias": "snowplow_unified-on-run-start-1", "checksum": {"name": "sha256", "checksum": "f514ece412f4935293651319dddff68c9fcf883d1947c1e0f49645000461b45a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "post-hook": [], "pre-hook": []}, "tags": ["on-run-start"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false}, "created_at": 1706612343.2347705, "relation_name": null, "raw_code": "{{ snowplow_unified.config_check() }}", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_unified.config_check"], "nodes": []}, "compiled_path": "target/compiled/snowplow_unified/./dbt_project.yml/hooks/snowplow_unified-on-run-start-1.sql", "compiled": true, "compiled_code": "\n\n \n\n \n\n \n \n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "index": 1}, "operation.snowplow_unified.snowplow_unified-on-run-end-0": {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6", "name": "snowplow_unified-on-run-end-0", "resource_type": "operation", "package_name": "snowplow_unified", "path": "hooks/snowplow_unified-on-run-end-0.sql", "original_file_path": "./dbt_project.yml", "unique_id": "operation.snowplow_unified.snowplow_unified-on-run-end-0", "fqn": ["snowplow_unified", "hooks", "snowplow_unified-on-run-end-0"], "alias": "snowplow_unified-on-run-end-0", "checksum": {"name": "sha256", "checksum": "f514ece412f4935293651319dddff68c9fcf883d1947c1e0f49645000461b45a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "post-hook": [], "pre-hook": []}, "tags": ["on-run-end"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false}, "created_at": 1706612343.2530346, "relation_name": null, "raw_code": "{{ snowplow_utils.snowplow_incremental_post_hook(package_name='snowplow_unified', incremental_manifest_table_name='snowplow_unified_incremental_manifest', base_events_this_run_table_name='snowplow_unified_base_events_this_run', session_timestamp=var('snowplow__session_timestamp')) }}", "language": "sql", "refs": [{"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}, {"name": "snowplow_unified_base_events_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.snowplow_incremental_post_hook"], "nodes": ["model.snowplow_unified.snowplow_unified_incremental_manifest", "model.snowplow_unified.snowplow_unified_base_events_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/./dbt_project.yml/hooks/snowplow_unified-on-run-end-0.sql", "compiled": true, "compiled_code": "\n\n \n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "index": 0}, "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_.541911e8f1": {"test_metadata": {"name": "equal_rowcount", "kwargs": {"compare_model": "ref('snowplow_unified_base_quarantined_sessions_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_base_quarantined_sessions_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equal_rowcount_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equal_rowcount_snowp_decb5d2f473fb31542307c1a2b78cda7.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_.541911e8f1", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equal_rowcount_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_"], "alias": "dbt_utils_equal_rowcount_snowp_decb5d2f473fb31542307c1a2b78cda7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equal_rowcount_snowp_decb5d2f473fb31542307c1a2b78cda7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "sum(coalesce(diff_count, 0))", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"fail_calc": "sum(coalesce(diff_count, 0))", "alias": "dbt_utils_equal_rowcount_snowp_decb5d2f473fb31542307c1a2b78cda7"}, "created_at": 1706612343.4483972, "relation_name": null, "raw_code": "{{ dbt_utils.test_equal_rowcount(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equal_rowcount_snowp_decb5d2f473fb31542307c1a2b78cda7\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_base_quarantined_sessions_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_base_quarantined_sessions_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_equal_rowcount", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equal_rowcount_snowp_decb5d2f473fb31542307c1a2b78cda7.sql", "compiled": true, "compiled_code": "\n\n\n\n\nwith a as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_base_quarantined_sessions_actual\n group by id_dbtutils_test_equal_rowcount\n\n\n),\nb as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_base_quarantined_sessions_expected_stg\n group by id_dbtutils_test_equal_rowcount\n\n),\nfinal as (\n\n select\n \n a.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_a,\n b.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_b,\n \n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n \n\n\n)\n\nselect * from final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_base_quarantined_sessions_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_.b675df62df": {"test_metadata": {"name": "equality", "kwargs": {"compare_model": "ref('snowplow_unified_base_quarantined_sessions_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_base_quarantined_sessions_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equality_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equality_snowplow_un_3c0ba04ae98717a8e0efa0a2414c70cd.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_.b675df62df", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equality_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_"], "alias": "dbt_utils_equality_snowplow_un_3c0ba04ae98717a8e0efa0a2414c70cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equality_snowplow_un_3c0ba04ae98717a8e0efa0a2414c70cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_equality_snowplow_un_3c0ba04ae98717a8e0efa0a2414c70cd"}, "created_at": 1706612343.4663234, "relation_name": null, "raw_code": "{{ dbt_utils.test_equality(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equality_snowplow_un_3c0ba04ae98717a8e0efa0a2414c70cd\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_base_quarantined_sessions_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_base_quarantined_sessions_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_unified_integration_tests.test_equality", "macro.dbt.get_where_subquery", "macro.dbt_utils.test_equality"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equality_snowplow_un_3c0ba04ae98717a8e0efa0a2414c70cd.sql", "compiled": true, "compiled_code": "\n\n\n\n-- setup\n\n\n\n\n\n\nwith a as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_base_quarantined_sessions_actual\n\n),\n\nb as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_base_quarantined_sessions_expected_stg\n\n),\n\na_minus_b as (\n\n select \"SESSION_IDENTIFIER\" from a\n \n\n except\n\n\n select \"SESSION_IDENTIFIER\" from b\n\n),\n\nb_minus_a as (\n\n select \"SESSION_IDENTIFIER\" from b\n \n\n except\n\n\n select \"SESSION_IDENTIFIER\" from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_base_quarantined_sessions_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_.bcfd303281": {"test_metadata": {"name": "equal_rowcount", "kwargs": {"compare_model": "ref('snowplow_unified_views_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_views_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equal_rowcount_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equal_rowcount_snowp_624280e09cddbb7a25de385faf067a9e.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_.bcfd303281", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equal_rowcount_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_"], "alias": "dbt_utils_equal_rowcount_snowp_624280e09cddbb7a25de385faf067a9e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equal_rowcount_snowp_624280e09cddbb7a25de385faf067a9e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "sum(coalesce(diff_count, 0))", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"fail_calc": "sum(coalesce(diff_count, 0))", "alias": "dbt_utils_equal_rowcount_snowp_624280e09cddbb7a25de385faf067a9e"}, "created_at": 1706612343.4719121, "relation_name": null, "raw_code": "{{ dbt_utils.test_equal_rowcount(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equal_rowcount_snowp_624280e09cddbb7a25de385faf067a9e\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_views_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_equal_rowcount", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_views_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_views_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equal_rowcount_snowp_624280e09cddbb7a25de385faf067a9e.sql", "compiled": true, "compiled_code": "\n\n\n\n\nwith a as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_views_actual\n group by id_dbtutils_test_equal_rowcount\n\n\n),\nb as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_views_expected_stg\n group by id_dbtutils_test_equal_rowcount\n\n),\nfinal as (\n\n select\n \n a.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_a,\n b.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_b,\n \n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n \n\n\n)\n\nselect * from final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_views_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_views_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_.13f329e6b4": {"test_metadata": {"name": "equality", "kwargs": {"compare_model": "ref('snowplow_unified_views_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_views_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equality_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equality_snowplow_un_e0a77ae4afcddd8a03169c0fb80c82c5.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_.13f329e6b4", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equality_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_"], "alias": "dbt_utils_equality_snowplow_un_e0a77ae4afcddd8a03169c0fb80c82c5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equality_snowplow_un_e0a77ae4afcddd8a03169c0fb80c82c5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_equality_snowplow_un_e0a77ae4afcddd8a03169c0fb80c82c5"}, "created_at": 1706612343.4789588, "relation_name": null, "raw_code": "{{ dbt_utils.test_equality(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equality_snowplow_un_e0a77ae4afcddd8a03169c0fb80c82c5\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_views_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_unified_integration_tests.test_equality", "macro.dbt.get_where_subquery", "macro.dbt_utils.test_equality"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_views_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_views_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equality_snowplow_un_e0a77ae4afcddd8a03169c0fb80c82c5.sql", "compiled": true, "compiled_code": "\n\n\n\n-- setup\n\n\n\n\n\n\nwith a as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_views_actual\n\n),\n\nb as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_views_expected_stg\n\n),\n\na_minus_b as (\n\n select \"APP_ID\", \"DVCE_CREATED_TSTAMP\", \"DERIVED_TSTAMP\", \"START_TSTAMP\", \"END_TSTAMP\", \"VIEW_ID\", \"EVENT_NAME\", \"EVENT_ID\", \"SESSION_IDENTIFIER\", \"VIEW_IN_SESSION_INDEX\", \"VIEWS_IN_SESSION\", \"SESSION__PREVIOUS_SESSION_ID\", \"USER_ID\", \"USER_IDENTIFIER\", \"STITCHED_USER_ID\", \"NETWORK_USERID\", \"COLLECTOR_TSTAMP\", \"PLATFORM\", \"DEVICE_IDENTIFIER\", \"DEVICE_CATEGORY\", \"DEVICE_SESSION_INDEX\", \"OS_VERSION\", \"OS_TYPE\", \"MOBILE__DEVICE_MANUFACTURER\", \"MOBILE__DEVICE_MODEL\", \"MOBILE__OS_TYPE\", \"MOBILE__OS_VERSION\", \"MOBILE__ANDROID_IDFA\", \"MOBILE__APPLE_IDFA\", \"MOBILE__APPLE_IDFV\", \"MOBILE__CARRIER\", \"MOBILE__OPEN_IDFA\", \"MOBILE__NETWORK_TECHNOLOGY\", \"MOBILE__NETWORK_TYPE\", \"MOBILE__PHYSICAL_MEMORY\", \"MOBILE__SYSTEM_AVAILABLE_MEMORY\", \"MOBILE__APP_AVAILABLE_MEMORY\", \"MOBILE__BATTERY_LEVEL\", \"MOBILE__BATTERY_STATE\", \"MOBILE__LOW_POWER_MODE\", \"MOBILE__AVAILABLE_STORAGE\", \"MOBILE__TOTAL_STORAGE\", \"MOBILE__IS_PORTRAIT\", \"MOBILE__RESOLUTION\", \"MOBILE__SCALE\", \"MOBILE__LANGUAGE\", \"MOBILE__APP_SET_ID\", \"MOBILE__APP_SET_ID_SCOPE\", \"OS_TIMEZONE\", \"SCREEN_RESOLUTION\", \"YAUAA__DEVICE_CLASS\", \"YAUAA__DEVICE_VERSION\", \"YAUAA__OPERATING_SYSTEM_VERSION\", \"YAUAA__OPERATING_SYSTEM_CLASS\", \"YAUAA__OPERATING_SYSTEM_NAME\", \"YAUAA__OPERATING_SYSTEM_NAME_VERSION\", \"GEO_COUNTRY\", \"GEO_REGION\", \"GEO_REGION_NAME\", \"GEO_CITY\", \"GEO_ZIPCODE\", \"GEO_LATITUDE\", \"GEO_LONGITUDE\", \"GEO_TIMEZONE\", \"USER_IPADDRESS\", \"ENGAGED_TIME_IN_S\", \"ABSOLUTE_TIME_IN_S\", \"HORIZONTAL_PIXELS_SCROLLED\", \"VERTICAL_PIXELS_SCROLLED\", \"HORIZONTAL_PERCENTAGE_SCROLLED\", \"VERTICAL_PERCENTAGE_SCROLLED\", \"MKT_MEDIUM\", \"MKT_SOURCE\", \"MKT_TERM\", \"MKT_CONTENT\", \"MKT_CAMPAIGN\", \"MKT_CLICKID\", \"MKT_NETWORK\", \"DEFAULT_CHANNEL_GROUP\", \"PAGE_URL\", \"PAGE_REFERRER\", \"REFR_MEDIUM\", \"REFR_SOURCE\", \"REFR_TERM\", \"PAGE_TITLE\", \"CONTENT_GROUP\", \"PAGE_URLSCHEME\", \"PAGE_URLHOST\", \"PAGE_URLPATH\", \"PAGE_URLQUERY\", \"PAGE_URLFRAGMENT\", \"REFR_URLSCHEME\", \"REFR_URLHOST\", \"REFR_URLPATH\", \"REFR_URLQUERY\", \"REFR_URLFRAGMENT\", \"BR_LANG\", \"BR_VIEWWIDTH\", \"BR_VIEWHEIGHT\", \"BR_COLORDEPTH\", \"BR_RENDERENGINE\", \"DOC_WIDTH\", \"DOC_HEIGHT\", \"IAB__CATEGORY\", \"IAB__PRIMARY_IMPACT\", \"IAB__REASON\", \"IAB__SPIDER_OR_ROBOT\", \"YAUAA__DEVICE_NAME\", \"YAUAA__AGENT_CLASS\", \"YAUAA__AGENT_NAME\", \"YAUAA__AGENT_NAME_VERSION\", \"YAUAA__AGENT_NAME_VERSION_MAJOR\", \"YAUAA__AGENT_VERSION\", \"YAUAA__AGENT_VERSION_MAJOR\", \"YAUAA__LAYOUT_ENGINE_CLASS\", \"YAUAA__LAYOUT_ENGINE_NAME\", \"YAUAA__LAYOUT_ENGINE_NAME_VERSION\", \"YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR\", \"YAUAA__LAYOUT_ENGINE_VERSION\", \"YAUAA__LAYOUT_ENGINE_VERSION_MAJOR\", \"UA__DEVICE_FAMILY\", \"UA__OS_VERSION\", \"UA__OS_MAJOR\", \"UA__OS_MINOR\", \"UA__OS_PATCH\", \"UA__OS_PATCH_MINOR\", \"UA__USERAGENT_FAMILY\", \"UA__USERAGENT_MAJOR\", \"UA__USERAGENT_MINOR\", \"UA__USERAGENT_PATCH\", \"UA__USERAGENT_VERSION\", \"SCREEN_VIEW__NAME\", \"SCREEN_VIEW__PREVIOUS_ID\", \"SCREEN_VIEW__PREVIOUS_NAME\", \"SCREEN_VIEW__PREVIOUS_TYPE\", \"SCREEN_VIEW__TRANSITION_TYPE\", \"SCREEN_VIEW__TYPE\", \"APP__BUILD\", \"APP__VERSION\", \"GEO__ALTITUDE\", \"GEO__ALTITUDE_ACCURACY\", \"GEO__BEARING\", \"GEO__LATITUDE\", \"GEO__LATITUDE_LONGITUDE_ACCURACY\", \"GEO__LONGITUDE\", \"GEO__SPEED\", \"SCREEN__FRAGMENT\", \"SCREEN__TOP_VIEW_CONTROLLER\", \"SCREEN__VIEW_CONTROLLER\", \"USERAGENT\", \"V_COLLECTOR\", \"EVENT_ID2\" from a\n \n\n except\n\n\n select \"APP_ID\", \"DVCE_CREATED_TSTAMP\", \"DERIVED_TSTAMP\", \"START_TSTAMP\", \"END_TSTAMP\", \"VIEW_ID\", \"EVENT_NAME\", \"EVENT_ID\", \"SESSION_IDENTIFIER\", \"VIEW_IN_SESSION_INDEX\", \"VIEWS_IN_SESSION\", \"SESSION__PREVIOUS_SESSION_ID\", \"USER_ID\", \"USER_IDENTIFIER\", \"STITCHED_USER_ID\", \"NETWORK_USERID\", \"COLLECTOR_TSTAMP\", \"PLATFORM\", \"DEVICE_IDENTIFIER\", \"DEVICE_CATEGORY\", \"DEVICE_SESSION_INDEX\", \"OS_VERSION\", \"OS_TYPE\", \"MOBILE__DEVICE_MANUFACTURER\", \"MOBILE__DEVICE_MODEL\", \"MOBILE__OS_TYPE\", \"MOBILE__OS_VERSION\", \"MOBILE__ANDROID_IDFA\", \"MOBILE__APPLE_IDFA\", \"MOBILE__APPLE_IDFV\", \"MOBILE__CARRIER\", \"MOBILE__OPEN_IDFA\", \"MOBILE__NETWORK_TECHNOLOGY\", \"MOBILE__NETWORK_TYPE\", \"MOBILE__PHYSICAL_MEMORY\", \"MOBILE__SYSTEM_AVAILABLE_MEMORY\", \"MOBILE__APP_AVAILABLE_MEMORY\", \"MOBILE__BATTERY_LEVEL\", \"MOBILE__BATTERY_STATE\", \"MOBILE__LOW_POWER_MODE\", \"MOBILE__AVAILABLE_STORAGE\", \"MOBILE__TOTAL_STORAGE\", \"MOBILE__IS_PORTRAIT\", \"MOBILE__RESOLUTION\", \"MOBILE__SCALE\", \"MOBILE__LANGUAGE\", \"MOBILE__APP_SET_ID\", \"MOBILE__APP_SET_ID_SCOPE\", \"OS_TIMEZONE\", \"SCREEN_RESOLUTION\", \"YAUAA__DEVICE_CLASS\", \"YAUAA__DEVICE_VERSION\", \"YAUAA__OPERATING_SYSTEM_VERSION\", \"YAUAA__OPERATING_SYSTEM_CLASS\", \"YAUAA__OPERATING_SYSTEM_NAME\", \"YAUAA__OPERATING_SYSTEM_NAME_VERSION\", \"GEO_COUNTRY\", \"GEO_REGION\", \"GEO_REGION_NAME\", \"GEO_CITY\", \"GEO_ZIPCODE\", \"GEO_LATITUDE\", \"GEO_LONGITUDE\", \"GEO_TIMEZONE\", \"USER_IPADDRESS\", \"ENGAGED_TIME_IN_S\", \"ABSOLUTE_TIME_IN_S\", \"HORIZONTAL_PIXELS_SCROLLED\", \"VERTICAL_PIXELS_SCROLLED\", \"HORIZONTAL_PERCENTAGE_SCROLLED\", \"VERTICAL_PERCENTAGE_SCROLLED\", \"MKT_MEDIUM\", \"MKT_SOURCE\", \"MKT_TERM\", \"MKT_CONTENT\", \"MKT_CAMPAIGN\", \"MKT_CLICKID\", \"MKT_NETWORK\", \"DEFAULT_CHANNEL_GROUP\", \"PAGE_URL\", \"PAGE_REFERRER\", \"REFR_MEDIUM\", \"REFR_SOURCE\", \"REFR_TERM\", \"PAGE_TITLE\", \"CONTENT_GROUP\", \"PAGE_URLSCHEME\", \"PAGE_URLHOST\", \"PAGE_URLPATH\", \"PAGE_URLQUERY\", \"PAGE_URLFRAGMENT\", \"REFR_URLSCHEME\", \"REFR_URLHOST\", \"REFR_URLPATH\", \"REFR_URLQUERY\", \"REFR_URLFRAGMENT\", \"BR_LANG\", \"BR_VIEWWIDTH\", \"BR_VIEWHEIGHT\", \"BR_COLORDEPTH\", \"BR_RENDERENGINE\", \"DOC_WIDTH\", \"DOC_HEIGHT\", \"IAB__CATEGORY\", \"IAB__PRIMARY_IMPACT\", \"IAB__REASON\", \"IAB__SPIDER_OR_ROBOT\", \"YAUAA__DEVICE_NAME\", \"YAUAA__AGENT_CLASS\", \"YAUAA__AGENT_NAME\", \"YAUAA__AGENT_NAME_VERSION\", \"YAUAA__AGENT_NAME_VERSION_MAJOR\", \"YAUAA__AGENT_VERSION\", \"YAUAA__AGENT_VERSION_MAJOR\", \"YAUAA__LAYOUT_ENGINE_CLASS\", \"YAUAA__LAYOUT_ENGINE_NAME\", \"YAUAA__LAYOUT_ENGINE_NAME_VERSION\", \"YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR\", \"YAUAA__LAYOUT_ENGINE_VERSION\", \"YAUAA__LAYOUT_ENGINE_VERSION_MAJOR\", \"UA__DEVICE_FAMILY\", \"UA__OS_VERSION\", \"UA__OS_MAJOR\", \"UA__OS_MINOR\", \"UA__OS_PATCH\", \"UA__OS_PATCH_MINOR\", \"UA__USERAGENT_FAMILY\", \"UA__USERAGENT_MAJOR\", \"UA__USERAGENT_MINOR\", \"UA__USERAGENT_PATCH\", \"UA__USERAGENT_VERSION\", \"SCREEN_VIEW__NAME\", \"SCREEN_VIEW__PREVIOUS_ID\", \"SCREEN_VIEW__PREVIOUS_NAME\", \"SCREEN_VIEW__PREVIOUS_TYPE\", \"SCREEN_VIEW__TRANSITION_TYPE\", \"SCREEN_VIEW__TYPE\", \"APP__BUILD\", \"APP__VERSION\", \"GEO__ALTITUDE\", \"GEO__ALTITUDE_ACCURACY\", \"GEO__BEARING\", \"GEO__LATITUDE\", \"GEO__LATITUDE_LONGITUDE_ACCURACY\", \"GEO__LONGITUDE\", \"GEO__SPEED\", \"SCREEN__FRAGMENT\", \"SCREEN__TOP_VIEW_CONTROLLER\", \"SCREEN__VIEW_CONTROLLER\", \"USERAGENT\", \"V_COLLECTOR\", \"EVENT_ID2\" from b\n\n),\n\nb_minus_a as (\n\n select \"APP_ID\", \"DVCE_CREATED_TSTAMP\", \"DERIVED_TSTAMP\", \"START_TSTAMP\", \"END_TSTAMP\", \"VIEW_ID\", \"EVENT_NAME\", \"EVENT_ID\", \"SESSION_IDENTIFIER\", \"VIEW_IN_SESSION_INDEX\", \"VIEWS_IN_SESSION\", \"SESSION__PREVIOUS_SESSION_ID\", \"USER_ID\", \"USER_IDENTIFIER\", \"STITCHED_USER_ID\", \"NETWORK_USERID\", \"COLLECTOR_TSTAMP\", \"PLATFORM\", \"DEVICE_IDENTIFIER\", \"DEVICE_CATEGORY\", \"DEVICE_SESSION_INDEX\", \"OS_VERSION\", \"OS_TYPE\", \"MOBILE__DEVICE_MANUFACTURER\", \"MOBILE__DEVICE_MODEL\", \"MOBILE__OS_TYPE\", \"MOBILE__OS_VERSION\", \"MOBILE__ANDROID_IDFA\", \"MOBILE__APPLE_IDFA\", \"MOBILE__APPLE_IDFV\", \"MOBILE__CARRIER\", \"MOBILE__OPEN_IDFA\", \"MOBILE__NETWORK_TECHNOLOGY\", \"MOBILE__NETWORK_TYPE\", \"MOBILE__PHYSICAL_MEMORY\", \"MOBILE__SYSTEM_AVAILABLE_MEMORY\", \"MOBILE__APP_AVAILABLE_MEMORY\", \"MOBILE__BATTERY_LEVEL\", \"MOBILE__BATTERY_STATE\", \"MOBILE__LOW_POWER_MODE\", \"MOBILE__AVAILABLE_STORAGE\", \"MOBILE__TOTAL_STORAGE\", \"MOBILE__IS_PORTRAIT\", \"MOBILE__RESOLUTION\", \"MOBILE__SCALE\", \"MOBILE__LANGUAGE\", \"MOBILE__APP_SET_ID\", \"MOBILE__APP_SET_ID_SCOPE\", \"OS_TIMEZONE\", \"SCREEN_RESOLUTION\", \"YAUAA__DEVICE_CLASS\", \"YAUAA__DEVICE_VERSION\", \"YAUAA__OPERATING_SYSTEM_VERSION\", \"YAUAA__OPERATING_SYSTEM_CLASS\", \"YAUAA__OPERATING_SYSTEM_NAME\", \"YAUAA__OPERATING_SYSTEM_NAME_VERSION\", \"GEO_COUNTRY\", \"GEO_REGION\", \"GEO_REGION_NAME\", \"GEO_CITY\", \"GEO_ZIPCODE\", \"GEO_LATITUDE\", \"GEO_LONGITUDE\", \"GEO_TIMEZONE\", \"USER_IPADDRESS\", \"ENGAGED_TIME_IN_S\", \"ABSOLUTE_TIME_IN_S\", \"HORIZONTAL_PIXELS_SCROLLED\", \"VERTICAL_PIXELS_SCROLLED\", \"HORIZONTAL_PERCENTAGE_SCROLLED\", \"VERTICAL_PERCENTAGE_SCROLLED\", \"MKT_MEDIUM\", \"MKT_SOURCE\", \"MKT_TERM\", \"MKT_CONTENT\", \"MKT_CAMPAIGN\", \"MKT_CLICKID\", \"MKT_NETWORK\", \"DEFAULT_CHANNEL_GROUP\", \"PAGE_URL\", \"PAGE_REFERRER\", \"REFR_MEDIUM\", \"REFR_SOURCE\", \"REFR_TERM\", \"PAGE_TITLE\", \"CONTENT_GROUP\", \"PAGE_URLSCHEME\", \"PAGE_URLHOST\", \"PAGE_URLPATH\", \"PAGE_URLQUERY\", \"PAGE_URLFRAGMENT\", \"REFR_URLSCHEME\", \"REFR_URLHOST\", \"REFR_URLPATH\", \"REFR_URLQUERY\", \"REFR_URLFRAGMENT\", \"BR_LANG\", \"BR_VIEWWIDTH\", \"BR_VIEWHEIGHT\", \"BR_COLORDEPTH\", \"BR_RENDERENGINE\", \"DOC_WIDTH\", \"DOC_HEIGHT\", \"IAB__CATEGORY\", \"IAB__PRIMARY_IMPACT\", \"IAB__REASON\", \"IAB__SPIDER_OR_ROBOT\", \"YAUAA__DEVICE_NAME\", \"YAUAA__AGENT_CLASS\", \"YAUAA__AGENT_NAME\", \"YAUAA__AGENT_NAME_VERSION\", \"YAUAA__AGENT_NAME_VERSION_MAJOR\", \"YAUAA__AGENT_VERSION\", \"YAUAA__AGENT_VERSION_MAJOR\", \"YAUAA__LAYOUT_ENGINE_CLASS\", \"YAUAA__LAYOUT_ENGINE_NAME\", \"YAUAA__LAYOUT_ENGINE_NAME_VERSION\", \"YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR\", \"YAUAA__LAYOUT_ENGINE_VERSION\", \"YAUAA__LAYOUT_ENGINE_VERSION_MAJOR\", \"UA__DEVICE_FAMILY\", \"UA__OS_VERSION\", \"UA__OS_MAJOR\", \"UA__OS_MINOR\", \"UA__OS_PATCH\", \"UA__OS_PATCH_MINOR\", \"UA__USERAGENT_FAMILY\", \"UA__USERAGENT_MAJOR\", \"UA__USERAGENT_MINOR\", \"UA__USERAGENT_PATCH\", \"UA__USERAGENT_VERSION\", \"SCREEN_VIEW__NAME\", \"SCREEN_VIEW__PREVIOUS_ID\", \"SCREEN_VIEW__PREVIOUS_NAME\", \"SCREEN_VIEW__PREVIOUS_TYPE\", \"SCREEN_VIEW__TRANSITION_TYPE\", \"SCREEN_VIEW__TYPE\", \"APP__BUILD\", \"APP__VERSION\", \"GEO__ALTITUDE\", \"GEO__ALTITUDE_ACCURACY\", \"GEO__BEARING\", \"GEO__LATITUDE\", \"GEO__LATITUDE_LONGITUDE_ACCURACY\", \"GEO__LONGITUDE\", \"GEO__SPEED\", \"SCREEN__FRAGMENT\", \"SCREEN__TOP_VIEW_CONTROLLER\", \"SCREEN__VIEW_CONTROLLER\", \"USERAGENT\", \"V_COLLECTOR\", \"EVENT_ID2\" from b\n \n\n except\n\n\n select \"APP_ID\", \"DVCE_CREATED_TSTAMP\", \"DERIVED_TSTAMP\", \"START_TSTAMP\", \"END_TSTAMP\", \"VIEW_ID\", \"EVENT_NAME\", \"EVENT_ID\", \"SESSION_IDENTIFIER\", \"VIEW_IN_SESSION_INDEX\", \"VIEWS_IN_SESSION\", \"SESSION__PREVIOUS_SESSION_ID\", \"USER_ID\", \"USER_IDENTIFIER\", \"STITCHED_USER_ID\", \"NETWORK_USERID\", \"COLLECTOR_TSTAMP\", \"PLATFORM\", \"DEVICE_IDENTIFIER\", \"DEVICE_CATEGORY\", \"DEVICE_SESSION_INDEX\", \"OS_VERSION\", \"OS_TYPE\", \"MOBILE__DEVICE_MANUFACTURER\", \"MOBILE__DEVICE_MODEL\", \"MOBILE__OS_TYPE\", \"MOBILE__OS_VERSION\", \"MOBILE__ANDROID_IDFA\", \"MOBILE__APPLE_IDFA\", \"MOBILE__APPLE_IDFV\", \"MOBILE__CARRIER\", \"MOBILE__OPEN_IDFA\", \"MOBILE__NETWORK_TECHNOLOGY\", \"MOBILE__NETWORK_TYPE\", \"MOBILE__PHYSICAL_MEMORY\", \"MOBILE__SYSTEM_AVAILABLE_MEMORY\", \"MOBILE__APP_AVAILABLE_MEMORY\", \"MOBILE__BATTERY_LEVEL\", \"MOBILE__BATTERY_STATE\", \"MOBILE__LOW_POWER_MODE\", \"MOBILE__AVAILABLE_STORAGE\", \"MOBILE__TOTAL_STORAGE\", \"MOBILE__IS_PORTRAIT\", \"MOBILE__RESOLUTION\", \"MOBILE__SCALE\", \"MOBILE__LANGUAGE\", \"MOBILE__APP_SET_ID\", \"MOBILE__APP_SET_ID_SCOPE\", \"OS_TIMEZONE\", \"SCREEN_RESOLUTION\", \"YAUAA__DEVICE_CLASS\", \"YAUAA__DEVICE_VERSION\", \"YAUAA__OPERATING_SYSTEM_VERSION\", \"YAUAA__OPERATING_SYSTEM_CLASS\", \"YAUAA__OPERATING_SYSTEM_NAME\", \"YAUAA__OPERATING_SYSTEM_NAME_VERSION\", \"GEO_COUNTRY\", \"GEO_REGION\", \"GEO_REGION_NAME\", \"GEO_CITY\", \"GEO_ZIPCODE\", \"GEO_LATITUDE\", \"GEO_LONGITUDE\", \"GEO_TIMEZONE\", \"USER_IPADDRESS\", \"ENGAGED_TIME_IN_S\", \"ABSOLUTE_TIME_IN_S\", \"HORIZONTAL_PIXELS_SCROLLED\", \"VERTICAL_PIXELS_SCROLLED\", \"HORIZONTAL_PERCENTAGE_SCROLLED\", \"VERTICAL_PERCENTAGE_SCROLLED\", \"MKT_MEDIUM\", \"MKT_SOURCE\", \"MKT_TERM\", \"MKT_CONTENT\", \"MKT_CAMPAIGN\", \"MKT_CLICKID\", \"MKT_NETWORK\", \"DEFAULT_CHANNEL_GROUP\", \"PAGE_URL\", \"PAGE_REFERRER\", \"REFR_MEDIUM\", \"REFR_SOURCE\", \"REFR_TERM\", \"PAGE_TITLE\", \"CONTENT_GROUP\", \"PAGE_URLSCHEME\", \"PAGE_URLHOST\", \"PAGE_URLPATH\", \"PAGE_URLQUERY\", \"PAGE_URLFRAGMENT\", \"REFR_URLSCHEME\", \"REFR_URLHOST\", \"REFR_URLPATH\", \"REFR_URLQUERY\", \"REFR_URLFRAGMENT\", \"BR_LANG\", \"BR_VIEWWIDTH\", \"BR_VIEWHEIGHT\", \"BR_COLORDEPTH\", \"BR_RENDERENGINE\", \"DOC_WIDTH\", \"DOC_HEIGHT\", \"IAB__CATEGORY\", \"IAB__PRIMARY_IMPACT\", \"IAB__REASON\", \"IAB__SPIDER_OR_ROBOT\", \"YAUAA__DEVICE_NAME\", \"YAUAA__AGENT_CLASS\", \"YAUAA__AGENT_NAME\", \"YAUAA__AGENT_NAME_VERSION\", \"YAUAA__AGENT_NAME_VERSION_MAJOR\", \"YAUAA__AGENT_VERSION\", \"YAUAA__AGENT_VERSION_MAJOR\", \"YAUAA__LAYOUT_ENGINE_CLASS\", \"YAUAA__LAYOUT_ENGINE_NAME\", \"YAUAA__LAYOUT_ENGINE_NAME_VERSION\", \"YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR\", \"YAUAA__LAYOUT_ENGINE_VERSION\", \"YAUAA__LAYOUT_ENGINE_VERSION_MAJOR\", \"UA__DEVICE_FAMILY\", \"UA__OS_VERSION\", \"UA__OS_MAJOR\", \"UA__OS_MINOR\", \"UA__OS_PATCH\", \"UA__OS_PATCH_MINOR\", \"UA__USERAGENT_FAMILY\", \"UA__USERAGENT_MAJOR\", \"UA__USERAGENT_MINOR\", \"UA__USERAGENT_PATCH\", \"UA__USERAGENT_VERSION\", \"SCREEN_VIEW__NAME\", \"SCREEN_VIEW__PREVIOUS_ID\", \"SCREEN_VIEW__PREVIOUS_NAME\", \"SCREEN_VIEW__PREVIOUS_TYPE\", \"SCREEN_VIEW__TRANSITION_TYPE\", \"SCREEN_VIEW__TYPE\", \"APP__BUILD\", \"APP__VERSION\", \"GEO__ALTITUDE\", \"GEO__ALTITUDE_ACCURACY\", \"GEO__BEARING\", \"GEO__LATITUDE\", \"GEO__LATITUDE_LONGITUDE_ACCURACY\", \"GEO__LONGITUDE\", \"GEO__SPEED\", \"SCREEN__FRAGMENT\", \"SCREEN__TOP_VIEW_CONTROLLER\", \"SCREEN__VIEW_CONTROLLER\", \"USERAGENT\", \"V_COLLECTOR\", \"EVENT_ID2\" from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_views_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_views_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_.deb9a7689f": {"test_metadata": {"name": "equal_rowcount", "kwargs": {"compare_model": "ref('snowplow_unified_sessions_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equal_rowcount_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equal_rowcount_snowp_b670735745d118a792a7e3bbb705fda9.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_.deb9a7689f", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equal_rowcount_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_"], "alias": "dbt_utils_equal_rowcount_snowp_b670735745d118a792a7e3bbb705fda9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equal_rowcount_snowp_b670735745d118a792a7e3bbb705fda9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "sum(coalesce(diff_count, 0))", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"fail_calc": "sum(coalesce(diff_count, 0))", "alias": "dbt_utils_equal_rowcount_snowp_b670735745d118a792a7e3bbb705fda9"}, "created_at": 1706612343.4842157, "relation_name": null, "raw_code": "{{ dbt_utils.test_equal_rowcount(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equal_rowcount_snowp_b670735745d118a792a7e3bbb705fda9\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_sessions_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_equal_rowcount", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_sessions_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_sessions_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equal_rowcount_snowp_b670735745d118a792a7e3bbb705fda9.sql", "compiled": true, "compiled_code": "\n\n\n\n\nwith a as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_sessions_actual\n group by id_dbtutils_test_equal_rowcount\n\n\n),\nb as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_sessions_expected_stg\n group by id_dbtutils_test_equal_rowcount\n\n),\nfinal as (\n\n select\n \n a.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_a,\n b.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_b,\n \n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n \n\n\n)\n\nselect * from final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_sessions_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_sessions_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_.e1af6ef1db": {"test_metadata": {"name": "equality", "kwargs": {"compare_model": "ref('snowplow_unified_sessions_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equality_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equality_snowplow_un_74d30d2da1c55cedc817b1decd22263b.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_.e1af6ef1db", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equality_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_"], "alias": "dbt_utils_equality_snowplow_un_74d30d2da1c55cedc817b1decd22263b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equality_snowplow_un_74d30d2da1c55cedc817b1decd22263b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_equality_snowplow_un_74d30d2da1c55cedc817b1decd22263b"}, "created_at": 1706612343.4897492, "relation_name": null, "raw_code": "{{ dbt_utils.test_equality(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equality_snowplow_un_74d30d2da1c55cedc817b1decd22263b\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_sessions_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_unified_integration_tests.test_equality", "macro.dbt.get_where_subquery", "macro.dbt_utils.test_equality"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_sessions_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_sessions_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equality_snowplow_un_74d30d2da1c55cedc817b1decd22263b.sql", "compiled": true, "compiled_code": "\n\n\n\n-- setup\n\n\n\n\n\n\nwith a as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_sessions_actual\n\n),\n\nb as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_sessions_expected_stg\n\n),\n\na_minus_b as (\n\n select \"EVENT_COUNTS\", \"CV_VIEW_PAGE_VOLUME\", \"CV_VIEW_PAGE_EVENTS\", \"CV_VIEW_PAGE_VALUES\", \"CV_VIEW_PAGE_TOTAL\", \"CV_VIEW_PAGE_FIRST_CONVERSION\", \"CV_VIEW_PAGE_CONVERTED\", \"CV__ALL_VOLUME\", \"CV__ALL_TOTAL\", \"FIRST_EVENT_NAME\", \"LAST_EVENT_NAME\", \"SESSION_IDENTIFIER\", \"SESSION__PREVIOUS_SESSION_ID\", \"USER_ID\", \"USER_IDENTIFIER\", \"STITCHED_USER_ID\", \"NETWORK_USERID\", \"START_TSTAMP\", \"END_TSTAMP\", \"APP_ID\", \"PLATFORM\", \"DEVICE_IDENTIFIER\", \"DEVICE_CATEGORY\", \"DEVICE_SESSION_INDEX\", \"OS_VERSION\", \"OS_TYPE\", \"OS_TIMEZONE\", \"SCREEN_RESOLUTION\", \"YAUAA__DEVICE_CLASS\", \"YAUAA__DEVICE_VERSION\", \"YAUAA__OPERATING_SYSTEM_VERSION\", \"YAUAA__OPERATING_SYSTEM_CLASS\", \"YAUAA__OPERATING_SYSTEM_NAME\", \"YAUAA__OPERATING_SYSTEM_NAME_VERSION\", \"MOBILE__DEVICE_MANUFACTURER\", \"MOBILE__DEVICE_MODEL\", \"MOBILE__OS_TYPE\", \"MOBILE__OS_VERSION\", \"MOBILE__ANDROID_IDFA\", \"MOBILE__APPLE_IDFA\", \"MOBILE__APPLE_IDFV\", \"MOBILE__CARRIER\", \"MOBILE__OPEN_IDFA\", \"MOBILE__NETWORK_TECHNOLOGY\", \"MOBILE__NETWORK_TYPE\", \"MOBILE__PHYSICAL_MEMORY\", \"MOBILE__SYSTEM_AVAILABLE_MEMORY\", \"MOBILE__APP_AVAILABLE_MEMORY\", \"MOBILE__BATTERY_LEVEL\", \"MOBILE__BATTERY_STATE\", \"MOBILE__LOW_POWER_MODE\", \"MOBILE__AVAILABLE_STORAGE\", \"MOBILE__TOTAL_STORAGE\", \"MOBILE__IS_PORTRAIT\", \"MOBILE__RESOLUTION\", \"MOBILE__SCALE\", \"MOBILE__LANGUAGE\", \"MOBILE__APP_SET_ID\", \"MOBILE__APP_SET_ID_SCOPE\", \"FIRST_GEO_COUNTRY\", \"FIRST_GEO_REGION_NAME\", \"FIRST_GEO_CITY\", \"FIRST_GEO_COUNTRY_NAME\", \"FIRST_GEO_CONTINENT\", \"LAST_GEO_COUNTRY\", \"LAST_GEO_REGION_NAME\", \"LAST_GEO_CITY\", \"LAST_GEO_COUNTRY_NAME\", \"LAST_GEO_CONTINENT\", \"GEO_ZIPCODE\", \"GEO_LATITUDE\", \"GEO_LONGITUDE\", \"GEO_TIMEZONE\", \"USER_IPADDRESS\", \"VIEWS\", \"TOTAL_EVENTS\", \"IS_ENGAGED\", \"ENGAGED_TIME_IN_S\", \"ABSOLUTE_TIME_IN_S\", \"SCREEN_NAMES_VIEWED\", \"MKT_MEDIUM\", \"MKT_SOURCE\", \"MKT_TERM\", \"MKT_CONTENT\", \"MKT_CAMPAIGN\", \"MKT_CLICKID\", \"MKT_NETWORK\", \"DEFAULT_CHANNEL_GROUP\", \"MKT_SOURCE_PLATFORM\", \"FIRST_PAGE_URL\", \"LAST_PAGE_URL\", \"PAGE_REFERRER\", \"REFR_MEDIUM\", \"REFR_SOURCE\", \"REFR_TERM\", \"FIRST_PAGE_TITLE\", \"FIRST_PAGE_URLSCHEME\", \"FIRST_PAGE_URLHOST\", \"FIRST_PAGE_URLPATH\", \"FIRST_PAGE_URLQUERY\", \"FIRST_PAGE_URLFRAGMENT\", \"LAST_PAGE_TITLE\", \"LAST_PAGE_URLSCHEME\", \"LAST_PAGE_URLHOST\", \"LAST_PAGE_URLPATH\", \"LAST_PAGE_URLQUERY\", \"LAST_PAGE_URLFRAGMENT\", \"REFR_URLSCHEME\", \"REFR_URLHOST\", \"REFR_URLPATH\", \"REFR_URLQUERY\", \"REFR_URLFRAGMENT\", \"BR_RENDERENGINE\", \"FIRST_BR_LANG\", \"FIRST_BR_LANG_NAME\", \"LAST_BR_LANG\", \"LAST_BR_LANG_NAME\", \"IAB__CATEGORY\", \"IAB__PRIMARY_IMPACT\", \"IAB__REASON\", \"IAB__SPIDER_OR_ROBOT\", \"YAUAA__DEVICE_NAME\", \"YAUAA__AGENT_CLASS\", \"YAUAA__AGENT_NAME\", \"YAUAA__AGENT_NAME_VERSION\", \"YAUAA__AGENT_NAME_VERSION_MAJOR\", \"YAUAA__AGENT_VERSION\", \"YAUAA__AGENT_VERSION_MAJOR\", \"YAUAA__LAYOUT_ENGINE_CLASS\", \"YAUAA__LAYOUT_ENGINE_NAME\", \"YAUAA__LAYOUT_ENGINE_NAME_VERSION\", \"YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR\", \"YAUAA__LAYOUT_ENGINE_VERSION\", \"YAUAA__LAYOUT_ENGINE_VERSION_MAJOR\", \"UA__DEVICE_FAMILY\", \"UA__OS_VERSION\", \"UA__OS_MAJOR\", \"UA__OS_MINOR\", \"UA__OS_PATCH\", \"UA__OS_PATCH_MINOR\", \"UA__USERAGENT_FAMILY\", \"UA__USERAGENT_MAJOR\", \"UA__USERAGENT_MINOR\", \"UA__USERAGENT_PATCH\", \"UA__USERAGENT_VERSION\", \"FIRST_SCREEN_VIEW__NAME\", \"FIRST_SCREEN_VIEW__TYPE\", \"LAST_SCREEN_VIEW__NAME\", \"LAST_SCREEN_VIEW__TRANSITION_TYPE\", \"LAST_SCREEN_VIEW__TYPE\", \"SCREEN_VIEW__PREVIOUS_ID\", \"SCREEN_VIEW__PREVIOUS_NAME\", \"SCREEN_VIEW__PREVIOUS_TYPE\", \"FIRST_APP__BUILD\", \"FIRST_APP__VERSION\", \"FIRST_GEO__ALTITUDE\", \"FIRST_GEO__ALTITUDE_ACCURACY\", \"FIRST_GEO__BEARING\", \"FIRST_GEO__LATITUDE\", \"FIRST_GEO__LATITUDE_LONGITUDE_ACCURACY\", \"FIRST_GEO__LONGITUDE\", \"FIRST_GEO__SPEED\", \"APP_ERRORS\", \"FATAL_APP_ERRORS\", \"USERAGENT\", \"EVENT_ID\", \"EVENT_ID2\" from a\n \n\n except\n\n\n select \"EVENT_COUNTS\", \"CV_VIEW_PAGE_VOLUME\", \"CV_VIEW_PAGE_EVENTS\", \"CV_VIEW_PAGE_VALUES\", \"CV_VIEW_PAGE_TOTAL\", \"CV_VIEW_PAGE_FIRST_CONVERSION\", \"CV_VIEW_PAGE_CONVERTED\", \"CV__ALL_VOLUME\", \"CV__ALL_TOTAL\", \"FIRST_EVENT_NAME\", \"LAST_EVENT_NAME\", \"SESSION_IDENTIFIER\", \"SESSION__PREVIOUS_SESSION_ID\", \"USER_ID\", \"USER_IDENTIFIER\", \"STITCHED_USER_ID\", \"NETWORK_USERID\", \"START_TSTAMP\", \"END_TSTAMP\", \"APP_ID\", \"PLATFORM\", \"DEVICE_IDENTIFIER\", \"DEVICE_CATEGORY\", \"DEVICE_SESSION_INDEX\", \"OS_VERSION\", \"OS_TYPE\", \"OS_TIMEZONE\", \"SCREEN_RESOLUTION\", \"YAUAA__DEVICE_CLASS\", \"YAUAA__DEVICE_VERSION\", \"YAUAA__OPERATING_SYSTEM_VERSION\", \"YAUAA__OPERATING_SYSTEM_CLASS\", \"YAUAA__OPERATING_SYSTEM_NAME\", \"YAUAA__OPERATING_SYSTEM_NAME_VERSION\", \"MOBILE__DEVICE_MANUFACTURER\", \"MOBILE__DEVICE_MODEL\", \"MOBILE__OS_TYPE\", \"MOBILE__OS_VERSION\", \"MOBILE__ANDROID_IDFA\", \"MOBILE__APPLE_IDFA\", \"MOBILE__APPLE_IDFV\", \"MOBILE__CARRIER\", \"MOBILE__OPEN_IDFA\", \"MOBILE__NETWORK_TECHNOLOGY\", \"MOBILE__NETWORK_TYPE\", \"MOBILE__PHYSICAL_MEMORY\", \"MOBILE__SYSTEM_AVAILABLE_MEMORY\", \"MOBILE__APP_AVAILABLE_MEMORY\", \"MOBILE__BATTERY_LEVEL\", \"MOBILE__BATTERY_STATE\", \"MOBILE__LOW_POWER_MODE\", \"MOBILE__AVAILABLE_STORAGE\", \"MOBILE__TOTAL_STORAGE\", \"MOBILE__IS_PORTRAIT\", \"MOBILE__RESOLUTION\", \"MOBILE__SCALE\", \"MOBILE__LANGUAGE\", \"MOBILE__APP_SET_ID\", \"MOBILE__APP_SET_ID_SCOPE\", \"FIRST_GEO_COUNTRY\", \"FIRST_GEO_REGION_NAME\", \"FIRST_GEO_CITY\", \"FIRST_GEO_COUNTRY_NAME\", \"FIRST_GEO_CONTINENT\", \"LAST_GEO_COUNTRY\", \"LAST_GEO_REGION_NAME\", \"LAST_GEO_CITY\", \"LAST_GEO_COUNTRY_NAME\", \"LAST_GEO_CONTINENT\", \"GEO_ZIPCODE\", \"GEO_LATITUDE\", \"GEO_LONGITUDE\", \"GEO_TIMEZONE\", \"USER_IPADDRESS\", \"VIEWS\", \"TOTAL_EVENTS\", \"IS_ENGAGED\", \"ENGAGED_TIME_IN_S\", \"ABSOLUTE_TIME_IN_S\", \"SCREEN_NAMES_VIEWED\", \"MKT_MEDIUM\", \"MKT_SOURCE\", \"MKT_TERM\", \"MKT_CONTENT\", \"MKT_CAMPAIGN\", \"MKT_CLICKID\", \"MKT_NETWORK\", \"DEFAULT_CHANNEL_GROUP\", \"MKT_SOURCE_PLATFORM\", \"FIRST_PAGE_URL\", \"LAST_PAGE_URL\", \"PAGE_REFERRER\", \"REFR_MEDIUM\", \"REFR_SOURCE\", \"REFR_TERM\", \"FIRST_PAGE_TITLE\", \"FIRST_PAGE_URLSCHEME\", \"FIRST_PAGE_URLHOST\", \"FIRST_PAGE_URLPATH\", \"FIRST_PAGE_URLQUERY\", \"FIRST_PAGE_URLFRAGMENT\", \"LAST_PAGE_TITLE\", \"LAST_PAGE_URLSCHEME\", \"LAST_PAGE_URLHOST\", \"LAST_PAGE_URLPATH\", \"LAST_PAGE_URLQUERY\", \"LAST_PAGE_URLFRAGMENT\", \"REFR_URLSCHEME\", \"REFR_URLHOST\", \"REFR_URLPATH\", \"REFR_URLQUERY\", \"REFR_URLFRAGMENT\", \"BR_RENDERENGINE\", \"FIRST_BR_LANG\", \"FIRST_BR_LANG_NAME\", \"LAST_BR_LANG\", \"LAST_BR_LANG_NAME\", \"IAB__CATEGORY\", \"IAB__PRIMARY_IMPACT\", \"IAB__REASON\", \"IAB__SPIDER_OR_ROBOT\", \"YAUAA__DEVICE_NAME\", \"YAUAA__AGENT_CLASS\", \"YAUAA__AGENT_NAME\", \"YAUAA__AGENT_NAME_VERSION\", \"YAUAA__AGENT_NAME_VERSION_MAJOR\", \"YAUAA__AGENT_VERSION\", \"YAUAA__AGENT_VERSION_MAJOR\", \"YAUAA__LAYOUT_ENGINE_CLASS\", \"YAUAA__LAYOUT_ENGINE_NAME\", \"YAUAA__LAYOUT_ENGINE_NAME_VERSION\", \"YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR\", \"YAUAA__LAYOUT_ENGINE_VERSION\", \"YAUAA__LAYOUT_ENGINE_VERSION_MAJOR\", \"UA__DEVICE_FAMILY\", \"UA__OS_VERSION\", \"UA__OS_MAJOR\", \"UA__OS_MINOR\", \"UA__OS_PATCH\", \"UA__OS_PATCH_MINOR\", \"UA__USERAGENT_FAMILY\", \"UA__USERAGENT_MAJOR\", \"UA__USERAGENT_MINOR\", \"UA__USERAGENT_PATCH\", \"UA__USERAGENT_VERSION\", \"FIRST_SCREEN_VIEW__NAME\", \"FIRST_SCREEN_VIEW__TYPE\", \"LAST_SCREEN_VIEW__NAME\", \"LAST_SCREEN_VIEW__TRANSITION_TYPE\", \"LAST_SCREEN_VIEW__TYPE\", \"SCREEN_VIEW__PREVIOUS_ID\", \"SCREEN_VIEW__PREVIOUS_NAME\", \"SCREEN_VIEW__PREVIOUS_TYPE\", \"FIRST_APP__BUILD\", \"FIRST_APP__VERSION\", \"FIRST_GEO__ALTITUDE\", \"FIRST_GEO__ALTITUDE_ACCURACY\", \"FIRST_GEO__BEARING\", \"FIRST_GEO__LATITUDE\", \"FIRST_GEO__LATITUDE_LONGITUDE_ACCURACY\", \"FIRST_GEO__LONGITUDE\", \"FIRST_GEO__SPEED\", \"APP_ERRORS\", \"FATAL_APP_ERRORS\", \"USERAGENT\", \"EVENT_ID\", \"EVENT_ID2\" from b\n\n),\n\nb_minus_a as (\n\n select \"EVENT_COUNTS\", \"CV_VIEW_PAGE_VOLUME\", \"CV_VIEW_PAGE_EVENTS\", \"CV_VIEW_PAGE_VALUES\", \"CV_VIEW_PAGE_TOTAL\", \"CV_VIEW_PAGE_FIRST_CONVERSION\", \"CV_VIEW_PAGE_CONVERTED\", \"CV__ALL_VOLUME\", \"CV__ALL_TOTAL\", \"FIRST_EVENT_NAME\", \"LAST_EVENT_NAME\", \"SESSION_IDENTIFIER\", \"SESSION__PREVIOUS_SESSION_ID\", \"USER_ID\", \"USER_IDENTIFIER\", \"STITCHED_USER_ID\", \"NETWORK_USERID\", \"START_TSTAMP\", \"END_TSTAMP\", \"APP_ID\", \"PLATFORM\", \"DEVICE_IDENTIFIER\", \"DEVICE_CATEGORY\", \"DEVICE_SESSION_INDEX\", \"OS_VERSION\", \"OS_TYPE\", \"OS_TIMEZONE\", \"SCREEN_RESOLUTION\", \"YAUAA__DEVICE_CLASS\", \"YAUAA__DEVICE_VERSION\", \"YAUAA__OPERATING_SYSTEM_VERSION\", \"YAUAA__OPERATING_SYSTEM_CLASS\", \"YAUAA__OPERATING_SYSTEM_NAME\", \"YAUAA__OPERATING_SYSTEM_NAME_VERSION\", \"MOBILE__DEVICE_MANUFACTURER\", \"MOBILE__DEVICE_MODEL\", \"MOBILE__OS_TYPE\", \"MOBILE__OS_VERSION\", \"MOBILE__ANDROID_IDFA\", \"MOBILE__APPLE_IDFA\", \"MOBILE__APPLE_IDFV\", \"MOBILE__CARRIER\", \"MOBILE__OPEN_IDFA\", \"MOBILE__NETWORK_TECHNOLOGY\", \"MOBILE__NETWORK_TYPE\", \"MOBILE__PHYSICAL_MEMORY\", \"MOBILE__SYSTEM_AVAILABLE_MEMORY\", \"MOBILE__APP_AVAILABLE_MEMORY\", \"MOBILE__BATTERY_LEVEL\", \"MOBILE__BATTERY_STATE\", \"MOBILE__LOW_POWER_MODE\", \"MOBILE__AVAILABLE_STORAGE\", \"MOBILE__TOTAL_STORAGE\", \"MOBILE__IS_PORTRAIT\", \"MOBILE__RESOLUTION\", \"MOBILE__SCALE\", \"MOBILE__LANGUAGE\", \"MOBILE__APP_SET_ID\", \"MOBILE__APP_SET_ID_SCOPE\", \"FIRST_GEO_COUNTRY\", \"FIRST_GEO_REGION_NAME\", \"FIRST_GEO_CITY\", \"FIRST_GEO_COUNTRY_NAME\", \"FIRST_GEO_CONTINENT\", \"LAST_GEO_COUNTRY\", \"LAST_GEO_REGION_NAME\", \"LAST_GEO_CITY\", \"LAST_GEO_COUNTRY_NAME\", \"LAST_GEO_CONTINENT\", \"GEO_ZIPCODE\", \"GEO_LATITUDE\", \"GEO_LONGITUDE\", \"GEO_TIMEZONE\", \"USER_IPADDRESS\", \"VIEWS\", \"TOTAL_EVENTS\", \"IS_ENGAGED\", \"ENGAGED_TIME_IN_S\", \"ABSOLUTE_TIME_IN_S\", \"SCREEN_NAMES_VIEWED\", \"MKT_MEDIUM\", \"MKT_SOURCE\", \"MKT_TERM\", \"MKT_CONTENT\", \"MKT_CAMPAIGN\", \"MKT_CLICKID\", \"MKT_NETWORK\", \"DEFAULT_CHANNEL_GROUP\", \"MKT_SOURCE_PLATFORM\", \"FIRST_PAGE_URL\", \"LAST_PAGE_URL\", \"PAGE_REFERRER\", \"REFR_MEDIUM\", \"REFR_SOURCE\", \"REFR_TERM\", \"FIRST_PAGE_TITLE\", \"FIRST_PAGE_URLSCHEME\", \"FIRST_PAGE_URLHOST\", \"FIRST_PAGE_URLPATH\", \"FIRST_PAGE_URLQUERY\", \"FIRST_PAGE_URLFRAGMENT\", \"LAST_PAGE_TITLE\", \"LAST_PAGE_URLSCHEME\", \"LAST_PAGE_URLHOST\", \"LAST_PAGE_URLPATH\", \"LAST_PAGE_URLQUERY\", \"LAST_PAGE_URLFRAGMENT\", \"REFR_URLSCHEME\", \"REFR_URLHOST\", \"REFR_URLPATH\", \"REFR_URLQUERY\", \"REFR_URLFRAGMENT\", \"BR_RENDERENGINE\", \"FIRST_BR_LANG\", \"FIRST_BR_LANG_NAME\", \"LAST_BR_LANG\", \"LAST_BR_LANG_NAME\", \"IAB__CATEGORY\", \"IAB__PRIMARY_IMPACT\", \"IAB__REASON\", \"IAB__SPIDER_OR_ROBOT\", \"YAUAA__DEVICE_NAME\", \"YAUAA__AGENT_CLASS\", \"YAUAA__AGENT_NAME\", \"YAUAA__AGENT_NAME_VERSION\", \"YAUAA__AGENT_NAME_VERSION_MAJOR\", \"YAUAA__AGENT_VERSION\", \"YAUAA__AGENT_VERSION_MAJOR\", \"YAUAA__LAYOUT_ENGINE_CLASS\", \"YAUAA__LAYOUT_ENGINE_NAME\", \"YAUAA__LAYOUT_ENGINE_NAME_VERSION\", \"YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR\", \"YAUAA__LAYOUT_ENGINE_VERSION\", \"YAUAA__LAYOUT_ENGINE_VERSION_MAJOR\", \"UA__DEVICE_FAMILY\", \"UA__OS_VERSION\", \"UA__OS_MAJOR\", \"UA__OS_MINOR\", \"UA__OS_PATCH\", \"UA__OS_PATCH_MINOR\", \"UA__USERAGENT_FAMILY\", \"UA__USERAGENT_MAJOR\", \"UA__USERAGENT_MINOR\", \"UA__USERAGENT_PATCH\", \"UA__USERAGENT_VERSION\", \"FIRST_SCREEN_VIEW__NAME\", \"FIRST_SCREEN_VIEW__TYPE\", \"LAST_SCREEN_VIEW__NAME\", \"LAST_SCREEN_VIEW__TRANSITION_TYPE\", \"LAST_SCREEN_VIEW__TYPE\", \"SCREEN_VIEW__PREVIOUS_ID\", \"SCREEN_VIEW__PREVIOUS_NAME\", \"SCREEN_VIEW__PREVIOUS_TYPE\", \"FIRST_APP__BUILD\", \"FIRST_APP__VERSION\", \"FIRST_GEO__ALTITUDE\", \"FIRST_GEO__ALTITUDE_ACCURACY\", \"FIRST_GEO__BEARING\", \"FIRST_GEO__LATITUDE\", \"FIRST_GEO__LATITUDE_LONGITUDE_ACCURACY\", \"FIRST_GEO__LONGITUDE\", \"FIRST_GEO__SPEED\", \"APP_ERRORS\", \"FATAL_APP_ERRORS\", \"USERAGENT\", \"EVENT_ID\", \"EVENT_ID2\" from b\n \n\n except\n\n\n select \"EVENT_COUNTS\", \"CV_VIEW_PAGE_VOLUME\", \"CV_VIEW_PAGE_EVENTS\", \"CV_VIEW_PAGE_VALUES\", \"CV_VIEW_PAGE_TOTAL\", \"CV_VIEW_PAGE_FIRST_CONVERSION\", \"CV_VIEW_PAGE_CONVERTED\", \"CV__ALL_VOLUME\", \"CV__ALL_TOTAL\", \"FIRST_EVENT_NAME\", \"LAST_EVENT_NAME\", \"SESSION_IDENTIFIER\", \"SESSION__PREVIOUS_SESSION_ID\", \"USER_ID\", \"USER_IDENTIFIER\", \"STITCHED_USER_ID\", \"NETWORK_USERID\", \"START_TSTAMP\", \"END_TSTAMP\", \"APP_ID\", \"PLATFORM\", \"DEVICE_IDENTIFIER\", \"DEVICE_CATEGORY\", \"DEVICE_SESSION_INDEX\", \"OS_VERSION\", \"OS_TYPE\", \"OS_TIMEZONE\", \"SCREEN_RESOLUTION\", \"YAUAA__DEVICE_CLASS\", \"YAUAA__DEVICE_VERSION\", \"YAUAA__OPERATING_SYSTEM_VERSION\", \"YAUAA__OPERATING_SYSTEM_CLASS\", \"YAUAA__OPERATING_SYSTEM_NAME\", \"YAUAA__OPERATING_SYSTEM_NAME_VERSION\", \"MOBILE__DEVICE_MANUFACTURER\", \"MOBILE__DEVICE_MODEL\", \"MOBILE__OS_TYPE\", \"MOBILE__OS_VERSION\", \"MOBILE__ANDROID_IDFA\", \"MOBILE__APPLE_IDFA\", \"MOBILE__APPLE_IDFV\", \"MOBILE__CARRIER\", \"MOBILE__OPEN_IDFA\", \"MOBILE__NETWORK_TECHNOLOGY\", \"MOBILE__NETWORK_TYPE\", \"MOBILE__PHYSICAL_MEMORY\", \"MOBILE__SYSTEM_AVAILABLE_MEMORY\", \"MOBILE__APP_AVAILABLE_MEMORY\", \"MOBILE__BATTERY_LEVEL\", \"MOBILE__BATTERY_STATE\", \"MOBILE__LOW_POWER_MODE\", \"MOBILE__AVAILABLE_STORAGE\", \"MOBILE__TOTAL_STORAGE\", \"MOBILE__IS_PORTRAIT\", \"MOBILE__RESOLUTION\", \"MOBILE__SCALE\", \"MOBILE__LANGUAGE\", \"MOBILE__APP_SET_ID\", \"MOBILE__APP_SET_ID_SCOPE\", \"FIRST_GEO_COUNTRY\", \"FIRST_GEO_REGION_NAME\", \"FIRST_GEO_CITY\", \"FIRST_GEO_COUNTRY_NAME\", \"FIRST_GEO_CONTINENT\", \"LAST_GEO_COUNTRY\", \"LAST_GEO_REGION_NAME\", \"LAST_GEO_CITY\", \"LAST_GEO_COUNTRY_NAME\", \"LAST_GEO_CONTINENT\", \"GEO_ZIPCODE\", \"GEO_LATITUDE\", \"GEO_LONGITUDE\", \"GEO_TIMEZONE\", \"USER_IPADDRESS\", \"VIEWS\", \"TOTAL_EVENTS\", \"IS_ENGAGED\", \"ENGAGED_TIME_IN_S\", \"ABSOLUTE_TIME_IN_S\", \"SCREEN_NAMES_VIEWED\", \"MKT_MEDIUM\", \"MKT_SOURCE\", \"MKT_TERM\", \"MKT_CONTENT\", \"MKT_CAMPAIGN\", \"MKT_CLICKID\", \"MKT_NETWORK\", \"DEFAULT_CHANNEL_GROUP\", \"MKT_SOURCE_PLATFORM\", \"FIRST_PAGE_URL\", \"LAST_PAGE_URL\", \"PAGE_REFERRER\", \"REFR_MEDIUM\", \"REFR_SOURCE\", \"REFR_TERM\", \"FIRST_PAGE_TITLE\", \"FIRST_PAGE_URLSCHEME\", \"FIRST_PAGE_URLHOST\", \"FIRST_PAGE_URLPATH\", \"FIRST_PAGE_URLQUERY\", \"FIRST_PAGE_URLFRAGMENT\", \"LAST_PAGE_TITLE\", \"LAST_PAGE_URLSCHEME\", \"LAST_PAGE_URLHOST\", \"LAST_PAGE_URLPATH\", \"LAST_PAGE_URLQUERY\", \"LAST_PAGE_URLFRAGMENT\", \"REFR_URLSCHEME\", \"REFR_URLHOST\", \"REFR_URLPATH\", \"REFR_URLQUERY\", \"REFR_URLFRAGMENT\", \"BR_RENDERENGINE\", \"FIRST_BR_LANG\", \"FIRST_BR_LANG_NAME\", \"LAST_BR_LANG\", \"LAST_BR_LANG_NAME\", \"IAB__CATEGORY\", \"IAB__PRIMARY_IMPACT\", \"IAB__REASON\", \"IAB__SPIDER_OR_ROBOT\", \"YAUAA__DEVICE_NAME\", \"YAUAA__AGENT_CLASS\", \"YAUAA__AGENT_NAME\", \"YAUAA__AGENT_NAME_VERSION\", \"YAUAA__AGENT_NAME_VERSION_MAJOR\", \"YAUAA__AGENT_VERSION\", \"YAUAA__AGENT_VERSION_MAJOR\", \"YAUAA__LAYOUT_ENGINE_CLASS\", \"YAUAA__LAYOUT_ENGINE_NAME\", \"YAUAA__LAYOUT_ENGINE_NAME_VERSION\", \"YAUAA__LAYOUT_ENGINE_NAME_VERSION_MAJOR\", \"YAUAA__LAYOUT_ENGINE_VERSION\", \"YAUAA__LAYOUT_ENGINE_VERSION_MAJOR\", \"UA__DEVICE_FAMILY\", \"UA__OS_VERSION\", \"UA__OS_MAJOR\", \"UA__OS_MINOR\", \"UA__OS_PATCH\", \"UA__OS_PATCH_MINOR\", \"UA__USERAGENT_FAMILY\", \"UA__USERAGENT_MAJOR\", \"UA__USERAGENT_MINOR\", \"UA__USERAGENT_PATCH\", \"UA__USERAGENT_VERSION\", \"FIRST_SCREEN_VIEW__NAME\", \"FIRST_SCREEN_VIEW__TYPE\", \"LAST_SCREEN_VIEW__NAME\", \"LAST_SCREEN_VIEW__TRANSITION_TYPE\", \"LAST_SCREEN_VIEW__TYPE\", \"SCREEN_VIEW__PREVIOUS_ID\", \"SCREEN_VIEW__PREVIOUS_NAME\", \"SCREEN_VIEW__PREVIOUS_TYPE\", \"FIRST_APP__BUILD\", \"FIRST_APP__VERSION\", \"FIRST_GEO__ALTITUDE\", \"FIRST_GEO__ALTITUDE_ACCURACY\", \"FIRST_GEO__BEARING\", \"FIRST_GEO__LATITUDE\", \"FIRST_GEO__LATITUDE_LONGITUDE_ACCURACY\", \"FIRST_GEO__LONGITUDE\", \"FIRST_GEO__SPEED\", \"APP_ERRORS\", \"FATAL_APP_ERRORS\", \"USERAGENT\", \"EVENT_ID\", \"EVENT_ID2\" from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_sessions_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_sessions_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_.78448e6f51": {"test_metadata": {"name": "equal_rowcount", "kwargs": {"compare_model": "ref('snowplow_unified_users_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_users_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equal_rowcount_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equal_rowcount_snowp_1fdd38862df71d7b0c17d7b5e6a6dde8.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_.78448e6f51", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equal_rowcount_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_"], "alias": "dbt_utils_equal_rowcount_snowp_1fdd38862df71d7b0c17d7b5e6a6dde8", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equal_rowcount_snowp_1fdd38862df71d7b0c17d7b5e6a6dde8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "sum(coalesce(diff_count, 0))", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"fail_calc": "sum(coalesce(diff_count, 0))", "alias": "dbt_utils_equal_rowcount_snowp_1fdd38862df71d7b0c17d7b5e6a6dde8"}, "created_at": 1706612343.495167, "relation_name": null, "raw_code": "{{ dbt_utils.test_equal_rowcount(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equal_rowcount_snowp_1fdd38862df71d7b0c17d7b5e6a6dde8\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_users_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_users_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_equal_rowcount", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_users_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_users_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equal_rowcount_snowp_1fdd38862df71d7b0c17d7b5e6a6dde8.sql", "compiled": true, "compiled_code": "\n\n\n\n\nwith a as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_users_actual\n group by id_dbtutils_test_equal_rowcount\n\n\n),\nb as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_users_expected_stg\n group by id_dbtutils_test_equal_rowcount\n\n),\nfinal as (\n\n select\n \n a.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_a,\n b.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_b,\n \n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n \n\n\n)\n\nselect * from final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_users_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_users_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_.971c3ddd69": {"test_metadata": {"name": "equality", "kwargs": {"compare_model": "ref('snowplow_unified_users_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_users_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equality_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equality_snowplow_un_89fa5a6ba196f481c19f34d288f90449.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_.971c3ddd69", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equality_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_"], "alias": "dbt_utils_equality_snowplow_un_89fa5a6ba196f481c19f34d288f90449", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equality_snowplow_un_89fa5a6ba196f481c19f34d288f90449", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_equality_snowplow_un_89fa5a6ba196f481c19f34d288f90449"}, "created_at": 1706612343.5003972, "relation_name": null, "raw_code": "{{ dbt_utils.test_equality(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equality_snowplow_un_89fa5a6ba196f481c19f34d288f90449\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_users_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_users_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_unified_integration_tests.test_equality", "macro.dbt.get_where_subquery", "macro.dbt_utils.test_equality"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_users_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_users_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equality_snowplow_un_89fa5a6ba196f481c19f34d288f90449.sql", "compiled": true, "compiled_code": "\n\n\n\n-- setup\n\n\n\n\n\n\nwith a as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_users_actual\n\n),\n\nb as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_users_expected_stg\n\n),\n\na_minus_b as (\n\n select \"USER_ID\", \"USER_IDENTIFIER\", \"NETWORK_USERID\", \"STITCHED_USER_ID\", \"START_TSTAMP\", \"END_TSTAMP\", \"FIRST_PLATFORM\", \"LAST_PLATFORM\", \"ON_WEB\", \"ON_MOBILE\", \"LAST_SCREEN_RESOLUTION\", \"LAST_OS_TYPE\", \"LAST_OS_VERSION\", \"FIRST_MOBILE__DEVICE_MANUFACTURER\", \"FIRST_MOBILE__DEVICE_MODEL\", \"FIRST_MOBILE__CARRIER\", \"LAST_MOBILE__DEVICE_MANUFACTURER\", \"LAST_MOBILE__DEVICE_MODEL\", \"LAST_MOBILE__CARRIER\", \"MOBILE__OS_TYPE\", \"MOBILE__OS_VERSION\", \"MOBILE__ANDROID_IDFA\", \"MOBILE__APPLE_IDFA\", \"MOBILE__APPLE_IDFV\", \"MOBILE__OPEN_IDFA\", \"MOBILE__NETWORK_TECHNOLOGY\", \"MOBILE__NETWORK_TYPE\", \"MOBILE__PHYSICAL_MEMORY\", \"MOBILE__SYSTEM_AVAILABLE_MEMORY\", \"MOBILE__APP_AVAILABLE_MEMORY\", \"MOBILE__BATTERY_LEVEL\", \"MOBILE__BATTERY_STATE\", \"MOBILE__LOW_POWER_MODE\", \"MOBILE__AVAILABLE_STORAGE\", \"MOBILE__TOTAL_STORAGE\", \"MOBILE__IS_PORTRAIT\", \"MOBILE__RESOLUTION\", \"MOBILE__SCALE\", \"MOBILE__LANGUAGE\", \"MOBILE__APP_SET_ID\", \"MOBILE__APP_SET_ID_SCOPE\", \"FIRST_GEO_COUNTRY\", \"FIRST_GEO_COUNTRY_NAME\", \"FIRST_GEO_CONTINENT\", \"FIRST_GEO_CITY\", \"FIRST_GEO_REGION_NAME\", \"LAST_GEO_COUNTRY\", \"LAST_GEO_COUNTRY_NAME\", \"LAST_GEO_CONTINENT\", \"LAST_GEO_CITY\", \"LAST_GEO_REGION_NAME\", \"GEO_ZIPCODE\", \"GEO_LATITUDE\", \"GEO_LONGITUDE\", \"GEO_TIMEZONE\", \"VIEWS\", \"SESSIONS\", \"ACTIVE_DAYS\", \"ENGAGED_TIME_IN_S\", \"SCREEN_NAMES_VIEWED\", \"ABSOLUTE_TIME_IN_S\", \"PAGE_REFERRER\", \"REFR_MEDIUM\", \"REFR_SOURCE\", \"REFR_TERM\", \"FIRST_PAGE_TITLE\", \"FIRST_PAGE_URL\", \"FIRST_PAGE_URLSCHEME\", \"FIRST_PAGE_URLHOST\", \"FIRST_PAGE_URLPATH\", \"FIRST_PAGE_URLQUERY\", \"FIRST_PAGE_URLFRAGMENT\", \"FIRST_BR_LANG\", \"FIRST_BR_LANG_NAME\", \"LAST_PAGE_TITLE\", \"LAST_PAGE_URL\", \"LAST_PAGE_URLSCHEME\", \"LAST_PAGE_URLHOST\", \"LAST_PAGE_URLPATH\", \"LAST_PAGE_URLQUERY\", \"LAST_PAGE_URLFRAGMENT\", \"LAST_BR_LANG\", \"LAST_BR_LANG_NAME\", \"REFR_URLSCHEME\", \"REFR_URLHOST\", \"REFR_URLPATH\", \"REFR_URLQUERY\", \"REFR_URLFRAGMENT\", \"FIRST_SCREEN_VIEW__NAME\", \"FIRST_SCREEN_VIEW__TYPE\", \"LAST_SCREEN_VIEW__NAME\", \"LAST_SCREEN_VIEW__TRANSITION_TYPE\", \"LAST_SCREEN_VIEW__TYPE\", \"MKT_MEDIUM\", \"MKT_SOURCE\", \"MKT_TERM\", \"MKT_CONTENT\", \"MKT_CAMPAIGN\", \"MKT_CLICKID\", \"MKT_NETWORK\", \"MKT_SOURCE_PLATFORM\", \"DEFAULT_CHANNEL_GROUP\", \"APP_ERRORS\", \"FATAL_APP_ERRORS\", \"FIRST_EVENT_ID\", \"FIRST_EVENT_ID2\", \"LAST_EVENT_ID\", \"LAST_EVENT_ID2\" from a\n \n\n except\n\n\n select \"USER_ID\", \"USER_IDENTIFIER\", \"NETWORK_USERID\", \"STITCHED_USER_ID\", \"START_TSTAMP\", \"END_TSTAMP\", \"FIRST_PLATFORM\", \"LAST_PLATFORM\", \"ON_WEB\", \"ON_MOBILE\", \"LAST_SCREEN_RESOLUTION\", \"LAST_OS_TYPE\", \"LAST_OS_VERSION\", \"FIRST_MOBILE__DEVICE_MANUFACTURER\", \"FIRST_MOBILE__DEVICE_MODEL\", \"FIRST_MOBILE__CARRIER\", \"LAST_MOBILE__DEVICE_MANUFACTURER\", \"LAST_MOBILE__DEVICE_MODEL\", \"LAST_MOBILE__CARRIER\", \"MOBILE__OS_TYPE\", \"MOBILE__OS_VERSION\", \"MOBILE__ANDROID_IDFA\", \"MOBILE__APPLE_IDFA\", \"MOBILE__APPLE_IDFV\", \"MOBILE__OPEN_IDFA\", \"MOBILE__NETWORK_TECHNOLOGY\", \"MOBILE__NETWORK_TYPE\", \"MOBILE__PHYSICAL_MEMORY\", \"MOBILE__SYSTEM_AVAILABLE_MEMORY\", \"MOBILE__APP_AVAILABLE_MEMORY\", \"MOBILE__BATTERY_LEVEL\", \"MOBILE__BATTERY_STATE\", \"MOBILE__LOW_POWER_MODE\", \"MOBILE__AVAILABLE_STORAGE\", \"MOBILE__TOTAL_STORAGE\", \"MOBILE__IS_PORTRAIT\", \"MOBILE__RESOLUTION\", \"MOBILE__SCALE\", \"MOBILE__LANGUAGE\", \"MOBILE__APP_SET_ID\", \"MOBILE__APP_SET_ID_SCOPE\", \"FIRST_GEO_COUNTRY\", \"FIRST_GEO_COUNTRY_NAME\", \"FIRST_GEO_CONTINENT\", \"FIRST_GEO_CITY\", \"FIRST_GEO_REGION_NAME\", \"LAST_GEO_COUNTRY\", \"LAST_GEO_COUNTRY_NAME\", \"LAST_GEO_CONTINENT\", \"LAST_GEO_CITY\", \"LAST_GEO_REGION_NAME\", \"GEO_ZIPCODE\", \"GEO_LATITUDE\", \"GEO_LONGITUDE\", \"GEO_TIMEZONE\", \"VIEWS\", \"SESSIONS\", \"ACTIVE_DAYS\", \"ENGAGED_TIME_IN_S\", \"SCREEN_NAMES_VIEWED\", \"ABSOLUTE_TIME_IN_S\", \"PAGE_REFERRER\", \"REFR_MEDIUM\", \"REFR_SOURCE\", \"REFR_TERM\", \"FIRST_PAGE_TITLE\", \"FIRST_PAGE_URL\", \"FIRST_PAGE_URLSCHEME\", \"FIRST_PAGE_URLHOST\", \"FIRST_PAGE_URLPATH\", \"FIRST_PAGE_URLQUERY\", \"FIRST_PAGE_URLFRAGMENT\", \"FIRST_BR_LANG\", \"FIRST_BR_LANG_NAME\", \"LAST_PAGE_TITLE\", \"LAST_PAGE_URL\", \"LAST_PAGE_URLSCHEME\", \"LAST_PAGE_URLHOST\", \"LAST_PAGE_URLPATH\", \"LAST_PAGE_URLQUERY\", \"LAST_PAGE_URLFRAGMENT\", \"LAST_BR_LANG\", \"LAST_BR_LANG_NAME\", \"REFR_URLSCHEME\", \"REFR_URLHOST\", \"REFR_URLPATH\", \"REFR_URLQUERY\", \"REFR_URLFRAGMENT\", \"FIRST_SCREEN_VIEW__NAME\", \"FIRST_SCREEN_VIEW__TYPE\", \"LAST_SCREEN_VIEW__NAME\", \"LAST_SCREEN_VIEW__TRANSITION_TYPE\", \"LAST_SCREEN_VIEW__TYPE\", \"MKT_MEDIUM\", \"MKT_SOURCE\", \"MKT_TERM\", \"MKT_CONTENT\", \"MKT_CAMPAIGN\", \"MKT_CLICKID\", \"MKT_NETWORK\", \"MKT_SOURCE_PLATFORM\", \"DEFAULT_CHANNEL_GROUP\", \"APP_ERRORS\", \"FATAL_APP_ERRORS\", \"FIRST_EVENT_ID\", \"FIRST_EVENT_ID2\", \"LAST_EVENT_ID\", \"LAST_EVENT_ID2\" from b\n\n),\n\nb_minus_a as (\n\n select \"USER_ID\", \"USER_IDENTIFIER\", \"NETWORK_USERID\", \"STITCHED_USER_ID\", \"START_TSTAMP\", \"END_TSTAMP\", \"FIRST_PLATFORM\", \"LAST_PLATFORM\", \"ON_WEB\", \"ON_MOBILE\", \"LAST_SCREEN_RESOLUTION\", \"LAST_OS_TYPE\", \"LAST_OS_VERSION\", \"FIRST_MOBILE__DEVICE_MANUFACTURER\", \"FIRST_MOBILE__DEVICE_MODEL\", \"FIRST_MOBILE__CARRIER\", \"LAST_MOBILE__DEVICE_MANUFACTURER\", \"LAST_MOBILE__DEVICE_MODEL\", \"LAST_MOBILE__CARRIER\", \"MOBILE__OS_TYPE\", \"MOBILE__OS_VERSION\", \"MOBILE__ANDROID_IDFA\", \"MOBILE__APPLE_IDFA\", \"MOBILE__APPLE_IDFV\", \"MOBILE__OPEN_IDFA\", \"MOBILE__NETWORK_TECHNOLOGY\", \"MOBILE__NETWORK_TYPE\", \"MOBILE__PHYSICAL_MEMORY\", \"MOBILE__SYSTEM_AVAILABLE_MEMORY\", \"MOBILE__APP_AVAILABLE_MEMORY\", \"MOBILE__BATTERY_LEVEL\", \"MOBILE__BATTERY_STATE\", \"MOBILE__LOW_POWER_MODE\", \"MOBILE__AVAILABLE_STORAGE\", \"MOBILE__TOTAL_STORAGE\", \"MOBILE__IS_PORTRAIT\", \"MOBILE__RESOLUTION\", \"MOBILE__SCALE\", \"MOBILE__LANGUAGE\", \"MOBILE__APP_SET_ID\", \"MOBILE__APP_SET_ID_SCOPE\", \"FIRST_GEO_COUNTRY\", \"FIRST_GEO_COUNTRY_NAME\", \"FIRST_GEO_CONTINENT\", \"FIRST_GEO_CITY\", \"FIRST_GEO_REGION_NAME\", \"LAST_GEO_COUNTRY\", \"LAST_GEO_COUNTRY_NAME\", \"LAST_GEO_CONTINENT\", \"LAST_GEO_CITY\", \"LAST_GEO_REGION_NAME\", \"GEO_ZIPCODE\", \"GEO_LATITUDE\", \"GEO_LONGITUDE\", \"GEO_TIMEZONE\", \"VIEWS\", \"SESSIONS\", \"ACTIVE_DAYS\", \"ENGAGED_TIME_IN_S\", \"SCREEN_NAMES_VIEWED\", \"ABSOLUTE_TIME_IN_S\", \"PAGE_REFERRER\", \"REFR_MEDIUM\", \"REFR_SOURCE\", \"REFR_TERM\", \"FIRST_PAGE_TITLE\", \"FIRST_PAGE_URL\", \"FIRST_PAGE_URLSCHEME\", \"FIRST_PAGE_URLHOST\", \"FIRST_PAGE_URLPATH\", \"FIRST_PAGE_URLQUERY\", \"FIRST_PAGE_URLFRAGMENT\", \"FIRST_BR_LANG\", \"FIRST_BR_LANG_NAME\", \"LAST_PAGE_TITLE\", \"LAST_PAGE_URL\", \"LAST_PAGE_URLSCHEME\", \"LAST_PAGE_URLHOST\", \"LAST_PAGE_URLPATH\", \"LAST_PAGE_URLQUERY\", \"LAST_PAGE_URLFRAGMENT\", \"LAST_BR_LANG\", \"LAST_BR_LANG_NAME\", \"REFR_URLSCHEME\", \"REFR_URLHOST\", \"REFR_URLPATH\", \"REFR_URLQUERY\", \"REFR_URLFRAGMENT\", \"FIRST_SCREEN_VIEW__NAME\", \"FIRST_SCREEN_VIEW__TYPE\", \"LAST_SCREEN_VIEW__NAME\", \"LAST_SCREEN_VIEW__TRANSITION_TYPE\", \"LAST_SCREEN_VIEW__TYPE\", \"MKT_MEDIUM\", \"MKT_SOURCE\", \"MKT_TERM\", \"MKT_CONTENT\", \"MKT_CAMPAIGN\", \"MKT_CLICKID\", \"MKT_NETWORK\", \"MKT_SOURCE_PLATFORM\", \"DEFAULT_CHANNEL_GROUP\", \"APP_ERRORS\", \"FATAL_APP_ERRORS\", \"FIRST_EVENT_ID\", \"FIRST_EVENT_ID2\", \"LAST_EVENT_ID\", \"LAST_EVENT_ID2\" from b\n \n\n except\n\n\n select \"USER_ID\", \"USER_IDENTIFIER\", \"NETWORK_USERID\", \"STITCHED_USER_ID\", \"START_TSTAMP\", \"END_TSTAMP\", \"FIRST_PLATFORM\", \"LAST_PLATFORM\", \"ON_WEB\", \"ON_MOBILE\", \"LAST_SCREEN_RESOLUTION\", \"LAST_OS_TYPE\", \"LAST_OS_VERSION\", \"FIRST_MOBILE__DEVICE_MANUFACTURER\", \"FIRST_MOBILE__DEVICE_MODEL\", \"FIRST_MOBILE__CARRIER\", \"LAST_MOBILE__DEVICE_MANUFACTURER\", \"LAST_MOBILE__DEVICE_MODEL\", \"LAST_MOBILE__CARRIER\", \"MOBILE__OS_TYPE\", \"MOBILE__OS_VERSION\", \"MOBILE__ANDROID_IDFA\", \"MOBILE__APPLE_IDFA\", \"MOBILE__APPLE_IDFV\", \"MOBILE__OPEN_IDFA\", \"MOBILE__NETWORK_TECHNOLOGY\", \"MOBILE__NETWORK_TYPE\", \"MOBILE__PHYSICAL_MEMORY\", \"MOBILE__SYSTEM_AVAILABLE_MEMORY\", \"MOBILE__APP_AVAILABLE_MEMORY\", \"MOBILE__BATTERY_LEVEL\", \"MOBILE__BATTERY_STATE\", \"MOBILE__LOW_POWER_MODE\", \"MOBILE__AVAILABLE_STORAGE\", \"MOBILE__TOTAL_STORAGE\", \"MOBILE__IS_PORTRAIT\", \"MOBILE__RESOLUTION\", \"MOBILE__SCALE\", \"MOBILE__LANGUAGE\", \"MOBILE__APP_SET_ID\", \"MOBILE__APP_SET_ID_SCOPE\", \"FIRST_GEO_COUNTRY\", \"FIRST_GEO_COUNTRY_NAME\", \"FIRST_GEO_CONTINENT\", \"FIRST_GEO_CITY\", \"FIRST_GEO_REGION_NAME\", \"LAST_GEO_COUNTRY\", \"LAST_GEO_COUNTRY_NAME\", \"LAST_GEO_CONTINENT\", \"LAST_GEO_CITY\", \"LAST_GEO_REGION_NAME\", \"GEO_ZIPCODE\", \"GEO_LATITUDE\", \"GEO_LONGITUDE\", \"GEO_TIMEZONE\", \"VIEWS\", \"SESSIONS\", \"ACTIVE_DAYS\", \"ENGAGED_TIME_IN_S\", \"SCREEN_NAMES_VIEWED\", \"ABSOLUTE_TIME_IN_S\", \"PAGE_REFERRER\", \"REFR_MEDIUM\", \"REFR_SOURCE\", \"REFR_TERM\", \"FIRST_PAGE_TITLE\", \"FIRST_PAGE_URL\", \"FIRST_PAGE_URLSCHEME\", \"FIRST_PAGE_URLHOST\", \"FIRST_PAGE_URLPATH\", \"FIRST_PAGE_URLQUERY\", \"FIRST_PAGE_URLFRAGMENT\", \"FIRST_BR_LANG\", \"FIRST_BR_LANG_NAME\", \"LAST_PAGE_TITLE\", \"LAST_PAGE_URL\", \"LAST_PAGE_URLSCHEME\", \"LAST_PAGE_URLHOST\", \"LAST_PAGE_URLPATH\", \"LAST_PAGE_URLQUERY\", \"LAST_PAGE_URLFRAGMENT\", \"LAST_BR_LANG\", \"LAST_BR_LANG_NAME\", \"REFR_URLSCHEME\", \"REFR_URLHOST\", \"REFR_URLPATH\", \"REFR_URLQUERY\", \"REFR_URLFRAGMENT\", \"FIRST_SCREEN_VIEW__NAME\", \"FIRST_SCREEN_VIEW__TYPE\", \"LAST_SCREEN_VIEW__NAME\", \"LAST_SCREEN_VIEW__TRANSITION_TYPE\", \"LAST_SCREEN_VIEW__TYPE\", \"MKT_MEDIUM\", \"MKT_SOURCE\", \"MKT_TERM\", \"MKT_CONTENT\", \"MKT_CAMPAIGN\", \"MKT_CLICKID\", \"MKT_NETWORK\", \"MKT_SOURCE_PLATFORM\", \"DEFAULT_CHANNEL_GROUP\", \"APP_ERRORS\", \"FATAL_APP_ERRORS\", \"FIRST_EVENT_ID\", \"FIRST_EVENT_ID2\", \"LAST_EVENT_ID\", \"LAST_EVENT_ID2\" from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_users_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_users_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_.22d90b662d": {"test_metadata": {"name": "equal_rowcount", "kwargs": {"compare_model": "ref('snowplow_unified_consent_cmp_stats_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_cmp_stats_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equal_rowcount_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equal_rowcount_snowp_1f821dfdddad48ea6113652b7a597975.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_.22d90b662d", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equal_rowcount_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_"], "alias": "dbt_utils_equal_rowcount_snowp_1f821dfdddad48ea6113652b7a597975", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equal_rowcount_snowp_1f821dfdddad48ea6113652b7a597975", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "sum(coalesce(diff_count, 0))", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"fail_calc": "sum(coalesce(diff_count, 0))", "alias": "dbt_utils_equal_rowcount_snowp_1f821dfdddad48ea6113652b7a597975"}, "created_at": 1706612343.50587, "relation_name": null, "raw_code": "{{ dbt_utils.test_equal_rowcount(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equal_rowcount_snowp_1f821dfdddad48ea6113652b7a597975\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_cmp_stats_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_consent_cmp_stats_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_equal_rowcount", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equal_rowcount_snowp_1f821dfdddad48ea6113652b7a597975.sql", "compiled": true, "compiled_code": "\n\n\n\n\nwith a as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_cmp_stats_actual\n group by id_dbtutils_test_equal_rowcount\n\n\n),\nb as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_cmp_stats_expected_stg\n group by id_dbtutils_test_equal_rowcount\n\n),\nfinal as (\n\n select\n \n a.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_a,\n b.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_b,\n \n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n \n\n\n)\n\nselect * from final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_consent_cmp_stats_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_.ada2f282a8": {"test_metadata": {"name": "equality", "kwargs": {"compare_model": "ref('snowplow_unified_consent_cmp_stats_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_cmp_stats_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equality_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equality_snowplow_un_90c39dc5c431a7d75de7e5fb49128be2.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_.ada2f282a8", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equality_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_"], "alias": "dbt_utils_equality_snowplow_un_90c39dc5c431a7d75de7e5fb49128be2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equality_snowplow_un_90c39dc5c431a7d75de7e5fb49128be2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_equality_snowplow_un_90c39dc5c431a7d75de7e5fb49128be2"}, "created_at": 1706612343.5113308, "relation_name": null, "raw_code": "{{ dbt_utils.test_equality(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equality_snowplow_un_90c39dc5c431a7d75de7e5fb49128be2\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_cmp_stats_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_consent_cmp_stats_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_unified_integration_tests.test_equality", "macro.dbt.get_where_subquery", "macro.dbt_utils.test_equality"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equality_snowplow_un_90c39dc5c431a7d75de7e5fb49128be2.sql", "compiled": true, "compiled_code": "\n\n\n\n-- setup\n\n\n\n\n\n\nwith a as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_cmp_stats_actual\n\n),\n\nb as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_cmp_stats_expected_stg\n\n),\n\na_minus_b as (\n\n select \"EVENT_ID\", \"USER_IDENTIFIER\", \"VIEW_ID\", \"SESSION_IDENTIFIER\", \"CMP_LOAD_TIME\", \"CMP_TSTAMP\", \"FIRST_CONSENT_EVENT_TSTAMP\", \"FIRST_CONSENT_EVENT_TYPE\", \"CMP_INTERACTION_TIME\" from a\n \n\n except\n\n\n select \"EVENT_ID\", \"USER_IDENTIFIER\", \"VIEW_ID\", \"SESSION_IDENTIFIER\", \"CMP_LOAD_TIME\", \"CMP_TSTAMP\", \"FIRST_CONSENT_EVENT_TSTAMP\", \"FIRST_CONSENT_EVENT_TYPE\", \"CMP_INTERACTION_TIME\" from b\n\n),\n\nb_minus_a as (\n\n select \"EVENT_ID\", \"USER_IDENTIFIER\", \"VIEW_ID\", \"SESSION_IDENTIFIER\", \"CMP_LOAD_TIME\", \"CMP_TSTAMP\", \"FIRST_CONSENT_EVENT_TSTAMP\", \"FIRST_CONSENT_EVENT_TYPE\", \"CMP_INTERACTION_TIME\" from b\n \n\n except\n\n\n select \"EVENT_ID\", \"USER_IDENTIFIER\", \"VIEW_ID\", \"SESSION_IDENTIFIER\", \"CMP_LOAD_TIME\", \"CMP_TSTAMP\", \"FIRST_CONSENT_EVENT_TSTAMP\", \"FIRST_CONSENT_EVENT_TYPE\", \"CMP_INTERACTION_TIME\" from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_consent_cmp_stats_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_.2bc14dd7de": {"test_metadata": {"name": "equal_rowcount", "kwargs": {"compare_model": "ref('snowplow_unified_consent_log_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_log_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equal_rowcount_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equal_rowcount_snowp_de0d047a60ad1c5e76b7362352f79ba5.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_.2bc14dd7de", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equal_rowcount_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_"], "alias": "dbt_utils_equal_rowcount_snowp_de0d047a60ad1c5e76b7362352f79ba5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equal_rowcount_snowp_de0d047a60ad1c5e76b7362352f79ba5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "sum(coalesce(diff_count, 0))", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"fail_calc": "sum(coalesce(diff_count, 0))", "alias": "dbt_utils_equal_rowcount_snowp_de0d047a60ad1c5e76b7362352f79ba5"}, "created_at": 1706612343.5167613, "relation_name": null, "raw_code": "{{ dbt_utils.test_equal_rowcount(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equal_rowcount_snowp_de0d047a60ad1c5e76b7362352f79ba5\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_log_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_consent_log_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_equal_rowcount", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equal_rowcount_snowp_de0d047a60ad1c5e76b7362352f79ba5.sql", "compiled": true, "compiled_code": "\n\n\n\n\nwith a as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_log_actual\n group by id_dbtutils_test_equal_rowcount\n\n\n),\nb as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_log_expected_stg\n group by id_dbtutils_test_equal_rowcount\n\n),\nfinal as (\n\n select\n \n a.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_a,\n b.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_b,\n \n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n \n\n\n)\n\nselect * from final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_consent_log_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_.71b95e8674": {"test_metadata": {"name": "equality", "kwargs": {"compare_model": "ref('snowplow_unified_consent_log_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_log_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equality_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equality_snowplow_un_2b0491c20f6ac098859e333231c386e6.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_.71b95e8674", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equality_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_"], "alias": "dbt_utils_equality_snowplow_un_2b0491c20f6ac098859e333231c386e6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equality_snowplow_un_2b0491c20f6ac098859e333231c386e6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_equality_snowplow_un_2b0491c20f6ac098859e333231c386e6"}, "created_at": 1706612343.5219274, "relation_name": null, "raw_code": "{{ dbt_utils.test_equality(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equality_snowplow_un_2b0491c20f6ac098859e333231c386e6\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_log_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_consent_log_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_unified_integration_tests.test_equality", "macro.dbt.get_where_subquery", "macro.dbt_utils.test_equality"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equality_snowplow_un_2b0491c20f6ac098859e333231c386e6.sql", "compiled": true, "compiled_code": "\n\n\n\n-- setup\n\n\n\n\n\n\nwith a as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_log_actual\n\n),\n\nb as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_log_expected_stg\n\n),\n\na_minus_b as (\n\n select \"EVENT_ID\", \"USER_IDENTIFIER\", \"USER_ID\", \"GEO_COUNTRY\", \"VIEW_ID\", \"SESSION_IDENTIFIER\", \"DERIVED_TSTAMP\", \"LOAD_TSTAMP\", \"EVENT_NAME\", \"EVENT_TYPE\", \"BASIS_FOR_PROCESSING\", \"CONSENT_URL\", \"CONSENT_VERSION\", \"CONSENT_SCOPES\", \"DOMAINS_APPLIED\", \"GDPR_APPLIES\", \"CMP_LOAD_TIME\" from a\n \n\n except\n\n\n select \"EVENT_ID\", \"USER_IDENTIFIER\", \"USER_ID\", \"GEO_COUNTRY\", \"VIEW_ID\", \"SESSION_IDENTIFIER\", \"DERIVED_TSTAMP\", \"LOAD_TSTAMP\", \"EVENT_NAME\", \"EVENT_TYPE\", \"BASIS_FOR_PROCESSING\", \"CONSENT_URL\", \"CONSENT_VERSION\", \"CONSENT_SCOPES\", \"DOMAINS_APPLIED\", \"GDPR_APPLIES\", \"CMP_LOAD_TIME\" from b\n\n),\n\nb_minus_a as (\n\n select \"EVENT_ID\", \"USER_IDENTIFIER\", \"USER_ID\", \"GEO_COUNTRY\", \"VIEW_ID\", \"SESSION_IDENTIFIER\", \"DERIVED_TSTAMP\", \"LOAD_TSTAMP\", \"EVENT_NAME\", \"EVENT_TYPE\", \"BASIS_FOR_PROCESSING\", \"CONSENT_URL\", \"CONSENT_VERSION\", \"CONSENT_SCOPES\", \"DOMAINS_APPLIED\", \"GDPR_APPLIES\", \"CMP_LOAD_TIME\" from b\n \n\n except\n\n\n select \"EVENT_ID\", \"USER_IDENTIFIER\", \"USER_ID\", \"GEO_COUNTRY\", \"VIEW_ID\", \"SESSION_IDENTIFIER\", \"DERIVED_TSTAMP\", \"LOAD_TSTAMP\", \"EVENT_NAME\", \"EVENT_TYPE\", \"BASIS_FOR_PROCESSING\", \"CONSENT_URL\", \"CONSENT_VERSION\", \"CONSENT_SCOPES\", \"DOMAINS_APPLIED\", \"GDPR_APPLIES\", \"CMP_LOAD_TIME\" from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_consent_log_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_.b8cacd3cab": {"test_metadata": {"name": "equal_rowcount", "kwargs": {"compare_model": "ref('snowplow_unified_consent_scope_status_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_scope_status_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equal_rowcount_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equal_rowcount_snowp_0fcf1ece2665d78706cd22950a9b4007.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_.b8cacd3cab", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equal_rowcount_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_"], "alias": "dbt_utils_equal_rowcount_snowp_0fcf1ece2665d78706cd22950a9b4007", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equal_rowcount_snowp_0fcf1ece2665d78706cd22950a9b4007", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "sum(coalesce(diff_count, 0))", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"fail_calc": "sum(coalesce(diff_count, 0))", "alias": "dbt_utils_equal_rowcount_snowp_0fcf1ece2665d78706cd22950a9b4007"}, "created_at": 1706612343.5272698, "relation_name": null, "raw_code": "{{ dbt_utils.test_equal_rowcount(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equal_rowcount_snowp_0fcf1ece2665d78706cd22950a9b4007\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_scope_status_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_consent_scope_status_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_equal_rowcount", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equal_rowcount_snowp_0fcf1ece2665d78706cd22950a9b4007.sql", "compiled": true, "compiled_code": "\n\n\n\n\nwith a as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_scope_status_actual\n group by id_dbtutils_test_equal_rowcount\n\n\n),\nb as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_scope_status_expected_stg\n group by id_dbtutils_test_equal_rowcount\n\n),\nfinal as (\n\n select\n \n a.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_a,\n b.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_b,\n \n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n \n\n\n)\n\nselect * from final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_consent_scope_status_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_.cd008a201b": {"test_metadata": {"name": "equality", "kwargs": {"compare_model": "ref('snowplow_unified_consent_scope_status_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_scope_status_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equality_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equality_snowplow_un_f429a0454d4014d8f3ffdd14d3f41998.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_.cd008a201b", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equality_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_"], "alias": "dbt_utils_equality_snowplow_un_f429a0454d4014d8f3ffdd14d3f41998", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equality_snowplow_un_f429a0454d4014d8f3ffdd14d3f41998", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_equality_snowplow_un_f429a0454d4014d8f3ffdd14d3f41998"}, "created_at": 1706612343.532872, "relation_name": null, "raw_code": "{{ dbt_utils.test_equality(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equality_snowplow_un_f429a0454d4014d8f3ffdd14d3f41998\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_scope_status_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_consent_scope_status_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_unified_integration_tests.test_equality", "macro.dbt.get_where_subquery", "macro.dbt_utils.test_equality"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equality_snowplow_un_f429a0454d4014d8f3ffdd14d3f41998.sql", "compiled": true, "compiled_code": "\n\n\n\n-- setup\n\n\n\n\n\n\nwith a as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_scope_status_actual\n\n),\n\nb as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_scope_status_expected_stg\n\n),\n\na_minus_b as (\n\n select \"SCOPE\", \"TOTAL_CONSENT\" from a\n \n\n except\n\n\n select \"SCOPE\", \"TOTAL_CONSENT\" from b\n\n),\n\nb_minus_a as (\n\n select \"SCOPE\", \"TOTAL_CONSENT\" from b\n \n\n except\n\n\n select \"SCOPE\", \"TOTAL_CONSENT\" from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_consent_scope_status_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_.485f757328": {"test_metadata": {"name": "equal_rowcount", "kwargs": {"compare_model": "ref('snowplow_unified_consent_totals_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_totals_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equal_rowcount_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equal_rowcount_snowp_8b1e7b68180d228f142e3ebf36d29f72.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_.485f757328", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equal_rowcount_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_"], "alias": "dbt_utils_equal_rowcount_snowp_8b1e7b68180d228f142e3ebf36d29f72", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equal_rowcount_snowp_8b1e7b68180d228f142e3ebf36d29f72", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "sum(coalesce(diff_count, 0))", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"fail_calc": "sum(coalesce(diff_count, 0))", "alias": "dbt_utils_equal_rowcount_snowp_8b1e7b68180d228f142e3ebf36d29f72"}, "created_at": 1706612343.5381117, "relation_name": null, "raw_code": "{{ dbt_utils.test_equal_rowcount(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equal_rowcount_snowp_8b1e7b68180d228f142e3ebf36d29f72\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_totals_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_consent_totals_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_equal_rowcount", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equal_rowcount_snowp_8b1e7b68180d228f142e3ebf36d29f72.sql", "compiled": true, "compiled_code": "\n\n\n\n\nwith a as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_totals_actual\n group by id_dbtutils_test_equal_rowcount\n\n\n),\nb as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_totals_expected_stg\n group by id_dbtutils_test_equal_rowcount\n\n),\nfinal as (\n\n select\n \n a.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_a,\n b.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_b,\n \n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n \n\n\n)\n\nselect * from final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_consent_totals_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_.89fccda7d0": {"test_metadata": {"name": "equality", "kwargs": {"compare_model": "ref('snowplow_unified_consent_totals_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_totals_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equality_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equality_snowplow_un_cde565a6e06b8c1c593a746e1fa51ce4.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_.89fccda7d0", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equality_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_"], "alias": "dbt_utils_equality_snowplow_un_cde565a6e06b8c1c593a746e1fa51ce4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equality_snowplow_un_cde565a6e06b8c1c593a746e1fa51ce4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_equality_snowplow_un_cde565a6e06b8c1c593a746e1fa51ce4"}, "created_at": 1706612343.5435462, "relation_name": null, "raw_code": "{{ dbt_utils.test_equality(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equality_snowplow_un_cde565a6e06b8c1c593a746e1fa51ce4\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_totals_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_consent_totals_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_unified_integration_tests.test_equality", "macro.dbt.get_where_subquery", "macro.dbt_utils.test_equality"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equality_snowplow_un_cde565a6e06b8c1c593a746e1fa51ce4.sql", "compiled": true, "compiled_code": "\n\n\n\n-- setup\n\n\n\n\n\n\nwith a as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_totals_actual\n\n),\n\nb as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_totals_expected_stg\n\n),\n\na_minus_b as (\n\n select \"CONSENT_VERSION\", \"VERSION_START_TSTAMP\", \"CONSENT_SCOPES\", \"CONSENT_URL\", \"DOMAINS_APPLIED\", \"IS_LATEST_VERSION\", \"LAST_ALLOW_ALL_EVENT\", \"TOTAL_VISITORS\", \"ALLOW_ALL\", \"ALLOW_SELECTED\", \"ALLOW\", \"PENDING\", \"DENIED\", \"EXPIRED\", \"WITHDRAWN\", \"IMPLICIT_CONSENT\", \"EXPIRES_IN_SIX_MONTHS\" from a\n \n\n except\n\n\n select \"CONSENT_VERSION\", \"VERSION_START_TSTAMP\", \"CONSENT_SCOPES\", \"CONSENT_URL\", \"DOMAINS_APPLIED\", \"IS_LATEST_VERSION\", \"LAST_ALLOW_ALL_EVENT\", \"TOTAL_VISITORS\", \"ALLOW_ALL\", \"ALLOW_SELECTED\", \"ALLOW\", \"PENDING\", \"DENIED\", \"EXPIRED\", \"WITHDRAWN\", \"IMPLICIT_CONSENT\", \"EXPIRES_IN_SIX_MONTHS\" from b\n\n),\n\nb_minus_a as (\n\n select \"CONSENT_VERSION\", \"VERSION_START_TSTAMP\", \"CONSENT_SCOPES\", \"CONSENT_URL\", \"DOMAINS_APPLIED\", \"IS_LATEST_VERSION\", \"LAST_ALLOW_ALL_EVENT\", \"TOTAL_VISITORS\", \"ALLOW_ALL\", \"ALLOW_SELECTED\", \"ALLOW\", \"PENDING\", \"DENIED\", \"EXPIRED\", \"WITHDRAWN\", \"IMPLICIT_CONSENT\", \"EXPIRES_IN_SIX_MONTHS\" from b\n \n\n except\n\n\n select \"CONSENT_VERSION\", \"VERSION_START_TSTAMP\", \"CONSENT_SCOPES\", \"CONSENT_URL\", \"DOMAINS_APPLIED\", \"IS_LATEST_VERSION\", \"LAST_ALLOW_ALL_EVENT\", \"TOTAL_VISITORS\", \"ALLOW_ALL\", \"ALLOW_SELECTED\", \"ALLOW\", \"PENDING\", \"DENIED\", \"EXPIRED\", \"WITHDRAWN\", \"IMPLICIT_CONSENT\", \"EXPIRES_IN_SIX_MONTHS\" from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_consent_totals_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_.8251b18a75": {"test_metadata": {"name": "equal_rowcount", "kwargs": {"compare_model": "ref('snowplow_unified_consent_users_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_users_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equal_rowcount_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equal_rowcount_snowp_a4657b23c33446536f70b2231efc04fa.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_.8251b18a75", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equal_rowcount_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_"], "alias": "dbt_utils_equal_rowcount_snowp_a4657b23c33446536f70b2231efc04fa", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equal_rowcount_snowp_a4657b23c33446536f70b2231efc04fa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "sum(coalesce(diff_count, 0))", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"fail_calc": "sum(coalesce(diff_count, 0))", "alias": "dbt_utils_equal_rowcount_snowp_a4657b23c33446536f70b2231efc04fa"}, "created_at": 1706612343.5488157, "relation_name": null, "raw_code": "{{ dbt_utils.test_equal_rowcount(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equal_rowcount_snowp_a4657b23c33446536f70b2231efc04fa\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_users_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_consent_users_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_equal_rowcount", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equal_rowcount_snowp_a4657b23c33446536f70b2231efc04fa.sql", "compiled": true, "compiled_code": "\n\n\n\n\nwith a as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_users_actual\n group by id_dbtutils_test_equal_rowcount\n\n\n),\nb as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_users_expected_stg\n group by id_dbtutils_test_equal_rowcount\n\n),\nfinal as (\n\n select\n \n a.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_a,\n b.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_b,\n \n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n \n\n\n)\n\nselect * from final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_consent_users_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_.ed39291772": {"test_metadata": {"name": "equality", "kwargs": {"compare_model": "ref('snowplow_unified_consent_users_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_users_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equality_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equality_snowplow_un_46302f90e61d9419f6e8f92b0b2d3701.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_.ed39291772", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equality_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_"], "alias": "dbt_utils_equality_snowplow_un_46302f90e61d9419f6e8f92b0b2d3701", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equality_snowplow_un_46302f90e61d9419f6e8f92b0b2d3701", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_equality_snowplow_un_46302f90e61d9419f6e8f92b0b2d3701"}, "created_at": 1706612343.554139, "relation_name": null, "raw_code": "{{ dbt_utils.test_equality(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equality_snowplow_un_46302f90e61d9419f6e8f92b0b2d3701\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_users_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_consent_users_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_unified_integration_tests.test_equality", "macro.dbt.get_where_subquery", "macro.dbt_utils.test_equality"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equality_snowplow_un_46302f90e61d9419f6e8f92b0b2d3701.sql", "compiled": true, "compiled_code": "\n\n\n\n-- setup\n\n\n\n\n\n\nwith a as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_users_actual\n\n),\n\nb as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_users_expected_stg\n\n),\n\na_minus_b as (\n\n select \"USER_IDENTIFIER\", \"USER_ID\", \"GEO_COUNTRY\", \"CMP_EVENTS\", \"CONSENT_EVENTS\", \"LAST_CMP_EVENT_TSTAMP\", \"LAST_CONSENT_EVENT_TSTAMP\", \"LAST_CONSENT_EVENT_TYPE\", \"LAST_CONSENT_SCOPES\", \"LAST_CONSENT_VERSION\", \"LAST_CONSENT_URL\", \"LAST_DOMAINS_APPLIED\", \"LAST_PROCESSED_EVENT\", \"IS_LATEST_VERSION\" from a\n \n\n except\n\n\n select \"USER_IDENTIFIER\", \"USER_ID\", \"GEO_COUNTRY\", \"CMP_EVENTS\", \"CONSENT_EVENTS\", \"LAST_CMP_EVENT_TSTAMP\", \"LAST_CONSENT_EVENT_TSTAMP\", \"LAST_CONSENT_EVENT_TYPE\", \"LAST_CONSENT_SCOPES\", \"LAST_CONSENT_VERSION\", \"LAST_CONSENT_URL\", \"LAST_DOMAINS_APPLIED\", \"LAST_PROCESSED_EVENT\", \"IS_LATEST_VERSION\" from b\n\n),\n\nb_minus_a as (\n\n select \"USER_IDENTIFIER\", \"USER_ID\", \"GEO_COUNTRY\", \"CMP_EVENTS\", \"CONSENT_EVENTS\", \"LAST_CMP_EVENT_TSTAMP\", \"LAST_CONSENT_EVENT_TSTAMP\", \"LAST_CONSENT_EVENT_TYPE\", \"LAST_CONSENT_SCOPES\", \"LAST_CONSENT_VERSION\", \"LAST_CONSENT_URL\", \"LAST_DOMAINS_APPLIED\", \"LAST_PROCESSED_EVENT\", \"IS_LATEST_VERSION\" from b\n \n\n except\n\n\n select \"USER_IDENTIFIER\", \"USER_ID\", \"GEO_COUNTRY\", \"CMP_EVENTS\", \"CONSENT_EVENTS\", \"LAST_CMP_EVENT_TSTAMP\", \"LAST_CONSENT_EVENT_TSTAMP\", \"LAST_CONSENT_EVENT_TYPE\", \"LAST_CONSENT_SCOPES\", \"LAST_CONSENT_VERSION\", \"LAST_CONSENT_URL\", \"LAST_DOMAINS_APPLIED\", \"LAST_PROCESSED_EVENT\", \"IS_LATEST_VERSION\" from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_consent_users_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_.7b92210c06": {"test_metadata": {"name": "equal_rowcount", "kwargs": {"compare_model": "ref('snowplow_unified_consent_versions_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_versions_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equal_rowcount_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equal_rowcount_snowp_3a972f2a3f195895b44b5b31c423f6aa.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_.7b92210c06", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equal_rowcount_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_"], "alias": "dbt_utils_equal_rowcount_snowp_3a972f2a3f195895b44b5b31c423f6aa", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equal_rowcount_snowp_3a972f2a3f195895b44b5b31c423f6aa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "sum(coalesce(diff_count, 0))", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"fail_calc": "sum(coalesce(diff_count, 0))", "alias": "dbt_utils_equal_rowcount_snowp_3a972f2a3f195895b44b5b31c423f6aa"}, "created_at": 1706612343.5590732, "relation_name": null, "raw_code": "{{ dbt_utils.test_equal_rowcount(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equal_rowcount_snowp_3a972f2a3f195895b44b5b31c423f6aa\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_versions_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_consent_versions_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_equal_rowcount", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equal_rowcount_snowp_3a972f2a3f195895b44b5b31c423f6aa.sql", "compiled": true, "compiled_code": "\n\n\n\n\nwith a as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_versions_actual\n group by id_dbtutils_test_equal_rowcount\n\n\n),\nb as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_versions_expected_stg\n group by id_dbtutils_test_equal_rowcount\n\n),\nfinal as (\n\n select\n \n a.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_a,\n b.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_b,\n \n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n \n\n\n)\n\nselect * from final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_consent_versions_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_.6e4043b1d2": {"test_metadata": {"name": "equality", "kwargs": {"compare_model": "ref('snowplow_unified_consent_versions_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_versions_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equality_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equality_snowplow_un_a0dfb79d13f179703927120ce753dd9d.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_.6e4043b1d2", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equality_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_"], "alias": "dbt_utils_equality_snowplow_un_a0dfb79d13f179703927120ce753dd9d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equality_snowplow_un_a0dfb79d13f179703927120ce753dd9d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_equality_snowplow_un_a0dfb79d13f179703927120ce753dd9d"}, "created_at": 1706612343.5643177, "relation_name": null, "raw_code": "{{ dbt_utils.test_equality(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equality_snowplow_un_a0dfb79d13f179703927120ce753dd9d\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_versions_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_consent_versions_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_unified_integration_tests.test_equality", "macro.dbt.get_where_subquery", "macro.dbt_utils.test_equality"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equality_snowplow_un_a0dfb79d13f179703927120ce753dd9d.sql", "compiled": true, "compiled_code": "\n\n\n\n-- setup\n\n\n\n\n\n\nwith a as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_versions_actual\n\n),\n\nb as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_versions_expected_stg\n\n),\n\na_minus_b as (\n\n select \"CONSENT_VERSION\", \"VERSION_START_TSTAMP\", \"CONSENT_SCOPES\", \"CONSENT_URL\", \"DOMAINS_APPLIED\", \"IS_LATEST_VERSION\", \"LAST_ALLOW_ALL_EVENT\" from a\n \n\n except\n\n\n select \"CONSENT_VERSION\", \"VERSION_START_TSTAMP\", \"CONSENT_SCOPES\", \"CONSENT_URL\", \"DOMAINS_APPLIED\", \"IS_LATEST_VERSION\", \"LAST_ALLOW_ALL_EVENT\" from b\n\n),\n\nb_minus_a as (\n\n select \"CONSENT_VERSION\", \"VERSION_START_TSTAMP\", \"CONSENT_SCOPES\", \"CONSENT_URL\", \"DOMAINS_APPLIED\", \"IS_LATEST_VERSION\", \"LAST_ALLOW_ALL_EVENT\" from b\n \n\n except\n\n\n select \"CONSENT_VERSION\", \"VERSION_START_TSTAMP\", \"CONSENT_SCOPES\", \"CONSENT_URL\", \"DOMAINS_APPLIED\", \"IS_LATEST_VERSION\", \"LAST_ALLOW_ALL_EVENT\" from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_consent_versions_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg_.d3e434d0cf": {"test_metadata": {"name": "equal_rowcount", "kwargs": {"compare_model": "ref('snowplow_unified_web_vital_measurements_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_web_vital_measurements_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equal_rowcount_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equal_rowcount_snowp_5417d1b9fed6b6b0058e0d843f1ef198.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg_.d3e434d0cf", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equal_rowcount_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg_"], "alias": "dbt_utils_equal_rowcount_snowp_5417d1b9fed6b6b0058e0d843f1ef198", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_equal_rowcount_snowp_5417d1b9fed6b6b0058e0d843f1ef198", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "sum(coalesce(diff_count, 0))", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"fail_calc": "sum(coalesce(diff_count, 0))", "alias": "dbt_utils_equal_rowcount_snowp_5417d1b9fed6b6b0058e0d843f1ef198"}, "created_at": 1706612343.5704544, "relation_name": null, "raw_code": "{{ dbt_utils.test_equal_rowcount(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equal_rowcount_snowp_5417d1b9fed6b6b0058e0d843f1ef198\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_web_vital_measurements_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_web_vital_measurements_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_equal_rowcount", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/dbt_utils_equal_rowcount_snowp_5417d1b9fed6b6b0058e0d843f1ef198.sql", "compiled": true, "compiled_code": "\n\n\n\n\nwith a as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_web_vital_measurements_actual\n group by id_dbtutils_test_equal_rowcount\n\n\n),\nb as (\n\n select \n \n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_web_vital_measurements_expected_stg\n group by id_dbtutils_test_equal_rowcount\n\n),\nfinal as (\n\n select\n \n a.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_a,\n b.id_dbtutils_test_equal_rowcount as id_dbtutils_test_equal_rowcount_b,\n \n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n \n\n\n)\n\nselect * from final\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_web_vital_measurements_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_actual"}, "test.snowplow_unified_integration_tests.snowplow_unified_integration_tests_equality_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg___3.2ce4bf2e3f": {"test_metadata": {"name": "equality", "kwargs": {"compare_model": "ref('snowplow_unified_web_vital_measurements_expected_stg')", "precision": 3, "model": "{{ get_where_subquery(ref('snowplow_unified_web_vital_measurements_actual')) }}"}, "namespace": "snowplow_unified_integration_tests"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "snowplow_unified_integration_tests_equality_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg___3", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "snowplow_unified_integration_t_d23c0e3d5b10a056388ce1f3b5665603.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.snowplow_unified_integration_tests_equality_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg___3.2ce4bf2e3f", "fqn": ["snowplow_unified_integration_tests", "actual", "snowplow_unified_integration_tests_equality_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg___3"], "alias": "snowplow_unified_integration_t_d23c0e3d5b10a056388ce1f3b5665603", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "snowplow_unified_integration_t_d23c0e3d5b10a056388ce1f3b5665603", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"fail_calc": "\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n", "alias": "snowplow_unified_integration_t_d23c0e3d5b10a056388ce1f3b5665603"}, "created_at": 1706612343.5759003, "relation_name": null, "raw_code": "{{ snowplow_unified_integration_tests.test_equality(**_dbt_generic_test_kwargs) }}{{ config(alias=\"snowplow_unified_integration_t_d23c0e3d5b10a056388ce1f3b5665603\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_web_vital_measurements_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_web_vital_measurements_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_unified_integration_tests.test_equality", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected_stg", "model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_actual"]}, "compiled_path": "target/compiled/snowplow_unified_integration_tests/models/actual/actual_vs_expected.yml/snowplow_unified_integration_t_d23c0e3d5b10a056388ce1f3b5665603.sql", "compiled": true, "compiled_code": "\n\n\n\n-- setup\n\n\n\n\n\n\nwith a as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_web_vital_measurements_actual\n\n),\n\nb as (\n\n select * from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_web_vital_measurements_expected_stg\n\n),\n\na_minus_b as (\n\n select from a\n \n\n except\n\n\n select from b\n\n),\n\nb_minus_a as (\n\n select from b\n \n\n except\n\n\n select from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_web_vital_measurements_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_actual"}, "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_views_mobile_screen_engagement_actual_ref_snowplow_unified_views_mobile_screen_engagement_expected_stg_.9b5480d2ee": {"test_metadata": {"name": "equal_rowcount", "kwargs": {"compare_model": "ref('snowplow_unified_views_mobile_screen_engagement_expected_stg')", "model": "{{ get_where_subquery(ref('snowplow_unified_views_mobile_screen_engagement_actual')) }}"}, "namespace": "dbt_utils"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "dbt_utils_equal_rowcount_snowplow_unified_views_mobile_screen_engagement_actual_ref_snowplow_unified_views_mobile_screen_engagement_expected_stg_", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "dbt_utils_equal_rowcount_snowp_177e6869561bbd7ffc9fad7846409975.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_views_mobile_screen_engagement_actual_ref_snowplow_unified_views_mobile_screen_engagement_expected_stg_.9b5480d2ee", "fqn": ["snowplow_unified_integration_tests", "actual", "dbt_utils_equal_rowcount_snowplow_unified_views_mobile_screen_engagement_actual_ref_snowplow_unified_views_mobile_screen_engagement_expected_stg_"], "alias": "dbt_utils_equal_rowcount_snowp_177e6869561bbd7ffc9fad7846409975", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "dbt_utils_equal_rowcount_snowp_177e6869561bbd7ffc9fad7846409975", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "sum(coalesce(diff_count, 0))", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"fail_calc": "sum(coalesce(diff_count, 0))", "alias": "dbt_utils_equal_rowcount_snowp_177e6869561bbd7ffc9fad7846409975"}, "created_at": 1706612343.605238, "relation_name": null, "raw_code": "{{ dbt_utils.test_equal_rowcount(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_equal_rowcount_snowp_177e6869561bbd7ffc9fad7846409975\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_mobile_screen_engagement_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_views_mobile_screen_engagement_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_equal_rowcount", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected_stg"]}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_views_mobile_screen_engagement_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_actual"}, "test.snowplow_unified_integration_tests.snowplow_unified_integration_tests_equality_snowplow_unified_views_mobile_screen_engagement_actual_ref_snowplow_unified_views_mobile_screen_engagement_expected_stg___3.ffe28d2ef0": {"test_metadata": {"name": "equality", "kwargs": {"compare_model": "ref('snowplow_unified_views_mobile_screen_engagement_expected_stg')", "precision": 3, "model": "{{ get_where_subquery(ref('snowplow_unified_views_mobile_screen_engagement_actual')) }}"}, "namespace": "snowplow_unified_integration_tests"}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "snowplow_unified_integration_tests_equality_snowplow_unified_views_mobile_screen_engagement_actual_ref_snowplow_unified_views_mobile_screen_engagement_expected_stg___3", "resource_type": "test", "package_name": "snowplow_unified_integration_tests", "path": "snowplow_unified_integration_t_0119db53b0c86a1fec3e6c3b882dbae6.sql", "original_file_path": "models/actual/actual_vs_expected.yml", "unique_id": "test.snowplow_unified_integration_tests.snowplow_unified_integration_tests_equality_snowplow_unified_views_mobile_screen_engagement_actual_ref_snowplow_unified_views_mobile_screen_engagement_expected_stg___3.ffe28d2ef0", "fqn": ["snowplow_unified_integration_tests", "actual", "snowplow_unified_integration_tests_equality_snowplow_unified_views_mobile_screen_engagement_actual_ref_snowplow_unified_views_mobile_screen_engagement_expected_stg___3"], "alias": "snowplow_unified_integration_t_0119db53b0c86a1fec3e6c3b882dbae6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "snowplow_unified_integration_t_0119db53b0c86a1fec3e6c3b882dbae6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"fail_calc": "\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n", "alias": "snowplow_unified_integration_t_0119db53b0c86a1fec3e6c3b882dbae6"}, "created_at": 1706612343.6112056, "relation_name": null, "raw_code": "{{ snowplow_unified_integration_tests.test_equality(**_dbt_generic_test_kwargs) }}{{ config(alias=\"snowplow_unified_integration_t_0119db53b0c86a1fec3e6c3b882dbae6\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_mobile_screen_engagement_expected_stg", "package": null, "version": null}, {"name": "snowplow_unified_views_mobile_screen_engagement_actual", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_unified_integration_tests.test_equality", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected_stg"]}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_views_mobile_screen_engagement_actual", "attached_node": "model.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_actual"}, "test.snowplow_unified.unique_snowplow_unified_views_view_id.deffd898f9": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "view_id", "model": "{{ get_where_subquery(ref('snowplow_unified_views')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_views_view_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_views_view_id.sql", "original_file_path": "models/views/views.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_views_view_id.deffd898f9", "fqn": ["snowplow_unified", "views", "unique_snowplow_unified_views_view_id"], "alias": "unique_snowplow_unified_views_view_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7144487, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/views.yml/unique_snowplow_unified_views_view_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n view_id as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views\nwhere view_id is not null\ngroup by view_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "view_id", "file_key_name": "models.snowplow_unified_views", "attached_node": "model.snowplow_unified.snowplow_unified_views"}, "test.snowplow_unified.not_null_snowplow_unified_views_view_id.3a1d547e18": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "view_id", "model": "{{ get_where_subquery(ref('snowplow_unified_views')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_view_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_view_id.sql", "original_file_path": "models/views/views.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_view_id.3a1d547e18", "fqn": ["snowplow_unified", "views", "not_null_snowplow_unified_views_view_id"], "alias": "not_null_snowplow_unified_views_view_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.717059, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/views.yml/not_null_snowplow_unified_views_view_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect view_id\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views\nwhere view_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "view_id", "file_key_name": "models.snowplow_unified_views", "attached_node": "model.snowplow_unified.snowplow_unified_views"}, "test.snowplow_unified.unique_snowplow_unified_views_event_id.e61ed6df21": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_views')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_views_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_views_event_id.sql", "original_file_path": "models/views/views.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_views_event_id.e61ed6df21", "fqn": ["snowplow_unified", "views", "unique_snowplow_unified_views_event_id"], "alias": "unique_snowplow_unified_views_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7195945, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/views.yml/unique_snowplow_unified_views_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_views", "attached_node": "model.snowplow_unified.snowplow_unified_views"}, "test.snowplow_unified.not_null_snowplow_unified_views_event_id.4fc9c1e85a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_views')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_event_id.sql", "original_file_path": "models/views/views.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_event_id.4fc9c1e85a", "fqn": ["snowplow_unified", "views", "not_null_snowplow_unified_views_event_id"], "alias": "not_null_snowplow_unified_views_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7218103, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/views.yml/not_null_snowplow_unified_views_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_views", "attached_node": "model.snowplow_unified.snowplow_unified_views"}, "test.snowplow_unified.not_null_snowplow_unified_views_session_identifier.f4ae3412ff": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_views')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_session_identifier.sql", "original_file_path": "models/views/views.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_session_identifier.f4ae3412ff", "fqn": ["snowplow_unified", "views", "not_null_snowplow_unified_views_session_identifier"], "alias": "not_null_snowplow_unified_views_session_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.724089, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/views.yml/not_null_snowplow_unified_views_session_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views\nwhere session_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_views", "attached_node": "model.snowplow_unified.snowplow_unified_views"}, "test.snowplow_unified.not_null_snowplow_unified_views_device_session_index.3a9aeaa22e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "device_session_index", "model": "{{ get_where_subquery(ref('snowplow_unified_views')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_device_session_index", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_device_session_index.sql", "original_file_path": "models/views/views.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_device_session_index.3a9aeaa22e", "fqn": ["snowplow_unified", "views", "not_null_snowplow_unified_views_device_session_index"], "alias": "not_null_snowplow_unified_views_device_session_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.726292, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/views.yml/not_null_snowplow_unified_views_device_session_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect device_session_index\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views\nwhere device_session_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "device_session_index", "file_key_name": "models.snowplow_unified_views", "attached_node": "model.snowplow_unified.snowplow_unified_views"}, "test.snowplow_unified.not_null_snowplow_unified_views_view_in_session_index.e092c63b1e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "view_in_session_index", "model": "{{ get_where_subquery(ref('snowplow_unified_views')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_view_in_session_index", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_view_in_session_index.sql", "original_file_path": "models/views/views.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_view_in_session_index.e092c63b1e", "fqn": ["snowplow_unified", "views", "not_null_snowplow_unified_views_view_in_session_index"], "alias": "not_null_snowplow_unified_views_view_in_session_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7284226, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/views.yml/not_null_snowplow_unified_views_view_in_session_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect view_in_session_index\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views\nwhere view_in_session_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "view_in_session_index", "file_key_name": "models.snowplow_unified_views", "attached_node": "model.snowplow_unified.snowplow_unified_views"}, "test.snowplow_unified.not_null_snowplow_unified_views_views_in_session.b139e474d0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "views_in_session", "model": "{{ get_where_subquery(ref('snowplow_unified_views')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_views_in_session", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_views_in_session.sql", "original_file_path": "models/views/views.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_views_in_session.b139e474d0", "fqn": ["snowplow_unified", "views", "not_null_snowplow_unified_views_views_in_session"], "alias": "not_null_snowplow_unified_views_views_in_session", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7309105, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/views.yml/not_null_snowplow_unified_views_views_in_session.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect views_in_session\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views\nwhere views_in_session is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "views_in_session", "file_key_name": "models.snowplow_unified_views", "attached_node": "model.snowplow_unified.snowplow_unified_views"}, "test.snowplow_unified.not_null_snowplow_unified_views_dvce_created_tstamp.2cfe0b4cb4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "dvce_created_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_views')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_dvce_created_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_dvce_created_tstamp.sql", "original_file_path": "models/views/views.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_dvce_created_tstamp.2cfe0b4cb4", "fqn": ["snowplow_unified", "views", "not_null_snowplow_unified_views_dvce_created_tstamp"], "alias": "not_null_snowplow_unified_views_dvce_created_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7329473, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/views.yml/not_null_snowplow_unified_views_dvce_created_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect dvce_created_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views\nwhere dvce_created_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "dvce_created_tstamp", "file_key_name": "models.snowplow_unified_views", "attached_node": "model.snowplow_unified.snowplow_unified_views"}, "test.snowplow_unified.not_null_snowplow_unified_views_collector_tstamp.826c18335b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "collector_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_views')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_collector_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_collector_tstamp.sql", "original_file_path": "models/views/views.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_collector_tstamp.826c18335b", "fqn": ["snowplow_unified", "views", "not_null_snowplow_unified_views_collector_tstamp"], "alias": "not_null_snowplow_unified_views_collector_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7350008, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/views.yml/not_null_snowplow_unified_views_collector_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collector_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views\nwhere collector_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "collector_tstamp", "file_key_name": "models.snowplow_unified_views", "attached_node": "model.snowplow_unified.snowplow_unified_views"}, "test.snowplow_unified.not_null_snowplow_unified_views_derived_tstamp.8e5fcb344e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "derived_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_views')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_derived_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_derived_tstamp.sql", "original_file_path": "models/views/views.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_derived_tstamp.8e5fcb344e", "fqn": ["snowplow_unified", "views", "not_null_snowplow_unified_views_derived_tstamp"], "alias": "not_null_snowplow_unified_views_derived_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7370315, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/views.yml/not_null_snowplow_unified_views_derived_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect derived_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views\nwhere derived_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "derived_tstamp", "file_key_name": "models.snowplow_unified_views", "attached_node": "model.snowplow_unified.snowplow_unified_views"}, "test.snowplow_unified.not_null_snowplow_unified_views_start_tstamp.dbc42b7f20": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "start_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_views')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_start_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_start_tstamp.sql", "original_file_path": "models/views/views.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_start_tstamp.dbc42b7f20", "fqn": ["snowplow_unified", "views", "not_null_snowplow_unified_views_start_tstamp"], "alias": "not_null_snowplow_unified_views_start_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.739083, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/views.yml/not_null_snowplow_unified_views_start_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect start_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views\nwhere start_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "start_tstamp", "file_key_name": "models.snowplow_unified_views", "attached_node": "model.snowplow_unified.snowplow_unified_views"}, "test.snowplow_unified.not_null_snowplow_unified_views_end_tstamp.901b1d09a9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "end_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_views')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_end_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_end_tstamp.sql", "original_file_path": "models/views/views.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_end_tstamp.901b1d09a9", "fqn": ["snowplow_unified", "views", "not_null_snowplow_unified_views_end_tstamp"], "alias": "not_null_snowplow_unified_views_end_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.74154, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/views.yml/not_null_snowplow_unified_views_end_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect end_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views\nwhere end_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "end_tstamp", "file_key_name": "models.snowplow_unified_views", "attached_node": "model.snowplow_unified.snowplow_unified_views"}, "test.snowplow_unified.not_null_snowplow_unified_views_engaged_time_in_s.dd74f36be9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "engaged_time_in_s", "model": "{{ get_where_subquery(ref('snowplow_unified_views')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_engaged_time_in_s", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_engaged_time_in_s.sql", "original_file_path": "models/views/views.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_engaged_time_in_s.dd74f36be9", "fqn": ["snowplow_unified", "views", "not_null_snowplow_unified_views_engaged_time_in_s"], "alias": "not_null_snowplow_unified_views_engaged_time_in_s", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7435951, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/views.yml/not_null_snowplow_unified_views_engaged_time_in_s.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engaged_time_in_s\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views\nwhere engaged_time_in_s is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "engaged_time_in_s", "file_key_name": "models.snowplow_unified_views", "attached_node": "model.snowplow_unified.snowplow_unified_views"}, "test.snowplow_unified.not_null_snowplow_unified_views_absolute_time_in_s.54b3c5c9fc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "absolute_time_in_s", "model": "{{ get_where_subquery(ref('snowplow_unified_views')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_absolute_time_in_s", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_absolute_time_in_s.sql", "original_file_path": "models/views/views.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_absolute_time_in_s.54b3c5c9fc", "fqn": ["snowplow_unified", "views", "not_null_snowplow_unified_views_absolute_time_in_s"], "alias": "not_null_snowplow_unified_views_absolute_time_in_s", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7456148, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/views.yml/not_null_snowplow_unified_views_absolute_time_in_s.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect absolute_time_in_s\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_views\nwhere absolute_time_in_s is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "absolute_time_in_s", "file_key_name": "models.snowplow_unified_views", "attached_node": "model.snowplow_unified.snowplow_unified_views"}, "test.snowplow_unified.unique_snowplow_unified_views_this_run_view_id.5cfb771408": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "view_id", "model": "{{ get_where_subquery(ref('snowplow_unified_views_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_views_this_run_view_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_views_this_run_view_id.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_views_this_run_view_id.5cfb771408", "fqn": ["snowplow_unified", "views", "scratch", "unique_snowplow_unified_views_this_run_view_id"], "alias": "unique_snowplow_unified_views_this_run_view_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7706335, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/unique_snowplow_unified_views_this_run_view_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n view_id as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_views_this_run\nwhere view_id is not null\ngroup by view_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "view_id", "file_key_name": "models.snowplow_unified_views_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_views_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_views_this_run_view_id.6bc7169d25": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "view_id", "model": "{{ get_where_subquery(ref('snowplow_unified_views_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_this_run_view_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_this_run_view_id.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_view_id.6bc7169d25", "fqn": ["snowplow_unified", "views", "scratch", "not_null_snowplow_unified_views_this_run_view_id"], "alias": "not_null_snowplow_unified_views_this_run_view_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7729464, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/not_null_snowplow_unified_views_this_run_view_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect view_id\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_views_this_run\nwhere view_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "view_id", "file_key_name": "models.snowplow_unified_views_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_views_this_run"}, "test.snowplow_unified.unique_snowplow_unified_views_this_run_event_id.5609868632": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_views_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_views_this_run_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_views_this_run_event_id.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_views_this_run_event_id.5609868632", "fqn": ["snowplow_unified", "views", "scratch", "unique_snowplow_unified_views_this_run_event_id"], "alias": "unique_snowplow_unified_views_this_run_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7753644, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/unique_snowplow_unified_views_this_run_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_views_this_run\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_views_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_views_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_views_this_run_event_id.1cbbdc3adf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_views_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_this_run_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_this_run_event_id.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_event_id.1cbbdc3adf", "fqn": ["snowplow_unified", "views", "scratch", "not_null_snowplow_unified_views_this_run_event_id"], "alias": "not_null_snowplow_unified_views_this_run_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7774456, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/not_null_snowplow_unified_views_this_run_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_views_this_run\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_views_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_views_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_views_this_run_session_identifier.59be3a100c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_views_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_this_run_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_this_run_session_identifier.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_session_identifier.59be3a100c", "fqn": ["snowplow_unified", "views", "scratch", "not_null_snowplow_unified_views_this_run_session_identifier"], "alias": "not_null_snowplow_unified_views_this_run_session_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7795267, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/not_null_snowplow_unified_views_this_run_session_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_views_this_run\nwhere session_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_views_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_views_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_views_this_run_device_session_index.3c52b66c6d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "device_session_index", "model": "{{ get_where_subquery(ref('snowplow_unified_views_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_this_run_device_session_index", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_this_run_device_session_index.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_device_session_index.3c52b66c6d", "fqn": ["snowplow_unified", "views", "scratch", "not_null_snowplow_unified_views_this_run_device_session_index"], "alias": "not_null_snowplow_unified_views_this_run_device_session_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7815626, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/not_null_snowplow_unified_views_this_run_device_session_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect device_session_index\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_views_this_run\nwhere device_session_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "device_session_index", "file_key_name": "models.snowplow_unified_views_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_views_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_views_this_run_view_in_session_index.5ce5ac1b50": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "view_in_session_index", "model": "{{ get_where_subquery(ref('snowplow_unified_views_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_this_run_view_in_session_index", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_this_run_view_in_session_index.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_view_in_session_index.5ce5ac1b50", "fqn": ["snowplow_unified", "views", "scratch", "not_null_snowplow_unified_views_this_run_view_in_session_index"], "alias": "not_null_snowplow_unified_views_this_run_view_in_session_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.783602, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/not_null_snowplow_unified_views_this_run_view_in_session_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect view_in_session_index\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_views_this_run\nwhere view_in_session_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "view_in_session_index", "file_key_name": "models.snowplow_unified_views_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_views_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_views_this_run_views_in_session.6dc8364a51": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "views_in_session", "model": "{{ get_where_subquery(ref('snowplow_unified_views_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_this_run_views_in_session", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_this_run_views_in_session.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_views_in_session.6dc8364a51", "fqn": ["snowplow_unified", "views", "scratch", "not_null_snowplow_unified_views_this_run_views_in_session"], "alias": "not_null_snowplow_unified_views_this_run_views_in_session", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7859101, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/not_null_snowplow_unified_views_this_run_views_in_session.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect views_in_session\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_views_this_run\nwhere views_in_session is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "views_in_session", "file_key_name": "models.snowplow_unified_views_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_views_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_views_this_run_dvce_created_tstamp.19b30ff7fb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "dvce_created_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_views_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_this_run_dvce_created_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_this_run_dvce_created_tstamp.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_dvce_created_tstamp.19b30ff7fb", "fqn": ["snowplow_unified", "views", "scratch", "not_null_snowplow_unified_views_this_run_dvce_created_tstamp"], "alias": "not_null_snowplow_unified_views_this_run_dvce_created_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7879312, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/not_null_snowplow_unified_views_this_run_dvce_created_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect dvce_created_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_views_this_run\nwhere dvce_created_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "dvce_created_tstamp", "file_key_name": "models.snowplow_unified_views_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_views_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_views_this_run_collector_tstamp.98b0c0df1b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "collector_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_views_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_this_run_collector_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_this_run_collector_tstamp.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_collector_tstamp.98b0c0df1b", "fqn": ["snowplow_unified", "views", "scratch", "not_null_snowplow_unified_views_this_run_collector_tstamp"], "alias": "not_null_snowplow_unified_views_this_run_collector_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.789963, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/not_null_snowplow_unified_views_this_run_collector_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collector_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_views_this_run\nwhere collector_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "collector_tstamp", "file_key_name": "models.snowplow_unified_views_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_views_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_views_this_run_derived_tstamp.3270a2d7ef": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "derived_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_views_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_this_run_derived_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_this_run_derived_tstamp.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_derived_tstamp.3270a2d7ef", "fqn": ["snowplow_unified", "views", "scratch", "not_null_snowplow_unified_views_this_run_derived_tstamp"], "alias": "not_null_snowplow_unified_views_this_run_derived_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7919872, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/not_null_snowplow_unified_views_this_run_derived_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect derived_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_views_this_run\nwhere derived_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "derived_tstamp", "file_key_name": "models.snowplow_unified_views_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_views_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_views_this_run_start_tstamp.c8c1676039": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "start_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_views_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_this_run_start_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_this_run_start_tstamp.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_start_tstamp.c8c1676039", "fqn": ["snowplow_unified", "views", "scratch", "not_null_snowplow_unified_views_this_run_start_tstamp"], "alias": "not_null_snowplow_unified_views_this_run_start_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7940414, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/not_null_snowplow_unified_views_this_run_start_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect start_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_views_this_run\nwhere start_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "start_tstamp", "file_key_name": "models.snowplow_unified_views_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_views_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_views_this_run_end_tstamp.4af862c0e6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "end_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_views_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_this_run_end_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_this_run_end_tstamp.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_end_tstamp.4af862c0e6", "fqn": ["snowplow_unified", "views", "scratch", "not_null_snowplow_unified_views_this_run_end_tstamp"], "alias": "not_null_snowplow_unified_views_this_run_end_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7964172, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/not_null_snowplow_unified_views_this_run_end_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect end_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_views_this_run\nwhere end_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "end_tstamp", "file_key_name": "models.snowplow_unified_views_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_views_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_views_this_run_engaged_time_in_s.efb00705e1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "engaged_time_in_s", "model": "{{ get_where_subquery(ref('snowplow_unified_views_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_this_run_engaged_time_in_s", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_this_run_engaged_time_in_s.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_engaged_time_in_s.efb00705e1", "fqn": ["snowplow_unified", "views", "scratch", "not_null_snowplow_unified_views_this_run_engaged_time_in_s"], "alias": "not_null_snowplow_unified_views_this_run_engaged_time_in_s", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.7984629, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/not_null_snowplow_unified_views_this_run_engaged_time_in_s.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engaged_time_in_s\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_views_this_run\nwhere engaged_time_in_s is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "engaged_time_in_s", "file_key_name": "models.snowplow_unified_views_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_views_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_views_this_run_absolute_time_in_s.960178ffa8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "absolute_time_in_s", "model": "{{ get_where_subquery(ref('snowplow_unified_views_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_views_this_run_absolute_time_in_s", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_views_this_run_absolute_time_in_s.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_absolute_time_in_s.960178ffa8", "fqn": ["snowplow_unified", "views", "scratch", "not_null_snowplow_unified_views_this_run_absolute_time_in_s"], "alias": "not_null_snowplow_unified_views_this_run_absolute_time_in_s", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.800466, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_views_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_views_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/not_null_snowplow_unified_views_this_run_absolute_time_in_s.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect absolute_time_in_s\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_views_this_run\nwhere absolute_time_in_s is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "absolute_time_in_s", "file_key_name": "models.snowplow_unified_views_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_views_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_pv_engaged_time_view_id.fab3bfc907": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "view_id", "model": "{{ get_where_subquery(ref('snowplow_unified_pv_engaged_time')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_pv_engaged_time_view_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_pv_engaged_time_view_id.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_pv_engaged_time_view_id.fab3bfc907", "fqn": ["snowplow_unified", "views", "scratch", "not_null_snowplow_unified_pv_engaged_time_view_id"], "alias": "not_null_snowplow_unified_pv_engaged_time_view_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.8025568, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_pv_engaged_time", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_pv_engaged_time"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/not_null_snowplow_unified_pv_engaged_time_view_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect view_id\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_pv_engaged_time\nwhere view_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "view_id", "file_key_name": "models.snowplow_unified_pv_engaged_time", "attached_node": "model.snowplow_unified.snowplow_unified_pv_engaged_time"}, "test.snowplow_unified.not_null_snowplow_unified_pv_engaged_time_session_identifier.369fb4dedc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_pv_engaged_time')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_pv_engaged_time_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_pv_engaged_time_session_identifier.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_pv_engaged_time_session_identifier.369fb4dedc", "fqn": ["snowplow_unified", "views", "scratch", "not_null_snowplow_unified_pv_engaged_time_session_identifier"], "alias": "not_null_snowplow_unified_pv_engaged_time_session_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.8045816, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_pv_engaged_time", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_pv_engaged_time"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/not_null_snowplow_unified_pv_engaged_time_session_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_pv_engaged_time\nwhere session_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_pv_engaged_time", "attached_node": "model.snowplow_unified.snowplow_unified_pv_engaged_time"}, "test.snowplow_unified.unique_snowplow_unified_pv_engaged_time__view_id_session_identifier_.f0fca93783": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "(view_id || '-' || session_identifier)", "model": "{{ get_where_subquery(ref('snowplow_unified_pv_engaged_time')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_pv_engaged_time__view_id_session_identifier_", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_pv_eng_69789b707ed4542e489cb78a3f5f0d0d.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_pv_engaged_time__view_id_session_identifier_.f0fca93783", "fqn": ["snowplow_unified", "views", "scratch", "unique_snowplow_unified_pv_engaged_time__view_id_session_identifier_"], "alias": "unique_snowplow_unified_pv_eng_69789b707ed4542e489cb78a3f5f0d0d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_snowplow_unified_pv_eng_69789b707ed4542e489cb78a3f5f0d0d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_snowplow_unified_pv_eng_69789b707ed4542e489cb78a3f5f0d0d"}, "created_at": 1706612343.8069866, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(tags=\"primary-key\",alias=\"unique_snowplow_unified_pv_eng_69789b707ed4542e489cb78a3f5f0d0d\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_pv_engaged_time", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_pv_engaged_time"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/unique_snowplow_unified_pv_eng_69789b707ed4542e489cb78a3f5f0d0d.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n (view_id || '-' || session_identifier) as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_pv_engaged_time\nwhere (view_id || '-' || session_identifier) is not null\ngroup by (view_id || '-' || session_identifier)\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_pv_engaged_time", "attached_node": "model.snowplow_unified.snowplow_unified_pv_engaged_time"}, "test.snowplow_unified.not_null_snowplow_unified_pv_scroll_depth_view_id.0e2d9dba7d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "view_id", "model": "{{ get_where_subquery(ref('snowplow_unified_pv_scroll_depth')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_pv_scroll_depth_view_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_pv_scroll_depth_view_id.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_pv_scroll_depth_view_id.0e2d9dba7d", "fqn": ["snowplow_unified", "views", "scratch", "not_null_snowplow_unified_pv_scroll_depth_view_id"], "alias": "not_null_snowplow_unified_pv_scroll_depth_view_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.8090591, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_pv_scroll_depth", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_pv_scroll_depth"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/not_null_snowplow_unified_pv_scroll_depth_view_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect view_id\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_pv_scroll_depth\nwhere view_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "view_id", "file_key_name": "models.snowplow_unified_pv_scroll_depth", "attached_node": "model.snowplow_unified.snowplow_unified_pv_scroll_depth"}, "test.snowplow_unified.unique_snowplow_unified_pv_scroll_depth__view_id_session_identifier_.009d0ff70e": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "(view_id || '-' || session_identifier)", "model": "{{ get_where_subquery(ref('snowplow_unified_pv_scroll_depth')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_pv_scroll_depth__view_id_session_identifier_", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_pv_scr_6ee5f7ff8e10d4482f707608d85df08b.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_pv_scroll_depth__view_id_session_identifier_.009d0ff70e", "fqn": ["snowplow_unified", "views", "scratch", "unique_snowplow_unified_pv_scroll_depth__view_id_session_identifier_"], "alias": "unique_snowplow_unified_pv_scr_6ee5f7ff8e10d4482f707608d85df08b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_snowplow_unified_pv_scr_6ee5f7ff8e10d4482f707608d85df08b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_snowplow_unified_pv_scr_6ee5f7ff8e10d4482f707608d85df08b"}, "created_at": 1706612343.8112519, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(tags=\"primary-key\",alias=\"unique_snowplow_unified_pv_scr_6ee5f7ff8e10d4482f707608d85df08b\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_pv_scroll_depth", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_pv_scroll_depth"]}, "compiled_path": "target/compiled/snowplow_unified/models/views/scratch/views_scratch.yml/unique_snowplow_unified_pv_scr_6ee5f7ff8e10d4482f707608d85df08b.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n (view_id || '-' || session_identifier) as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_pv_scroll_depth\nwhere (view_id || '-' || session_identifier) is not null\ngroup by (view_id || '-' || session_identifier)\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_pv_scroll_depth", "attached_node": "model.snowplow_unified.snowplow_unified_pv_scroll_depth"}, "test.snowplow_unified.not_null_snowplow_unified_screen_summary_metrics_view_id.16d2af0899": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "view_id", "model": "{{ get_where_subquery(ref('snowplow_unified_screen_summary_metrics')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_screen_summary_metrics_view_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_screen_summary_metrics_view_id.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_screen_summary_metrics_view_id.16d2af0899", "fqn": ["snowplow_unified", "views", "scratch", "not_null_snowplow_unified_screen_summary_metrics_view_id"], "alias": "not_null_snowplow_unified_screen_summary_metrics_view_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.8133082, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_screen_summary_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "column_name": "view_id", "file_key_name": "models.snowplow_unified_screen_summary_metrics", "attached_node": "model.snowplow_unified.snowplow_unified_screen_summary_metrics"}, "test.snowplow_unified.unique_snowplow_unified_screen_summary_metrics__view_id_session_identifier_.fda2881a90": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "(view_id || '-' || session_identifier)", "model": "{{ get_where_subquery(ref('snowplow_unified_screen_summary_metrics')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_screen_summary_metrics__view_id_session_identifier_", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_screen_881d88e175806e1600085859a1d92ded.sql", "original_file_path": "models/views/scratch/views_scratch.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_screen_summary_metrics__view_id_session_identifier_.fda2881a90", "fqn": ["snowplow_unified", "views", "scratch", "unique_snowplow_unified_screen_summary_metrics__view_id_session_identifier_"], "alias": "unique_snowplow_unified_screen_881d88e175806e1600085859a1d92ded", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "unique_snowplow_unified_screen_881d88e175806e1600085859a1d92ded", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_snowplow_unified_screen_881d88e175806e1600085859a1d92ded"}, "created_at": 1706612343.815424, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(tags=\"primary-key\",alias=\"unique_snowplow_unified_screen_881d88e175806e1600085859a1d92ded\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_screen_summary_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_screen_summary_metrics", "attached_node": "model.snowplow_unified.snowplow_unified_screen_summary_metrics"}, "test.snowplow_unified.unique_snowplow_unified_base_sessions_this_run_session_identifier.4db28e3b1d": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_base_sessions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_base_sessions_this_run_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_base_s_5c0d93f096287ea47d23bf9db4ddc01c.sql", "original_file_path": "models/base/scratch/base_scratch.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_base_sessions_this_run_session_identifier.4db28e3b1d", "fqn": ["snowplow_unified", "base", "scratch", "unique_snowplow_unified_base_sessions_this_run_session_identifier"], "alias": "unique_snowplow_unified_base_s_5c0d93f096287ea47d23bf9db4ddc01c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_snowplow_unified_base_s_5c0d93f096287ea47d23bf9db4ddc01c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_snowplow_unified_base_s_5c0d93f096287ea47d23bf9db4ddc01c"}, "created_at": 1706612343.9796078, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_snowplow_unified_base_s_5c0d93f096287ea47d23bf9db4ddc01c\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_base_sessions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_base_sessions_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/scratch/base_scratch.yml/unique_snowplow_unified_base_s_5c0d93f096287ea47d23bf9db4ddc01c.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n session_identifier as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_base_sessions_this_run\nwhere session_identifier is not null\ngroup by session_identifier\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_base_sessions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_base_sessions_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_base_sessions_this_run_session_identifier.15278d0f20": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_base_sessions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_base_sessions_this_run_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_base_70a0be040fdf186141149a14b92e47e8.sql", "original_file_path": "models/base/scratch/base_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_base_sessions_this_run_session_identifier.15278d0f20", "fqn": ["snowplow_unified", "base", "scratch", "not_null_snowplow_unified_base_sessions_this_run_session_identifier"], "alias": "not_null_snowplow_unified_base_70a0be040fdf186141149a14b92e47e8", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_snowplow_unified_base_70a0be040fdf186141149a14b92e47e8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_snowplow_unified_base_70a0be040fdf186141149a14b92e47e8"}, "created_at": 1706612343.9819841, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_snowplow_unified_base_70a0be040fdf186141149a14b92e47e8\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_base_sessions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_base_sessions_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/scratch/base_scratch.yml/not_null_snowplow_unified_base_70a0be040fdf186141149a14b92e47e8.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_base_sessions_this_run\nwhere session_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_base_sessions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_base_sessions_this_run"}, "test.snowplow_unified.unique_snowplow_unified_base_events_this_run_event_id.9d8628f1f4": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_base_events_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_base_events_this_run_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_base_events_this_run_event_id.sql", "original_file_path": "models/base/scratch/base_scratch.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_base_events_this_run_event_id.9d8628f1f4", "fqn": ["snowplow_unified", "base", "scratch", "unique_snowplow_unified_base_events_this_run_event_id"], "alias": "unique_snowplow_unified_base_events_this_run_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.9841137, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_base_events_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_base_events_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/scratch/base_scratch.yml/unique_snowplow_unified_base_events_this_run_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_base_events_this_run\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_base_events_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_base_events_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_base_events_this_run_event_id.e3cb52ed73": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_base_events_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_base_events_this_run_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_base_events_this_run_event_id.sql", "original_file_path": "models/base/scratch/base_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_base_events_this_run_event_id.e3cb52ed73", "fqn": ["snowplow_unified", "base", "scratch", "not_null_snowplow_unified_base_events_this_run_event_id"], "alias": "not_null_snowplow_unified_base_events_this_run_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.9862356, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_base_events_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_base_events_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/scratch/base_scratch.yml/not_null_snowplow_unified_base_events_this_run_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_base_events_this_run\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_base_events_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_base_events_this_run"}, "test.snowplow_unified.unique_snowplow_unified_events_this_run_event_id.d04b0599f5": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_events_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_events_this_run_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_events_this_run_event_id.sql", "original_file_path": "models/base/scratch/base_scratch.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_events_this_run_event_id.d04b0599f5", "fqn": ["snowplow_unified", "base", "scratch", "unique_snowplow_unified_events_this_run_event_id"], "alias": "unique_snowplow_unified_events_this_run_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.9884152, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_events_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/scratch/base_scratch.yml/unique_snowplow_unified_events_this_run_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_events_this_run\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_events_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_events_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_events_this_run_event_id.152f747832": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_events_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_events_this_run_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_events_this_run_event_id.sql", "original_file_path": "models/base/scratch/base_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_events_this_run_event_id.152f747832", "fqn": ["snowplow_unified", "base", "scratch", "not_null_snowplow_unified_events_this_run_event_id"], "alias": "not_null_snowplow_unified_events_this_run_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612343.9907784, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_events_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/scratch/base_scratch.yml/not_null_snowplow_unified_events_this_run_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_events_this_run\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_events_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_events_this_run"}, "test.snowplow_unified.unique_snowplow_unified_base_sessions_lifecycle_manifest_session_identifier.55eb56faed": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_base_sessions_lifecycle_manifest')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_base_sessions_lifecycle_manifest_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_base_s_cb56e8859c48d7ed3129b69cc0594557.sql", "original_file_path": "models/base/manifest/base_manifest.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_base_sessions_lifecycle_manifest_session_identifier.55eb56faed", "fqn": ["snowplow_unified", "base", "manifest", "unique_snowplow_unified_base_sessions_lifecycle_manifest_session_identifier"], "alias": "unique_snowplow_unified_base_s_cb56e8859c48d7ed3129b69cc0594557", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_snowplow_unified_base_s_cb56e8859c48d7ed3129b69cc0594557", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_snowplow_unified_base_s_cb56e8859c48d7ed3129b69cc0594557"}, "created_at": 1706612343.9967515, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_snowplow_unified_base_s_cb56e8859c48d7ed3129b69cc0594557\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_base_sessions_lifecycle_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/manifest/base_manifest.yml/unique_snowplow_unified_base_s_cb56e8859c48d7ed3129b69cc0594557.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n session_identifier as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_base_sessions_lifecycle_manifest\nwhere session_identifier is not null\ngroup by session_identifier\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_base_sessions_lifecycle_manifest", "attached_node": "model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest"}, "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_session_identifier.b6a553df4c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_base_sessions_lifecycle_manifest')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_base_sessions_lifecycle_manifest_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_base_f9e1356d2eec37438512a66c95d697a0.sql", "original_file_path": "models/base/manifest/base_manifest.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_session_identifier.b6a553df4c", "fqn": ["snowplow_unified", "base", "manifest", "not_null_snowplow_unified_base_sessions_lifecycle_manifest_session_identifier"], "alias": "not_null_snowplow_unified_base_f9e1356d2eec37438512a66c95d697a0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_snowplow_unified_base_f9e1356d2eec37438512a66c95d697a0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_snowplow_unified_base_f9e1356d2eec37438512a66c95d697a0"}, "created_at": 1706612343.9989886, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_snowplow_unified_base_f9e1356d2eec37438512a66c95d697a0\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_base_sessions_lifecycle_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/manifest/base_manifest.yml/not_null_snowplow_unified_base_f9e1356d2eec37438512a66c95d697a0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_base_sessions_lifecycle_manifest\nwhere session_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_base_sessions_lifecycle_manifest", "attached_node": "model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest"}, "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_start_tstamp.78e6f715a9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "start_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_base_sessions_lifecycle_manifest')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_base_sessions_lifecycle_manifest_start_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_base_6b0c9e0d0e77e07feedce29f765d949c.sql", "original_file_path": "models/base/manifest/base_manifest.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_start_tstamp.78e6f715a9", "fqn": ["snowplow_unified", "base", "manifest", "not_null_snowplow_unified_base_sessions_lifecycle_manifest_start_tstamp"], "alias": "not_null_snowplow_unified_base_6b0c9e0d0e77e07feedce29f765d949c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_snowplow_unified_base_6b0c9e0d0e77e07feedce29f765d949c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_snowplow_unified_base_6b0c9e0d0e77e07feedce29f765d949c"}, "created_at": 1706612344.001074, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_snowplow_unified_base_6b0c9e0d0e77e07feedce29f765d949c\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_base_sessions_lifecycle_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/manifest/base_manifest.yml/not_null_snowplow_unified_base_6b0c9e0d0e77e07feedce29f765d949c.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect start_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_base_sessions_lifecycle_manifest\nwhere start_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "start_tstamp", "file_key_name": "models.snowplow_unified_base_sessions_lifecycle_manifest", "attached_node": "model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest"}, "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_end_tstamp.68530988e8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "end_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_base_sessions_lifecycle_manifest')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_base_sessions_lifecycle_manifest_end_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_base_8771eaacc7254489929262b34ca14447.sql", "original_file_path": "models/base/manifest/base_manifest.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_end_tstamp.68530988e8", "fqn": ["snowplow_unified", "base", "manifest", "not_null_snowplow_unified_base_sessions_lifecycle_manifest_end_tstamp"], "alias": "not_null_snowplow_unified_base_8771eaacc7254489929262b34ca14447", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_snowplow_unified_base_8771eaacc7254489929262b34ca14447", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_snowplow_unified_base_8771eaacc7254489929262b34ca14447"}, "created_at": 1706612344.0036216, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_snowplow_unified_base_8771eaacc7254489929262b34ca14447\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_base_sessions_lifecycle_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/manifest/base_manifest.yml/not_null_snowplow_unified_base_8771eaacc7254489929262b34ca14447.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect end_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_base_sessions_lifecycle_manifest\nwhere end_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "end_tstamp", "file_key_name": "models.snowplow_unified_base_sessions_lifecycle_manifest", "attached_node": "model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest"}, "test.snowplow_unified.unique_snowplow_unified_incremental_manifest_model.eae251f82d": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "model", "model": "{{ get_where_subquery(ref('snowplow_unified_incremental_manifest')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_incremental_manifest_model", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_incremental_manifest_model.sql", "original_file_path": "models/base/manifest/base_manifest.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_incremental_manifest_model.eae251f82d", "fqn": ["snowplow_unified", "base", "manifest", "unique_snowplow_unified_incremental_manifest_model"], "alias": "unique_snowplow_unified_incremental_manifest_model", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.0058007, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_incremental_manifest"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/manifest/base_manifest.yml/unique_snowplow_unified_incremental_manifest_model.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n model as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_incremental_manifest\nwhere model is not null\ngroup by model\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "model", "file_key_name": "models.snowplow_unified_incremental_manifest", "attached_node": "model.snowplow_unified.snowplow_unified_incremental_manifest"}, "test.snowplow_unified.not_null_snowplow_unified_incremental_manifest_model.5f8ae0dc3e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "model", "model": "{{ get_where_subquery(ref('snowplow_unified_incremental_manifest')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_incremental_manifest_model", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_incremental_manifest_model.sql", "original_file_path": "models/base/manifest/base_manifest.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_incremental_manifest_model.5f8ae0dc3e", "fqn": ["snowplow_unified", "base", "manifest", "not_null_snowplow_unified_incremental_manifest_model"], "alias": "not_null_snowplow_unified_incremental_manifest_model", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.0079525, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_incremental_manifest"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/manifest/base_manifest.yml/not_null_snowplow_unified_incremental_manifest_model.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect model\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_incremental_manifest\nwhere model is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "model", "file_key_name": "models.snowplow_unified_incremental_manifest", "attached_node": "model.snowplow_unified.snowplow_unified_incremental_manifest"}, "test.snowplow_unified.unique_snowplow_unified_base_quarantined_sessions_session_identifier.09ea66d5f8": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_base_quarantined_sessions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_base_quarantined_sessions_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_base_q_e07881072d54ef55a909050d9603da34.sql", "original_file_path": "models/base/manifest/base_manifest.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_base_quarantined_sessions_session_identifier.09ea66d5f8", "fqn": ["snowplow_unified", "base", "manifest", "unique_snowplow_unified_base_quarantined_sessions_session_identifier"], "alias": "unique_snowplow_unified_base_q_e07881072d54ef55a909050d9603da34", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_snowplow_unified_base_q_e07881072d54ef55a909050d9603da34", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_snowplow_unified_base_q_e07881072d54ef55a909050d9603da34"}, "created_at": 1706612344.0101178, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_snowplow_unified_base_q_e07881072d54ef55a909050d9603da34\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_base_quarantined_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_base_quarantined_sessions"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/manifest/base_manifest.yml/unique_snowplow_unified_base_q_e07881072d54ef55a909050d9603da34.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n session_identifier as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_base_quarantined_sessions\nwhere session_identifier is not null\ngroup by session_identifier\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_base_quarantined_sessions", "attached_node": "model.snowplow_unified.snowplow_unified_base_quarantined_sessions"}, "test.snowplow_unified.not_null_snowplow_unified_base_quarantined_sessions_session_identifier.aaf46f9514": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_base_quarantined_sessions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_base_quarantined_sessions_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_base_eae180c78c1d9f5a189e25988ca7fe4e.sql", "original_file_path": "models/base/manifest/base_manifest.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_base_quarantined_sessions_session_identifier.aaf46f9514", "fqn": ["snowplow_unified", "base", "manifest", "not_null_snowplow_unified_base_quarantined_sessions_session_identifier"], "alias": "not_null_snowplow_unified_base_eae180c78c1d9f5a189e25988ca7fe4e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_snowplow_unified_base_eae180c78c1d9f5a189e25988ca7fe4e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_snowplow_unified_base_eae180c78c1d9f5a189e25988ca7fe4e"}, "created_at": 1706612344.0122569, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_snowplow_unified_base_eae180c78c1d9f5a189e25988ca7fe4e\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_base_quarantined_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_base_quarantined_sessions"]}, "compiled_path": "target/compiled/snowplow_unified/models/base/manifest/base_manifest.yml/not_null_snowplow_unified_base_eae180c78c1d9f5a189e25988ca7fe4e.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snowplow_manifest.snowplow_unified_base_quarantined_sessions\nwhere session_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_base_quarantined_sessions", "attached_node": "model.snowplow_unified.snowplow_unified_base_quarantined_sessions"}, "test.snowplow_unified.unique_snowplow_unified_users_user_identifier.fd4bf488ce": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "user_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_users')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_users_user_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_users_user_identifier.sql", "original_file_path": "models/users/users.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_users_user_identifier.fd4bf488ce", "fqn": ["snowplow_unified", "users", "unique_snowplow_unified_users_user_identifier"], "alias": "unique_snowplow_unified_users_user_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.0390887, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/users.yml/unique_snowplow_unified_users_user_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n user_identifier as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_users\nwhere user_identifier is not null\ngroup by user_identifier\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "user_identifier", "file_key_name": "models.snowplow_unified_users", "attached_node": "model.snowplow_unified.snowplow_unified_users"}, "test.snowplow_unified.not_null_snowplow_unified_users_user_identifier.38f23dc040": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_users')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_users_user_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_users_user_identifier.sql", "original_file_path": "models/users/users.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_user_identifier.38f23dc040", "fqn": ["snowplow_unified", "users", "not_null_snowplow_unified_users_user_identifier"], "alias": "not_null_snowplow_unified_users_user_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.0415082, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/users.yml/not_null_snowplow_unified_users_user_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect user_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_users\nwhere user_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "user_identifier", "file_key_name": "models.snowplow_unified_users", "attached_node": "model.snowplow_unified.snowplow_unified_users"}, "test.snowplow_unified.not_null_snowplow_unified_users_network_userid.998e27e258": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "network_userid", "model": "{{ get_where_subquery(ref('snowplow_unified_users')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_users_network_userid", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_users_network_userid.sql", "original_file_path": "models/users/users.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_network_userid.998e27e258", "fqn": ["snowplow_unified", "users", "not_null_snowplow_unified_users_network_userid"], "alias": "not_null_snowplow_unified_users_network_userid", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.0438292, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/users.yml/not_null_snowplow_unified_users_network_userid.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect network_userid\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_users\nwhere network_userid is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "network_userid", "file_key_name": "models.snowplow_unified_users", "attached_node": "model.snowplow_unified.snowplow_unified_users"}, "test.snowplow_unified.not_null_snowplow_unified_users_start_tstamp.5d33b09a65": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "start_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_users')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_users_start_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_users_start_tstamp.sql", "original_file_path": "models/users/users.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_start_tstamp.5d33b09a65", "fqn": ["snowplow_unified", "users", "not_null_snowplow_unified_users_start_tstamp"], "alias": "not_null_snowplow_unified_users_start_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.0461085, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/users.yml/not_null_snowplow_unified_users_start_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect start_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_users\nwhere start_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "start_tstamp", "file_key_name": "models.snowplow_unified_users", "attached_node": "model.snowplow_unified.snowplow_unified_users"}, "test.snowplow_unified.not_null_snowplow_unified_users_end_tstamp.f58b0bcf06": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "end_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_users')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_users_end_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_users_end_tstamp.sql", "original_file_path": "models/users/users.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_end_tstamp.f58b0bcf06", "fqn": ["snowplow_unified", "users", "not_null_snowplow_unified_users_end_tstamp"], "alias": "not_null_snowplow_unified_users_end_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.0483174, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/users.yml/not_null_snowplow_unified_users_end_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect end_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_users\nwhere end_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "end_tstamp", "file_key_name": "models.snowplow_unified_users", "attached_node": "model.snowplow_unified.snowplow_unified_users"}, "test.snowplow_unified.not_null_snowplow_unified_users_views.bbd526f2de": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "views", "model": "{{ get_where_subquery(ref('snowplow_unified_users')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_users_views", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_users_views.sql", "original_file_path": "models/users/users.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_views.bbd526f2de", "fqn": ["snowplow_unified", "users", "not_null_snowplow_unified_users_views"], "alias": "not_null_snowplow_unified_users_views", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.0507555, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/users.yml/not_null_snowplow_unified_users_views.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect views\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_users\nwhere views is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "views", "file_key_name": "models.snowplow_unified_users", "attached_node": "model.snowplow_unified.snowplow_unified_users"}, "test.snowplow_unified.not_null_snowplow_unified_users_sessions.55421015ef": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "sessions", "model": "{{ get_where_subquery(ref('snowplow_unified_users')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_users_sessions", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_users_sessions.sql", "original_file_path": "models/users/users.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_sessions.55421015ef", "fqn": ["snowplow_unified", "users", "not_null_snowplow_unified_users_sessions"], "alias": "not_null_snowplow_unified_users_sessions", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.0527923, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/users.yml/not_null_snowplow_unified_users_sessions.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect sessions\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_users\nwhere sessions is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "sessions", "file_key_name": "models.snowplow_unified_users", "attached_node": "model.snowplow_unified.snowplow_unified_users"}, "test.snowplow_unified.not_null_snowplow_unified_users_engaged_time_in_s.c55717a97e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "engaged_time_in_s", "model": "{{ get_where_subquery(ref('snowplow_unified_users')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_users_engaged_time_in_s", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_users_engaged_time_in_s.sql", "original_file_path": "models/users/users.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_engaged_time_in_s.c55717a97e", "fqn": ["snowplow_unified", "users", "not_null_snowplow_unified_users_engaged_time_in_s"], "alias": "not_null_snowplow_unified_users_engaged_time_in_s", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.054878, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/users.yml/not_null_snowplow_unified_users_engaged_time_in_s.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engaged_time_in_s\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_users\nwhere engaged_time_in_s is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "engaged_time_in_s", "file_key_name": "models.snowplow_unified_users", "attached_node": "model.snowplow_unified.snowplow_unified_users"}, "test.snowplow_unified.unique_snowplow_unified_users_this_run_user_identifier.84672e2e42": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "user_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_users_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_users_this_run_user_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_users_this_run_user_identifier.sql", "original_file_path": "models/users/scratch/users_scratch.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_users_this_run_user_identifier.84672e2e42", "fqn": ["snowplow_unified", "users", "scratch", "unique_snowplow_unified_users_this_run_user_identifier"], "alias": "unique_snowplow_unified_users_this_run_user_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.0652, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/users_scratch.yml/unique_snowplow_unified_users_this_run_user_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n user_identifier as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_this_run\nwhere user_identifier is not null\ngroup by user_identifier\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "user_identifier", "file_key_name": "models.snowplow_unified_users_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_users_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_users_this_run_user_identifier.2a721feeaf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_users_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_users_this_run_user_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_users_this_run_user_identifier.sql", "original_file_path": "models/users/scratch/users_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_this_run_user_identifier.2a721feeaf", "fqn": ["snowplow_unified", "users", "scratch", "not_null_snowplow_unified_users_this_run_user_identifier"], "alias": "not_null_snowplow_unified_users_this_run_user_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.067631, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/users_scratch.yml/not_null_snowplow_unified_users_this_run_user_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect user_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_this_run\nwhere user_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "user_identifier", "file_key_name": "models.snowplow_unified_users_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_users_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_users_this_run_network_userid.01e75c2b66": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "network_userid", "model": "{{ get_where_subquery(ref('snowplow_unified_users_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_users_this_run_network_userid", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_users_this_run_network_userid.sql", "original_file_path": "models/users/scratch/users_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_this_run_network_userid.01e75c2b66", "fqn": ["snowplow_unified", "users", "scratch", "not_null_snowplow_unified_users_this_run_network_userid"], "alias": "not_null_snowplow_unified_users_this_run_network_userid", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.0697968, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/users_scratch.yml/not_null_snowplow_unified_users_this_run_network_userid.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect network_userid\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_this_run\nwhere network_userid is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "network_userid", "file_key_name": "models.snowplow_unified_users_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_users_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_users_this_run_start_tstamp.e6b6b8a018": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "start_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_users_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_users_this_run_start_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_users_this_run_start_tstamp.sql", "original_file_path": "models/users/scratch/users_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_this_run_start_tstamp.e6b6b8a018", "fqn": ["snowplow_unified", "users", "scratch", "not_null_snowplow_unified_users_this_run_start_tstamp"], "alias": "not_null_snowplow_unified_users_this_run_start_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.0719495, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/users_scratch.yml/not_null_snowplow_unified_users_this_run_start_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect start_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_this_run\nwhere start_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "start_tstamp", "file_key_name": "models.snowplow_unified_users_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_users_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_users_this_run_end_tstamp.2343122421": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "end_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_users_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_users_this_run_end_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_users_this_run_end_tstamp.sql", "original_file_path": "models/users/scratch/users_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_this_run_end_tstamp.2343122421", "fqn": ["snowplow_unified", "users", "scratch", "not_null_snowplow_unified_users_this_run_end_tstamp"], "alias": "not_null_snowplow_unified_users_this_run_end_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.074417, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/users_scratch.yml/not_null_snowplow_unified_users_this_run_end_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect end_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_this_run\nwhere end_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "end_tstamp", "file_key_name": "models.snowplow_unified_users_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_users_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_users_this_run_views.6535b10483": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "views", "model": "{{ get_where_subquery(ref('snowplow_unified_users_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_users_this_run_views", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_users_this_run_views.sql", "original_file_path": "models/users/scratch/users_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_this_run_views.6535b10483", "fqn": ["snowplow_unified", "users", "scratch", "not_null_snowplow_unified_users_this_run_views"], "alias": "not_null_snowplow_unified_users_this_run_views", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.076523, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/users_scratch.yml/not_null_snowplow_unified_users_this_run_views.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect views\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_this_run\nwhere views is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "views", "file_key_name": "models.snowplow_unified_users_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_users_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_users_this_run_sessions.3a2f33dcae": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "sessions", "model": "{{ get_where_subquery(ref('snowplow_unified_users_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_users_this_run_sessions", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_users_this_run_sessions.sql", "original_file_path": "models/users/scratch/users_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_this_run_sessions.3a2f33dcae", "fqn": ["snowplow_unified", "users", "scratch", "not_null_snowplow_unified_users_this_run_sessions"], "alias": "not_null_snowplow_unified_users_this_run_sessions", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.078683, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/users_scratch.yml/not_null_snowplow_unified_users_this_run_sessions.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect sessions\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_this_run\nwhere sessions is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "sessions", "file_key_name": "models.snowplow_unified_users_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_users_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_users_this_run_engaged_time_in_s.6c8ec87fc3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "engaged_time_in_s", "model": "{{ get_where_subquery(ref('snowplow_unified_users_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_users_this_run_engaged_time_in_s", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_users_this_run_engaged_time_in_s.sql", "original_file_path": "models/users/scratch/users_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_this_run_engaged_time_in_s.6c8ec87fc3", "fqn": ["snowplow_unified", "users", "scratch", "not_null_snowplow_unified_users_this_run_engaged_time_in_s"], "alias": "not_null_snowplow_unified_users_this_run_engaged_time_in_s", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.0807598, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/users_scratch.yml/not_null_snowplow_unified_users_this_run_engaged_time_in_s.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engaged_time_in_s\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_this_run\nwhere engaged_time_in_s is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "engaged_time_in_s", "file_key_name": "models.snowplow_unified_users_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_users_this_run"}, "test.snowplow_unified.unique_snowplow_unified_users_aggs_user_identifier.7a0ce8ecea": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "user_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_users_aggs')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_users_aggs_user_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_users_aggs_user_identifier.sql", "original_file_path": "models/users/scratch/users_scratch.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_users_aggs_user_identifier.7a0ce8ecea", "fqn": ["snowplow_unified", "users", "scratch", "unique_snowplow_unified_users_aggs_user_identifier"], "alias": "unique_snowplow_unified_users_aggs_user_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.0828817, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users_aggs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users_aggs"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/users_scratch.yml/unique_snowplow_unified_users_aggs_user_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n user_identifier as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_aggs\nwhere user_identifier is not null\ngroup by user_identifier\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "user_identifier", "file_key_name": "models.snowplow_unified_users_aggs", "attached_node": "model.snowplow_unified.snowplow_unified_users_aggs"}, "test.snowplow_unified.not_null_snowplow_unified_users_aggs_user_identifier.67601373c5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_users_aggs')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_users_aggs_user_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_users_aggs_user_identifier.sql", "original_file_path": "models/users/scratch/users_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_aggs_user_identifier.67601373c5", "fqn": ["snowplow_unified", "users", "scratch", "not_null_snowplow_unified_users_aggs_user_identifier"], "alias": "not_null_snowplow_unified_users_aggs_user_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.085279, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users_aggs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users_aggs"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/users_scratch.yml/not_null_snowplow_unified_users_aggs_user_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect user_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_aggs\nwhere user_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "user_identifier", "file_key_name": "models.snowplow_unified_users_aggs", "attached_node": "model.snowplow_unified.snowplow_unified_users_aggs"}, "test.snowplow_unified.unique_snowplow_unified_users_lasts_user_identifier.2e0875d502": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "user_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_users_lasts')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_users_lasts_user_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_users_lasts_user_identifier.sql", "original_file_path": "models/users/scratch/users_scratch.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_users_lasts_user_identifier.2e0875d502", "fqn": ["snowplow_unified", "users", "scratch", "unique_snowplow_unified_users_lasts_user_identifier"], "alias": "unique_snowplow_unified_users_lasts_user_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.087393, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users_lasts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users_lasts"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/users_scratch.yml/unique_snowplow_unified_users_lasts_user_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n user_identifier as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_lasts\nwhere user_identifier is not null\ngroup by user_identifier\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "user_identifier", "file_key_name": "models.snowplow_unified_users_lasts", "attached_node": "model.snowplow_unified.snowplow_unified_users_lasts"}, "test.snowplow_unified.not_null_snowplow_unified_users_lasts_user_identifier.bf9c874d36": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_users_lasts')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_users_lasts_user_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_users_lasts_user_identifier.sql", "original_file_path": "models/users/scratch/users_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_lasts_user_identifier.bf9c874d36", "fqn": ["snowplow_unified", "users", "scratch", "not_null_snowplow_unified_users_lasts_user_identifier"], "alias": "not_null_snowplow_unified_users_lasts_user_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.089463, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_users_lasts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users_lasts"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/users_scratch.yml/not_null_snowplow_unified_users_lasts_user_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect user_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_lasts\nwhere user_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "user_identifier", "file_key_name": "models.snowplow_unified_users_lasts", "attached_node": "model.snowplow_unified.snowplow_unified_users_lasts"}, "test.snowplow_unified.unique_snowplow_unified_users_sessions_this_run_session_identifier.d123f43ae3": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_users_sessions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_users_sessions_this_run_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_users__13d01a3d02415be53d8d8d7e97b83ea4.sql", "original_file_path": "models/users/scratch/users_scratch.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_users_sessions_this_run_session_identifier.d123f43ae3", "fqn": ["snowplow_unified", "users", "scratch", "unique_snowplow_unified_users_sessions_this_run_session_identifier"], "alias": "unique_snowplow_unified_users__13d01a3d02415be53d8d8d7e97b83ea4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_snowplow_unified_users__13d01a3d02415be53d8d8d7e97b83ea4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_snowplow_unified_users__13d01a3d02415be53d8d8d7e97b83ea4"}, "created_at": 1706612344.0915983, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_snowplow_unified_users__13d01a3d02415be53d8d8d7e97b83ea4\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_users_sessions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users_sessions_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/users_scratch.yml/unique_snowplow_unified_users__13d01a3d02415be53d8d8d7e97b83ea4.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n session_identifier as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_sessions_this_run\nwhere session_identifier is not null\ngroup by session_identifier\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_users_sessions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_users_sessions_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_users_sessions_this_run_session_identifier.ccd4dad35f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_users_sessions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_users_sessions_this_run_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_user_d24bf389f3b698c71495d70259197c93.sql", "original_file_path": "models/users/scratch/users_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_sessions_this_run_session_identifier.ccd4dad35f", "fqn": ["snowplow_unified", "users", "scratch", "not_null_snowplow_unified_users_sessions_this_run_session_identifier"], "alias": "not_null_snowplow_unified_user_d24bf389f3b698c71495d70259197c93", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_snowplow_unified_user_d24bf389f3b698c71495d70259197c93", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_snowplow_unified_user_d24bf389f3b698c71495d70259197c93"}, "created_at": 1706612344.0936663, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_snowplow_unified_user_d24bf389f3b698c71495d70259197c93\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_users_sessions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_users_sessions_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/users/scratch/users_scratch.yml/not_null_snowplow_unified_user_d24bf389f3b698c71495d70259197c93.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_users_sessions_this_run\nwhere session_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_users_sessions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_users_sessions_this_run"}, "test.snowplow_unified.unique_snowplow_unified_consent_log_event_id.cb11e5f422": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_log')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_consent_log_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_consent_log_event_id.sql", "original_file_path": "models/optional_modules/consent/consent.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_consent_log_event_id.cb11e5f422", "fqn": ["snowplow_unified", "optional_modules", "consent", "unique_snowplow_unified_consent_log_event_id"], "alias": "unique_snowplow_unified_consent_log_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.1168752, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_log", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_consent_log"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/consent.yml/unique_snowplow_unified_consent_log_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_log\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_consent_log", "attached_node": "model.snowplow_unified.snowplow_unified_consent_log"}, "test.snowplow_unified.not_null_snowplow_unified_consent_log_event_id.d048b68e09": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_log')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_consent_log_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_consent_log_event_id.sql", "original_file_path": "models/optional_modules/consent/consent.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_consent_log_event_id.d048b68e09", "fqn": ["snowplow_unified", "optional_modules", "consent", "not_null_snowplow_unified_consent_log_event_id"], "alias": "not_null_snowplow_unified_consent_log_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.119336, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_log", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_consent_log"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/consent.yml/not_null_snowplow_unified_consent_log_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_log\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_consent_log", "attached_node": "model.snowplow_unified.snowplow_unified_consent_log"}, "test.snowplow_unified.accepted_values_snowplow_unified_consent_log_event_type__deny_all__allow_all__allow_selected__pending__implicit_consent__withdrawn__expired.0f024b208b": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["deny_all", "allow_all", "allow_selected", "pending", "implicit_consent", "withdrawn", "expired"], "column_name": "event_type", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_log')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "accepted_values_snowplow_unified_consent_log_event_type__deny_all__allow_all__allow_selected__pending__implicit_consent__withdrawn__expired", "resource_type": "test", "package_name": "snowplow_unified", "path": "accepted_values_snowplow_unifi_506037a3685dcc456d233a62d53b8182.sql", "original_file_path": "models/optional_modules/consent/consent.yml", "unique_id": "test.snowplow_unified.accepted_values_snowplow_unified_consent_log_event_type__deny_all__allow_all__allow_selected__pending__implicit_consent__withdrawn__expired.0f024b208b", "fqn": ["snowplow_unified", "optional_modules", "consent", "accepted_values_snowplow_unified_consent_log_event_type__deny_all__allow_all__allow_selected__pending__implicit_consent__withdrawn__expired"], "alias": "accepted_values_snowplow_unifi_506037a3685dcc456d233a62d53b8182", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_snowplow_unifi_506037a3685dcc456d233a62d53b8182", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_snowplow_unifi_506037a3685dcc456d233a62d53b8182"}, "created_at": 1706612344.1216931, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_snowplow_unifi_506037a3685dcc456d233a62d53b8182\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_log", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_consent_log"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/consent.yml/accepted_values_snowplow_unifi_506037a3685dcc456d233a62d53b8182.sql", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n event_type as value_field,\n count(*) as n_records\n\n from SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_log\n group by event_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'deny_all','allow_all','allow_selected','pending','implicit_consent','withdrawn','expired'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_type", "file_key_name": "models.snowplow_unified_consent_log", "attached_node": "model.snowplow_unified.snowplow_unified_consent_log"}, "test.snowplow_unified.unique_snowplow_unified_consent_users_user_identifier.e93ed6baff": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "user_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_users')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_consent_users_user_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_consent_users_user_identifier.sql", "original_file_path": "models/optional_modules/consent/consent.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_consent_users_user_identifier.e93ed6baff", "fqn": ["snowplow_unified", "optional_modules", "consent", "unique_snowplow_unified_consent_users_user_identifier"], "alias": "unique_snowplow_unified_consent_users_user_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.1321294, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_consent_users"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/consent.yml/unique_snowplow_unified_consent_users_user_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n user_identifier as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_users\nwhere user_identifier is not null\ngroup by user_identifier\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "user_identifier", "file_key_name": "models.snowplow_unified_consent_users", "attached_node": "model.snowplow_unified.snowplow_unified_consent_users"}, "test.snowplow_unified.not_null_snowplow_unified_consent_users_user_identifier.6c2cb3f0a2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_users')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_consent_users_user_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_consent_users_user_identifier.sql", "original_file_path": "models/optional_modules/consent/consent.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_consent_users_user_identifier.6c2cb3f0a2", "fqn": ["snowplow_unified", "optional_modules", "consent", "not_null_snowplow_unified_consent_users_user_identifier"], "alias": "not_null_snowplow_unified_consent_users_user_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.1343205, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_consent_users"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/consent.yml/not_null_snowplow_unified_consent_users_user_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect user_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_users\nwhere user_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "user_identifier", "file_key_name": "models.snowplow_unified_consent_users", "attached_node": "model.snowplow_unified.snowplow_unified_consent_users"}, "test.snowplow_unified.unique_snowplow_unified_consent_scope_status_scope.cd80ea727a": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "scope", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_scope_status')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_consent_scope_status_scope", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_consent_scope_status_scope.sql", "original_file_path": "models/optional_modules/consent/consent.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_consent_scope_status_scope.cd80ea727a", "fqn": ["snowplow_unified", "optional_modules", "consent", "unique_snowplow_unified_consent_scope_status_scope"], "alias": "unique_snowplow_unified_consent_scope_status_scope", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.1368368, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_scope_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_consent_scope_status"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/consent.yml/unique_snowplow_unified_consent_scope_status_scope.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n scope as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_scope_status\nwhere scope is not null\ngroup by scope\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "scope", "file_key_name": "models.snowplow_unified_consent_scope_status", "attached_node": "model.snowplow_unified.snowplow_unified_consent_scope_status"}, "test.snowplow_unified.not_null_snowplow_unified_consent_scope_status_scope.2b9365b124": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "scope", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_scope_status')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_consent_scope_status_scope", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_consent_scope_status_scope.sql", "original_file_path": "models/optional_modules/consent/consent.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_consent_scope_status_scope.2b9365b124", "fqn": ["snowplow_unified", "optional_modules", "consent", "not_null_snowplow_unified_consent_scope_status_scope"], "alias": "not_null_snowplow_unified_consent_scope_status_scope", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.1390085, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_scope_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_consent_scope_status"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/consent.yml/not_null_snowplow_unified_consent_scope_status_scope.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect scope\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_scope_status\nwhere scope is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "scope", "file_key_name": "models.snowplow_unified_consent_scope_status", "attached_node": "model.snowplow_unified.snowplow_unified_consent_scope_status"}, "test.snowplow_unified.unique_snowplow_unified_consent_cmp_stats_event_id.4bdb9bcc41": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_cmp_stats')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_consent_cmp_stats_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_consent_cmp_stats_event_id.sql", "original_file_path": "models/optional_modules/consent/consent.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_consent_cmp_stats_event_id.4bdb9bcc41", "fqn": ["snowplow_unified", "optional_modules", "consent", "unique_snowplow_unified_consent_cmp_stats_event_id"], "alias": "unique_snowplow_unified_consent_cmp_stats_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.14107, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_cmp_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_consent_cmp_stats"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/consent.yml/unique_snowplow_unified_consent_cmp_stats_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_cmp_stats\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_consent_cmp_stats", "attached_node": "model.snowplow_unified.snowplow_unified_consent_cmp_stats"}, "test.snowplow_unified.not_null_snowplow_unified_consent_cmp_stats_event_id.70b4093ca8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_cmp_stats')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_consent_cmp_stats_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_consent_cmp_stats_event_id.sql", "original_file_path": "models/optional_modules/consent/consent.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_consent_cmp_stats_event_id.70b4093ca8", "fqn": ["snowplow_unified", "optional_modules", "consent", "not_null_snowplow_unified_consent_cmp_stats_event_id"], "alias": "not_null_snowplow_unified_consent_cmp_stats_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.1431568, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_cmp_stats", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_consent_cmp_stats"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/consent.yml/not_null_snowplow_unified_consent_cmp_stats_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_cmp_stats\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_consent_cmp_stats", "attached_node": "model.snowplow_unified.snowplow_unified_consent_cmp_stats"}, "test.snowplow_unified.unique_snowplow_unified_consent_versions_consent_version.5ceb06b341": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "consent_version", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_versions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_consent_versions_consent_version", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_consent_versions_consent_version.sql", "original_file_path": "models/optional_modules/consent/consent.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_consent_versions_consent_version.5ceb06b341", "fqn": ["snowplow_unified", "optional_modules", "consent", "unique_snowplow_unified_consent_versions_consent_version"], "alias": "unique_snowplow_unified_consent_versions_consent_version", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.1452234, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_versions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_consent_versions"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/consent.yml/unique_snowplow_unified_consent_versions_consent_version.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n consent_version as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_versions\nwhere consent_version is not null\ngroup by consent_version\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "consent_version", "file_key_name": "models.snowplow_unified_consent_versions", "attached_node": "model.snowplow_unified.snowplow_unified_consent_versions"}, "test.snowplow_unified.not_null_snowplow_unified_consent_versions_consent_version.309008d9d1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "consent_version", "model": "{{ get_where_subquery(ref('snowplow_unified_consent_versions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_consent_versions_consent_version", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_consent_versions_consent_version.sql", "original_file_path": "models/optional_modules/consent/consent.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_consent_versions_consent_version.309008d9d1", "fqn": ["snowplow_unified", "optional_modules", "consent", "not_null_snowplow_unified_consent_versions_consent_version"], "alias": "not_null_snowplow_unified_consent_versions_consent_version", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.1475682, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_versions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_consent_versions"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/consent/consent.yml/not_null_snowplow_unified_consent_versions_consent_version.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect consent_version\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_consent_versions\nwhere consent_version is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "consent_version", "file_key_name": "models.snowplow_unified_consent_versions", "attached_node": "model.snowplow_unified.snowplow_unified_consent_versions"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_event_id.1927547c47": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app_errors_event_id.sql", "original_file_path": "models/optional_modules/app_errors/app_errors.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_event_id.1927547c47", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "not_null_snowplow_unified_app_errors_event_id"], "alias": "not_null_snowplow_unified_app_errors_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.166175, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/app_errors.yml/not_null_snowplow_unified_app_errors_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_app_errors\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_app_errors", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors"}, "test.snowplow_unified.unique_snowplow_unified_app_errors_event_id.f6537234ea": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_app_errors_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_app_errors_event_id.sql", "original_file_path": "models/optional_modules/app_errors/app_errors.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_app_errors_event_id.f6537234ea", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "unique_snowplow_unified_app_errors_event_id"], "alias": "unique_snowplow_unified_app_errors_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.1693091, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/app_errors.yml/unique_snowplow_unified_app_errors_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_app_errors\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_app_errors", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_user_identifier.f874778b72": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_user_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app_errors_user_identifier.sql", "original_file_path": "models/optional_modules/app_errors/app_errors.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_user_identifier.f874778b72", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "not_null_snowplow_unified_app_errors_user_identifier"], "alias": "not_null_snowplow_unified_app_errors_user_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.1724544, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/app_errors.yml/not_null_snowplow_unified_app_errors_user_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect user_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_app_errors\nwhere user_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "user_identifier", "file_key_name": "models.snowplow_unified_app_errors", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_network_userid.5f50553758": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "network_userid", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_network_userid", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app_errors_network_userid.sql", "original_file_path": "models/optional_modules/app_errors/app_errors.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_network_userid.5f50553758", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "not_null_snowplow_unified_app_errors_network_userid"], "alias": "not_null_snowplow_unified_app_errors_network_userid", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.1756537, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/app_errors.yml/not_null_snowplow_unified_app_errors_network_userid.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect network_userid\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_app_errors\nwhere network_userid is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "network_userid", "file_key_name": "models.snowplow_unified_app_errors", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_identifier.3099f21f2c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app_errors_session_identifier.sql", "original_file_path": "models/optional_modules/app_errors/app_errors.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_identifier.3099f21f2c", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "not_null_snowplow_unified_app_errors_session_identifier"], "alias": "not_null_snowplow_unified_app_errors_session_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.178888, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/app_errors.yml/not_null_snowplow_unified_app_errors_session_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_app_errors\nwhere session_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_app_errors", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_index.0c20768315": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_index", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_session_index", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app_errors_session_index.sql", "original_file_path": "models/optional_modules/app_errors/app_errors.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_index.0c20768315", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "not_null_snowplow_unified_app_errors_session_index"], "alias": "not_null_snowplow_unified_app_errors_session_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.18176, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/app_errors.yml/not_null_snowplow_unified_app_errors_session_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_index\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_app_errors\nwhere session_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_index", "file_key_name": "models.snowplow_unified_app_errors", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_first_event_id.cc8700559f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_first_event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_session_first_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app_errors_session_first_event_id.sql", "original_file_path": "models/optional_modules/app_errors/app_errors.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_first_event_id.cc8700559f", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "not_null_snowplow_unified_app_errors_session_first_event_id"], "alias": "not_null_snowplow_unified_app_errors_session_first_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.1846447, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/app_errors.yml/not_null_snowplow_unified_app_errors_session_first_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_first_event_id\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_app_errors\nwhere session_first_event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_first_event_id", "file_key_name": "models.snowplow_unified_app_errors", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_dvce_created_tstamp.f8ea85c5e4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "dvce_created_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_dvce_created_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app_errors_dvce_created_tstamp.sql", "original_file_path": "models/optional_modules/app_errors/app_errors.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_dvce_created_tstamp.f8ea85c5e4", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "not_null_snowplow_unified_app_errors_dvce_created_tstamp"], "alias": "not_null_snowplow_unified_app_errors_dvce_created_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.1875756, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/app_errors.yml/not_null_snowplow_unified_app_errors_dvce_created_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect dvce_created_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_app_errors\nwhere dvce_created_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "dvce_created_tstamp", "file_key_name": "models.snowplow_unified_app_errors", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_collector_tstamp.fd6db01a42": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "collector_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_collector_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app_errors_collector_tstamp.sql", "original_file_path": "models/optional_modules/app_errors/app_errors.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_collector_tstamp.fd6db01a42", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "not_null_snowplow_unified_app_errors_collector_tstamp"], "alias": "not_null_snowplow_unified_app_errors_collector_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.190824, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/app_errors.yml/not_null_snowplow_unified_app_errors_collector_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collector_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_app_errors\nwhere collector_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "collector_tstamp", "file_key_name": "models.snowplow_unified_app_errors", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_derived_tstamp.57ca9d9382": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "derived_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_derived_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app_errors_derived_tstamp.sql", "original_file_path": "models/optional_modules/app_errors/app_errors.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_derived_tstamp.57ca9d9382", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "not_null_snowplow_unified_app_errors_derived_tstamp"], "alias": "not_null_snowplow_unified_app_errors_derived_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.1936512, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/app_errors.yml/not_null_snowplow_unified_app_errors_derived_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect derived_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_app_errors\nwhere derived_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "derived_tstamp", "file_key_name": "models.snowplow_unified_app_errors", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_model_tstamp.1dbf1b6723": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "model_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_model_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app_errors_model_tstamp.sql", "original_file_path": "models/optional_modules/app_errors/app_errors.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_model_tstamp.1dbf1b6723", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "not_null_snowplow_unified_app_errors_model_tstamp"], "alias": "not_null_snowplow_unified_app_errors_model_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.1964993, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/app_errors.yml/not_null_snowplow_unified_app_errors_model_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect model_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_app_errors\nwhere model_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "model_tstamp", "file_key_name": "models.snowplow_unified_app_errors", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_event_id.a04e4b56e9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_this_run_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app_errors_this_run_event_id.sql", "original_file_path": "models/optional_modules/app_errors/scratch/app_errors_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_event_id.a04e4b56e9", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "scratch", "not_null_snowplow_unified_app_errors_this_run_event_id"], "alias": "not_null_snowplow_unified_app_errors_this_run_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.2059772, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/scratch/app_errors_scratch.yml/not_null_snowplow_unified_app_errors_this_run_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_app_errors_this_run\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_app_errors_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors_this_run"}, "test.snowplow_unified.unique_snowplow_unified_app_errors_this_run_event_id.27c49e9797": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_app_errors_this_run_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_app_errors_this_run_event_id.sql", "original_file_path": "models/optional_modules/app_errors/scratch/app_errors_scratch.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_app_errors_this_run_event_id.27c49e9797", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "scratch", "unique_snowplow_unified_app_errors_this_run_event_id"], "alias": "unique_snowplow_unified_app_errors_this_run_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.2091897, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/scratch/app_errors_scratch.yml/unique_snowplow_unified_app_errors_this_run_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_app_errors_this_run\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_app_errors_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_user_identifier.0d35170908": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_this_run_user_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app_errors_this_run_user_identifier.sql", "original_file_path": "models/optional_modules/app_errors/scratch/app_errors_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_user_identifier.0d35170908", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "scratch", "not_null_snowplow_unified_app_errors_this_run_user_identifier"], "alias": "not_null_snowplow_unified_app_errors_this_run_user_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.212174, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/scratch/app_errors_scratch.yml/not_null_snowplow_unified_app_errors_this_run_user_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect user_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_app_errors_this_run\nwhere user_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "user_identifier", "file_key_name": "models.snowplow_unified_app_errors_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_network_userid.6e4a6bdf97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "network_userid", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_this_run_network_userid", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app_errors_this_run_network_userid.sql", "original_file_path": "models/optional_modules/app_errors/scratch/app_errors_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_network_userid.6e4a6bdf97", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "scratch", "not_null_snowplow_unified_app_errors_this_run_network_userid"], "alias": "not_null_snowplow_unified_app_errors_this_run_network_userid", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.215472, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/scratch/app_errors_scratch.yml/not_null_snowplow_unified_app_errors_this_run_network_userid.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect network_userid\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_app_errors_this_run\nwhere network_userid is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "network_userid", "file_key_name": "models.snowplow_unified_app_errors_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_identifier.765b562252": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_this_run_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app__20dbb1d9b22ca8a8971fba4e23423880.sql", "original_file_path": "models/optional_modules/app_errors/scratch/app_errors_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_identifier.765b562252", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "scratch", "not_null_snowplow_unified_app_errors_this_run_session_identifier"], "alias": "not_null_snowplow_unified_app__20dbb1d9b22ca8a8971fba4e23423880", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_snowplow_unified_app__20dbb1d9b22ca8a8971fba4e23423880", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_snowplow_unified_app__20dbb1d9b22ca8a8971fba4e23423880", "enabled": true}, "created_at": 1706612344.2184587, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"not_null_snowplow_unified_app__20dbb1d9b22ca8a8971fba4e23423880\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/scratch/app_errors_scratch.yml/not_null_snowplow_unified_app__20dbb1d9b22ca8a8971fba4e23423880.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_app_errors_this_run\nwhere session_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_app_errors_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_index.c4dd0f3b15": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_index", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_this_run_session_index", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app_errors_this_run_session_index.sql", "original_file_path": "models/optional_modules/app_errors/scratch/app_errors_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_index.c4dd0f3b15", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "scratch", "not_null_snowplow_unified_app_errors_this_run_session_index"], "alias": "not_null_snowplow_unified_app_errors_this_run_session_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.2215185, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/scratch/app_errors_scratch.yml/not_null_snowplow_unified_app_errors_this_run_session_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_index\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_app_errors_this_run\nwhere session_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_index", "file_key_name": "models.snowplow_unified_app_errors_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_first_event_id.918c25b76d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_first_event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_this_run_session_first_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app__6a4a5d248a9c87a46f4bb511f40e21bd.sql", "original_file_path": "models/optional_modules/app_errors/scratch/app_errors_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_first_event_id.918c25b76d", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "scratch", "not_null_snowplow_unified_app_errors_this_run_session_first_event_id"], "alias": "not_null_snowplow_unified_app__6a4a5d248a9c87a46f4bb511f40e21bd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_snowplow_unified_app__6a4a5d248a9c87a46f4bb511f40e21bd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_snowplow_unified_app__6a4a5d248a9c87a46f4bb511f40e21bd", "enabled": true}, "created_at": 1706612344.224652, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"not_null_snowplow_unified_app__6a4a5d248a9c87a46f4bb511f40e21bd\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/scratch/app_errors_scratch.yml/not_null_snowplow_unified_app__6a4a5d248a9c87a46f4bb511f40e21bd.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_first_event_id\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_app_errors_this_run\nwhere session_first_event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_first_event_id", "file_key_name": "models.snowplow_unified_app_errors_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_dvce_created_tstamp.64cdf1fba6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "dvce_created_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_this_run_dvce_created_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app__ad10fcba0046594225d97c6a7d28071d.sql", "original_file_path": "models/optional_modules/app_errors/scratch/app_errors_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_dvce_created_tstamp.64cdf1fba6", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "scratch", "not_null_snowplow_unified_app_errors_this_run_dvce_created_tstamp"], "alias": "not_null_snowplow_unified_app__ad10fcba0046594225d97c6a7d28071d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_snowplow_unified_app__ad10fcba0046594225d97c6a7d28071d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_snowplow_unified_app__ad10fcba0046594225d97c6a7d28071d", "enabled": true}, "created_at": 1706612344.227954, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"not_null_snowplow_unified_app__ad10fcba0046594225d97c6a7d28071d\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/scratch/app_errors_scratch.yml/not_null_snowplow_unified_app__ad10fcba0046594225d97c6a7d28071d.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect dvce_created_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_app_errors_this_run\nwhere dvce_created_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "dvce_created_tstamp", "file_key_name": "models.snowplow_unified_app_errors_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_collector_tstamp.4fc8c4afad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "collector_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_this_run_collector_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app_errors_this_run_collector_tstamp.sql", "original_file_path": "models/optional_modules/app_errors/scratch/app_errors_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_collector_tstamp.4fc8c4afad", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "scratch", "not_null_snowplow_unified_app_errors_this_run_collector_tstamp"], "alias": "not_null_snowplow_unified_app_errors_this_run_collector_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.2309155, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/scratch/app_errors_scratch.yml/not_null_snowplow_unified_app_errors_this_run_collector_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect collector_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_app_errors_this_run\nwhere collector_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "collector_tstamp", "file_key_name": "models.snowplow_unified_app_errors_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_derived_tstamp.ea1324a9e3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "derived_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_this_run_derived_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app_errors_this_run_derived_tstamp.sql", "original_file_path": "models/optional_modules/app_errors/scratch/app_errors_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_derived_tstamp.ea1324a9e3", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "scratch", "not_null_snowplow_unified_app_errors_this_run_derived_tstamp"], "alias": "not_null_snowplow_unified_app_errors_this_run_derived_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.2338223, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/scratch/app_errors_scratch.yml/not_null_snowplow_unified_app_errors_this_run_derived_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect derived_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_app_errors_this_run\nwhere derived_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "derived_tstamp", "file_key_name": "models.snowplow_unified_app_errors_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_model_tstamp.2f83e1ec04": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "model_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_app_errors_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_app_errors_this_run_model_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_app_errors_this_run_model_tstamp.sql", "original_file_path": "models/optional_modules/app_errors/scratch/app_errors_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_model_tstamp.2f83e1ec04", "fqn": ["snowplow_unified", "optional_modules", "app_errors", "scratch", "not_null_snowplow_unified_app_errors_this_run_model_tstamp"], "alias": "not_null_snowplow_unified_app_errors_this_run_model_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1706612344.2367964, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [{"name": "snowplow_unified_app_errors_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/app_errors/scratch/app_errors_scratch.yml/not_null_snowplow_unified_app_errors_this_run_model_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect model_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_app_errors_this_run\nwhere model_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "model_tstamp", "file_key_name": "models.snowplow_unified_app_errors_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_app_errors_this_run"}, "test.snowplow_unified.unique_snowplow_unified_web_vital_events_this_run_event_id.e1799e0876": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_web_vital_events_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_web_vital_events_this_run_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_web_vital_events_this_run_event_id.sql", "original_file_path": "models/optional_modules/core_web_vitals/core_web_vitals.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_web_vital_events_this_run_event_id.e1799e0876", "fqn": ["snowplow_unified", "optional_modules", "core_web_vitals", "unique_snowplow_unified_web_vital_events_this_run_event_id"], "alias": "unique_snowplow_unified_web_vital_events_this_run_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.2852342, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_web_vital_events_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_web_vital_events_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/core_web_vitals/core_web_vitals.yml/unique_snowplow_unified_web_vital_events_this_run_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n event_id as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_web_vital_events_this_run\nwhere event_id is not null\ngroup by event_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_web_vital_events_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_web_vital_events_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_web_vital_events_this_run_event_id.e5bc4bf41e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_web_vital_events_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_web_vital_events_this_run_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_web_vital_events_this_run_event_id.sql", "original_file_path": "models/optional_modules/core_web_vitals/core_web_vitals.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_web_vital_events_this_run_event_id.e5bc4bf41e", "fqn": ["snowplow_unified", "optional_modules", "core_web_vitals", "not_null_snowplow_unified_web_vital_events_this_run_event_id"], "alias": "not_null_snowplow_unified_web_vital_events_this_run_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.2878065, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_web_vital_events_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_web_vital_events_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/core_web_vitals/core_web_vitals.yml/not_null_snowplow_unified_web_vital_events_this_run_event_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect event_id\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_web_vital_events_this_run\nwhere event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_web_vital_events_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_web_vital_events_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_web_vital_events_this_run_page_url.febc36e022": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "page_url", "model": "{{ get_where_subquery(ref('snowplow_unified_web_vital_events_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_web_vital_events_this_run_page_url", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_web_vital_events_this_run_page_url.sql", "original_file_path": "models/optional_modules/core_web_vitals/core_web_vitals.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_web_vital_events_this_run_page_url.febc36e022", "fqn": ["snowplow_unified", "optional_modules", "core_web_vitals", "not_null_snowplow_unified_web_vital_events_this_run_page_url"], "alias": "not_null_snowplow_unified_web_vital_events_this_run_page_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.2901533, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_web_vital_events_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_web_vital_events_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/core_web_vitals/core_web_vitals.yml/not_null_snowplow_unified_web_vital_events_this_run_page_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect page_url\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_web_vital_events_this_run\nwhere page_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "page_url", "file_key_name": "models.snowplow_unified_web_vital_events_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_web_vital_events_this_run"}, "test.snowplow_unified.unique_snowplow_unified_web_vital_measurements_compound_key.cf8bddba94": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "compound_key", "model": "{{ get_where_subquery(ref('snowplow_unified_web_vital_measurements')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_web_vital_measurements_compound_key", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_web_vital_measurements_compound_key.sql", "original_file_path": "models/optional_modules/core_web_vitals/core_web_vitals.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_web_vital_measurements_compound_key.cf8bddba94", "fqn": ["snowplow_unified", "optional_modules", "core_web_vitals", "unique_snowplow_unified_web_vital_measurements_compound_key"], "alias": "unique_snowplow_unified_web_vital_measurements_compound_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.2927284, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_web_vital_measurements", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_web_vital_measurements"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/core_web_vitals/core_web_vitals.yml/unique_snowplow_unified_web_vital_measurements_compound_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n compound_key as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_web_vital_measurements\nwhere compound_key is not null\ngroup by compound_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "compound_key", "file_key_name": "models.snowplow_unified_web_vital_measurements", "attached_node": "model.snowplow_unified.snowplow_unified_web_vital_measurements"}, "test.snowplow_unified.not_null_snowplow_unified_web_vital_measurements_compound_key.ff79f11fe6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "compound_key", "model": "{{ get_where_subquery(ref('snowplow_unified_web_vital_measurements')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_web_vital_measurements_compound_key", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_web_vital_measurements_compound_key.sql", "original_file_path": "models/optional_modules/core_web_vitals/core_web_vitals.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_web_vital_measurements_compound_key.ff79f11fe6", "fqn": ["snowplow_unified", "optional_modules", "core_web_vitals", "not_null_snowplow_unified_web_vital_measurements_compound_key"], "alias": "not_null_snowplow_unified_web_vital_measurements_compound_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.2951336, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_web_vital_measurements", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_web_vital_measurements"]}, "compiled_path": "target/compiled/snowplow_unified/models/optional_modules/core_web_vitals/core_web_vitals.yml/not_null_snowplow_unified_web_vital_measurements_compound_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect compound_key\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_web_vital_measurements\nwhere compound_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "compound_key", "file_key_name": "models.snowplow_unified_web_vital_measurements", "attached_node": "model.snowplow_unified.snowplow_unified_web_vital_measurements"}, "test.snowplow_unified.unique_snowplow_unified_sessions_session_identifier.3620ace50e": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_sessions_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_sessions_session_identifier.sql", "original_file_path": "models/sessions/sessions.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_sessions_session_identifier.3620ace50e", "fqn": ["snowplow_unified", "sessions", "unique_snowplow_unified_sessions_session_identifier"], "alias": "unique_snowplow_unified_sessions_session_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.319792, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/sessions.yml/unique_snowplow_unified_sessions_session_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n session_identifier as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_sessions\nwhere session_identifier is not null\ngroup by session_identifier\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_sessions", "attached_node": "model.snowplow_unified.snowplow_unified_sessions"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_session_identifier.833be1a65d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sessions_session_identifier.sql", "original_file_path": "models/sessions/sessions.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_session_identifier.833be1a65d", "fqn": ["snowplow_unified", "sessions", "not_null_snowplow_unified_sessions_session_identifier"], "alias": "not_null_snowplow_unified_sessions_session_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3222558, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/sessions.yml/not_null_snowplow_unified_sessions_session_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_sessions\nwhere session_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_sessions", "attached_node": "model.snowplow_unified.snowplow_unified_sessions"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_device_session_index.04ce4fd111": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "device_session_index", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_device_session_index", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sessions_device_session_index.sql", "original_file_path": "models/sessions/sessions.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_device_session_index.04ce4fd111", "fqn": ["snowplow_unified", "sessions", "not_null_snowplow_unified_sessions_device_session_index"], "alias": "not_null_snowplow_unified_sessions_device_session_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3245041, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/sessions.yml/not_null_snowplow_unified_sessions_device_session_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect device_session_index\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_sessions\nwhere device_session_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "device_session_index", "file_key_name": "models.snowplow_unified_sessions", "attached_node": "model.snowplow_unified.snowplow_unified_sessions"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_start_tstamp.22e855927c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "start_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_start_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sessions_start_tstamp.sql", "original_file_path": "models/sessions/sessions.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_start_tstamp.22e855927c", "fqn": ["snowplow_unified", "sessions", "not_null_snowplow_unified_sessions_start_tstamp"], "alias": "not_null_snowplow_unified_sessions_start_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3274133, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/sessions.yml/not_null_snowplow_unified_sessions_start_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect start_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_sessions\nwhere start_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "start_tstamp", "file_key_name": "models.snowplow_unified_sessions", "attached_node": "model.snowplow_unified.snowplow_unified_sessions"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_end_tstamp.d10ab70f31": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "end_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_end_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sessions_end_tstamp.sql", "original_file_path": "models/sessions/sessions.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_end_tstamp.d10ab70f31", "fqn": ["snowplow_unified", "sessions", "not_null_snowplow_unified_sessions_end_tstamp"], "alias": "not_null_snowplow_unified_sessions_end_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3298762, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/sessions.yml/not_null_snowplow_unified_sessions_end_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect end_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_sessions\nwhere end_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "end_tstamp", "file_key_name": "models.snowplow_unified_sessions", "attached_node": "model.snowplow_unified.snowplow_unified_sessions"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_views.9efb838735": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "views", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_views", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sessions_views.sql", "original_file_path": "models/sessions/sessions.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_views.9efb838735", "fqn": ["snowplow_unified", "sessions", "not_null_snowplow_unified_sessions_views"], "alias": "not_null_snowplow_unified_sessions_views", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3323524, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/sessions.yml/not_null_snowplow_unified_sessions_views.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect views\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_sessions\nwhere views is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "views", "file_key_name": "models.snowplow_unified_sessions", "attached_node": "model.snowplow_unified.snowplow_unified_sessions"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_engaged_time_in_s.6b702898cc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "engaged_time_in_s", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_engaged_time_in_s", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sessions_engaged_time_in_s.sql", "original_file_path": "models/sessions/sessions.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_engaged_time_in_s.6b702898cc", "fqn": ["snowplow_unified", "sessions", "not_null_snowplow_unified_sessions_engaged_time_in_s"], "alias": "not_null_snowplow_unified_sessions_engaged_time_in_s", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.334493, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/sessions.yml/not_null_snowplow_unified_sessions_engaged_time_in_s.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engaged_time_in_s\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_sessions\nwhere engaged_time_in_s is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "engaged_time_in_s", "file_key_name": "models.snowplow_unified_sessions", "attached_node": "model.snowplow_unified.snowplow_unified_sessions"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_total_events.5c72a6e786": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "total_events", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_total_events", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sessions_total_events.sql", "original_file_path": "models/sessions/sessions.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_total_events.5c72a6e786", "fqn": ["snowplow_unified", "sessions", "not_null_snowplow_unified_sessions_total_events"], "alias": "not_null_snowplow_unified_sessions_total_events", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3365746, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/sessions.yml/not_null_snowplow_unified_sessions_total_events.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect total_events\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_sessions\nwhere total_events is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "total_events", "file_key_name": "models.snowplow_unified_sessions", "attached_node": "model.snowplow_unified.snowplow_unified_sessions"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_is_engaged.05221eb41c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "is_engaged", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_is_engaged", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sessions_is_engaged.sql", "original_file_path": "models/sessions/sessions.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_is_engaged.05221eb41c", "fqn": ["snowplow_unified", "sessions", "not_null_snowplow_unified_sessions_is_engaged"], "alias": "not_null_snowplow_unified_sessions_is_engaged", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3387475, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/sessions.yml/not_null_snowplow_unified_sessions_is_engaged.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect is_engaged\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_sessions\nwhere is_engaged is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "is_engaged", "file_key_name": "models.snowplow_unified_sessions", "attached_node": "model.snowplow_unified.snowplow_unified_sessions"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_absolute_time_in_s.615acac3d6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "absolute_time_in_s", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_absolute_time_in_s", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sessions_absolute_time_in_s.sql", "original_file_path": "models/sessions/sessions.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_absolute_time_in_s.615acac3d6", "fqn": ["snowplow_unified", "sessions", "not_null_snowplow_unified_sessions_absolute_time_in_s"], "alias": "not_null_snowplow_unified_sessions_absolute_time_in_s", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3408563, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/sessions.yml/not_null_snowplow_unified_sessions_absolute_time_in_s.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect absolute_time_in_s\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_sessions\nwhere absolute_time_in_s is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "absolute_time_in_s", "file_key_name": "models.snowplow_unified_sessions", "attached_node": "model.snowplow_unified.snowplow_unified_sessions"}, "test.snowplow_unified.unique_snowplow_unified_sessions_this_run_session_identifier.9866ae020a": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_sessions_this_run_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_sessions_this_run_session_identifier.sql", "original_file_path": "models/sessions/scratch/sessions_scratch.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_sessions_this_run_session_identifier.9866ae020a", "fqn": ["snowplow_unified", "sessions", "scratch", "unique_snowplow_unified_sessions_this_run_session_identifier"], "alias": "unique_snowplow_unified_sessions_this_run_session_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3546011, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/scratch/sessions_scratch.yml/unique_snowplow_unified_sessions_this_run_session_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n session_identifier as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_sessions_this_run\nwhere session_identifier is not null\ngroup by session_identifier\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_sessions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_sessions_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_session_identifier.38695dce6d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_this_run_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sessions_this_run_session_identifier.sql", "original_file_path": "models/sessions/scratch/sessions_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_session_identifier.38695dce6d", "fqn": ["snowplow_unified", "sessions", "scratch", "not_null_snowplow_unified_sessions_this_run_session_identifier"], "alias": "not_null_snowplow_unified_sessions_this_run_session_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.35696, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/scratch/sessions_scratch.yml/not_null_snowplow_unified_sessions_this_run_session_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_sessions_this_run\nwhere session_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_sessions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_sessions_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_device_session_index.5c2b86a93c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "device_session_index", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_this_run_device_session_index", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sess_5e3398ed3e2598eeead4000abae1cba5.sql", "original_file_path": "models/sessions/scratch/sessions_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_device_session_index.5c2b86a93c", "fqn": ["snowplow_unified", "sessions", "scratch", "not_null_snowplow_unified_sessions_this_run_device_session_index"], "alias": "not_null_snowplow_unified_sess_5e3398ed3e2598eeead4000abae1cba5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_snowplow_unified_sess_5e3398ed3e2598eeead4000abae1cba5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_snowplow_unified_sess_5e3398ed3e2598eeead4000abae1cba5"}, "created_at": 1706612344.3592217, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_snowplow_unified_sess_5e3398ed3e2598eeead4000abae1cba5\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/scratch/sessions_scratch.yml/not_null_snowplow_unified_sess_5e3398ed3e2598eeead4000abae1cba5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect device_session_index\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_sessions_this_run\nwhere device_session_index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "device_session_index", "file_key_name": "models.snowplow_unified_sessions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_sessions_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_start_tstamp.4b70415d30": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "start_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_this_run_start_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sessions_this_run_start_tstamp.sql", "original_file_path": "models/sessions/scratch/sessions_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_start_tstamp.4b70415d30", "fqn": ["snowplow_unified", "sessions", "scratch", "not_null_snowplow_unified_sessions_this_run_start_tstamp"], "alias": "not_null_snowplow_unified_sessions_this_run_start_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3613868, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/scratch/sessions_scratch.yml/not_null_snowplow_unified_sessions_this_run_start_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect start_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_sessions_this_run\nwhere start_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "start_tstamp", "file_key_name": "models.snowplow_unified_sessions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_sessions_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_end_tstamp.07dd45d070": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "end_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_this_run_end_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sessions_this_run_end_tstamp.sql", "original_file_path": "models/sessions/scratch/sessions_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_end_tstamp.07dd45d070", "fqn": ["snowplow_unified", "sessions", "scratch", "not_null_snowplow_unified_sessions_this_run_end_tstamp"], "alias": "not_null_snowplow_unified_sessions_this_run_end_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3643134, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/scratch/sessions_scratch.yml/not_null_snowplow_unified_sessions_this_run_end_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect end_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_sessions_this_run\nwhere end_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "end_tstamp", "file_key_name": "models.snowplow_unified_sessions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_sessions_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_views.e8617150ef": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "views", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_this_run_views", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sessions_this_run_views.sql", "original_file_path": "models/sessions/scratch/sessions_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_views.e8617150ef", "fqn": ["snowplow_unified", "sessions", "scratch", "not_null_snowplow_unified_sessions_this_run_views"], "alias": "not_null_snowplow_unified_sessions_this_run_views", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.366699, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/scratch/sessions_scratch.yml/not_null_snowplow_unified_sessions_this_run_views.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect views\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_sessions_this_run\nwhere views is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "views", "file_key_name": "models.snowplow_unified_sessions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_sessions_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_engaged_time_in_s.98c95134a4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "engaged_time_in_s", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_this_run_engaged_time_in_s", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sessions_this_run_engaged_time_in_s.sql", "original_file_path": "models/sessions/scratch/sessions_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_engaged_time_in_s.98c95134a4", "fqn": ["snowplow_unified", "sessions", "scratch", "not_null_snowplow_unified_sessions_this_run_engaged_time_in_s"], "alias": "not_null_snowplow_unified_sessions_this_run_engaged_time_in_s", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.36888, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/scratch/sessions_scratch.yml/not_null_snowplow_unified_sessions_this_run_engaged_time_in_s.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect engaged_time_in_s\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_sessions_this_run\nwhere engaged_time_in_s is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "engaged_time_in_s", "file_key_name": "models.snowplow_unified_sessions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_sessions_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_total_events.29cffeca11": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "total_events", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_this_run_total_events", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sessions_this_run_total_events.sql", "original_file_path": "models/sessions/scratch/sessions_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_total_events.29cffeca11", "fqn": ["snowplow_unified", "sessions", "scratch", "not_null_snowplow_unified_sessions_this_run_total_events"], "alias": "not_null_snowplow_unified_sessions_this_run_total_events", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3710349, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/scratch/sessions_scratch.yml/not_null_snowplow_unified_sessions_this_run_total_events.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect total_events\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_sessions_this_run\nwhere total_events is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "total_events", "file_key_name": "models.snowplow_unified_sessions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_sessions_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_is_engaged.32ff9493b2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "is_engaged", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_this_run_is_engaged", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sessions_this_run_is_engaged.sql", "original_file_path": "models/sessions/scratch/sessions_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_is_engaged.32ff9493b2", "fqn": ["snowplow_unified", "sessions", "scratch", "not_null_snowplow_unified_sessions_this_run_is_engaged"], "alias": "not_null_snowplow_unified_sessions_this_run_is_engaged", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3733606, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/scratch/sessions_scratch.yml/not_null_snowplow_unified_sessions_this_run_is_engaged.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect is_engaged\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_sessions_this_run\nwhere is_engaged is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "is_engaged", "file_key_name": "models.snowplow_unified_sessions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_sessions_this_run"}, "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_absolute_time_in_s.5768c67caa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "absolute_time_in_s", "model": "{{ get_where_subquery(ref('snowplow_unified_sessions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_sessions_this_run_absolute_time_in_s", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_sessions_this_run_absolute_time_in_s.sql", "original_file_path": "models/sessions/scratch/sessions_scratch.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_absolute_time_in_s.5768c67caa", "fqn": ["snowplow_unified", "sessions", "scratch", "not_null_snowplow_unified_sessions_this_run_absolute_time_in_s"], "alias": "not_null_snowplow_unified_sessions_this_run_absolute_time_in_s", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3758597, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_sessions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_sessions_this_run"]}, "compiled_path": "target/compiled/snowplow_unified/models/sessions/scratch/sessions_scratch.yml/not_null_snowplow_unified_sessions_this_run_absolute_time_in_s.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect absolute_time_in_s\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_sessions_this_run\nwhere absolute_time_in_s is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "absolute_time_in_s", "file_key_name": "models.snowplow_unified_sessions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_sessions_this_run"}, "test.snowplow_unified.unique_snowplow_unified_session_screen_summary_metrics_session_identifier.1603938078": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_session_screen_summary_metrics')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_session_screen_summary_metrics_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_sessio_68a01605bdeb53fea60fb9983fb31d66.sql", "original_file_path": "models/sessions/scratch/sessions_scratch.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_session_screen_summary_metrics_session_identifier.1603938078", "fqn": ["snowplow_unified", "sessions", "scratch", "unique_snowplow_unified_session_screen_summary_metrics_session_identifier"], "alias": "unique_snowplow_unified_sessio_68a01605bdeb53fea60fb9983fb31d66", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "unique_snowplow_unified_sessio_68a01605bdeb53fea60fb9983fb31d66", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_snowplow_unified_sessio_68a01605bdeb53fea60fb9983fb31d66"}, "created_at": 1706612344.3781247, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(tags=\"primary-key\",alias=\"unique_snowplow_unified_sessio_68a01605bdeb53fea60fb9983fb31d66\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_session_screen_summary_metrics", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.snowplow_unified_session_screen_summary_metrics", "attached_node": "model.snowplow_unified.snowplow_unified_session_screen_summary_metrics"}, "test.snowplow_unified.unique_snowplow_unified_user_mapping_user_identifier.35e726d1ba": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "user_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_user_mapping')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "unique_snowplow_unified_user_mapping_user_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "unique_snowplow_unified_user_mapping_user_identifier.sql", "original_file_path": "models/user_mapping/user_mapping.yml", "unique_id": "test.snowplow_unified.unique_snowplow_unified_user_mapping_user_identifier.35e726d1ba", "fqn": ["snowplow_unified", "user_mapping", "unique_snowplow_unified_user_mapping_user_identifier"], "alias": "unique_snowplow_unified_user_mapping_user_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3820016, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_user_mapping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_user_mapping"]}, "compiled_path": "target/compiled/snowplow_unified/models/user_mapping/user_mapping.yml/unique_snowplow_unified_user_mapping_user_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n user_identifier as unique_field,\n count(*) as n_records\n\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_user_mapping\nwhere user_identifier is not null\ngroup by user_identifier\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "user_identifier", "file_key_name": "models.snowplow_unified_user_mapping", "attached_node": "model.snowplow_unified.snowplow_unified_user_mapping"}, "test.snowplow_unified.not_null_snowplow_unified_user_mapping_user_identifier.fc04955624": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_user_mapping')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_user_mapping_user_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_user_mapping_user_identifier.sql", "original_file_path": "models/user_mapping/user_mapping.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_user_mapping_user_identifier.fc04955624", "fqn": ["snowplow_unified", "user_mapping", "not_null_snowplow_unified_user_mapping_user_identifier"], "alias": "not_null_snowplow_unified_user_mapping_user_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3842618, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_user_mapping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_user_mapping"]}, "compiled_path": "target/compiled/snowplow_unified/models/user_mapping/user_mapping.yml/not_null_snowplow_unified_user_mapping_user_identifier.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect user_identifier\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_user_mapping\nwhere user_identifier is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "user_identifier", "file_key_name": "models.snowplow_unified_user_mapping", "attached_node": "model.snowplow_unified.snowplow_unified_user_mapping"}, "test.snowplow_unified.not_null_snowplow_unified_user_mapping_user_id.0fb58f2762": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_id", "model": "{{ get_where_subquery(ref('snowplow_unified_user_mapping')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_user_mapping_user_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_user_mapping_user_id.sql", "original_file_path": "models/user_mapping/user_mapping.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_user_mapping_user_id.0fb58f2762", "fqn": ["snowplow_unified", "user_mapping", "not_null_snowplow_unified_user_mapping_user_id"], "alias": "not_null_snowplow_unified_user_mapping_user_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3864446, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_user_mapping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_user_mapping"]}, "compiled_path": "target/compiled/snowplow_unified/models/user_mapping/user_mapping.yml/not_null_snowplow_unified_user_mapping_user_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect user_id\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_user_mapping\nwhere user_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "user_id", "file_key_name": "models.snowplow_unified_user_mapping", "attached_node": "model.snowplow_unified.snowplow_unified_user_mapping"}, "test.snowplow_unified.not_null_snowplow_unified_user_mapping_end_tstamp.8930fbf647": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "end_tstamp", "model": "{{ get_where_subquery(ref('snowplow_unified_user_mapping')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_user_mapping_end_tstamp", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_user_mapping_end_tstamp.sql", "original_file_path": "models/user_mapping/user_mapping.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_user_mapping_end_tstamp.8930fbf647", "fqn": ["snowplow_unified", "user_mapping", "not_null_snowplow_unified_user_mapping_end_tstamp"], "alias": "not_null_snowplow_unified_user_mapping_end_tstamp", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1706612344.3885136, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "snowplow_unified_user_mapping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snowplow_unified.snowplow_unified_user_mapping"]}, "compiled_path": "target/compiled/snowplow_unified/models/user_mapping/user_mapping.yml/not_null_snowplow_unified_user_mapping_end_tstamp.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect end_tstamp\nfrom SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_user_mapping\nwhere end_tstamp is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "end_tstamp", "file_key_name": "models.snowplow_unified_user_mapping", "attached_node": "model.snowplow_unified.snowplow_unified_user_mapping"}}, "sources": {"source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_web_page_1": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "com_snowplowanalytics_snowplow_web_page_1", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/base/src_base.yml", "original_file_path": "models/base/src_base.yml", "unique_id": "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_web_page_1", "fqn": ["snowplow_unified", "base", "atomic", "com_snowplowanalytics_snowplow_web_page_1"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "com_snowplowanalytics_snowplow_web_page_1", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "**Redshift and Postgres only**. This context table contains the `view_id` associated with a given page view.", "columns": {"id": {"name": "id", "description": "A UUID for each page view e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.com_snowplowanalytics_snowplow_web_page_1", "created_at": 1706612344.546815}, "source.snowplow_unified.atomic.com_iab_snowplow_spiders_and_robots_1": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "com_iab_snowplow_spiders_and_robots_1", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/base/src_base.yml", "original_file_path": "models/base/src_base.yml", "unique_id": "source.snowplow_unified.atomic.com_iab_snowplow_spiders_and_robots_1", "fqn": ["snowplow_unified", "base", "atomic", "com_iab_snowplow_spiders_and_robots_1"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "com_iab_snowplow_spiders_and_robots_1", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "**Redshift and Postgres only**. This context table contains the data generated by the IAB Spiders & Robots enrichment.\n\nThe IAB Spiders & Robots enrichment uses the [IAB/ABC International Spiders and Bots List](https://iabtechlab.com/software/iababc-international-spiders-and-bots-list/) to determine whether an event was produced by a user or a robot/spider based on its\u2019 IP address and user agent.", "columns": {"category": {"name": "category", "description": "Category based on activity if the IP/UA is a spider or robot, BROWSER otherwise", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_impact": {"name": "primary_impact", "description": "Whether the spider or robot would affect page impression measurement, ad impression measurement, both or none", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason": {"name": "reason", "description": "Type of failed check if the IP/UA is a spider or robot, PASSED_ALL otherwise", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "spider_or_robot": {"name": "spider_or_robot", "description": "True if the IP address or user agent checked against the list is a spider or robot, false otherwise", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.com_iab_snowplow_spiders_and_robots_1", "created_at": 1706612344.5470793}, "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_ua_parser_context_1": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "com_snowplowanalytics_snowplow_ua_parser_context_1", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/base/src_base.yml", "original_file_path": "models/base/src_base.yml", "unique_id": "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_ua_parser_context_1", "fqn": ["snowplow_unified", "base", "atomic", "com_snowplowanalytics_snowplow_ua_parser_context_1"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "com_snowplowanalytics_snowplow_ua_parser_context_1", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "**Redshift and Postgres only**. This context table contains the data generated by the [UA parser enrichment](https://docs.snowplow.io/docs/enriching-your-data/available-enrichments/ua-parser-enrichment/).", "columns": {"device_family": {"name": "device_family", "description": "Device type", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_family": {"name": "os_family", "description": "Operation system name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent_family": {"name": "useragent_family", "description": "Useragent family (browser) name", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_major": {"name": "os_major", "description": "Operation system major version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_minor": {"name": "os_minor", "description": "Operation system minor version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_patch": {"name": "os_patch", "description": "Operation system patch version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_patch_minor": {"name": "os_patch_minor", "description": "Operation system patch minor version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_version": {"name": "os_version", "description": "Operation system full version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent_major": {"name": "useragent_major", "description": "Useragent major version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent_minor": {"name": "useragent_minor", "description": "Useragent minor version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent_patch": {"name": "useragent_patch", "description": "Useragent patch version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent_version": {"name": "useragent_version", "description": "Full version of the useragent", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.com_snowplowanalytics_snowplow_ua_parser_context_1", "created_at": 1706612344.547308}, "source.snowplow_unified.atomic.nl_basjes_yauaa_context_1": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "nl_basjes_yauaa_context_1", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/base/src_base.yml", "original_file_path": "models/base/src_base.yml", "unique_id": "source.snowplow_unified.atomic.nl_basjes_yauaa_context_1", "fqn": ["snowplow_unified", "base", "atomic", "nl_basjes_yauaa_context_1"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "nl_basjes_yauaa_context_1", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "**Redshift and Postgres only**. This context table contains the data generated by the [YAUAA enrichment](https://docs.snowplow.io/docs/enriching-your-data/available-enrichments/yauaa-enrichment/).", "columns": {"device_class": {"name": "device_class", "description": "Class of device e.g. phone", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_class": {"name": "agent_class", "description": "Class of agent e.g. browser", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_name": {"name": "agent_name", "description": "Name of agent e.g. Chrome", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_name_version": {"name": "agent_name_version", "description": "Name and version of agent e.g. Chrome 53.0.2785.124", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_name_version_major": {"name": "agent_name_version_major", "description": "Name and major version of agent e.g. Chrome 53", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_version": {"name": "agent_version", "description": "Version of agent e.g. 53.0.2785.124", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "agent_version_major": {"name": "agent_version_major", "description": "Major version of agent e.g. 53", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_brand": {"name": "device_brand", "description": "Brand of device e.g. Google", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_name": {"name": "device_name", "description": "Name of device e.g. Google Nexus 6", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_version": {"name": "device_version", "description": "Version of device e.g. 6.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_class": {"name": "layout_engine_class", "description": "Class of layout engine e.g. Browser", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_name": {"name": "layout_engine_name", "description": "Name of layout engine e.g. Blink", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_name_version": {"name": "layout_engine_name_version", "description": "Name and version of layout engine e.g. Blink 53.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_name_version_major": {"name": "layout_engine_name_version_major", "description": "Name and major version of layout engine e.g. Blink 53", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_version": {"name": "layout_engine_version", "description": "Version of layout engine e.g. 53.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "layout_engine_version_major": {"name": "layout_engine_version_major", "description": "Major version of layout engine e.g. 53", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operating_system_class": {"name": "operating_system_class", "description": "Class of the OS e.g. Mobile", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operating_system_name": {"name": "operating_system_name", "description": "Name of the OS e.g. Android", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operating_system_name_version": {"name": "operating_system_name_version", "description": "Name and version of the OS e.g. Android 7.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "operating_system_version": {"name": "operating_system_version", "description": "Version of the OS e.g. 7.0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.nl_basjes_yauaa_context_1", "created_at": 1706612344.547554}, "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_client_session_1": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "com_snowplowanalytics_snowplow_client_session_1", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/base/src_base.yml", "original_file_path": "models/base/src_base.yml", "unique_id": "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_client_session_1", "fqn": ["snowplow_unified", "base", "atomic", "com_snowplowanalytics_snowplow_client_session_1"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "com_snowplowanalytics_snowplow_client_session_1", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "**Redshift and Postgres only**. This context table contains the `session_id` associated with a given mobile event.", "columns": {"root_id": {"name": "root_id", "description": "The corresponding UUID used in the root table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "root_tstamp": {"name": "root_tstamp", "description": "The timestamp for when this event was produced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_id": {"name": "session_id", "description": "A visit / session UUID e.g. `c6ef3124-b53a-4b13-a233-0088f79dcbcb`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_index": {"name": "session_index", "description": "A visit / session index e.g. `3`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "previous_session_id": {"name": "previous_session_id", "description": "A previous visit / session index e.g. `3`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "Unique ID set by business e.g. \u2018jon.doe@email.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_event_id": {"name": "first_event_id", "description": "The event ID of the first event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_index": {"name": "event_index", "description": "Optional index of the current event in the session.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "A UUID for each row in the table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "storage_mechanism": {"name": "storage_mechanism", "description": "The mechanism that the session information has been stored on the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_event_timestamp": {"name": "first_event_timestamp", "description": "Optional date-time timestamp of when the first event in the session was tracked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.com_snowplowanalytics_snowplow_client_session_1", "created_at": 1706612344.5477746}, "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_mobile_context_1": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "com_snowplowanalytics_snowplow_mobile_context_1", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/base/src_base.yml", "original_file_path": "models/base/src_base.yml", "unique_id": "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_mobile_context_1", "fqn": ["snowplow_unified", "base", "atomic", "com_snowplowanalytics_snowplow_mobile_context_1"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "com_snowplowanalytics_snowplow_mobile_context_1", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "**Redshift and Postgres only**. This context table contains various mobile device details and identifiers.", "columns": {"root_id": {"name": "root_id", "description": "The corresponding UUID used in the root table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "root_tstamp": {"name": "root_tstamp", "description": "The timestamp for when this event was produced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_manufacturer": {"name": "device_manufacturer", "description": "Manufacturer name of the device eg. `Apple`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_model": {"name": "device_model", "description": "Model of the mobile device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_type": {"name": "os_type", "description": "Type of OS running on the mobile device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_version": {"name": "os_version", "description": "Operation system full version", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "android_idfa": {"name": "android_idfa", "description": "Identifier for Advertisers for Android devices.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "apple_idfa": {"name": "apple_idfa", "description": "Identifier for Advertisers for Apple devices.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "apple_idfv": {"name": "apple_idfv", "description": "Identifier for Vendors for Apple devices.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "carrier": {"name": "carrier", "description": "Carrier serivce provider used within device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "open_idfa": {"name": "open_idfa", "description": "Identifier for Vendors for Open devices.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network_technology": {"name": "network_technology", "description": "technology used by the network provider of the device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network_type": {"name": "network_type", "description": "Type of network eg. `3G`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "physical_memory": {"name": "physical_memory", "description": "Total physical system memory in bytes", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "system_available_memory": {"name": "system_available_memory", "description": "Available memory on the system in bytes (Android only)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_available_memory": {"name": "app_available_memory", "description": "Amount of memory in bytes available to the current app (iOS only)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "battery_level": {"name": "battery_level", "description": "Remaining battery level as an integer percentage of total battery capacity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "battery_state": {"name": "battery_state", "description": "Battery state for the device", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "low_power_mode": {"name": "low_power_mode", "description": "A Boolean indicating whether Low Power Mode is enabled (iOS only)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_storage": {"name": "available_storage", "description": "Bytes of storage remaining", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "total_storage": {"name": "total_storage", "description": "Total size of storage in bytes", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_portrait": {"name": "is_portrait", "description": "A Boolean indicating whether the device orientation is portrait (either upright or upside down)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolution": {"name": "resolution", "description": "Screen resolution in pixels. Arrives in the form of WIDTHxHEIGHT (e.g., 1200x900). Doesn't change when device orientation changes", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scale": {"name": "scale", "description": "Scale factor used to convert logical coordinates to device coordinates of the screen (uses UIScreen.scale on iOS and DisplayMetrics.density on Android)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "language": {"name": "language", "description": "System language currently used on the device (ISO 639)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_set_id": {"name": "app_set_id", "description": "Android vendor ID scoped to the set of apps published under the same Google Play developer account (see https://developer.android.com/training/articles/app-set-id)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "app_set_id_scope": {"name": "app_set_id_scope", "description": "Scope of the `appSetId`. Can be scoped to the app or to a developer account on an app store (all apps from the same developer on the same device will have the same ID)", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.com_snowplowanalytics_snowplow_mobile_context_1", "created_at": 1706612344.548037}, "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_geolocation_context_1": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "com_snowplowanalytics_snowplow_geolocation_context_1", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/base/src_base.yml", "original_file_path": "models/base/src_base.yml", "unique_id": "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_geolocation_context_1", "fqn": ["snowplow_unified", "base", "atomic", "com_snowplowanalytics_snowplow_geolocation_context_1"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "com_snowplowanalytics_snowplow_geolocation_context_1", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "**Redshift and Postgres only**. This context table contains geolocation data collected from the device.", "columns": {"root_id": {"name": "root_id", "description": "The corresponding UUID used in the root table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "root_tstamp": {"name": "root_tstamp", "description": "The timestamp for when this event was produced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "latitude": {"name": "latitude", "description": "Visitor location latitude e.g. `37.443604`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "longitude": {"name": "longitude", "description": "Visitor location longitude e.g. `-122.4124`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "latitude_longitude_accuracy": {"name": "latitude_longitude_accuracy", "description": "Accuracy of Latitude and Longitude coordinates for device location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "altitude": {"name": "altitude", "description": "Altitude coordinates for device location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "altitude_accuracy": {"name": "altitude_accuracy", "description": "Accuracy of device altitude coordinates.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "bearing": {"name": "bearing", "description": "Horizontal angle between device and true north.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "speed": {"name": "speed", "description": "Mobile device speed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.com_snowplowanalytics_snowplow_geolocation_context_1", "created_at": 1706612344.5482419}, "source.snowplow_unified.atomic.com_snowplowanalytics_mobile_application_1": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "com_snowplowanalytics_mobile_application_1", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/base/src_base.yml", "original_file_path": "models/base/src_base.yml", "unique_id": "source.snowplow_unified.atomic.com_snowplowanalytics_mobile_application_1", "fqn": ["snowplow_unified", "base", "atomic", "com_snowplowanalytics_mobile_application_1"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "com_snowplowanalytics_mobile_application_1", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "**Redshift and Postgres only**. This context table contains app build and version details.", "columns": {"root_id": {"name": "root_id", "description": "The corresponding UUID used in the root table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "root_tstamp": {"name": "root_tstamp", "description": "The timestamp for when this event was produced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "build": {"name": "build", "description": "The build of the application.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "version": {"name": "version", "description": "The application version.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.com_snowplowanalytics_mobile_application_1", "created_at": 1706612344.5484319}, "source.snowplow_unified.atomic.com_snowplowanalytics_mobile_screen_1": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "com_snowplowanalytics_mobile_screen_1", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/base/src_base.yml", "original_file_path": "models/base/src_base.yml", "unique_id": "source.snowplow_unified.atomic.com_snowplowanalytics_mobile_screen_1", "fqn": ["snowplow_unified", "base", "atomic", "com_snowplowanalytics_mobile_screen_1"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "com_snowplowanalytics_mobile_screen_1", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "**Redshift and Postgres only**. This context table contains the `screen_id` associated with a given mobile event.", "columns": {"root_id": {"name": "root_id", "description": "The corresponding UUID used in the root table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "root_tstamp": {"name": "root_tstamp", "description": "The timestamp for when this event was produced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "A UUID for each screen e.g. `738f1fbc-5298-46fa-9474-bc0a65f014ab`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name set for a specific screen, e.g. `DemoScreenName`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "activity": {"name": "activity", "description": "The name of the Activity element in the screen.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fragment": {"name": "fragment", "description": "The name of the screen fragment (also known as an anchor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_view_controller": {"name": "top_view_controller", "description": "The name of the root view controller.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of screen that was viewed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "view_controller": {"name": "view_controller", "description": "The name of the view controller.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.com_snowplowanalytics_mobile_screen_1", "created_at": 1706612344.5486357}, "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_application_error_1": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "com_snowplowanalytics_snowplow_application_error_1", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/base/src_base.yml", "original_file_path": "models/base/src_base.yml", "unique_id": "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_application_error_1", "fqn": ["snowplow_unified", "base", "atomic", "com_snowplowanalytics_snowplow_application_error_1"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "com_snowplowanalytics_snowplow_application_error_1", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "**Redshift and Postgres only**. This context table contains information about any errors thrown by the application.", "columns": {"root_id": {"name": "root_id", "description": "The corresponding UUID used in the root table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "root_tstamp": {"name": "root_tstamp", "description": "The timestamp for when this event was produced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "message": {"name": "message", "description": "The app error message.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "programming_language": {"name": "programming_language", "description": "The app error's programming language.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_name": {"name": "class_name", "description": "The app error class name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exception_name": {"name": "exception_name", "description": "The app error excetion's name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_fatal": {"name": "is_fatal", "description": "Boolean whether the app error is fatal or not.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "line_number": {"name": "line_number", "description": "The app error line number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stack_trace": {"name": "stack_trace", "description": "The stack trace of the app error.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "thread_id": {"name": "thread_id", "description": "The app error's thread id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "thread_name": {"name": "thread_name", "description": "The app error's thread name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.com_snowplowanalytics_snowplow_application_error_1", "created_at": 1706612344.548848}, "source.snowplow_unified.atomic.com_snowplowanalytics_mobile_screen_view_1": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "com_snowplowanalytics_mobile_screen_view_1", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/base/src_base.yml", "original_file_path": "models/base/src_base.yml", "unique_id": "source.snowplow_unified.atomic.com_snowplowanalytics_mobile_screen_view_1", "fqn": ["snowplow_unified", "base", "atomic", "com_snowplowanalytics_mobile_screen_view_1"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "com_snowplowanalytics_mobile_screen_view_1", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "**Redshift and Postgres only**. This table contains screen view events.", "columns": {"root_id": {"name": "root_id", "description": "The corresponding UUID used in the root table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "root_tstamp": {"name": "root_tstamp", "description": "The timestamp for when this event was produced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The UUID of a screen view.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the screen viewed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "previous_id": {"name": "previous_id", "description": "The UUID of the previous screen view.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "previous_name": {"name": "previous_name", "description": "The name of the previous screen view.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "previous_type": {"name": "previous_type", "description": "The type of the previous screen viewed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transition_type": {"name": "transition_type", "description": "The type of transition that led to the screen being viewed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of screen that was viewed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.com_snowplowanalytics_mobile_screen_view_1", "created_at": 1706612344.5490537}, "source.snowplow_unified.atomic.events": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "events", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/base/src_base.yml", "original_file_path": "models/base/src_base.yml", "unique_id": "source.snowplow_unified.atomic.events", "fqn": ["snowplow_unified", "base", "atomic", "events"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "snowplow_unified_events_stg", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The `events` table contains all canonical events generated by [Snowplow's](https://snowplow.io/) trackers, including web, mobile and server side events.", "columns": {"app_id": {"name": "app_id", "description": "Application ID e.g. \u2018angry-birds\u2019 is used to distinguish different applications that are being tracked by the same Snowplow stack, e.g. production versus dev.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "platform": {"name": "platform", "description": "Platform e.g. \u2018web\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "etl_tstamp": {"name": "etl_tstamp", "description": "Timestamp event began ETL e.g. \u20182017-01-26 00:01:25.292\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "collector_tstamp": {"name": "collector_tstamp", "description": "Time stamp for the event recorded by the collector e.g. \u20182013-11-26 00:02:05\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_created_tstamp": {"name": "dvce_created_tstamp", "description": "Timestamp event was recorded on the client device e.g. \u20182013-11-26 00:03:57.885\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event": {"name": "event", "description": "The type of event recorded e.g. \u2018page_view\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_id": {"name": "event_id", "description": "A UUID for each event e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "txn_id": {"name": "txn_id", "description": "Transaction ID set client-side, used to de-dupe records e.g. 421828", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name_tracker": {"name": "name_tracker", "description": "Tracker namespace e.g. \u2018sp1\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "v_tracker": {"name": "v_tracker", "description": "Tracker version e.g. \u2018js-3.0.0\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "v_collector": {"name": "v_collector", "description": "Collector version e.g. \u2018ssc-2.1.0-kinesis\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "v_etl": {"name": "v_etl", "description": "ETL version e.g. \u2018snowplow-micro-1.1.0-common-1.4.2\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "Unique ID set by business e.g. \u2018jon.doe@email.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_ipaddress": {"name": "user_ipaddress", "description": "User IP address e.g. \u201892.231.54.234\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_fingerprint": {"name": "user_fingerprint", "description": "A user fingerprint generated by looking at the individual browser features e.g. 2161814971", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_identifier": {"name": "user_identifier", "description": "The user identifier as defined in your project variables. Default to domain_userid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_session_index": {"name": "device_session_index", "description": "A visit / session index e.g. 3", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "network_userid": {"name": "network_userid", "description": "User ID set by Snowplow using 3rd party cookie e.g. \u2018ecdff4d0-9175-40ac-a8bb-325c49733607\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_country": {"name": "geo_country", "description": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_region": {"name": "geo_region", "description": "ISO-3166-2 code for country region the visitor is in e.g. \u2018I9\u2019, \u2018TX\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_city": {"name": "geo_city", "description": "City the visitor is in e.g. \u2018New York\u2019, \u2018London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_zipcode": {"name": "geo_zipcode", "description": "Postcode the visitor is in e.g. \u201894109\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_latitude": {"name": "geo_latitude", "description": "Visitor location latitude e.g. 37.443604", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_longitude": {"name": "geo_longitude", "description": "Visitor location longitude e.g. -122.4124", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_region_name": {"name": "geo_region_name", "description": "Visitor region name e.g. \u2018Florida\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ip_isp": {"name": "ip_isp", "description": "Visitor\u2019s ISP e.g. \u2018FDN Communications\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ip_organization": {"name": "ip_organization", "description": "Organization associated with the visitor\u2019s IP address \u2013 defaults to ISP name if none is found e.g. \u2018Bouygues Telecom\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ip_domain": {"name": "ip_domain", "description": "Second level domain name associated with the visitor\u2019s IP address e.g. \u2018nuvox.net\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ip_netspeed": {"name": "ip_netspeed", "description": "Visitor\u2019s connection type e.g. \u2018Cable/DSL\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_url": {"name": "page_url", "description": "The page URL e.g. \u2018http://www.example.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_title": {"name": "page_title", "description": "Web page title e.g. \u2018Snowplow Docs \u2013 Understanding the structure of Snowplow data\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_referrer": {"name": "page_referrer", "description": "URL of the referrer e.g. \u2018http://www.referrer.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlscheme": {"name": "page_urlscheme", "description": "Scheme aka protocol e.g. \u2018https\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlhost": {"name": "page_urlhost", "description": "Host aka domain e.g. \u2018\u201cwww.snowplow.io\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlport": {"name": "page_urlport", "description": "Port if specified, 80 if not 80", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlpath": {"name": "page_urlpath", "description": "Path to page e.g. \u2018/product/index.html\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlquery": {"name": "page_urlquery", "description": "Querystring e.g. \u2018id=GTM-DLRG\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "page_urlfragment": {"name": "page_urlfragment", "description": "Fragment aka anchor e.g. \u20184-conclusion\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlscheme": {"name": "refr_urlscheme", "description": "Referer scheme e.g. \u2018http\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlhost": {"name": "refr_urlhost", "description": "Referer host e.g. \u2018www.bing.com\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlport": {"name": "refr_urlport", "description": "Referer port e.g. 80", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlpath": {"name": "refr_urlpath", "description": "Referer page path e.g. \u2018/images/search\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlquery": {"name": "refr_urlquery", "description": "Referer URL querystring e.g. \u2018q=psychic+oracle+cards\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_urlfragment": {"name": "refr_urlfragment", "description": "Referer URL fragment", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_medium": {"name": "refr_medium", "description": "Type of referer e.g. \u2018search\u2019, \u2018internal\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_source": {"name": "refr_source", "description": "Name of referer if recognised e.g. \u2018Bing images\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_term": {"name": "refr_term", "description": "Keywords if source is a search engine e.g. \u2018psychic oracle cards\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_medium": {"name": "mkt_medium", "description": "Type of traffic source e.g. \u2018cpc\u2019, \u2018affiliate\u2019, \u2018organic\u2019, \u2018social\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_source": {"name": "mkt_source", "description": "The company / website where the traffic came from e.g. \u2018Google\u2019, \u2018Facebook\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_term": {"name": "mkt_term", "description": "Any keywords associated with the referrer e.g. \u2018new age tarot decks\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_content": {"name": "mkt_content", "description": "The content of the ad. (Or an ID so that it can be looked up.) e.g. 13894723", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_campaign": {"name": "mkt_campaign", "description": "The campaign ID e.g. \u2018diageo-123\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "se_category": {"name": "se_category", "description": "Category of event e.g. \u2018ecomm\u2019, \u2018video\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "se_action": {"name": "se_action", "description": "Action performed / event name e.g. \u2018add-to-basket\u2019, \u2018play-video\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "se_label": {"name": "se_label", "description": "The object of the action e.g. the ID of the video played or SKU of the product added-to-basket e.g. \u2018pbz00123\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "se_property": {"name": "se_property", "description": "A property associated with the object of the action e.g. \u2018HD\u2019, \u2018large\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "se_value": {"name": "se_value", "description": "A value associated with the event / action e.g. the value of goods added-to-basket e.g. 9.99", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_orderid": {"name": "tr_orderid", "description": "Order ID e.g. \u2018#134\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_affiliation": {"name": "tr_affiliation", "description": "Transaction affiliation (e.g. store where sale took place) e.g. \u2018web\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_total": {"name": "tr_total", "description": "Total transaction value e.g. 12.99", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_tax": {"name": "tr_tax", "description": "Total tax included in transaction value e.g. 3.00", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_shipping": {"name": "tr_shipping", "description": "Delivery cost charged e.g. 0.00", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_city": {"name": "tr_city", "description": "Delivery address, city e.g. \u2018London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_state": {"name": "tr_state", "description": "Delivery address, state e.g. \u2018Washington\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_country": {"name": "tr_country", "description": "Delivery address, country e.g. \u2018France\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_orderid": {"name": "ti_orderid", "description": "Order ID e.g. \u2018#134\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_sku": {"name": "ti_sku", "description": "Product SKU e.g. \u2018pbz00123\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_name": {"name": "ti_name", "description": "Product name e.g. \u2018Cone pendulum\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_category": {"name": "ti_category", "description": "Product category e.g. \u2018New Age\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_price": {"name": "ti_price", "description": "Product unit price e.g. 9.99", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_quantity": {"name": "ti_quantity", "description": "Number of product in transaction e.g. 2", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pp_xoffset_min": {"name": "pp_xoffset_min", "description": "Minimum page x offset seen in the last ping period e.g. 0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pp_xoffset_max": {"name": "pp_xoffset_max", "description": "Maximum page x offset seen in the last ping period e.g. 100", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pp_yoffset_min": {"name": "pp_yoffset_min", "description": "Minimum page y offset seen in the last ping period e.g. 0", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pp_yoffset_max": {"name": "pp_yoffset_max", "description": "Maximum page y offset seen in the last ping period e.g. 200", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "useragent": {"name": "useragent", "description": "Raw useragent", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_name": {"name": "br_name", "description": "Browser name e.g. \u2018Firefox 12\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_family": {"name": "br_family", "description": "Browser family e.g. \u2018Firefox\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_version": {"name": "br_version", "description": "Browser version e.g. \u201812.0\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_type": {"name": "br_type", "description": "Browser type e.g. \u2018Browser\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_renderengine": {"name": "br_renderengine", "description": "Browser rendering engine e.g. \u2018GECKO\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_lang": {"name": "br_lang", "description": "Language the browser is set to e.g. \u2018en-GB\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_pdf": {"name": "br_features_pdf", "description": "Whether the browser recognizes PDFs e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_flash": {"name": "br_features_flash", "description": "Whether Flash is installed e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_java": {"name": "br_features_java", "description": "Whether Java is installed e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_director": {"name": "br_features_director", "description": "Whether Adobe Shockwave is installed e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_quicktime": {"name": "br_features_quicktime", "description": "Whether QuickTime is installed e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_realplayer": {"name": "br_features_realplayer", "description": "Whether RealPlayer is installed e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_windowsmedia": {"name": "br_features_windowsmedia", "description": "Whether mplayer2 is installed e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_gears": {"name": "br_features_gears", "description": "Whether Google Gears is installed e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_features_silverlight": {"name": "br_features_silverlight", "description": "Whether Microsoft Silverlight is installed e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_cookies": {"name": "br_cookies", "description": "Whether cookies are enabled e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_colordepth": {"name": "br_colordepth", "description": "Bit depth of the browser color palette e.g. 24", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_viewwidth": {"name": "br_viewwidth", "description": "Viewport width e.g. 1000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "br_viewheight": {"name": "br_viewheight", "description": "Viewport height e.g. 1000", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_name": {"name": "os_name", "description": "Name of operating system e.g. \u2018Android\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_family": {"name": "os_family", "description": "Operating system family e.g. \u2018Linux\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_manufacturer": {"name": "os_manufacturer", "description": "Company responsible for OS e.g. \u2018Apple\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "os_timezone": {"name": "os_timezone", "description": "Client operating system timezone e.g. \u2018Europe/London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_type": {"name": "dvce_type", "description": "Type of device e.g. \u2018Computer\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_ismobile": {"name": "dvce_ismobile", "description": "Is the device mobile? e.g. True", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_screenwidth": {"name": "dvce_screenwidth", "description": "Screen width in pixels e.g. 1900", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_screenheight": {"name": "dvce_screenheight", "description": "Screen height in pixels e.g. 1024", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "doc_charset": {"name": "doc_charset", "description": "The page\u2019s character encoding e.g. , \u2018UTF-8\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "doc_width": {"name": "doc_width", "description": "The page\u2019s width in pixels e.g. 1024\n\nOn mobile, it is the content width reported in the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "doc_height": {"name": "doc_height", "description": "The page\u2019s height in pixels e.g. 3000\n\nOn mobile, it is the content height reported in the `screen_summary` context.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_currency": {"name": "tr_currency", "description": "Currency e.g. \u2018USD\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_total_base": {"name": "tr_total_base", "description": "Total in base currency e.g. 12.99", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_tax_base": {"name": "tr_tax_base", "description": "Total tax in base currency e.g. 3.00", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tr_shipping_base": {"name": "tr_shipping_base", "description": "decimal Delivery cost in base currency e.g. 0.00", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_currency": {"name": "ti_currency", "description": "Currency e.g. \u2018EUR\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ti_price_base": {"name": "ti_price_base", "description": "decimal Price in base currency e.g. 9.99", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_currency": {"name": "base_currency", "description": "Reporting currency e.g. \u2018GBP\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "geo_timezone": {"name": "geo_timezone", "description": "Visitor timezone name e.g. \u2018Europe/London\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_clickid": {"name": "mkt_clickid", "description": "The click ID e.g. \u2018ac3d8e459\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mkt_network": {"name": "mkt_network", "description": "The ad network to which the click ID belongs e.g. \u2018DoubleClick\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "etl_tags": {"name": "etl_tags", "description": "JSON of tags for this ETL run e.g. \u201c[\u2018prod\u2019]\u201d", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_sent_tstamp": {"name": "dvce_sent_tstamp", "description": "When the event was sent by the client device e.g. \u20182013-11-26 00:03:58.032\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_user_identifier": {"name": "refr_user_identifier", "description": "User identifier specified in your project variables. By default this is the true domain_userid, a user ID set by Snowplow using 1st party cookie e.g. \u2018bc2e92ec6c204a14\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "refr_dvce_tstamp": {"name": "refr_dvce_tstamp", "description": "The time of attaching the domain_userid to the inbound link e.g. \u20182013-11-26 00:02:05\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_identifier": {"name": "session_identifier", "description": "The session identifier as defined in your project variables. Default to domain_sessionid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "derived_tstamp": {"name": "derived_tstamp", "description": "Timestamp making allowance for innaccurate device clock e.g. \u20182013-11-26 00:02:04\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_vendor": {"name": "event_vendor", "description": "Who defined the event e.g. \u2018com.acme\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_name": {"name": "event_name", "description": "Event name e.g. \u2018link_click\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_format": {"name": "event_format", "description": "Format for event e.g. \u2018jsonschema\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_version": {"name": "event_version", "description": "Version of event schema e.g. \u20181-0-2\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "event_fingerprint": {"name": "event_fingerprint", "description": "Hash client-set event fields e.g. AADCE520E20C2899F4CED228A79A3083", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "true_tstamp": {"name": "true_tstamp", "description": "User-set \u201ctrue timestamp\u201d for the event e.g. \u20182013-11-26 00:02:04\u2019", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.snowplow_unified_events_stg", "created_at": 1706612344.5496807}, "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_browser_context_1": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "com_snowplowanalytics_snowplow_browser_context_1", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/base/src_base.yml", "original_file_path": "models/base/src_base.yml", "unique_id": "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_browser_context_1", "fqn": ["snowplow_unified", "base", "atomic", "com_snowplowanalytics_snowplow_browser_context_1"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "com_snowplowanalytics_snowplow_browser_context_1", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "**Redshift and Postgres only**. This context table contains many useful browser related fields such as the HTML document language or its size / dimensions.", "columns": {"root_id": {"name": "root_id", "description": "The corresponding UUID used in the root table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "root_tstamp": {"name": "root_tstamp", "description": "The timestamp for when this event was produced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "viewport": {"name": "viewport", "description": "Viewport dimensions of the browser. Arrives in the form of WidthxHeight e.g. 1200x900.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "document_size": {"name": "document_size", "description": "Document dimensions. Arrives in the form of WidthxHeight e.g. 1200x900", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resolution": {"name": "resolution", "description": "Device native resolution. Arrives in the form of WidthxHeight e.g. 1200x900\ncolor_depth\tThe number of bits allocated to colors for a pixel in the output device, excluding the alpha channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "color_depth": {"name": "color_depth", "description": "The number of bits allocated to colors for a pixel in the output device, excluding the alpha channel.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_pixel_ratio": {"name": "device_pixel_ratio", "description": "Ratio of the resolution in physical pixels to the resolution in CSS pixels for the current display device.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cookies_enabled": {"name": "cookies_enabled", "description": "Indicates whether cookies are enabled or not. More info and caveats at https://developer.mozilla.org/en-US/docs/Web/API/Navigator/cookieEnabled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "online": {"name": "online", "description": "Returns the online status of the browser. Important caveats are described in https://developer.mozilla.org/en-US/docs/Web/API/Navigator/onLine.\nbrowser_language\nThe preferred language of the user, usually the language of the browser UI. RFC 5646 https://datatracker.ietf.org/doc/html/rfc5646.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "browser_language": {"name": "browser_language", "description": "The preferred language of the user, usually the language of the browser UI. RFC 5646 https://datatracker.ietf.org/doc/html/rfc5646.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "webdriver": {"name": "webdriver", "description": "Indicates whether the user agent is controlled by automation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "device_memory": {"name": "device_memory", "description": "Approximate amount of device memory in gigabytes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hardware_concurrency": {"name": "hardware_concurrency", "description": "Number of logical processors available to run threads on the user's computer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tab_id": {"name": "tab_id", "description": "An identifier for the client browser tab the event is sent from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.com_snowplowanalytics_snowplow_browser_context_1", "created_at": 1706612344.549908}, "source.snowplow_unified.atomic.contexts_com_snowplowanalytics_mobile_deep_link_1": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "contexts_com_snowplowanalytics_mobile_deep_link_1", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/base/src_base.yml", "original_file_path": "models/base/src_base.yml", "unique_id": "source.snowplow_unified.atomic.contexts_com_snowplowanalytics_mobile_deep_link_1", "fqn": ["snowplow_unified", "base", "atomic", "contexts_com_snowplowanalytics_mobile_deep_link_1"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "contexts_com_snowplowanalytics_mobile_deep_link_1", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "**Redshift and Postgres only**. This context table contains the url and referrer of the deep link.", "columns": {"root_id": {"name": "root_id", "description": "The corresponding UUID used in the root table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "root_tstamp": {"name": "root_tstamp", "description": "The timestamp for when this event was produced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "url": {"name": "url", "description": "URL in the received deep-link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referrer": {"name": "referrer", "description": "Referrer URL, source of this deep-link.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.contexts_com_snowplowanalytics_mobile_deep_link_1", "created_at": 1706612344.5501359}, "source.snowplow_unified.atomic.contexts_com_snowplowanalytics_mobile_screen_summary_1": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "contexts_com_snowplowanalytics_mobile_screen_summary_1", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/base/src_base.yml", "original_file_path": "models/base/src_base.yml", "unique_id": "source.snowplow_unified.atomic.contexts_com_snowplowanalytics_mobile_screen_summary_1", "fqn": ["snowplow_unified", "base", "atomic", "contexts_com_snowplowanalytics_mobile_screen_summary_1"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "contexts_com_snowplowanalytics_mobile_screen_summary_1", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "**Redshift and Postgres only**. This context table contains the url and referrer of the deep link.", "columns": {"root_id": {"name": "root_id", "description": "The corresponding UUID used in the root table.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "root_tstamp": {"name": "root_tstamp", "description": "The timestamp for when this event was produced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "foreground_sec": {"name": "foreground_sec", "description": "Time in seconds spent on the current screen while the app was in foreground.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "background_sec": {"name": "background_sec", "description": "Time in seconds spent on the current screen while the app was in background", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_item_index": {"name": "last_item_index", "description": "Index of the last viewed item in the list on the screen", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "items_count": {"name": "items_count", "description": "Total number of items in the list on the screen", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "min_x_offset": {"name": "min_x_offset", "description": "Minimum horizontal scroll offset on the scroll view in pixels", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "max_x_offset": {"name": "max_x_offset", "description": "Maximum horizontal scroll offset on the scroll view in pixels", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "min_y_offset": {"name": "min_y_offset", "description": "Minimum vertical scroll offset on the scroll view in pixels", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "max_y_offset": {"name": "max_y_offset", "description": "Maximum vertical scroll offset on the scroll view in pixels", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "content_width": {"name": "content_width", "description": "Width of the scroll view in pixels", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "content_height": {"name": "content_height", "description": "Height of the scroll view in pixels", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.contexts_com_snowplowanalytics_mobile_screen_summary_1", "created_at": 1706612344.5503542}, "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_consent_preferences_1": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "com_snowplowanalytics_snowplow_consent_preferences_1", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/optional_modules/consent/consent.yml", "original_file_path": "models/optional_modules/consent/consent.yml", "unique_id": "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_consent_preferences_1", "fqn": ["snowplow_unified", "optional_modules", "consent", "atomic", "com_snowplowanalytics_snowplow_consent_preferences_1"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "com_snowplowanalytics_snowplow_consent_preferences_1", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "**Redshift and Postgres only**. The consent preferences table is for storing consent preference selection events.", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.com_snowplowanalytics_snowplow_consent_preferences_1", "created_at": 1706612344.5505457}, "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_cmp_visible_1": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "com_snowplowanalytics_snowplow_cmp_visible_1", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/optional_modules/consent/consent.yml", "original_file_path": "models/optional_modules/consent/consent.yml", "unique_id": "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_cmp_visible_1", "fqn": ["snowplow_unified", "optional_modules", "consent", "atomic", "com_snowplowanalytics_snowplow_cmp_visible_1"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "com_snowplowanalytics_snowplow_cmp_visible_1", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "**Redshift and Postgres only**. The cmp visible events table stores events related to the Consent Management Platform becoming available for users.", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.com_snowplowanalytics_snowplow_cmp_visible_1", "created_at": 1706612344.5507238}, "source.snowplow_unified.atomic.unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1": {"database": "SNOWPLOW_DEV1", "schema": "snowflake_snplw_unified_int_tests", "name": "unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1", "resource_type": "source", "package_name": "snowplow_unified", "path": "models/optional_modules/core_web_vitals/core_web_vitals.yml", "original_file_path": "models/optional_modules/core_web_vitals/core_web_vitals.yml", "unique_id": "source.snowplow_unified.atomic.unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1", "fqn": ["snowplow_unified", "optional_modules", "core_web_vitals", "atomic", "unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1"], "source_name": "atomic", "source_description": "", "loader": "", "identifier": "unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "**Redshift and Postgres only**. The consent preferences table is for storing consent preference selection events.", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "SNOWPLOW_DEV1.snowflake_snplw_unified_int_tests.unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1", "created_at": 1706612344.5509079}}, "macros": {"macro.snowplow_unified_integration_tests.default__content_group_query": {"name": "default__content_group_query", "resource_type": "macro", "package_name": "snowplow_unified_integration_tests", "path": "macros/content_group_overwrite.sql", "original_file_path": "macros/content_group_overwrite.sql", "unique_id": "macro.snowplow_unified_integration_tests.default__content_group_query", "macro_sql": "{% macro default__content_group_query() %}\n case when ev.view_id = 'ff8cc048-afe8-4913-843d-37de6b7d87d0' then 'Look no further, I am the test subject!'\n when ev.page_url like '%/product%' then 'PDP'\n when ev.page_url like '%/list%' then 'PLP'\n when ev.page_url like '%/checkout%' then 'checkout'\n when ev.page_url like '%/home%' then 'homepage'\n else 'other'\n end\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8071122, "supported_languages": null}, "macro.snowplow_unified_integration_tests.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "snowplow_unified_integration_tests", "path": "macros/equality.sql", "original_file_path": "macros/equality.sql", "unique_id": "macro.snowplow_unified_integration_tests.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None, ignore_columns=None, precision = None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns, ignore_columns, precision)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.snowplow_unified_integration_tests.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8106427, "supported_languages": null}, "macro.snowplow_unified_integration_tests.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "snowplow_unified_integration_tests", "path": "macros/equality.sql", "original_file_path": "macros/equality.sql", "unique_id": "macro.snowplow_unified_integration_tests.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None, ignore_columns=None, precision = None) %}\n\n{%- if compare_columns and ignore_columns -%}\n {{ exceptions.raise_compiler_error(\"Both a compare and an ignore list were provided to the `equality` macro. Only one is allowed\") }}\n{%- endif -%}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{# Ensure there are no extra columns in the compare_model vs model #}\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- do dbt_utils._is_ephemeral(compare_model, 'test_equality') -%}\n\n {%- set model_columns = adapter.get_columns_in_relation(model) -%}\n {%- set compare_model_columns = adapter.get_columns_in_relation(compare_model) -%}\n\n\n {%- if ignore_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set ignore_columns = ignore_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- set include_model_columns = [] %}\n {%- for column in model_columns -%}\n {%- if column.name | lower not in ignore_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n {%- for column in compare_model_columns -%}\n {%- if column.name | lower not in ignore_columns -%}\n {% do include_model_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns_set = set(include_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(include_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- else -%}\n {%- set compare_columns_set = set(model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- set compare_model_columns_set = set(compare_model_columns | map(attribute='quoted') | map(\"lower\")) %}\n {%- endif -%}\n\n {% if compare_columns_set != compare_model_columns_set %}\n {{ exceptions.raise_compiler_error(compare_model ~\" has less columns than \" ~ model ~ \", please ensure they have the same columns or use the `compare_columns` or `ignore_columns` arguments to subset them.\") }}\n {% endif %}\n\n\n{% endif %}\n\n{%- if not precision -%}\n {#-\n If the compare_cols arg is provided, we can run this test without querying the\n information schema\u00a0\u2014 this allows the model to be an ephemeral model\n -#}\n {%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model)-%}\n\n\n {%- if ignore_columns -%}\n {#-- Lower case ignore columns for easier comparison --#}\n {%- set ignore_columns = ignore_columns | map(\"lower\") | list %}\n\n {# Filter out the excluded columns #}\n {%- set include_columns = [] %}\n {%- for column in compare_columns -%}\n {%- if column.name | lower not in ignore_columns -%}\n {% do include_columns.append(column) %}\n {%- endif %}\n {%- endfor %}\n\n {%- set compare_columns = include_columns | map(attribute='quoted') %}\n {%- else -%}\n {%- set compare_columns = compare_columns | map(attribute='quoted') %}\n {%- endif -%}\n {%- endif -%}\n\n {% set compare_cols_csv = compare_columns | join(', ') %}\n\n{% else %}\n {#-\n If rounding is required, we need to get the types, so it can't be ephermeral\n -#}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set columns = adapter.get_columns_in_relation(model) -%}\n\n {% set columns_list = [] %}\n {%- for col in columns -%}\n {%- if (\n (col.name|lower in compare_columns|map('lower') or not compare_columns) and\n (col.name|lower not in ignore_columns|map('lower') or not ignore_columns)\n ) -%}\n {# Databricks double type is not picked up by any number type checks in dbt #}\n {%- if col.is_float() or col.is_numeric() or col.data_type == 'double' -%}\n {# Cast is required due to postgres not having round for a double precision number #}\n {%- do columns_list.append('round(cast(' ~ col.quoted ~ ' as ' ~ dbt.type_numeric() ~ '),' ~ precision ~ ') as ' ~ col.quoted) -%}\n {%- else -%}\n {%- do columns_list.append(col.quoted) -%}\n {%- endif -%}\n {% endif %}\n {%- endfor -%}\n\n {% set compare_cols_csv = columns_list | join(', ') %}\n\n{% endif %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_numeric", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8194137, "supported_languages": null}, "macro.snowplow_unified_integration_tests.default__engaged_session": {"name": "default__engaged_session", "resource_type": "macro", "package_name": "snowplow_unified_integration_tests", "path": "macros/engaged_session_overwrite.sql", "original_file_path": "macros/engaged_session_overwrite.sql", "unique_id": "macro.snowplow_unified_integration_tests.default__engaged_session", "macro_sql": "{% macro default__engaged_session() %}\n case when a.session_identifier= '0b0c7bb589ebd041177514f3e43446ca5d4343328936d2f8f12a42b41bf9140e' then true\n else\n views >= 2\n\n {% if var('snowplow__enable_web') %}\n or engaged_time_in_s / {{ var('snowplow__heartbeat', 10) }} >= 2\n {%- endif %}\n\n {%- if var('snowplow__conversion_events', none) %}\n {%- for conv_def in var('snowplow__conversion_events') %}\n or cv_{{ conv_def['name'] }}_converted\n {%- endfor %}\n {%- endif %} end\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.820739, "supported_languages": null}, "macro.snowplow_unified_integration_tests.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "snowplow_unified_integration_tests", "path": "macros/get_batch_size.sql", "original_file_path": "macros/get_batch_size.sql", "unique_id": "macro.snowplow_unified_integration_tests.get_batch_size", "macro_sql": "{% macro get_batch_size() %}\n {{ return(100) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8211749, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_table_as": {"name": "snowflake__create_table_as", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__create_table_as", "macro_sql": "{% macro snowflake__create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {%- if language == 'sql' -%}\n {%- set transient = config.get('transient', default=true) -%}\n {%- set cluster_by_keys = config.get('cluster_by', default=none) -%}\n {%- set enable_automatic_clustering = config.get('automatic_clustering', default=false) -%}\n {%- set copy_grants = config.get('copy_grants', default=false) -%}\n\n {%- if cluster_by_keys is not none and cluster_by_keys is string -%}\n {%- set cluster_by_keys = [cluster_by_keys] -%}\n {%- endif -%}\n {%- if cluster_by_keys is not none -%}\n {%- set cluster_by_string = cluster_by_keys|join(\", \")-%}\n {% else %}\n {%- set cluster_by_string = none -%}\n {%- endif -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace {% if temporary -%}\n temporary\n {%- elif transient -%}\n transient\n {%- endif %} table {{ relation }}\n {%- set contract_config = config.get('contract') -%}\n {%- if contract_config.enforced -%}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {% set compiled_code = get_select_subquery(compiled_code) %}\n {% endif %}\n {% if copy_grants and not temporary -%} copy grants {%- endif %} as\n (\n {%- if cluster_by_string is not none -%}\n select * from (\n {{ compiled_code }}\n ) order by ({{ cluster_by_string }})\n {%- else -%}\n {{ compiled_code }}\n {%- endif %}\n );\n {% if cluster_by_string is not none and not temporary -%}\n alter table {{relation}} cluster by ({{cluster_by_string}});\n {%- endif -%}\n {% if enable_automatic_clustering and cluster_by_string is not none and not temporary -%}\n alter table {{relation}} resume recluster;\n {%- endif -%}\n\n {%- elif language == 'python' -%}\n {{ py_write_table(compiled_code=compiled_code, target_relation=relation, temporary=temporary) }}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"snowflake__create_table_as macro didn't get supported language, it got %s\" % language) %}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery", "macro.dbt_snowflake.py_write_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8466334, "supported_languages": null}, "macro.dbt_snowflake.get_column_comment_sql": {"name": "get_column_comment_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.get_column_comment_sql", "macro_sql": "{% macro get_column_comment_sql(column_name, column_dict) -%}\n {% if (column_name|upper in column_dict) -%}\n {% set matched_column = column_name|upper -%}\n {% elif (column_name|lower in column_dict) -%}\n {% set matched_column = column_name|lower -%}\n {% elif (column_name in column_dict) -%}\n {% set matched_column = column_name -%}\n {% else -%}\n {% set matched_column = None -%}\n {% endif -%}\n {% if matched_column -%}\n {{ adapter.quote(column_name) }} COMMENT $${{ column_dict[matched_column]['description'] | replace('$', '[$]') }}$$\n {%- else -%}\n {{ adapter.quote(column_name) }} COMMENT $$$$\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8481832, "supported_languages": null}, "macro.dbt_snowflake.get_persist_docs_column_list": {"name": "get_persist_docs_column_list", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.get_persist_docs_column_list", "macro_sql": "{% macro get_persist_docs_column_list(model_columns, query_columns) %}\n(\n {% for column_name in query_columns %}\n {{ get_column_comment_sql(column_name, model_columns) }}\n {{- \", \" if not loop.last else \"\" }}\n {% endfor %}\n)\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.get_column_comment_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8487873, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_view_as_with_temp_flag": {"name": "snowflake__create_view_as_with_temp_flag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__create_view_as_with_temp_flag", "macro_sql": "{% macro snowflake__create_view_as_with_temp_flag(relation, sql, is_temporary=False) -%}\n {%- set secure = config.get('secure', default=false) -%}\n {%- set copy_grants = config.get('copy_grants', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create or replace {% if secure -%}\n secure\n {%- endif %} {% if is_temporary -%}\n temporary\n {%- endif %} view {{ relation }}\n {% if config.persist_column_docs() -%}\n {% set model_columns = model.columns %}\n {% set query_columns = get_columns_in_query(sql) %}\n {{ get_persist_docs_column_list(model_columns, query_columns) }}\n\n {%- endif %}\n {%- set contract_config = config.get('contract') -%}\n {%- if contract_config.enforced -%}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n {% if copy_grants -%} copy grants {%- endif %} as (\n {{ sql }}\n );\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query", "macro.dbt_snowflake.get_persist_docs_column_list", "macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8508468, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_view_as": {"name": "snowflake__create_view_as", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__create_view_as", "macro_sql": "{% macro snowflake__create_view_as(relation, sql) -%}\n {{ snowflake__create_view_as_with_temp_flag(relation, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_view_as_with_temp_flag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8511734, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_columns_in_relation": {"name": "snowflake__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_columns_in_relation", "macro_sql": "{% macro snowflake__get_columns_in_relation(relation) -%}\n {%- set sql -%}\n describe table {{ relation }}\n {%- endset -%}\n {%- set result = run_query(sql) -%}\n\n {% set maximum = 10000 %}\n {% if (result | length) >= maximum %}\n {% set msg %}\n Too many columns in relation {{ relation }}! dbt can only get\n information about relations with fewer than {{ maximum }} columns.\n {% endset %}\n {% do exceptions.raise_compiler_error(msg) %}\n {% endif %}\n\n {% set columns = [] %}\n {% for row in result %}\n {% do columns.append(api.Column.from_description(row['name'], row['type'])) %}\n {% endfor %}\n {% do return(columns) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8527884, "supported_languages": null}, "macro.dbt_snowflake.snowflake__list_schemas": {"name": "snowflake__list_schemas", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__list_schemas", "macro_sql": "{% macro snowflake__list_schemas(database) -%}\n {# 10k limit from here: https://docs.snowflake.net/manuals/sql-reference/sql/show-schemas.html#usage-notes #}\n {% set maximum = 10000 %}\n {% set sql -%}\n show terse schemas in database {{ database }}\n limit {{ maximum }}\n {%- endset %}\n {% set result = run_query(sql) %}\n {% if (result | length) >= maximum %}\n {% set msg %}\n Too many schemas in database {{ database }}! dbt can only get\n information about databases with fewer than {{ maximum }} schemas.\n {% endset %}\n {% do exceptions.raise_compiler_error(msg) %}\n {% endif %}\n {{ return(result) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8539782, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_paginated_relations_array": {"name": "snowflake__get_paginated_relations_array", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_paginated_relations_array", "macro_sql": "{% macro snowflake__get_paginated_relations_array(max_iter, max_results_per_iter, max_total_results, schema_relation, watermark) %}\n\n {% set paginated_relations = [] %}\n\n {% for _ in range(0, max_iter) %}\n\n {%- set paginated_sql -%}\n show terse objects in {{ schema_relation }} limit {{ max_results_per_iter }} from '{{ watermark.table_name }}'\n {%- endset -%}\n\n {%- set paginated_result = run_query(paginated_sql) %}\n {%- set paginated_n = (paginated_result | length) -%}\n\n {#\n terminating condition: if there are 0 records in the result we reached\n the end exactly on the previous iteration\n #}\n {%- if paginated_n == 0 -%}\n {%- break -%}\n {%- endif -%}\n\n {#\n terminating condition: At some point the user needs to be reasonable with how\n many objects are contained in their schemas. Since there was already\n one iteration before attempting pagination, loop.index == max_iter means\n the limit has been surpassed.\n #}\n\n {%- if loop.index == max_iter -%}\n {%- set msg -%}\n dbt will list a maximum of {{ max_total_results }} objects in schema {{ schema_relation }}.\n Your schema exceeds this limit. Please contact support@getdbt.com for troubleshooting tips,\n or review and reduce the number of objects contained.\n {%- endset -%}\n\n {% do exceptions.raise_compiler_error(msg) %}\n {%- endif -%}\n\n {%- do paginated_relations.append(paginated_result) -%}\n {% set watermark.table_name = paginated_result.columns[1].values()[-1] %}\n\n {#\n terminating condition: paginated_n < max_results_per_iter means we reached the end\n #}\n {%- if paginated_n < max_results_per_iter -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n\n {{ return(paginated_relations) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8561282, "supported_languages": null}, "macro.dbt_snowflake.snowflake__list_relations_without_caching": {"name": "snowflake__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__list_relations_without_caching", "macro_sql": "{% macro snowflake__list_relations_without_caching(schema_relation, max_iter=10, max_results_per_iter=10000) %}\n\n {%- set max_total_results = max_results_per_iter * max_iter -%}\n\n {%- set sql -%}\n show terse objects in {{ schema_relation }} limit {{ max_results_per_iter }}\n {%- endset -%}\n\n {%- set result = run_query(sql) -%}\n\n {%- set n = (result | length) -%}\n {%- set watermark = namespace(table_name=result.columns[1].values()[-1]) -%}\n {%- set paginated = namespace(result=[]) -%}\n\n {% if n >= max_results_per_iter %}\n\n {% set paginated.result = snowflake__get_paginated_relations_array(\n max_iter,\n max_results_per_iter,\n max_total_results,\n schema_relation,\n watermark\n )\n %}\n\n {% endif %}\n\n {%- set all_results_array = [result] + paginated.result -%}\n {%- set result = result.merge(all_results_array) -%}\n {%- do return(result) -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt_snowflake.snowflake__get_paginated_relations_array"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.858186, "supported_languages": null}, "macro.dbt_snowflake.snowflake__check_schema_exists": {"name": "snowflake__check_schema_exists", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__check_schema_exists", "macro_sql": "{% macro snowflake__check_schema_exists(information_schema, schema) -%}\n {% call statement('check_schema_exists', fetch_result=True) -%}\n select count(*)\n from {{ information_schema }}.schemata\n where upper(schema_name) = upper('{{ schema }}')\n and upper(catalog_name) = upper('{{ information_schema.database }}')\n {%- endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8589005, "supported_languages": null}, "macro.dbt_snowflake.snowflake__rename_relation": {"name": "snowflake__rename_relation", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__rename_relation", "macro_sql": "{% macro snowflake__rename_relation(from_relation, to_relation) -%}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ to_relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8593576, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_column_type": {"name": "snowflake__alter_column_type", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__alter_column_type", "macro_sql": "{% macro snowflake__alter_column_type(relation, column_name, new_column_type) -%}\n {% call statement('alter_column_type') %}\n alter table {{ relation }} alter {{ adapter.quote(column_name) }} set data type {{ new_column_type }};\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8599052, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_relation_comment": {"name": "snowflake__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__alter_relation_comment", "macro_sql": "{% macro snowflake__alter_relation_comment(relation, relation_comment) -%}\n {%- if relation.is_dynamic_table -%}\n {%- set relation_type = 'dynamic table' -%}\n {%- else -%}\n {%- set relation_type = relation.type -%}\n {%- endif -%}\n comment on {{ relation_type }} {{ relation }} IS $${{ relation_comment | replace('$', '[$]') }}$$;\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8606265, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_column_comment": {"name": "snowflake__alter_column_comment", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__alter_column_comment", "macro_sql": "{% macro snowflake__alter_column_comment(relation, column_dict) -%}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% if relation.is_dynamic_table -%}\n {% set relation_type = \"dynamic table\" %}\n {% else -%}\n {% set relation_type = relation.type %}\n {% endif %}\n alter {{ relation_type }} {{ relation }} alter\n {% for column_name in existing_columns if (column_name in existing_columns) or (column_name|lower in existing_columns) %}\n {{ get_column_comment_sql(column_name, column_dict) }} {{- ',' if not loop.last else ';' }}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.get_column_comment_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.86202, "supported_languages": null}, "macro.dbt_snowflake.get_current_query_tag": {"name": "get_current_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.get_current_query_tag", "macro_sql": "{% macro get_current_query_tag() -%}\n {{ return(run_query(\"show parameters like 'query_tag' in session\").rows[0]['value']) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8624148, "supported_languages": null}, "macro.dbt_snowflake.set_query_tag": {"name": "set_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.set_query_tag", "macro_sql": "{% macro set_query_tag() -%}\n {{ return(adapter.dispatch('set_query_tag', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.snowflake__set_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8627646, "supported_languages": null}, "macro.dbt_snowflake.snowflake__set_query_tag": {"name": "snowflake__set_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__set_query_tag", "macro_sql": "{% macro snowflake__set_query_tag() -%}\n {% set new_query_tag = config.get('query_tag') %}\n {% if new_query_tag %}\n {% set original_query_tag = get_current_query_tag() %}\n {{ log(\"Setting query_tag to '\" ~ new_query_tag ~ \"'. Will reset to '\" ~ original_query_tag ~ \"' after materialization.\") }}\n {% do run_query(\"alter session set query_tag = '{}'\".format(new_query_tag)) %}\n {{ return(original_query_tag)}}\n {% endif %}\n {{ return(none)}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.get_current_query_tag", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8637648, "supported_languages": null}, "macro.dbt_snowflake.unset_query_tag": {"name": "unset_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.unset_query_tag", "macro_sql": "{% macro unset_query_tag(original_query_tag) -%}\n {{ return(adapter.dispatch('unset_query_tag', 'dbt')(original_query_tag)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8641584, "supported_languages": null}, "macro.dbt_snowflake.snowflake__unset_query_tag": {"name": "snowflake__unset_query_tag", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__unset_query_tag", "macro_sql": "{% macro snowflake__unset_query_tag(original_query_tag) -%}\n {% set new_query_tag = config.get('query_tag') %}\n {% if new_query_tag %}\n {% if original_query_tag %}\n {{ log(\"Resetting query_tag to '\" ~ original_query_tag ~ \"'.\") }}\n {% do run_query(\"alter session set query_tag = '{}'\".format(original_query_tag)) %}\n {% else %}\n {{ log(\"No original query_tag, unsetting parameter.\") }}\n {% do run_query(\"alter session unset query_tag\") %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.865209, "supported_languages": null}, "macro.dbt_snowflake.snowflake__alter_relation_add_remove_columns": {"name": "snowflake__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__alter_relation_add_remove_columns", "macro_sql": "{% macro snowflake__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if relation.is_dynamic_table -%}\n {% set relation_type = \"dynamic table\" %}\n {% else -%}\n {% set relation_type = relation.type %}\n {% endif %}\n\n {% if add_columns %}\n\n {% set sql -%}\n alter {{ relation_type }} {{ relation }} add column\n {% for column in add_columns %}\n {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n {% endif %}\n\n {% if remove_columns %}\n\n {% set sql -%}\n alter {{ relation_type }} {{ relation }} drop column\n {% for column in remove_columns %}\n {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8671505, "supported_languages": null}, "macro.dbt_snowflake.snowflake_dml_explicit_transaction": {"name": "snowflake_dml_explicit_transaction", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake_dml_explicit_transaction", "macro_sql": "{% macro snowflake_dml_explicit_transaction(dml) %}\n {#\n Use this macro to wrap all INSERT, MERGE, UPDATE, DELETE, and TRUNCATE\n statements before passing them into run_query(), or calling in the 'main' statement\n of a materialization\n #}\n {% set dml_transaction -%}\n begin;\n {{ dml }};\n commit;\n {%- endset %}\n\n {% do return(dml_transaction) %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8676212, "supported_languages": null}, "macro.dbt_snowflake.snowflake__truncate_relation": {"name": "snowflake__truncate_relation", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__truncate_relation", "macro_sql": "{% macro snowflake__truncate_relation(relation) -%}\n {% set truncate_dml %}\n truncate table {{ relation }}\n {% endset %}\n {% call statement('truncate_relation') -%}\n {{ snowflake_dml_explicit_transaction(truncate_dml) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.868147, "supported_languages": null}, "macro.dbt_snowflake.snowflake__drop_relation": {"name": "snowflake__drop_relation", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_snowflake.snowflake__drop_relation", "macro_sql": "{% macro snowflake__drop_relation(relation) -%}\n {%- if relation.is_dynamic_table -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop dynamic table if exists {{ relation }}\n {%- endcall %}\n {%- else -%}\n {{- default__drop_relation(relation) -}}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8687353, "supported_languages": null}, "macro.dbt_snowflake.snowflake__copy_grants": {"name": "snowflake__copy_grants", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/apply_grants.sql", "original_file_path": "macros/apply_grants.sql", "unique_id": "macro.dbt_snowflake.snowflake__copy_grants", "macro_sql": "{% macro snowflake__copy_grants() %}\n {% set copy_grants = config.get('copy_grants', False) %}\n {{ return(copy_grants) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8693604, "supported_languages": null}, "macro.dbt_snowflake.snowflake__support_multiple_grantees_per_dcl_statement": {"name": "snowflake__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/apply_grants.sql", "original_file_path": "macros/apply_grants.sql", "unique_id": "macro.dbt_snowflake.snowflake__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro snowflake__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(False) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.869609, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_catalog": {"name": "snowflake__get_catalog", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_catalog", "macro_sql": "{% macro snowflake__get_catalog(information_schema, schemas) -%}\n {% set query %}\n with tables as (\n\n select\n table_catalog as \"table_database\",\n table_schema as \"table_schema\",\n table_name as \"table_name\",\n coalesce(table_type, 'DYNAMIC TABLE') as \"table_type\",\n comment as \"table_comment\",\n\n -- note: this is the _role_ that owns the table\n table_owner as \"table_owner\",\n\n 'Clustering Key' as \"stats:clustering_key:label\",\n clustering_key as \"stats:clustering_key:value\",\n 'The key used to cluster this table' as \"stats:clustering_key:description\",\n (clustering_key is not null) as \"stats:clustering_key:include\",\n\n 'Row Count' as \"stats:row_count:label\",\n row_count as \"stats:row_count:value\",\n 'An approximate count of rows in this table' as \"stats:row_count:description\",\n (row_count is not null) as \"stats:row_count:include\",\n\n 'Approximate Size' as \"stats:bytes:label\",\n bytes as \"stats:bytes:value\",\n 'Approximate size of the table as reported by Snowflake' as \"stats:bytes:description\",\n (bytes is not null) as \"stats:bytes:include\",\n\n 'Last Modified' as \"stats:last_modified:label\",\n to_varchar(convert_timezone('UTC', last_altered), 'yyyy-mm-dd HH24:MI'||'UTC') as \"stats:last_modified:value\",\n 'The timestamp for last update/change' as \"stats:last_modified:description\",\n (last_altered is not null and table_type='BASE TABLE') as \"stats:last_modified:include\"\n\n from {{ information_schema }}.tables\n where (\n {%- for schema in schemas -%}\n upper(\"table_schema\") = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n\n ),\n\n columns as (\n\n select\n table_catalog as \"table_database\",\n table_schema as \"table_schema\",\n table_name as \"table_name\",\n\n column_name as \"column_name\",\n ordinal_position as \"column_index\",\n data_type as \"column_type\",\n comment as \"column_comment\"\n\n from {{ information_schema }}.columns\n where (\n {%- for schema in schemas -%}\n upper(\"table_schema\") = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n )\n\n select *\n from tables\n join columns using (\"table_database\", \"table_schema\", \"table_name\")\n order by \"column_index\"\n {%- endset -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8717477, "supported_languages": null}, "macro.dbt_snowflake.materialization_view_snowflake": {"name": "materialization_view_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "unique_id": "macro.dbt_snowflake.materialization_view_snowflake", "macro_sql": "{% materialization view, adapter='snowflake' -%}\n\n {% set original_query_tag = set_query_tag() %}\n {% set to_return = create_or_replace_view() %}\n\n {% set target_relation = this.incorporate(type='view') %}\n\n {% do persist_docs(target_relation, model, for_columns=false) %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {% do return(to_return) %}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.create_or_replace_view", "macro.dbt.persist_docs", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8729641, "supported_languages": ["sql"]}, "macro.dbt_snowflake.snowflake__can_clone_table": {"name": "snowflake__can_clone_table", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/clone.sql", "original_file_path": "macros/materializations/clone.sql", "unique_id": "macro.dbt_snowflake.snowflake__can_clone_table", "macro_sql": "{% macro snowflake__can_clone_table() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.873453, "supported_languages": null}, "macro.dbt_snowflake.snowflake__create_or_replace_clone": {"name": "snowflake__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/clone.sql", "original_file_path": "macros/materializations/clone.sql", "unique_id": "macro.dbt_snowflake.snowflake__create_or_replace_clone", "macro_sql": "{% macro snowflake__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace\n {{ \"transient\" if config.get(\"transient\", true) }}\n table {{ this_relation }}\n clone {{ defer_relation }}\n {{ \"copy grants\" if config.get(\"copy_grants\", false) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.874093, "supported_languages": null}, "macro.dbt_snowflake.snowflake__load_csv_rows": {"name": "snowflake__load_csv_rows", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_snowflake.snowflake__load_csv_rows", "macro_sql": "{% macro snowflake__load_csv_rows(model, agate_table) %}\n {% set batch_size = get_batch_size() %}\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n %s\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query('BEGIN', auto_begin=False) %}\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n {% do adapter.add_query('COMMIT', auto_begin=False) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_unified_integration_tests.get_batch_size", "macro.dbt.get_seed_column_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8783069, "supported_languages": null}, "macro.dbt_snowflake.materialization_seed_snowflake": {"name": "materialization_seed_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_snowflake.materialization_seed_snowflake", "macro_sql": "{% materialization seed, adapter='snowflake' %}\n {% set original_query_tag = set_query_tag() %}\n\n {% set relations = materialization_seed_default() %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {{ return(relations) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.materialization_seed_default", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8789916, "supported_languages": ["sql"]}, "macro.dbt_snowflake.snowflake__get_merge_sql": {"name": "snowflake__get_merge_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/merge.sql", "original_file_path": "macros/materializations/merge.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_merge_sql", "macro_sql": "{% macro snowflake__get_merge_sql(target, source_sql, unique_key, dest_columns, incremental_predicates) -%}\n\n {#\n Workaround for Snowflake not being happy with a merge on a constant-false predicate.\n When no unique_key is provided, this macro will do a regular insert. If a unique_key\n is provided, then this macro will do a proper merge instead.\n #}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute='name')) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {%- set dml -%}\n {%- if unique_key is none -%}\n\n {{ sql_header if sql_header is not none }}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source_sql }}\n )\n\n {%- else -%}\n\n {{ default__get_merge_sql(target, source_sql, unique_key, dest_columns, incremental_predicates) }}\n\n {%- endif -%}\n {%- endset -%}\n\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.snowplow_utils.default__get_merge_sql", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.881263, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_delete_insert_merge_sql": {"name": "snowflake__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/merge.sql", "original_file_path": "macros/materializations/merge.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_delete_insert_merge_sql", "macro_sql": "{% macro snowflake__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) %}\n {% set dml = default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) %}\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.default__get_delete_insert_merge_sql", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8819206, "supported_languages": null}, "macro.dbt_snowflake.snowflake__snapshot_merge_sql": {"name": "snowflake__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/merge.sql", "original_file_path": "macros/materializations/merge.sql", "unique_id": "macro.dbt_snowflake.snowflake__snapshot_merge_sql", "macro_sql": "{% macro snowflake__snapshot_merge_sql(target, source, insert_cols) %}\n {% set dml = default__snapshot_merge_sql(target, source, insert_cols) %}\n {% do return(snowflake_dml_explicit_transaction(dml)) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_merge_sql", "macro.dbt_snowflake.snowflake_dml_explicit_transaction"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.882478, "supported_languages": null}, "macro.dbt_snowflake.materialization_table_snowflake": {"name": "materialization_table_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_snowflake.materialization_table_snowflake", "macro_sql": "{% materialization table, adapter='snowflake', supported_languages=['sql', 'python']%}\n\n {% set original_query_tag = set_query_tag() %}\n\n {%- set identifier = model['alias'] -%}\n {%- set language = model['language'] -%}\n\n {% set grant_config = config.get('grants') %}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier,\n schema=schema,\n database=database, type='table') -%}\n\n {{ run_hooks(pre_hooks) }}\n\n {#-- Drop the relation if it was a view to \"convert\" it in a table. This may lead to\n -- downtime, but it should be a relatively infrequent occurrence #}\n {% if old_relation is not none and not old_relation.is_table %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ drop_relation_if_exists(old_relation) }}\n {% endif %}\n\n {% call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8870547, "supported_languages": ["sql", "python"]}, "macro.dbt_snowflake.py_write_table": {"name": "py_write_table", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_snowflake.py_write_table", "macro_sql": "{% macro py_write_table(compiled_code, target_relation, temporary=False) %}\n{{ compiled_code }}\ndef materialize(session, df, target_relation):\n # make sure pandas exists\n import importlib.util\n package_name = 'pandas'\n if importlib.util.find_spec(package_name):\n import pandas\n if isinstance(df, pandas.core.frame.DataFrame):\n session.use_database(target_relation.database)\n session.use_schema(target_relation.schema)\n # session.write_pandas does not have overwrite function\n df = session.createDataFrame(df)\n {% set target_relation_name = resolve_model_name(target_relation) %}\n df.write.mode(\"overwrite\").save_as_table('{{ target_relation_name }}', create_temp_table={{temporary}})\n\ndef main(session):\n dbt = dbtObj(session.table)\n df = model(dbt, session)\n materialize(session, df, dbt.this)\n return \"OK\"\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8876567, "supported_languages": null}, "macro.dbt_snowflake.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_snowflake.py_script_comment", "macro_sql": "{% macro py_script_comment()%}\n# To run this in snowsight, you need to select entry point to be main\n# And you may have to modify the return type to text to get the result back\n# def main(session):\n# dbt = dbtObj(session.table)\n# df = model(dbt, session)\n# return df.collect()\n\n# to run this in local notebook, you need to create a session following examples https://github.com/Snowflake-Labs/sfguide-getting-started-snowpark-python\n# then you can do the following to run model\n# dbt = dbtObj(session.table)\n# df = model(dbt, session)\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.887873, "supported_languages": null}, "macro.dbt_snowflake.materialization_test_snowflake": {"name": "materialization_test_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/test.sql", "original_file_path": "macros/materializations/test.sql", "unique_id": "macro.dbt_snowflake.materialization_test_snowflake", "macro_sql": "{%- materialization test, adapter='snowflake' -%}\n\n {% set original_query_tag = set_query_tag() %}\n {% set relations = materialization_test_default() %}\n {% do unset_query_tag(original_query_tag) %}\n {{ return(relations) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.materialization_test_default", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.888602, "supported_languages": ["sql"]}, "macro.dbt_snowflake.materialization_snapshot_snowflake": {"name": "materialization_snapshot_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "unique_id": "macro.dbt_snowflake.materialization_snapshot_snowflake", "macro_sql": "{% materialization snapshot, adapter='snowflake' %}\n {% set original_query_tag = set_query_tag() %}\n {% set relations = materialization_snapshot_default() %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {{ return(relations) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.materialization_snapshot_default", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8893402, "supported_languages": ["sql"]}, "macro.dbt_snowflake.dbt_snowflake_get_tmp_relation_type": {"name": "dbt_snowflake_get_tmp_relation_type", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_snowflake.dbt_snowflake_get_tmp_relation_type", "macro_sql": "{% macro dbt_snowflake_get_tmp_relation_type(strategy, unique_key, language) %}\n{%- set tmp_relation_type = config.get('tmp_relation_type') -%}\n /* {#\n High-level principles:\n If we are running multiple statements (DELETE + INSERT),\n and we want to guarantee identical inputs to both statements,\n then we must first save the model query results as a temporary table\n (which presumably comes with a performance cost).\n If we are running a single statement (MERGE or INSERT alone),\n we _may_ save the model query definition as a view instead,\n for (presumably) faster overall incremental processing.\n\n Low-level specifics:\n If an invalid option is specified, then we will raise an\n excpetion with corresponding message.\n\n Languages other than SQL (like Python) will use a temporary table.\n With the default strategy of merge, the user may choose between a temporary\n table and view (defaulting to view).\n\n The append strategy can use a view because it will run a single INSERT statement.\n\n When unique_key is none, the delete+insert strategy can use a view beacuse a\n single INSERT statement is run with no DELETES as part of the statement.\n Otherwise, play it safe by using a temporary table.\n #} */\n\n {% if language == \"python\" and tmp_relation_type is not none %}\n {% do exceptions.raise_compiler_error(\n \"Python models currently only support 'table' for tmp_relation_type but \"\n ~ tmp_relation_type ~ \" was specified.\"\n ) %}\n {% endif %}\n\n {% if strategy == \"delete+insert\" and tmp_relation_type is not none and tmp_relation_type != \"table\" and unique_key is not none %}\n {% do exceptions.raise_compiler_error(\n \"In order to maintain consistent results when `unique_key` is not none,\n the `delete+insert` strategy only supports `table` for `tmp_relation_type` but \"\n ~ tmp_relation_type ~ \" was specified.\"\n )\n %}\n {% endif %}\n\n {% if language != \"sql\" %}\n {{ return(\"table\") }}\n {% elif tmp_relation_type == \"table\" %}\n {{ return(\"table\") }}\n {% elif tmp_relation_type == \"view\" %}\n {{ return(\"view\") }}\n {% elif strategy in (\"default\", \"merge\", \"append\") %}\n {{ return(\"view\") }}\n {% elif strategy == \"delete+insert\" and unique_key is none %}\n {{ return(\"view\") }}\n {% else %}\n {{ return(\"table\") }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.8940063, "supported_languages": null}, "macro.dbt_snowflake.materialization_incremental_snowflake": {"name": "materialization_incremental_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_snowflake.materialization_incremental_snowflake", "macro_sql": "{% materialization incremental, adapter='snowflake', supported_languages=['sql', 'python'] -%}\n\n {% set original_query_tag = set_query_tag() %}\n\n {#-- Set vars --#}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n {%- set language = model['language'] -%}\n {% set target_relation = this %}\n {% set existing_relation = load_relation(this) %}\n\n {#-- The temp relation will be a view (faster) or temp table, depending on upsert/merge strategy --#}\n {%- set unique_key = config.get('unique_key') -%}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set tmp_relation_type = dbt_snowflake_get_tmp_relation_type(incremental_strategy, unique_key, language) %}\n {% set tmp_relation = make_temp_relation(this).incorporate(type=tmp_relation_type) %}\n\n {% set grant_config = config.get('grants') %}\n\n {% set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') %}\n\n {{ run_hooks(pre_hooks) }}\n\n {% if existing_relation is none %}\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% elif existing_relation.is_view %}\n {#-- Can't overwrite a view with a table - we must drop --#}\n {{ log(\"Dropping relation \" ~ target_relation ~ \" because it is a view and this model is a table.\") }}\n {% do adapter.drop_relation(existing_relation) %}\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n {% elif full_refresh_mode %}\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% else %}\n {#-- Create the temp relation, either as a view or as a temp table --#}\n {% if tmp_relation_type == 'view' %}\n {%- call statement('create_tmp_relation') -%}\n {{ snowflake__create_view_as_with_temp_flag(tmp_relation, compiled_code, True) }}\n {%- endcall -%}\n {% else %}\n {%- call statement('create_tmp_relation', language=language) -%}\n {{ create_table_as(True, tmp_relation, compiled_code, language) }}\n {%- endcall -%}\n {% endif %}\n\n {% do adapter.expand_target_column_types(\n from_relation=tmp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, tmp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': tmp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n\n {%- call statement('main') -%}\n {{ strategy_sql_macro_func(strategy_arg_dict) }}\n {%- endcall -%}\n {% endif %}\n\n {% do drop_relation_if_exists(tmp_relation) %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set target_relation = target_relation.incorporate(type='table') %}\n\n {% set should_revoke =\n should_revoke(existing_relation.is_table, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.should_full_refresh", "macro.dbt.load_relation", "macro.dbt_snowflake.dbt_snowflake_get_tmp_relation_type", "macro.dbt.make_temp_relation", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt_snowflake.snowflake__create_view_as_with_temp_flag", "macro.dbt.process_schema_changes", "macro.dbt.drop_relation_if_exists", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.901052, "supported_languages": ["sql", "python"]}, "macro.dbt_snowflake.snowflake__get_incremental_default_sql": {"name": "snowflake__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_incremental_default_sql", "macro_sql": "{% macro snowflake__get_incremental_default_sql(arg_dict) %}\n {{ return(get_incremental_merge_sql(arg_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9014277, "supported_languages": null}, "macro.dbt_snowflake.materialization_dynamic_table_snowflake": {"name": "materialization_dynamic_table_snowflake", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table/materialization.sql", "original_file_path": "macros/materializations/dynamic_table/materialization.sql", "unique_id": "macro.dbt_snowflake.materialization_dynamic_table_snowflake", "macro_sql": "{% materialization dynamic_table, adapter='snowflake' %}\n\n {% set original_query_tag = set_query_tag() %}\n\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.DynamicTable) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.DynamicTable if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ dynamic_table_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = dynamic_table_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ dynamic_table_execute_no_op(target_relation) }}\n {% else %}\n {{ dynamic_table_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ dynamic_table_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {% do unset_query_tag(original_query_tag) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt_snowflake.set_query_tag", "macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt_snowflake.dynamic_table_setup", "macro.dbt_snowflake.dynamic_table_get_build_sql", "macro.dbt_snowflake.dynamic_table_execute_no_op", "macro.dbt_snowflake.dynamic_table_execute_build_sql", "macro.dbt_snowflake.dynamic_table_teardown", "macro.dbt_snowflake.unset_query_tag"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9093678, "supported_languages": ["sql"]}, "macro.dbt_snowflake.dynamic_table_setup": {"name": "dynamic_table_setup", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table/materialization.sql", "original_file_path": "macros/materializations/dynamic_table/materialization.sql", "unique_id": "macro.dbt_snowflake.dynamic_table_setup", "macro_sql": "{% macro dynamic_table_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ snowflake__get_drop_dynamic_table_sql(preexisting_backup_relation) }}\n {{ snowflake__get_drop_dynamic_table_sql(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt_snowflake.snowflake__get_drop_dynamic_table_sql", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9101827, "supported_languages": null}, "macro.dbt_snowflake.dynamic_table_teardown": {"name": "dynamic_table_teardown", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table/materialization.sql", "original_file_path": "macros/materializations/dynamic_table/materialization.sql", "unique_id": "macro.dbt_snowflake.dynamic_table_teardown", "macro_sql": "{% macro dynamic_table_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ snowflake__get_drop_dynamic_table_sql(backup_relation) }}\n {{ snowflake__get_drop_dynamic_table_sql(intermediate_relation) }}\n\n {{ run_hooks(post_hooks) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_drop_dynamic_table_sql", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.910672, "supported_languages": null}, "macro.dbt_snowflake.dynamic_table_get_build_sql": {"name": "dynamic_table_get_build_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table/materialization.sql", "original_file_path": "macros/materializations/dynamic_table/materialization.sql", "unique_id": "macro.dbt_snowflake.dynamic_table_get_build_sql", "macro_sql": "{% macro dynamic_table_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = snowflake__get_create_dynamic_table_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_dynamic_table %}\n {% set build_sql = snowflake__get_replace_dynamic_table_as_sql(target_relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = snowflake__get_dynamic_table_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"No configuration changes were identified on: `\" ~ target_relation ~ \"`. Continuing.\") }}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = snowflake__get_alter_dynamic_table_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'continue', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario: `\" ~ on_configuration_change ~ \"`\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt_snowflake.snowflake__get_create_dynamic_table_as_sql", "macro.dbt_snowflake.snowflake__get_replace_dynamic_table_as_sql", "macro.dbt_snowflake.snowflake__get_dynamic_table_configuration_changes", "macro.dbt_snowflake.snowflake__get_alter_dynamic_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.913616, "supported_languages": null}, "macro.dbt_snowflake.dynamic_table_execute_no_op": {"name": "dynamic_table_execute_no_op", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table/materialization.sql", "original_file_path": "macros/materializations/dynamic_table/materialization.sql", "unique_id": "macro.dbt_snowflake.dynamic_table_execute_no_op", "macro_sql": "{% macro dynamic_table_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9141304, "supported_languages": null}, "macro.dbt_snowflake.dynamic_table_execute_build_sql": {"name": "dynamic_table_execute_build_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table/materialization.sql", "original_file_path": "macros/materializations/dynamic_table/materialization.sql", "unique_id": "macro.dbt_snowflake.dynamic_table_execute_build_sql", "macro_sql": "{% macro dynamic_table_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.915192, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_alter_dynamic_table_as_sql": {"name": "snowflake__get_alter_dynamic_table_as_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table/ddl.sql", "original_file_path": "macros/materializations/dynamic_table/ddl.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_alter_dynamic_table_as_sql", "macro_sql": "{% macro snowflake__get_alter_dynamic_table_as_sql(\n target_relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) -%}\n {{- log('Applying ALTER to: ' ~ target_relation) -}}\n\n {% if configuration_changes.requires_full_refresh %}\n {{- snowflake__get_replace_dynamic_table_as_sql(target_relation, sql, existing_relation, backup_relation, intermediate_relation) -}}\n\n {% else %}\n\n {%- set target_lag = configuration_changes.target_lag -%}\n {%- if target_lag -%}{{- log('Applying UPDATE TARGET_LAG to: ' ~ existing_relation) -}}{%- endif -%}\n {%- set snowflake_warehouse = configuration_changes.snowflake_warehouse -%}\n {%- if snowflake_warehouse -%}{{- log('Applying UPDATE WAREHOUSE to: ' ~ existing_relation) -}}{%- endif -%}\n\n alter dynamic table {{ existing_relation }} set\n {% if target_lag %}target_lag = '{{ target_lag.context }}'{% endif %}\n {% if snowflake_warehouse %}warehouse = {{ snowflake_warehouse.context }}{% endif %}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_replace_dynamic_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.920108, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_create_dynamic_table_as_sql": {"name": "snowflake__get_create_dynamic_table_as_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table/ddl.sql", "original_file_path": "macros/materializations/dynamic_table/ddl.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_create_dynamic_table_as_sql", "macro_sql": "{% macro snowflake__get_create_dynamic_table_as_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n\n create or replace dynamic table {{ relation }}\n target_lag = '{{ config.get(\"target_lag\") }}'\n warehouse = {{ config.get(\"snowflake_warehouse\") }}\n as (\n {{ sql }}\n )\n ;\n {{ snowflake__refresh_dynamic_table(relation) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__refresh_dynamic_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9208024, "supported_languages": null}, "macro.dbt_snowflake.snowflake__describe_dynamic_table": {"name": "snowflake__describe_dynamic_table", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table/ddl.sql", "original_file_path": "macros/materializations/dynamic_table/ddl.sql", "unique_id": "macro.dbt_snowflake.snowflake__describe_dynamic_table", "macro_sql": "{% macro snowflake__describe_dynamic_table(relation) %}\n {%- set _dynamic_table_sql -%}\n show dynamic tables\n like '{{ relation.identifier }}'\n in schema {{ relation.database }}.{{ relation.schema }}\n ;\n select\n \"name\",\n \"schema_name\",\n \"database_name\",\n \"text\",\n \"target_lag\",\n \"warehouse\"\n from table(result_scan(last_query_id()))\n {%- endset %}\n {% set _dynamic_table = run_query(_dynamic_table_sql) %}\n\n {% do return({'dynamic_table': _dynamic_table}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9215724, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_replace_dynamic_table_as_sql": {"name": "snowflake__get_replace_dynamic_table_as_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table/ddl.sql", "original_file_path": "macros/materializations/dynamic_table/ddl.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_replace_dynamic_table_as_sql", "macro_sql": "{% macro snowflake__get_replace_dynamic_table_as_sql(target_relation, sql, existing_relation, backup_relation, intermediate_relation) -%}\n {{- log('Applying REPLACE to: ' ~ target_relation) -}}\n {{ snowflake__get_drop_dynamic_table_sql(existing_relation) }};\n {{ snowflake__get_create_dynamic_table_as_sql(target_relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_drop_dynamic_table_sql", "macro.dbt_snowflake.snowflake__get_create_dynamic_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.922178, "supported_languages": null}, "macro.dbt_snowflake.snowflake__refresh_dynamic_table": {"name": "snowflake__refresh_dynamic_table", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table/ddl.sql", "original_file_path": "macros/materializations/dynamic_table/ddl.sql", "unique_id": "macro.dbt_snowflake.snowflake__refresh_dynamic_table", "macro_sql": "{% macro snowflake__refresh_dynamic_table(relation) -%}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n\n alter dynamic table {{ relation }} refresh\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9225178, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_dynamic_table_configuration_changes": {"name": "snowflake__get_dynamic_table_configuration_changes", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table/ddl.sql", "original_file_path": "macros/materializations/dynamic_table/ddl.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_dynamic_table_configuration_changes", "macro_sql": "{% macro snowflake__get_dynamic_table_configuration_changes(existing_relation, new_config) -%}\n {% set _existing_dynamic_table = snowflake__describe_dynamic_table(existing_relation) %}\n {% set _configuration_changes = existing_relation.dynamic_table_config_changeset(_existing_dynamic_table, new_config) %}\n {% do return(_configuration_changes) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__describe_dynamic_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.923108, "supported_languages": null}, "macro.dbt_snowflake.snowflake__get_drop_dynamic_table_sql": {"name": "snowflake__get_drop_dynamic_table_sql", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/materializations/dynamic_table/ddl.sql", "original_file_path": "macros/materializations/dynamic_table/ddl.sql", "unique_id": "macro.dbt_snowflake.snowflake__get_drop_dynamic_table_sql", "macro_sql": "{% macro snowflake__get_drop_dynamic_table_sql(relation) %}\n drop dynamic table if exists {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.923339, "supported_languages": null}, "macro.dbt_snowflake.snowflake__bool_or": {"name": "snowflake__bool_or", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt_snowflake.snowflake__bool_or", "macro_sql": "{% macro snowflake__bool_or(expression) -%}\n\n boolor_agg({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9236488, "supported_languages": null}, "macro.dbt_snowflake.snowflake__safe_cast": {"name": "snowflake__safe_cast", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt_snowflake.snowflake__safe_cast", "macro_sql": "{% macro snowflake__safe_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9240003, "supported_languages": null}, "macro.dbt_snowflake.snowflake__current_timestamp": {"name": "snowflake__current_timestamp", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_snowflake.snowflake__current_timestamp", "macro_sql": "{% macro snowflake__current_timestamp() -%}\n convert_timezone('UTC', current_timestamp())\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9245162, "supported_languages": null}, "macro.dbt_snowflake.snowflake__snapshot_string_as_time": {"name": "snowflake__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_snowflake.snowflake__snapshot_string_as_time", "macro_sql": "{% macro snowflake__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"to_timestamp_ntz('\" ~ timestamp ~ \"')\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.924903, "supported_languages": null}, "macro.dbt_snowflake.snowflake__snapshot_get_time": {"name": "snowflake__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_snowflake.snowflake__snapshot_get_time", "macro_sql": "{% macro snowflake__snapshot_get_time() -%}\n to_timestamp_ntz({{ current_timestamp() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.925139, "supported_languages": null}, "macro.dbt_snowflake.snowflake__current_timestamp_backcompat": {"name": "snowflake__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_snowflake.snowflake__current_timestamp_backcompat", "macro_sql": "{% macro snowflake__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9253747, "supported_languages": null}, "macro.dbt_snowflake.snowflake__current_timestamp_in_utc_backcompat": {"name": "snowflake__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_snowflake.snowflake__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro snowflake__current_timestamp_in_utc_backcompat() %}\n convert_timezone('UTC', {{ snowflake__current_timestamp_backcompat() }})::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp_backcompat", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9256647, "supported_languages": null}, "macro.dbt_snowflake.snowflake__right": {"name": "snowflake__right", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt_snowflake.snowflake__right", "macro_sql": "{% macro snowflake__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0\n then ''\n else\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n end\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9261518, "supported_languages": null}, "macro.dbt_snowflake.snowflake__array_construct": {"name": "snowflake__array_construct", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt_snowflake.snowflake__array_construct", "macro_sql": "{% macro snowflake__array_construct(inputs, data_type) -%}\n array_construct( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9265287, "supported_languages": null}, "macro.dbt_snowflake.snowflake__escape_single_quotes": {"name": "snowflake__escape_single_quotes", "resource_type": "macro", "package_name": "dbt_snowflake", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt_snowflake.snowflake__escape_single_quotes", "macro_sql": "{% macro snowflake__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9272468, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9282238, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9287896, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9294057, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9301748, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9307137, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9314795, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9322746, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9351518, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9376917, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9393966, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9398925, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9427733, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9439847, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9446084, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9471066, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9474497, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9491575, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9500437, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9512732, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9522736, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9524422, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.953174, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9538305, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9545217, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9566016, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9570372, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.957349, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9576535, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.958005, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9587948, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.959388, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9649584, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9657679, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9661658, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9663754, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.966689, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9669552, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9674413, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9692686, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9696667, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9702425, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9711561, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9820647, "supported_languages": ["sql"]}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9880328, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9884255, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.988919, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9904578, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9908142, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9911911, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9941647, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612338.9970465, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0055637, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0090053, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0095592, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.011745, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0123072, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0136578, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.016321, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.017508, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.018935, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0194318, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.020954, "supported_languages": null}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0288117, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0317838, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0343926, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0361838, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.037479, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0472336, "supported_languages": ["sql"]}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0489132, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0494435, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0499227, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.050615, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.051019, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.051642, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0520554, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0526323, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0530365, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.053366, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0540135, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0595329, "supported_languages": ["sql"]}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0626078, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0632353, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0637443, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0645504, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0649042, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.065291, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0662627, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0669403, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0672417, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0732954, "supported_languages": ["sql"]}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0738504, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0741508, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.075087, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0754912, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0761774, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0764809, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "original_file_path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.077289, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "original_file_path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0776026, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0782504, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0785465, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_as_sql": {"name": "get_replace_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "unique_id": "macro.dbt.get_replace_materialized_view_as_sql", "macro_sql": "{% macro get_replace_materialized_view_as_sql(relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {{- log('Applying REPLACE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_replace_materialized_view_as_sql', 'dbt')(relation, sql, existing_relation, backup_relation, intermediate_relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0793743, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_as_sql": {"name": "default__get_replace_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_as_sql", "macro_sql": "{% macro default__get_replace_materialized_view_as_sql(relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0797567, "supported_languages": null}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0872056, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0880702, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.088608, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_materialized_view_as_sql(target_relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_materialized_view_as_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.091614, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0921733, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0935664, "supported_languages": null}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.0989406, "supported_languages": ["sql"]}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1007216, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1009908, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1021745, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1025336, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.102831, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.10553, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1064174, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.10716, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.10867, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1091232, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1100662, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1115534, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1125479, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1129484, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1133294, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1141105, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1149426, "supported_languages": null}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1192431, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1201315, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1207933, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1269336, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1340358, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1359906, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1364856, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.137509, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1379132, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.138229, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1385396, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1387973, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1391387, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.139392, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1403954, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.140786, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1435957, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1441615, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.144834, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1454778, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1466343, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1471603, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1473944, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.148052, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.148413, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1493287, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1496856, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1501937, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.150711, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.150973, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1515477, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1518505, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1523497, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1526985, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1543844, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.15473, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1550796, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1558628, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1562119, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1565392, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1568835, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.15726, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1576047, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1579323, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1583006, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1586137, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1589596, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1592722, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1598082, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1600382, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1606238, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1609275, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1614897, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.161786, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1623073, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1625342, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1636496, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.164541, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1652129, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.165567, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1662354, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1667514, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.167426, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1679893, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.168319, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1689267, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1692262, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1697261, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1700168, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1704762, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1706443, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1713848, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.171916, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.172392, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1725628, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1730773, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.173427, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1740217, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1743393, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1749299, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.175229, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1757693, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1760738, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.180623, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1809993, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1814666, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1821256, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1826484, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.183328, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.183712, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1840615, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1844952, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1850991, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1856253, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.186838, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1873295, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1876326, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1880577, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.189271, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1896355, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1900952, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1904595, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.191024, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1921875, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1936262, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1939268, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.194285, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1951325, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1955197, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1958113, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1961453, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1964178, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1992037, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1994596, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.1998162, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2000585, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2007878, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2011786, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2014077, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2018926, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2023323, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.202813, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.203218, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.203807, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.205214, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2056143, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2061632, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.206649, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2091506, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header -%}\n {{ sql_header }}\n {%- endif -%}\n {%- if limit is not none -%}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n {%- else -%}\n {{ compiled_code }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2102253, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "{% macro get_limit_subquery_sql(sql, limit) %}\n {{ adapter.dispatch('get_limit_subquery_sql', 'dbt')(sql, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.210631, "supported_languages": null}, "macro.dbt.default__get_limit_subquery_sql": {"name": "default__get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_subquery_sql", "macro_sql": "{% macro default__get_limit_subquery_sql(sql, limit) %}\n select *\n from (\n {{ sql }}\n ) as model_limit_subq\n limit {{ limit }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2109227, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2116282, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.21203, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2123709, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2127595, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2136178, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.213966, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.214274, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2145038, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2148535, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2150187, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2153811, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_snowflake.snowflake__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2157366, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2163274, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.216816, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.217611, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.21868, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2201786, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {%- if relation.is_table -%}\n {{- drop_table(relation) -}}\n {%- elif relation.is_view -%}\n {{- drop_view(relation) -}}\n {%- elif relation.is_materialized_view -%}\n {{- drop_materialized_view(relation) -}}\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endif -%}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.drop_table", "macro.dbt.drop_view", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.221141, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2215247, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.221764, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.222168, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2223995, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2227767, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2230036, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2253556, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.225936, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2263598, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.226703, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2270894, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2276206, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.228051, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.228718, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2291093, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.229457, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2329428, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2332935, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2343059, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.234812, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2352636, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.235656, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {{ col_err.append(col['name']) }}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2372763, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2380412, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2384465, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2391987, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2396822, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2409701, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_snowflake.snowflake__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2415068, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.243226, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2442322, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2447286, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2453353, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.245908, "supported_languages": null}, "macro.snowplow_unified.unify_fields_query": {"name": "unify_fields_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/unify_fields_query.sql", "original_file_path": "macros/unify_fields_query.sql", "unique_id": "macro.snowplow_unified.unify_fields_query", "macro_sql": "{% macro unify_fields_query() %}\n {{ return(adapter.dispatch('unify_fields_query', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__unify_fields_query"]}, "description": "A macro to produce the sql to create the `unified_events_this_run` table. It's purpose is to add a set of coalesces in case there is a common field to be used both for mobile and web events and it needs to be taken from different sdes / contexts.\n#### Returns\nThe sql to create the `unified_events_this_run` table.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6482651, "supported_languages": null}, "macro.snowplow_unified.default__unify_fields_query": {"name": "default__unify_fields_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/unify_fields_query.sql", "original_file_path": "macros/unify_fields_query.sql", "unique_id": "macro.snowplow_unified.default__unify_fields_query", "macro_sql": "{% macro default__unify_fields_query() %}\n\n with base as (\n\n select\n *,\n\n cast(coalesce(\n {% if var('snowplow__enable_web') %}\n ev.page_view__id,\n {% endif %}\n {% if var('snowplow__enable_mobile') %}\n ev.screen_view__id,\n {% if var('snowplow__enable_screen_context') %}\n ev.screen__id,\n {% endif %}\n {% endif %}\n null, null) as {{ dbt.type_string()}} ) as view_id,\n\n cast(coalesce(\n {% if var('snowplow__enable_mobile') %}\n ev.session__session_index,\n {% endif %}\n {% if var('snowplow__enable_web') %}\n ev.domain_sessionidx,\n {% endif %}\n null, null) as {{ dbt.type_int()}} ) as device_session_index,\n\n cast(coalesce(\n {% if var('snowplow__enable_deep_link_context') %}\n ev.deep_link__referrer,\n {% else %}\n ev.page_referrer,\n {% endif %}\n null, null) as {{ dbt.type_string()}} ) as referrer,\n\n cast(coalesce(\n {% if var('snowplow__enable_deep_link_context') %}\n ev.deep_link__url,\n {% else %}\n ev.page_url,\n {% endif %}\n null, null) as {{ dbt.type_string()}} ) as url,\n\n cast(coalesce(\n {% if var('snowplow__enable_mobile_context') %}\n ev.mobile__resolution,\n {% else %}\n ev.dvce_screenwidth || 'x' || ev.dvce_screenheight,\n {% endif %}\n null, null) as {{ dbt.type_string()}} ) as screen_resolution,\n\n cast(coalesce(\n {% if var('snowplow__enable_mobile_context') %}\n ev.mobile__os_type,\n {% endif %}\n {% if var('snowplow__enable_yauaa') %}\n ev.yauaa__operating_system_name,\n {% endif %}\n {% if var('snowplow__enable_ua') %}\n ev.ua__os_family,\n {% endif %}\n null, null) as {{ dbt.type_string()}} ) as os_type,\n\n cast(coalesce(\n {% if var('snowplow__enable_yauaa') %}\n ev.yauaa__operating_system_version,\n {% endif %}\n {% if var('snowplow__enable_mobile_context') %}\n ev.mobile__os_version,\n {% endif %}\n {% if var('snowplow__enable_ua') %}\n ev.ua__os_version,\n {% endif %}\n null, null) as {{ dbt.type_string()}} ) as os_version,\n\n cast(coalesce(\n {% if var('snowplow__enable_web') %}\n ev.domain_userid,\n {% endif %}\n {% if var('snowplow__enable_mobile') %}\n ev.session__user_id,\n {% endif %}\n null, null) as {{ dbt.type_string()}} ) as device_identifier,\n\n case when platform = 'web' then 'Web' --includes mobile web\n when platform = 'mob' then 'Mobile/Tablet'\n when platform = 'pc' then 'Desktop/Laptop/Netbook'\n when platform = 'srv' then 'Server-Side App'\n when platform = 'app' then 'General App'\n when platform = 'tv' then 'Connected TV'\n when platform = 'cnsl' then 'Games Console'\n when platform = 'iot' then 'Internet of Things'\n when platform = 'headset' then 'AR/VR Headset' end as platform_name\n\n from {{ ref('snowplow_unified_base_events_this_run') }} as ev\n\n )\n\n select\n *,\n\n {% if var('snowplow__enable_yauaa') %}\n case when platform = 'web' then yauaa__device_class\n when yauaa__device_class = 'Phone' then 'Mobile'\n when yauaa__device_class = 'Tablet' then 'Tablet'\n else platform_name end as device_category\n {%- else -%}\n platform_name as device_category\n {%- endif %}\n\n from base\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2542305, "supported_languages": null}, "macro.snowplow_unified.filter_bots": {"name": "filter_bots", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/filter_bots.sql", "original_file_path": "macros/filter_bots.sql", "unique_id": "macro.snowplow_unified.filter_bots", "macro_sql": "{% macro filter_bots(table_alias = none) %}\n {{ return(adapter.dispatch('filter_bots', 'snowplow_unified')(table_alias)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__filter_bots"]}, "description": "This macro is used to generate a warehouse specific filter for the `useragent` field to remove bots from processing, or to overwrite for custom filtering. The filter excludes any of the following in the string:\n- bot\n- crawl\n- slurp\n- spider\n- archiv\n- spinn\n- sniff\n- seo\n- audit\n- survey\n- pingdom\n- worm\n- capture\n- (browser|screen)shots\n- analyz\n- index\n- thumb\n- check\n- facebook\n- PingdomBot\n- PhantomJS\n- YandexBot\n- Twitterbot\n- a_archiver\n- facebookexternalhit\n- Bingbot\n- BingPreview\n- Googlebot\n- Baiduspider\n- 360(Spider|User-agent)\n- semalt\n\n#### Returns\n\nA filter on `useragent` to exclude those with strings matching the above list.\n\n#### Usage\n\n```sql\nselect\n...\nfrom\n...\nwhere 1=1\nfilter_bots()\n\n-- returns (snowflake)\nselect\n...\nfrom\n...\nwhere 1=1\nand not rlike(useragent, '.*(bot|crawl|slurp|spider|archiv|spinn|sniff|seo|audit|survey|pingdom|worm|capture|(browser|screen)shots|analyz|index|thumb|check|facebook|PingdomBot|PhantomJS|YandexBot|Twitterbot|a_archiver|facebookexternalhit|Bingbot|BingPreview|Googlebot|Baiduspider|360(Spider|User-agent)|semalt).*')\n```", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [{"name": "table_alias", "type": "string", "description": "(Optional) the table alias to identify the useragent column from. Default none"}], "created_at": 1706612343.6373951, "supported_languages": null}, "macro.snowplow_unified.default__filter_bots": {"name": "default__filter_bots", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/filter_bots.sql", "original_file_path": "macros/filter_bots.sql", "unique_id": "macro.snowplow_unified.default__filter_bots", "macro_sql": "{% macro default__filter_bots(table_alias = none) %}\n and {% if table_alias %}{{table_alias~'.'}}{% endif %}useragent not similar to '%(bot|crawl|slurp|spider|archiv|spinn|sniff|seo|audit|survey|pingdom|worm|capture|(browser|screen)shots|analyz|index|thumb|check|facebook|PingdomBot|PhantomJS|YandexBot|Twitterbot|a_archiver|facebookexternalhit|Bingbot|BingPreview|Googlebot|Baiduspider|360(Spider|User-agent)|semalt)%'\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2560265, "supported_languages": null}, "macro.snowplow_unified.bigquery__filter_bots": {"name": "bigquery__filter_bots", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/filter_bots.sql", "original_file_path": "macros/filter_bots.sql", "unique_id": "macro.snowplow_unified.bigquery__filter_bots", "macro_sql": "{% macro bigquery__filter_bots(table_alias = none) %}\n and not regexp_contains({% if table_alias %}{{table_alias~'.'}}{% endif %}useragent, '(bot|crawl|slurp|spider|archiv|spinn|sniff|seo|audit|survey|pingdom|worm|capture|(browser|screen)shots|analyz|index|thumb|check|facebook|PingdomBot|PhantomJS|YandexBot|Twitterbot|a_archiver|facebookexternalhit|Bingbot|BingPreview|Googlebot|Baiduspider|360(Spider|User-agent)|semalt)')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2564135, "supported_languages": null}, "macro.snowplow_unified.spark__filter_bots": {"name": "spark__filter_bots", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/filter_bots.sql", "original_file_path": "macros/filter_bots.sql", "unique_id": "macro.snowplow_unified.spark__filter_bots", "macro_sql": "{% macro spark__filter_bots(table_alias = none) %}\n and not rlike({% if table_alias %}{{table_alias~'.'}}{% endif %}useragent, '.*(bot|crawl|slurp|spider|archiv|spinn|sniff|seo|audit|survey|pingdom|worm|capture|(browser|screen)shots|analyz|index|thumb|check|facebook|PingdomBot|PhantomJS|YandexBot|Twitterbot|a_archiver|facebookexternalhit|Bingbot|BingPreview|Googlebot|Baiduspider|360(Spider|User-agent)|semalt).*')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.256797, "supported_languages": null}, "macro.snowplow_unified.snowflake__filter_bots": {"name": "snowflake__filter_bots", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/filter_bots.sql", "original_file_path": "macros/filter_bots.sql", "unique_id": "macro.snowplow_unified.snowflake__filter_bots", "macro_sql": "{% macro snowflake__filter_bots(table_alias = none) %}\n and not rlike({% if table_alias %}{{table_alias~'.'}}{% endif %}useragent, '.*(bot|crawl|slurp|spider|archiv|spinn|sniff|seo|audit|survey|pingdom|worm|capture|(browser|screen)shots|analyz|index|thumb|check|facebook|PingdomBot|PhantomJS|YandexBot|Twitterbot|a_archiver|facebookexternalhit|Bingbot|BingPreview|Googlebot|Baiduspider|360(Spider|User-agent)|semalt).*')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2571828, "supported_languages": null}, "macro.snowplow_unified.session_identifiers": {"name": "session_identifiers", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/identifiers.sql", "original_file_path": "macros/identifiers.sql", "unique_id": "macro.snowplow_unified.session_identifiers", "macro_sql": "{% macro session_identifiers() %}\n {{ return(adapter.dispatch('session_identifiers', 'snowplow_unified')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__session_identifiers"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2687411, "supported_languages": null}, "macro.snowplow_unified.default__session_identifiers": {"name": "default__session_identifiers", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/identifiers.sql", "original_file_path": "macros/identifiers.sql", "unique_id": "macro.snowplow_unified.default__session_identifiers", "macro_sql": "{% macro default__session_identifiers() %}\n\n {% if var('snowplow__session_identifiers') %}\n {{ return(var('snowplow__session_identifiers')) }}\n\n {% else %}\n\n {% if var('snowplow__enable_web') and var('snowplow__enable_mobile') %}\n {{ return([{'schema': 'contexts_com_snowplowanalytics_snowplow_client_session_1', 'field': 'session_id'}, {'schema': 'atomic', 'field': 'domain_sessionid'}] )}}\n\n {% elif var('snowplow__enable_mobile') %}\n {{ return([{'schema': 'contexts_com_snowplowanalytics_snowplow_client_session_1', 'field': 'session_id'}] )}}\n\n {% else %}\n {{ return([{'schema': 'atomic', 'field': 'domain_sessionid'}] )}}\n\n {% endif %}\n {% endif %}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2704587, "supported_languages": null}, "macro.snowplow_unified.snowflake__session_identifiers": {"name": "snowflake__session_identifiers", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/identifiers.sql", "original_file_path": "macros/identifiers.sql", "unique_id": "macro.snowplow_unified.snowflake__session_identifiers", "macro_sql": "{% macro snowflake__session_identifiers() %}\n\n {% if var('snowplow__session_identifiers') %}\n {{ return(var('snowplow__session_identifiers')) }}\n\n {% else %}\n\n {% if var('snowplow__enable_web') and var('snowplow__enable_mobile') %}\n {{ return([{'schema': 'contexts_com_snowplowanalytics_snowplow_client_session_1', 'field': 'sessionId'}, {'schema': 'atomic', 'field': 'domain_sessionid'}] )}}\n\n {% elif var('snowplow__enable_mobile') %}\n {{ return([{'schema': 'contexts_com_snowplowanalytics_snowplow_client_session_1', 'field': 'sessionId'}] )}}\n\n {% else %}\n {{ return([{'schema': 'atomic', 'field': 'domain_sessionid'}] )}}\n\n {% endif %}\n {% endif %}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2721367, "supported_languages": null}, "macro.snowplow_unified.bigquery__session_identifiers": {"name": "bigquery__session_identifiers", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/identifiers.sql", "original_file_path": "macros/identifiers.sql", "unique_id": "macro.snowplow_unified.bigquery__session_identifiers", "macro_sql": "{% macro bigquery__session_identifiers() %}\n\n {% if var('snowplow__session_identifiers') %}\n {{ return(var('snowplow__session_identifiers')) }}\n\n {% else %}\n\n {% if var('snowplow__enable_web') and var('snowplow__enable_mobile') %}\n {{ return([{'schema': 'contexts_com_snowplowanalytics_snowplow_client_session_1_*', 'field': 'session_id'}, {'schema': 'atomic', 'field': 'domain_sessionid'}] )}}\n\n {% elif var('snowplow__enable_mobile') %}\n {{ return([{'schema': 'contexts_com_snowplowanalytics_snowplow_client_session_1_*', 'field': 'session_id'}] )}}\n\n {% else %}\n {{ return([{'schema': 'atomic', 'field': 'domain_sessionid'}] )}}\n\n {% endif %}\n {% endif %}\n\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2737892, "supported_languages": null}, "macro.snowplow_unified.postgres__session_identifiers": {"name": "postgres__session_identifiers", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/identifiers.sql", "original_file_path": "macros/identifiers.sql", "unique_id": "macro.snowplow_unified.postgres__session_identifiers", "macro_sql": "{% macro postgres__session_identifiers() %}\n\n {% if var('snowplow__session_identifiers') %}\n {{ return(var('snowplow__session_identifiers')) }}\n\n {% else %}\n\n {% if var('snowplow__enable_web') and var('snowplow__enable_mobile') %}\n {{ return([{'schema': var('snowplow__session_context'), 'field': 'session_id', 'prefix': 'session_'},{'schema': 'atomic', 'field': 'domain_sessionid', 'prefix': 'session_'}] )}}\n\n {% elif var('snowplow__enable_mobile') %}\n {{ return([{'schema': var('snowplow__session_context'), 'field': 'session_id', 'prefix': 'session_'}] )}}\n\n {% else %}\n {{ return([{'schema': 'atomic', 'field': 'domain_sessionid', 'prefix': 'session_'}] )}}\n\n {% endif %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2758992, "supported_languages": null}, "macro.snowplow_unified.user_identifiers": {"name": "user_identifiers", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/identifiers.sql", "original_file_path": "macros/identifiers.sql", "unique_id": "macro.snowplow_unified.user_identifiers", "macro_sql": "{% macro user_identifiers() %}\n {{ return(adapter.dispatch('user_identifiers', 'snowplow_unified')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__user_identifiers"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2762892, "supported_languages": null}, "macro.snowplow_unified.default__user_identifiers": {"name": "default__user_identifiers", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/identifiers.sql", "original_file_path": "macros/identifiers.sql", "unique_id": "macro.snowplow_unified.default__user_identifiers", "macro_sql": "{% macro default__user_identifiers() %}\n\n {% if var('snowplow__user_identifiers') %}\n {{ return(var('snowplow__user_identifiers')) }}\n\n {% else %}\n\n {% if var('snowplow__enable_web') and var('snowplow__enable_mobile') %}\n {{ return([{'schema': 'contexts_com_snowplowanalytics_snowplow_client_session_1', 'field': 'user_id'}, {'schema': 'atomic', 'field': 'domain_userid'}] )}}\n\n {% elif var('snowplow__enable_mobile') %}\n {{ return([{'schema': 'contexts_com_snowplowanalytics_snowplow_client_session_1', 'field': 'user_id'}] )}}\n\n {% else %}\n {{ return([{'schema': 'atomic', 'field': 'domain_userid'}] )}}\n\n {% endif %}\n {% endif %}\n\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2779098, "supported_languages": null}, "macro.snowplow_unified.snowflake__user_identifiers": {"name": "snowflake__user_identifiers", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/identifiers.sql", "original_file_path": "macros/identifiers.sql", "unique_id": "macro.snowplow_unified.snowflake__user_identifiers", "macro_sql": "{% macro snowflake__user_identifiers() %}\n\n {% if var('snowplow__user_identifiers') %}\n {{ return(var('snowplow__user_identifiers')) }}\n\n {% else %}\n\n {% if var('snowplow__enable_web') and var('snowplow__enable_mobile') %}\n {{ return([{'schema': 'contexts_com_snowplowanalytics_snowplow_client_session_1', 'field': 'userId'}, {'schema': 'atomic', 'field': 'domain_userid'}] )}}\n\n {% elif var('snowplow__enable_mobile') %}\n {{ return([{'schema': 'contexts_com_snowplowanalytics_snowplow_client_session_1', 'field': 'userId'}] )}}\n\n {% else %}\n {{ return([{'schema': 'atomic', 'field': 'domain_userid'}] )}}\n\n {% endif %}\n {% endif %}\n\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.279563, "supported_languages": null}, "macro.snowplow_unified.bigquery__user_identifiers": {"name": "bigquery__user_identifiers", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/identifiers.sql", "original_file_path": "macros/identifiers.sql", "unique_id": "macro.snowplow_unified.bigquery__user_identifiers", "macro_sql": "{% macro bigquery__user_identifiers() %}\n\n {% if var('snowplow__user_identifiers') %}\n {{ return(var('snowplow__user_identifiers')) }}\n\n {% else %}\n\n {% if var('snowplow__enable_web') and var('snowplow__enable_mobile') %}\n {{ return([{'schema': 'contexts_com_snowplowanalytics_snowplow_client_session_1_*', 'field': 'user_id'}, {'schema': 'atomic', 'field': 'domain_userid'}] )}}\n\n {% elif var('snowplow__enable_mobile') %}\n {{ return([{'schema': 'contexts_com_snowplowanalytics_snowplow_client_session_1_*', 'field': 'user_id'}] )}}\n\n {% else %}\n {{ return([{'schema': 'atomic', 'field': 'domain_userid'}] )}}\n\n {% endif %}\n {% endif %}\n\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.281215, "supported_languages": null}, "macro.snowplow_unified.postgres__user_identifiers": {"name": "postgres__user_identifiers", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/identifiers.sql", "original_file_path": "macros/identifiers.sql", "unique_id": "macro.snowplow_unified.postgres__user_identifiers", "macro_sql": "{% macro postgres__user_identifiers() %}\n\n {% if var('snowplow__user_identifiers') %}\n {{ return(var('snowplow__user_identifiers')) }}\n\n {% else %}\n\n {% if var('snowplow__enable_web') and var('snowplow__enable_mobile') %}\n {{ return([{'schema': var('snowplow__session_context'), 'field': 'user_id', 'prefix': 'session_'}, {'schema': 'atomic', 'field': 'domain_userid', 'prefix': 'session_'}] )}}\n\n {% elif var('snowplow__enable_mobile') %}\n {{ return([{'schema': var('snowplow__session_context'), 'field': 'user_id', 'prefix': 'session_'}] )}}\n\n {% else %}\n {{ return([{'schema': 'atomic', 'field': 'domain_userid', 'prefix': 'session_'}] )}}\n\n {% endif %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.283165, "supported_languages": null}, "macro.snowplow_unified.config_check": {"name": "config_check", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/config_check.sql", "original_file_path": "macros/config_check.sql", "unique_id": "macro.snowplow_unified.config_check", "macro_sql": "{% macro config_check() %}\n {{ return(adapter.dispatch('config_check', 'snowplow_unified')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_unified.default__config_check"]}, "description": "A macro that checks if at least one of the platform enabling variables is valid before the run starts and alerts users in case it happens. It also checks and warns if there are contexts enabled for a platform that will not be used.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.647854, "supported_languages": null}, "macro.snowplow_unified.default__config_check": {"name": "default__config_check", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/config_check.sql", "original_file_path": "macros/config_check.sql", "unique_id": "macro.snowplow_unified.default__config_check", "macro_sql": "{% macro default__config_check() %}\n\n {% if not var('snowplow__enable_web') and not var('snowplow__enable_mobile') %}\n {{ exceptions.raise_compiler_error(\n \"Snowplow Error: No platform to process. Please set at least one of the variables `snowplow__enable_web` or `snowplow__enable_mobile` to true.\"\n ) }}\n {% endif %}\n\n {% if not var('snowplow__enable_web') %}\n {% if var('snowplow__enable_iab') %}\n {{ exceptions.raise_compiler_error(\n \"Snowplow Error: Iab context is enabled but it cannot be processed as `snowplow__enable_web` is currently disabled.\"\n ) }}\n {% elif var('snowplow__enable_ua') %}\n {{ exceptions.raise_compiler_error(\n \"Snowplow Error: Ua context is enabled but it cannot be processed as `snowplow__enable_web` is currently disabled.\"\n ) }}\n {% elif var('snowplow__enable_browser_context') %}\n {{ exceptions.raise_compiler_error(\n \"Snowplow Error: Browser context is enabled but it cannot be processed as `snowplow__enable_web` is currently disabled.\"\n ) }}\n {% elif var('snowplow__enable_consent') %}\n {{ exceptions.raise_compiler_error(\n \"Snowplow Error: Consent module enabled but it cannot be processed as `snowplow__enable_web` is currently disabled.\"\n ) }}\n {% elif var('snowplow__enable_cwv') %}\n {{ exceptions.raise_compiler_error(\n \"Snowplow Error: Core web vitals module is enabled but it cannot be processed as `snowplow__enable_web` is currently disabled.\"\n ) }}\n {% endif %}\n {% endif %}\n\n {% if not var('snowplow__enable_mobile') %}\n {% if var('snowplow__enable_mobile_context') %}\n {{ exceptions.raise_compiler_error(\n \"Snowplow Error: Mobile context is enabled but it cannot be processed as `snowplow__enable_mobile` is currently disabled.\"\n ) }}\n {% elif var('snowplow__enable_geolocation_context')%}\n {{ exceptions.raise_compiler_error(\n \"Snowplow Error: Geolocation context is enabled but it cannot be processed as `snowplow__enable_mobile` is currently disabled.\"\n ) }}\n {% elif var('snowplow__enable_application_context') %}\n {{ exceptions.raise_compiler_error(\n \"Snowplow Error: App context is enabled but it cannot be processed as `snowplow__enable_mobile` is currently disabled.\"\n ) }}\n {% elif var('snowplow__enable_screen_context') %}\n {{ exceptions.raise_compiler_error(\n \"Snowplow Error: Screen context is enabled but it cannot be processed as `snowplow__enable_mobile` is currently disabled.\"\n ) }}\n {% elif var('snowplow__enable_app_errors') %}\n {{ exceptions.raise_compiler_error(\n \"Snowplow Error: App error events are enabled but it cannot be processed as `snowplow__enable_mobile` is currently disabled.\"\n ) }}\n {% elif var('snowplow__enable_deep_link_context') %}\n {{ exceptions.raise_compiler_error(\n \"Snowplow Error: Deep link context is enabled but it cannot be processed as `snowplow__enable_mobile` is currently disabled.\"\n ) }}\n {% elif var('snowplow__enable_screen_summary_context') %}\n {{ exceptions.raise_compiler_error(\n \"Snowplow Error: Screen summary context is enabled but it cannot be processed as `snowplow__enable_mobile` is currently disabled.\"\n ) }}\n {% endif %}\n {% endif %}\n \n {% if var('snowplow__enable_conversions') and not var('snowplow__conversion_events') %}\n {{ exceptions.raise_compiler_error(\n \"Snowplow Error: var('snowplow__conversion_events') is not configured but the conversions optional module is enabled. Please configure this variable before proceeding.\"\n ) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.290289, "supported_languages": null}, "macro.snowplow_unified.allow_refresh": {"name": "allow_refresh", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/allow_refresh.sql", "original_file_path": "macros/allow_refresh.sql", "unique_id": "macro.snowplow_unified.allow_refresh", "macro_sql": "{% macro allow_refresh() %}\n {{ return(adapter.dispatch('allow_refresh', 'snowplow_unified')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_unified.default__allow_refresh"]}, "description": "This macro is used to determine if a full-refresh is allowed (depending on the environment), using the `snowplow__allow_refresh` variable.\n\n#### Returns\n`snowplow__allow_refresh` if environment is not `dev`, `none` otherwise.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6452188, "supported_languages": null}, "macro.snowplow_unified.default__allow_refresh": {"name": "default__allow_refresh", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/allow_refresh.sql", "original_file_path": "macros/allow_refresh.sql", "unique_id": "macro.snowplow_unified.default__allow_refresh", "macro_sql": "{% macro default__allow_refresh() %}\n\n {% set allow_refresh = snowplow_utils.get_value_by_target(\n dev_value=none,\n default_value=var('snowplow__allow_refresh'),\n dev_target_name=var('snowplow__dev_target_name')\n ) %}\n\n {{ return(allow_refresh) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_value_by_target"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2916265, "supported_languages": null}, "macro.snowplow_unified.stitch_user_identifiers": {"name": "stitch_user_identifiers", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/stitch_user_identifiers.sql", "original_file_path": "macros/stitch_user_identifiers.sql", "unique_id": "macro.snowplow_unified.stitch_user_identifiers", "macro_sql": "{% macro stitch_user_identifiers(enabled, relation=this, user_mapping_relation='snowplow_unified_user_mapping') %}\n {{ return(adapter.dispatch('stitch_user_identifiers', 'snowplow_unified')(enabled, relation, user_mapping_relation)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__stitch_user_identifiers"]}, "description": "This macro is used as a post-hook on the sessions table to stitch user identities using the user_mapping table provided.\n\n#### Returns\n\nThe update/merge statement to update the `stitched_user_id` column, if enabled.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [{"name": "enabled", "type": "boolean", "description": "If the user stitching should be done or not"}, {"name": "relation", "type": "string", "description": "(Optional) The model to update the `stitched_user_id` column in. Default `this`"}, {"name": "user_mapping_relation", "type": "string", "description": "(Optional) The model to use the `user_id` column from. Default `snowplow_unified_user_mapping`"}], "created_at": 1706612343.6391864, "supported_languages": null}, "macro.snowplow_unified.default__stitch_user_identifiers": {"name": "default__stitch_user_identifiers", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/stitch_user_identifiers.sql", "original_file_path": "macros/stitch_user_identifiers.sql", "unique_id": "macro.snowplow_unified.default__stitch_user_identifiers", "macro_sql": "{% macro default__stitch_user_identifiers(enabled, relation=this, user_mapping_relation='snowplow_unified_user_mapping') %}\n {% if enabled | as_bool() %}\n\n -- Update sessions / views table with mapping\n update {{ relation }} as s\n set stitched_user_id = um.user_id\n from {{ ref(user_mapping_relation) }} as um\n where s.user_identifier = um.user_identifier;\n\n {% endif %}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2932477, "supported_languages": null}, "macro.snowplow_unified.spark__stitch_user_identifiers": {"name": "spark__stitch_user_identifiers", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/stitch_user_identifiers.sql", "original_file_path": "macros/stitch_user_identifiers.sql", "unique_id": "macro.snowplow_unified.spark__stitch_user_identifiers", "macro_sql": "{% macro spark__stitch_user_identifiers(enabled, relation=this, user_mapping_relation='snowplow_unified_user_mapping') %}\n {% if enabled | as_bool() %}\n\n -- Update sessions / views table with mapping\n merge into {{ relation }} as s\n using {{ ref(user_mapping_relation) }} as um\n on s.user_identifier = um.user_identifier\n\n when matched then\n update set s.stitched_user_id = um.user_id;\n\n {% endif %}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.2937949, "supported_languages": null}, "macro.snowplow_unified.web_only_fields": {"name": "web_only_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/web_only_fields.sql", "original_file_path": "macros/field_groups/web_only_fields.sql", "unique_id": "macro.snowplow_unified.web_only_fields", "macro_sql": "{% macro web_only_fields(table_prefix = none, column_prefix = none) %}\n {{ return(adapter.dispatch('web_only_fields', 'snowplow_unified')(table_prefix, column_prefix)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__web_only_fields"]}, "description": "A macro to list all the fields that are extracted from a specific sde /context. Takes table_prefix and column_prefix as an optional argument.\n\n#### Returns\nA string of list of fields to be used in a sql statement.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6535861, "supported_languages": null}, "macro.snowplow_unified.default__web_only_fields": {"name": "default__web_only_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/web_only_fields.sql", "original_file_path": "macros/field_groups/web_only_fields.sql", "unique_id": "macro.snowplow_unified.default__web_only_fields", "macro_sql": "{% macro default__web_only_fields(table_prefix = none, column_prefix = none) %}\n\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}br_lang{% if column_prefix %} as {{ column_prefix~\"_\" }}br_lang {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}br_viewwidth{% if column_prefix %} as {{ column_prefix~\"_\" }}br_viewwidth {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}br_viewheight{% if column_prefix %} as {{ column_prefix~\"_\" }}br_viewheight {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}br_renderengine{% if column_prefix %} as {{ column_prefix~\"_\" }}br_renderengine {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}doc_width{% if column_prefix %} as {{ column_prefix~\"_\" }}doc_width {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}doc_height{% if column_prefix %} as {{ column_prefix~\"_\" }}doc_height {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}page_title{% if column_prefix %} as {{ column_prefix~\"_\" }}page_title {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}page_urlscheme{% if column_prefix %} as {{ column_prefix~\"_\" }}page_urlscheme {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}page_urlhost{% if column_prefix %} as {{ column_prefix~\"_\" }}page_urlhost {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}page_urlpath{% if column_prefix %} as {{ column_prefix~\"_\" }}page_urlpath {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}page_urlquery{% if column_prefix %} as {{ column_prefix~\"_\" }}page_urlquery {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}page_urlfragment{% if column_prefix %} as {{ column_prefix~\"_\" }}page_urlfragment{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}refr_urlscheme{% if column_prefix %} as {{ column_prefix~\"_\" }}refr_urlscheme {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}refr_urlhost{% if column_prefix %} as {{ column_prefix~\"_\" }}refr_urlhost {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}refr_urlpath{% if column_prefix %} as {{ column_prefix~\"_\" }}refr_urlpath {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}refr_urlquery{% if column_prefix %} as {{ column_prefix~\"_\" }}refr_urlquery {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}refr_urlfragment{% if column_prefix %} as {{ column_prefix~\"_\" }}refr_urlfragment {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}os_timezone{% if column_prefix %} as {{ column_prefix~\"_\" }}os_timezone {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.3058128, "supported_languages": null}, "macro.snowplow_unified.iab_context_fields": {"name": "iab_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/iab_context_fields.sql", "original_file_path": "macros/field_groups/iab_context_fields.sql", "unique_id": "macro.snowplow_unified.iab_context_fields", "macro_sql": "{% macro iab_context_fields(table_prefix = none, column_prefix = none) %}\n {{ return(adapter.dispatch('iab_context_fields', 'snowplow_unified')(table_prefix, column_prefix)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__iab_context_fields"]}, "description": "A macro to list all the fields that are extracted from a specific sde /context. Takes table_prefix and column_prefix as an optional argument.\n\n#### Returns\nA string of list of fields to be used in a sql statement.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.650335, "supported_languages": null}, "macro.snowplow_unified.default__iab_context_fields": {"name": "default__iab_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/iab_context_fields.sql", "original_file_path": "macros/field_groups/iab_context_fields.sql", "unique_id": "macro.snowplow_unified.default__iab_context_fields", "macro_sql": "{% macro default__iab_context_fields(table_prefix = none, column_prefix = none) %}\n\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}iab__category{% if column_prefix %} as {{ column_prefix~\"_\" }}iab__category{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}iab__primary_impact{% if column_prefix %} as {{ column_prefix~\"_\" }}iab__primary_impact{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}iab__reason{% if column_prefix %} as {{ column_prefix~\"_\" }}iab__reason{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}iab__spider_or_robot{% if column_prefix %} as {{ column_prefix~\"_\" }}iab__spider_or_robot{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.308623, "supported_languages": null}, "macro.snowplow_unified.geo_context_fields": {"name": "geo_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/geo_context_fields.sql", "original_file_path": "macros/field_groups/geo_context_fields.sql", "unique_id": "macro.snowplow_unified.geo_context_fields", "macro_sql": "{% macro geo_context_fields(table_prefix = none, column_prefix = none) %}\n {{ return(adapter.dispatch('geo_context_fields', 'snowplow_unified')(table_prefix, column_prefix)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__geo_context_fields"]}, "description": "A macro to list all the fields that are extracted from a specific sde /context. Takes table_prefix and column_prefix as an optional argument.\n\n#### Returns\nA string of list of fields to be used in a sql statement.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6498914, "supported_languages": null}, "macro.snowplow_unified.default__geo_context_fields": {"name": "default__geo_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/geo_context_fields.sql", "original_file_path": "macros/field_groups/geo_context_fields.sql", "unique_id": "macro.snowplow_unified.default__geo_context_fields", "macro_sql": "{% macro default__geo_context_fields(table_prefix = none, column_prefix = none) %}\n\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}geo__latitude{% if column_prefix %} as {{ column_prefix~\"_\" }}geo__latitude {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}geo__longitude{% if column_prefix %} as {{ column_prefix~\"_\" }}geo__longitude {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}geo__latitude_longitude_accuracy{% if column_prefix %} as {{ column_prefix~\"_\" }}geo__latitude_longitude_accuracy {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}geo__altitude{% if column_prefix %} as {{ column_prefix~\"_\" }}geo__altitude {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}geo__altitude_accuracy{% if column_prefix %} as {{ column_prefix~\"_\" }}geo__altitude_accuracy {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}geo__bearing{% if column_prefix %} as {{ column_prefix~\"_\" }}geo__bearing {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}geo__speed{% if column_prefix %} as {{ column_prefix~\"_\" }}geo__speed {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.3130465, "supported_languages": null}, "macro.snowplow_unified.app_error_event_fields": {"name": "app_error_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/app_error_event_fields.sql", "original_file_path": "macros/field_groups/app_error_event_fields.sql", "unique_id": "macro.snowplow_unified.app_error_event_fields", "macro_sql": "{% macro app_error_event_fields(table_prefix = none, column_prefix = none) %}\n {{ return(adapter.dispatch('app_error_event_fields', 'snowplow_unified')(table_prefix, column_prefix)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__app_error_event_fields"]}, "description": "A macro to list all the fields that are extracted from a specific sde /context. Takes table_prefix and column_prefix as an optional argument.\n\n#### Returns\nA string of list of fields to be used in a sql statement.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6490788, "supported_languages": null}, "macro.snowplow_unified.default__app_error_event_fields": {"name": "default__app_error_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/app_error_event_fields.sql", "original_file_path": "macros/field_groups/app_error_event_fields.sql", "unique_id": "macro.snowplow_unified.default__app_error_event_fields", "macro_sql": "{% macro default__app_error_event_fields(table_prefix = none, column_prefix = none) %}\n\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}app_error__message{% if column_prefix %} as {{ column_prefix~\"_\" }}app_error__message {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}app_error__programming_language{% if column_prefix %} as {{ column_prefix~\"_\" }}app_error__programming_language {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}app_error__class_name{% if column_prefix %} as {{ column_prefix~\"_\" }}app_error__class_name {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}app_error__exception_name{% if column_prefix %} as {{ column_prefix~\"_\" }}app_error__exception_name {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}app_error__is_fatal{% if column_prefix %} as {{ column_prefix~\"_\" }}app_error__is_fatal {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}app_error__line_number{% if column_prefix %} as {{ column_prefix~\"_\" }}app_error__line_number {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}app_error__stack_trace{% if column_prefix %} as {{ column_prefix~\"_\" }}app_error__stack_trace {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}app_error__thread_id{% if column_prefix %} as {{ column_prefix~\"_\" }}app_error__thread_id {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}app_error__thread_name{% if column_prefix %} as {{ column_prefix~\"_\" }}app_error__thread_name {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.318662, "supported_languages": null}, "macro.snowplow_unified.session_context_fields": {"name": "session_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/session_context_fields.sql", "original_file_path": "macros/field_groups/session_context_fields.sql", "unique_id": "macro.snowplow_unified.session_context_fields", "macro_sql": "{% macro session_context_fields(table_prefix = none, column_prefix = none) %}\n {{ return(adapter.dispatch('session_context_fields', 'snowplow_unified')(table_prefix, column_prefix)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__session_context_fields"]}, "description": "A macro to list all the fields that are extracted from a specific sde /context. Takes table_prefix and column_prefix as an optional argument.\n\n#### Returns\nA string of list of fields to be used in a sql statement.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6527824, "supported_languages": null}, "macro.snowplow_unified.default__session_context_fields": {"name": "default__session_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/session_context_fields.sql", "original_file_path": "macros/field_groups/session_context_fields.sql", "unique_id": "macro.snowplow_unified.default__session_context_fields", "macro_sql": "{% macro default__session_context_fields(table_prefix = none, column_prefix = none) %}\n\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}session__session_id{% if column_prefix %} as {{ column_prefix~\"_\" }}session__session_id {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}session__session_index{% if column_prefix %} as {{ column_prefix~\"_\" }}session__session_index {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}session__previous_session_id{% if column_prefix %} as {{ column_prefix~\"_\" }}session__previous_session_id {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}session__user_id{% if column_prefix %} as {{ column_prefix~\"_\" }}session__user_id {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}session__first_event_id{% if column_prefix %} as {{ column_prefix~\"_\" }}session__first_event_id {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}session__event_index{% if column_prefix %} as {{ column_prefix~\"_\" }}session__event_index {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}session__storage_mechanism{% if column_prefix %} as {{ column_prefix~\"_\" }}session__storage_mechanism {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}session__first_event_timestamp{% if column_prefix %} as {{ column_prefix~\"_\" }}session__first_event_timestamp {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.3235915, "supported_languages": null}, "macro.snowplow_unified.yauaa_context_fields": {"name": "yauaa_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/yauaa_context_fields.sql", "original_file_path": "macros/field_groups/yauaa_context_fields.sql", "unique_id": "macro.snowplow_unified.yauaa_context_fields", "macro_sql": "{% macro yauaa_context_fields(table_prefix = none, column_prefix = none) %}\n {{ return(adapter.dispatch('yauaa_context_fields', 'snowplow_unified')(table_prefix, column_prefix)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__yauaa_context_fields"]}, "description": "A macro to list all the fields that are extracted from a specific sde /context. Takes table_prefix and column_prefix as an optional argument.\n\n#### Returns\nA string of list of fields to be used in a sql statement.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6544363, "supported_languages": null}, "macro.snowplow_unified.default__yauaa_context_fields": {"name": "default__yauaa_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/yauaa_context_fields.sql", "original_file_path": "macros/field_groups/yauaa_context_fields.sql", "unique_id": "macro.snowplow_unified.default__yauaa_context_fields", "macro_sql": "{% macro default__yauaa_context_fields(table_prefix = none, column_prefix = none) %}\n\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__device_class{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__device_class {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__agent_class{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__agent_class {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__agent_name{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__agent_name {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__agent_name_version{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__agent_name_version {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__agent_name_version_major{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__agent_name_version_major {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__agent_version{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__agent_version {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__agent_version_major{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__agent_version_major {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__device_brand{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__device_brand {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__device_name{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__device_name {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__device_version{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__device_version {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__layout_engine_class{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__layout_engine_class {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__layout_engine_name{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__layout_engine_name {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__layout_engine_name_version{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__layout_engine_name_version {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__layout_engine_name_version_major{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__layout_engine_name_version_major {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__layout_engine_version{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__layout_engine_version {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__layout_engine_version_major{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__layout_engine_version_major {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__operating_system_class{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__operating_system_class {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__operating_system_name{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__operating_system_name {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__operating_system_name_version{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__operating_system_name_version {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}yauaa__operating_system_version{% if column_prefix %} as {{ column_prefix~\"_\" }}yauaa__operating_system_version {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.3377724, "supported_languages": null}, "macro.snowplow_unified.mobile_context_fields": {"name": "mobile_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/mobile_context_fields.sql", "original_file_path": "macros/field_groups/mobile_context_fields.sql", "unique_id": "macro.snowplow_unified.mobile_context_fields", "macro_sql": "{% macro mobile_context_fields(table_prefix = none, column_prefix = none) %}\n {{ return(adapter.dispatch('mobile_context_fields', 'snowplow_unified')(table_prefix, column_prefix)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__mobile_context_fields"]}, "description": "A macro to list all the fields that are extracted from a specific sde /context. Takes table_prefix and column_prefix as an optional argument.\n\n#### Returns\nA string of list of fields to be used in a sql statement.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6507483, "supported_languages": null}, "macro.snowplow_unified.default__mobile_context_fields": {"name": "default__mobile_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/mobile_context_fields.sql", "original_file_path": "macros/field_groups/mobile_context_fields.sql", "unique_id": "macro.snowplow_unified.default__mobile_context_fields", "macro_sql": "{% macro default__mobile_context_fields(table_prefix = none, column_prefix = none) %}\n\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__device_manufacturer{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__device_manufacturer{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__device_model{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__device_model{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__os_type{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__os_type{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__os_version{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__os_version{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__android_idfa{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__android_idfa{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__apple_idfa{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__apple_idfa{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__apple_idfv{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__apple_idfv{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__carrier{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__carrier{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__open_idfa{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__open_idfa{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__network_technology{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__network_technology{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__network_type{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__network_type{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__physical_memory{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__physical_memory{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__system_available_memory{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__system_available_memory{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__app_available_memory{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__app_available_memory{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__battery_level{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__battery_level{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__battery_state{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__battery_state{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__low_power_mode{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__low_power_mode{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__available_storage{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__available_storage{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__total_storage{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__total_storage{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__is_portrait{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__is_portrait{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__resolution{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__resolution{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__scale{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__scale{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__language{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__language{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__app_set_id{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__app_set_id{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mobile__app_set_id_scope{% if column_prefix %} as {{ column_prefix~\"_\" }}mobile__app_set_id_scope{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.356521, "supported_languages": null}, "macro.snowplow_unified.app_context_fields": {"name": "app_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/app_context_fields.sql", "original_file_path": "macros/field_groups/app_context_fields.sql", "unique_id": "macro.snowplow_unified.app_context_fields", "macro_sql": "{% macro app_context_fields(table_prefix = none, column_prefix = none) %}\n {{ return(adapter.dispatch('app_context_fields', 'snowplow_unified')(table_prefix, column_prefix)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__app_context_fields"]}, "description": "A macro to list all the fields that are extracted from a specific sde /context. Takes table_prefix and column_prefix as an optional argument.\n\n#### Returns\nA string of list of fields to be used in a sql statement.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6486733, "supported_languages": null}, "macro.snowplow_unified.default__app_context_fields": {"name": "default__app_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/app_context_fields.sql", "original_file_path": "macros/field_groups/app_context_fields.sql", "unique_id": "macro.snowplow_unified.default__app_context_fields", "macro_sql": "{% macro default__app_context_fields(table_prefix = none, column_prefix = none) %}\n\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}app__build{% if column_prefix %} as {{ column_prefix~\"_\" }}app__build{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}app__version{% if column_prefix %} as {{ column_prefix~\"_\" }}app__version{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.3584788, "supported_languages": null}, "macro.snowplow_unified.screen_context_fields": {"name": "screen_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/screen_context_fields.sql", "original_file_path": "macros/field_groups/screen_context_fields.sql", "unique_id": "macro.snowplow_unified.screen_context_fields", "macro_sql": "{% macro screen_context_fields(table_prefix = none, column_prefix = none) %}\n {{ return(adapter.dispatch('screen_context_fields', 'snowplow_unified')(table_prefix, column_prefix)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__screen_context_fields"]}, "description": "A macro to list all the fields that are extracted from a specific sde /context. Takes table_prefix and column_prefix as an optional argument.\n\n#### Returns\nA string of list of fields to be used in a sql statement.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6519778, "supported_languages": null}, "macro.snowplow_unified.default__screen_context_fields": {"name": "default__screen_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/screen_context_fields.sql", "original_file_path": "macros/field_groups/screen_context_fields.sql", "unique_id": "macro.snowplow_unified.default__screen_context_fields", "macro_sql": "{% macro default__screen_context_fields(table_prefix = none, column_prefix = none) %}\n\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen__id{% if column_prefix %} as {{ column_prefix~\"_\" }}screen__id {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen__name{% if column_prefix %} as {{ column_prefix~\"_\" }}screen__name {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen__activity{% if column_prefix %} as {{ column_prefix~\"_\" }}screen__activity {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen__fragment{% if column_prefix %} as {{ column_prefix~\"_\" }}screen__fragment {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen__top_view_controller{% if column_prefix %} as {{ column_prefix~\"_\" }}screen__top_view_controller {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen__type{% if column_prefix %} as {{ column_prefix~\"_\" }}screen__type {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen__view_controller{% if column_prefix %} as {{ column_prefix~\"_\" }}screen__view_controller {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.3628485, "supported_languages": null}, "macro.snowplow_unified.deep_link_context_fields": {"name": "deep_link_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/deep_link_context_fields.sql", "original_file_path": "macros/field_groups/deep_link_context_fields.sql", "unique_id": "macro.snowplow_unified.deep_link_context_fields", "macro_sql": "{% macro deep_link_context_fields(table_prefix = none, column_prefix = none) %}\n {{ return(adapter.dispatch('deep_link_context_fields', 'snowplow_unified')(table_prefix, column_prefix)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__deep_link_context_fields"]}, "description": "A macro to list all the fields that are extracted from a specific sde /context. Takes table_prefix and column_prefix as an optional argument.\n\n#### Returns\nA string of list of fields to be used in a sql statement.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.649485, "supported_languages": null}, "macro.snowplow_unified.default__deep_link_context_fields": {"name": "default__deep_link_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/deep_link_context_fields.sql", "original_file_path": "macros/field_groups/deep_link_context_fields.sql", "unique_id": "macro.snowplow_unified.default__deep_link_context_fields", "macro_sql": "{% macro default__deep_link_context_fields(table_prefix = none, column_prefix = none) %}\n\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}deep_link__url{% if column_prefix %} as {{ column_prefix~\"_\" }}deep_link__url {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}deep_link__referrer{% if column_prefix %} as {{ column_prefix~\"_\" }}deep_link__referrer {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.3646283, "supported_languages": null}, "macro.snowplow_unified.web_page_context_fields": {"name": "web_page_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/web_page_context_fields.sql", "original_file_path": "macros/field_groups/web_page_context_fields.sql", "unique_id": "macro.snowplow_unified.web_page_context_fields", "macro_sql": "{% macro web_page_context_fields(table_prefix = none, column_prefix = none) %}\n {{ return(adapter.dispatch('web_page_context_fields', 'snowplow_unified')(table_prefix, column_prefix)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__web_page_context_fields"]}, "description": "A macro to list all the fields that are extracted from a specific sde /context. Takes table_prefix and column_prefix as an optional argument.\n\n#### Returns\nA string of list of fields to be used in a sql statement.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6540177, "supported_languages": null}, "macro.snowplow_unified.default__web_page_context_fields": {"name": "default__web_page_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/web_page_context_fields.sql", "original_file_path": "macros/field_groups/web_page_context_fields.sql", "unique_id": "macro.snowplow_unified.default__web_page_context_fields", "macro_sql": "{% macro default__web_page_context_fields(table_prefix = none, column_prefix = none) %}\n\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}page_view__id{% if column_prefix %} as {{ column_prefix~\"_\" }}page_view__id {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.365952, "supported_languages": null}, "macro.snowplow_unified.platform_independent_fields": {"name": "platform_independent_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/platform_independent_fields.sql", "original_file_path": "macros/field_groups/platform_independent_fields.sql", "unique_id": "macro.snowplow_unified.platform_independent_fields", "macro_sql": "{% macro platform_independent_fields(table_prefix = none, column_prefix = none) %}\n {{ return(adapter.dispatch('platform_independent_fields', 'snowplow_unified')(table_prefix, column_prefix)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__platform_independent_fields"]}, "description": "A macro to list all the fields that are extracted from a specific sde /context. Takes table_prefix and column_prefix as an optional argument.\n\n#### Returns\nA string of list of fields to be used in a sql statement.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6515715, "supported_languages": null}, "macro.snowplow_unified.default__platform_independent_fields": {"name": "default__platform_independent_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/platform_independent_fields.sql", "original_file_path": "macros/field_groups/platform_independent_fields.sql", "unique_id": "macro.snowplow_unified.default__platform_independent_fields", "macro_sql": "{% macro default__platform_independent_fields(table_prefix = none, column_prefix = none) %}\n\n -- event categorization fields\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}event_name{% if column_prefix %} as {{ column_prefix~\"_\" }}event_name{% endif %},\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}user_id,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}user_identifier,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}network_userid,\n\n -- timestamp fields\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}dvce_created_tstamp,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}collector_tstamp,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}derived_tstamp,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}derived_tstamp as start_tstamp,\n\n -- geo fields\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}geo_country{% if column_prefix %} as {{ column_prefix~\"_\" }}geo_country{% endif %},\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}geo_region{% if column_prefix %} as {{ column_prefix~\"_\" }}geo_region{% endif %},\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}geo_region_name{% if column_prefix %} as {{ column_prefix~\"_\" }}geo_region_name{% endif %},\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}geo_city{% if column_prefix %} as {{ column_prefix~\"_\" }}geo_city{% endif %},\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}geo_zipcode{% if column_prefix %} as {{ column_prefix~\"_\" }}geo_zipcode {% endif %},\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}geo_latitude{% if column_prefix %} as {{ column_prefix~\"_\" }}geo_latitude {% endif %},\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}geo_longitude{% if column_prefix %} as {{ column_prefix~\"_\" }}geo_longitude {% endif %},\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}geo_timezone{% if column_prefix %} as {{ column_prefix~\"_\" }}geo_timezone {% endif %},\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}user_ipaddress{% if column_prefix %} as {{ column_prefix~\"_\" }}user_ipaddress {% endif %},\n\n -- device fields\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}app_id,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}platform,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}device_identifier,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}device_category,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}device_session_index,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}os_version,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}os_type,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen_resolution,\n\n -- marketing fields\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mkt_medium,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mkt_source,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mkt_term,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mkt_content,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mkt_campaign,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mkt_clickid,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}mkt_network,\n {{ channel_group_query() }} as default_channel_group,\n\n -- webpage / referer / browser fields\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}page_url{% if column_prefix %} as {{ column_prefix~\"_\" }}page_url{% endif %},\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}page_referrer,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}refr_medium,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}refr_source,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}refr_term,\n {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}useragent\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_unified.channel_group_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.3840394, "supported_languages": null}, "macro.snowplow_unified.mobile_only_fields": {"name": "mobile_only_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/mobile_only_fields.sql", "original_file_path": "macros/field_groups/mobile_only_fields.sql", "unique_id": "macro.snowplow_unified.mobile_only_fields", "macro_sql": "{% macro mobile_only_fields(table_prefix = none, column_prefix = none) %}\n {{ return(adapter.dispatch('mobile_only_fields', 'snowplow_unified')(table_prefix, column_prefix)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__mobile_only_fields"]}, "description": "A macro to list all the fields that are extracted from a specific sde /context. Takes table_prefix and column_prefix as an optional argument.\n\n#### Returns\nA string of list of fields to be used in a sql statement.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.651163, "supported_languages": null}, "macro.snowplow_unified.default__mobile_only_fields": {"name": "default__mobile_only_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/mobile_only_fields.sql", "original_file_path": "macros/field_groups/mobile_only_fields.sql", "unique_id": "macro.snowplow_unified.default__mobile_only_fields", "macro_sql": "{% macro default__mobile_only_fields(table_prefix = none, column_prefix = none) %}\n\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}session__previous_session_id{% if column_prefix %} as {{ column_prefix~\"_\" }}session__previous_session_id{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen_view__name{% if column_prefix %} as {{ column_prefix~\"_\" }}screen_view__name{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen_view__previous_id{% if column_prefix %} as {{ column_prefix~\"_\" }}screen_view__previous_id{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen_view__previous_name{% if column_prefix %} as {{ column_prefix~\"_\" }}screen_view__previous_name{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen_view__previous_type{% if column_prefix %} as {{ column_prefix~\"_\" }}screen_view__previous_type{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen_view__transition_type{% if column_prefix %} as {{ column_prefix~\"_\" }}screen_view__transition_type{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen_view__type{% if column_prefix %} as {{ column_prefix~\"_\" }}screen_view__type{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.3884842, "supported_languages": null}, "macro.snowplow_unified.browser_context_fields": {"name": "browser_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/browser_context_fields.sql", "original_file_path": "macros/field_groups/browser_context_fields.sql", "unique_id": "macro.snowplow_unified.browser_context_fields", "macro_sql": "{% macro browser_context_fields(table_prefix = none, column_prefix = none) %}\n {{ return(adapter.dispatch('browser_context_fields', 'snowplow_unified')(table_prefix, column_prefix)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__browser_context_fields"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.3922954, "supported_languages": null}, "macro.snowplow_unified.default__browser_context_fields": {"name": "default__browser_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/browser_context_fields.sql", "original_file_path": "macros/field_groups/browser_context_fields.sql", "unique_id": "macro.snowplow_unified.default__browser_context_fields", "macro_sql": "{% macro default__browser_context_fields(table_prefix = none, column_prefix = none) %}\n\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}browser__viewport{% if column_prefix %} as {{ column_prefix~\"_\" }}browser__viewport {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}browser__document_size{% if column_prefix %} as {{ column_prefix~\"_\" }}browser__document_size {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}browser__resolution{% if column_prefix %} as {{ column_prefix~\"_\" }}browser__resolution {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}browser__color_depth{% if column_prefix %} as {{ column_prefix~\"_\" }}browser__color_depth {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}browser__device_pixel_ratio{% if column_prefix %} as {{ column_prefix~\"_\" }}browser__device_pixel_ratio {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}browser__cookies_enabled{% if column_prefix %} as {{ column_prefix~\"_\" }}browser__cookies_enabled {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}browser__online{% if column_prefix %} as {{ column_prefix~\"_\" }}browser__online {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}browser__browser_language{% if column_prefix %} as {{ column_prefix~\"_\" }}browser__browser_language {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}browser__document_language{% if column_prefix %} as {{ column_prefix~\"_\" }}browser__document_language {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}browser__webdriver{% if column_prefix %} as {{ column_prefix~\"_\" }}browser__webdriver {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}browser__device_memory{% if column_prefix %} as {{ column_prefix~\"_\" }}browser__device_memory {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}browser__hardware_concurrency{% if column_prefix %} as {{ column_prefix~\"_\" }}browser__hardware_concurrency {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}browser__tab_id{% if column_prefix %} as {{ column_prefix~\"_\" }}browser__tab_id {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.396697, "supported_languages": null}, "macro.snowplow_unified.ua_context_fields": {"name": "ua_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/ua_context_fields.sql", "original_file_path": "macros/field_groups/ua_context_fields.sql", "unique_id": "macro.snowplow_unified.ua_context_fields", "macro_sql": "{% macro ua_context_fields(table_prefix = none, column_prefix = none) %}\n {{ return(adapter.dispatch('ua_context_fields', 'snowplow_unified')(table_prefix, column_prefix)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__ua_context_fields"]}, "description": "A macro to list all the fields that are extracted from a specific sde /context. Takes table_prefix and column_prefix as an optional argument.\n\n#### Returns\nA string of list of fields to be used in a sql statement.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6531837, "supported_languages": null}, "macro.snowplow_unified.default__ua_context_fields": {"name": "default__ua_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/ua_context_fields.sql", "original_file_path": "macros/field_groups/ua_context_fields.sql", "unique_id": "macro.snowplow_unified.default__ua_context_fields", "macro_sql": "{% macro default__ua_context_fields(table_prefix = none, column_prefix = none) %}\n\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}ua__useragent_family{% if column_prefix %} as {{ column_prefix~\"_\" }}ua__useragent_family {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}ua__useragent_major{% if column_prefix %} as {{ column_prefix~\"_\" }}ua__useragent_major {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}ua__useragent_minor{% if column_prefix %} as {{ column_prefix~\"_\" }}ua__useragent_minor {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}ua__useragent_patch{% if column_prefix %} as {{ column_prefix~\"_\" }}ua__useragent_patch {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}ua__useragent_version{% if column_prefix %} as {{ column_prefix~\"_\" }}ua__useragent_version {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}ua__os_family{% if column_prefix %} as {{ column_prefix~\"_\" }}ua__os_family {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}ua__os_major{% if column_prefix %} as {{ column_prefix~\"_\" }}ua__os_major {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}ua__os_minor{% if column_prefix %} as {{ column_prefix~\"_\" }}ua__os_minor {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}ua__os_patch{% if column_prefix %} as {{ column_prefix~\"_\" }}ua__os_patch {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}ua__os_patch_minor{% if column_prefix %} as {{ column_prefix~\"_\" }}ua__os_patch_minor {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}ua__os_version{% if column_prefix %} as {{ column_prefix~\"_\" }}ua__os_version {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}ua__device_family{% if column_prefix %} as {{ column_prefix~\"_\" }}ua__device_family {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.4041734, "supported_languages": null}, "macro.snowplow_unified.screen_view_event_fields": {"name": "screen_view_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/screen_view_event_fields.sql", "original_file_path": "macros/field_groups/screen_view_event_fields.sql", "unique_id": "macro.snowplow_unified.screen_view_event_fields", "macro_sql": "{% macro screen_view_event_fields(table_prefix = none, column_prefix = none) %}\n {{ return(adapter.dispatch('screen_view_event_fields', 'snowplow_unified')(table_prefix, column_prefix)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__screen_view_event_fields"]}, "description": "A macro to list all the fields that are extracted from a specific sde /context. Takes table_prefix and column_prefix as an optional argument.\n\n#### Returns\nA string of list of fields to be used in a sql statement.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.652382, "supported_languages": null}, "macro.snowplow_unified.default__screen_view_event_fields": {"name": "default__screen_view_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_groups/screen_view_event_fields.sql", "original_file_path": "macros/field_groups/screen_view_event_fields.sql", "unique_id": "macro.snowplow_unified.default__screen_view_event_fields", "macro_sql": "{% macro default__screen_view_event_fields(table_prefix = none, column_prefix = none) %}\n\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen_view__id{% if column_prefix %} as {{ column_prefix~\"_\" }}screen_view__id {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen_view__name{% if column_prefix %} as {{ column_prefix~\"_\" }}screen_view__name{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen_view__previous_id{% if column_prefix %} as {{ column_prefix~\"_\" }}session__session_id {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen_view__previous_name{% if column_prefix %} as {{ column_prefix~\"_\" }}screen_view__previous_name {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen_view__previous_type{% if column_prefix %} as {{ column_prefix~\"_\" }}screen_view__previous_type {% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen_view__transition_type{% if column_prefix %} as {{ column_prefix~\"_\" }}screen_view__transition_type{% endif %}\n , {% if table_prefix %}{{ table_prefix~\".\" }}{% endif %}screen_view__type{% if column_prefix %} as {{ column_prefix~\"_\" }}screen_view__type{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.4085345, "supported_languages": null}, "macro.snowplow_unified.get_app_error_event_fields": {"name": "get_app_error_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_app_error_event_fields.sql", "original_file_path": "macros/field_extractions/get_app_error_event_fields.sql", "unique_id": "macro.snowplow_unified.get_app_error_event_fields", "macro_sql": "{% macro get_app_error_event_fields() %}\n {{ return(adapter.dispatch('get_app_error_event_fields', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__get_app_error_event_fields"]}, "description": "This macro is used in the `base_events_this_run` table to extract all the individual fields when the relevant context / sde is enabled, otherwise it returns null values.\n#### Returns\nThe sql to extract the list of fields specified in the context/sde.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6400628, "supported_languages": null}, "macro.snowplow_unified.postgres__get_app_error_event_fields": {"name": "postgres__get_app_error_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_app_error_event_fields.sql", "original_file_path": "macros/field_extractions/get_app_error_event_fields.sql", "unique_id": "macro.snowplow_unified.postgres__get_app_error_event_fields", "macro_sql": "{% macro postgres__get_app_error_event_fields() %}\n {% if var('snowplow__enable_app_errors', false) %}\n {% else %}\n , cast(null as {{ snowplow_utils.type_max_string() }}) as app_error__message\n , cast(null as {{ snowplow_utils.type_max_string() }}) as app_error__programming_language\n , cast(null as {{ snowplow_utils.type_max_string() }}) as app_error__class_name\n , cast(null as {{ snowplow_utils.type_max_string() }}) as app_error__exception_name\n , cast(null as {{ type_boolean() }}) as app_error__is_fatal\n , cast(null as {{ type_int() }}) as app_error__line_number\n , cast(null as {{ snowplow_utils.type_max_string() }}) as app_error__stack_trace\n , cast(null as {{ type_int() }}) as app_error__thread_id\n , cast(null as {{ snowplow_utils.type_max_string() }}) as app_error__thread_name\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.type_max_string", "macro.dbt.type_boolean", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.416959, "supported_languages": null}, "macro.snowplow_unified.bigquery__get_app_error_event_fields": {"name": "bigquery__get_app_error_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_app_error_event_fields.sql", "original_file_path": "macros/field_extractions/get_app_error_event_fields.sql", "unique_id": "macro.snowplow_unified.bigquery__get_app_error_event_fields", "macro_sql": "{% macro bigquery__get_app_error_event_fields() %}\n\n {% set bq_app_error_event_fields = [\n {'field':('message', 'app_error__message'), 'dtype':'string'},\n {'field':('programming_language', 'app_error__programming_language'), 'dtype':'string'},\n {'field':('class_name', 'app_error__class_name'), 'dtype':'string'},\n {'field':('exception_name', 'app_error__exception_name'), 'dtype':'string'},\n {'field':('is_fatal', 'app_error__is_fatal'), 'dtype':'boolean'},\n {'field':('line_number', 'app_error__line_number'), 'dtype':'integer'},\n {'field':('stack_trace', 'app_error__stack_trace'), 'dtype':'string'},\n {'field':('thread_id', 'app_error__thread_id'), 'dtype':'integer'},\n {'field':('thread_name', 'app_error__thread_name'), 'dtype':'string'}\n ] %}\n\n {% if var('snowplow__enable_app_errors', false) %}\n ,{{ snowplow_utils.get_optional_fields(\n enabled=var('snowplow__enable_app_errors', false),\n col_prefix='unstruct_event_com_snowplowanalytics_snowplow_application_error_1',\n fields=bq_app_error_event_fields,\n relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),\n relation_alias=none) }}\n {% else %}\n , cast(null as {{ type_string() }}) as app_error__message\n , cast(null as {{ type_string() }}) as app_error__programming_language\n , cast(null as {{ type_string() }}) as app_error__class_name\n , cast(null as {{ type_string() }}) as app_error__exception_name\n , cast(null as {{ type_boolean() }}) as app_error__is_fatal\n , cast(null as {{ type_int() }}) as app_error__line_number\n , cast(null as {{ type_string() }}) as app_error__stack_trace\n , cast(null as {{ type_int() }}) as app_error__thread_id\n , cast(null as {{ type_string() }}) as app_error__thread_name\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields", "macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.420332, "supported_languages": null}, "macro.snowplow_unified.spark__get_app_error_event_fields": {"name": "spark__get_app_error_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_app_error_event_fields.sql", "original_file_path": "macros/field_extractions/get_app_error_event_fields.sql", "unique_id": "macro.snowplow_unified.spark__get_app_error_event_fields", "macro_sql": "{% macro spark__get_app_error_event_fields() %}\n {% if var('snowplow__enable_app_errors', false) %}\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1.message::STRING AS app_error__message\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1.programming_language::STRING AS app_error__programming_language\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1.class_name::STRING AS app_error__class_name\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1.exception_name::STRING AS app_error__exception_name\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1.is_fatal::BOOLEAN AS app_error__is_fatal\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1.line_number::INT AS app_error__line_number\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1.stack_trace::STRING AS app_error__stack_trace\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1.thread_id::INT AS app_error__thread_id\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1.thread_name::STRING AS app_error__thread_name\n {% else %}\n , cast(null as {{ type_string() }}) as app_error__message\n , cast(null as {{ type_string() }}) as app_error__programming_language\n , cast(null as {{ type_string() }}) as app_error__class_name\n , cast(null as {{ type_string() }}) as app_error__exception_name\n , cast(null as {{ type_boolean() }}) as app_error__is_fatal\n , cast(null as {{ type_int() }}) as app_error__line_number\n , cast(null as {{ type_string() }}) as app_error__stack_trace\n , cast(null as {{ type_int() }}) as app_error__thread_id\n , cast(null as {{ type_string() }}) as app_error__thread_name\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.4213896, "supported_languages": null}, "macro.snowplow_unified.snowflake__get_app_error_event_fields": {"name": "snowflake__get_app_error_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_app_error_event_fields.sql", "original_file_path": "macros/field_extractions/get_app_error_event_fields.sql", "unique_id": "macro.snowplow_unified.snowflake__get_app_error_event_fields", "macro_sql": "{% macro snowflake__get_app_error_event_fields() %}\n {% if var('snowplow__enable_app_errors', false) %}\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:message::VARCHAR() AS app_error__message\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:programmingLanguage::VARCHAR() AS app_error__programming_language\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:className::VARCHAR() AS app_error__class_name\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:exceptionName::VARCHAR() AS app_error__exception_name\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:isFatal::BOOLEAN AS app_error__is_fatal\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:lineNumber::INT AS app_error__line_number\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:stackTrace::VARCHAR() AS app_error__stack_trace\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:threadId::INT AS app_error__thread_id\n , unstruct_event_com_snowplowanalytics_snowplow_application_error_1:threadName::VARCHAR() AS app_error__thread_name\n {% else %}\n , cast(null as {{ type_string() }}) as app_error__message\n , cast(null as {{ type_string() }}) as app_error__programming_language\n , cast(null as {{ type_string() }}) as app_error__class_name\n , cast(null as {{ type_string() }}) as app_error__exception_name\n , cast(null as {{ type_boolean() }}) as app_error__is_fatal\n , cast(null as {{ type_int() }}) as app_error__line_number\n , cast(null as {{ type_string() }}) as app_error__stack_trace\n , cast(null as {{ type_int() }}) as app_error__thread_id\n , cast(null as {{ type_string() }}) as app_error__thread_name\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_boolean", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.4224625, "supported_languages": null}, "macro.snowplow_unified.get_screen_context_fields": {"name": "get_screen_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_screen_context_fields.sql", "original_file_path": "macros/field_extractions/get_screen_context_fields.sql", "unique_id": "macro.snowplow_unified.get_screen_context_fields", "macro_sql": "{% macro get_screen_context_fields() %}\n {{ return(adapter.dispatch('get_screen_context_fields', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__get_screen_context_fields"]}, "description": "This macro is used in the `base_events_this_run` table to extract all the individual fields when the relevant context / sde is enabled, otherwise it returns null values.\n#### Returns\nThe sql to extract the list of fields specified in the context/sde.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6422038, "supported_languages": null}, "macro.snowplow_unified.postgres__get_screen_context_fields": {"name": "postgres__get_screen_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_screen_context_fields.sql", "original_file_path": "macros/field_extractions/get_screen_context_fields.sql", "unique_id": "macro.snowplow_unified.postgres__get_screen_context_fields", "macro_sql": "{% macro postgres__get_screen_context_fields() %}\n {% if var('snowplow__enable_screen_context', false) %}\n {% else %}\n , cast(null as {{ snowplow_utils.type_max_string() }}) as screen__id\n , cast(null as {{ snowplow_utils.type_max_string() }}) as screen__name\n , cast(null as {{ snowplow_utils.type_max_string() }}) as screen__activity\n , cast(null as {{ snowplow_utils.type_max_string() }}) as screen__fragment\n , cast(null as {{ snowplow_utils.type_max_string() }}) as screen__top_view_controller\n , cast(null as {{ snowplow_utils.type_max_string() }}) as screen__type\n , cast(null as {{ snowplow_utils.type_max_string() }}) as screen__view_controller\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.type_max_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.428535, "supported_languages": null}, "macro.snowplow_unified.bigquery__get_screen_context_fields": {"name": "bigquery__get_screen_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_screen_context_fields.sql", "original_file_path": "macros/field_extractions/get_screen_context_fields.sql", "unique_id": "macro.snowplow_unified.bigquery__get_screen_context_fields", "macro_sql": "{% macro bigquery__get_screen_context_fields() %}\n\n {% set bq_screen_context_fields = [\n {'field':('id', 'screen__id'), 'dtype':'string'},\n {'field':('name', 'screen__name'), 'dtype':'string'},\n {'field':('activity', 'screen__activity'), 'dtype':'string'},\n {'field':('fragment', 'screen__fragment'), 'dtype':'string'},\n {'field':('top_view_controller', 'screen__top_view_controller'), 'dtype':'string'},\n {'field':('type', 'screen__type'), 'dtype':'string'},\n {'field':('view_controller', 'screen__view_controller'), 'dtype':'string'}\n ] %}\n\n {% if var('snowplow__enable_screen_context', false) %}\n , {{ snowplow_utils.get_optional_fields(\n enabled=var('snowplow__enable_screen_context', false),\n col_prefix='contexts_com_snowplowanalytics_mobile_screen_1',\n fields=bq_screen_context_fields,\n relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),\n relation_alias=none) }}\n {% else %}\n , cast(null as {{ type_string() }}) as screen__id\n , cast(null as {{ type_string() }}) as screen__name\n , cast(null as {{ type_string() }}) as screen__activity\n , cast(null as {{ type_string() }}) as screen__fragment\n , cast(null as {{ type_string() }}) as screen__top_view_controller\n , cast(null as {{ type_string() }}) as screen__type\n , cast(null as {{ type_string() }}) as screen__view_controller\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.4314854, "supported_languages": null}, "macro.snowplow_unified.spark__get_screen_context_fields": {"name": "spark__get_screen_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_screen_context_fields.sql", "original_file_path": "macros/field_extractions/get_screen_context_fields.sql", "unique_id": "macro.snowplow_unified.spark__get_screen_context_fields", "macro_sql": "{% macro spark__get_screen_context_fields() %}\n {% if var('snowplow__enable_screen_context', false) %}\n , contexts_com_snowplowanalytics_mobile_screen_1[0].id::STRING AS screen__id\n , contexts_com_snowplowanalytics_mobile_screen_1[0].name::STRING AS screen__name\n , contexts_com_snowplowanalytics_mobile_screen_1[0].activity::STRING AS screen__activity\n , contexts_com_snowplowanalytics_mobile_screen_1[0].fragment::STRING AS screen__fragment\n , contexts_com_snowplowanalytics_mobile_screen_1[0].top_view_controller::STRING AS screen__top_view_controller\n , contexts_com_snowplowanalytics_mobile_screen_1[0].type::STRING AS screen__type\n , contexts_com_snowplowanalytics_mobile_screen_1[0].view_controller::STRING AS screen__view_controller\n {% else %}\n , cast(null as {{ type_string() }}) as screen__id\n , cast(null as {{ type_string() }}) as screen__name\n , cast(null as {{ type_string() }}) as screen__activity\n , cast(null as {{ type_string() }}) as screen__fragment\n , cast(null as {{ type_string() }}) as screen__top_view_controller\n , cast(null as {{ type_string() }}) as screen__type\n , cast(null as {{ type_string() }}) as screen__view_controller\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.4323936, "supported_languages": null}, "macro.snowplow_unified.snowflake__get_screen_context_fields": {"name": "snowflake__get_screen_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_screen_context_fields.sql", "original_file_path": "macros/field_extractions/get_screen_context_fields.sql", "unique_id": "macro.snowplow_unified.snowflake__get_screen_context_fields", "macro_sql": "{% macro snowflake__get_screen_context_fields() %}\n {% if var('snowplow__enable_screen_context', false) %}\n , contexts_com_snowplowanalytics_mobile_screen_1[0]:id::varchar(36) AS screen__id\n , contexts_com_snowplowanalytics_mobile_screen_1[0]:name::varchar AS screen__name\n , contexts_com_snowplowanalytics_mobile_screen_1[0]:activity::varchar AS screen__activity\n , contexts_com_snowplowanalytics_mobile_screen_1[0]:fragment::varchar AS screen__fragment\n , contexts_com_snowplowanalytics_mobile_screen_1[0]:topViewController::varchar AS screen__top_view_controller\n , contexts_com_snowplowanalytics_mobile_screen_1[0]:type::varchar AS screen__type\n , contexts_com_snowplowanalytics_mobile_screen_1[0]:viewController::varchar AS screen__view_controller\n {% else %}\n , cast(null as {{ type_string() }}) as screen__id\n , cast(null as {{ type_string() }}) as screen__name\n , cast(null as {{ type_string() }}) as screen__activity\n , cast(null as {{ type_string() }}) as screen__fragment\n , cast(null as {{ type_string() }}) as screen__top_view_controller\n , cast(null as {{ type_string() }}) as screen__type\n , cast(null as {{ type_string() }}) as screen__view_controller\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.4332702, "supported_languages": null}, "macro.snowplow_unified.get_cwv_fields": {"name": "get_cwv_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_cwv_fields.sql", "original_file_path": "macros/field_extractions/get_cwv_fields.sql", "unique_id": "macro.snowplow_unified.get_cwv_fields", "macro_sql": "{% macro get_cwv_fields() %}\n {{ return(adapter.dispatch('get_cwv_fields', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__get_cwv_fields"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.436357, "supported_languages": null}, "macro.snowplow_unified.postgres__get_cwv_fields": {"name": "postgres__get_cwv_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_cwv_fields.sql", "original_file_path": "macros/field_extractions/get_cwv_fields.sql", "unique_id": "macro.snowplow_unified.postgres__get_cwv_fields", "macro_sql": "{% macro postgres__get_cwv_fields() %}\n {% if var('snowplow__enable_cwv', false) %}\n {% else %}\n , cast(null as decimal(14,4)) as cwv__lcp,\n , cast(null as decimal(14,4)) as cwv__fcp,\n , cast(null as decimal(14,4)) as cwv__fid,\n , cast(null as decimal(14,4)) as cwv__cls,\n , cast(null as decimal(14,4)) as cwv__inp,\n , cast(null as decimal(14,4)) as cwv__ttfb,\n , cast(null as {{ type_string() }}) as cwv__navigation_type\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.43683, "supported_languages": null}, "macro.snowplow_unified.bigquery__get_cwv_fields": {"name": "bigquery__get_cwv_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_cwv_fields.sql", "original_file_path": "macros/field_extractions/get_cwv_fields.sql", "unique_id": "macro.snowplow_unified.bigquery__get_cwv_fields", "macro_sql": "{% macro bigquery__get_cwv_fields() %}\n\n {% set bq_cwv_fields = [\n {'field':('lcp','cwv__lcp'), 'dtype': 'decimal'},\n {'field':('fcp','cwv__fcp'), 'dtype': 'decimal'},\n {'field':('fid','cwv__fid'), 'dtype': 'decimal'},\n {'field':('cls','cwv__cls'), 'dtype': 'decimal'},\n {'field':('inp','cwv__inp'), 'dtype': 'decimal'},\n {'field':('ttfb','cwv__ttfb'), 'dtype': 'decimal'},\n {'field':('navigation_type','cwv__navigation_type'), 'dtype': 'string'}\n ] %}\n\n {% if var('snowplow__enable_cwv', false) %}\n , {{ snowplow_utils.get_optional_fields(\n enabled=var('snowplow__enable_cwv', false),\n col_prefix='unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1',\n fields=bq_cwv_fields,\n relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),\n relation_alias=none) }}\n {% else %}\n , cast(null as decimal) as cwv__lcp,\n , cast(null as decimal) as cwv__fcp,\n , cast(null as decimal) as cwv__fid,\n , cast(null as decimal) as cwv__cls,\n , cast(null as decimal) as cwv__inp,\n , cast(null as decimal) as cwv__ttfb,\n , cast(null as {{ type_string() }}) as cwv__navigation_type\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.4394555, "supported_languages": null}, "macro.snowplow_unified.spark__get_cwv_fields": {"name": "spark__get_cwv_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_cwv_fields.sql", "original_file_path": "macros/field_extractions/get_cwv_fields.sql", "unique_id": "macro.snowplow_unified.spark__get_cwv_fields", "macro_sql": "{% macro spark__get_cwv_fields() %}\n {% if var('snowplow__enable_cwv', false) %}\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1.lcp::decimal(14,4) as cwv__lcp\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1.fcp::decimal(14,4) as cwv__fcp\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1.fid::decimal(14,4) as cwv__fid\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1.cls::decimal(14,4) as cwv__cls\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1.inp::decimal(14,4) as cwv__inp\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1.ttfb::decimal(14,4) as cwv__ttfb\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1.navigation_type::varchar(128) as cwv__navigation_type\n {% else %}\n , cast(null as decimal(14,4)) as cwv__lcp,\n , cast(null as decimal(14,4)) as cwv__fcp,\n , cast(null as decimal(14,4)) as cwv__fid,\n , cast(null as decimal(14,4)) as cwv__cls,\n , cast(null as decimal(14,4)) as cwv__inp,\n , cast(null as decimal(14,4)) as cwv__ttfb,\n , cast(null as {{ type_string() }}) as cwv__navigation_type\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.4400094, "supported_languages": null}, "macro.snowplow_unified.snowflake__get_cwv_fields": {"name": "snowflake__get_cwv_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_cwv_fields.sql", "original_file_path": "macros/field_extractions/get_cwv_fields.sql", "unique_id": "macro.snowplow_unified.snowflake__get_cwv_fields", "macro_sql": "{% macro snowflake__get_cwv_fields() %}\n {% if var('snowplow__enable_cwv', false) %}\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1:lcp::decimal(14,4) as cwv__lcp\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1:fcp::decimal(14,4) as cwv__fcp\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1:fid::decimal(14,4) as cwv__fid\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1:cls::decimal(14,4) as cwv__cls\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1:inp::decimal(14,4) as cwv__inp\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1:ttfb::decimal(14,4) as cwv__ttfb\n , unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1:navigationType::varchar as cwv__navigation_type\n {% else %}\n , cast(null as decimal(14,4)) as cwv__lcp,\n , cast(null as decimal(14,4)) as cwv__fcp,\n , cast(null as decimal(14,4)) as cwv__fid,\n , cast(null as decimal(14,4)) as cwv__cls,\n , cast(null as decimal(14,4)) as cwv__inp,\n , cast(null as decimal(14,4)) as cwv__ttfb,\n , cast(null as {{ type_string() }}) as cwv__navigation_type\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.4405317, "supported_languages": null}, "macro.snowplow_unified.get_screen_summary_context_fields": {"name": "get_screen_summary_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_screen_summary_context_fields.sql", "original_file_path": "macros/field_extractions/get_screen_summary_context_fields.sql", "unique_id": "macro.snowplow_unified.get_screen_summary_context_fields", "macro_sql": "{% macro get_screen_summary_context_fields() %}\n {{ return(adapter.dispatch('get_screen_summary_context_fields', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__get_screen_summary_context_fields"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.449295, "supported_languages": null}, "macro.snowplow_unified.postgres__get_screen_summary_context_fields": {"name": "postgres__get_screen_summary_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_screen_summary_context_fields.sql", "original_file_path": "macros/field_extractions/get_screen_summary_context_fields.sql", "unique_id": "macro.snowplow_unified.postgres__get_screen_summary_context_fields", "macro_sql": "{% macro postgres__get_screen_summary_context_fields() %}\n {% if var('snowplow__enable_screen_summary_context', false) %}\n {% else %}\n , cast(null as {{ type_float() }}) as screen_summary__foreground_sec\n , cast(null as {{ type_float() }}) as screen_summary__background_sec\n , cast(null as {{ type_int() }}) as screen_summary__last_item_index\n , cast(null as {{ type_int() }}) as screen_summary__items_count\n , cast(null as {{ type_int() }}) as screen_summary__min_x_offset\n , cast(null as {{ type_int() }}) as screen_summary__min_y_offset\n , cast(null as {{ type_int() }}) as screen_summary__max_x_offset\n , cast(null as {{ type_int() }}) as screen_summary__max_y_offset\n , cast(null as {{ type_int() }}) as screen_summary__content_width\n , cast(null as {{ type_int() }}) as screen_summary__content_height\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.4503815, "supported_languages": null}, "macro.snowplow_unified.bigquery__get_screen_summary_context_fields": {"name": "bigquery__get_screen_summary_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_screen_summary_context_fields.sql", "original_file_path": "macros/field_extractions/get_screen_summary_context_fields.sql", "unique_id": "macro.snowplow_unified.bigquery__get_screen_summary_context_fields", "macro_sql": "{% macro bigquery__get_screen_summary_context_fields() %}\n\n {% set bq_screen_summary_context_fields = [\n {'field':('foreground_sec', 'screen_summary__foreground_sec'), 'dtype':'float'},\n {'field':('background_sec', 'screen_summary__background_sec'), 'dtype':'float'},\n {'field':('last_item_index', 'screen_summary__last_item_index'), 'dtype':'integer'},\n {'field':('items_count', 'screen_summary__items_count'), 'dtype':'integer'},\n {'field':('min_x_offset', 'screen_summary__min_x_offset'), 'dtype':'integer'},\n {'field':('min_y_offset', 'screen_summary__min_y_offset'), 'dtype':'integer'},\n {'field':('max_x_offset', 'screen_summary__max_x_offset'), 'dtype':'integer'},\n {'field':('max_y_offset', 'screen_summary__max_y_offset'), 'dtype':'integer'},\n {'field':('content_width', 'screen_summary__content_width'), 'dtype':'integer'},\n {'field':('content_height', 'screen_summary__content_height'), 'dtype':'integer'},\n ] %}\n\n {% if var('snowplow__enable_screen_summary_context', false) %}\n , {{ snowplow_utils.get_optional_fields(\n enabled=var('snowplow__enable_screen_summary_context', false),\n col_prefix='contexts_com_snowplowanalytics_mobile_screen_summary_1',\n fields=bq_screen_summary_context_fields,\n relation=source('atomic', 'events') if project_name != 'snowplow_unified_integration_tests' else ref('snowplow_unified_events_stg'),\n relation_alias=none) }}\n {% else %}\n , cast(null as {{ type_float() }}) as screen_summary__foreground_sec\n , cast(null as {{ type_float() }}) as screen_summary__background_sec\n , cast(null as {{ type_int() }}) as screen_summary__last_item_index\n , cast(null as {{ type_int() }}) as screen_summary__items_count\n , cast(null as {{ type_int() }}) as screen_summary__min_x_offset\n , cast(null as {{ type_int() }}) as screen_summary__min_y_offset\n , cast(null as {{ type_int() }}) as screen_summary__max_x_offset\n , cast(null as {{ type_int() }}) as screen_summary__max_y_offset\n , cast(null as {{ type_int() }}) as screen_summary__content_width\n , cast(null as {{ type_int() }}) as screen_summary__content_height\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.4539356, "supported_languages": null}, "macro.snowplow_unified.spark__get_screen_summary_context_fields": {"name": "spark__get_screen_summary_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_screen_summary_context_fields.sql", "original_file_path": "macros/field_extractions/get_screen_summary_context_fields.sql", "unique_id": "macro.snowplow_unified.spark__get_screen_summary_context_fields", "macro_sql": "{% macro spark__get_screen_summary_context_fields() %}\n {% if var('snowplow__enable_screen_summary_context', false) %}\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0].foreground_sec::FLOAT AS screen_summary__foreground_sec\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0].background_sec::FLOAT AS screen_summary__background_sec\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0].last_item_index::INT AS screen_summary__last_item_index\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0].items_count::INT AS screen_summary__items_count\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0].min_x_offset::INT AS screen_summary__min_x_offset\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0].min_y_offset::INT AS screen_summary__min_y_offset\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0].max_x_offset::INT AS screen_summary__max_x_offset\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0].max_y_offset::INT AS screen_summary__max_y_offset\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0].content_width::INT AS screen_summary__content_width\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0].content_height::INT AS screen_summary__content_height\n {% else %}\n , cast(null as {{ type_float() }}) as screen_summary__foreground_sec\n , cast(null as {{ type_float() }}) as screen_summary__background_sec\n , cast(null as {{ type_int() }}) as screen_summary__last_item_index\n , cast(null as {{ type_int() }}) as screen_summary__items_count\n , cast(null as {{ type_int() }}) as screen_summary__min_x_offset\n , cast(null as {{ type_int() }}) as screen_summary__min_y_offset\n , cast(null as {{ type_int() }}) as screen_summary__max_x_offset\n , cast(null as {{ type_int() }}) as screen_summary__max_y_offset\n , cast(null as {{ type_int() }}) as screen_summary__content_width\n , cast(null as {{ type_int() }}) as screen_summary__content_height\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.455273, "supported_languages": null}, "macro.snowplow_unified.snowflake__get_screen_summary_context_fields": {"name": "snowflake__get_screen_summary_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_screen_summary_context_fields.sql", "original_file_path": "macros/field_extractions/get_screen_summary_context_fields.sql", "unique_id": "macro.snowplow_unified.snowflake__get_screen_summary_context_fields", "macro_sql": "{% macro snowflake__get_screen_summary_context_fields() %}\n {% if var('snowplow__enable_screen_summary_context', false) %}\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0]:foreground_sec::FLOAT AS screen_summary__foreground_sec\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0]:background_sec::FLOAT AS screen_summary__background_sec\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0]:last_item_index::INT AS screen_summary__last_item_index\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0]:items_count::INT AS screen_summary__items_count\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0]:min_x_offset::INT AS screen_summary__min_x_offset\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0]:min_y_offset::INT AS screen_summary__min_y_offset\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0]:max_x_offset::INT AS screen_summary__max_x_offset\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0]:max_y_offset::INT AS screen_summary__max_y_offset\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0]:content_width::INT AS screen_summary__content_width\n , contexts_com_snowplowanalytics_mobile_screen_summary_1[0]:content_height::INT AS screen_summary__content_height\n {% else %}\n , cast(null as {{ type_float() }}) as screen_summary__foreground_sec\n , cast(null as {{ type_float() }}) as screen_summary__background_sec\n , cast(null as {{ type_int() }}) as screen_summary__last_item_index\n , cast(null as {{ type_int() }}) as screen_summary__items_count\n , cast(null as {{ type_int() }}) as screen_summary__min_x_offset\n , cast(null as {{ type_int() }}) as screen_summary__min_y_offset\n , cast(null as {{ type_int() }}) as screen_summary__max_x_offset\n , cast(null as {{ type_int() }}) as screen_summary__max_y_offset\n , cast(null as {{ type_int() }}) as screen_summary__content_width\n , cast(null as {{ type_int() }}) as screen_summary__content_height\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.4563928, "supported_languages": null}, "macro.snowplow_unified.get_mobile_context_fields": {"name": "get_mobile_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_mobile_context_fields.sql", "original_file_path": "macros/field_extractions/get_mobile_context_fields.sql", "unique_id": "macro.snowplow_unified.get_mobile_context_fields", "macro_sql": "{% macro get_mobile_context_fields() %}\n {{ return(adapter.dispatch('get_mobile_context_fields', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__get_mobile_context_fields"]}, "description": "This macro is used in the `base_events_this_run` table to extract all the individual fields when the relevant context / sde is enabled, otherwise it returns null values.\n#### Returns\nThe sql to extract the list of fields specified in the context/sde.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.641756, "supported_languages": null}, "macro.snowplow_unified.postgres__get_mobile_context_fields": {"name": "postgres__get_mobile_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_mobile_context_fields.sql", "original_file_path": "macros/field_extractions/get_mobile_context_fields.sql", "unique_id": "macro.snowplow_unified.postgres__get_mobile_context_fields", "macro_sql": "{% macro postgres__get_mobile_context_fields() %}\n {% if var('snowplow__enable_mobile_context', false) %}\n {% else %}\n , cast(null as {{ snowplow_utils.type_max_string() }}) as mobile__device_manufacturer\n , cast(null as {{ snowplow_utils.type_max_string() }}) as mobile__device_model\n , cast(null as {{ snowplow_utils.type_max_string() }}) as mobile__os_type\n , cast(null as {{ snowplow_utils.type_max_string() }}) as mobile__os_version\n , cast(null as {{ snowplow_utils.type_max_string() }}) as mobile__android_idfa\n , cast(null as {{ snowplow_utils.type_max_string() }}) as mobile__apple_idfa\n , cast(null as {{ snowplow_utils.type_max_string() }}) as mobile__apple_idfv\n , cast(null as {{ snowplow_utils.type_max_string() }}) as mobile__carrier\n , cast(null as {{ snowplow_utils.type_max_string() }}) as mobile__open_idfa\n , cast(null as {{ snowplow_utils.type_max_string() }}) as mobile__network_technology\n , cast(null as {{ snowplow_utils.type_max_string() }}) as mobile__network_type\n , cast(null as {{ type_int() }}) as mobile__physical_memory\n , cast(null as {{ type_int() }}) as mobile__system_available_memory\n , cast(null as {{ type_int() }}) as mobile__app_available_memory\n , cast(null as {{ type_int() }}) as mobile__battery_level\n , cast(null as {{ snowplow_utils.type_max_string() }}) as mobile__battery_state\n , cast(null as {{ type_boolean() }}) as mobile__low_power_mode\n , cast(null as bigint) as mobile__available_storage\n , cast(null as bigint) as mobile__total_storage\n , cast(null as {{ type_boolean() }}) as mobile__is_portrait\n , cast(null as {{ snowplow_utils.type_max_string() }}) as mobile__resolution\n , cast(null as {{ type_float() }}) as mobile__scale\n , cast(null as {{ snowplow_utils.type_max_string() }}) as mobile__language\n , cast(null as {{ snowplow_utils.type_max_string() }}) as mobile__app_set_id\n , cast(null as {{ snowplow_utils.type_max_string() }}) as mobile__app_set_id_scope\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.type_max_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.4874213, "supported_languages": null}, "macro.snowplow_unified.bigquery__get_mobile_context_fields": {"name": "bigquery__get_mobile_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_mobile_context_fields.sql", "original_file_path": "macros/field_extractions/get_mobile_context_fields.sql", "unique_id": "macro.snowplow_unified.bigquery__get_mobile_context_fields", "macro_sql": "{% macro bigquery__get_mobile_context_fields() %}\n\n {% set bq_mobile_context_fields = [\n {'field':('device_manufacturer', 'mobile__device_manufacturer'), 'dtype':'string'},\n {'field':('device_model', 'mobile__device_model'), 'dtype':'string'},\n {'field':('os_type', 'mobile__os_type'), 'dtype':'string'},\n {'field':('os_version', 'mobile__os_version'), 'dtype':'string'},\n {'field':('android_idfa', 'mobile__android_idfa'), 'dtype':'string'},\n {'field':('apple_idfa', 'mobile__apple_idfa'), 'dtype':'string'},\n {'field':('apple_idfv', 'mobile__apple_idfv'), 'dtype':'string'},\n {'field':('carrier', 'mobile__carrier'), 'dtype':'string'},\n {'field':('open_idfa', 'mobile__open_idfa'), 'dtype':'string'},\n {'field':('network_technology', 'mobile__network_technology'), 'dtype':'string'},\n {'field':('network_type', 'mobile__network_type'), 'dtype':'string'},\n {'field':('physical_memory', 'mobile__physical_memory'), 'dtype':'integer'},\n {'field':('system_available_memory', 'mobile__system_available_memory'), 'dtype':'integer'},\n {'field':('app_available_memory', 'mobile__app_available_memory'), 'dtype':'integer'},\n {'field':('battery_level', 'mobile__battery_level'), 'dtype':'integer'},\n {'field':('battery_state', 'mobile__battery_state'), 'dtype':'string'},\n {'field':('low_power_mode', 'mobile__low_power_mode'), 'dtype':'boolean'},\n {'field':('available_storage', 'mobile__available_storage'), 'dtype':'integer'},\n {'field':('total_storage', 'mobile__total_storage'), 'dtype':'integer'},\n {'field':('is_portrait', 'mobile__is_portrait'), 'dtype':'boolean'},\n {'field':('resolution', 'mobile__resolution'), 'dtype':'string'},\n {'field':('scale', 'mobile__scale'), 'dtype':'integer'},\n {'field':('language', 'mobile__language'), 'dtype':'string'},\n {'field':('app_set_id', 'mobile__app_set_id'), 'dtype':'string'},\n {'field':('app_set_id_scope', 'mobile__app_set_id_scope'), 'dtype':'string'}\n ] %}\n\n {% if var('snowplow__enable_mobile_context', false) %}\n ,{{ snowplow_utils.get_optional_fields(\n enabled=var('snowplow__enable_mobile_context', false),\n col_prefix='contexts_com_snowplowanalytics_snowplow_mobile_context_1',\n fields=bq_mobile_context_fields,\n relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),\n relation_alias=none) }}\n {% else %}\n , cast(null as {{ type_string() }}) as mobile__device_manufacturer\n , cast(null as {{ type_string() }}) as mobile__device_model\n , cast(null as {{ type_string() }}) as mobile__os_type\n , cast(null as {{ type_string() }}) as mobile__os_version\n , cast(null as {{ type_string() }}) as mobile__android_idfa\n , cast(null as {{ type_string() }}) as mobile__apple_idfa\n , cast(null as {{ type_string() }}) as mobile__apple_idfv\n , cast(null as {{ type_string() }}) as mobile__carrier\n , cast(null as {{ type_string() }}) as mobile__open_idfa\n , cast(null as {{ type_string() }}) as mobile__network_technology\n , cast(null as {{ type_string() }}) as mobile__network_type\n , cast(null as {{ type_int() }}) as mobile__physical_memory\n , cast(null as {{ type_int() }}) as mobile__system_available_memory\n , cast(null as {{ type_int() }}) as mobile__app_available_memory\n , cast(null as {{ type_int() }}) as mobile__battery_level\n , cast(null as {{ type_string() }}) as mobile__battery_state\n , cast(null as {{ type_boolean() }}) as mobile__low_power_mode\n , cast(null as {{ type_int() }}) as mobile__available_storage\n , cast(null as {{ type_int() }}) as mobile__total_storage\n , cast(null as {{ type_boolean() }}) as mobile__is_portrait\n , cast(null as {{ type_string() }}) as mobile__resolution\n , cast(null as {{ type_float() }}) as mobile__scale\n , cast(null as {{ type_string() }}) as mobile__language\n , cast(null as {{ type_string() }}) as mobile__app_set_id\n , cast(null as {{ type_string() }}) as mobile__app_set_id_scope\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.4947152, "supported_languages": null}, "macro.snowplow_unified.spark__get_mobile_context_fields": {"name": "spark__get_mobile_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_mobile_context_fields.sql", "original_file_path": "macros/field_extractions/get_mobile_context_fields.sql", "unique_id": "macro.snowplow_unified.spark__get_mobile_context_fields", "macro_sql": "{% macro spark__get_mobile_context_fields() %}\n {% if var('snowplow__enable_mobile_context', false) %}\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].device_manufacturer::STRING AS mobile__device_manufacturer\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].device_model::STRING AS mobile__device_model\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].os_type::STRING AS mobile__os_type\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].os_version::STRING AS mobile__os_version\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].android_idfa::STRING AS mobile__android_idfa\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].apple_idfa::STRING AS mobile__apple_idfa\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].apple_idfv::STRING AS mobile__apple_idfv\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].carrier::STRING AS mobile__carrier\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].open_idfa::STRING AS mobile__open_idfa\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].network_technology::STRING AS mobile__network_technology\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].network_type::STRING AS mobile__network_type\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].physical_memory::INT AS mobile__physical_memory\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].system_available_memory::INT AS mobile__system_available_memory\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].app_available_memory::INT AS mobile__app_available_memory\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].battery_level::INT AS mobile__battery_level\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].battery_state::STRING AS mobile__battery_state\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].low_power_mode::BOOLEAN AS mobile__low_power_mode\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].available_storage::bigint AS mobile__available_storage\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].total_storage::bigint AS mobile__total_storage\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].is_portrait::BOOLEAN AS mobile__is_portrait\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].resolution::STRING AS mobile__resolution\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].scale::float AS mobile__scale\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].language::STRING AS mobile__language\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].app_set_id::STRING AS mobile__app_set_id\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].app_set_id_scope::STRING AS mobile__app_set_id_scope\n {% else %}\n , cast(null as {{ type_string() }}) as mobile__device_manufacturer\n , cast(null as {{ type_string() }}) as mobile__device_model\n , cast(null as {{ type_string() }}) as mobile__os_type\n , cast(null as {{ type_string() }}) as mobile__os_version\n , cast(null as {{ type_string() }}) as mobile__android_idfa\n , cast(null as {{ type_string() }}) as mobile__apple_idfa\n , cast(null as {{ type_string() }}) as mobile__apple_idfv\n , cast(null as {{ type_string() }}) as mobile__carrier\n , cast(null as {{ type_string() }}) as mobile__open_idfa\n , cast(null as {{ type_string() }}) as mobile__network_technology\n , cast(null as {{ type_string() }}) as mobile__network_type\n , cast(null as {{ type_int() }}) as mobile__physical_memory\n , cast(null as {{ type_int() }}) as mobile__system_available_memory\n , cast(null as {{ type_int() }}) as mobile__app_available_memory\n , cast(null as {{ type_int() }}) as mobile__battery_level\n , cast(null as {{ type_string() }}) as mobile__battery_state\n , cast(null as {{ type_boolean() }}) as mobile__low_power_mode\n , cast(null as bigint) as mobile__available_storage\n , cast(null as bigint) as mobile__total_storage\n , cast(null as {{ type_boolean() }}) as mobile__is_portrait\n , cast(null as {{ type_string() }}) as mobile__resolution\n , cast(null as {{ type_float() }}) as mobile__scale\n , cast(null as {{ type_string() }}) as mobile__language\n , cast(null as {{ type_string() }}) as mobile__app_set_id\n , cast(null as {{ type_string() }}) as mobile__app_set_id_scope\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.4968374, "supported_languages": null}, "macro.snowplow_unified.snowflake__get_mobile_context_fields": {"name": "snowflake__get_mobile_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_mobile_context_fields.sql", "original_file_path": "macros/field_extractions/get_mobile_context_fields.sql", "unique_id": "macro.snowplow_unified.snowflake__get_mobile_context_fields", "macro_sql": "{% macro snowflake__get_mobile_context_fields() %}\n {% if var('snowplow__enable_mobile_context', false) %}\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:deviceManufacturer::varchar AS mobile__device_manufacturer\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:deviceModel::varchar AS mobile__device_model\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:osType::varchar AS mobile__os_type\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:osVersion::varchar AS mobile__os_version\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:androidIdfa::varchar AS mobile__android_idfa\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:appleIdfa::varchar AS mobile__apple_idfa\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:appleIdfv::varchar AS mobile__apple_idfv\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:carrier::varchar AS mobile__carrier\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:openIdfa::varchar AS mobile__open_idfa\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:networkTechnology::varchar AS mobile__network_technology\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:networkType::varchar(255) AS mobile__network_type\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:physicalMemory::int AS mobile__physical_memory\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:systemAvailableMemory::int AS mobile__system_available_memory\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:appAvailableMemory::int AS mobile__app_available_memory\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:batteryLevel::int AS mobile__battery_level\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:batteryState::varchar AS mobile__battery_state\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:lowPowerMode::boolean AS mobile__low_power_mode\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:availableStorage::int AS mobile__available_storage\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:totalStorage::int AS mobile__total_storage\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:isPortrait::boolean AS mobile__is_portrait\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:resolution::varchar AS mobile__resolution\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:scale::float AS mobile__scale\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:language::varchar AS mobile__language\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:appSetId::varchar AS mobile__app_set_id\n , contexts_com_snowplowanalytics_snowplow_mobile_context_1[0]:appSetIdScope::varchar AS mobile__app_set_id_scope\n {% else %}\n , cast(null as {{ type_string() }}) as mobile__device_manufacturer\n , cast(null as {{ type_string() }}) as mobile__device_model\n , cast(null as {{ type_string() }}) as mobile__os_type\n , cast(null as {{ type_string() }}) as mobile__os_version\n , cast(null as {{ type_string() }}) as mobile__android_idfa\n , cast(null as {{ type_string() }}) as mobile__apple_idfa\n , cast(null as {{ type_string() }}) as mobile__apple_idfv\n , cast(null as {{ type_string() }}) as mobile__carrier\n , cast(null as {{ type_string() }}) as mobile__open_idfa\n , cast(null as {{ type_string() }}) as mobile__network_technology\n , cast(null as {{ type_string() }}) as mobile__network_type\n , cast(null as {{ type_int() }}) as mobile__physical_memory\n , cast(null as {{ type_int() }}) as mobile__system_available_memory\n , cast(null as {{ type_int() }}) as mobile__app_available_memory\n , cast(null as {{ type_int() }}) as mobile__battery_level\n , cast(null as {{ type_string() }}) as mobile__battery_state\n , cast(null as {{ type_boolean() }}) as mobile__low_power_mode\n , cast(null as {{ type_int() }}) as mobile__available_storage\n , cast(null as {{ type_int() }}) as mobile__total_storage\n , cast(null as {{ type_boolean() }}) as mobile__is_portrait\n , cast(null as {{ type_string() }}) as mobile__resolution\n , cast(null as {{ type_float() }}) as mobile__scale\n , cast(null as {{ type_string() }}) as mobile__language\n , cast(null as {{ type_string() }}) as mobile__app_set_id\n , cast(null as {{ type_string() }}) as mobile__app_set_id_scope\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.49904, "supported_languages": null}, "macro.snowplow_unified.get_app_context_fields": {"name": "get_app_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_app_context_fields.sql", "original_file_path": "macros/field_extractions/get_app_context_fields.sql", "unique_id": "macro.snowplow_unified.get_app_context_fields", "macro_sql": "{% macro get_app_context_fields() %}\n {{ return(adapter.dispatch('get_app_context_fields', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__get_app_context_fields"]}, "description": "This macro is used in the `base_events_this_run` table to extract all the individual fields when the relevant context / sde is enabled, otherwise it returns null values.\n#### Returns\nThe sql to extract the list of fields specified in the context/sde.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6396291, "supported_languages": null}, "macro.snowplow_unified.postgres__get_app_context_fields": {"name": "postgres__get_app_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_app_context_fields.sql", "original_file_path": "macros/field_extractions/get_app_context_fields.sql", "unique_id": "macro.snowplow_unified.postgres__get_app_context_fields", "macro_sql": "{% macro postgres__get_app_context_fields() %}\n {% if var('snowplow__enable_application_context', false) %}\n {% else %}\n , cast(null as {{ snowplow_utils.type_max_string() }}) as app__build\n , cast(null as {{ snowplow_utils.type_max_string() }}) as app__version\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.type_max_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.501632, "supported_languages": null}, "macro.snowplow_unified.bigquery__get_app_context_fields": {"name": "bigquery__get_app_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_app_context_fields.sql", "original_file_path": "macros/field_extractions/get_app_context_fields.sql", "unique_id": "macro.snowplow_unified.bigquery__get_app_context_fields", "macro_sql": "{% macro bigquery__get_app_context_fields() %}\n\n {% set bq_app_context_fields = [\n {'field':('build', 'app__build'), 'dtype':'string'},\n {'field':('version', 'app__version'), 'dtype':'string'}\n ] %}\n\n {% if var('snowplow__enable_application_context', false) %}\n , {{ snowplow_utils.get_optional_fields(\n enabled=var('snowplow__enable_application_context', false),\n col_prefix='contexts_com_snowplowanalytics_mobile_application_1',\n fields=bq_app_context_fields,\n relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),\n relation_alias=none) }}\n {% else %}\n , cast(null as {{ type_string() }}) as app__build\n , cast(null as {{ type_string() }}) as app__version\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5032594, "supported_languages": null}, "macro.snowplow_unified.spark__get_app_context_fields": {"name": "spark__get_app_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_app_context_fields.sql", "original_file_path": "macros/field_extractions/get_app_context_fields.sql", "unique_id": "macro.snowplow_unified.spark__get_app_context_fields", "macro_sql": "{% macro spark__get_app_context_fields() %}\n {% if var('snowplow__enable_application_context', false) %}\n , contexts_com_snowplowanalytics_mobile_application_1[0].build::STRING AS app__build\n , contexts_com_snowplowanalytics_mobile_application_1[0].version::STRING AS app__version\n {% else %}\n , cast(null as {{ type_string() }}) as app__build\n , cast(null as {{ type_string() }}) as app__version\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.503798, "supported_languages": null}, "macro.snowplow_unified.snowflake__get_app_context_fields": {"name": "snowflake__get_app_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_app_context_fields.sql", "original_file_path": "macros/field_extractions/get_app_context_fields.sql", "unique_id": "macro.snowplow_unified.snowflake__get_app_context_fields", "macro_sql": "{% macro snowflake__get_app_context_fields() %}\n {% if var('snowplow__enable_application_context', false) %}\n , contexts_com_snowplowanalytics_mobile_application_1[0]:build::varchar(255) AS app__build\n , contexts_com_snowplowanalytics_mobile_application_1[0]:version::varchar(255) AS app__version\n {% else %}\n , cast(null as {{ type_string() }}) as app__build\n , cast(null as {{ type_string() }}) as app__version\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.504326, "supported_languages": null}, "macro.snowplow_unified.get_cmp_visible_event_fields": {"name": "get_cmp_visible_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_cmp_visible_event_fields.sql", "original_file_path": "macros/field_extractions/get_cmp_visible_event_fields.sql", "unique_id": "macro.snowplow_unified.get_cmp_visible_event_fields", "macro_sql": "{% macro get_cmp_visible_event_fields() %}\n {{ return(adapter.dispatch('get_cmp_visible_event_fields', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__get_cmp_visible_event_fields"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5059168, "supported_languages": null}, "macro.snowplow_unified.postgres__get_cmp_visible_event_fields": {"name": "postgres__get_cmp_visible_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_cmp_visible_event_fields.sql", "original_file_path": "macros/field_extractions/get_cmp_visible_event_fields.sql", "unique_id": "macro.snowplow_unified.postgres__get_cmp_visible_event_fields", "macro_sql": "{% macro postgres__get_cmp_visible_event_fields() %}\n {% if var('snowplow__enable_consent', false) %}\n {% else %}\n , cast(null as {{ type_float() }}) as cmp__elapsed_time\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5063853, "supported_languages": null}, "macro.snowplow_unified.bigquery__get_cmp_visible_event_fields": {"name": "bigquery__get_cmp_visible_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_cmp_visible_event_fields.sql", "original_file_path": "macros/field_extractions/get_cmp_visible_event_fields.sql", "unique_id": "macro.snowplow_unified.bigquery__get_cmp_visible_event_fields", "macro_sql": "{% macro bigquery__get_cmp_visible_event_fields() %}\n\n {% set bq_cmp_visible_fields = [\n {'field':('elapsed_time', 'cmp__elapsed_time'), 'dtype':'float'}\n ] %}\n\n {% if var('snowplow__enable_consent', false) %}\n , {{ snowplow_utils.get_optional_fields(\n enabled=var('snowplow__enable_consent', false),\n col_prefix='unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1',\n fields=bq_cmp_visible_fields,\n relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),\n relation_alias=none) }}\n {% else %}\n , cast(null as {{ type_float() }}) as cmp__elapsed_time\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5077384, "supported_languages": null}, "macro.snowplow_unified.spark__get_cmp_visible_event_fields": {"name": "spark__get_cmp_visible_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_cmp_visible_event_fields.sql", "original_file_path": "macros/field_extractions/get_cmp_visible_event_fields.sql", "unique_id": "macro.snowplow_unified.spark__get_cmp_visible_event_fields", "macro_sql": "{% macro spark__get_cmp_visible_event_fields() %}\n {% if var('snowplow__enable_consent', false) %}\n , unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1.elapsed_time::float as cmp__elapsed_time\n\n {% else %}\n , cast(null as {{ type_float() }}) as cmp__elapsed_time\n\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5081973, "supported_languages": null}, "macro.snowplow_unified.snowflake__get_cmp_visible_event_fields": {"name": "snowflake__get_cmp_visible_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_cmp_visible_event_fields.sql", "original_file_path": "macros/field_extractions/get_cmp_visible_event_fields.sql", "unique_id": "macro.snowplow_unified.snowflake__get_cmp_visible_event_fields", "macro_sql": "{% macro snowflake__get_cmp_visible_event_fields() %}\n {% if var('snowplow__enable_consent', false) %}\n , unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1:elapsedTime::float as cmp__elapsed_time\n {% else %}\n , cast(null as {{ type_float() }}) as cmp__elapsed_time\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5086474, "supported_languages": null}, "macro.snowplow_unified.get_consent_event_fields": {"name": "get_consent_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_consent_event_fields.sql", "original_file_path": "macros/field_extractions/get_consent_event_fields.sql", "unique_id": "macro.snowplow_unified.get_consent_event_fields", "macro_sql": "{% macro get_consent_event_fields() %}\n {{ return(adapter.dispatch('get_consent_event_fields', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__get_consent_event_fields"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.513762, "supported_languages": null}, "macro.snowplow_unified.postgres__get_consent_event_fields": {"name": "postgres__get_consent_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_consent_event_fields.sql", "original_file_path": "macros/field_extractions/get_consent_event_fields.sql", "unique_id": "macro.snowplow_unified.postgres__get_consent_event_fields", "macro_sql": "{% macro postgres__get_consent_event_fields() %}\n {% if var('snowplow__enable_consent', false) %}\n {% else %}\n , cast(null as {{ snowplow_utils.type_max_string() }}) as consent__event_type\n , cast(null as {{ snowplow_utils.type_max_string() }}) as consent__basis_for_processing\n , cast(null as {{ snowplow_utils.type_max_string() }}) as consent__consent_url\n , cast(null as {{ snowplow_utils.type_max_string() }}) as consent__consent_version\n , cast(null as {{ snowplow_utils.type_max_string() }}) as consent__consent_scopes\n , cast(null as {{ snowplow_utils.type_max_string() }}) as consent__domains_applied\n , cast(null as {{ type_boolean() }}) as consent__gdpr_applies\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.type_max_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5147297, "supported_languages": null}, "macro.snowplow_unified.bigquery__get_consent_event_fields": {"name": "bigquery__get_consent_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_consent_event_fields.sql", "original_file_path": "macros/field_extractions/get_consent_event_fields.sql", "unique_id": "macro.snowplow_unified.bigquery__get_consent_event_fields", "macro_sql": "{% macro bigquery__get_consent_event_fields() %}\n\n {% set bq_consent_fields = [\n {'field':('event_type','consent__event_type'), 'dtype': 'string'},\n {'field':('basis_for_processing','consent__basis_for_processing'), 'dtype': 'string'},\n {'field':('consent_url','consent__consent_url'), 'dtype': 'string'},\n {'field':('consent_version','consent__consent_version'), 'dtype': 'string'},\n {'field':('consent_scopes','consent__consent_scopes'), 'dtype': 'string'},\n {'field':('domains_applied','consent__domains_applied'), 'dtype': 'string'},\n {'field':('gdpr_applies','consent__gdpr_applies'), 'dtype': 'string'}\n ] %}\n\n {% if var('snowplow__enable_consent', false) %}\n , {{ snowplow_utils.get_optional_fields(\n enabled=var('snowplow__enable_consent', false),\n col_prefix='unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1',\n fields=bq_consent_fields,\n relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),\n relation_alias=none) }}\n {% else %}\n , cast(null as {{ type_string() }}) as consent__event_type\n , cast(null as {{ type_string() }}) as consent__basis_for_processing\n , cast(null as {{ type_string() }}) as consent__consent_url\n , cast(null as {{ type_string() }}) as consent__consent_version\n , cast(null as array) as consent__consent_scopes\n , cast(null as array) as consent__domains_applied\n , cast(null as {{ type_boolean() }}) as consent__gdpr_applies\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.517581, "supported_languages": null}, "macro.snowplow_unified.spark__get_consent_event_fields": {"name": "spark__get_consent_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_consent_event_fields.sql", "original_file_path": "macros/field_extractions/get_consent_event_fields.sql", "unique_id": "macro.snowplow_unified.spark__get_consent_event_fields", "macro_sql": "{% macro spark__get_consent_event_fields() %}\n {% if var('snowplow__enable_consent', false) %}\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1.event_type::STRING as consent__event_type\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1.basis_for_processing::STRING as consent__basis_for_processing\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1.consent_url::STRING as consent__consent_url\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1.consent_version::STRING as consent__consent_version\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1.consent_scopes::ARRAY as consent__consent_scopes\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1.domains_applied::ARRAY as consent__domains_applied\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1.gdpr_applies::boolean as consent__gdpr_applies\n {% else %}\n , cast(null as {{ type_string() }}) as consent__event_type\n , cast(null as {{ type_string() }}) as consent__basis_for_processing\n , cast(null as {{ type_string() }}) as consent__consent_url\n , cast(null as {{ type_string() }}) as consent__consent_version\n , cast(null as ARRAY) as consent__consent_scopes\n , cast(null as ARRAY) as consent__domains_applied\n , cast(null as {{ type_boolean() }}) as consent__gdpr_applies\n\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5184088, "supported_languages": null}, "macro.snowplow_unified.snowflake__get_consent_event_fields": {"name": "snowflake__get_consent_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_consent_event_fields.sql", "original_file_path": "macros/field_extractions/get_consent_event_fields.sql", "unique_id": "macro.snowplow_unified.snowflake__get_consent_event_fields", "macro_sql": "{% macro snowflake__get_consent_event_fields() %}\n {% if var('snowplow__enable_consent', false) %}\n\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1:eventType::varchar as consent__event_type\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1:basisForProcessing::varchar as consent__basis_for_processing\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1:consentUrl::varchar as consent__consent_url\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1:consentVersion::varchar as consent__consent_version\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1:consentScopes::array as consent__consent_scopes\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1:domainsApplied::array as consent__domains_applied\n , unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1:gdprApplies::boolean as consent__gdpr_applies\n\n {% else %}\n , cast(null as {{ type_string() }}) as consent__event_type\n , cast(null as {{ type_string() }}) as consent__basis_for_processing\n , cast(null as {{ type_string() }}) as consent__consent_url\n , cast(null as {{ type_string() }}) as consent__consent_version\n , cast(null as array) as consent__consent_scopes\n , cast(null as array) as consent__domains_applied\n , cast(null as {{ type_boolean() }}) as consent__gdpr_applies\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5191953, "supported_languages": null}, "macro.snowplow_unified.get_geo_context_fields": {"name": "get_geo_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_geo_context_fields.sql", "original_file_path": "macros/field_extractions/get_geo_context_fields.sql", "unique_id": "macro.snowplow_unified.get_geo_context_fields", "macro_sql": "{% macro get_geo_context_fields() %}\n {{ return(adapter.dispatch('get_geo_context_fields', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__get_geo_context_fields"]}, "description": "This macro is used in the `base_events_this_run` table to extract all the individual fields when the relevant context / sde is enabled, otherwise it returns null values.\n#### Returns\nThe sql to extract the list of fields specified in the context/sde.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6413383, "supported_languages": null}, "macro.snowplow_unified.postgres__get_geo_context_fields": {"name": "postgres__get_geo_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_geo_context_fields.sql", "original_file_path": "macros/field_extractions/get_geo_context_fields.sql", "unique_id": "macro.snowplow_unified.postgres__get_geo_context_fields", "macro_sql": "{% macro postgres__get_geo_context_fields() %}\n {% if var('snowplow__enable_geolocation_context', false) %}\n {% else %}\n , cast(null as {{ type_float() }}) as geo__latitude\n , cast(null as {{ type_float() }}) as geo__longitude\n , cast(null as {{ type_float() }}) as geo__latitude_longitude_accuracy\n , cast(null as {{ type_float() }}) as geo__altitude\n , cast(null as {{ type_float() }}) as geo__altitude_accuracy\n , cast(null as {{ type_float() }}) as geo__bearing\n , cast(null as {{ type_float() }}) as geo__speed\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5245504, "supported_languages": null}, "macro.snowplow_unified.bigquery__get_geo_context_fields": {"name": "bigquery__get_geo_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_geo_context_fields.sql", "original_file_path": "macros/field_extractions/get_geo_context_fields.sql", "unique_id": "macro.snowplow_unified.bigquery__get_geo_context_fields", "macro_sql": "{% macro bigquery__get_geo_context_fields() %}\n\n {% set bq_geo_context_fields = [\n {'field':('latitude', 'geo__latitude'), 'dtype':'float64'},\n {'field':('longitude', 'geo__longitude'), 'dtype':'float64'},\n {'field':('latitude_longitude_accuracy', 'geo__latitude_longitude_accuracy'), 'dtype':'float64'},\n {'field':('altitude', 'geo__altitude'), 'dtype':'float64'},\n {'field':('altitude_accuracy', 'geo__altitude_accuracy'), 'dtype':'float64'},\n {'field':('bearing', 'geo__bearing'), 'dtype':'float64'},\n {'field':('speed', 'geo__speed'), 'dtype':'float64'}\n ] %}\n\n {% if var('snowplow__enable_geolocation_context', false) %}\n ,{{ snowplow_utils.get_optional_fields(\n enabled=var('snowplow__enable_geolocation_context', false),\n col_prefix='contexts_com_snowplowanalytics_snowplow_geolocation_context_1',\n fields=bq_geo_context_fields,\n relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),\n relation_alias=none) }}\n {% else %}\n , cast(null as {{ type_float() }}) as geo__latitude\n , cast(null as {{ type_float() }}) as geo__longitude\n , cast(null as {{ type_float() }}) as geo__latitude_longitude_accuracy\n , cast(null as {{ type_float() }}) as geo__altitude\n , cast(null as {{ type_float() }}) as geo__altitude_accuracy\n , cast(null as {{ type_float() }}) as geo__bearing\n , cast(null as {{ type_float() }}) as geo__speed\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.527436, "supported_languages": null}, "macro.snowplow_unified.spark__get_geo_context_fields": {"name": "spark__get_geo_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_geo_context_fields.sql", "original_file_path": "macros/field_extractions/get_geo_context_fields.sql", "unique_id": "macro.snowplow_unified.spark__get_geo_context_fields", "macro_sql": "{% macro spark__get_geo_context_fields() %}\n {% if var('snowplow__enable_geolocation_context', false) %}\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0].latitude::double AS geo__latitude\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0].longitude::double AS geo__longitude\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0].latitude_longitude_accuracy::double AS geo__latitude_longitude_accuracy\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0].altitude::double AS geo__altitude\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0].altitude_accuracy::double AS geo__altitude_accuracy\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0].bearing::double AS geo__bearing\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0].speed::double AS geo__speed\n {% else %}\n , cast(null as double) as geo__latitude\n , cast(null as double) as geo__longitude\n , cast(null as double) as geo__latitude_longitude_accuracy\n , cast(null as double) as geo__altitude\n , cast(null as double) as geo__altitude_accuracy\n , cast(null as double) as geo__bearing\n , cast(null as double) as geo__speed\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.527929, "supported_languages": null}, "macro.snowplow_unified.snowflake__get_geo_context_fields": {"name": "snowflake__get_geo_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_geo_context_fields.sql", "original_file_path": "macros/field_extractions/get_geo_context_fields.sql", "unique_id": "macro.snowplow_unified.snowflake__get_geo_context_fields", "macro_sql": "{% macro snowflake__get_geo_context_fields() %}\n {% if var('snowplow__enable_geolocation_context', false) %}\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:latitude::float AS geo__latitude\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:longitude::float AS geo__longitude\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:latitudeLongitudeAccuracy::float AS geo__latitude_longitude_accuracy\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:altitude::float AS geo__altitude\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:altitudeAccuracy::float AS geo__altitude_accuracy\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:bearing::float AS geo__bearing\n , contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0]:speed::float AS geo__speed\n {% else %}\n , cast(null as {{ type_float() }}) as geo__latitude\n , cast(null as {{ type_float() }}) as geo__longitude\n , cast(null as {{ type_float() }}) as geo__latitude_longitude_accuracy\n , cast(null as {{ type_float() }}) as geo__altitude\n , cast(null as {{ type_float() }}) as geo__altitude_accuracy\n , cast(null as {{ type_float() }}) as geo__bearing\n , cast(null as {{ type_float() }}) as geo__speed\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5288126, "supported_languages": null}, "macro.snowplow_unified.get_yauaa_context_fields": {"name": "get_yauaa_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_yauaa_context_fields.sql", "original_file_path": "macros/field_extractions/get_yauaa_context_fields.sql", "unique_id": "macro.snowplow_unified.get_yauaa_context_fields", "macro_sql": "{% macro get_yauaa_context_fields() %}\n {{ return(adapter.dispatch('get_yauaa_context_fields', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__get_yauaa_context_fields"]}, "description": "This macro is used in the `base_events_this_run` table to extract all the individual fields when the relevant context / sde is enabled, otherwise it returns null values.\n#### Returns\nThe sql to extract the list of fields specified in the context/sde.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6448126, "supported_languages": null}, "macro.snowplow_unified.postgres__get_yauaa_context_fields": {"name": "postgres__get_yauaa_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_yauaa_context_fields.sql", "original_file_path": "macros/field_extractions/get_yauaa_context_fields.sql", "unique_id": "macro.snowplow_unified.postgres__get_yauaa_context_fields", "macro_sql": "{% macro postgres__get_yauaa_context_fields() %}\n {%- if var('snowplow__enable_yauaa', false) -%}\n {%- else -%}\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__device_class\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__agent_class\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__agent_name\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__agent_name_version\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__agent_name_version_major\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__agent_version\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__agent_version_major\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__device_brand\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__device_name\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__device_version\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__layout_engine_class\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__layout_engine_name\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__layout_engine_name_version\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__layout_engine_name_version_major\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__layout_engine_version\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__layout_engine_version_major\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__operating_system_class\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__operating_system_name\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__operating_system_name_version\n , cast(null as {{ snowplow_utils.type_max_string() }}) as yauaa__operating_system_version\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.type_max_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5534415, "supported_languages": null}, "macro.snowplow_unified.bigquery__get_yauaa_context_fields": {"name": "bigquery__get_yauaa_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_yauaa_context_fields.sql", "original_file_path": "macros/field_extractions/get_yauaa_context_fields.sql", "unique_id": "macro.snowplow_unified.bigquery__get_yauaa_context_fields", "macro_sql": "{% macro bigquery__get_yauaa_context_fields() %}\n\n {% set bq_yauaa_fields = [\n {'field':('device_class', 'yauaa__device_class'), 'dtype': 'string'},\n {'field':('agent_class', 'yauaa__agent_class'), 'dtype': 'string'},\n {'field':('agent_name', 'yauaa__agent_name'), 'dtype': 'string'},\n {'field':('agent_name_version', 'yauaa__agent_name_version'), 'dtype': 'string'},\n {'field':('agent_name_version_major', 'yauaa__agent_name_version_major'), 'dtype': 'string'},\n {'field':('agent_version', 'yauaa__agent_version'), 'dtype': 'string'},\n {'field':('agent_version_major', 'yauaa__agent_version_major'), 'dtype': 'string'},\n {'field':('device_brand', 'yauaa__device_brand'), 'dtype': 'string'},\n {'field':('device_name', 'yauaa__device_name'), 'dtype': 'string'},\n {'field':('device_version', 'yauaa__device_version'), 'dtype': 'string'},\n {'field':('layout_engine_class', 'yauaa__layout_engine_class'), 'dtype': 'string'},\n {'field':('layout_engine_name', 'yauaa__layout_engine_name'), 'dtype': 'string'},\n {'field':('layout_engine_name_version', 'yauaa__layout_engine_name_version'), 'dtype': 'string'},\n {'field':('layout_engine_name_version_major', 'yauaa__layout_engine_name_version_major'), 'dtype': 'string'},\n {'field':('layout_engine_version', 'yauaa__layout_engine_version'), 'dtype': 'string'},\n {'field':('layout_engine_version_major', 'yauaa__layout_engine_version_major'), 'dtype': 'string'},\n {'field':('operating_system_class', 'yauaa__operating_system_class'), 'dtype': 'string'},\n {'field':('operating_system_name', 'yauaa__operating_system_name'), 'dtype': 'string'},\n {'field':('operating_system_name_version', 'yauaa__operating_system_name_version'), 'dtype': 'string'},\n {'field':('operating_system_version', 'yauaa__operating_system_version'), 'dtype': 'string'}\n ] %}\n\n {%- if var('snowplow__enable_yauaa', false) -%}\n ,{{ snowplow_utils.get_optional_fields(\n enabled=var('snowplow__enable_yauaa', false),\n fields=bq_yauaa_fields,\n col_prefix='contexts_nl_basjes_yauaa_context_1',\n relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),\n relation_alias=none) }}\n {%- else -%}\n , cast(null as {{ type_string() }}) as yauaa__device_class\n , cast(null as {{ type_string() }}) as yauaa__agent_class\n , cast(null as {{ type_string() }}) as yauaa__agent_name\n , cast(null as {{ type_string() }}) as yauaa__agent_name_version\n , cast(null as {{ type_string() }}) as yauaa__agent_name_version_major\n , cast(null as {{ type_string() }}) as yauaa__agent_version\n , cast(null as {{ type_string() }}) as yauaa__agent_version_major\n , cast(null as {{ type_string() }}) as yauaa__device_brand\n , cast(null as {{ type_string() }}) as yauaa__device_name\n , cast(null as {{ type_string() }}) as yauaa__device_version\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_class\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_name\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_name_version\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_name_version_major\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_version\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_version_major\n , cast(null as {{ type_string() }}) as yauaa__operating_system_class\n , cast(null as {{ type_string() }}) as yauaa__operating_system_name\n , cast(null as {{ type_string() }}) as yauaa__operating_system_name_version\n , cast(null as {{ type_string() }}) as yauaa__operating_system_version\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5595574, "supported_languages": null}, "macro.snowplow_unified.spark__get_yauaa_context_fields": {"name": "spark__get_yauaa_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_yauaa_context_fields.sql", "original_file_path": "macros/field_extractions/get_yauaa_context_fields.sql", "unique_id": "macro.snowplow_unified.spark__get_yauaa_context_fields", "macro_sql": "{% macro spark__get_yauaa_context_fields() %}\n {%- if var('snowplow__enable_yauaa', false) -%}\n , contexts_nl_basjes_yauaa_context_1[0].device_class::STRING as yauaa__device_class\n , contexts_nl_basjes_yauaa_context_1[0].agent_class::STRING as yauaa__agent_class\n , contexts_nl_basjes_yauaa_context_1[0].agent_name::STRING as yauaa__agent_name\n , contexts_nl_basjes_yauaa_context_1[0].agent_name_version::STRING as yauaa__agent_name_version\n , contexts_nl_basjes_yauaa_context_1[0].agent_name_version_major::STRING as yauaa__agent_name_version_major\n , contexts_nl_basjes_yauaa_context_1[0].agent_version::STRING as yauaa__agent_version\n , contexts_nl_basjes_yauaa_context_1[0].agent_version_major::STRING as yauaa__agent_version_major\n , contexts_nl_basjes_yauaa_context_1[0].device_brand::STRING as yauaa__device_brand\n , contexts_nl_basjes_yauaa_context_1[0].device_name::STRING as yauaa__device_name\n , contexts_nl_basjes_yauaa_context_1[0].device_version::STRING as yauaa__device_version\n , contexts_nl_basjes_yauaa_context_1[0].layout_engine_class::STRING as yauaa__layout_engine_class\n , contexts_nl_basjes_yauaa_context_1[0].layout_engine_name::STRING as yauaa__layout_engine_name\n , contexts_nl_basjes_yauaa_context_1[0].layout_engine_name_version::STRING as yauaa__layout_engine_name_version\n , contexts_nl_basjes_yauaa_context_1[0].layout_engine_name_version_major::STRING as yauaa__layout_engine_name_version_major\n , contexts_nl_basjes_yauaa_context_1[0].layout_engine_version::STRING as yauaa__layout_engine_version\n , contexts_nl_basjes_yauaa_context_1[0].layout_engine_version_major::STRING as yauaa__layout_engine_version_major\n , contexts_nl_basjes_yauaa_context_1[0].operating_system_class::STRING as yauaa__operating_system_class\n , contexts_nl_basjes_yauaa_context_1[0].operating_system_name::STRING as yauaa__operating_system_name\n , contexts_nl_basjes_yauaa_context_1[0].operating_system_name_version::STRING as yauaa__operating_system_name_version\n , contexts_nl_basjes_yauaa_context_1[0].operating_system_version::STRING as yauaa__operating_system_version\n {%- else -%}\n , cast(null as {{ type_string() }}) as yauaa__device_class\n , cast(null as {{ type_string() }}) as yauaa__agent_class\n , cast(null as {{ type_string() }}) as yauaa__agent_name\n , cast(null as {{ type_string() }}) as yauaa__agent_name_version\n , cast(null as {{ type_string() }}) as yauaa__agent_name_version_major\n , cast(null as {{ type_string() }}) as yauaa__agent_version\n , cast(null as {{ type_string() }}) as yauaa__agent_version_major\n , cast(null as {{ type_string() }}) as yauaa__device_brand\n , cast(null as {{ type_string() }}) as yauaa__device_name\n , cast(null as {{ type_string() }}) as yauaa__device_version\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_class\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_name\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_name_version\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_name_version_major\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_version\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_version_major\n , cast(null as {{ type_string() }}) as yauaa__operating_system_class\n , cast(null as {{ type_string() }}) as yauaa__operating_system_name\n , cast(null as {{ type_string() }}) as yauaa__operating_system_name_version\n , cast(null as {{ type_string() }}) as yauaa__operating_system_version\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5613823, "supported_languages": null}, "macro.snowplow_unified.snowflake__get_yauaa_context_fields": {"name": "snowflake__get_yauaa_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_yauaa_context_fields.sql", "original_file_path": "macros/field_extractions/get_yauaa_context_fields.sql", "unique_id": "macro.snowplow_unified.snowflake__get_yauaa_context_fields", "macro_sql": "{% macro snowflake__get_yauaa_context_fields() %}\n{%- if var('snowplow__enable_yauaa', false) -%}\n , contexts_nl_basjes_yauaa_context_1[0]:deviceClass::VARCHAR as yauaa__device_class\n , contexts_nl_basjes_yauaa_context_1[0]:agentClass::VARCHAR as yauaa__agent_class\n , contexts_nl_basjes_yauaa_context_1[0]:agentName::VARCHAR as yauaa__agent_name\n , contexts_nl_basjes_yauaa_context_1[0]:agentNameVersion::VARCHAR as yauaa__agent_name_version\n , contexts_nl_basjes_yauaa_context_1[0]:agentNameVersionMajor::VARCHAR as yauaa__agent_name_version_major\n , contexts_nl_basjes_yauaa_context_1[0]:agentVersion::VARCHAR as yauaa__agent_version\n , contexts_nl_basjes_yauaa_context_1[0]:agentVersionMajor::VARCHAR as yauaa__agent_version_major\n , contexts_nl_basjes_yauaa_context_1[0]:deviceBrand::VARCHAR as yauaa__device_brand\n , contexts_nl_basjes_yauaa_context_1[0]:deviceName::VARCHAR as yauaa__device_name\n , contexts_nl_basjes_yauaa_context_1[0]:deviceVersion::VARCHAR as yauaa__device_version\n , contexts_nl_basjes_yauaa_context_1[0]:layoutEngineClass::VARCHAR as yauaa__layout_engine_class\n , contexts_nl_basjes_yauaa_context_1[0]:layoutEngineName::VARCHAR as yauaa__layout_engine_name\n , contexts_nl_basjes_yauaa_context_1[0]:layoutEngineNameVersion::VARCHAR as yauaa__layout_engine_name_version\n , contexts_nl_basjes_yauaa_context_1[0]:layoutEngineNameVersionMajor::VARCHAR as yauaa__layout_engine_name_version_major\n , contexts_nl_basjes_yauaa_context_1[0]:layoutEngineVersion::VARCHAR as yauaa__layout_engine_version\n , contexts_nl_basjes_yauaa_context_1[0]:layoutEngineVersionMajor::VARCHAR as yauaa__layout_engine_version_major\n , contexts_nl_basjes_yauaa_context_1[0]:operatingSystemClass::VARCHAR as yauaa__operating_system_class\n , contexts_nl_basjes_yauaa_context_1[0]:operatingSystemName::VARCHAR as yauaa__operating_system_name\n , contexts_nl_basjes_yauaa_context_1[0]:operatingSystemNameVersion::VARCHAR as yauaa__operating_system_name_version\n , contexts_nl_basjes_yauaa_context_1[0]:operatingSystemVersion::VARCHAR as yauaa__operating_system_version\n{%- else -%}\n , cast(null as {{ type_string() }}) as yauaa__device_class\n , cast(null as {{ type_string() }}) as yauaa__agent_class\n , cast(null as {{ type_string() }}) as yauaa__agent_name\n , cast(null as {{ type_string() }}) as yauaa__agent_name_version\n , cast(null as {{ type_string() }}) as yauaa__agent_name_version_major\n , cast(null as {{ type_string() }}) as yauaa__agent_version\n , cast(null as {{ type_string() }}) as yauaa__agent_version_major\n , cast(null as {{ type_string() }}) as yauaa__device_brand\n , cast(null as {{ type_string() }}) as yauaa__device_name\n , cast(null as {{ type_string() }}) as yauaa__device_version\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_class\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_name\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_name_version\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_name_version_major\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_version\n , cast(null as {{ type_string() }}) as yauaa__layout_engine_version_major\n , cast(null as {{ type_string() }}) as yauaa__operating_system_class\n , cast(null as {{ type_string() }}) as yauaa__operating_system_name\n , cast(null as {{ type_string() }}) as yauaa__operating_system_name_version\n , cast(null as {{ type_string() }}) as yauaa__operating_system_version\n{%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5632558, "supported_languages": null}, "macro.snowplow_unified.get_conversion_fields": {"name": "get_conversion_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_conversion_fields.sql", "original_file_path": "macros/field_extractions/get_conversion_fields.sql", "unique_id": "macro.snowplow_unified.get_conversion_fields", "macro_sql": "{% macro get_conversion_fields(conv_def = []) %}\n {{ return(adapter.dispatch('get_conversion_fields', 'snowplow_unified')(conv_def)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_unified.default__get_conversion_fields"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5645332, "supported_languages": null}, "macro.snowplow_unified.default__get_conversion_fields": {"name": "default__get_conversion_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_conversion_fields.sql", "original_file_path": "macros/field_extractions/get_conversion_fields.sql", "unique_id": "macro.snowplow_unified.default__get_conversion_fields", "macro_sql": "{% macro default__get_conversion_fields(conv_def) %}\n\n select\n \n event_id,\n session_identifier,\n user_identifier,\n user_id,\n \n {% if var('snowplow__conversion_stitching') %}\n -- updated with mapping as part of post hook on derived conversions table\n cast(user_identifier as {{ snowplow_utils.type_max_string() }}) as stitched_user_id,\n {% endif %}\n \n {%- if conv_def.get('value', none) %}\n coalesce({{ conv_def['value'] }},{{ conv_def.get('default_value', 0) }}) as cv_value,\n {% else %}\n 0 as cv_value,\n {% endif %}\n \n derived_tstamp as cv_tstamp,\n dvce_created_tstamp,\n '{{ conv_def['name'] }}' as cv_type\n \n {%- if var('snowplow__conversion_passthroughs', []) -%}\n {%- for identifier in var('snowplow__conversion_passthroughs', []) %}\n {# Check if it is a simple column or a sql+alias #}\n {%- if identifier is mapping -%}\n ,{{identifier['sql']}} as {{identifier['alias']}}\n {%- else -%}\n ,ev.{{identifier}}\n {%- endif -%}\n {% endfor -%}\n {%- endif %}\n \n from {{ ref('snowplow_unified_events_this_run') }} as ev\n \n where {{ conv_def['condition'] }}\n \n {% if var(\"snowplow__ua_bot_filter\", true) %}\n {{ filter_bots() }}\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.type_max_string", "macro.snowplow_unified.filter_bots"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5666084, "supported_languages": null}, "macro.snowplow_unified.get_screen_view_event_fields": {"name": "get_screen_view_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_screen_view_event_fields.sql", "original_file_path": "macros/field_extractions/get_screen_view_event_fields.sql", "unique_id": "macro.snowplow_unified.get_screen_view_event_fields", "macro_sql": "{% macro get_screen_view_event_fields() %}\n {{ return(adapter.dispatch('get_screen_view_event_fields', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__get_screen_view_event_fields"]}, "description": "This macro is used in the `base_events_this_run` table to extract all the individual fields when the relevant context / sde is enabled, otherwise it returns null values.\n#### Returns\nThe sql to extract the list of fields specified in the context/sde.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6426427, "supported_languages": null}, "macro.snowplow_unified.postgres__get_screen_view_event_fields": {"name": "postgres__get_screen_view_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_screen_view_event_fields.sql", "original_file_path": "macros/field_extractions/get_screen_view_event_fields.sql", "unique_id": "macro.snowplow_unified.postgres__get_screen_view_event_fields", "macro_sql": "{% macro postgres__get_screen_view_event_fields() %}\n {% if var('snowplow__enable_mobile', false) %}\n {% else %}\n , cast(null as {{ snowplow_utils.type_max_string() }}) as screen_view__id\n , cast(null as {{ snowplow_utils.type_max_string() }}) as screen_view__name\n , cast(null as {{ snowplow_utils.type_max_string() }}) as screen_view__previous_id\n , cast(null as {{ snowplow_utils.type_max_string() }}) as screen_view__previous_name\n , cast(null as {{ snowplow_utils.type_max_string() }}) as screen_view__previous_type\n , cast(null as {{ snowplow_utils.type_max_string() }}) as screen_view__transition_type\n , cast(null as {{ snowplow_utils.type_max_string() }}) as screen_view__type\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.type_max_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5732024, "supported_languages": null}, "macro.snowplow_unified.bigquery__get_screen_view_event_fields": {"name": "bigquery__get_screen_view_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_screen_view_event_fields.sql", "original_file_path": "macros/field_extractions/get_screen_view_event_fields.sql", "unique_id": "macro.snowplow_unified.bigquery__get_screen_view_event_fields", "macro_sql": "{% macro bigquery__get_screen_view_event_fields() %}\n\n {% set bq_screen_view_event_fields = [\n {'field':('id', 'screen_view__id'), 'dtype':'string'},\n {'field':('name', 'screen_view__name'), 'dtype':'string'},\n {'field':('previous_id', 'screen_view__previous_id'), 'dtype':'string'},\n {'field':('previous_name', 'screen_view__previous_name'), 'dtype':'string'},\n {'field':('previous_type', 'screen_view__previous_type'), 'dtype':'string'},\n {'field':('transition_type', 'screen_view__transition_type'), 'dtype':'string'},\n {'field':('type', 'screen_view__type'), 'dtype':'string'}\n ] %}\n\n {% if var('snowplow__enable_mobile', false) %}\n ,{{ snowplow_utils.get_optional_fields(\n enabled=true,\n col_prefix='unstruct_event_com_snowplowanalytics_mobile_screen_view_1',\n fields=bq_screen_view_event_fields,\n relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),\n relation_alias=none) }}\n {% else %}\n , cast(null as {{ type_string() }}) as screen_view__id\n , cast(null as {{ type_string() }}) as screen_view__name\n , cast(null as {{ type_string() }}) as screen_view__previous_id\n , cast(null as {{ type_string() }}) as screen_view__previous_name\n , cast(null as {{ type_string() }}) as screen_view__previous_type\n , cast(null as {{ type_string() }}) as screen_view__transition_type\n , cast(null as {{ type_string() }}) as screen_view__type\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5760171, "supported_languages": null}, "macro.snowplow_unified.spark__get_screen_view_event_fields": {"name": "spark__get_screen_view_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_screen_view_event_fields.sql", "original_file_path": "macros/field_extractions/get_screen_view_event_fields.sql", "unique_id": "macro.snowplow_unified.spark__get_screen_view_event_fields", "macro_sql": "{% macro spark__get_screen_view_event_fields() %}\n {% if var('snowplow__enable_mobile', false) %}\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1.id::STRING AS screen_view__id\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1.name::STRING AS screen_view__name\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1.previous_id::STRING AS screen_view__previous_id\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1.previous_name::STRING AS screen_view__previous_name\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1.previous_type::STRING AS screen_view__previous_type\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1.transition_type::STRING AS screen_view__transition_type\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1.type::STRING AS screen_view__type\n {% else %}\n , cast(null as {{ type_string() }}) as screen_view__id\n , cast(null as {{ type_string() }}) as screen_view__name\n , cast(null as {{ type_string() }}) as screen_view__previous_id\n , cast(null as {{ type_string() }}) as screen_view__previous_name\n , cast(null as {{ type_string() }}) as screen_view__previous_type\n , cast(null as {{ type_string() }}) as screen_view__transition_type\n , cast(null as {{ type_string() }}) as screen_view__type\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.576941, "supported_languages": null}, "macro.snowplow_unified.snowflake__get_screen_view_event_fields": {"name": "snowflake__get_screen_view_event_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_screen_view_event_fields.sql", "original_file_path": "macros/field_extractions/get_screen_view_event_fields.sql", "unique_id": "macro.snowplow_unified.snowflake__get_screen_view_event_fields", "macro_sql": "{% macro snowflake__get_screen_view_event_fields() %}\n {% if var('snowplow__enable_mobile', false) %}\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1:id::varchar(36) AS screen_view__id\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1:name::varchar AS screen_view__name\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1:previousId::varchar(36) AS screen_view__previous_id\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1:previousName::varchar AS screen_view__previous_name\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1:previousType::varchar AS screen_view__previous_type\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1:transitionType::varchar AS screen_view__transition_type\n , unstruct_event_com_snowplowanalytics_mobile_screen_view_1:type::varchar AS screen_view__type\n {% else %}\n , cast(null as {{ type_string() }}) as screen_view__id\n , cast(null as {{ type_string() }}) as screen_view__name\n , cast(null as {{ type_string() }}) as screen_view__previous_id\n , cast(null as {{ type_string() }}) as screen_view__previous_name\n , cast(null as {{ type_string() }}) as screen_view__previous_type\n , cast(null as {{ type_string() }}) as screen_view__transition_type\n , cast(null as {{ type_string() }}) as screen_view__type\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5778346, "supported_languages": null}, "macro.snowplow_unified.get_iab_context_fields": {"name": "get_iab_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_iab_context_fields.sql", "original_file_path": "macros/field_extractions/get_iab_context_fields.sql", "unique_id": "macro.snowplow_unified.get_iab_context_fields", "macro_sql": "{% macro get_iab_context_fields() %}\n {{ return(adapter.dispatch('get_iab_context_fields', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__get_iab_context_fields"]}, "description": "This macro is used in the `base_events_this_run` table to extract all the individual fields when the relevant context / sde is enabled, otherwise it returns null values.\n#### Returns\nThe sql to extract the list of fields specified in the context/sde.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.64395, "supported_languages": null}, "macro.snowplow_unified.postgres__get_iab_context_fields": {"name": "postgres__get_iab_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_iab_context_fields.sql", "original_file_path": "macros/field_extractions/get_iab_context_fields.sql", "unique_id": "macro.snowplow_unified.postgres__get_iab_context_fields", "macro_sql": "{% macro postgres__get_iab_context_fields() %}\n {%- if var('snowplow__enable_iab', false) -%}\n {%- else -%}\n , cast(null as {{ snowplow_utils.type_max_string() }}) as iab__category\n , cast(null as {{ snowplow_utils.type_max_string() }}) as iab__primary_impact\n , cast(null as {{ snowplow_utils.type_max_string() }}) as iab__reason\n , cast(null as boolean) as iab__spider_or_robot\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.type_max_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.581183, "supported_languages": null}, "macro.snowplow_unified.bigquery__get_iab_context_fields": {"name": "bigquery__get_iab_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_iab_context_fields.sql", "original_file_path": "macros/field_extractions/get_iab_context_fields.sql", "unique_id": "macro.snowplow_unified.bigquery__get_iab_context_fields", "macro_sql": "{% macro bigquery__get_iab_context_fields() %}\n\n {% set bq_iab_fields = [\n {'field':('category', 'iab__category'), 'dtype':'string'},\n {'field':('primary_impact', 'iab__primary_impact'), 'dtype':'string'},\n {'field':('reason', 'iab__reason'), 'dtype':'string'},\n {'field':('spider_or_robot', 'iab__spider_or_robot'), 'dtype':'boolean'}\n ] %}\n\n {%- if var('snowplow__enable_iab', false) -%}\n ,{{ snowplow_utils.get_optional_fields(\n enabled=var('snowplow__enable_iab', false),\n fields=bq_iab_fields,\n col_prefix='contexts_com_iab_snowplow_spiders_and_robots_1',\n relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),\n relation_alias=none) }}\n {%- else -%}\n , cast(null as {{ type_string() }}) as iab__category\n , cast(null as {{ type_string() }}) as iab__primary_impact\n , cast(null as {{ type_string() }}) as iab__reason\n , cast(null as boolean) as iab__spider_or_robot\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5832522, "supported_languages": null}, "macro.snowplow_unified.spark__get_iab_context_fields": {"name": "spark__get_iab_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_iab_context_fields.sql", "original_file_path": "macros/field_extractions/get_iab_context_fields.sql", "unique_id": "macro.snowplow_unified.spark__get_iab_context_fields", "macro_sql": "{% macro spark__get_iab_context_fields() %}\n {%- if var('snowplow__enable_iab', false) -%}\n , contexts_com_iab_snowplow_spiders_and_robots_1[0].category::STRING as iab__category\n , contexts_com_iab_snowplow_spiders_and_robots_1[0].primary_impact::STRING as iab__primary_impact\n , contexts_com_iab_snowplow_spiders_and_robots_1[0].reason::STRING as iab__reason\n , contexts_com_iab_snowplow_spiders_and_robots_1[0].spider_or_robot::BOOLEAN as iab__spider_or_robot\n {%- else -%}\n , cast(null as {{ type_string() }}) as iab__category\n , cast(null as {{ type_string() }}) as iab__primary_impact\n , cast(null as {{ type_string() }}) as iab__reason\n , cast(null as boolean) as iab__spider_or_robot\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5838704, "supported_languages": null}, "macro.snowplow_unified.snowflake__get_iab_context_fields": {"name": "snowflake__get_iab_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_iab_context_fields.sql", "original_file_path": "macros/field_extractions/get_iab_context_fields.sql", "unique_id": "macro.snowplow_unified.snowflake__get_iab_context_fields", "macro_sql": "{% macro snowflake__get_iab_context_fields() %}\n {%- if var('snowplow__enable_iab', false) %}\n , contexts_com_iab_snowplow_spiders_and_robots_1[0]:category::VARCHAR as iab__category\n , contexts_com_iab_snowplow_spiders_and_robots_1[0]:primaryImpact::VARCHAR as iab__primary_impact\n , contexts_com_iab_snowplow_spiders_and_robots_1[0]:reason::VARCHAR as iab__reason\n , contexts_com_iab_snowplow_spiders_and_robots_1[0]:spiderOrRobot::BOOLEAN as iab__spider_or_robot\n {%- else -%}\n , cast(null as {{ type_string() }}) as iab__category\n , cast(null as {{ type_string() }}) as iab__primary_impact\n , cast(null as {{ type_string() }}) as iab__reason\n , cast(null as boolean) as iab__spider_or_robot\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5844796, "supported_languages": null}, "macro.snowplow_unified.get_deep_link_context_fields": {"name": "get_deep_link_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_deep_link_context_fields.sql", "original_file_path": "macros/field_extractions/get_deep_link_context_fields.sql", "unique_id": "macro.snowplow_unified.get_deep_link_context_fields", "macro_sql": "{% macro get_deep_link_context_fields() %}\n {{ return(adapter.dispatch('get_deep_link_context_fields', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__get_deep_link_context_fields"]}, "description": "This macro is used in the `base_events_this_run` table to extract all the individual fields when the relevant context / sde is enabled, otherwise it returns null values.\n#### Returns\nThe sql to extract the list of fields specified in the context/sde.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.640913, "supported_languages": null}, "macro.snowplow_unified.postgres__get_deep_link_context_fields": {"name": "postgres__get_deep_link_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_deep_link_context_fields.sql", "original_file_path": "macros/field_extractions/get_deep_link_context_fields.sql", "unique_id": "macro.snowplow_unified.postgres__get_deep_link_context_fields", "macro_sql": "{% macro postgres__get_deep_link_context_fields() %}\n {% if var('snowplow__enable_deep_link_context', false) %}\n {% else %}\n , cast(null as {{ snowplow_utils.type_max_string() }}) as deep_link__url\n , cast(null as {{ snowplow_utils.type_max_string() }}) as deep_link__referrer\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.type_max_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5870411, "supported_languages": null}, "macro.snowplow_unified.bigquery__get_deep_link_context_fields": {"name": "bigquery__get_deep_link_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_deep_link_context_fields.sql", "original_file_path": "macros/field_extractions/get_deep_link_context_fields.sql", "unique_id": "macro.snowplow_unified.bigquery__get_deep_link_context_fields", "macro_sql": "{% macro bigquery__get_deep_link_context_fields() %}\n\n {% set bq_deep_link_context_fields = [\n {'field':('url', 'deep_link__url'), 'dtype':'string'},\n {'field':('referrer', 'deep_link__referrer'), 'dtype':'string'}\n ] %}\n\n {% if var('snowplow__enable_deep_link_context', false) %}\n ,{{ snowplow_utils.get_optional_fields(\n enabled=var('snowplow__enable_deep_link_context', false),\n col_prefix='contexts_com_snowplowanalytics_mobile_deep_link_1',\n fields=bq_deep_link_context_fields,\n relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),\n relation_alias=none) }}\n {% else %}\n , cast(null as {{ type_string() }}) as deep_link__url\n , cast(null as {{ type_string() }}) as deep_link__referrer\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5886645, "supported_languages": null}, "macro.snowplow_unified.spark__get_deep_link_context_fields": {"name": "spark__get_deep_link_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_deep_link_context_fields.sql", "original_file_path": "macros/field_extractions/get_deep_link_context_fields.sql", "unique_id": "macro.snowplow_unified.spark__get_deep_link_context_fields", "macro_sql": "{% macro spark__get_deep_link_context_fields() %}\n {% if var('snowplow__enable_deep_link_context', false) %}\n , contexts_com_snowplowanalytics_mobile_deep_link_1[0].url::STRING AS deep_link__url\n , contexts_com_snowplowanalytics_mobile_deep_link_1[0].referrer::STRING AS deep_link__referrer\n\n {% else %}\n , cast(null as {{ type_string() }}) as deep_link__url\n , cast(null as {{ type_string() }}) as deep_link__referrer\n\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5892062, "supported_languages": null}, "macro.snowplow_unified.snowflake__get_deep_link_context_fields": {"name": "snowflake__get_deep_link_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_deep_link_context_fields.sql", "original_file_path": "macros/field_extractions/get_deep_link_context_fields.sql", "unique_id": "macro.snowplow_unified.snowflake__get_deep_link_context_fields", "macro_sql": "{% macro snowflake__get_deep_link_context_fields() %}\n {% if var('snowplow__enable_deep_link_context', false) %}\n , contexts_com_snowplowanalytics_mobile_deep_link_1[0]:url::varchar AS deep_link__url\n , contexts_com_snowplowanalytics_mobile_deep_link_1[0]:referrer::varchar AS deep_link__referrer\n {% else %}\n , cast(null as {{ type_string() }}) as deep_link__url\n , cast(null as {{ type_string() }}) as deep_link__referrer\n\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5897307, "supported_languages": null}, "macro.snowplow_unified.get_session_context_fields": {"name": "get_session_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_session_context_fields.sql", "original_file_path": "macros/field_extractions/get_session_context_fields.sql", "unique_id": "macro.snowplow_unified.get_session_context_fields", "macro_sql": "{% macro get_session_context_fields() %}\n {{ return(adapter.dispatch('get_session_context_fields', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__get_session_context_fields"]}, "description": "This macro is used in the `base_events_this_run` table to extract all the individual fields when the relevant context / sde is enabled, otherwise it returns null values.\n#### Returns\nThe sql to extract the list of fields specified in the context/sde.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6430748, "supported_languages": null}, "macro.snowplow_unified.postgres__get_session_context_fields": {"name": "postgres__get_session_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_session_context_fields.sql", "original_file_path": "macros/field_extractions/get_session_context_fields.sql", "unique_id": "macro.snowplow_unified.postgres__get_session_context_fields", "macro_sql": "{% macro postgres__get_session_context_fields() %}\n {% if var('snowplow__enable_mobile', false) %}\n {% else %}\n , cast(null as {{ snowplow_utils.type_max_string() }}) as session__session_id\n , cast(null as {{ type_numeric() }}) as session__session_index\n , cast(null as {{ snowplow_utils.type_max_string() }}) as session__previous_session_id\n , cast(null as {{ snowplow_utils.type_max_string() }}) as session__user_id\n , cast(null as {{ snowplow_utils.type_max_string() }}) as session__first_event_id\n , cast(null as {{ type_numeric() }}) as session__event_index\n , cast(null as {{ snowplow_utils.type_max_string() }}) as session__storage_mechanism\n , cast(null as {{ snowplow_utils.type_max_string() }}) as session__first_event_timestamp\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.type_max_string", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5970275, "supported_languages": null}, "macro.snowplow_unified.bigquery__get_session_context_fields": {"name": "bigquery__get_session_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_session_context_fields.sql", "original_file_path": "macros/field_extractions/get_session_context_fields.sql", "unique_id": "macro.snowplow_unified.bigquery__get_session_context_fields", "macro_sql": "{% macro bigquery__get_session_context_fields() %}\n\n {% set bq_session_context_fields = [\n {'field':('session_id', 'session__session_id'), 'dtype':'string'},\n {'field':('session_index', 'session__session_index'), 'dtype':'integer'},\n {'field':('previous_session_id', 'session__previous_session_id'), 'dtype':'string'},\n {'field':('user_id', 'session__user_id'), 'dtype':'string'},\n {'field':('first_event_id', 'session__first_event_id'), 'dtype':'string'}\n ] %}\n\n {% if var('snowplow__enable_mobile', false) %}\n ,{{ snowplow_utils.get_optional_fields(\n enabled=true,\n col_prefix='contexts_com_snowplowanalytics_snowplow_client_session_1',\n fields=bq_session_context_fields,\n relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),\n relation_alias=none) }}\n {% else %}\n , cast(null as {{ type_string() }}) as session__session_id\n , cast(null as {{ type_numeric() }}) as session__session_index\n , cast(null as {{ type_string() }}) as session__previous_session_id\n , cast(null as {{ type_string() }}) as session__user_id\n , cast(null as {{ type_string() }}) as session__first_event_id\n , cast(null as {{ type_numeric() }}) as session__event_index\n , cast(null as {{ type_string() }}) as session__storage_mechanism\n , cast(null as {{ type_string() }}) as session__first_event_timestamp\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields", "macro.dbt.type_string", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.5997553, "supported_languages": null}, "macro.snowplow_unified.spark__get_session_context_fields": {"name": "spark__get_session_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_session_context_fields.sql", "original_file_path": "macros/field_extractions/get_session_context_fields.sql", "unique_id": "macro.snowplow_unified.spark__get_session_context_fields", "macro_sql": "{% macro spark__get_session_context_fields() %}\n {% if var('snowplow__enable_mobile', false) %}\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0].session_id::STRING AS session__session_id\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0].session_index::INT AS session__session_index\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0].previous_session_id::STRING AS session__previous_session_id\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0].user_id::STRING AS session__user_id\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0].first_event_id::STRING AS session__first_event_id\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0].event_index::INT AS session__event_index\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0].storage_mechanism::STRING AS session__storage_mechanism\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0].first_event_timestamp::STRING AS session__first_event_timestamp\n {% else %}\n , cast(null as {{ type_string() }}) as session__session_id\n , cast(null as {{ type_numeric() }}) as session__session_index\n , cast(null as {{ type_string() }}) as session__previous_session_id\n , cast(null as {{ type_string() }}) as session__user_id\n , cast(null as {{ type_string() }}) as session__first_event_id\n , cast(null as {{ type_numeric() }}) as session__event_index\n , cast(null as {{ type_string() }}) as session__storage_mechanism\n , cast(null as {{ type_string() }}) as session__first_event_timestamp\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6007445, "supported_languages": null}, "macro.snowplow_unified.snowflake__get_session_context_fields": {"name": "snowflake__get_session_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_session_context_fields.sql", "original_file_path": "macros/field_extractions/get_session_context_fields.sql", "unique_id": "macro.snowplow_unified.snowflake__get_session_context_fields", "macro_sql": "{% macro snowflake__get_session_context_fields() %}\n {% if var('snowplow__enable_mobile', false) %}\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0]:sessionId::varchar(36) AS session__session_id\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0]:sessionIndex::int AS session__session_index\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0]:previousSessionId::varchar(36) AS session__previous_session_id\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0]:userId::varchar(36) AS session__user_id\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0]:firstEventId::varchar(36) AS session__first_event_id\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0]:eventIndex::int AS session__event_index\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0]:storageMechanism::varchar(36) AS session__storage_mechanism\n , contexts_com_snowplowanalytics_snowplow_client_session_1[0]:firstEventTimestamp::varchar(36) AS session__first_event_timestamp\n {% else %}\n , cast(null as {{ type_string() }}) as session__session_id\n , cast(null as {{ type_numeric() }}) as session__session_index\n , cast(null as {{ type_string() }}) as session__previous_session_id\n , cast(null as {{ type_string() }}) as session__user_id\n , cast(null as {{ type_string() }}) as session__first_event_id\n , cast(null as {{ type_numeric() }}) as session__event_index\n , cast(null as {{ type_string() }}) as session__storage_mechanism\n , cast(null as {{ type_string() }}) as session__first_event_timestamp\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6017134, "supported_languages": null}, "macro.snowplow_unified.get_ua_context_fields": {"name": "get_ua_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_ua_context_fields.sql", "original_file_path": "macros/field_extractions/get_ua_context_fields.sql", "unique_id": "macro.snowplow_unified.get_ua_context_fields", "macro_sql": "{% macro get_ua_context_fields() %}\n {{ return(adapter.dispatch('get_ua_context_fields', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__get_ua_context_fields"]}, "description": "This macro is used in the `base_events_this_run` table to extract all the individual fields when the relevant context / sde is enabled, otherwise it returns null values.\n#### Returns\nThe sql to extract the list of fields specified in the context/sde.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6443887, "supported_languages": null}, "macro.snowplow_unified.postgres__get_ua_context_fields": {"name": "postgres__get_ua_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_ua_context_fields.sql", "original_file_path": "macros/field_extractions/get_ua_context_fields.sql", "unique_id": "macro.snowplow_unified.postgres__get_ua_context_fields", "macro_sql": "{% macro postgres__get_ua_context_fields() %}\n\n {%- if var('snowplow__enable_ua', false) -%}\n {%- else -%}\n , cast(null as {{ snowplow_utils.type_max_string() }}) as ua__useragent_family\n , cast(null as {{ snowplow_utils.type_max_string() }}) as ua__useragent_major\n , cast(null as {{ snowplow_utils.type_max_string() }}) as ua__useragent_minor\n , cast(null as {{ snowplow_utils.type_max_string() }}) as ua__useragent_patch\n , cast(null as {{ snowplow_utils.type_max_string() }}) as ua__useragent_version\n , cast(null as {{ snowplow_utils.type_max_string() }}) as ua__os_family\n , cast(null as {{ snowplow_utils.type_max_string() }}) as ua__os_major\n , cast(null as {{ snowplow_utils.type_max_string() }}) as ua__os_minor\n , cast(null as {{ snowplow_utils.type_max_string() }}) as ua__os_patch\n , cast(null as {{ snowplow_utils.type_max_string() }}) as ua__os_patch_minor\n , cast(null as {{ snowplow_utils.type_max_string() }}) as ua__os_version\n , cast(null as {{ snowplow_utils.type_max_string() }}) as ua__device_family\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.type_max_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.613052, "supported_languages": null}, "macro.snowplow_unified.bigquery__get_ua_context_fields": {"name": "bigquery__get_ua_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_ua_context_fields.sql", "original_file_path": "macros/field_extractions/get_ua_context_fields.sql", "unique_id": "macro.snowplow_unified.bigquery__get_ua_context_fields", "macro_sql": "{% macro bigquery__get_ua_context_fields() %}\n\n {% set bq_ua_fields = [\n {'field':('useragent_family', 'ua__useragent_family'), 'dtype': 'string'},\n {'field':('useragent_major', 'ua__useragent_major'), 'dtype': 'string'},\n {'field':('useragent_minor', 'ua__useragent_minor'), 'dtype': 'string'},\n {'field':('useragent_patch', 'ua__useragent_patch'), 'dtype': 'string'},\n {'field':('useragent_version', 'ua__useragent_version'), 'dtype': 'string'},\n {'field':('os_family', 'ua__os_family'), 'dtype': 'string'},\n {'field':('os_major', 'ua__os_major'), 'dtype': 'string'},\n {'field':('os_minor', 'ua__os_minor'), 'dtype': 'string'},\n {'field':('os_patch', 'ua__os_patch'), 'dtype': 'string'},\n {'field':('os_patch_minor', 'ua__os_patch_minor'), 'dtype': 'string'},\n {'field':('os_version', 'ua__os_version'), 'dtype': 'string'},\n {'field':('device_family', 'ua__device_family'), 'dtype': 'string'}\n ] %}\n\n {%- if var('snowplow__enable_ua', false) -%}\n ,{{ snowplow_utils.get_optional_fields(\n enabled=var('snowplow__enable_ua', false),\n fields=bq_ua_fields,\n col_prefix='contexts_com_snowplowanalytics_snowplow_ua_parser_context_1',\n relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),\n relation_alias=none) }}\n {%- else -%}\n , cast(null as {{ type_string() }}) as ua__useragent_family\n , cast(null as {{ type_string() }}) as ua__useragent_major\n , cast(null as {{ type_string() }}) as ua__useragent_minor\n , cast(null as {{ type_string() }}) as ua__useragent_patch\n , cast(null as {{ type_string() }}) as ua__useragent_version\n , cast(null as {{ type_string() }}) as ua__os_family\n , cast(null as {{ type_string() }}) as ua__os_major\n , cast(null as {{ type_string() }}) as ua__os_minor\n , cast(null as {{ type_string() }}) as ua__os_patch\n , cast(null as {{ type_string() }}) as ua__os_patch_minor\n , cast(null as {{ type_string() }}) as ua__os_version\n , cast(null as {{ type_string() }}) as ua__device_family\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.617115, "supported_languages": null}, "macro.snowplow_unified.spark__get_ua_context_fields": {"name": "spark__get_ua_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_ua_context_fields.sql", "original_file_path": "macros/field_extractions/get_ua_context_fields.sql", "unique_id": "macro.snowplow_unified.spark__get_ua_context_fields", "macro_sql": "{% macro spark__get_ua_context_fields() %}\n {%- if var('snowplow__enable_ua', false) -%}\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].useragent_family::STRING as ua__useragent_family\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].useragent_major::STRING as ua__useragent_major\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].useragent_minor::STRING as ua__useragent_minor\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].useragent_patch::STRING as ua__useragent_patch\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].useragent_version::STRING as ua__useragent_version\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].os_family::STRING as ua__os_family\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].os_major::STRING as ua__os_major\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].os_minor::STRING as ua__os_minor\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].os_patch::STRING as ua__os_patch\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].os_patch_minor::STRING as ua__os_patch_minor\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].os_version::STRING as ua__os_version\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].device_family::STRING as ua__device_family\n {%- else -%}\n , cast(null as {{ type_string() }}) as ua__useragent_family\n , cast(null as {{ type_string() }}) as ua__useragent_major\n , cast(null as {{ type_string() }}) as ua__useragent_minor\n , cast(null as {{ type_string() }}) as ua__useragent_patch\n , cast(null as {{ type_string() }}) as ua__useragent_version\n , cast(null as {{ type_string() }}) as ua__os_family\n , cast(null as {{ type_string() }}) as ua__os_major\n , cast(null as {{ type_string() }}) as ua__os_minor\n , cast(null as {{ type_string() }}) as ua__os_patch\n , cast(null as {{ type_string() }}) as ua__os_patch_minor\n , cast(null as {{ type_string() }}) as ua__os_version\n , cast(null as {{ type_string() }}) as ua__device_family\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6183896, "supported_languages": null}, "macro.snowplow_unified.snowflake__get_ua_context_fields": {"name": "snowflake__get_ua_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_ua_context_fields.sql", "original_file_path": "macros/field_extractions/get_ua_context_fields.sql", "unique_id": "macro.snowplow_unified.snowflake__get_ua_context_fields", "macro_sql": "{% macro snowflake__get_ua_context_fields() %}\n{%- if var('snowplow__enable_ua', false) -%}\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:useragentFamily::VARCHAR as ua__useragent_family\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:useragentMajor::VARCHAR as ua__useragent_major\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:useragentMinor::VARCHAR as ua__useragent_minor\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:useragentPatch::VARCHAR as ua__useragent_patch\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:useragentVersion::VARCHAR as ua__useragent_version\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:osFamily::VARCHAR as ua__os_family\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:osMajor::VARCHAR as ua__os_major\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:osMinor::VARCHAR as ua__os_minor\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:osPatch::VARCHAR as ua__os_patch\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:osPatchMinor::VARCHAR as ua__os_patch_minor\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:osVersion::VARCHAR as ua__os_version\n , contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0]:deviceFamily::VARCHAR as ua__device_family\n{%- else -%}\n , cast(null as {{ type_string() }}) as ua__useragent_family\n , cast(null as {{ type_string() }}) as ua__useragent_major\n , cast(null as {{ type_string() }}) as ua__useragent_minor\n , cast(null as {{ type_string() }}) as ua__useragent_patch\n , cast(null as {{ type_string() }}) as ua__useragent_version\n , cast(null as {{ type_string() }}) as ua__os_family\n , cast(null as {{ type_string() }}) as ua__os_major\n , cast(null as {{ type_string() }}) as ua__os_minor\n , cast(null as {{ type_string() }}) as ua__os_patch\n , cast(null as {{ type_string() }}) as ua__os_patch_minor\n , cast(null as {{ type_string() }}) as ua__os_version\n , cast(null as {{ type_string() }}) as ua__device_family\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.619617, "supported_languages": null}, "macro.snowplow_unified.get_browser_context_fields": {"name": "get_browser_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_browser_context_fields.sql", "original_file_path": "macros/field_extractions/get_browser_context_fields.sql", "unique_id": "macro.snowplow_unified.get_browser_context_fields", "macro_sql": "{% macro get_browser_context_fields() %}\n {{ return(adapter.dispatch('get_browser_context_fields', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__get_browser_context_fields"]}, "description": "This macro is used in the `base_events_this_run` table to extract all the individual fields when the relevant context / sde is enabled, otherwise it returns null values.\n#### Returns\nThe sql to extract the list of fields specified in the context/sde.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6404886, "supported_languages": null}, "macro.snowplow_unified.postgres__get_browser_context_fields": {"name": "postgres__get_browser_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_browser_context_fields.sql", "original_file_path": "macros/field_extractions/get_browser_context_fields.sql", "unique_id": "macro.snowplow_unified.postgres__get_browser_context_fields", "macro_sql": "{% macro postgres__get_browser_context_fields() %}\n {% if var('snowplow__enable_browser_context', false) %}\n {% else %}\n , cast(null as {{ snowplow_utils.type_max_string() }}) as browser__viewport\n , cast(null as {{ snowplow_utils.type_max_string() }}) as browser__document_size\n , cast(null as {{ snowplow_utils.type_max_string() }}) as browser__resolution\n , cast(null as {{ type_int() }}) as browser__color_depth\n , cast(null as {{ snowplow_utils.type_max_string() }}) as browser__device_pixel_ratio\n , cast(null as {{ type_boolean() }}) as browser__cookies_enabled\n , cast(null as {{ type_boolean() }}) as browser__online\n , cast(null as {{ snowplow_utils.type_max_string() }}) as browser__browser_language\n , cast(null as {{ snowplow_utils.type_max_string() }}) as browser__document_language\n , cast(null as {{ type_boolean() }}) as browser__webdriver\n , cast(null as {{ type_int() }}) as browser__device_memory\n , cast(null as {{ type_int() }}) as browser__hardware_concurrency\n , cast(null as {{ snowplow_utils.type_max_string() }}) as browser__tab_id\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.type_max_string", "macro.dbt.type_int", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.632829, "supported_languages": null}, "macro.snowplow_unified.bigquery__get_browser_context_fields": {"name": "bigquery__get_browser_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_browser_context_fields.sql", "original_file_path": "macros/field_extractions/get_browser_context_fields.sql", "unique_id": "macro.snowplow_unified.bigquery__get_browser_context_fields", "macro_sql": "{% macro bigquery__get_browser_context_fields() %}\n\n {% set bq_browser_context_fields = [\n {'field':('viewport', 'browser__viewport'), 'dtype':'string'},\n {'field':('document_size', 'browser__document_size'), 'dtype':'string'},\n {'field':('resolution', 'browser__resolution'), 'dtype':'string'},\n {'field':('color_depth', 'browser__color_depth'), 'dtype':'integer'},\n {'field':('device_pixel_ratio', 'browser__device_pixel_ratio'), 'dtype':'float64'},\n {'field':('cookies_enabled', 'browser__cookies_enabled'), 'dtype':'boolean'},\n {'field':('online', 'browser__online'), 'dtype':'boolean'},\n {'field':('browser_language', 'browser__browser_language'), 'dtype':'string'},\n {'field':('document_language', 'browser__document_language'), 'dtype':'string'},\n {'field':('webdriver', 'browser__webdriver'), 'dtype':'boolean'},\n {'field':('device_memory', 'browser__device_memory'), 'dtype':'integer'},\n {'field':('hardware_concurrency', 'browser__hardware_concurrency'), 'dtype':'integer'},\n {'field':('tab_id', 'browser__tab_id'), 'dtype':'string'}\n ] %}\n\n {% if var('snowplow__enable_browser_context', false) %}\n ,{{ snowplow_utils.get_optional_fields(\n enabled=var('snowplow__enable_browser_context', false),\n col_prefix='contexts_com_snowplowanalytics_snowplow_browser_context_1',\n fields=bq_browser_context_fields,\n relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),\n relation_alias=none) }}\n {% else %}\n , cast(null as {{ type_string() }}) as browser__viewport\n , cast(null as {{ type_string() }}) as browser__document_size\n , cast(null as {{ type_string() }}) as browser__resolution\n , cast(null as {{ type_int() }}) as browser__color_depth\n , cast(null as {{ type_float() }}) as browser__device_pixel_ratio\n , cast(null as {{ type_boolean() }}) as browser__cookies_enabled\n , cast(null as {{ type_boolean() }}) as browser__online\n , cast(null as {{ type_string() }}) as browser__browser_language\n , cast(null as {{ type_string() }}) as browser__document_language\n , cast(null as {{ type_boolean() }}) as browser__webdriver\n , cast(null as {{ type_int() }}) as browser__device_memory\n , cast(null as {{ type_int() }}) as browser__hardware_concurrency\n , cast(null as {{ type_string() }}) as browser__tab_id\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6373699, "supported_languages": null}, "macro.snowplow_unified.spark__get_browser_context_fields": {"name": "spark__get_browser_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_browser_context_fields.sql", "original_file_path": "macros/field_extractions/get_browser_context_fields.sql", "unique_id": "macro.snowplow_unified.spark__get_browser_context_fields", "macro_sql": "{% macro spark__get_browser_context_fields() %}\n {% if var('snowplow__enable_browser_context', false) %}\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0].viewport::STRING AS browser__viewport\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0].document_size::STRING AS browser__document_size\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0].resolution::STRING AS browser__resolution\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0].color_depth::INT AS browser__color_depth\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0].device_pixel_ratio::FLOAT AS browser__device_pixel_ratio\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0].cookies_enabled::BOOLEAN AS browser__cookies_enabled\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0].online::BOOLEAN AS browser__online\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0].browser_language::STRING AS browser__browser_language\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0].document_language::STRING AS browser__document_language\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0].webdriver::BOOLEAN AS browser__webdriver\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0].device_memory::INT AS browser__device_memory\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0].hardware_concurrency::INT AS browser__hardware_concurrency\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0].tab_id::STRING AS browser__tab_id\n {% else %}\n , cast(null as {{ type_string() }}) as browser__viewport\n , cast(null as {{ type_string() }}) as browser__document_size\n , cast(null as {{ type_string() }}) as browser__resolution\n , cast(null as {{ type_int() }}) as browser__color_depth\n , cast(null as {{ type_float() }}) as browser__device_pixel_ratio\n , cast(null as {{ type_boolean() }}) as browser__cookies_enabled\n , cast(null as {{ type_boolean() }}) as browser__online\n , cast(null as {{ type_string() }}) as browser__browser_language\n , cast(null as {{ type_string() }}) as browser__document_language\n , cast(null as {{ type_boolean() }}) as browser__webdriver\n , cast(null as {{ type_int() }}) as browser__device_memory\n , cast(null as {{ type_int() }}) as browser__hardware_concurrency\n , cast(null as {{ type_string() }}) as browser__tab_id\n\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6387563, "supported_languages": null}, "macro.snowplow_unified.snowflake__get_browser_context_fields": {"name": "snowflake__get_browser_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_browser_context_fields.sql", "original_file_path": "macros/field_extractions/get_browser_context_fields.sql", "unique_id": "macro.snowplow_unified.snowflake__get_browser_context_fields", "macro_sql": "{% macro snowflake__get_browser_context_fields() %}\n {% if var('snowplow__enable_browser_context', false) %}\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:viewport::varchar AS browser__viewport\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:documentSize::varchar AS browser__document_size\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:resolution::varchar AS browser__resolution\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:colorDepth::int AS browser__color_depth\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:devicePixelRatio::float AS browser__device_pixel_ratio\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:cookiesEnabled::boolean AS browser__cookies_enabled\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:online::boolean AS browser__online\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:browserLanguage::varchar AS browser__browser_language\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:documentLanguage::varchar AS browser__document_language\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:webdriver::boolean AS browser__webdriver\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:deviceMemory::int AS browser__device_memory\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:hardwareConcurrency::int AS browser__hardware_concurrency\n , contexts_com_snowplowanalytics_snowplow_browser_context_1[0]:tabId::varchar AS browser__tab_id\n {% else %}\n , cast(null as {{ type_string() }}) as browser__viewport\n , cast(null as {{ type_string() }}) as browser__document_size\n , cast(null as {{ type_string() }}) as browser__resolution\n , cast(null as {{ type_int() }}) as browser__color_depth\n , cast(null as {{ type_float() }}) as browser__device_pixel_ratio\n , cast(null as {{ type_boolean() }}) as browser__cookies_enabled\n , cast(null as {{ type_boolean() }}) as browser__online\n , cast(null as {{ type_string() }}) as browser__browser_language\n , cast(null as {{ type_string() }}) as browser__document_language\n , cast(null as {{ type_boolean() }}) as browser__webdriver\n , cast(null as {{ type_int() }}) as browser__device_memory\n , cast(null as {{ type_int() }}) as browser__hardware_concurrency\n , cast(null as {{ type_string() }}) as browser__tab_id\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.64008, "supported_languages": null}, "macro.snowplow_unified.get_web_page_context_fields": {"name": "get_web_page_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_web_page_context_fields.sql", "original_file_path": "macros/field_extractions/get_web_page_context_fields.sql", "unique_id": "macro.snowplow_unified.get_web_page_context_fields", "macro_sql": "{% macro get_web_page_context_fields() %}\n {{ return(adapter.dispatch('get_web_page_context_fields', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__get_web_page_context_fields"]}, "description": "This macro is used in the `base_events_this_run` table to extract all the individual fields when the relevant context / sde is enabled, otherwise it returns null values.\n#### Returns\nThe sql to extract the list of fields specified in the context/sde.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6434927, "supported_languages": null}, "macro.snowplow_unified.postgres__get_web_page_context_fields": {"name": "postgres__get_web_page_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_web_page_context_fields.sql", "original_file_path": "macros/field_extractions/get_web_page_context_fields.sql", "unique_id": "macro.snowplow_unified.postgres__get_web_page_context_fields", "macro_sql": "{% macro postgres__get_web_page_context_fields() %}\n {% if var('snowplow__enable_web', false) %}\n {% else %}\n , cast(null as {{ snowplow_utils.type_max_string() }}) as page_view__id\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.type_max_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6422343, "supported_languages": null}, "macro.snowplow_unified.bigquery__get_web_page_context_fields": {"name": "bigquery__get_web_page_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_web_page_context_fields.sql", "original_file_path": "macros/field_extractions/get_web_page_context_fields.sql", "unique_id": "macro.snowplow_unified.bigquery__get_web_page_context_fields", "macro_sql": "{% macro bigquery__get_web_page_context_fields() %}\n\n {% set bq_web_page_fields = [\n {'field':('id', 'page_view__id'), 'dtype':'string'},\n ] %}\n\n {% if var('snowplow__enable_web', false) %}\n ,{{ snowplow_utils.get_optional_fields(\n enabled=true,\n fields=bq_web_page_fields,\n col_prefix='contexts_com_snowplowanalytics_snowplow_web_page_1',\n relation=source('atomic', 'events') if 'integration_tests' not in project_name and 'snowplow' not in project_name else ref('snowplow_unified_events_stg'),\n relation_alias=none) }}\n {% else %}\n , cast(null as {{ type_string() }}) as page_view__id\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6436272, "supported_languages": null}, "macro.snowplow_unified.spark__get_web_page_context_fields": {"name": "spark__get_web_page_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_web_page_context_fields.sql", "original_file_path": "macros/field_extractions/get_web_page_context_fields.sql", "unique_id": "macro.snowplow_unified.spark__get_web_page_context_fields", "macro_sql": "{% macro spark__get_web_page_context_fields() %}\n {% if var('snowplow__enable_web', false) %}\n , contexts_com_snowplowanalytics_snowplow_web_page_1[0].id as page_view__id\n {% else %}\n , cast(null as {{ type_string() }}) as page_view__id\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6440914, "supported_languages": null}, "macro.snowplow_unified.snowflake__get_web_page_context_fields": {"name": "snowflake__get_web_page_context_fields", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_extractions/get_web_page_context_fields.sql", "original_file_path": "macros/field_extractions/get_web_page_context_fields.sql", "unique_id": "macro.snowplow_unified.snowflake__get_web_page_context_fields", "macro_sql": "{% macro snowflake__get_web_page_context_fields() %}\n {% if var('snowplow__enable_web', false) %}\n , contexts_com_snowplowanalytics_snowplow_web_page_1[0]:id::varchar as page_view__id\n {% else %}\n , cast(null as {{ type_string() }}) as page_view__id\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.644543, "supported_languages": null}, "macro.snowplow_unified.engaged_session": {"name": "engaged_session", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/engaged_session.sql", "original_file_path": "macros/field_definitions/engaged_session.sql", "unique_id": "macro.snowplow_unified.engaged_session", "macro_sql": "{% macro engaged_session() %}\n {{ return(adapter.dispatch('engaged_session', 'snowplow_unified')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_unified_integration_tests.default__engaged_session"]}, "description": "This macro returns the sql to identify if a session is classed as engaged or not. It can be overwritten to use a different logic. By default any session that has 2 or more page views, more than 2 heartbeats worth of engaged time, or has any conversion events is classed as engaged.\n\nNote that if you are overwriting this macro you have may not have immediate access to all fields in the derived sessions table, and may have to use a table alias to specify the column you wish to use, please see the definition of `snowplow_unified_sessions_this_run` to identify which fields are available at the time of the macro call.\n\n#### Returns\nThe sql defining an engaged session (true/false).", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6462042, "supported_languages": null}, "macro.snowplow_unified.default__engaged_session": {"name": "default__engaged_session", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/engaged_session.sql", "original_file_path": "macros/field_definitions/engaged_session.sql", "unique_id": "macro.snowplow_unified.default__engaged_session", "macro_sql": "{% macro default__engaged_session() %}\n views >= 2\n\n {% if var('snowplow__enable_web') %}\n or engaged_time_in_s / {{ var('snowplow__heartbeat', 10) }} >= 2\n {%- endif %}\n\n {%- if var('snowplow__conversion_events', none) %}\n {%- for conv_def in var('snowplow__conversion_events') %}\n or cv_{{ conv_def['name'] }}_converted\n {%- endfor %}\n {%- endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6461256, "supported_languages": null}, "macro.snowplow_unified.conversion_query": {"name": "conversion_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/conversion_query.sql", "original_file_path": "macros/field_definitions/conversion_query.sql", "unique_id": "macro.snowplow_unified.conversion_query", "macro_sql": "{% macro conversion_query(conv_object = {}, names_only = false) %}\n{{ return(adapter.dispatch('conversion_query', 'snowplow_unified')(conv_object, names_only)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__conversion_query"]}, "description": "A macro to keep the different ways of calculating conversion fields per warehouse abstracted away for the sessions table.\n\n#### Returns\n\nThe sql needed to make the warehosue specific transformations to retrieve the conversion fields.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6562445, "supported_languages": null}, "macro.snowplow_unified.default__conversion_query": {"name": "default__conversion_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/conversion_query.sql", "original_file_path": "macros/field_definitions/conversion_query.sql", "unique_id": "macro.snowplow_unified.default__conversion_query", "macro_sql": "{% macro default__conversion_query(conv_object, names_only = false) %}\n{% if execute %}\n{% do exceptions.raise_compiler_error('Macro get_field only supports Bigquery, Snowflake, Spark, Databricks, Postgres, and Redshift, it is not supported for ' ~ target.type) %}\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.665011, "supported_languages": null}, "macro.snowplow_unified.snowflake__conversion_query": {"name": "snowflake__conversion_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/conversion_query.sql", "original_file_path": "macros/field_definitions/conversion_query.sql", "unique_id": "macro.snowplow_unified.snowflake__conversion_query", "macro_sql": "{% macro snowflake__conversion_query(conv_object, names_only = false) %}\n\n{% set when_condition = \"cv_type = '\"~ conv_object['name'] ~\"'\" if var('snowplow__enable_conversions', false) else conv_object['condition'] %}\n{% set then_condition = \"cv_value\" if var('snowplow__enable_conversions', false) else conv_object['value'] %}\n{% set tstamp_field = \"cv_tstamp\" if var('snowplow__enable_conversions', false) else \"derived_tstamp\" %}\n\n{%- if not names_only %}\n,COUNT(CASE WHEN {{ when_condition }} THEN 1 ELSE null END) AS cv_{{ conv_object['name'] }}_volume\n{%- if conv_object.get('list_events', false) %}\n,ARRAYAGG(CASE WHEN {{ when_condition }} THEN event_id ELSE null END) WITHIN GROUP (ORDER BY {{ tstamp_field }}, dvce_created_tstamp, event_id) AS cv_{{ conv_object['name'] }}_events\n{%- endif -%}\n{%- if conv_object.get('value', none) %}\n,ARRAYAGG(CASE WHEN {{ when_condition }} THEN coalesce({{ then_condition }},{{ conv_object.get('default_value', 0) }}) ELSE null END) WITHIN GROUP (ORDER BY {{ tstamp_field }}, dvce_created_tstamp, event_id) AS cv_{{ conv_object['name'] }}_values\n,SUM(CASE WHEN {{ when_condition }} THEN coalesce({{ then_condition }}, {{ conv_object.get('default_value', 0) }}) ELSE 0 END) AS cv_{{ conv_object['name'] }}_total\n{%- endif %}\n,MIN(CASE WHEN {{ when_condition }} THEN {{ tstamp_field }} ELSE null END) AS cv_{{ conv_object['name'] }}_first_conversion\n,CAST(MAX(CASE WHEN {{ when_condition }} THEN 1 ELSE 0 END) AS {{ type_boolean() }}) AS cv_{{ conv_object['name'] }}_converted\n{%- else -%}\n,coalesce(cv_{{ conv_object['name'] }}_volume, 0) as cv_{{ conv_object['name'] }}_volume\n{%- if conv_object.get('list_events', false) %}\n,coalesce(cv_{{ conv_object['name'] }}_events, []) as cv_{{ conv_object['name'] }}_events\n{%- endif %}\n{%- if conv_object.get('value', none) %}\n,coalesce(cv_{{ conv_object['name'] }}_values, []) as cv_{{ conv_object['name'] }}_values\n,coalesce(cv_{{ conv_object['name'] }}_total, 0) as cv_{{ conv_object['name'] }}_total\n{%- endif %}\n,cv_{{ conv_object['name'] }}_first_conversion\n,coalesce(cv_{{ conv_object['name'] }}_converted, false) as cv_{{ conv_object['name'] }}_converted\n{%- endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.669262, "supported_languages": null}, "macro.snowplow_unified.bigquery__conversion_query": {"name": "bigquery__conversion_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/conversion_query.sql", "original_file_path": "macros/field_definitions/conversion_query.sql", "unique_id": "macro.snowplow_unified.bigquery__conversion_query", "macro_sql": "{% macro bigquery__conversion_query(conv_object, names_only = false) %}\n\n{% set when_condition = \"cv_type = '\"~ conv_object['name'] ~\"'\" if var('snowplow__enable_conversions', false) else conv_object['condition'] %}\n{% set then_condition = \"cv_value\" if var('snowplow__enable_conversions', false) else conv_object['value'] %}\n{% set tstamp_field = \"cv_tstamp\" if var('snowplow__enable_conversions', false) else \"derived_tstamp\" %}\n\n{%- if not names_only %}\n,COUNT(CASE WHEN {{ when_condition }} THEN 1 ELSE null END) AS cv_{{ conv_object['name'] }}_volume\n{%- if conv_object.get('list_events', false) %}\n,ARRAY_AGG(CASE WHEN {{ when_condition }} THEN event_id ELSE null END IGNORE NULLS ORDER BY {{ tstamp_field }}, dvce_created_tstamp, event_id) AS cv_{{ conv_object['name'] }}_events\n{%- endif -%}\n{%- if conv_object.get('value', none) %}\n,ARRAY_AGG(CASE WHEN {{ when_condition }} THEN coalesce({{ then_condition }},{{ conv_object.get('default_value', 0) }}) ELSE null END IGNORE NULLS ORDER BY {{ tstamp_field }}, dvce_created_tstamp, event_id) AS cv_{{ conv_object['name'] }}_values\n,SUM(CASE WHEN {{ when_condition }} THEN coalesce({{ then_condition }}, {{ conv_object.get('default_value', 0) }}) ELSE 0 END) AS cv_{{ conv_object['name'] }}_total\n{%- endif -%}\n,MIN(CASE WHEN {{ when_condition }} THEN {{ tstamp_field }} ELSE null END) AS cv_{{ conv_object['name'] }}_first_conversion\n,CAST(MAX(CASE WHEN {{ when_condition }} THEN 1 ELSE 0 END) AS {{ type_boolean() }}) AS cv_{{ conv_object['name'] }}_converted\n{%- else -%}\n,coalesce(cv_{{ conv_object['name'] }}_volume, 0) as cv_{{ conv_object['name'] }}_volume\n{%- if conv_object.get('list_events', false) %}\n,coalesce(cv_{{ conv_object['name'] }}_events, []) as cv_{{ conv_object['name'] }}_events\n{%- endif %}\n{%- if conv_object.get('value', none) %}\n,coalesce(cv_{{ conv_object['name'] }}_values, []) as cv_{{ conv_object['name'] }}_values\n,coalesce(cv_{{ conv_object['name'] }}_total, 0) as cv_{{ conv_object['name'] }}_total\n{%- endif %}\n,cv_{{ conv_object['name'] }}_first_conversion\n,coalesce(cv_{{ conv_object['name'] }}_converted, false) as cv_{{ conv_object['name'] }}_converted\n{%- endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6733534, "supported_languages": null}, "macro.snowplow_unified.spark__conversion_query": {"name": "spark__conversion_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/conversion_query.sql", "original_file_path": "macros/field_definitions/conversion_query.sql", "unique_id": "macro.snowplow_unified.spark__conversion_query", "macro_sql": "{% macro spark__conversion_query(conv_object, names_only = false) %}\n\n{% set when_condition = \"cv_type = '\"~ conv_object['name'] ~\"'\" if var('snowplow__enable_conversions', false) else conv_object['condition'] %}\n{% set then_condition = \"cv_value\" if var('snowplow__enable_conversions', false) else conv_object['value'] %}\n{% set tstamp_field = \"cv_tstamp\" if var('snowplow__enable_conversions', false) else \"derived_tstamp\" %}\n\n{%- if not names_only %}\n,COUNT(CASE WHEN {{ when_condition }} THEN 1 ELSE null END) AS cv_{{ conv_object['name'] }}_volume\n{%- if conv_object.get('list_events', false) %}\n{# make an struct of the thing we want to put in an array, then the things we want to order by, collect THOSE into an array, filter out where the thing we want is null, sort those based on the other columns, then select just the thing we care about #}\n,transform(array_sort(FILTER(collect_list(struct(CASE WHEN {{ when_condition }} THEN event_id ELSE null END, {{ tstamp_field }}, dvce_created_tstamp, event_id)), x -> x['col1'] is not null), (left, right) -> CASE WHEN left['{{ tstamp_field }}'] < right['{{ tstamp_field }}'] THEN -1 WHEN left['{{ tstamp_field }}'] > right['{{ tstamp_field }}'] THEN 1 WHEN left['dvce_created_tstamp'] < right['dvce_created_tstamp'] THEN -1 WHEN left['dvce_created_tstamp'] > right['dvce_created_tstamp'] THEN 1 WHEN left['event_id'] < right['event_id'] THEN -1 WHEN left['event_id'] > right['event_id'] THEN 1 ELSE 0 END), x -> x['col1']) AS cv_{{ conv_object['name'] }}_events\n{%- endif -%}\n{%- if conv_object.get('value', none) %}\n{# make an struct of the thing we want to put in an array, then the things we want to order by, collect THOSE into an array, filter out where the thing we want is null, sort those based on the other columns, then select just the thing we care about #}\n,transform(array_sort(FILTER(collect_list(struct(CASE WHEN {{ when_condition }} THEN coalesce({{ then_condition }},{{ conv_object.get('default_value', 0) }}) ELSE null END, {{ tstamp_field }}, dvce_created_tstamp, event_id)), x -> x['col1'] is not null), (left, right) -> CASE WHEN left['{{ tstamp_field }}'] < right['{{ tstamp_field }}'] THEN -1 WHEN left['{{ tstamp_field }}'] > right['{{ tstamp_field }}'] THEN 1 WHEN left['dvce_created_tstamp'] < right['dvce_created_tstamp'] THEN -1 WHEN left['dvce_created_tstamp'] > right['dvce_created_tstamp'] THEN 1 WHEN left['event_id'] < right['event_id'] THEN -1 WHEN left['event_id'] > right['event_id'] THEN 1 ELSE 0 END), x -> x['col1']) AS cv_{{ conv_object['name'] }}_values\n,SUM(CASE WHEN {{ when_condition }} THEN coalesce({{ then_condition }}, {{ conv_object.get('default_value', 0) }}) ELSE 0 END) AS cv_{{ conv_object['name'] }}_total\n{%- endif -%}\n,MIN(CASE WHEN {{ when_condition }} THEN {{ tstamp_field }} ELSE null END) AS cv_{{ conv_object['name'] }}_first_conversion\n,CAST(MAX(CASE WHEN {{ when_condition }} THEN 1 ELSE 0 END) AS {{ type_boolean() }}) AS cv_{{ conv_object['name'] }}_converted\n{%- else -%}\n,coalesce(cv_{{ conv_object['name'] }}_volume, 0) as cv_{{ conv_object['name'] }}_volume\n{%- if conv_object.get('list_events', false) %}\n,coalesce(cv_{{ conv_object['name'] }}_events, from_json(\"[]\", \"array\")) as cv_{{ conv_object['name'] }}_events\n{%- endif %}\n{%- if conv_object.get('value', none) %}\n,coalesce(cv_{{ conv_object['name'] }}_values, from_json(\"[]\", \"array\")) as cv_{{ conv_object['name'] }}_values\n,coalesce(cv_{{ conv_object['name'] }}_total, 0) as cv_{{ conv_object['name'] }}_total\n{%- endif %}\n,cv_{{ conv_object['name'] }}_first_conversion\n,coalesce(cv_{{ conv_object['name'] }}_converted, false) as cv_{{ conv_object['name'] }}_converted\n{%- endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.677829, "supported_languages": null}, "macro.snowplow_unified.postgres__conversion_query": {"name": "postgres__conversion_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/conversion_query.sql", "original_file_path": "macros/field_definitions/conversion_query.sql", "unique_id": "macro.snowplow_unified.postgres__conversion_query", "macro_sql": "{% macro postgres__conversion_query(conv_object = {}, names_only = false) %}\n\n{% set when_condition = \"cv_type = '\"~ conv_object['name'] ~\"'\" if var('snowplow__enable_conversions', false) else conv_object['condition'] %}\n{% set then_condition = \"cv_value\" if var('snowplow__enable_conversions', false) else conv_object['value'] %}\n{% set tstamp_field = \"cv_tstamp\" if var('snowplow__enable_conversions', false) else \"derived_tstamp\" %}\n\n{%- if not names_only %}\n,COUNT(CASE WHEN {{ when_condition }} THEN 1 ELSE null END) AS cv_{{ conv_object['name'] }}_volume\n{%- if conv_object.get('list_events', false) %}\n,ARRAY_REMOVE(ARRAY_AGG(CASE WHEN {{ when_condition }} THEN event_id ELSE null END ORDER BY {{ tstamp_field }}, dvce_created_tstamp, event_id), null) AS cv_{{ conv_object['name'] }}_events\n{%- endif -%}\n{%- if conv_object.get('value', none) %}\n,ARRAY_REMOVE(ARRAY_AGG(CASE WHEN {{ when_condition }} THEN coalesce({{ then_condition }},{{ conv_object.get('default_value', 0) }}) ELSE null END ORDER BY {{ tstamp_field }}, dvce_created_tstamp, event_id), null) AS cv_{{ conv_object['name'] }}_values\n,SUM(CASE WHEN {{ when_condition }} THEN coalesce({{ then_condition }}, {{ conv_object.get('default_value', 0) }}) ELSE 0 END) AS cv_{{ conv_object['name'] }}_total\n{%- endif -%}\n,MIN(CASE WHEN {{ when_condition }} THEN {{ tstamp_field }} ELSE null END) AS cv_{{ conv_object['name'] }}_first_conversion\n,CAST(MAX(CASE WHEN {{ when_condition }} THEN 1 ELSE 0 END) AS {{ type_boolean() }}) AS cv_{{ conv_object['name'] }}_converted\n{%- else -%}\n,coalesce(cv_{{ conv_object['name'] }}_volume, 0) as cv_{{ conv_object['name'] }}_volume\n{%- if conv_object.get('list_events', false) %}\n,coalesce(cv_{{ conv_object['name'] }}_events, string_to_array(regexp_replace('[]', '[\\[\\]\\\"]', '', 'g'),',')) as cv_{{ conv_object['name'] }}_events\n{%- endif %}\n{%- if conv_object.get('value', none) %}\n,coalesce(cv_{{ conv_object['name'] }}_values, string_to_array(regexp_replace('[]', '[\\[\\]\\\"]', '', 'g'),',')::numeric[]) as cv_{{ conv_object['name'] }}_values\n,coalesce(cv_{{ conv_object['name'] }}_total, 0) as cv_{{ conv_object['name'] }}_total\n{%- endif %}\n,cv_{{ conv_object['name'] }}_first_conversion\n,coalesce(cv_{{ conv_object['name'] }}_converted, false) as cv_{{ conv_object['name'] }}_converted\n{%- endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6818974, "supported_languages": null}, "macro.snowplow_unified.redshift__conversion_query": {"name": "redshift__conversion_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/conversion_query.sql", "original_file_path": "macros/field_definitions/conversion_query.sql", "unique_id": "macro.snowplow_unified.redshift__conversion_query", "macro_sql": "{% macro redshift__conversion_query(conv_object, names_only = false) %}\n\n{% set when_condition = \"cv_type = '\"~ conv_object['name'] ~\"'\" if var('snowplow__enable_conversions', false) else conv_object['condition'] %}\n{% set then_condition = \"cv_value\" if var('snowplow__enable_conversions', false) else conv_object['value'] %}\n{% set tstamp_field = \"cv_tstamp\" if var('snowplow__enable_conversions', false) else \"derived_tstamp\" %}\n\n{%- if not names_only %}\n,COUNT(CASE WHEN {{ when_condition }} THEN 1 ELSE null END) AS cv_{{ conv_object['name'] }}_volume\n{%- if conv_object.get('list_events', false) %}\n,SPLIT_TO_ARRAY(LISTAGG(CASE WHEN {{ when_condition }} THEN event_id ELSE null END, ',') WITHIN GROUP (ORDER BY {{ tstamp_field }}, dvce_created_tstamp, event_id), ',') AS cv_{{ conv_object['name'] }}_events\n{%- endif -%}\n{%- if conv_object.get('value', none) %}\n{# Want to try and use a symbol that is unlikely to be in the values due to redshift not having a single array_agg function, hence ~ not , #}\n,SPLIT_TO_ARRAY(LISTAGG(CASE WHEN {{ when_condition }} THEN coalesce({{ then_condition }} ,{{ conv_object.get('default_value', 0) }}) ELSE null END, '~') WITHIN GROUP (ORDER BY {{ tstamp_field }}, dvce_created_tstamp, event_id), '~') AS cv_{{ conv_object['name'] }}_values\n,SUM(CASE WHEN {{ when_condition }} THEN coalesce({{ then_condition }}, {{ conv_object.get('default_value', 0) }}) ELSE 0 END) AS cv_{{ conv_object['name'] }}_total\n{%- endif -%}\n,MIN(CASE WHEN {{ when_condition }} THEN {{ tstamp_field }} ELSE null END) AS cv_{{ conv_object['name'] }}_first_conversion\n,CAST(MAX(CASE WHEN {{ when_condition }} THEN 1 ELSE 0 END) AS {{ type_boolean() }}) AS cv_{{ conv_object['name'] }}_converted\n{%- else -%}\n,coalesce(cv_{{ conv_object['name'] }}_volume, 0) as cv_{{ conv_object['name'] }}_volume\n{%- if conv_object.get('list_events', false) %}\n,coalesce(cv_{{ conv_object['name'] }}_events, cast(null as super)) as cv_{{ conv_object['name'] }}_events\n{%- endif %}\n{%- if conv_object.get('value', none) %}\n,coalesce(cv_{{ conv_object['name'] }}_values, cast(null as super)) as cv_{{ conv_object['name'] }}_values\n,coalesce(cv_{{ conv_object['name'] }}_total, 0) as cv_{{ conv_object['name'] }}_total\n{%- endif %}\n,cv_{{ conv_object['name'] }}_first_conversion\n,coalesce(cv_{{ conv_object['name'] }}_converted, false) as cv_{{ conv_object['name'] }}_converted\n{%- endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6859581, "supported_languages": null}, "macro.snowplow_unified.mkt_source_platform_query": {"name": "mkt_source_platform_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/mkt_source_platform_query.sql", "original_file_path": "macros/field_definitions/mkt_source_platform_query.sql", "unique_id": "macro.snowplow_unified.mkt_source_platform_query", "macro_sql": "{% macro mkt_source_platform_query() %}\n {{ return(adapter.dispatch('mkt_source_platform_query', 'snowplow_unified')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__mkt_source_platform_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.686756, "supported_languages": null}, "macro.snowplow_unified.default__mkt_source_platform_query": {"name": "default__mkt_source_platform_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/mkt_source_platform_query.sql", "original_file_path": "macros/field_definitions/mkt_source_platform_query.sql", "unique_id": "macro.snowplow_unified.default__mkt_source_platform_query", "macro_sql": "{% macro default__mkt_source_platform_query() %}\n nullif(regexp_extract(page_urlquery ,r'utm_source_platform=([^?&#]*)'), '')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6869347, "supported_languages": null}, "macro.snowplow_unified.bigquery__mkt_source_platform_query": {"name": "bigquery__mkt_source_platform_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/mkt_source_platform_query.sql", "original_file_path": "macros/field_definitions/mkt_source_platform_query.sql", "unique_id": "macro.snowplow_unified.bigquery__mkt_source_platform_query", "macro_sql": "{% macro bigquery__mkt_source_platform_query() %}\n regexp_extract(page_urlquery ,r'utm_source_platform=([^?&#]*)')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6871035, "supported_languages": null}, "macro.snowplow_unified.redshift__mkt_source_platform_query": {"name": "redshift__mkt_source_platform_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/mkt_source_platform_query.sql", "original_file_path": "macros/field_definitions/mkt_source_platform_query.sql", "unique_id": "macro.snowplow_unified.redshift__mkt_source_platform_query", "macro_sql": "{% macro redshift__mkt_source_platform_query() %}\n nullif(regexp_substr(page_urlquery, 'utm_source_platform=([^?&#]*)', 1, 1, 'e'), '')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6872725, "supported_languages": null}, "macro.snowplow_unified.postgres__mkt_source_platform_query": {"name": "postgres__mkt_source_platform_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/mkt_source_platform_query.sql", "original_file_path": "macros/field_definitions/mkt_source_platform_query.sql", "unique_id": "macro.snowplow_unified.postgres__mkt_source_platform_query", "macro_sql": "{% macro postgres__mkt_source_platform_query() %}\n (regexp_match(page_urlquery, 'utm_source_platform=([^?&#]*)'))[1]\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6874394, "supported_languages": null}, "macro.snowplow_unified.snowflake__mkt_source_platform_query": {"name": "snowflake__mkt_source_platform_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/mkt_source_platform_query.sql", "original_file_path": "macros/field_definitions/mkt_source_platform_query.sql", "unique_id": "macro.snowplow_unified.snowflake__mkt_source_platform_query", "macro_sql": "{% macro snowflake__mkt_source_platform_query() %}\n regexp_substr(page_urlquery, 'utm_source_platform=([^?&#]*)', 1, 1, 'e')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6876075, "supported_languages": null}, "macro.snowplow_unified.content_group_query": {"name": "content_group_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/content_group_query.sql", "original_file_path": "macros/field_definitions/content_group_query.sql", "unique_id": "macro.snowplow_unified.content_group_query", "macro_sql": "{% macro content_group_query() %}\n {{ return(adapter.dispatch('content_group_query', 'snowplow_unified')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_unified_integration_tests.default__content_group_query"]}, "description": "This macro is used to let the user classify page urls into content groups.\n\n#### Returns\nThe sql to provide the classification (expected in the form of case when statements).", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6550243, "supported_languages": null}, "macro.snowplow_unified.default__content_group_query": {"name": "default__content_group_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/content_group_query.sql", "original_file_path": "macros/field_definitions/content_group_query.sql", "unique_id": "macro.snowplow_unified.default__content_group_query", "macro_sql": "{% macro default__content_group_query() %}\n case when ev.page_url like '%/product%' then 'PDP'\n when ev.page_url like '%/list%' then 'PLP'\n when ev.page_url like '%/checkout%' then 'checkout'\n when ev.page_url like '%/home%' then 'homepage'\n else 'other'\n end\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.688341, "supported_languages": null}, "macro.snowplow_unified.event_counts_query": {"name": "event_counts_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/event_counts_query.sql", "original_file_path": "macros/field_definitions/event_counts_query.sql", "unique_id": "macro.snowplow_unified.event_counts_query", "macro_sql": "{% macro event_counts_query() %}\n {{ return(adapter.dispatch('event_counts_query', 'snowplow_unified')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_unified.snowflake__event_counts_query"]}, "description": "A macro to keep the different ways of calculating event counts per warehouse abstracted away for the sessions table. It handles the remaining sql transformation that needs to happen in the subsequent cte after the `macro_event_counts_string_query()` is used.\n\n#### Returns\nThe specific sql to be used for the relevant warehouse to calculate the count of events.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6554325, "supported_languages": null}, "macro.snowplow_unified.default__event_counts_query": {"name": "default__event_counts_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/event_counts_query.sql", "original_file_path": "macros/field_definitions/event_counts_query.sql", "unique_id": "macro.snowplow_unified.default__event_counts_query", "macro_sql": "{% macro default__event_counts_query() %}\n map_filter(event_counts_string, (k, v) -> v > 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6891925, "supported_languages": null}, "macro.snowplow_unified.bigquery__event_counts_query": {"name": "bigquery__event_counts_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/event_counts_query.sql", "original_file_path": "macros/field_definitions/event_counts_query.sql", "unique_id": "macro.snowplow_unified.bigquery__event_counts_query", "macro_sql": "{% macro bigquery__event_counts_query() %}\n safe.parse_json(event_counts_string)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6893573, "supported_languages": null}, "macro.snowplow_unified.redshift__event_counts_query": {"name": "redshift__event_counts_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/event_counts_query.sql", "original_file_path": "macros/field_definitions/event_counts_query.sql", "unique_id": "macro.snowplow_unified.redshift__event_counts_query", "macro_sql": "{% macro redshift__event_counts_query() %}\n json_parse(event_counts_string)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6895235, "supported_languages": null}, "macro.snowplow_unified.postgres__event_counts_query": {"name": "postgres__event_counts_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/event_counts_query.sql", "original_file_path": "macros/field_definitions/event_counts_query.sql", "unique_id": "macro.snowplow_unified.postgres__event_counts_query", "macro_sql": "{% macro postgres__event_counts_query() %}\ncast(event_counts_string as json)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6896868, "supported_languages": null}, "macro.snowplow_unified.snowflake__event_counts_query": {"name": "snowflake__event_counts_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/event_counts_query.sql", "original_file_path": "macros/field_definitions/event_counts_query.sql", "unique_id": "macro.snowplow_unified.snowflake__event_counts_query", "macro_sql": "{% macro snowflake__event_counts_query() %}\n try_parse_json(event_counts_string)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.689851, "supported_languages": null}, "macro.snowplow_unified.core_web_vital_page_groups": {"name": "core_web_vital_page_groups", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/core_web_vital_page_groups.sql", "original_file_path": "macros/field_definitions/core_web_vital_page_groups.sql", "unique_id": "macro.snowplow_unified.core_web_vital_page_groups", "macro_sql": "{% macro core_web_vital_page_groups() %}\n {{ return(adapter.dispatch('core_web_vital_page_groups', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__core_web_vital_page_groups"]}, "description": "This macro is used to let the user classify page urls into page groups.\n\n#### Returns\nThe sql to provide the classification (expected in the form of case when statements).", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6466138, "supported_languages": null}, "macro.snowplow_unified.default__core_web_vital_page_groups": {"name": "default__core_web_vital_page_groups", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/core_web_vital_page_groups.sql", "original_file_path": "macros/field_definitions/core_web_vital_page_groups.sql", "unique_id": "macro.snowplow_unified.default__core_web_vital_page_groups", "macro_sql": "{% macro default__core_web_vital_page_groups() %}\n\n case when page_url like '%/product%' then 'PDP'\n when page_url like '%/list%' then 'PLP'\n when page_url like '%/checkout%' then 'checkout'\n when page_url like '%/home%' then 'homepage'\n else 'other' end\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6905975, "supported_languages": null}, "macro.snowplow_unified.event_counts_string_query": {"name": "event_counts_string_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/event_counts_string_query.sql", "original_file_path": "macros/field_definitions/event_counts_string_query.sql", "unique_id": "macro.snowplow_unified.event_counts_string_query", "macro_sql": "{% macro event_counts_string_query() %}\n {{ return(adapter.dispatch('event_counts_string_query', 'snowplow_unified')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_unified.default__event_counts_string_query"]}, "description": "A macro to keep the different ways of calculating event counts per warehouse abstracted away for the sessions table. It loops over every event_name in the run, create a json string / map of the name and counts ONLY if there are events with that name in the session (otherwise retrieves an empty string).\n#### Returns\nThe specific sql to be used for the relevant warehouse to calculate the count of events.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.65584, "supported_languages": null}, "macro.snowplow_unified.default__event_counts_string_query": {"name": "default__event_counts_string_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/event_counts_string_query.sql", "original_file_path": "macros/field_definitions/event_counts_string_query.sql", "unique_id": "macro.snowplow_unified.default__event_counts_string_query", "macro_sql": "{% macro default__event_counts_string_query() %}\n {% set event_names = dbt_utils.get_column_values(ref('snowplow_unified_events_this_run'), 'event_name', order_by = 'event_name') %}\n {# Loop over every event_name in this run, create a json string of the name and count ONLY if there are events with that name in the session (otherwise empty string),\n then trim off the last comma (cannot use loop.first/last because first/last entry may not have any events for that session)\n #}\n\n '{' || rtrim(\n {%- for event_name in event_names %}\n case when sum(case when event_name = '{{event_name}}' then 1 else 0 end) > 0 then '\"{{event_name}}\" :' || sum(case when event_name = '{{event_name}}' then 1 else 0 end) || ', ' else '' end ||\n {%- endfor -%}\n '', ', ') || '}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6925952, "supported_languages": null}, "macro.snowplow_unified.bigquery__event_counts_string_query": {"name": "bigquery__event_counts_string_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/event_counts_string_query.sql", "original_file_path": "macros/field_definitions/event_counts_string_query.sql", "unique_id": "macro.snowplow_unified.bigquery__event_counts_string_query", "macro_sql": "{% macro bigquery__event_counts_string_query() %}\n {% set event_names = dbt_utils.get_column_values(ref('snowplow_unified_events_this_run'), 'event_name', order_by = 'event_name') %}\n {# Loop over every event_name in this run, create a json string of the name and count ONLY if there are events with that name in the session (otherwise empty string),\n then trim off the last comma (cannot use loop.first/last because first/last entry may not have any events for that session)\n #}\n\n '{' || RTRIM(\n {%- for event_name in event_names %}\n case when sum(case when event_name = '{{event_name}}' then 1 else 0 end) > 0 then '\"{{event_name}}\" :' || sum(case when event_name = '{{event_name}}' then 1 else 0 end) || ', ' else '' end ||\n {%- endfor -%}\n '', ', ') || '}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.693475, "supported_languages": null}, "macro.snowplow_unified.spark__event_counts_string_query": {"name": "spark__event_counts_string_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/event_counts_string_query.sql", "original_file_path": "macros/field_definitions/event_counts_string_query.sql", "unique_id": "macro.snowplow_unified.spark__event_counts_string_query", "macro_sql": "{% macro spark__event_counts_string_query() %}\n\n {% set event_names = dbt_utils.get_column_values(ref('snowplow_unified_base_events_this_run'), 'event_name', order_by = 'event_name') %}\n {# Loop over every event_name in this run, create a map of the name and count, later filter for only events with that name in the session #}\n map(\n {%- for event_name in event_names %}\n '{{event_name}}', sum(case when event_name = '{{event_name}}' then 1 else 0 end){% if not loop.last %},{% endif %}\n {%- endfor -%}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6942863, "supported_languages": null}, "macro.snowplow_unified.postgres__event_counts_string_query": {"name": "postgres__event_counts_string_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/event_counts_string_query.sql", "original_file_path": "macros/field_definitions/event_counts_string_query.sql", "unique_id": "macro.snowplow_unified.postgres__event_counts_string_query", "macro_sql": "{% macro postgres__event_counts_string_query() %}\n {% set event_names = dbt_utils.get_column_values(ref('snowplow_unified_events_this_run'), 'event_name', order_by = 'event_name') %}\n {# Loop over every event_name in this run, create a json string of the name and count ONLY if there are events with that name in the session (otherwise empty string),\n then trim off the last comma (cannot use loop.first/last because first/last entry may not have any events for that session)\n #}\n\n '{' || rtrim(\n {%- for event_name in event_names %}\n case when sum(case when event_name = '{{event_name}}' then 1 else 0 end) > 0 then '\"{{event_name}}\" :' || sum(case when event_name = '{{event_name}}' then 1 else 0 end) || ', ' else '' end ||\n {%- endfor -%}\n '', ', ') || '}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6950133, "supported_languages": null}, "macro.snowplow_unified.channel_group_query": {"name": "channel_group_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/channel_group_query.sql", "original_file_path": "macros/field_definitions/channel_group_query.sql", "unique_id": "macro.snowplow_unified.channel_group_query", "macro_sql": "{% macro channel_group_query() %}\n {{ return(adapter.dispatch('channel_group_query', 'snowplow_unified')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_unified.default__channel_group_query"]}, "description": "This macro returns the sql to identify the marketing channel from a url based on the `mkt_source`, `mkt_medium`, and `mkt_campaign` fields. It can be overwritten to use a different logic.\n\n#### Returns\nThe sql to provide the classification (expected in the form of case when statements).", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6457663, "supported_languages": null}, "macro.snowplow_unified.bigquery__channel_group_query": {"name": "bigquery__channel_group_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/channel_group_query.sql", "original_file_path": "macros/field_definitions/channel_group_query.sql", "unique_id": "macro.snowplow_unified.bigquery__channel_group_query", "macro_sql": "{% macro bigquery__channel_group_query() %}\ncase\n when lower(trim(mkt_source)) = '(direct)' and lower(trim(mkt_medium)) in ('(not set)', '(none)') then 'Direct'\n when lower(trim(mkt_medium)) like '%cross-network%' then 'Cross-network'\n when regexp_contains(trim(mkt_medium), r'(?i)^(.*cp.*|ppc|retargeting|paid.*)$') then\n case\n when upper(source_category) = 'SOURCE_CATEGORY_SHOPPING'\n or regexp_contains(trim(mkt_campaign), r'(?i)^(.*(([^a-df-z]|^)shop|shopping).*)$') then 'Paid Shopping'\n when upper(source_category) = 'SOURCE_CATEGORY_SEARCH' then 'Paid Search'\n when upper(source_category) = 'SOURCE_CATEGORY_SOCIAL' then 'Paid Social'\n when upper(source_category) = 'SOURCE_CATEGORY_VIDEO' then 'Paid Video'\n else 'Paid Other'\n end\n when lower(trim(mkt_medium)) in ('display', 'banner', 'expandable', 'interstitial', 'cpm') then 'Display'\n when upper(source_category) = 'SOURCE_CATEGORY_SHOPPING'\n or regexp_contains(trim(mkt_campaign), r'(?i)^(.*(([^a-df-z]|^)shop|shopping).*)$') then 'Organic Shopping'\n when upper(source_category) = 'SOURCE_CATEGORY_SOCIAL' or lower(trim(mkt_medium)) in ('social', 'social-network', 'sm', 'social network', 'social media') then 'Organic Social'\n when upper(source_category) = 'SOURCE_CATEGORY_VIDEO'\n or regexp_contains(trim(mkt_medium), r'(?i)^(.*video.*)$') then 'Organic Video'\n when upper(source_category) = 'SOURCE_CATEGORY_SEARCH' or lower(trim(mkt_medium)) = 'organic' then 'Organic Search'\n when lower(trim(mkt_medium)) in ('referral', 'app', 'link') then 'Referral'\n when lower(trim(mkt_source)) in ('email', 'e-mail', 'e_mail', 'e mail') or lower(trim(mkt_medium)) in ('email', 'e-mail', 'e_mail', 'e mail') then 'Email'\n when lower(trim(mkt_medium)) = 'affiliate' then 'Affiliates'\n when lower(trim(mkt_medium)) = 'audio' then 'Audio'\n when lower(trim(mkt_source)) = 'sms' or lower(trim(mkt_medium)) = 'sms' then 'SMS'\n when lower(trim(mkt_medium)) like '%push' or regexp_contains(trim(mkt_medium), r'(?i).*(mobile|notification).*') or lower(trim(mkt_source)) = 'firebase' then 'Mobile Push Notifications'\n else 'Unassigned'\nend\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6972573, "supported_languages": null}, "macro.snowplow_unified.default__channel_group_query": {"name": "default__channel_group_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/channel_group_query.sql", "original_file_path": "macros/field_definitions/channel_group_query.sql", "unique_id": "macro.snowplow_unified.default__channel_group_query", "macro_sql": "{% macro default__channel_group_query() %}\ncase\n when lower(trim(mkt_source)) = '(direct)' and lower(trim(mkt_medium)) in ('(not set)', '(none)') then 'Direct'\n when lower(trim(mkt_medium)) like '%cross-network%' then 'Cross-network'\n when regexp_like(lower(trim(mkt_medium)), '^(.*cp.*|ppc|retargeting|paid.*)$') then\n case\n when upper(source_category) = 'SOURCE_CATEGORY_SHOPPING'\n or regexp_like(lower(trim(mkt_campaign)), '^(.*(([^a-df-z]|^)shop|shopping).*)$') then 'Paid Shopping'\n when upper(source_category) = 'SOURCE_CATEGORY_SEARCH' then 'Paid Search'\n when upper(source_category) = 'SOURCE_CATEGORY_SOCIAL' then 'Paid Social'\n when upper(source_category) = 'SOURCE_CATEGORY_VIDEO' then 'Paid Video'\n else 'Paid Other'\n end\n when lower(trim(mkt_medium)) in ('display', 'banner', 'expandable', 'intersitial', 'cpm') then 'Display'\n when upper(source_category) = 'SOURCE_CATEGORY_SHOPPING'\n or regexp_like(lower(trim(mkt_campaign)), '^(.*(([^a-df-z]|^)shop|shopping).*)$') then 'Organic Shopping'\n when upper(source_category) = 'SOURCE_CATEGORY_SOCIAL' or lower(trim(mkt_medium)) in ('social', 'social-network', 'sm', 'social network', 'social media') then 'Organic Social'\n when upper(source_category) = 'SOURCE_CATEGORY_VIDEO'\n or regexp_like(lower(trim(mkt_medium)), '^(.*video.*)$') then 'Organic Video'\n when upper(source_category) = 'SOURCE_CATEGORY_SEARCH' or lower(trim(mkt_medium)) = 'organic' then 'Organic Search'\n when lower(trim(mkt_medium)) in ('referral', 'app', 'link') then 'Referral'\n when lower(trim(mkt_source)) in ('email', 'e-mail', 'e_mail', 'e mail') or lower(trim(mkt_medium)) in ('email', 'e-mail', 'e_mail', 'e mail') then 'Email'\n when lower(trim(mkt_medium)) = 'affiliate' then 'Affiliates'\n when lower(trim(mkt_medium)) = 'audio' then 'Audio'\n when lower(trim(mkt_source)) = 'sms' or lower(trim(mkt_medium)) = 'sms' then 'SMS'\n when lower(trim(mkt_medium)) like '%push' or regexp_like(lower(trim(mkt_medium)), '.*(mobile|notification).*') or lower(trim(mkt_source)) = 'firebase' then 'Mobile Push Notifications'\n else 'Unassigned'\nend\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.697603, "supported_languages": null}, "macro.snowplow_unified.redshift__channel_group_query": {"name": "redshift__channel_group_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/channel_group_query.sql", "original_file_path": "macros/field_definitions/channel_group_query.sql", "unique_id": "macro.snowplow_unified.redshift__channel_group_query", "macro_sql": "{% macro redshift__channel_group_query() %}\ncase\n when lower(trim(mkt_source)) = '(direct)' and lower(trim(mkt_medium)) in ('(not set)', '(none)') then 'Direct'\n when lower(trim(mkt_medium)) like '%cross-network%' then 'Cross-network'\n when regexp_instr(lower(trim(mkt_medium)), '^(.*cp.*|ppc|retargeting|paid.*)$') then\n case\n when upper(source_category) = 'SOURCE_CATEGORY_SHOPPING'\n or regexp_instr(lower(trim(mkt_campaign)), '^(.*(([^a-df-z]|^)shop|shopping).*)$') then 'Paid Shopping'\n when upper(source_category) = 'SOURCE_CATEGORY_SEARCH' then 'Paid Search'\n when upper(source_category) = 'SOURCE_CATEGORY_SOCIAL' then 'Paid Social'\n when upper(source_category) = 'SOURCE_CATEGORY_VIDEO' then 'Paid Video'\n else 'Paid Other'\n end\n when lower(trim(mkt_medium)) in ('display', 'banner', 'expandable', 'intersitial', 'cpm') then 'Display'\n when upper(source_category) = 'SOURCE_CATEGORY_SHOPPING'\n or regexp_instr(lower(trim(mkt_campaign)), '^(.*(([^a-df-z]|^)shop|shopping).*)$') then 'Organic Shopping'\n when upper(source_category) = 'SOURCE_CATEGORY_SOCIAL' or lower(trim(mkt_medium)) in ('social', 'social-network', 'sm', 'social network', 'social media') then 'Organic Social'\n when upper(source_category) = 'SOURCE_CATEGORY_VIDEO'\n or regexp_instr(lower(trim(mkt_medium)), '^(.*video.*)$') then 'Organic Video'\n when upper(source_category) = 'SOURCE_CATEGORY_SEARCH' or lower(trim(mkt_medium)) = 'organic' then 'Organic Search'\n when lower(trim(mkt_medium)) in ('referral', 'app', 'link') then 'Referral'\n when lower(trim(mkt_source)) in ('email', 'e-mail', 'e_mail', 'e mail') or lower(trim(mkt_medium)) in ('email', 'e-mail', 'e_mail', 'e mail') then 'Email'\n when lower(trim(mkt_medium)) = 'affiliate' then 'Affiliates'\n when lower(trim(mkt_medium)) = 'audio' then 'Audio'\n when lower(trim(mkt_source)) = 'sms' or lower(trim(mkt_medium)) = 'sms' then 'SMS'\n when lower(trim(mkt_medium)) like '%push' or regexp_instr(lower(trim(mkt_medium)), '.*(mobile|notification).*') or lower(trim(mkt_source)) = 'firebase' then 'Mobile Push Notifications'\n else 'Unassigned'\nend\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.697951, "supported_languages": null}, "macro.snowplow_unified.core_web_vital_pass_query": {"name": "core_web_vital_pass_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/core_web_vital_pass_query.sql", "original_file_path": "macros/field_definitions/core_web_vital_pass_query.sql", "unique_id": "macro.snowplow_unified.core_web_vital_pass_query", "macro_sql": "{% macro core_web_vital_pass_query() %}\n {{ return(adapter.dispatch('core_web_vital_pass_query', 'snowplow_unified')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__core_web_vital_pass_query"]}, "description": "This macro is used to let the user define what counts as the overall pass condition for the core web vital measurements.\n\n#### Returns\nThe sql to provide the logic for the evaluation based on user defined tresholds (expected in the form of case when statements).", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6474414, "supported_languages": null}, "macro.snowplow_unified.default__core_web_vital_pass_query": {"name": "default__core_web_vital_pass_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/core_web_vital_pass_query.sql", "original_file_path": "macros/field_definitions/core_web_vital_pass_query.sql", "unique_id": "macro.snowplow_unified.default__core_web_vital_pass_query", "macro_sql": "{% macro default__core_web_vital_pass_query() %}\n\ncase when m.lcp_result = 'good' and m.fid_result = 'good' and m.cls_result = 'good' then 1 else 0 end\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.6986492, "supported_languages": null}, "macro.snowplow_unified.core_web_vital_results_query": {"name": "core_web_vital_results_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/core_web_vital_results_query.sql", "original_file_path": "macros/field_definitions/core_web_vital_results_query.sql", "unique_id": "macro.snowplow_unified.core_web_vital_results_query", "macro_sql": "{% macro core_web_vital_results_query(suffix) %}\n {{ return(adapter.dispatch('core_web_vital_results_query', 'snowplow_unified')(suffix)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_unified.default__core_web_vital_results_query"]}, "description": "This macro is used to let the user classify the tresholds to be applied for the measurements. Please make sure you set the results you would like the measurements to pass to **`good`** or align it with the `macro_core_web_vital_pass_query` macro.\n\n#### Returns\nThe sql to provide the logic for the evaluation based on user defined tresholds (expected in the form of case when statements).", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://macros/macros.yml", "arguments": [], "created_at": 1706612343.6470318, "supported_languages": null}, "macro.snowplow_unified.default__core_web_vital_results_query": {"name": "default__core_web_vital_results_query", "resource_type": "macro", "package_name": "snowplow_unified", "path": "macros/field_definitions/core_web_vital_results_query.sql", "original_file_path": "macros/field_definitions/core_web_vital_results_query.sql", "unique_id": "macro.snowplow_unified.default__core_web_vital_results_query", "macro_sql": "{% macro default__core_web_vital_results_query(suffix) %}\n case when lcp{{suffix}} is null then 'not measurable'\n when lcp{{suffix}} < 2.5 then 'good'\n when lcp{{suffix}} < 4 then 'needs improvement'\n else 'poor' end as lcp_result,\n\n case when fid{{suffix}} is null then 'not measurable'\n when fid{{suffix}} < 100 then 'good'\n when fid{{suffix}} < 300 then 'needs improvement'\n else 'poor' end as fid_result,\n\n case when cls{{suffix}} is null then 'not measurable'\n when cls{{suffix}} < 0.1 then 'good'\n when cls{{suffix}} < 0.25 then 'needs improvement'\n else 'poor' end as cls_result,\n\n case when ttfb{{suffix}} is null then 'not measurable'\n when ttfb{{suffix}} < 800 then 'good'\n when ttfb{{suffix}} < 1800 then 'needs improvement'\n else 'poor' end as ttfb_result,\n\n case when inp{{suffix}} is null then 'not measurable'\n when inp{{suffix}} < 200 then 'good'\n when inp{{suffix}} < 500 then 'needs improvement'\n else 'poor' end as inp_result\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7006228, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7024136, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7045538, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7054756, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7061312, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.707108, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7079668, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.snowplow_unified_integration_tests.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7092876, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7112463, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.712123, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7131212, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.71427, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7158735, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7171912, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7189996, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7201526, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7208812, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7220047, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7230115, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7239437, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7246945, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7261667, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7284884, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.729617, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n where {{ column_name }} is not null\n limit 1\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.731339, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7328658, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.734854, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7396607, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7434533, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7442536, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.74503, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7461514, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.747852, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7485082, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7492409, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7538736, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7613015, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7627897, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7636862, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7640936, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7652004, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7670667, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.768856, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.769596, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.770873, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.772911, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7760031, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7769556, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7785347, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7810645, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7818363, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7834086, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7846482, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.78523, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7857656, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7869751, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7887595, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7899563, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7912087, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7917364, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7924976, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7932189, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7943869, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.snowflake__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.795653, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7966335, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7970407, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.default__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7979255, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7982407, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.798539, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.798864, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.7997346, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8014007, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8020093, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8023071, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.snowflake__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8035564, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8040104, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8044324, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8048425, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8052037, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8055713, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8068051, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8086064, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8093379, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8105505, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8127134, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8163755, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.818127, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8187275, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8199291, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8216734, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8224857, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8229938, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8238263, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8251655, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8257792, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8265336, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8273585, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8279564, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.829824, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8331983, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8338864, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8348746, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.835702, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.837045, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8376584, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8383553, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8399518, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8412035, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8417323, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.842157, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8426697, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8430333, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8435843, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8440008, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8448937, "supported_languages": null}, "macro.snowplow_utils.return_base_new_event_limits": {"name": "return_base_new_event_limits", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/incremental_hooks/return_base_new_event_limits.sql", "original_file_path": "macros/incremental_hooks/return_base_new_event_limits.sql", "unique_id": "macro.snowplow_utils.return_base_new_event_limits", "macro_sql": "{% macro return_base_new_event_limits(base_events_this_run) -%}\n\n {# In case of not execute just return empty strings to avoid hitting database #}\n {% if not execute %}\n {{ return(['','',''])}}\n {% endif %}\n\n {% set target_relation = adapter.get_relation(\n database=base_events_this_run.database,\n schema=base_events_this_run.schema,\n identifier=base_events_this_run.name) %}\n\n {% if target_relation is not none %}\n\n {% set limit_query %}\n select\n lower_limit,\n upper_limit,\n {{ snowplow_utils.timestamp_add('day',\n -var(\"snowplow__max_session_days\", 3),\n 'lower_limit') }} as session_start_limit\n\n from {{ base_events_this_run }}\n {% endset %}\n\n {% set results = run_query(limit_query) %}\n\n {% if execute %}\n\n {% set lower_limit = snowplow_utils.cast_to_tstamp(results.columns[0].values()[0]) %}\n {% set upper_limit = snowplow_utils.cast_to_tstamp(results.columns[1].values()[0]) %}\n {% set session_start_limit = snowplow_utils.cast_to_tstamp(results.columns[2].values()[0]) %}\n\n {{ return([lower_limit, upper_limit, session_start_limit]) }}\n\n {% endif %}\n\n {% else %}\n\n {% do exceptions.warn(\"Snowplow Warning: \" ~ base_events_this_run ~ \" does not exist. This is expected if you are compiling a fresh installation of the dbt-snowplow-* packages.\") %}\n\n {% set dummy_limit = snowplow_utils.cast_to_tstamp('9999-01-01 00:00:00') %}\n\n {{ return([dummy_limit, dummy_limit, dummy_limit]) }}\n\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.timestamp_add", "macro.dbt.run_query", "macro.snowplow_utils.cast_to_tstamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8491032, "supported_languages": null}, "macro.snowplow_utils.get_run_limits": {"name": "get_run_limits", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/incremental_hooks/get_run_limits.sql", "original_file_path": "macros/incremental_hooks/get_run_limits.sql", "unique_id": "macro.snowplow_utils.get_run_limits", "macro_sql": "{% macro get_run_limits(min_last_success, max_last_success, models_matched_from_manifest, has_matched_all_models, start_date) -%}\n\n {% set start_tstamp = snowplow_utils.cast_to_tstamp(start_date) %}\n {% set min_last_success = snowplow_utils.cast_to_tstamp(min_last_success) %}\n {% set max_last_success = snowplow_utils.cast_to_tstamp(max_last_success) %}\n\n {% if not execute %}\n {{ return('') }}\n {% endif %}\n\n {% if models_matched_from_manifest == 0 %}\n {# If no snowplow models are in the manifest, start from start_tstamp #}\n {% do snowplow_utils.log_message(\"Snowplow: No data in manifest. Processing data from start_date\") %}\n\n {% set run_limits_query %}\n select {{start_tstamp}} as lower_limit,\n least({{ snowplow_utils.timestamp_add('day', var(\"snowplow__backfill_limit_days\", 30), start_tstamp) }},\n {{ snowplow_utils.current_timestamp_in_utc() }}) as upper_limit\n {% endset %}\n\n {% elif not has_matched_all_models %}\n {# If a new Snowplow model is added which isnt already in the manifest, replay all events up to upper_limit #}\n {% do snowplow_utils.log_message(\"Snowplow: New Snowplow incremental model. Backfilling\") %}\n\n {% set run_limits_query %}\n select {{ start_tstamp }} as lower_limit,\n least({{ max_last_success }},\n {{ snowplow_utils.timestamp_add('day', var(\"snowplow__backfill_limit_days\", 30), start_tstamp) }}) as upper_limit\n {% endset %}\n\n {% elif min_last_success != max_last_success %}\n {# If all models in the run exists in the manifest but are out of sync, replay from the min last success to the max last success #}\n {% do snowplow_utils.log_message(\"Snowplow: Snowplow incremental models out of sync. Syncing\") %}\n\n {% set run_limits_query %}\n select {{ snowplow_utils.timestamp_add('hour', -var(\"snowplow__lookback_window_hours\", 6), min_last_success) }} as lower_limit,\n least({{ max_last_success }},\n {{ snowplow_utils.timestamp_add('day', var(\"snowplow__backfill_limit_days\", 30), min_last_success) }}) as upper_limit\n {% endset %}\n\n {% else %}\n {# Else standard run of the model #}\n {% do snowplow_utils.log_message(\"Snowplow: Standard incremental run\") %}\n\n {% set run_limits_query %}\n select\n {{ snowplow_utils.timestamp_add('hour', -var(\"snowplow__lookback_window_hours\", 6), min_last_success) }} as lower_limit,\n least({{ snowplow_utils.timestamp_add('day', var(\"snowplow__backfill_limit_days\", 30), min_last_success) }},\n {{ snowplow_utils.current_timestamp_in_utc() }}) as upper_limit\n {% endset %}\n\n {% endif %}\n\n {{ return(run_limits_query) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.cast_to_tstamp", "macro.snowplow_utils.log_message", "macro.snowplow_utils.timestamp_add", "macro.snowplow_utils.current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8540182, "supported_languages": null}, "macro.snowplow_utils.get_successful_models": {"name": "get_successful_models", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/incremental_hooks/get_successful_models.sql", "original_file_path": "macros/incremental_hooks/get_successful_models.sql", "unique_id": "macro.snowplow_utils.get_successful_models", "macro_sql": "{% macro get_successful_models(models=[], run_results=results) -%}\n\n {% set successful_models = [] %}\n {# Remove the patch version from dbt version #}\n {% set dbt_version_trunc = dbt_version.split('.')[0:2]|join('.')|float %}\n\n {% if execute %}\n\n {% for res in run_results -%}\n {# Filter for models #}\n {% if res.node.unique_id.startswith('model.') %}\n\n {% set is_model_to_include = true if not models|length or res.node.name in models else false %}\n\n {# run_results schema changed between dbt v0.18 and v0.19 so different methods to define success #}\n {% if dbt_version_trunc <= 0.18 %}\n {% set skipped = true if res.status is none and res.skip else false %}\n {% set errored = true if res.status == 'ERROR' else false %}\n {% set success = true if not (skipped or errored) else false %}\n {% else %}\n {% set success = true if res.status == 'success' else false %}\n {% endif %}\n\n {% if success and is_model_to_include %}\n\n {%- do successful_models.append(res.node.name) -%}\n\n {% endif %}\n\n {% endif %}\n\n {% endfor %}\n\n {{ return(successful_models) }}\n\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8572676, "supported_languages": null}, "macro.snowplow_utils.quarantine_sessions": {"name": "quarantine_sessions", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/incremental_hooks/quarantine_sessions.sql", "original_file_path": "macros/incremental_hooks/quarantine_sessions.sql", "unique_id": "macro.snowplow_utils.quarantine_sessions", "macro_sql": "{% macro quarantine_sessions(package_name, max_session_length, src_relation=this) %}\n\n {{ return(adapter.dispatch('quarantine_sessions', 'snowplow_utils')(package_name, max_session_length, src_relation=this)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.default__quarantine_sessions"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8588748, "supported_languages": null}, "macro.snowplow_utils.default__quarantine_sessions": {"name": "default__quarantine_sessions", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/incremental_hooks/quarantine_sessions.sql", "original_file_path": "macros/incremental_hooks/quarantine_sessions.sql", "unique_id": "macro.snowplow_utils.default__quarantine_sessions", "macro_sql": "{% macro default__quarantine_sessions(package_name, max_session_length, src_relation=this) %}\n\n {% set quarantined_sessions = ref(package_name~'_base_quarantined_sessions') %}\n\n {% set sessions_to_quarantine_sql = snowplow_utils.get_quarantine_sql(src_relation, max_session_length) %}\n\n merge into {{ quarantined_sessions }} trg\n using ({{ sessions_to_quarantine_sql }}) src\n on trg.session_id = src.session_id\n when not matched then insert (session_id) values(session_id);\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_quarantine_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8595538, "supported_languages": null}, "macro.snowplow_utils.postgres__quarantine_sessions": {"name": "postgres__quarantine_sessions", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/incremental_hooks/quarantine_sessions.sql", "original_file_path": "macros/incremental_hooks/quarantine_sessions.sql", "unique_id": "macro.snowplow_utils.postgres__quarantine_sessions", "macro_sql": "{% macro postgres__quarantine_sessions(package_name, max_session_length, src_relation=this) %}\n\n {% set quarantined_sessions = ref(package_name~'_base_quarantined_sessions') %}\n {% set sessions_to_quarantine_tmp = 'sessions_to_quarantine_tmp' %}\n\n begin;\n\n create temporary table {{ sessions_to_quarantine_tmp }} as (\n {{ snowplow_utils.get_quarantine_sql(src_relation, max_session_length) }}\n );\n\n delete from {{ quarantined_sessions }}\n where session_id in (select session_id from {{ sessions_to_quarantine_tmp }});\n\n insert into {{ quarantined_sessions }} (\n select session_id from {{ sessions_to_quarantine_tmp }});\n\n drop table {{ sessions_to_quarantine_tmp }};\n\n commit;\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_quarantine_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.860437, "supported_languages": null}, "macro.snowplow_utils.get_quarantine_sql": {"name": "get_quarantine_sql", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/incremental_hooks/quarantine_sessions.sql", "original_file_path": "macros/incremental_hooks/quarantine_sessions.sql", "unique_id": "macro.snowplow_utils.get_quarantine_sql", "macro_sql": "{% macro get_quarantine_sql(relation, max_session_length) %}\n\n {# Find sessions exceeding max_session_days #}\n {% set quarantine_sql -%}\n\n select\n session_id\n\n from {{ relation }}\n -- '=' since end_tstamp is restricted to start_tstamp + max_session_days\n where end_tstamp = {{ snowplow_utils.timestamp_add(\n 'day',\n max_session_length,\n 'start_tstamp'\n ) }}\n\n {%- endset %}\n\n {{ return(quarantine_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8610654, "supported_languages": null}, "macro.snowplow_utils.snowplow_incremental_post_hook": {"name": "snowplow_incremental_post_hook", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/incremental_hooks/snowplow_incremental_post_hook.sql", "original_file_path": "macros/incremental_hooks/snowplow_incremental_post_hook.sql", "unique_id": "macro.snowplow_utils.snowplow_incremental_post_hook", "macro_sql": "{% macro snowplow_incremental_post_hook(package_name='snowplow', incremental_manifest_table_name=none, base_events_this_run_table_name=none, session_timestamp=var('snowplow__session_timestamp', 'load_tstamp')) %}\n\n {% set enabled_snowplow_models = snowplow_utils.get_enabled_snowplow_models(package_name) -%}\n\n {% set successful_snowplow_models = snowplow_utils.get_successful_models(models=enabled_snowplow_models) -%}\n\n {%- if incremental_manifest_table_name -%}\n {%- set incremental_manifest_table = ref(incremental_manifest_table_name) -%}\n {%- else -%}\n {% set incremental_manifest_table = snowplow_utils.get_incremental_manifest_table_relation(package_name) -%}\n {%- endif -%}\n\n {%- if base_events_this_run_table_name -%}\n {%- set base_events_this_run_table = ref(base_events_this_run_table_name) -%}\n {%- else -%}\n {% set base_events_this_run_table = ref(package_name~'_base_events_this_run') -%}\n {%- endif -%}\n\n {{ snowplow_utils.update_incremental_manifest_table(incremental_manifest_table, base_events_this_run_table, successful_snowplow_models, session_timestamp) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_enabled_snowplow_models", "macro.snowplow_utils.get_successful_models", "macro.snowplow_utils.get_incremental_manifest_table_relation", "macro.snowplow_utils.update_incremental_manifest_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8631413, "supported_languages": null}, "macro.snowplow_utils.update_incremental_manifest_table": {"name": "update_incremental_manifest_table", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/incremental_hooks/update_incremental_manifest_table.sql", "original_file_path": "macros/incremental_hooks/update_incremental_manifest_table.sql", "unique_id": "macro.snowplow_utils.update_incremental_manifest_table", "macro_sql": "{% macro update_incremental_manifest_table(manifest_table, base_events_table, models, session_timestamp=var('snowplow__session_timestamp', 'load_tstamp')) -%}\n\n {{ return(adapter.dispatch('update_incremental_manifest_table', 'snowplow_utils')(manifest_table, base_events_table, models, session_timestamp)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.default__update_incremental_manifest_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8657932, "supported_languages": null}, "macro.snowplow_utils.default__update_incremental_manifest_table": {"name": "default__update_incremental_manifest_table", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/incremental_hooks/update_incremental_manifest_table.sql", "original_file_path": "macros/incremental_hooks/update_incremental_manifest_table.sql", "unique_id": "macro.snowplow_utils.default__update_incremental_manifest_table", "macro_sql": "{% macro default__update_incremental_manifest_table(manifest_table, base_events_table, models, session_timestamp) -%}\n\n {% if models %}\n\n {% set last_success_query %}\n select\n b.model,\n a.last_success\n\n from\n (select max({{ session_timestamp }}) as last_success from {{ base_events_table }}) a,\n ({% for model in models %} select '{{model}}' as model {%- if not loop.last %} union all {% endif %} {% endfor %}) b\n\n where a.last_success is not null -- if run contains no data don't add to manifest\n {% endset %}\n\n merge into {{ manifest_table }} m\n using ( {{ last_success_query }} ) s\n on m.model = s.model\n when matched then\n update set last_success = greatest(m.last_success, s.last_success)\n when not matched then\n insert (model, last_success) values(model, last_success);\n\n {% if target.type == 'snowflake' %}\n commit;\n {% endif %}\n\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8669157, "supported_languages": null}, "macro.snowplow_utils.postgres__update_incremental_manifest_table": {"name": "postgres__update_incremental_manifest_table", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/incremental_hooks/update_incremental_manifest_table.sql", "original_file_path": "macros/incremental_hooks/update_incremental_manifest_table.sql", "unique_id": "macro.snowplow_utils.postgres__update_incremental_manifest_table", "macro_sql": "{% macro postgres__update_incremental_manifest_table(manifest_table, base_events_table, models, session_timestamp) -%}\n\n {% if models %}\n\n begin transaction;\n --temp table to find the greatest last_success per model.\n --this protects against partial backfills causing the last_success to move back in time.\n create temporary table snowplow_models_last_success (\n model varchar,\n last_success {{type_timestamp()}}\n );\n insert into snowplow_models_last_success (\n select\n a.model,\n greatest(a.last_success, b.last_success) as last_success\n\n from (\n\n select\n model,\n last_success\n\n from\n (select max({{ session_timestamp }}) as last_success from {{ base_events_table }}) as ls,\n ({% for model in models %} select '{{model}}' as model {%- if not loop.last %} union all {% endif %} {% endfor %}) as mod\n\n where last_success is not null -- if run contains no data don't add to manifest\n\n ) a\n left join {{ manifest_table }} b\n on a.model = b.model\n );\n\n delete from {{ manifest_table }} where model in (select model from snowplow_models_last_success);\n insert into {{ manifest_table }} (select * from snowplow_models_last_success);\n\n end transaction;\n\n drop table snowplow_models_last_success;\n\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8678997, "supported_languages": null}, "macro.snowplow_utils.get_incremental_manifest_status": {"name": "get_incremental_manifest_status", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/incremental_hooks/get_incremental_manifest_status.sql", "original_file_path": "macros/incremental_hooks/get_incremental_manifest_status.sql", "unique_id": "macro.snowplow_utils.get_incremental_manifest_status", "macro_sql": "{% macro get_incremental_manifest_status(incremental_manifest_table, models_in_run) -%}\n\n {# In case of not execute just return empty strings to avoid hitting database #}\n {% if not execute %}\n {{ return(['', '', '', '']) }}\n {% endif %}\n\n {% set target_relation = adapter.get_relation(\n database=incremental_manifest_table.database,\n schema=incremental_manifest_table.schema,\n identifier=incremental_manifest_table.name) %}\n\n {% if target_relation is not none %}\n\n {% set last_success_query %}\n select min(last_success) as min_last_success,\n max(last_success) as max_last_success,\n coalesce(count(*), 0) as models\n from {{ incremental_manifest_table }}\n where model in ({{ snowplow_utils.print_list(models_in_run) }})\n {% endset %}\n\n {% set results = run_query(last_success_query) %}\n\n {% if execute %}\n\n {% set min_last_success = results.columns[0].values()[0] %}\n {% set max_last_success = results.columns[1].values()[0] %}\n {% set models_matched_from_manifest = results.columns[2].values()[0] %}\n {% set has_matched_all_models = true if models_matched_from_manifest == models_in_run|length else false %}\n\n {{ return([min_last_success, max_last_success, models_matched_from_manifest, has_matched_all_models]) }}\n\n {% endif %}\n\n\n {% else %}\n\n {% do exceptions.warn(\"Snowplow Warning: \" ~ incremental_manifest_table ~ \" does not exist. This is expected if you are compiling a fresh installation of the dbt-snowplow-* packages.\") %}\n\n {{ return(['9999-01-01 00:00:00', '9999-01-01 00:00:00', 0, false]) }}\n\n {% endif %}\n\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.print_list", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8719387, "supported_languages": null}, "macro.snowplow_utils.print_run_limits": {"name": "print_run_limits", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/incremental_hooks/get_incremental_manifest_status.sql", "original_file_path": "macros/incremental_hooks/get_incremental_manifest_status.sql", "unique_id": "macro.snowplow_utils.print_run_limits", "macro_sql": "{% macro print_run_limits(run_limits_relation, package= none) -%}\n\n {% set run_limits_query %}\n select lower_limit, upper_limit from {{ run_limits_relation }}\n {% endset %}\n\n {# Derive limits from manifest instead of selecting from limits table since run_query executes during 2nd parse the limits table is yet to be updated. #}\n {% set results = run_query(run_limits_query) %}\n\n {% if execute %}\n\n {% set lower_limit = snowplow_utils.tstamp_to_str(results.columns[0].values()[0]) %}\n {% set upper_limit = snowplow_utils.tstamp_to_str(results.columns[1].values()[0]) %}\n {% set run_limits_message = \"Snowplow: Processing data between \" + lower_limit + \" and \" + upper_limit %}\n {% if package %}\n {% set run_limits_message = run_limits_message + \" (\" + package + \")\" %}\n {% endif %}\n\n {% do snowplow_utils.log_message(run_limits_message) %}\n\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.snowplow_utils.tstamp_to_str", "macro.snowplow_utils.log_message"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8738828, "supported_languages": null}, "macro.snowplow_utils.get_enabled_snowplow_models": {"name": "get_enabled_snowplow_models", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/incremental_hooks/get_enabled_snowplow_models.sql", "original_file_path": "macros/incremental_hooks/get_enabled_snowplow_models.sql", "unique_id": "macro.snowplow_utils.get_enabled_snowplow_models", "macro_sql": "{% macro get_enabled_snowplow_models(package_name, graph_object=none, models_to_run=var(\"models_to_run\", \"\"), base_events_table_name='snowplow_base_events_this_run') -%}\n\n {# Override dbt graph object if graph_object is passed. Testing purposes #}\n {% if graph_object is not none %}\n {% set graph = graph_object %}\n {% endif %}\n\n {# models_to_run optionally passed using dbt ls command. This returns a string of models to be run. Split into list #}\n {% if models_to_run|length %}\n {% set selected_models = models_to_run.split(\" \") %}\n {% else %}\n {% set selected_models = none %}\n {% endif %}\n\n {% set enabled_models = [] %}\n {% set untagged_snowplow_models = [] %}\n {% set snowplow_model_tag = package_name+'_incremental' %}\n {% set snowplow_events_this_run_path = 'model.' + project_name + '.' + base_events_table_name %}\n\n {% if execute %}\n\n {% set nodes = graph.nodes.values() | selectattr(\"resource_type\", \"equalto\", \"model\") %}\n\n {% for node in nodes %}\n {# If selected_models is specified, filter for these models #}\n {% if selected_models is none or node.name in selected_models %}\n\n {% if node.config.enabled and snowplow_model_tag not in node.tags and snowplow_events_this_run_path in node.depends_on.nodes %}\n\n {%- do untagged_snowplow_models.append(node.name) -%}\n\n {% endif %}\n\n {% if node.config.enabled and snowplow_model_tag in node.tags %}\n\n {%- do enabled_models.append(node.name) -%}\n\n {% endif %}\n\n {% endif %}\n\n {% endfor %}\n\n {% if untagged_snowplow_models|length %}\n {#\n Prints warning for models that reference snowplow_base_events_this_run but are untagged as '{package_name}_incremental'\n Without this tagging these models will not be inserted into the manifest, breaking the incremental logic.\n Only catches first degree dependencies rather than all downstream models\n #}\n {%- do exceptions.raise_compiler_error(\"Snowplow Warning: Untagged models referencing '\"+snowplow_events_this_run_path+\"'. Please refer to the Snowplow docs on tagging. \"\n + \"Models: \"+ ', '.join(untagged_snowplow_models)) -%}\n\n {% endif %}\n\n {% if enabled_models|length == 0 %}\n {%- do exceptions.raise_compiler_error(\"No enabled models identified.\") -%}\n {% endif %}\n\n {% endif %}\n\n {{ return(enabled_models) }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8784037, "supported_languages": null}, "macro.snowplow_utils.get_incremental_manifest_table_relation": {"name": "get_incremental_manifest_table_relation", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/incremental_hooks/get_incremental_manifest_table_relation.sql", "original_file_path": "macros/incremental_hooks/get_incremental_manifest_table_relation.sql", "unique_id": "macro.snowplow_utils.get_incremental_manifest_table_relation", "macro_sql": "{% macro get_incremental_manifest_table_relation(package_name) %}\n\n {%- set incremental_manifest_table = ref(package_name~'_incremental_manifest') -%}\n\n {{ return(incremental_manifest_table) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8789744, "supported_languages": null}, "macro.snowplow_utils.get_new_event_limits_table_relation": {"name": "get_new_event_limits_table_relation", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/incremental_hooks/get_new_event_limits_table_relation.sql", "original_file_path": "macros/incremental_hooks/get_new_event_limits_table_relation.sql", "unique_id": "macro.snowplow_utils.get_new_event_limits_table_relation", "macro_sql": "{% macro get_new_event_limits_table_relation(package_name) %}\n\n {%- set new_event_limits_table = ref(package_name~'_base_new_event_limits') -%}\n\n {{ return(new_event_limits_table) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8795059, "supported_languages": null}, "macro.snowplow_utils.get_session_lookback_limit": {"name": "get_session_lookback_limit", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/incremental_hooks/get_session_lookback_limit.sql", "original_file_path": "macros/incremental_hooks/get_session_lookback_limit.sql", "unique_id": "macro.snowplow_utils.get_session_lookback_limit", "macro_sql": "{% macro get_session_lookback_limit(lower_limit) %}\n\n {% if not execute %}\n {{ return('')}}\n {% endif %}\n\n {% set limit_query %}\n select\n {{ snowplow_utils.timestamp_add(\n 'day',\n -var(\"snowplow__session_lookback_days\", 365),\n lower_limit) }} as session_lookback_limit\n\n {% endset %}\n\n {% set results = run_query(limit_query) %}\n\n {% if execute %}\n\n {% set session_lookback_limit = snowplow_utils.cast_to_tstamp(results.columns[0].values()[0]) %}\n\n {{ return(session_lookback_limit) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.timestamp_add", "macro.dbt.run_query", "macro.snowplow_utils.cast_to_tstamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.8811483, "supported_languages": null}, "macro.snowplow_utils.base_create_snowplow_sessions_lifecycle_manifest": {"name": "base_create_snowplow_sessions_lifecycle_manifest", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/base/base_create_snowplow_sessions_lifecycle_manifest.sql", "original_file_path": "macros/base/base_create_snowplow_sessions_lifecycle_manifest.sql", "unique_id": "macro.snowplow_utils.base_create_snowplow_sessions_lifecycle_manifest", "macro_sql": "{% macro base_create_snowplow_sessions_lifecycle_manifest(session_identifiers=[{\"schema\": \"atomic\", \"field\" : \"domain_sessionid\"}], session_sql=none, session_timestamp='load_tstamp', user_identifiers=[{\"schema\": \"atomic\", \"field\" : \"domain_userid\"}], user_sql=none, quarantined_sessions=none, derived_tstamp_partitioned=true, days_late_allowed=3, max_session_days=3, app_ids=[], snowplow_events_database=none, snowplow_events_schema='atomic', snowplow_events_table='events', event_limits_table='snowplow_base_new_event_limits', incremental_manifest_table='snowplow_incremental_manifest', package_name='snowplow') %}\n {{ return(adapter.dispatch('base_create_snowplow_sessions_lifecycle_manifest', 'snowplow_utils')(session_identifiers, session_sql, session_timestamp, user_identifiers, user_sql, quarantined_sessions, derived_tstamp_partitioned, days_late_allowed, max_session_days, app_ids, snowplow_events_database, snowplow_events_schema, snowplow_events_table, event_limits_table, incremental_manifest_table, package_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.default__base_create_snowplow_sessions_lifecycle_manifest"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.901205, "supported_languages": null}, "macro.snowplow_utils.default__base_create_snowplow_sessions_lifecycle_manifest": {"name": "default__base_create_snowplow_sessions_lifecycle_manifest", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/base/base_create_snowplow_sessions_lifecycle_manifest.sql", "original_file_path": "macros/base/base_create_snowplow_sessions_lifecycle_manifest.sql", "unique_id": "macro.snowplow_utils.default__base_create_snowplow_sessions_lifecycle_manifest", "macro_sql": "{% macro default__base_create_snowplow_sessions_lifecycle_manifest(session_identifiers, session_sql, session_timestamp, user_identifiers, user_sql, quarantined_sessions, derived_tstamp_partitioned, days_late_allowed, max_session_days, app_ids, snowplow_events_database, snowplow_events_schema, snowplow_events_table, event_limits_table, incremental_manifest_table, package_name) %}\n {% set base_event_limits = ref(event_limits_table) %}\n {% set lower_limit, upper_limit, _ = snowplow_utils.return_base_new_event_limits(base_event_limits) %}\n {% set session_lookback_limit = snowplow_utils.get_session_lookback_limit(lower_limit) %}\n {% set is_run_with_new_events = snowplow_utils.is_run_with_new_events(package_name, event_limits_table, incremental_manifest_table) %}\n {% set snowplow_events = api.Relation.create(database=snowplow_events_database, schema=snowplow_events_schema, identifier=snowplow_events_table) %}\n\n {% set sessions_lifecycle_manifest_query %}\n\n with new_events_session_ids_init as (\n select\n {% if session_sql %}\n {{ session_sql }} as session_identifier,\n {% elif session_identifiers|length > 0 %}\n COALESCE(\n {% for identifier in session_identifiers %}\n {%- if identifier['schema']|lower != 'atomic' -%}\n {{ snowplow_utils.get_field(identifier['schema'], identifier['field'], 'e', dbt.type_string(), 0, snowplow_events) }}\n {%- else -%}\n e.{{identifier['field']}}\n {%- endif -%}\n ,\n {%- endfor -%}\n NULL\n ) as session_identifier,\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"Need to specify either session identifiers or custom session SQL\") %}\n {%- endif %}\n {%- if user_sql -%}\n {{ user_sql }} as user_identifier,\n {%- elif user_identifiers|length > 0 %}\n max(\n COALESCE(\n {% for identifier in user_identifiers %}\n {%- if identifier['schema']|lower != 'atomic' -%}\n {{ snowplow_utils.get_field(identifier['schema'], identifier['field'], 'e', dbt.type_string(), 0, snowplow_events) }}\n {%- else -%}\n e.{{identifier['field']}}\n {%- endif -%}\n ,\n {%- endfor -%}\n NULL\n )\n ) as user_identifier, -- Edge case 1: Arbitary selection to avoid window function like first_value.\n {% else %}\n {% do exceptions.raise_compiler_error(\"Need to specify either user identifiers or custom user SQL\") %}\n {%- endif %}\n min({{ session_timestamp }}) as start_tstamp,\n max({{ session_timestamp }}) as end_tstamp\n\n from {{ snowplow_events }} e\n\n where\n dvce_sent_tstamp <= {{ snowplow_utils.timestamp_add('day', days_late_allowed, 'dvce_created_tstamp') }} -- don't process data that's too late\n and {{ session_timestamp }} >= {{ lower_limit }}\n and {{ session_timestamp }} <= {{ upper_limit }}\n and {{ snowplow_utils.app_id_filter(app_ids) }}\n and {{ is_run_with_new_events }} --don't reprocess sessions that have already been processed.\n {% if derived_tstamp_partitioned and target.type == 'bigquery' | as_bool() %} -- BQ only\n and derived_tstamp >= {{ lower_limit }}\n and derived_tstamp <= {{ upper_limit }}\n {% endif %}\n\n group by 1\n ), new_events_session_ids as (\n select *\n from new_events_session_ids_init e\n {% if quarantined_sessions %}\n where session_identifier is not null\n and not exists (select 1 from {{ ref(quarantined_sessions) }} as a where a.session_identifier = e.session_identifier) -- don't continue processing v.long sessions\n {%- endif %}\n\n )\n {% if is_incremental() %}\n\n , previous_sessions as (\n select *\n\n from {{ this }}\n\n where start_tstamp >= {{ session_lookback_limit }}\n and {{ is_run_with_new_events }} --don't reprocess sessions that have already been processed.\n )\n\n , session_lifecycle as (\n select\n ns.session_identifier,\n coalesce(self.user_identifier, ns.user_identifier) as user_identifier, -- Edge case 1: Take previous value to keep domain_userid consistent. Not deterministic but performant\n least(ns.start_tstamp, coalesce(self.start_tstamp, ns.start_tstamp)) as start_tstamp,\n greatest(ns.end_tstamp, coalesce(self.end_tstamp, ns.end_tstamp)) as end_tstamp -- BQ 1 NULL will return null hence coalesce\n\n from new_events_session_ids ns\n left join previous_sessions as self\n on ns.session_identifier = self.session_identifier\n\n where\n self.session_identifier is null -- process all new sessions\n or self.end_tstamp < {{ snowplow_utils.timestamp_add('day', max_session_days, 'self.start_tstamp') }} --stop updating sessions exceeding 3 days\n )\n\n {% else %}\n\n , session_lifecycle as (\n\n select * from new_events_session_ids\n\n )\n\n {% endif %}\n\n select\n sl.session_identifier,\n sl.user_identifier,\n sl.start_tstamp,\n least({{ snowplow_utils.timestamp_add('day', max_session_days, 'sl.start_tstamp') }}, sl.end_tstamp) as end_tstamp -- limit session length to max_session_days\n {% if target.type in ['databricks', 'spark'] -%}\n , DATE(start_tstamp) as start_tstamp_date\n {%- endif %}\n\n from session_lifecycle sl\n {% endset %}\n\n {{ return(sessions_lifecycle_manifest_query) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.return_base_new_event_limits", "macro.snowplow_utils.get_session_lookback_limit", "macro.snowplow_utils.is_run_with_new_events", "macro.snowplow_utils.get_field", "macro.dbt.type_string", "macro.snowplow_utils.timestamp_add", "macro.snowplow_utils.app_id_filter", "macro.dbt.is_incremental"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.9074614, "supported_languages": null}, "macro.snowplow_utils.postgres__base_create_snowplow_sessions_lifecycle_manifest": {"name": "postgres__base_create_snowplow_sessions_lifecycle_manifest", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/base/base_create_snowplow_sessions_lifecycle_manifest.sql", "original_file_path": "macros/base/base_create_snowplow_sessions_lifecycle_manifest.sql", "unique_id": "macro.snowplow_utils.postgres__base_create_snowplow_sessions_lifecycle_manifest", "macro_sql": "{% macro postgres__base_create_snowplow_sessions_lifecycle_manifest(session_identifiers, session_sql, session_timestamp, user_identifiers, user_sql, quarantined_sessions, derived_tstamp_partitioned, days_late_allowed, max_session_days, app_ids, snowplow_events_database, snowplow_events_schema, snowplow_events_table, event_limits_table, incremental_manifest_table, package_name) %}\n {% set base_event_limits = ref(event_limits_table) %}\n {% set lower_limit, upper_limit, _ = snowplow_utils.return_base_new_event_limits(base_event_limits) %}\n {% set session_lookback_limit = snowplow_utils.get_session_lookback_limit(lower_limit) %}\n {% set is_run_with_new_events = snowplow_utils.is_run_with_new_events(package_name, event_limits_table, incremental_manifest_table) %}\n {% set snowplow_events = api.Relation.create(database=snowplow_events_database, schema=snowplow_events_schema, identifier=snowplow_events_table) %}\n\n {% set sessions_lifecycle_manifest_query %}\n\n with\n {# Get all the session and user contexts extracted and ready to join later #}\n {% set unique_identifiers = dict() %} {# need to avoid duplicate contexts when values come from the same one, so just use the first of that context #}\n\n {% if session_identifiers %}\n {% for identifier in session_identifiers %}\n {% if identifier['schema']|lower != 'atomic' and identifier['schema'] not in unique_identifiers %}\n {{ snowplow_utils.get_sde_or_context(snowplow_events_schema, identifier['schema'], lower_limit, upper_limit, identifier['prefix']) }},\n {% do unique_identifiers.update({identifier['schema']: identifier}) %}\n {%- endif -%}\n {% endfor %}\n {% endif %}\n\n {% if user_identifiers%}\n {% for identifier in user_identifiers %}\n {% if identifier['schema']|lower != 'atomic' and identifier['schema'] not in unique_identifiers %}\n {{ snowplow_utils.get_sde_or_context(snowplow_events_schema, identifier['schema'], lower_limit, upper_limit, identifier['prefix']) }},\n {% do unique_identifiers.update({identifier['schema']: identifier}) %}\n {%- endif -%}\n {% endfor %}\n {% endif %}\n\n {# Produce the core session and single user identifier for sessions with new events #}\n new_events_session_ids_init as (\n select\n {% if session_sql %}\n {{ session_sql }} as session_identifier,\n {% elif session_identifiers|length > 0 %}\n COALESCE(\n {% for identifier in session_identifiers %}\n {%- if identifier['schema']|lower != 'atomic' -%}\n {# Use the parsed version of the context to ensure we have the right alias and prefix #}\n {% set uniq_iden = unique_identifiers[identifier['schema']] %}\n {% if uniq_iden['alias'] %}{{uniq_iden['alias']}}{% else %}{{uniq_iden['schema']}}{% endif %}.{% if uniq_iden['prefix'] %}{{ uniq_iden['prefix'] ~ '_' }}{% endif %}{{identifier['field']}}\n {%- else -%}\n e.{{identifier['field']}}\n {%- endif -%}\n ,\n {%- endfor -%}\n NULL\n ) as session_identifier,\n {% else %}\n {% do exceptions.raise_compiler_error(\"Need to specify either session identifiers or custom session SQL\") %}\n {% endif %}\n {% if user_sql %}\n {{ user_sql }} as user_identifier,\n {% elif user_identifiers|length > 0 %}\n max(\n COALESCE(\n {% for identifier in user_identifiers %}\n {%- if identifier['schema']|lower != 'atomic' %}\n {# Use the parsed version of the context to ensure we have the right alias and prefix #}\n {% set uniq_iden = unique_identifiers[identifier['schema']] %}\n {% if uniq_iden['alias'] %}{{uniq_iden['alias']}}{% else %}{{uniq_iden['schema']}}{% endif %}.{% if uniq_iden['prefix'] %}{{ uniq_iden['prefix'] ~ '_' }}{% endif %}{{identifier['field']}}\n {%- else %}\n e.{{identifier['field']}}\n {%- endif -%}\n ,\n {%- endfor -%}\n NULL\n )\n ) as user_identifier, -- Edge case 1: Arbitary selection to avoid window function like first_value.\n {% else %}\n {% do exceptions.raise_compiler_error(\"Need to specify either user identifiers or custom user SQL\") %}\n {% endif %}\n min({{ session_timestamp }}) as start_tstamp,\n max({{ session_timestamp }}) as end_tstamp\n\n from {{ snowplow_events }} e\n {% if unique_identifiers|length > 0 %}\n {% for identifier in unique_identifiers.values() %}\n {%- if identifier['schema']|lower != 'atomic' -%}\n left join {{ identifier['schema'] }} {% if identifier['alias'] %}as {{ identifier['alias'] }}{% endif %} on e.event_id = {% if identifier['alias'] %}{{ identifier['alias']}}{% else %}{{ identifier['schema'] }}{% endif %}.{% if identifier['prefix'] %}{{ identifier['prefix'] }}{% else %}{{ identifier['schema']}}{% endif %}__id and e.collector_tstamp = {% if identifier['alias'] %}{{ identifier['alias']}}{% else %}{{ identifier['schema'] }}{% endif %}.{% if identifier['prefix'] %}{{ identifier['prefix'] }}{% else %}{{ identifier['schema']}}{% endif %}__tstamp\n {% endif -%}\n {% endfor %}\n {% endif %}\n where\n dvce_sent_tstamp <= {{ snowplow_utils.timestamp_add('day', days_late_allowed, 'dvce_created_tstamp') }} -- don't process data that's too late\n and {{ session_timestamp }} >= {{ lower_limit }}\n and {{ session_timestamp }} <= {{ upper_limit }}\n and {{ snowplow_utils.app_id_filter(app_ids) }}\n and {{ is_run_with_new_events }} --don't reprocess sessions that have already been processed.\n {% if derived_tstamp_partitioned and target.type == 'bigquery' | as_bool() %} -- BQ only\n and derived_tstamp >= {{ lower_limit }}\n and derived_tstamp <= {{ upper_limit }}\n {% endif %}\n\n group by 1\n\n {# Exclude quarantined sessions #}\n ), new_events_session_ids as (\n select *\n from new_events_session_ids_init e\n {% if quarantined_sessions %}\n where session_identifier is not null\n and not exists (select 1 from {{ ref(quarantined_sessions) }} as a where a.session_identifier = e.session_identifier) -- don't continue processing v.long sessions\n {%- endif %}\n )\n\n {% if is_incremental() %}\n\n , previous_sessions as (\n select *\n\n from {{ this }}\n\n where start_tstamp >= {{ session_lookback_limit }}\n and {{ is_run_with_new_events }} --don't reprocess sessions that have already been processed.\n )\n\n , session_lifecycle as (\n select\n ns.session_identifier,\n coalesce(self.user_identifier, ns.user_identifier) as user_identifier, -- Edge case 1: Take previous value to keep domain_userid consistent. Not deterministic but performant\n least(ns.start_tstamp, coalesce(self.start_tstamp, ns.start_tstamp)) as start_tstamp,\n greatest(ns.end_tstamp, coalesce(self.end_tstamp, ns.end_tstamp)) as end_tstamp -- BQ 1 NULL will return null hence coalesce\n\n from new_events_session_ids ns\n left join previous_sessions as self\n on ns.session_identifier = self.session_identifier\n\n where\n self.session_identifier is null -- process all new sessions\n or self.end_tstamp < {{ snowplow_utils.timestamp_add('day', max_session_days, 'self.start_tstamp') }} --stop updating sessions exceeding 3 days\n )\n\n {% else %}\n\n , session_lifecycle as (\n\n select * from new_events_session_ids\n\n )\n\n {% endif %}\n\n select\n sl.session_identifier,\n sl.user_identifier,\n sl.start_tstamp,\n least({{ snowplow_utils.timestamp_add('day', max_session_days, 'sl.start_tstamp') }}, sl.end_tstamp) as end_tstamp -- limit session length to max_session_days\n\n from session_lifecycle sl\n {% endset %}\n\n {{ return(sessions_lifecycle_manifest_query) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.return_base_new_event_limits", "macro.snowplow_utils.get_session_lookback_limit", "macro.snowplow_utils.is_run_with_new_events", "macro.snowplow_utils.get_sde_or_context", "macro.snowplow_utils.timestamp_add", "macro.snowplow_utils.app_id_filter", "macro.dbt.is_incremental"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.9186087, "supported_languages": null}, "macro.snowplow_utils.base_create_snowplow_events_this_run": {"name": "base_create_snowplow_events_this_run", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/base/base_create_snowplow_events_this_run.sql", "original_file_path": "macros/base/base_create_snowplow_events_this_run.sql", "unique_id": "macro.snowplow_utils.base_create_snowplow_events_this_run", "macro_sql": "{% macro base_create_snowplow_events_this_run(sessions_this_run_table='snowplow_base_sessions_this_run', session_identifiers=[{\"schema\" : \"atomic\", \"field\" : \"domain_sessionid\"}], session_sql=none, session_timestamp='load_tstamp', derived_tstamp_partitioned=true, days_late_allowed=3, max_session_days=3, app_ids=[], snowplow_events_database=none, snowplow_events_schema='atomic', snowplow_events_table='events', entities_or_sdes=none, custom_sql=none) %}\n {{ return(adapter.dispatch('base_create_snowplow_events_this_run', 'snowplow_utils')(sessions_this_run_table, session_identifiers, session_sql, session_timestamp, derived_tstamp_partitioned, days_late_allowed, max_session_days, app_ids, snowplow_events_database, snowplow_events_schema, snowplow_events_table, entities_or_sdes, custom_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.default__base_create_snowplow_events_this_run"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.937768, "supported_languages": null}, "macro.snowplow_utils.default__base_create_snowplow_events_this_run": {"name": "default__base_create_snowplow_events_this_run", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/base/base_create_snowplow_events_this_run.sql", "original_file_path": "macros/base/base_create_snowplow_events_this_run.sql", "unique_id": "macro.snowplow_utils.default__base_create_snowplow_events_this_run", "macro_sql": "{% macro default__base_create_snowplow_events_this_run(sessions_this_run_table, session_identifiers, session_sql, session_timestamp, derived_tstamp_partitioned, days_late_allowed, max_session_days, app_ids, snowplow_events_database, snowplow_events_schema, snowplow_events_table, entities_or_sdes, custom_sql) %}\n {%- set lower_limit, upper_limit = snowplow_utils.return_limits_from_model(ref(sessions_this_run_table),\n 'start_tstamp',\n 'end_tstamp') %}\n {% set sessions_this_run = ref(sessions_this_run_table) %}\n {% set snowplow_events = api.Relation.create(database=snowplow_events_database, schema=snowplow_events_schema, identifier=snowplow_events_table) %}\n\n {% set events_this_run_query %}\n with identified_events AS (\n select\n {% if session_sql %}\n {{ session_sql }} as session_identifier,\n {% else -%}\n COALESCE(\n {% for identifier in session_identifiers %}\n {%- if identifier['schema']|lower != 'atomic' -%}\n {{ snowplow_utils.get_field(identifier['schema'], identifier['field'], 'e', dbt.type_string(), 0, snowplow_events) }}\n {%- else -%}\n e.{{identifier['field']}}\n {%- endif -%}\n ,\n {%- endfor -%}\n NULL\n ) as session_identifier,\n {%- endif %}\n e.*\n {% if custom_sql %}\n , {{ custom_sql }}\n {% endif %}\n\n from {{ snowplow_events }} e\n\n )\n\n select\n a.*,\n b.user_identifier -- take user_identifier from manifest. This ensures only 1 domain_userid per session.\n\n from identified_events as a\n inner join {{ sessions_this_run }} as b\n on a.session_identifier = b.session_identifier\n\n where a.{{ session_timestamp }} <= {{ snowplow_utils.timestamp_add('day', max_session_days, 'b.start_tstamp') }}\n and a.dvce_sent_tstamp <= {{ snowplow_utils.timestamp_add('day', days_late_allowed, 'a.dvce_created_tstamp') }}\n and a.{{ session_timestamp }} >= {{ lower_limit }}\n and a.{{ session_timestamp }} <= {{ upper_limit }}\n and a.{{ session_timestamp }} >= b.start_tstamp -- deal with late loading events\n\n {% if derived_tstamp_partitioned and target.type == 'bigquery' | as_bool() %}\n and a.derived_tstamp >= {{ snowplow_utils.timestamp_add('hour', -1, lower_limit) }}\n and a.derived_tstamp <= {{ upper_limit }}\n {% endif %}\n\n and {{ snowplow_utils.app_id_filter(app_ids) }}\n\n qualify row_number() over (partition by a.event_id order by a.{{ session_timestamp }}, a.dvce_created_tstamp) = 1\n {% endset %}\n\n {{ return(events_this_run_query) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.return_limits_from_model", "macro.snowplow_utils.get_field", "macro.dbt.type_string", "macro.snowplow_utils.timestamp_add", "macro.snowplow_utils.app_id_filter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.9414713, "supported_languages": null}, "macro.snowplow_utils.postgres__base_create_snowplow_events_this_run": {"name": "postgres__base_create_snowplow_events_this_run", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/base/base_create_snowplow_events_this_run.sql", "original_file_path": "macros/base/base_create_snowplow_events_this_run.sql", "unique_id": "macro.snowplow_utils.postgres__base_create_snowplow_events_this_run", "macro_sql": "{% macro postgres__base_create_snowplow_events_this_run(sessions_this_run_table, session_identifiers, session_sql, session_timestamp, derived_tstamp_partitioned, days_late_allowed, max_session_days, app_ids, snowplow_events_database, snowplow_events_schema, snowplow_events_table, entities_or_sdes, custom_sql) %}\n {%- set lower_limit, upper_limit = snowplow_utils.return_limits_from_model(ref(sessions_this_run_table),\n 'start_tstamp',\n 'end_tstamp') %}\n\n\n {# Get all the session and user contexts extracted and ready to join later #}\n {% set unique_session_identifiers = dict() %} {# need to avoid duplicate contexts when values come from the same one, so just use the first of that context #}\n\n {% if session_identifiers %}\n {% for identifier in session_identifiers %}\n {% if identifier['schema']|lower != 'atomic' and identifier['schema'] not in unique_session_identifiers %}\n {% do unique_session_identifiers.update({identifier['schema']: identifier}) %}\n {%- endif -%}\n {% if identifier['schema'] in unique_session_identifiers.keys() %}\n {% if identifier['alias'] != unique_session_identifiers[identifier['schema']]['alias'] or identifier['prefix'] != unique_session_identifiers[identifier['schema']]['prefix'] %}\n {% do exceptions.warn(\"Snowplow Warning: Duplicate context ( \" ~ identifier['schema'] ~\" ) detected for session identifiers, using first alias and prefix provided ( \" ~ unique_session_identifiers[identifier['schema']] ~ \" ) in base events this run.\") %}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% endif %}\n\n {# check uniqueness of entity/sde names provided, warn those also in session identifiers #}\n {% if entities_or_sdes %}\n {% set ent_sde_names = [] %}\n {% for ent_or_sde in entities_or_sdes %}\n {% do ent_sde_names.append(ent_or_sde['schema']) %}\n {% if ent_or_sde['schema'] in unique_session_identifiers.keys() %}\n {% if ent_or_sde['alias'] != unique_session_identifiers[ent_or_sde['schema']]['alias'] or ent_or_sde['prefix'] != unique_session_identifiers[ent_or_sde['schema']]['prefix'] %}\n {% do exceptions.warn(\"Snowplow Warning: Context or SDE ( \" ~ ent_or_sde['schema'] ~ \" ) used for session_identifier is being included, using alias and prefix from session_identifier ( \" ~ unique_session_identifiers[ent_or_sde['schema']] ~ \" ).\") %}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% if ent_sde_names | unique | list | length != entities_or_sdes | length %}\n {% do exceptions.raise_compiler_error(\"There are duplicate schema names in your provided `entities_or_sdes` list. Please correct this before proceeding.\")%}\n {% endif %}\n {% endif %}\n\n {% set sessions_this_run = ref(sessions_this_run_table) %}\n {% set snowplow_events = api.Relation.create(database=snowplow_events_database, schema=snowplow_events_schema, identifier=snowplow_events_table) %}\n\n {% set events_this_run_query %}\n with\n\n {# Extract the session identifier contexts into CTEs #}\n {% if unique_session_identifiers -%}\n {% for identifier in unique_session_identifiers.values() %}\n {% if identifier['schema']|lower != 'atomic' %}\n {{ snowplow_utils.get_sde_or_context(snowplow_events_schema, identifier['schema'], lower_limit, upper_limit, identifier['prefix']) }},\n {%- endif -%}\n {% endfor %}\n {% endif %}\n\n {# Extract the entitity/sde contexts into CTEs UNLESS they are in the session already #}\n {%- if entities_or_sdes -%}\n {%- for ent_or_sde in entities_or_sdes -%}\n {%- set name = none -%}\n {%- set prefix = none -%}\n {%- set single_entity = true -%}\n {%- if ent_or_sde['schema'] -%}\n {%- set name = ent_or_sde['schema'] -%}\n {%- else -%}\n {%- do exceptions.raise_compiler_error(\"Need to specify the schema name of your Entity or SDE using the {'schema'} attribute in a key-value map.\") -%}\n {%- endif -%}\n {%- if ent_or_sde['prefix'] -%}\n {%- set prefix = ent_or_sde['prefix'] -%}\n {%- else -%}\n {%- set prefix = name -%}\n {%- endif -%}\n {%- if ent_or_sde['single_entity'] and ent_or_sde['single_entity'] is boolean -%}\n {%- set single_entity = ent_or_sde['single_entity'] -%}\n {%- endif %}\n {% if ent_or_sde['schema'] not in unique_session_identifiers.keys() %} {# Exclude any that we have already made above #}\n {{ snowplow_utils.get_sde_or_context(snowplow_events_schema, name, lower_limit, upper_limit, prefix, single_entity) }},\n {% endif %}\n {% endfor -%}\n {%- endif %}\n\n identified_events AS (\n select\n {% if session_sql -%}\n {{ session_sql }} as session_identifier,\n {% else -%}\n COALESCE(\n {% for identifier in session_identifiers %}\n {%- if identifier['schema']|lower != 'atomic' %}\n {# Use the parsed version of the context to ensure we have the right alias and prefix #}\n {% set uniq_iden = unique_session_identifiers[identifier['schema']] %}\n {% if uniq_iden['alias'] %}{{uniq_iden['alias']}}{% else %}{{uniq_iden['schema']}}{% endif %}.{% if uniq_iden['prefix'] %}{{ uniq_iden['prefix'] }}{% else %}{{ uniq_iden['schema']}}{% endif %}_{{identifier['field']}}\n {%- else %}\n e.{{identifier['field']}}\n {%- endif -%}\n ,\n {%- endfor -%}\n NULL\n ) as session_identifier,\n {%- endif %}\n e.*\n {% if custom_sql %}\n , {{ custom_sql }}\n {%- endif %}\n\n from {{ snowplow_events }} e\n {% if unique_session_identifiers|length > 0 %}\n {% for identifier in unique_session_identifiers.values() %}\n {%- if identifier['schema']|lower != 'atomic' -%}\n left join {{ identifier['schema'] }} {% if identifier['alias'] %}as {{ identifier['alias'] }}{% endif %} on e.event_id = {% if identifier['alias'] %}{{ identifier['alias']}}{% else %}{{ identifier['schema'] }}{% endif %}.{{identifier['prefix']}}__id and e.collector_tstamp = {% if identifier['alias'] %}{{ identifier['alias']}}{% else %}{{ identifier['schema'] }}{% endif %}.{{ identifier['prefix'] }}__tstamp\n {% endif -%}\n {% endfor %}\n {% endif %}\n\n ), events_this_run as (\n\n select\n a.*,\n b.user_identifier, -- take user_identifier from manifest. This ensures only 1 domain_userid per session.\n row_number() over (partition by a.event_id order by a.{{ session_timestamp }}, a.dvce_created_tstamp ) as event_id_dedupe_index,\n count(*) over (partition by a.event_id) as event_id_dedupe_count\n\n from identified_events as a\n inner join {{ sessions_this_run }} as b\n on a.session_identifier = b.session_identifier\n\n where a.{{ session_timestamp }} <= {{ snowplow_utils.timestamp_add('day', max_session_days, 'b.start_tstamp') }}\n and a.dvce_sent_tstamp <= {{ snowplow_utils.timestamp_add('day', days_late_allowed, 'a.dvce_created_tstamp') }}\n and a.{{ session_timestamp }} >= {{ lower_limit }}\n and a.{{ session_timestamp }} <= {{ upper_limit }}\n and a.{{ session_timestamp }} >= b.start_tstamp -- deal with late loading events\n and {{ snowplow_utils.app_id_filter(app_ids) }}\n\n )\n\n select *\n\n from events_this_run as e\n {%- if entities_or_sdes -%}\n {% for ent_or_sde in entities_or_sdes -%}\n {%- set name = none -%}\n {%- set prefix = none -%}\n {%- set single_entity = true -%}\n {%- set alias = none -%}\n {%- if ent_or_sde['schema'] -%}\n {%- set name = ent_or_sde['schema'] -%}\n {%- else -%}\n {%- do exceptions.raise_compiler_error(\"Need to specify the schema name of your Entity or SDE using the {'schema'} attribute in a key-value map.\") -%}\n {%- endif -%}\n {%- if ent_or_sde['prefix'] and name not in unique_session_identifiers.keys() -%}\n {%- set prefix = ent_or_sde['prefix'] -%}\n {%- elif name in unique_session_identifiers.keys() and unique_session_identifiers.get(name, {}).get('prefix') -%}\n {%- set prefix = unique_session_identifiers[name]['prefix'] -%}\n {%- else -%}\n {%- set prefix = name -%}\n {%- endif -%}\n {%- if ent_or_sde['single_entity'] and ent_or_sde['single_entity'] is boolean -%}\n {%- set single_entity = ent_or_sde['single_entity'] -%}\n {%- endif -%}\n {%- if ent_or_sde['alias'] and name not in unique_session_identifiers.keys() -%}\n {%- set alias = ent_or_sde['alias'] -%}\n {%- elif name in unique_session_identifiers.keys() and unique_session_identifiers.get(name, {}).get('alias') -%}\n {%- set alias = unique_session_identifiers[name] -%}\n {%- endif %}\n left join {{name}} {% if alias -%} as {{ alias }} {%- endif %} on e.event_id = {% if alias -%} {{ alias }} {%- else -%}{{name}}{%- endif %}.{{prefix}}__id\n and e.collector_tstamp = {% if alias -%} {{ alias }} {%- else -%}{{name}}{%- endif %}.{{prefix}}__tstamp\n {% if not single_entity -%} and mod({% if alias -%} {{ alias }} {%- else -%}{{name}}{%- endif %}.{{prefix}}__index, e.event_id_dedupe_count) = 0{%- endif -%}\n {% endfor %}\n {% endif %}\n where event_id_dedupe_index = 1\n\n {% endset %}\n\n {{ return(events_this_run_query) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.return_limits_from_model", "macro.snowplow_utils.get_sde_or_context", "macro.snowplow_utils.timestamp_add", "macro.snowplow_utils.app_id_filter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.9574802, "supported_languages": null}, "macro.snowplow_utils.base_create_snowplow_sessions_this_run": {"name": "base_create_snowplow_sessions_this_run", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/base/base_create_snowplow_sessions_this_run.sql", "original_file_path": "macros/base/base_create_snowplow_sessions_this_run.sql", "unique_id": "macro.snowplow_utils.base_create_snowplow_sessions_this_run", "macro_sql": "{% macro base_create_snowplow_sessions_this_run(lifecycle_manifest_table='snowplow_base_sessions_lifecycle_manifest', new_event_limits_table='snowplow_base_new_event_limits') %}\n {% set lifecycle_manifest = ref(lifecycle_manifest_table) %}\n {% set new_event_limits = ref(new_event_limits_table) %}\n {%- set lower_limit,\n upper_limit,\n session_start_limit = snowplow_utils.return_base_new_event_limits(new_event_limits) %}\n\n {% set sessions_sql %}\n\n\n select\n s.session_identifier,\n s.user_identifier,\n s.start_tstamp,\n -- end_tstamp used in next step to limit events. When backfilling, set end_tstamp to upper_limit if end_tstamp > upper_limit.\n -- This ensures we don't accidentally process events after upper_limit\n case when s.end_tstamp > {{ upper_limit }} then {{ upper_limit }} else s.end_tstamp end as end_tstamp\n\n from {{ lifecycle_manifest }} s\n\n where\n -- General window of start_tstamps to limit table scans. Logic complicated by backfills.\n -- To be within the run, session start_tstamp must be >= lower_limit - max_session_days as we limit end_tstamp in manifest to start_tstamp + max_session_days\n s.start_tstamp >= {{ session_start_limit }}\n and s.start_tstamp <= {{ upper_limit }}\n -- Select sessions within window that either; start or finish between lower & upper limit, start and finish outside of lower and upper limits\n and not (s.start_tstamp > {{ upper_limit }} or s.end_tstamp < {{ lower_limit }})\n {% endset %}\n\n {{ return(sessions_sql) }}\n{% endmacro%}", "depends_on": {"macros": ["macro.snowplow_utils.return_base_new_event_limits"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.9596286, "supported_languages": null}, "macro.snowplow_utils.base_quarantine_sessions": {"name": "base_quarantine_sessions", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/base/base_quarantine_sessions.sql", "original_file_path": "macros/base/base_quarantine_sessions.sql", "unique_id": "macro.snowplow_utils.base_quarantine_sessions", "macro_sql": "{% macro base_quarantine_sessions(max_session_length, quarantined_sessions='snowplow_base_quarantined_sessions', src_relation=this) %}\n\n {{ return(adapter.dispatch('base_quarantine_sessions', 'snowplow_utils')(max_session_length, quarantined_sessions, src_relation)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.default__base_quarantine_sessions"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.9613643, "supported_languages": null}, "macro.snowplow_utils.default__base_quarantine_sessions": {"name": "default__base_quarantine_sessions", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/base/base_quarantine_sessions.sql", "original_file_path": "macros/base/base_quarantine_sessions.sql", "unique_id": "macro.snowplow_utils.default__base_quarantine_sessions", "macro_sql": "{% macro default__base_quarantine_sessions(max_session_length, quarantined_sessions_str, src_relation) %}\n {% set quarantined_sessions = ref(quarantined_sessions_str) %}\n\n {% set sessions_to_quarantine_sql = snowplow_utils.base_get_quarantine_sql(src_relation, max_session_length) %}\n\n {% set quarantine_query %}\n\n merge into {{ quarantined_sessions }} trg\n using ({{ sessions_to_quarantine_sql }}) src\n on trg.session_identifier = src.session_identifier\n when not matched then insert (session_identifier) values(session_identifier);\n\n {% endset %}\n\n {{ return(quarantine_query) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.base_get_quarantine_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.9622126, "supported_languages": null}, "macro.snowplow_utils.postgres__base_quarantine_sessions": {"name": "postgres__base_quarantine_sessions", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/base/base_quarantine_sessions.sql", "original_file_path": "macros/base/base_quarantine_sessions.sql", "unique_id": "macro.snowplow_utils.postgres__base_quarantine_sessions", "macro_sql": "{% macro postgres__base_quarantine_sessions(max_session_length, quarantined_sessions_str, src_relation) %}\n\n {% set quarantined_sessions = ref(quarantined_sessions_str) %}\n {% set sessions_to_quarantine_tmp = 'sessions_to_quarantine_tmp' %}\n\n begin;\n\n create temporary table {{ sessions_to_quarantine_tmp }} as (\n {{ snowplow_utils.base_get_quarantine_sql(src_relation, max_session_length) }}\n );\n\n delete from {{ quarantined_sessions }}\n where session_identifier in (select session_identifier from {{ sessions_to_quarantine_tmp }});\n\n insert into {{ quarantined_sessions }} (\n select session_identifier from {{ sessions_to_quarantine_tmp }});\n\n drop table {{ sessions_to_quarantine_tmp }};\n\n commit;\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.base_get_quarantine_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.9630516, "supported_languages": null}, "macro.snowplow_utils.base_get_quarantine_sql": {"name": "base_get_quarantine_sql", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/base/base_quarantine_sessions.sql", "original_file_path": "macros/base/base_quarantine_sessions.sql", "unique_id": "macro.snowplow_utils.base_get_quarantine_sql", "macro_sql": "{% macro base_get_quarantine_sql(relation, max_session_length) %}\n\n {# Find sessions exceeding max_session_days #}\n {% set quarantine_sql -%}\n\n select\n session_identifier\n\n from {{ relation }}\n -- '=' since end_tstamp is restricted to start_tstamp + max_session_days\n where end_tstamp = {{ snowplow_utils.timestamp_add(\n 'day',\n max_session_length,\n 'start_tstamp'\n ) }}\n\n {%- endset %}\n\n {{ return(quarantine_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.9636781, "supported_languages": null}, "macro.snowplow_utils.base_create_snowplow_incremental_manifest": {"name": "base_create_snowplow_incremental_manifest", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/base/base_create_snowplow_incremental_manifest.sql", "original_file_path": "macros/base/base_create_snowplow_incremental_manifest.sql", "unique_id": "macro.snowplow_utils.base_create_snowplow_incremental_manifest", "macro_sql": "{% macro base_create_snowplow_incremental_manifest() %}\n\n {% set create_manifest_query %}\n with prep as (\n select\n cast(null as {{ snowplow_utils.type_max_string() }}) model,\n cast('1970-01-01' as {{ type_timestamp() }}) as last_success\n )\n\n select *\n\n from prep\n where false\n {% endset %}\n\n {{ return(create_manifest_query) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.type_max_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.9644253, "supported_languages": null}, "macro.snowplow_utils.base_create_snowplow_quarantined_sessions": {"name": "base_create_snowplow_quarantined_sessions", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/base/base_create_snowplow_quarantined_sessions.sql", "original_file_path": "macros/base/base_create_snowplow_quarantined_sessions.sql", "unique_id": "macro.snowplow_utils.base_create_snowplow_quarantined_sessions", "macro_sql": "{% macro base_create_snowplow_quarantined_sessions() %}\n\n {% set create_quarantined_query %}\n with prep as (\n select\n {% if target.type == 'redshift' %} {# Done because max causes errors when used in subquery, #}\n cast(null as varchar(6000)) session_identifier\n {% else %}\n cast(null as {{ snowplow_utils.type_max_string() }}) session_identifier\n {% endif %}\n )\n\n select *\n\n from prep\n where false\n\n {% endset %}\n\n {{ return(create_quarantined_query) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.type_max_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.965361, "supported_languages": null}, "macro.snowplow_utils.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/materializations/base_incremental/common/get_merge_sql.sql", "original_file_path": "macros/materializations/base_incremental/common/get_merge_sql.sql", "unique_id": "macro.snowplow_utils.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target_tb, source, unique_key, dest_columns, incremental_predicates = none) -%}\n {# Set default predicates to pass on #}\n {%- set predicate_override = \"\" -%}\n {%- set orig_predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n\n {%- set optimize = config.get('snowplow_optimize') -%}\n {% if optimize %}\n\n -- run some queries to dynamically determine the min + max of this 'upsert_date_key' in the new data\n {%- set date_column = config.require('upsert_date_key') -%}\n {%- set disable_upsert_lookback = config.get('disable_upsert_lookback') -%} {# We do this for late arriving data possibly e.g. shifting a session start earlier #}\n\n {# We need the type of the column to get the correct cast of the default value #}\n {%- set columns = adapter.get_columns_in_relation(this) -%}\n {%- set date_type = [] %} {# Because you can't assign values in a loop otherwise #}\n {%- for col in columns -%}\n {%- if col.column|lower == date_column|lower -%}\n {% do date_type.append(col.dtype) %}\n {%- endif %}\n {%- endfor %}\n\n {% set get_limits_query %}\n\n {% if disable_upsert_lookback %}\n select\n coalesce(min({{ date_column }}), cast({{ dbt.current_timestamp() }} as {{ date_type[0] }}) ) as lower_limit,\n coalesce(max({{ date_column }}), cast({{ dbt.current_timestamp() }} as {{ date_type[0] }})) as upper_limit\n from {{ source }}\n {% else %}\n select\n coalesce(cast({{ dateadd('day', -var(\"snowplow__upsert_lookback_days\", 30), 'min('~date_column~')') }} as {{ date_type[0] }}), cast({{ dbt.current_timestamp() }} as {{ date_type[0] }})) as lower_limit,\n coalesce(max({{ date_column }}), cast({{ dbt.current_timestamp() }} as {{ date_type[0] }})) as upper_limit\n from {{ source }}\n {% endif %}\n {% endset %}\n\n {% set limits = run_query(get_limits_query)[0] %}\n {% set lower_limit, upper_limit = limits[0], limits[1] %}\n\n -- use those calculated min + max values to limit 'target' scan, to only the days with new data\n {% set predicate_override %}\n DBT_INTERNAL_DEST.{{ date_column }} between '{{ lower_limit }}' and '{{ upper_limit }}'\n {% endset %}\n {% endif %}\n\n {# Combine predicates with user provided ones #}\n {% set predicates = [predicate_override] + orig_predicates if predicate_override else orig_predicates %}\n -- standard merge from here\n {% if target.type in ['databricks', 'spark'] -%}\n {% set merge_sql = spark__get_merge_sql(target_tb, source, unique_key, dest_columns, predicates) %}\n {% else %}\n {% set merge_sql = dbt.default__get_merge_sql(target_tb, source, unique_key, dest_columns, predicates) %}\n {% endif %}\n\n {{ return(merge_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.dateadd", "macro.dbt.run_query", "macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.9738865, "supported_languages": null}, "macro.snowplow_utils.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/materializations/base_incremental/common/get_merge_sql.sql", "original_file_path": "macros/materializations/base_incremental/common/get_merge_sql.sql", "unique_id": "macro.snowplow_utils.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target_tb, source, unique_key, dest_columns, incremental_predicates) -%}\n {# Set default predicates to pass on #}\n {%- set predicate_override = \"\" -%}\n {%- set orig_predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set optimize = config.get('snowplow_optimize') -%}\n {% if optimize %}\n -- run some queries to dynamically determine the min + max of this 'upsert_date_key' in the new data\n {%- set date_column = config.require('upsert_date_key') -%}\n {%- set disable_upsert_lookback = config.get('disable_upsert_lookback') -%}\n\n {# We need the type of the column to get the correct cast of the default value is needed #}\n {%- set columns = adapter.get_columns_in_relation(this) -%}\n {%- set date_type = [] %} {# Because you can't assign values in a loop otherwise #}\n {%- for col in columns -%}\n {%- if col.column|lower == date_column|lower -%}\n {% do date_type.append(col.dtype) %}\n {%- endif %}\n {%- endfor %}\n\n {% set get_limits_query %}\n {% if disable_upsert_lookback %}\n select\n coalesce(min({{ date_column }}), cast({{ dbt.current_timestamp() }} as {{ date_type[0] }}) ) as lower_limit,\n coalesce(max({{ date_column }}), cast({{ dbt.current_timestamp() }} as {{ date_type[0] }}))as upper_limit\n from {{ source }}\n {% else %}\n select\n coalesce(cast({{ dateadd('day', -var(\"snowplow__upsert_lookback_days\", 30), 'min('~date_column~')') }} as {{ date_type[0] }}), cast({{ dbt.current_timestamp() }} as {{ date_type[0] }})) as lower_limit,\n coalesce(max({{ date_column }}), cast({{ dbt.current_timestamp() }} as {{ date_type[0] }})) as upper_limit\n from {{ source }}\n {% endif %}\n {% endset %}\n\n {% set limits = run_query(get_limits_query)[0] %}\n {% set lower_limit, upper_limit = limits[0], limits[1] %}\n -- use those calculated min + max values to limit 'target' scan, to only the days with new data\n {% set predicate_override %}\n {{ date_column }} between '{{ lower_limit }}' and '{{ upper_limit }}'\n {% endset %}\n {% endif %}\n {# Combine predicates with user provided ones #}\n {% set predicates = [predicate_override] + orig_predicates if predicate_override else orig_predicates %}\n -- standard merge from here\n {% if target.type in ['databricks', 'spark'] -%}\n {% set merge_sql = spark__get_delete_insert_merge_sql(target_tb, source, unique_key, dest_columns, predicates) %}\n {% else %}\n {% set merge_sql = dbt.default__get_delete_insert_merge_sql(target_tb, source, unique_key, dest_columns, predicates) %}\n {% endif %}\n\n {{ return(merge_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.dateadd", "macro.dbt.run_query", "macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.9788249, "supported_languages": null}, "macro.snowplow_utils.get_partition_by": {"name": "get_partition_by", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/get_partition_by.sql", "original_file_path": "macros/utils/get_partition_by.sql", "unique_id": "macro.snowplow_utils.get_partition_by", "macro_sql": "\n{%- macro get_partition_by(bigquery_partition_by=none, databricks_partition_by=none) -%}\n\n {%- do exceptions.warn(\"Warning: the `get_partition_by` macro is deprecated and will be removed in a future version of the package, please use `get_value_by_target_type` instead.\") -%}\n\n {% if target.type == 'bigquery' %}\n {{ return(bigquery_partition_by) }}\n {% elif target.type in ['databricks', 'spark'] %}\n {{ return(databricks_partition_by) }}\n {% endif %}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.980001, "supported_languages": null}, "macro.snowplow_utils.get_cluster_by": {"name": "get_cluster_by", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/get_cluster_by.sql", "original_file_path": "macros/utils/get_cluster_by.sql", "unique_id": "macro.snowplow_utils.get_cluster_by", "macro_sql": "{% macro get_cluster_by(bigquery_cols=none, snowflake_cols=none) %}\n\n {%- do exceptions.warn(\"Warning: the `get_cluster_by` macro is deprecated and will be removed in a future version of the package, please use `get_value_by_target_type` instead.\") -%}\n\n\n {% if target.type == 'bigquery' %}\n {{ return(bigquery_cols) }}\n {% elif target.type == 'snowflake' %}\n {{ return(snowflake_cols) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.9810023, "supported_languages": null}, "macro.snowplow_utils.print_list": {"name": "print_list", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/print_list.sql", "original_file_path": "macros/utils/print_list.sql", "unique_id": "macro.snowplow_utils.print_list", "macro_sql": "{% macro print_list(list, separator = ',') %}\n\n {%- for item in list %} '{{item}}' {%- if not loop.last %}{{separator}}{% endif %} {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "Prints an array as a `seperator` separated quoted list.\n\n#### Returns\n\nSeparated output of items in the list, quoted.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_utils://macros/utils/schema.yml", "arguments": [{"name": "list", "type": "array", "description": "Array object to print the (quoted) items of"}, {"name": "separator", "type": "string", "description": "The character(s) to separate the items by, default `,`"}], "created_at": 1706612344.5223312, "supported_languages": null}, "macro.snowplow_utils.get_value_by_target_type": {"name": "get_value_by_target_type", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/get_value_by_target_type.sql", "original_file_path": "macros/utils/get_value_by_target_type.sql", "unique_id": "macro.snowplow_utils.get_value_by_target_type", "macro_sql": "\n{%- macro get_value_by_target_type(bigquery_val=none, snowflake_val=none, redshift_val=none, postgres_val=none, databricks_val=none) -%}\n\n {% if target.type == 'bigquery' %}\n {{ return(bigquery_val) }}\n {% elif target.type == 'snowflake' %}\n {{ return(snowflake_val) }}\n {% elif target.type == 'redshift' %}\n {{ return(redshift_val) }}\n {% elif target.type == 'postgres' %}\n {{ return(postgres_val) }}\n {% elif target.type in ['databricks', 'spark'] %}\n {{ return(databricks_val) }}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Snowplow: Unexpected target type \"~target.type) }}\n {% endif %}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "Returns the value provided based on the `target.type`. This is useful when you need a different value based on which warehouse is being used e.g. cluster fields or partition keys.\n\n#### Returns\n\nThe appropriate value for the target warehouse type, or an error if not an expected target type.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_utils://macros/utils/schema.yml", "arguments": [{"name": "bigquery_val", "type": "string", "description": "(Optional) Value to return if the `target.type` is bigquery. Default None"}, {"name": "snowflake_val", "type": "string", "description": "(Optional) Value to return if the `target.type` is snowflake. Default None"}, {"name": "redshift_val", "type": "string", "description": "(Optional) Value to return if the `target.type` is redshift. Default None"}, {"name": "postgres_val", "type": "string", "description": "(Optional) Value to return if the `target.type` is postgres. Default None"}, {"name": "databricks_val", "type": "string", "description": "(Optional) Value to return if the `target.type` is databricks. Default None"}], "created_at": 1706612344.5169597, "supported_languages": null}, "macro.snowplow_utils.set_query_tag": {"name": "set_query_tag", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/set_query_tag.sql", "original_file_path": "macros/utils/set_query_tag.sql", "unique_id": "macro.snowplow_utils.set_query_tag", "macro_sql": "\n{%- macro set_query_tag(statement) -%}\n {{ return(adapter.dispatch('set_query_tag', 'snowplow_utils')(statement)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_utils.snowflake__set_query_tag"]}, "description": "This macro takes a provided statement as argument and generates the SQL command to set this statement as the query_tag for Snowflake databases, and does nothing otherwise. It can be used to safely set the query_tag regardless of database type.\n\n#### Returns\n\nAn alter session command set to the `query_tag` to the `statement` for Snowflake, otherwise nothing\n\n#### Usage\n\n```sql\n\n{{ snowplow_utils.set_query_tag('snowplow_query_tag') }}\n\n```", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_utils://macros/utils/schema.yml", "arguments": [{"name": "statement", "type": "string", "description": "The statement to use as the `query_tag` within Snowflake"}], "created_at": 1706612344.5245361, "supported_languages": null}, "macro.snowplow_utils.snowflake__set_query_tag": {"name": "snowflake__set_query_tag", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/set_query_tag.sql", "original_file_path": "macros/utils/set_query_tag.sql", "unique_id": "macro.snowplow_utils.snowflake__set_query_tag", "macro_sql": "{% macro snowflake__set_query_tag(statement) %}\n alter session set query_tag = '{{ statement }}';\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.984571, "supported_languages": null}, "macro.snowplow_utils.default__set_query_tag": {"name": "default__set_query_tag", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/set_query_tag.sql", "original_file_path": "macros/utils/set_query_tag.sql", "unique_id": "macro.snowplow_utils.default__set_query_tag", "macro_sql": "{% macro default__set_query_tag(statement) %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.9847481, "supported_languages": null}, "macro.snowplow_utils.get_value_by_target": {"name": "get_value_by_target", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/get_value_by_target.sql", "original_file_path": "macros/utils/get_value_by_target.sql", "unique_id": "macro.snowplow_utils.get_value_by_target", "macro_sql": "{% macro get_value_by_target(dev_value, default_value, dev_target_name='dev') %}\n\n {% if target.name == dev_target_name %}\n {% set value = dev_value %}\n {% else %}\n {% set value = default_value %}\n {% endif %}\n\n {{ return(value) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "This macro is designed to dynamically return values based on the target (`target.name`) you are running against. Your target names are defined in your [profiles.yml](https://docs.getdbt.com/reference/profiles.yml) file. This can be useful for dynamically changing variables within your project, depending on whether you are running in dev or prod.\n\n#### Returns\n\nThe value relevant to the target environment\n\n#### Usage\n\n```yml\n\n# dbt_project.yml\n...\nvars:\nsnowplow_web:\n snowplow__backfill_limit_days: \"{{ snowplow_utils.get_value_by_target(dev_value=1, default_value=30, dev_target_name='dev') }}\"\n\n```", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_utils://macros/utils/schema.yml", "arguments": [{"name": "dev_value", "type": null, "description": "Value to use if target is development"}, {"name": "default_value", "type": null, "description": "Value to use if target is not development"}, {"name": "dev_target_name", "type": "string", "description": "(Optional) Name of the development target. Default `dev`"}], "created_at": 1706612344.5187337, "supported_languages": null}, "macro.snowplow_utils.log_message": {"name": "log_message", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/log_message.sql", "original_file_path": "macros/utils/log_message.sql", "unique_id": "macro.snowplow_utils.log_message", "macro_sql": "{% macro log_message(message, is_printed=var('snowplow__has_log_enabled', true)) %}\n {{ log(dbt_utils.pretty_log_format(message), info=is_printed) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "A wrapper macro for the `dbt_utils.pretty_log_format` using the `snowplow__has_log_enabled` to determine if the log is also printed to the stdout.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_utils://macros/utils/schema.yml", "arguments": [{"name": "message", "type": "string", "description": "The string message to print."}, {"name": "is_printed", "type": "boolean", "description": "Boolean value to determine if the log is also printed to the stdout"}], "created_at": 1706612344.520539, "supported_languages": null}, "macro.snowplow_utils.app_id_filter": {"name": "app_id_filter", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/app_id_filter.sql", "original_file_path": "macros/utils/app_id_filter.sql", "unique_id": "macro.snowplow_utils.app_id_filter", "macro_sql": "{% macro app_id_filter(app_ids) %}\n\n {%- if app_ids|length -%}\n\n app_id in ('{{ app_ids|join(\"','\") }}') --filter on app_id if provided\n\n {%- else -%}\n\n true\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "Generates a `sql` filter for the values in `app_ids` applied on the `app_id` column.\n\n#### Returns\n\n`app_id in (...)` if any `app_ids` are provided, otherwise `true`.\n\n#### Usage\n\n```sql\napp_id_filter(['web', 'mobile', 'news'])\n\n-- returns\napp_id in ('web', 'mobile', 'news')\n```", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_utils://macros/utils/schema.yml", "arguments": [{"name": "app_ids", "type": "list", "description": "List of app_ids to filter to include"}], "created_at": 1706612344.512473, "supported_languages": null}, "macro.snowplow_utils.is_run_with_new_events": {"name": "is_run_with_new_events", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/is_run_with_new_events.sql", "original_file_path": "macros/utils/is_run_with_new_events.sql", "unique_id": "macro.snowplow_utils.is_run_with_new_events", "macro_sql": "{% macro is_run_with_new_events(package_name, new_event_limits_table=none, incremental_manifest_table=none, base_sessions_lifecycle_table=none) %}\n\n {%- if new_event_limits_table -%}\n {%- set new_event_limits_relation = ref(new_event_limits_table) -%}\n {%- else -%}\n {%- set new_event_limits_relation = snowplow_utils.get_new_event_limits_table_relation(package_name) -%}\n {%- endif -%}\n\n {%- if incremental_manifest_table -%}\n {%- set incremental_manifest_relation = ref(incremental_manifest_table) -%}\n {%- else-%}\n {%- set incremental_manifest_relation = snowplow_utils.get_incremental_manifest_table_relation(package_name) -%}\n {%- endif -%}\n\n {% if is_incremental() %}\n\n {%- set node_identifier = this.identifier -%}\n {%- if base_sessions_lifecycle_relation -%}\n {%- set base_sessions_lifecycle_identifier = ref(base_sessions_lifecycle_relation) -%}\n {%- else -%}\n {%- set base_sessions_lifecycle_identifier = package_name+'_base_sessions_lifecycle_manifest' -%}\n {%- endif -%}\n\n {# base_sessions_lifecycle not included in manifest so query directly. Otherwise use the manifest for performance #}\n {%- if node_identifier == base_sessions_lifecycle_identifier -%}\n {#Technically should be max(end_tstsamp) but table is partitioned on start_tstamp so cheaper to use.\n Worst case we update the manifest during a backfill when we dont need to, which should be v rare. #}\n {% set has_been_processed_query %}\n select\n case when\n (select upper_limit from {{ new_event_limits_relation }}) <= (select max(start_tstamp) from {{this}})\n then false\n else true end\n {% endset %}\n\n {%- else -%}\n\n {% set has_been_processed_query %}\n select\n case when\n (select upper_limit from {{ new_event_limits_relation }})\n <= (select last_success from {{ incremental_manifest_relation }} where model = '{{node_identifier}}')\n then false\n else true end\n {% endset %}\n\n {%- endif -%}\n\n {% set results = run_query(has_been_processed_query) %}\n\n {% if execute %}\n {% set has_new_events = results.columns[0].values()[0] | as_bool() %}\n {# Snowflake: dbt 0.18 returns bools as ints. Ints are not accepted as predicates in Snowflake. Cast to be safe. #}\n {% set has_new_events = 'cast('~has_new_events~' as boolean)' %}\n {% endif %}\n\n {% else %}\n\n {% set has_new_events = true %}\n\n {% endif %}\n\n {{ return(has_new_events) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_new_event_limits_table_relation", "macro.snowplow_utils.get_incremental_manifest_table_relation", "macro.dbt.is_incremental", "macro.dbt.run_query"]}, "description": "This macro is designed for use with Snowplow data modelling packages like `snowplow-web`. It can be used in any incremental models, to effectively block the incremental model from being updated with old data which it has already consumed. This saves cost as well as preventing historical data from being overwritten with partially complete data (due to a batch back-fill for instance).\n\nThe macro utilizes the `snowplow_[platform]_incremental_manifest` table to determine whether the model from which the macro is called, i.e. `{{ this }}`, has already consumed the data in the given run. If it has, it returns `false`. If the data in the run contains new data, `true` is returned.\n\nFor the sessions lifecycle identifier it does not use the manifest as this table is not included in it.\n\n#### Returns\n\n`true` if the run contains new events previously not consumed by `this`, `false` otherwise.\n\n#### Usage\n\n```sql\n\n{{\nconfig(\n materialized='incremental',\n unique_key='screen_view_id',\n upsert_date_key='start_tstamp'\n)\n}}\n\nselect\n...\n\nfrom {{ ref('snowplow_mobile_base_events_this_run' ) }}\nwhere {{ snowplow_utils.is_run_with_new_events('snowplow_mobile') }} --returns false if run doesn't contain new events.\n\n```", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_utils://macros/utils/schema.yml", "arguments": [{"name": "package_name", "type": "string", "description": "The modeling package name e.g. `snowplow-mobile`"}], "created_at": 1706612344.519592, "supported_languages": null}, "macro.snowplow_utils.get_sde_or_context": {"name": "get_sde_or_context", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/get_sde_or_context.sql", "original_file_path": "macros/utils/get_sde_or_context.sql", "unique_id": "macro.snowplow_utils.get_sde_or_context", "macro_sql": "{% macro get_sde_or_context(schema, identifier, lower_limit, upper_limit, prefix = none, single_entity = true) %}\n {{ return(adapter.dispatch('get_sde_or_context', 'snowplow_utils')(schema, identifier, lower_limit, upper_limit, prefix, single_entity)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.default__get_sde_or_context"]}, "description": "This macro exists for Redshift and Postgres users to more easily select their self-describing event and context tables and apply de-duplication before joining onto their (already de-duplicated) events table. The `root_id` and `root_tstamp` columns are by default returned as `schema_name_id` and `schema_name_tstamp` respectively, where `schema_name` is the value in the `schema_name` column of the table. In the case where multiple entities may be sent in the context (e.g. products in a search results), you should set the `single_entity` argument to `false` and use an additional criteria in your join (see [the snowplow docs](https://docs.snowplow.io/docs/modeling-your-data/modeling-your-data-with-dbt/dbt-advanced-usage/dbt-duplicates/) for further details).\n\nNote that is the responsibility of the user to ensure they have no duplicate names when using this macro multiple times or when a schema column name matches on already in the events table. In this case the `prefix` argument should be used and aliasing applied to the output.\n\n#### Returns\n\nCTE sql for deduplicating records from the schema table, without the schema details columns. The final CTE is the name of the original table.\n\n#### Usage\n\nWith at most one entity per context:\n```sql\nwith {{ snowplow_utils.get_sde_or_context('atomic', 'nl_basjes_yauaa_context_1', \"'2023-01-01'\", \"'2023-02-01'\")}}\n\nselect\n...\nfrom my_events_table a\nleft join nl_basjes_yauaa_context_1 b on \n a.event_id = b.yauaa_context__id \n and a.collector_tstamp = b.yauaa_context__tstamp\n```\nWith the possibility of multiple entities per context, your events table must already be de-duped but still have a field with the number of duplicates:\n```sql\nwith {{ snowplow_utils.get_sde_or_context('atomic', 'nl_basjes_yauaa_context_1', \"'2023-01-01'\", \"'2023-02-01'\", single_entity = false)}}\n\nselect\n...,\ncount(*) over (partition by a.event_id) as duplicate_count\nfrom my_events_table a\nleft join nl_basjes_yauaa_context_1 b on \n a.event_id = b.yauaa_context__id \n and a.collector_tstamp = b.yauaa_context__tstamp\n and mod(b.yauaa_context__index, a.duplicate_count) = 0\n```", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_utils://macros/utils/schema.yml", "arguments": [{"name": "schema", "type": "string", "description": "The schema your context or sde table is in"}, {"name": "identifier", "type": "string", "description": "The table name of your context or sde"}, {"name": "lower_limit", "type": "string", "description": "Lower limit to filter the `root_tstamp` field on, only used if both lower and upper are provided"}, {"name": "upper_limit", "type": "string", "description": "Upper limit to filter the `root_tstamp` field on, only used if both lower and upper are provided"}, {"name": "prefix", "type": "string", "description": "A string to prefix (additional `_` added automatically) the column names with. If not provided `root_id` and `root_tstamp` will be prefixed with the schema name."}], "created_at": 1706612344.5278318, "supported_languages": null}, "macro.snowplow_utils.default__get_sde_or_context": {"name": "default__get_sde_or_context", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/get_sde_or_context.sql", "original_file_path": "macros/utils/get_sde_or_context.sql", "unique_id": "macro.snowplow_utils.default__get_sde_or_context", "macro_sql": "{% macro default__get_sde_or_context(schema, identifier, lower_limit, upper_limit, prefix = none, single_entity = true) %}\n {% if execute %}\n {% do exceptions.raise_compiler_error('Macro get_sde_or_context is only for Postgres or Redshift, it is not supported for' ~ target.type) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.9945066, "supported_languages": null}, "macro.snowplow_utils.postgres__get_sde_or_context": {"name": "postgres__get_sde_or_context", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/get_sde_or_context.sql", "original_file_path": "macros/utils/get_sde_or_context.sql", "unique_id": "macro.snowplow_utils.postgres__get_sde_or_context", "macro_sql": "{% macro postgres__get_sde_or_context(schema, identifier, lower_limit, upper_limit, prefix = none, single_entity = true) %}\n {# Create a relation from the inputs then get all columns in that context/sde table #}\n {% set relation = api.Relation.create(schema = schema, identifier = identifier) %}\n {# Get the schema name to be able to alias the timestamp and id #}\n {% set schema_get_query %}\n select schema_name from {{ relation }}\n limit 1\n {% endset %}\n {%- set schema_name = dbt_utils.get_single_value(schema_get_query) -%}\n {# Get the columns to loop over #}\n {%- set columns = adapter.get_columns_in_relation(relation) -%}\n\n {% set sql %}\n {{'dd_' ~ identifier }} as (\n select\n {# Get all columns that aren't related to the schema itself #}\n {%- for col in columns -%}\n {%- if col.name not in ['schema_vendor', 'schema_name', 'schema_format', 'schema_version', 'ref_root', 'ref_tree', 'ref_parent'] %}\n {{ col.quoted }},\n {%- endif -%}\n {% endfor %}\n {% if single_entity %}\n row_number() over (partition by root_id order by root_tstamp) as dedupe_index -- keep the first event for that root_id\n {% else %}\n row_number() over (partition by {% for item in columns | map(attribute='quoted') %}{{item}}{%- if not loop.last %},{% endif %}{% endfor -%} ) as dedupe_index -- get the index across all columns for the entity\n {% endif %}\n from\n {{ relation }}\n {% if upper_limit and lower_limit -%}\n where\n root_tstamp >= {{ lower_limit }}\n and root_tstamp <= {{ upper_limit }}\n {% endif %}\n ),\n\n {{identifier}} as (\n select\n {%- for col in columns -%}\n {%- if col.name | lower not in ['schema_vendor', 'schema_name', 'schema_format', 'schema_version', 'ref_root', 'ref_tree', 'ref_parent', 'root_tstamp', 'root_id'] %}\n {{ col.quoted }}{% if prefix %} as {{ adapter.quote(prefix ~ '_' ~ col.name) }}{% endif -%},\n {%- endif -%}\n {% endfor -%}\n {# Rename columns that we know exist in every schema based table #}\n {% if not single_entity %}\n dedupe_index as {% if prefix %}{{ adapter.quote(prefix ~ '__index') }}{% else %}{{ adapter.quote(schema_name ~ '__index') }}{% endif %}, -- keep track of this for the join\n {% endif %}\n root_tstamp as {% if prefix %}{{ adapter.quote(prefix ~ '__tstamp') }}{% else %}{{ adapter.quote(schema_name ~ '__tstamp') }}{% endif %},\n root_id as {% if prefix %}{{ adapter.quote(prefix ~ '__id') }}{% else %}{{ adapter.quote(schema_name ~ '__id') }}{% endif %}\n from\n {{'dd_' ~ identifier }}\n {% if single_entity %}\n where\n dedupe_index = 1\n {% endif %}\n )\n\n {% endset %}\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612339.9995346, "supported_languages": null}, "macro.snowplow_utils.tstamp_to_str": {"name": "tstamp_to_str", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/tstamp_to_str.sql", "original_file_path": "macros/utils/tstamp_to_str.sql", "unique_id": "macro.snowplow_utils.tstamp_to_str", "macro_sql": "{% macro tstamp_to_str(tstamp) -%}\n '{{ tstamp.strftime(\"%Y-%m-%d %H:%M:%S\") }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0000334, "supported_languages": null}, "macro.snowplow_utils.get_schemas_by_pattern": {"name": "get_schemas_by_pattern", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/get_schemas_by_pattern.sql", "original_file_path": "macros/utils/get_schemas_by_pattern.sql", "unique_id": "macro.snowplow_utils.get_schemas_by_pattern", "macro_sql": "{% macro get_schemas_by_pattern(schema_pattern) %}\n {{ return(adapter.dispatch('get_schemas_by_pattern', 'snowplow_utils')\n (schema_pattern)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.default__get_schemas_by_pattern"]}, "description": "Given a pattern, finds and returns all schemas that match that pattern. Note that for databricks any single character matches (`_`) will not be properly translated due to databricks using a regex expression instead of a SQL `like` clause.\n\n #### Returns\n\n A list of schemas that match the pattern provided.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_utils://macros/utils/schema.yml", "arguments": [{"name": "schema_pattern", "type": "string", "description": "The pattern for the schema(s) you wish to find. For all non-databricks should be of the usual SQL `like` form. `%` will be automatically translated for databricks, but other special characters may not be"}], "created_at": 1706612344.5145583, "supported_languages": null}, "macro.snowplow_utils.default__get_schemas_by_pattern": {"name": "default__get_schemas_by_pattern", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/get_schemas_by_pattern.sql", "original_file_path": "macros/utils/get_schemas_by_pattern.sql", "unique_id": "macro.snowplow_utils.default__get_schemas_by_pattern", "macro_sql": "{% macro default__get_schemas_by_pattern(schema_pattern) %}\n\n {% set get_tables_sql = dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern='%') %}\n {% set results = [] if get_tables_sql.isspace() else run_query(get_tables_sql) %}\n {% set schemas = results|map(attribute='table_schema')|unique|list %}\n {{ return(schemas) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0017362, "supported_languages": null}, "macro.snowplow_utils.spark__get_schemas_by_pattern": {"name": "spark__get_schemas_by_pattern", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/get_schemas_by_pattern.sql", "original_file_path": "macros/utils/get_schemas_by_pattern.sql", "unique_id": "macro.snowplow_utils.spark__get_schemas_by_pattern", "macro_sql": "{% macro spark__get_schemas_by_pattern(schema_pattern) %}\n {# databricks/spark uses a regex on SHOW SCHEMAS and doesn't have an information schema in hive_metastore #}\n {%- set schema_pattern= dbt.replace(schema_pattern, \"%\", \"*\") -%}\n\n {# Get all schemas with the target.schema prefix #}\n {%- set get_schemas_sql -%}\n SHOW SCHEMAS LIKE '{{schema_pattern}}';\n {%- endset -%}\n\n {% set results = run_query(get_schemas_sql) %}\n {% set schemas = results|map(attribute='databaseName')|unique|list %}\n\n {{ return(schemas) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0027075, "supported_languages": null}, "macro.snowplow_utils.get_columns_in_relation_by_column_prefix": {"name": "get_columns_in_relation_by_column_prefix", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/get_columns_in_relation_by_column_prefix.sql", "original_file_path": "macros/utils/get_columns_in_relation_by_column_prefix.sql", "unique_id": "macro.snowplow_utils.get_columns_in_relation_by_column_prefix", "macro_sql": "{% macro get_columns_in_relation_by_column_prefix(relation, column_prefix) %}\n\n {# Prevent introspective queries during parsing #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set columns = adapter.get_columns_in_relation(relation) -%}\n\n {# get_columns_in_relation returns uppercase cols for snowflake so uppercase column_prefix #}\n {%- set column_prefix = column_prefix.upper() if target.type == 'snowflake' else column_prefix -%}\n\n {%- set matched_columns = [] -%}\n\n {# add columns with matching prefix to matched_columns #}\n {% for column in columns %}\n {% if column.name.startswith(column_prefix) %}\n {% do matched_columns.append(column) %}\n {% endif %}\n {% endfor %}\n\n {% if matched_columns|length %}\n {{ return(matched_columns) }}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Snowplow: No columns found with prefix \"~column_prefix) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "This macro returns an array of column objects within a relation that start with the given column prefix. This is useful when you have multiple versions of a column within a table and want to dynamically identify all versions.\n\n#### Returns\n\nAn array of (column objects)[https://docs.getdbt.com/reference/dbt-classes#column]. The name of each column can be accessed with the name property.\n\n#### Usage\n\n```sql\nget_columns_in_relation_by_column_prefix(ref('snowplow_web_base_events_this_run'), 'domain')\n\n-- returns\n['domain_sessionid', 'domain_userid', 'domain_sessionidx',...]\n\n{% set matched_columns = snowplow_utils.get_columns_in_relation_by_column_prefix(\n relation=ref('snowplow_web_base_events_this_run'),\n column_prefix='custom_context_1_0_'\n ) %}\n\n{% for column in matched_columns %}\n{{ column.name }}\n{% endfor %}\n\n# Renders to something like:\n'custom_context_1_0_1'\n'custom_context_1_0_2'\n'custom_context_1_0_3'\n\n```", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_utils://macros/utils/schema.yml", "arguments": [{"name": "relation", "type": "relation", "description": "A table or `ref` type object to get the columns from"}, {"name": "column_prefix", "type": "string", "description": "The prefix string to search for matching columns"}], "created_at": 1706612344.5136328, "supported_languages": null}, "macro.snowplow_utils.post_ci_cleanup": {"name": "post_ci_cleanup", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/post_ci_cleanup.sql", "original_file_path": "macros/utils/post_ci_cleanup.sql", "unique_id": "macro.snowplow_utils.post_ci_cleanup", "macro_sql": "{% macro post_ci_cleanup(schema_pattern=target.schema) %}\n\n {# Get all schemas with the target.schema prefix #}\n {% set schemas = snowplow_utils.get_schemas_by_pattern(schema_pattern~'%') %}\n\n {% if schemas|length %}\n\n {%- if target.type in ['databricks', 'spark'] -%}\n {# Generate sql to drop all identified schemas #}\n {% for schema in schemas -%}\n {%- set drop_schema_sql -%}\n DROP SCHEMA IF EXISTS {{schema}} CASCADE;\n {%- endset -%}\n\n {% do run_query(drop_schema_sql) %}\n\n {% endfor %}\n\n {%- else -%}\n {# Generate sql to drop all identified schemas #}\n {% set drop_schema_sql -%}\n\n {% for schema in schemas -%}\n DROP SCHEMA IF EXISTS {{schema}} CASCADE;\n {% endfor %}\n\n {%- endset %}\n\n {# Drop schemas #}\n {% do run_query(drop_schema_sql) %}\n\n {%- endif -%}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_schemas_by_pattern", "macro.dbt.run_query"]}, "description": "This macro deletes all schemas that start with the specified `schema_pattern`, mostly for use before/after CI testing to ensure a clean start and removal of data after CI tests.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_utils://macros/utils/schema.yml", "arguments": [{"name": "schema_pattern", "type": "string", "description": "The prefix of the schema(s) to delete"}], "created_at": 1706612344.5210848, "supported_languages": null}, "macro.snowplow_utils.return_limits_from_model": {"name": "return_limits_from_model", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/return_limits_from_model.sql", "original_file_path": "macros/utils/return_limits_from_model.sql", "unique_id": "macro.snowplow_utils.return_limits_from_model", "macro_sql": "{% macro return_limits_from_model(model, lower_limit_col, upper_limit_col) -%}\n\n {# In case of not execute just return empty strings to avoid hitting database #}\n {% if not execute %}\n {{ return(['','']) }}\n {% endif %}\n\n {% set target_relation = adapter.get_relation(\n database=model.database,\n schema=model.schema,\n identifier=model.name) %}\n\n {% if target_relation is not none %}\n\n {% set limit_query %}\n select\n min({{lower_limit_col}}) as lower_limit,\n max({{upper_limit_col}}) as upper_limit\n from {{ model }}\n {% endset %}\n\n {% set results = run_query(limit_query) %}\n\n {% if execute %}\n\n {# If there is no data within the limits, we should warn them otherwise they may be stuck here forever#}\n {%- if results.columns[0].values()[0] is none or results.columns[1].values()[0] is none -%}\n {# Currently warnings do not actually do anything other than text in logs, this makes it more visible https://github.com/dbt-labs/dbt-core/issues/6721 #}\n {{ snowplow_utils.log_message(\"Snowplow Warning: *************\") }}\n {% do exceptions.warn(\"Snowplow Warning: No data in \"~this~\" for date range from variables, please modify your run variables to include data if this is not expected.\") %}\n {{ snowplow_utils.log_message(\"Snowplow Warning: *************\") }}\n {# This allows for bigquery to still run the same way the other warehouses do, but also ensures no data is processed #}\n {% set lower_limit = snowplow_utils.cast_to_tstamp('9999-01-01 00:00:00') %}\n {% set upper_limit = snowplow_utils.cast_to_tstamp('9999-01-02 00:00:00') %}\n {%- else -%}\n {% set lower_limit = snowplow_utils.cast_to_tstamp(results.columns[0].values()[0]) %}\n {% set upper_limit = snowplow_utils.cast_to_tstamp(results.columns[1].values()[0]) %}\n {%- endif -%}\n\n {{ return([lower_limit, upper_limit]) }}\n\n {% endif %}\n\n {% else %}\n\n {% do exceptions.warn(\"Snowplow Warning: \" ~ model ~ \" does not exist. This is expected if you are compiling a fresh installation of the dbt-snowplow-* packages.\") %}\n {% set dummy_limit = snowplow_utils.cast_to_tstamp('9999-01-01 00:00:00') %}\n\n {{ return([dummy_limit, dummy_limit]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.snowplow_utils.log_message", "macro.snowplow_utils.cast_to_tstamp"]}, "description": "Calculates and returns the minimum (lower) and maximum (upper) values of specified columns within the specified table. Useful to find ranges of a column within a table.\n\n#### Returns\n\nA list of two objects, the lower and upper values from the columns in the model", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_utils://macros/utils/schema.yml", "arguments": [{"name": "model", "type": "relation", "description": "A string or `ref` type object to refer to a model or table to return limits from"}, {"name": "lower_limit_col", "type": "string", "description": "The column to take the `min` of to get the lower limit"}, {"name": "upper_limit_col", "type": "string", "description": "The column to take the `max` of to get the upper limit"}], "created_at": 1706612344.5236795, "supported_languages": null}, "macro.snowplow_utils.throw_compiler_error": {"name": "throw_compiler_error", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/throw_compiler_error.sql", "original_file_path": "macros/utils/throw_compiler_error.sql", "unique_id": "macro.snowplow_utils.throw_compiler_error", "macro_sql": "{% macro throw_compiler_error(error_message, disable_error=var(\"snowplow__disable_errors\", false)) %}\n\n {% if disable_error %}\n\n {{ return(error_message) }}\n\n {% else %}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0123162, "supported_languages": null}, "macro.snowplow_utils.n_timedeltas_ago": {"name": "n_timedeltas_ago", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/n_timedeltas_ago.sql", "original_file_path": "macros/utils/n_timedeltas_ago.sql", "unique_id": "macro.snowplow_utils.n_timedeltas_ago", "macro_sql": "{% macro n_timedeltas_ago(n, timedelta_attribute) %}\n\n {% set arg_dict = {timedelta_attribute: n} %}\n {% set now = modules.datetime.datetime.now() %}\n {% set n_timedeltas_ago = (now - modules.datetime.timedelta(**arg_dict)) %}\n\n {{ return(n_timedeltas_ago) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "This macro takes the current timestamp and subtracts `n` units, as defined by the `timedelta_attribute`, from it. This is achieved using the Python datetime module, rather than querying your database. By combining this with the `get_value_by_target` macro, you can dynamically set dates depending on your environment.\n\n#### Returns\n\nCurrent timestamp minus `n` units.\n\n#### Usage\n\n```sql\n\n{{ snowplow_utils.n_timedeltas_ago(1, 'weeks') }}\n\n```", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_utils://macros/utils/schema.yml", "arguments": [{"name": "n", "type": "integer", "description": "The number of timedeltas to subtract from the current timestamp"}, {"name": "timedelta_attribute", "type": "string", "description": "The type of units to subtract. This can be any valid attribute of the [timedelta](https://docs.python.org/3/library/datetime.html#timedelta-objects) object"}], "created_at": 1706612344.5257788, "supported_languages": null}, "macro.snowplow_utils.allow_refresh": {"name": "allow_refresh", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/allow_refresh.sql", "original_file_path": "macros/utils/allow_refresh.sql", "unique_id": "macro.snowplow_utils.allow_refresh", "macro_sql": "{% macro allow_refresh() %}\n {{ return(adapter.dispatch('allow_refresh', 'snowplow_utils')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.default__allow_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0139785, "supported_languages": null}, "macro.snowplow_utils.default__allow_refresh": {"name": "default__allow_refresh", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/allow_refresh.sql", "original_file_path": "macros/utils/allow_refresh.sql", "unique_id": "macro.snowplow_utils.default__allow_refresh", "macro_sql": "{% macro default__allow_refresh() %}\n\n {% set allow_refresh = snowplow_utils.get_value_by_target(\n dev_value=none,\n default_value=var('snowplow__allow_refresh'),\n dev_target_name=var('snowplow__dev_target_name')\n ) %}\n\n {{ return(allow_refresh) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_value_by_target"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.014576, "supported_languages": null}, "macro.snowplow_utils.snowplow_delete_from_manifest": {"name": "snowplow_delete_from_manifest", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/snowplow_delete_from_manifest.sql", "original_file_path": "macros/utils/snowplow_delete_from_manifest.sql", "unique_id": "macro.snowplow_utils.snowplow_delete_from_manifest", "macro_sql": "{% macro snowplow_delete_from_manifest(models, incremental_manifest_table) %}\n\n {# Ensure models is a list #}\n {%- if models is string -%}\n {%- set models = [models] -%}\n {%- endif -%}\n\n {# No models to delete or not in execute mode #}\n {% if not models|length or not execute %}\n {{ return('') }}\n {% endif %}\n\n {# Get the manifest table to ensure it exits #}\n {%- set incremental_manifest_table_exists = adapter.get_relation(incremental_manifest_table.database,\n incremental_manifest_table.schema,\n incremental_manifest_table.name) -%}\n\n {%- if not incremental_manifest_table_exists -%}\n {{return(dbt_utils.log_info(\"Snowplow: \"+incremental_manifest_table|string+\" does not exist\"))}}\n {%- endif -%}\n\n {# Get all models in the manifest and compare to list of models to delete #}\n {%- set models_in_manifest = dbt_utils.get_column_values(table=incremental_manifest_table, column='model') -%}\n {%- set unmatched_models, matched_models = [], [] -%}\n\n {%- for model in models -%}\n\n {%- if model in models_in_manifest -%}\n {%- do matched_models.append(model) -%}\n {%- else -%}\n {%- do unmatched_models.append(model) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if not matched_models|length -%}\n {{return(dbt_utils.log_info(\"Snowplow: None of the supplied models exist in the manifest\"))}}\n {%- endif -%}\n\n {% set delete_statement %}\n {%- if target.type in ['databricks', 'spark'] -%}\n delete from {{ incremental_manifest_table }} where model in ({{ snowplow_utils.print_list(matched_models) }});\n {%- else -%}\n -- We don't need transaction but Redshift needs commit statement while BQ does not. By using transaction we cover both.\n begin;\n delete from {{ incremental_manifest_table }} where model in ({{ snowplow_utils.print_list(matched_models) }});\n commit;\n {%- endif -%}\n {% endset %}\n\n {%- do run_query(delete_statement) -%}\n\n {%- if matched_models|length -%}\n {% do snowplow_utils.log_message(\"Snowplow: Deleted models \"+snowplow_utils.print_list(matched_models)+\" from the manifest\") %}\n {%- endif -%}\n\n {%- if unmatched_models|length -%}\n {% do snowplow_utils.log_message(\"Snowplow: Models \"+snowplow_utils.print_list(unmatched_models)+\" do not exist in the manifest\") %}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.log_info", "macro.dbt_utils.get_column_values", "macro.snowplow_utils.print_list", "macro.dbt.run_query", "macro.snowplow_utils.log_message"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0198007, "supported_languages": null}, "macro.snowplow_utils.snowplow_web_delete_from_manifest": {"name": "snowplow_web_delete_from_manifest", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/snowplow_delete_from_manifest.sql", "original_file_path": "macros/utils/snowplow_delete_from_manifest.sql", "unique_id": "macro.snowplow_utils.snowplow_web_delete_from_manifest", "macro_sql": "{% macro snowplow_web_delete_from_manifest(models) %}\n\n {{ snowplow_utils.snowplow_delete_from_manifest(models, ref('snowplow_web_incremental_manifest')) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.snowplow_delete_from_manifest"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.020219, "supported_languages": null}, "macro.snowplow_utils.snowplow_mobile_delete_from_manifest": {"name": "snowplow_mobile_delete_from_manifest", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/snowplow_delete_from_manifest.sql", "original_file_path": "macros/utils/snowplow_delete_from_manifest.sql", "unique_id": "macro.snowplow_utils.snowplow_mobile_delete_from_manifest", "macro_sql": "{% macro snowplow_mobile_delete_from_manifest(models) %}\n\n {{ snowplow_utils.snowplow_delete_from_manifest(models, ref('snowplow_mobile_incremental_manifest')) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.snowplow_delete_from_manifest"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0205765, "supported_languages": null}, "macro.snowplow_utils.snowplow_base_delete_from_manifest": {"name": "snowplow_base_delete_from_manifest", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/snowplow_delete_from_manifest.sql", "original_file_path": "macros/utils/snowplow_delete_from_manifest.sql", "unique_id": "macro.snowplow_utils.snowplow_base_delete_from_manifest", "macro_sql": "{% macro snowplow_base_delete_from_manifest(models, incremental_manifest='snowplow_incremental_manifest') %}\n\n {{ snowplow_utils.snowplow_delete_from_manifest(models, ref(incremental_manifest)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.snowplow_delete_from_manifest"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.020973, "supported_languages": null}, "macro.snowplow_utils.get_array_to_string": {"name": "get_array_to_string", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_array_to_string.sql", "original_file_path": "macros/utils/cross_db/get_array_to_string.sql", "unique_id": "macro.snowplow_utils.get_array_to_string", "macro_sql": "\n\n{%- macro get_array_to_string(array_column, column_prefix, delimiter=',') -%}\n {{ return(adapter.dispatch('get_array_to_string', 'snowplow_utils')(array_column, column_prefix, delimiter)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_utils.default__get_array_to_string"]}, "description": "This macro takes care of harmonising cross-db array to string type functions. The macro supports a custom delimiter if you don't want to use a comma with no space (default).\n\n#### Returns\n\nThe data warehouse appropriate sql to convert an array to a string. \n\n#### Usage\n\n```sql\nselect\n...\n{{ snowplow_utils.get_array_to_string('my_array_column', 'a', ', ') }}\n...\nfrom ... a\n\n```", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_utils://macros/utils/cross_db/cross_db_macros.yml", "arguments": [{"name": "array_column", "type": "string", "description": "Name of the column to join into a string"}, {"name": "column_prefix", "type": "string", "description": "Table alias for the array_column"}, {"name": "delimiter", "type": "string", "description": "(Optional) String that determines how to delimit your array values. Default ','"}], "created_at": 1706612344.533503, "supported_languages": null}, "macro.snowplow_utils.default__get_array_to_string": {"name": "default__get_array_to_string", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_array_to_string.sql", "original_file_path": "macros/utils/cross_db/get_array_to_string.sql", "unique_id": "macro.snowplow_utils.default__get_array_to_string", "macro_sql": "{% macro default__get_array_to_string(array_column, column_prefix, delimiter=',') %}\n array_to_string({{column_prefix}}.{{array_column}},'{{delimiter}}')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.022202, "supported_languages": null}, "macro.snowplow_utils.spark__get_array_to_string": {"name": "spark__get_array_to_string", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_array_to_string.sql", "original_file_path": "macros/utils/cross_db/get_array_to_string.sql", "unique_id": "macro.snowplow_utils.spark__get_array_to_string", "macro_sql": "{% macro spark__get_array_to_string(array_column, column_prefix, delimiter=',') %}\n array_join({{column_prefix}}.{{array_column}},'{{delimiter}}')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.022571, "supported_languages": null}, "macro.snowplow_utils.get_string_agg": {"name": "get_string_agg", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_string_agg.sql", "original_file_path": "macros/utils/cross_db/get_string_agg.sql", "unique_id": "macro.snowplow_utils.get_string_agg", "macro_sql": "\n\n{%- macro get_string_agg(base_column, column_prefix, separator=',', order_by_column=base_column, sort_numeric=false, order_by_column_prefix=column_prefix, is_distinct=false, order_desc=false) -%}\n\n {{ return(adapter.dispatch('get_string_agg', 'snowplow_utils')(base_column, column_prefix, separator, order_by_column, sort_numeric, order_by_column_prefix, is_distinct, order_desc)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_utils.default__get_string_agg"]}, "description": "This macro takes care of harmonising cross-db `list_agg`, `string_agg` type functions. These are aggregate functions (i.e. to be used with a `group by`) that take values from grouped rows and concatenates them into a single string. This macro supports ordering values by an arbitrary column and ensuring unique values (i.e. applying distinct).\n\nNote that databricks does not have list/string_agg function so a more complex expression is used.\n\n#### Returns\n\nThe data warehouse appropriate sql to perform a list/string_agg. \n\n#### Usage\n\n```sql\nselect\n...\n{{ snowplow_utils.get_string_agg('base_column', 'column_prefix', ';', 'order_by_col', sort_numeric=true, order_by_column_prefix='order_by_column_prefix', is_distict=True, order_desc=True) }},\n...\nfrom ...\ngroup by ...\n\n```", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_utils://macros/utils/cross_db/cross_db_macros.yml", "arguments": [{"name": "base_column", "type": "string", "description": "Name of the column to aggregate values for"}, {"name": "column_prefix", "type": "string", "description": "Table alias for the base_column"}, {"name": "separator", "type": "string", "description": "(Optional) String to use to separate your values. Default ','"}, {"name": "order_by_column", "type": "string", "description": "(Optional) Column to order your values by before aggregating. Default base_column"}, {"name": "sort_numeric", "type": "boolean", "description": "(Optional) Is the column you are ordering by a numeric value (regardless of stored type). Default false"}, {"name": "order_by_column_prefix", "type": "string", "description": "(Optional) Table alias for the order_by_column. Default column_prefix"}, {"name": "is_distinct", "type": "boolean", "description": "(Optional) Do you want to apply distinct to your values. Will be applied after ordering. Default false"}, {"name": "order_desc", "type": "boolean", "description": "(Optional) Do you wish to apply the ordering descending. Default false"}], "created_at": 1706612344.5310633, "supported_languages": null}, "macro.snowplow_utils.default__get_string_agg": {"name": "default__get_string_agg", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_string_agg.sql", "original_file_path": "macros/utils/cross_db/get_string_agg.sql", "unique_id": "macro.snowplow_utils.default__get_string_agg", "macro_sql": "{% macro default__get_string_agg(base_column, column_prefix, separator=',', order_by_column=base_column, sort_numeric=false, order_by_column_prefix=column_prefix, is_distinct=false, order_desc=false) %}\n\n {% if (base_column != order_by_column or column_prefix != order_by_column_prefix or sort_numeric) and is_distinct %}\n {%- do exceptions.raise_compiler_error(\"Snowplow Error: \"~target.type~\" does not support distinct with a different ordering column, or when the order column is numeric.\") -%}\n {% endif %}\n\n\n listagg({% if is_distinct %} distinct {% endif %} {{column_prefix}}.{{base_column}}::varchar, '{{separator}}') within group (order by\n\n {% if sort_numeric -%}\n to_numeric({{order_by_column_prefix}}.{{order_by_column}}, 38, 9) {% if order_desc %} desc {% endif %}\n\n {% else %}\n {{order_by_column_prefix}}.{{order_by_column}}::varchar {% if order_desc %} desc {% endif %}\n\n {%- endif -%}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0353186, "supported_languages": null}, "macro.snowplow_utils.bigquery__get_string_agg": {"name": "bigquery__get_string_agg", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_string_agg.sql", "original_file_path": "macros/utils/cross_db/get_string_agg.sql", "unique_id": "macro.snowplow_utils.bigquery__get_string_agg", "macro_sql": "{% macro bigquery__get_string_agg(base_column, column_prefix, separator=',', order_by_column=base_column, sort_numeric=false, order_by_column_prefix=column_prefix, is_distinct=false, order_desc = false) %}\n\n {% if (base_column != order_by_column or column_prefix != order_by_column_prefix or sort_numeric) and is_distinct %}\n {%- do exceptions.raise_compiler_error(\"Snowplow Error: \"~target.type~\" does not support distinct with a different ordering column, or when the order column is numeric.\") -%}\n {% endif %}\n\n string_agg({% if is_distinct %} distinct {% endif %} cast({{column_prefix}}.{{base_column}} as string), '{{separator}}' order by\n\n {% if sort_numeric -%}\n cast({{order_by_column_prefix}}.{{order_by_column}} as numeric) {% if order_desc %} desc {% endif %}\n\n {% else %}\n cast({{order_by_column_prefix}}.{{order_by_column}} as string) {% if order_desc %} desc {% endif %}\n\n {%- endif -%}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0369163, "supported_languages": null}, "macro.snowplow_utils.postgres__get_string_agg": {"name": "postgres__get_string_agg", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_string_agg.sql", "original_file_path": "macros/utils/cross_db/get_string_agg.sql", "unique_id": "macro.snowplow_utils.postgres__get_string_agg", "macro_sql": "{% macro postgres__get_string_agg(base_column, column_prefix, separator=',', order_by_column=base_column, sort_numeric=false, order_by_column_prefix=column_prefix, is_distinct=false, order_desc = false) %}\n\n {% if (base_column != order_by_column or column_prefix != order_by_column_prefix or sort_numeric) and is_distinct %}\n {%- do exceptions.raise_compiler_error(\"Snowplow Error: \"~target.type~\" does not support distinct with a different ordering column, or when the order column is numeric.\") -%}\n {% endif %}\n\n string_agg({% if is_distinct %} distinct {% endif %} {{column_prefix}}.{{base_column}}::varchar, '{{separator}}' order by\n\n {% if sort_numeric -%}\n {{order_by_column_prefix}}.{{order_by_column}}::decimal {% if order_desc %} desc {% endif %}\n\n {% else %}\n {{order_by_column_prefix}}.{{order_by_column}}::varchar {% if order_desc %} desc {% endif %}\n\n {%- endif -%}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0385473, "supported_languages": null}, "macro.snowplow_utils.redshift__get_string_agg": {"name": "redshift__get_string_agg", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_string_agg.sql", "original_file_path": "macros/utils/cross_db/get_string_agg.sql", "unique_id": "macro.snowplow_utils.redshift__get_string_agg", "macro_sql": "{% macro redshift__get_string_agg(base_column, column_prefix, separator=',', order_by_column=base_column, sort_numeric=false, order_by_column_prefix=column_prefix, is_distinct=false, order_desc = false) %}\n\n {% if (base_column != order_by_column or column_prefix != order_by_column_prefix or sort_numeric) and is_distinct %}\n {%- do exceptions.raise_compiler_error(\"Snowplow Error: \"~target.type~\" does not support distinct with a different ordering column, or when the order column is numeric.\") -%}\n {% endif %}\n\n listagg({% if is_distinct %} distinct {% endif %} {{column_prefix}}.{{base_column}}::varchar, '{{separator}}') within group (order by\n\n {% if sort_numeric -%}\n text_to_numeric_alt({{order_by_column_prefix}}.{{order_by_column}}, 38, 9) {% if order_desc %} desc {% endif %}\n\n {% else %}\n {{order_by_column_prefix}}.{{order_by_column}}::varchar {% if order_desc %} desc {% endif %}\n\n {%- endif -%}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0401423, "supported_languages": null}, "macro.snowplow_utils.spark__get_string_agg": {"name": "spark__get_string_agg", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_string_agg.sql", "original_file_path": "macros/utils/cross_db/get_string_agg.sql", "unique_id": "macro.snowplow_utils.spark__get_string_agg", "macro_sql": "{% macro spark__get_string_agg(base_column, column_prefix, separator=',', order_by_column=base_column, sort_numeric=false, order_by_column_prefix=column_prefix, is_distinct=false, order_desc = false) %}\n /* Explaining inside out:\n 1. Create a group array which is made of sub-arrays of the base_column and the sort column\n 2. Sort these sub-arrays based on a lamdba function that compares on the second element (the sort column, casted if needed)\n 3. Use transform to select just the first element of the array\n 4. Optionally use array_distinct\n 5. Join the array into a string\n */\n array_join(\n {% if is_distinct %} array_distinct( {% endif %}\n transform(\n array_sort(\n FILTER(collect_list(\n ARRAY({{column_prefix}}.{{base_column}}::string, {{order_by_column_prefix}}.{{order_by_column}}::string)), x -> x[0] is not null), (left, right) ->\n\n {%- if sort_numeric -%}\n CASE WHEN cast(left[1] as numeric(38, 9)) {% if order_desc %} > {% else %} < {% endif %} cast(right[1] as numeric(38, 9)) THEN -1\n WHEN cast(left[1] as numeric(38, 9)) {% if order_desc %} < {% else %} > {% endif %} cast(right[1] as numeric(38, 9)) THEN 1 ELSE 0 END\n\n {% else %}\n CASE WHEN left[1] {% if order_desc %} > {% else %} < {% endif %} right[1] THEN -1\n WHEN left[1] {% if order_desc %} < {% else %} > {% endif %} right[1] THEN 1 ELSE 0 END\n\n {% endif %}\n ), x -> x[0])\n {% if is_distinct %} ) {% endif %},\n '{{separator}}')\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0417378, "supported_languages": null}, "macro.snowplow_utils.unnest": {"name": "unnest", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/unnest.sql", "original_file_path": "macros/utils/cross_db/unnest.sql", "unique_id": "macro.snowplow_utils.unnest", "macro_sql": "\n\n{%- macro unnest(id_column, unnest_column, field_alias, source_table, with_index=false) -%}\n {{ return(adapter.dispatch('unnest', 'snowplow_utils')(id_column, unnest_column, field_alias, source_table, with_index)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_utils.snowflake__unnest"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0443296, "supported_languages": null}, "macro.snowplow_utils.default__unnest": {"name": "default__unnest", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/unnest.sql", "original_file_path": "macros/utils/cross_db/unnest.sql", "unique_id": "macro.snowplow_utils.default__unnest", "macro_sql": "{% macro default__unnest(id_column, unnest_column, field_alias, source_table, with_index=false) %}\n {% if with_index %}\n select {{ id_column }}, posexplode({{ unnest_column }}) as (source_index, {{ field_alias }})\n {% else %}\n select {{ id_column }}, explode({{ unnest_column }}) as {{ field_alias }}\n {% endif %}\n from {{ source_table }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.045068, "supported_languages": null}, "macro.snowplow_utils.bigquery__unnest": {"name": "bigquery__unnest", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/unnest.sql", "original_file_path": "macros/utils/cross_db/unnest.sql", "unique_id": "macro.snowplow_utils.bigquery__unnest", "macro_sql": "{% macro bigquery__unnest(id_column, unnest_column, field_alias, source_table, with_index=false) %}\n select {{ id_column }}, r as {{ field_alias }} {% if with_index %}, source_index {% endif %}\n from {{ source_table }} t, unnest(t.{{ unnest_column }}) r {% if with_index %} WITH OFFSET AS source_index {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0457287, "supported_languages": null}, "macro.snowplow_utils.snowflake__unnest": {"name": "snowflake__unnest", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/unnest.sql", "original_file_path": "macros/utils/cross_db/unnest.sql", "unique_id": "macro.snowplow_utils.snowflake__unnest", "macro_sql": "{% macro snowflake__unnest(id_column, unnest_column, field_alias, source_table, with_index=false) %}\n select t.{{ id_column }}, replace(r.value, '\"', '') as {{ field_alias }}\n {% if with_index %}, r.index as source_index {% endif %}\n from {{ source_table }} t, table(flatten(t.{{ unnest_column }})) r\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0463068, "supported_languages": null}, "macro.snowplow_utils.postgres__unnest": {"name": "postgres__unnest", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/unnest.sql", "original_file_path": "macros/utils/cross_db/unnest.sql", "unique_id": "macro.snowplow_utils.postgres__unnest", "macro_sql": "{% macro postgres__unnest(id_column, unnest_column, field_alias, source_table, with_index=false) %}\n select {{ id_column }}, trim(unnest({{ unnest_column }})) as {{ field_alias }}\n from {{ source_table }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0467584, "supported_languages": null}, "macro.snowplow_utils.redshift__unnest": {"name": "redshift__unnest", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/unnest.sql", "original_file_path": "macros/utils/cross_db/unnest.sql", "unique_id": "macro.snowplow_utils.redshift__unnest", "macro_sql": "{% macro redshift__unnest(id_column, unnest_column, field_alias, source_table, with_index=false) %}\n select {{ id_column }}, {{ field_alias }} {% if with_index %} , index as source_index {% endif %} \n from {{ source_table }} p, p.{{ unnest_column }} as {{ field_alias }}{% if with_index %} at index {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.047441, "supported_languages": null}, "macro.snowplow_utils.get_split_to_array": {"name": "get_split_to_array", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_split_to_array.sql", "original_file_path": "macros/utils/cross_db/get_split_to_array.sql", "unique_id": "macro.snowplow_utils.get_split_to_array", "macro_sql": "\n\n{%- macro get_split_to_array(string_column, column_prefix, delimiter=',') -%}\n {{ return(adapter.dispatch('get_split_to_array', 'snowplow_utils')(string_column, column_prefix, delimiter)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_utils.default__get_split_to_array"]}, "description": "This macro takes care of harmonising cross-db split to array type functions. The macro supports a custom delimiter if your string is not delimited by a comma with no space (default).\n\n#### Returns\n\nThe data warehouse appropriate sql to perform a split to array. \n\n#### Usage\n\n```sql\nselect\n...\n{{ snowplow_utils.get_split_to_array('my_string_column', 'a', ', ') }}\n...\nfrom ... a\n\n```", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_utils://macros/utils/cross_db/cross_db_macros.yml", "arguments": [{"name": "string_column", "type": "string", "description": "Name of the column to split into an array"}, {"name": "column_prefix", "type": "string", "description": "Table alias for the string_column"}, {"name": "delimiter", "type": "string", "description": "(Optional) String that determines how to split your string. Default ','"}], "created_at": 1706612344.532406, "supported_languages": null}, "macro.snowplow_utils.default__get_split_to_array": {"name": "default__get_split_to_array", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_split_to_array.sql", "original_file_path": "macros/utils/cross_db/get_split_to_array.sql", "unique_id": "macro.snowplow_utils.default__get_split_to_array", "macro_sql": "{% macro default__get_split_to_array(string_column, column_prefix, delimiter=',') %}\n split({{column_prefix}}.{{string_column}}, '{{delimiter}}')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0487797, "supported_languages": null}, "macro.snowplow_utils.redshift__get_split_to_array": {"name": "redshift__get_split_to_array", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_split_to_array.sql", "original_file_path": "macros/utils/cross_db/get_split_to_array.sql", "unique_id": "macro.snowplow_utils.redshift__get_split_to_array", "macro_sql": "{% macro redshift__get_split_to_array(string_column, column_prefix, delimiter=',') %}\n split_to_array({{column_prefix}}.{{string_column}}, '{{delimiter}}')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.049149, "supported_languages": null}, "macro.snowplow_utils.postgres__get_split_to_array": {"name": "postgres__get_split_to_array", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_split_to_array.sql", "original_file_path": "macros/utils/cross_db/get_split_to_array.sql", "unique_id": "macro.snowplow_utils.postgres__get_split_to_array", "macro_sql": "{% macro postgres__get_split_to_array(string_column, column_prefix, delimiter=',') %}\n string_to_array({{column_prefix}}.{{string_column}}, '{{delimiter}}')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0496733, "supported_languages": null}, "macro.snowplow_utils.type_max_string": {"name": "type_max_string", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/datatypes.sql", "original_file_path": "macros/utils/cross_db/datatypes.sql", "unique_id": "macro.snowplow_utils.type_max_string", "macro_sql": "\n\n{%- macro type_max_string() -%}\n {{ return(adapter.dispatch('type_max_string', 'snowplow_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_utils.default__type_max_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0502946, "supported_languages": null}, "macro.snowplow_utils.default__type_max_string": {"name": "default__type_max_string", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/datatypes.sql", "original_file_path": "macros/utils/cross_db/datatypes.sql", "unique_id": "macro.snowplow_utils.default__type_max_string", "macro_sql": "{% macro default__type_max_string() %}\n {{ dbt.type_string() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0505552, "supported_languages": null}, "macro.snowplow_utils.redshift__type_max_string": {"name": "redshift__type_max_string", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/datatypes.sql", "original_file_path": "macros/utils/cross_db/datatypes.sql", "unique_id": "macro.snowplow_utils.redshift__type_max_string", "macro_sql": "{% macro redshift__type_max_string() %}\n varchar(max)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0509248, "supported_languages": null}, "macro.snowplow_utils.get_array_size": {"name": "get_array_size", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_array_size.sql", "original_file_path": "macros/utils/cross_db/get_array_size.sql", "unique_id": "macro.snowplow_utils.get_array_size", "macro_sql": "\n\n{%- macro get_array_size(array_column) -%}\n {{ return(adapter.dispatch('get_array_size', 'snowplow_utils')(array_column)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.snowplow_utils.default__get_array_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.051717, "supported_languages": null}, "macro.snowplow_utils.default__get_array_size": {"name": "default__get_array_size", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_array_size.sql", "original_file_path": "macros/utils/cross_db/get_array_size.sql", "unique_id": "macro.snowplow_utils.default__get_array_size", "macro_sql": "{% macro default__get_array_size(array_column) %}\n array_size({{array_column}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0519962, "supported_languages": null}, "macro.snowplow_utils.bigquery__get_array_size": {"name": "bigquery__get_array_size", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_array_size.sql", "original_file_path": "macros/utils/cross_db/get_array_size.sql", "unique_id": "macro.snowplow_utils.bigquery__get_array_size", "macro_sql": "{% macro bigquery__get_array_size(array_column) %}\n array_length({{array_column}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0522208, "supported_languages": null}, "macro.snowplow_utils.postgres__get_array_size": {"name": "postgres__get_array_size", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_array_size.sql", "original_file_path": "macros/utils/cross_db/get_array_size.sql", "unique_id": "macro.snowplow_utils.postgres__get_array_size", "macro_sql": "{% macro postgres__get_array_size(array_column) %}\n array_length({{array_column}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0524375, "supported_languages": null}, "macro.snowplow_utils.redshift__get_array_size": {"name": "redshift__get_array_size", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_array_size.sql", "original_file_path": "macros/utils/cross_db/get_array_size.sql", "unique_id": "macro.snowplow_utils.redshift__get_array_size", "macro_sql": "{% macro redshift__get_array_size(array_column) %}\n get_array_length({{array_column}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0526776, "supported_languages": null}, "macro.snowplow_utils.cluster_by_fields_sessions_lifecycle": {"name": "cluster_by_fields_sessions_lifecycle", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/cluster_by_fields.sql", "original_file_path": "macros/utils/cross_db/cluster_by_fields.sql", "unique_id": "macro.snowplow_utils.cluster_by_fields_sessions_lifecycle", "macro_sql": "{% macro cluster_by_fields_sessions_lifecycle() %}\n\n {{ return(adapter.dispatch('cluster_by_fields_sessions_lifecycle', 'snowplow_utils')()) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.default__cluster_by_fields_sessions_lifecycle"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0532196, "supported_languages": null}, "macro.snowplow_utils.default__cluster_by_fields_sessions_lifecycle": {"name": "default__cluster_by_fields_sessions_lifecycle", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/cluster_by_fields.sql", "original_file_path": "macros/utils/cross_db/cluster_by_fields.sql", "unique_id": "macro.snowplow_utils.default__cluster_by_fields_sessions_lifecycle", "macro_sql": "{% macro default__cluster_by_fields_sessions_lifecycle() %}\n\n {{ return(snowplow_utils.get_value_by_target_type(bigquery_val=[\"session_identifier\"], snowflake_val=[\"to_date(start_tstamp)\"])) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_value_by_target_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0536442, "supported_languages": null}, "macro.snowplow_utils.get_field": {"name": "get_field", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_field.sql", "original_file_path": "macros/utils/cross_db/get_field.sql", "unique_id": "macro.snowplow_utils.get_field", "macro_sql": "{% macro get_field(column_name, field_name, table_alias = none, type = none, array_index = none, relation = none) %}\n {{ return(adapter.dispatch('get_field', 'snowplow_utils')(column_name, field_name, table_alias, type, array_index, relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.snowflake__get_field"]}, "description": "This macro exists to make it easier to extract a field from our `unstruct_` and `contexts_` type columns for users in Snowflake, Databricks, and BigQuery (using a wildcard version number is only possible for BigQuery e.g. `column_name = 'contexts_nl_basjes_yauaa_context_1_*'`). The macro can handle type casting and selecting from arrays.\n\n#### Returns\n\nSQL snippet to select the field specified from the column\n\n#### Usage\n\nExtracting a single field\n```sql\n\nselect\n{{ snowplow_utils.get_field(column_name = 'contexts_nl_basjes_yauaa_context_1', \n field_name = 'agent_class', \n table_alias = 'a',\n type = 'string',\n array_index = 0)}} as yauaa_agent_class\nfrom \n my_events_table a\n\n```\n\nExtracting multiple fields\n```sql\n\nselect\n{% for field in [('field1', 'string'), ('field2', 'numeric'), ...] %}\n {{ snowplow_utils.get_field(column_name = 'contexts_nl_basjes_yauaa_context_1', \n field_name = field[0], \n table_alias = 'a',\n type = field[1],\n array_index = 0)}} as {{ field[0] }}\n{% endfor %}\n\nfrom \n my_events_table a\n\n```", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_utils://macros/utils/cross_db/cross_db_macros.yml", "arguments": [{"name": "column_name", "type": "string", "description": "Name of the column to extract the field from"}, {"name": "field_name", "type": "string", "description": "Name of the field to extract"}, {"name": "table_alias", "type": "string", "description": "(Optional) Alias of the table in your query that the column exists in. Default `none` (no table alias)"}, {"name": "type", "type": "string", "description": "(Optional) Type to cast the field to if required. Default `none` (no casting)"}, {"name": "array_index", "type": "integer", "description": "(Optional) Index of the array to select in case of multiple entries. Uses `SAFE_OFFSET` for BigQuery. Default `none` (not an array)"}], "created_at": 1706612344.5354185, "supported_languages": null}, "macro.snowplow_utils.bigquery__get_field": {"name": "bigquery__get_field", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_field.sql", "original_file_path": "macros/utils/cross_db/get_field.sql", "unique_id": "macro.snowplow_utils.bigquery__get_field", "macro_sql": "{% macro bigquery__get_field(column_name, field_name, table_alias = none, type = none, array_index = none, relation = none) %}\n\n{% if '*' in column_name %}\n {{ snowplow_utils.get_optional_fields(\n enabled=true,\n fields=[{'field': field_name, 'dtype': type or 'string' }],\n col_prefix=column_name|replace('_*', ''),\n relation=relation,\n relation_alias=table_alias,\n include_field_alias=false\n ) }}\n\n{% else %}\n{%- if type -%}cast({%- endif -%}{%- if table_alias -%}{{table_alias}}.{%- endif -%}{{column_name}}{%- if array_index is not none -%}[SAFE_OFFSET({{array_index}})]{%- endif -%}.{{field_name}}{%- if type %} as {{type}}){%- endif -%}\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_optional_fields"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.058984, "supported_languages": null}, "macro.snowplow_utils.spark__get_field": {"name": "spark__get_field", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_field.sql", "original_file_path": "macros/utils/cross_db/get_field.sql", "unique_id": "macro.snowplow_utils.spark__get_field", "macro_sql": "{% macro spark__get_field(column_name, field_name, table_alias = none, type = none, array_index = none, relation = none) %}\n{% if '*' in column_name %}\n {% do exceptions.raise_compiler_error('Wildcard schema versions are only supported for Bigquery, they are not supported for ' ~ target.type) %}\n{% else %}\n {%- if table_alias -%}{{table_alias}}.{%- endif -%}{{column_name}}{%- if array_index is not none -%}[{{array_index}}]{%- endif -%}.{{field_name}}{%- if type -%}::{{type}}{%- endif -%}\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0601761, "supported_languages": null}, "macro.snowplow_utils.snowflake__get_field": {"name": "snowflake__get_field", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_field.sql", "original_file_path": "macros/utils/cross_db/get_field.sql", "unique_id": "macro.snowplow_utils.snowflake__get_field", "macro_sql": "{% macro snowflake__get_field(column_name, field_name, table_alias = none, type = none, array_index = none, relation = none) %}\n{% if '*' in column_name %}\n {% do exceptions.raise_compiler_error('Wildcard schema versions are only supported for Bigquery, they are not supported for ' ~ target.type) %}\n{% else %}\n {%- if type is none and execute -%}\n {% do exceptions.warn(\"Warning: macro snowplow_utils.get_field is being used without a type provided, Snowflake will return a variant column in this case which is unlikely to be what you want.\") %}\n {%- endif -%}\n {%- if table_alias -%}{{table_alias}}.{%- endif -%}{{column_name}}{%- if array_index is not none -%}[{{array_index}}]{%- endif -%}:{{field_name}}{%- if type -%}::{{type}}{%- endif -%}\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0616007, "supported_languages": null}, "macro.snowplow_utils.default__get_field": {"name": "default__get_field", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/get_field.sql", "original_file_path": "macros/utils/cross_db/get_field.sql", "unique_id": "macro.snowplow_utils.default__get_field", "macro_sql": "{% macro default__get_field(column_name, field_name, table_alias = none, type = none, array_index = none, relation = none) %}\n\n{% if execute %}\n {% do exceptions.raise_compiler_error('Macro get_field only supports Bigquery, Snowflake, Spark, and Databricks, it is not supported for ' ~ target.type) %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0623052, "supported_languages": null}, "macro.snowplow_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_tstamp, second_tstamp, datepart) %}\n {{ return(adapter.dispatch('timestamp_diff', 'snowplow_utils')(first_tstamp, second_tstamp, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.default__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.065513, "supported_languages": null}, "macro.snowplow_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_tstamp, second_tstamp, datepart) %}\n {{ return(datediff(first_tstamp, second_tstamp, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0659103, "supported_languages": null}, "macro.snowplow_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_tstamp, second_tstamp, datepart) %}\n timestamp_diff({{second_tstamp}}, {{first_tstamp}}, {{datepart}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0663025, "supported_languages": null}, "macro.snowplow_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, tstamp) %}\n {{ return(adapter.dispatch('timestamp_add', 'snowplow_utils')(datepart, interval, tstamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.default__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0669072, "supported_languages": null}, "macro.snowplow_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, tstamp) %}\n {{ return(dateadd(datepart, interval, tstamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0673416, "supported_languages": null}, "macro.snowplow_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, tstamp) %}\n timestamp_add({{tstamp}}, interval {{interval}} {{datepart}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0676866, "supported_languages": null}, "macro.snowplow_utils.databricks__timestamp_add": {"name": "databricks__timestamp_add", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.databricks__timestamp_add", "macro_sql": "{% macro databricks__timestamp_add(datepart, interval, tstamp) %}\n timestampadd({{datepart}}, {{interval}}, {{tstamp}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0680184, "supported_languages": null}, "macro.snowplow_utils.cast_to_tstamp": {"name": "cast_to_tstamp", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.cast_to_tstamp", "macro_sql": "{% macro cast_to_tstamp(tstamp_literal) -%}\n {% if tstamp_literal is none or tstamp_literal|lower in ['null',''] %}\n cast(null as {{type_timestamp()}})\n {% else %}\n cast('{{tstamp_literal}}' as {{type_timestamp()}})\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0688245, "supported_languages": null}, "macro.snowplow_utils.to_unixtstamp": {"name": "to_unixtstamp", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.to_unixtstamp", "macro_sql": "\n\n\n{%- macro to_unixtstamp(tstamp) -%}\n {{ adapter.dispatch('to_unixtstamp', 'snowplow_utils') (tstamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.snowflake__to_unixtstamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0691767, "supported_languages": null}, "macro.snowplow_utils.default__to_unixtstamp": {"name": "default__to_unixtstamp", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.default__to_unixtstamp", "macro_sql": "\n\n\n{%- macro default__to_unixtstamp(tstamp) -%}\n date_part('epoch', {{ tstamp }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0694098, "supported_languages": null}, "macro.snowplow_utils.snowflake__to_unixtstamp": {"name": "snowflake__to_unixtstamp", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.snowflake__to_unixtstamp", "macro_sql": "\n\n\n{%- macro snowflake__to_unixtstamp(tstamp) -%}\n date_part('epoch_seconds', {{ tstamp }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0696313, "supported_languages": null}, "macro.snowplow_utils.bigquery__to_unixtstamp": {"name": "bigquery__to_unixtstamp", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.bigquery__to_unixtstamp", "macro_sql": "\n\n\n{%- macro bigquery__to_unixtstamp(tstamp) -%}\n unix_seconds({{ tstamp }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0698502, "supported_languages": null}, "macro.snowplow_utils.spark__to_unixtstamp": {"name": "spark__to_unixtstamp", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.spark__to_unixtstamp", "macro_sql": "\n\n{%- macro spark__to_unixtstamp(tstamp) -%}\n unix_timestamp({{ tstamp }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.070136, "supported_languages": null}, "macro.snowplow_utils.current_timestamp_in_utc": {"name": "current_timestamp_in_utc", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.current_timestamp_in_utc", "macro_sql": "{% macro current_timestamp_in_utc() -%}\n {{ return(adapter.dispatch('current_timestamp_in_utc', 'snowplow_utils')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.snowflake__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0704916, "supported_languages": null}, "macro.snowplow_utils.default__current_timestamp_in_utc": {"name": "default__current_timestamp_in_utc", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.default__current_timestamp_in_utc", "macro_sql": "{% macro default__current_timestamp_in_utc() %}\n {{current_timestamp()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0707185, "supported_languages": null}, "macro.snowplow_utils.snowflake__current_timestamp_in_utc": {"name": "snowflake__current_timestamp_in_utc", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.snowflake__current_timestamp_in_utc", "macro_sql": "{% macro snowflake__current_timestamp_in_utc() %}\n convert_timezone('UTC', {{current_timestamp()}})::{{type_timestamp()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.071003, "supported_languages": null}, "macro.snowplow_utils.postgres__current_timestamp_in_utc": {"name": "postgres__current_timestamp_in_utc", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.postgres__current_timestamp_in_utc", "macro_sql": "{% macro postgres__current_timestamp_in_utc() %}\n (current_timestamp at time zone 'utc')::{{type_timestamp()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0712283, "supported_languages": null}, "macro.snowplow_utils.redshift__current_timestamp_in_utc": {"name": "redshift__current_timestamp_in_utc", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/cross_db/timestamp_functions.sql", "original_file_path": "macros/utils/cross_db/timestamp_functions.sql", "unique_id": "macro.snowplow_utils.redshift__current_timestamp_in_utc", "macro_sql": "{% macro redshift__current_timestamp_in_utc() %}\n {{ return(snowplow_utils.default__current_timestamp_in_utc()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.default__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.071509, "supported_languages": null}, "macro.snowplow_utils.get_optional_fields": {"name": "get_optional_fields", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/bigquery/get_optional_fields.sql", "original_file_path": "macros/utils/bigquery/get_optional_fields.sql", "unique_id": "macro.snowplow_utils.get_optional_fields", "macro_sql": "{% macro get_optional_fields(enabled, fields, col_prefix, relation, relation_alias, include_field_alias=true) -%}\n\n {%- if enabled -%}\n\n {%- set combined_fields = snowplow_utils.combine_column_versions(\n relation=relation,\n column_prefix=col_prefix,\n required_fields=fields|map(attribute='field')|list,\n relation_alias=relation_alias,\n include_field_alias=include_field_alias\n ) -%}\n\n {{ combined_fields|join(',\\n') }}\n\n {%- else -%}\n\n {% for field in fields %}\n\n {%- set field_alias = snowplow_utils.get_field_alias(field.field)[1] -%}\n\n cast(null as {{ field.dtype }}){%- if include_field_alias %} as {{ field_alias }}{%- endif %} {%- if not loop.last %}, {% endif %}\n {% endfor %}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.combine_column_versions", "macro.snowplow_utils.get_field_alias"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.073549, "supported_languages": null}, "macro.snowplow_utils.exclude_column_versions": {"name": "exclude_column_versions", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/bigquery/combine_column_versions/exclude_column_versions.sql", "original_file_path": "macros/utils/bigquery/combine_column_versions/exclude_column_versions.sql", "unique_id": "macro.snowplow_utils.exclude_column_versions", "macro_sql": "{% macro exclude_column_versions(columns, exclude_versions) %}\n {%- set filtered_columns_by_version = [] -%}\n {% for column in columns %}\n {%- set col_version = column.name[-5:] -%}\n {% if col_version not in exclude_versions %}\n {% do filtered_columns_by_version.append(column) %}\n {% endif %}\n {% endfor %}\n\n {{ return(filtered_columns_by_version) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.074724, "supported_languages": null}, "macro.snowplow_utils.coalesce_field_paths": {"name": "coalesce_field_paths", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/bigquery/combine_column_versions/coalesce_field_paths.sql", "original_file_path": "macros/utils/bigquery/combine_column_versions/coalesce_field_paths.sql", "unique_id": "macro.snowplow_utils.coalesce_field_paths", "macro_sql": "{% macro coalesce_field_paths(paths, field_alias, include_field_alias, relation_alias) %}\n\n {% set relation_alias = '' if relation_alias is none else relation_alias~'.' %}\n\n {% set field_alias = '' if not include_field_alias else ' as '~field_alias %}\n\n {% set joined_paths = relation_alias~paths|join(', '~relation_alias) %}\n\n {% set coalesced_field_paths = 'coalesce('~joined_paths~')'~field_alias %}\n\n {{ return(coalesced_field_paths) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0759757, "supported_languages": null}, "macro.snowplow_utils.get_matched_fields": {"name": "get_matched_fields", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/bigquery/combine_column_versions/get_matched_fields.sql", "original_file_path": "macros/utils/bigquery/combine_column_versions/get_matched_fields.sql", "unique_id": "macro.snowplow_utils.get_matched_fields", "macro_sql": "{% macro get_matched_fields(fields, required_field_names, nested_level, level_filter) %}\n\n {% if not required_field_names|length %}\n\n {% if nested_level is none %}\n\n {% set matched_fields = fields %}\n\n {% else %}\n\n {% set matched_fields = fields|selectattr('nested_level',level_filter, nested_level)|list %}\n\n {% endif %}\n\n {% else %}\n\n {% set matched_fields = fields|selectattr('field_name','in', required_field_names)|list %}\n\n {% endif %}\n\n {{ return(matched_fields) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.077454, "supported_languages": null}, "macro.snowplow_utils.get_level_limit": {"name": "get_level_limit", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/bigquery/combine_column_versions/get_level_limit.sql", "original_file_path": "macros/utils/bigquery/combine_column_versions/get_level_limit.sql", "unique_id": "macro.snowplow_utils.get_level_limit", "macro_sql": "{% macro get_level_limit(level, level_filter, required_field_names) %}\n\n {% set accepted_level_filters = ['equalto','lessthan','greaterthan'] %}\n\n {% if level_filter is not in accepted_level_filters %}\n {% set incompatible_level_filter_error_message -%}\n Error: Incompatible level filter arg. Accepted args: {{accepted_level_filters|join(', ')}}\n {%- endset %}\n {{ return(snowplow_utils.throw_compiler_error(incompatible_level_filter_error_message)) }}\n {% endif %}\n\n {% if level is not none and required_field_names|length %}\n {% set double_filter_error_message -%}\n Error: Cannot filter fields by both `required_fields` and `level` arg. Please use only one.\n {%- endset %}\n {{ return(snowplow_utils.throw_compiler_error(double_filter_error_message)) }}\n {% endif %}\n\n {% if required_field_names|length and level_filter != 'equalto' %}\n {% set required_fields_error_message -%}\n Error: To filter fields using `required_fields` arg, `level_filter` must be set to `equalto`\n {%- endset %}\n {{ return(snowplow_utils.throw_compiler_error(required_fields_error_message)) }}\n {% endif %}\n\n {# level_limit is inclusive #}\n\n {% if level is not none %}\n\n {% if level_filter == 'equalto' %}\n\n {% set level_limit = level %}\n\n {% elif level_filter == 'lessthan' %}\n\n {% set level_limit = level -1 %}\n\n {% elif level_filter == 'greaterthan' %}\n\n {% set level_limit = none %}\n\n {% endif %}\n\n {% elif required_field_names|length %}\n\n {% set field_depths = [] %}\n {% for field in required_field_names %}\n {% set field_depth = field.split('.')|length %}\n {% do field_depths.append(field_depth) %}\n {% endfor %}\n\n {% set level_limit = field_depths|max %}\n\n {% else %}\n\n {# Case when selecting all available fields #}\n\n {% set level_limit = none %}\n\n {% endif %}\n\n {{ return(level_limit) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.throw_compiler_error"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.082097, "supported_languages": null}, "macro.snowplow_utils.merge_fields_across_col_versions": {"name": "merge_fields_across_col_versions", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/bigquery/combine_column_versions/merge_fields_across_col_versions.sql", "original_file_path": "macros/utils/bigquery/combine_column_versions/merge_fields_across_col_versions.sql", "unique_id": "macro.snowplow_utils.merge_fields_across_col_versions", "macro_sql": "{% macro merge_fields_across_col_versions(fields_by_col_version) %}\n\n {# Flatten nested list of dicts into single list #}\n {% set all_cols = fields_by_col_version|sum(start=[]) %}\n\n {% set all_field_names = all_cols|map(attribute=\"field_name\")|list %}\n\n {% set unique_field_names = all_field_names|unique|list %}\n\n {% set merged_fields = [] %}\n\n {% for field_name in unique_field_names %}\n\n {# Get all field_paths per field. Returned as array. #}\n {% set field_paths = all_cols|selectattr('field_name','equalto', field_name)|map(attribute='path')|list %}\n\n {# Get nested_level of field. Returned as single element array. #}\n {% set nested_level = all_cols|selectattr('field_name',\"equalto\", field_name)|map(attribute='nested_level')|list%}\n\n {% set merged_field = {\n 'field_name': field_name,\n 'field_paths': field_paths,\n 'nested_level': nested_level[0]\n } %}\n\n {% do merged_fields.append(merged_field) %}\n\n {% endfor %}\n\n {{ return(merged_fields) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0844352, "supported_languages": null}, "macro.snowplow_utils.flatten_fields": {"name": "flatten_fields", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/bigquery/combine_column_versions/flatten_fields.sql", "original_file_path": "macros/utils/bigquery/combine_column_versions/flatten_fields.sql", "unique_id": "macro.snowplow_utils.flatten_fields", "macro_sql": "{% macro flatten_fields(fields, parent, path, array_index, level_limit=none, level_counter=1, flattened_fields=[], field_name='') %}\n\n {% for field in fields %}\n\n {# Only recurse up-until level_limit #}\n {% if level_limit is not none and level_counter > level_limit %}\n {{ return(flattened_fields) }}\n {% endif %}\n\n {# If parent column is an array then take element [array_index]. #}\n {% set delimiter = '[safe_offset(%s)].'|format(array_index) if parent.mode == 'REPEATED' else '.' %}\n {% set path = path~delimiter~field.name %}\n {% set field_name = field_name~'.'~field.name if field_name != '' else field_name~field.name %}\n\n {% set field_dict = {\n 'field_name': field_name,\n 'path': path,\n 'nested_level': level_counter\n } %}\n\n {% do flattened_fields.append(field_dict) %}\n\n {# If field has nested fields recurse to extract all fields, unless array. #}\n {% if field.dtype == 'RECORD' and field.mode != 'REPEATED' %}\n\n {{ snowplow_utils.flatten_fields(\n fields=field.fields,\n parent=field,\n level_limit=level_limit,\n level_counter=level_counter+1,\n path=path,\n flattened_fields=flattened_fields,\n field_name=field_name\n ) }}\n\n {% endif %}\n\n {% endfor %}\n\n {{ return(flattened_fields) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.flatten_fields"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0876808, "supported_languages": null}, "macro.snowplow_utils.get_field_alias": {"name": "get_field_alias", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/bigquery/combine_column_versions/get_field_alias.sql", "original_file_path": "macros/utils/bigquery/combine_column_versions/get_field_alias.sql", "unique_id": "macro.snowplow_utils.get_field_alias", "macro_sql": "{% macro get_field_alias(field) %}\n\n {# Check if field is supplied as tuple e.g. (field_name, field_alias) #}\n {% if field is iterable and field is not string %}\n {{ return(field) }}\n {% else %}\n {{ return((field, field|replace('.', '_'))) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.0885994, "supported_languages": null}, "macro.snowplow_utils.combine_column_versions": {"name": "combine_column_versions", "resource_type": "macro", "package_name": "snowplow_utils", "path": "macros/utils/bigquery/combine_column_versions/combine_column_versions.sql", "original_file_path": "macros/utils/bigquery/combine_column_versions/combine_column_versions.sql", "unique_id": "macro.snowplow_utils.combine_column_versions", "macro_sql": "{% macro combine_column_versions(relation, column_prefix, required_fields=[], nested_level=none, level_filter='equalto', relation_alias=none, include_field_alias=true, array_index=0, max_nested_level=15, exclude_versions=[]) %}\n\n {# Create field_alias if not supplied i.e. is not tuple #}\n {% set required_fields_tmp = required_fields %}\n {% set required_fields = [] %}\n {% for field in required_fields_tmp %}\n {% set field_tuple = snowplow_utils.get_field_alias(field) %}\n {% do required_fields.append(field_tuple) %}\n {% endfor %}\n\n {% set required_field_names = required_fields|map(attribute=0)|list %}\n\n {# Determines correct level_limit. This limits recursive iterations during unnesting. #}\n {% set level_limit = snowplow_utils.get_level_limit(nested_level, level_filter, required_field_names) %}\n\n {# Limit level_limit to max_nested_level if required #}\n {% set level_limit = max_nested_level if level_limit is none or level_limit > max_nested_level else level_limit %}\n\n {%- set matched_columns = snowplow_utils.get_columns_in_relation_by_column_prefix(relation, column_prefix) -%}\n\n {# Removes excluded versions, assuming column name ends with a version of format 'X_X_X' #}\n {%- set filter_columns_by_version = snowplow_utils.exclude_column_versions(matched_columns, exclude_versions) -%}\n\n {%- set flattened_fields_by_col_version = [] -%}\n\n {# Flatten fields within each column version. Returns nested arrays of dicts. #}\n {# Dict: {'field_name': str, 'field_alias': str, 'flattened_path': str, 'nested_level': int #}\n {% for column in filter_columns_by_version|sort(attribute='name', reverse=true) %}\n {% set flattened_fields = snowplow_utils.flatten_fields(fields=column.fields,\n parent=column,\n path=column.name,\n array_index=array_index,\n level_limit=level_limit\n ) %}\n\n {% do flattened_fields_by_col_version.append(flattened_fields) %}\n\n {% endfor %}\n\n {# Flatten nested arrays and merges fields across col version. Returns array of dicts containing all field_paths for field. #}\n {# Dict: {'field_name': str, 'flattened_field_paths': str, 'nested_level': int #}\n {% set merged_fields = snowplow_utils.merge_fields_across_col_versions(flattened_fields_by_col_version) %}\n\n {# Filters merged_fields based on required_fields if provided, or the level filter if provided. Default return all fields. #}\n {% set matched_fields = snowplow_utils.get_matched_fields(fields=merged_fields,\n required_field_names=required_field_names,\n nested_level=nested_level,\n level_filter=level_filter\n ) %}\n\n {% set coalesced_field_paths = [] %}\n\n {% for field in matched_fields %}\n\n {% set passed_field_alias = required_fields|selectattr(0, \"equalto\", field.field_name)|map(attribute=1)|list %}\n {% set default_field_alias = field.field_name|replace('.', '_') %}\n {# Use passed_field_alias from required_fields if supplied #}\n {% set field_alias = default_field_alias if not passed_field_alias|length else passed_field_alias[0] %}\n\n {# Coalesce each field's path across all version of columns, ordered by latest col version. #}\n {% set coalesced_field_path = snowplow_utils.coalesce_field_paths(paths=field.field_paths,\n field_alias=field_alias,\n include_field_alias=include_field_alias,\n relation_alias=relation_alias) %}\n\n {% do coalesced_field_paths.append(coalesced_field_path) %}\n\n {% endfor %}\n\n {# Returns array of all coalesced field paths #}\n {{ return(coalesced_field_paths) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.snowplow_utils.get_field_alias", "macro.snowplow_utils.get_level_limit", "macro.snowplow_utils.get_columns_in_relation_by_column_prefix", "macro.snowplow_utils.exclude_column_versions", "macro.snowplow_utils.flatten_fields", "macro.snowplow_utils.merge_fields_across_col_versions", "macro.snowplow_utils.get_matched_fields", "macro.snowplow_utils.coalesce_field_paths"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1706612340.094436, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.snowplow_unified.col_app_id": {"name": "col_app_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_app_id", "block_contents": "Application ID e.g. \u2018angry-birds\u2019 is used to distinguish different applications that are being tracked by the same Snowplow stack, e.g. production versus dev."}, "doc.snowplow_unified.col_platform": {"name": "col_platform", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_platform", "block_contents": "Platform e.g. \u2018web\u2019"}, "doc.snowplow_unified.col_etl_tstamp": {"name": "col_etl_tstamp", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_etl_tstamp", "block_contents": "Timestamp event began ETL e.g. \u20182017-01-26 00:01:25.292\u2019"}, "doc.snowplow_unified.col_collector_tstamp": {"name": "col_collector_tstamp", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_collector_tstamp", "block_contents": "Time stamp for the event recorded by the collector e.g. \u20182013-11-26 00:02:05\u2019"}, "doc.snowplow_unified.col_dvce_created_tstamp": {"name": "col_dvce_created_tstamp", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_dvce_created_tstamp", "block_contents": "Timestamp event was recorded on the client device e.g. \u20182013-11-26 00:03:57.885\u2019"}, "doc.snowplow_unified.col_event": {"name": "col_event", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_event", "block_contents": "The type of event recorded e.g. \u2018page_view\u2019"}, "doc.snowplow_unified.col_event_id": {"name": "col_event_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_event_id", "block_contents": "A UUID for each event e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019"}, "doc.snowplow_unified.col_txn_id": {"name": "col_txn_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_txn_id", "block_contents": "Transaction ID set client-side, used to de-dupe records e.g. 421828"}, "doc.snowplow_unified.col_name_tracker": {"name": "col_name_tracker", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_name_tracker", "block_contents": "Tracker namespace e.g. \u2018sp1\u2019"}, "doc.snowplow_unified.col_v_tracker": {"name": "col_v_tracker", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_v_tracker", "block_contents": "Tracker version e.g. \u2018js-3.0.0\u2019"}, "doc.snowplow_unified.col_v_collector": {"name": "col_v_collector", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_v_collector", "block_contents": "Collector version e.g. \u2018ssc-2.1.0-kinesis\u2019"}, "doc.snowplow_unified.col_v_etl": {"name": "col_v_etl", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_v_etl", "block_contents": "ETL version e.g. \u2018snowplow-micro-1.1.0-common-1.4.2\u2019"}, "doc.snowplow_unified.col_user_id": {"name": "col_user_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_user_id", "block_contents": "Unique ID set by business e.g. \u2018jon.doe@email.com\u2019"}, "doc.snowplow_unified.col_user_ipaddress": {"name": "col_user_ipaddress", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_user_ipaddress", "block_contents": "User IP address e.g. \u201892.231.54.234\u2019"}, "doc.snowplow_unified.col_user_fingerprint": {"name": "col_user_fingerprint", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_user_fingerprint", "block_contents": "A user fingerprint generated by looking at the individual browser features e.g. 2161814971"}, "doc.snowplow_unified.col_refr_user_identifier": {"name": "col_refr_user_identifier", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_refr_user_identifier", "block_contents": "User identifier specified in your project variables. By default this is the true domain_userid, a user ID set by Snowplow using 1st party cookie e.g. \u2018bc2e92ec6c204a14\u2019"}, "doc.snowplow_unified.col_device_session_index": {"name": "col_device_session_index", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_session_index", "block_contents": "A visit / session index e.g. 3"}, "doc.snowplow_unified.col_network_userid": {"name": "col_network_userid", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_network_userid", "block_contents": "User ID set by Snowplow using 3rd party cookie e.g. \u2018ecdff4d0-9175-40ac-a8bb-325c49733607\u2019"}, "doc.snowplow_unified.col_geo_country": {"name": "col_geo_country", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_geo_country", "block_contents": "ISO 3166-1 code for the country the visitor is located in e.g. \u2018GB\u2019, \u2018US\u2019"}, "doc.snowplow_unified.col_geo_region": {"name": "col_geo_region", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_geo_region", "block_contents": "ISO-3166-2 code for country region the visitor is in e.g. \u2018I9\u2019, \u2018TX\u2019"}, "doc.snowplow_unified.col_geo_city": {"name": "col_geo_city", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_geo_city", "block_contents": "City the visitor is in e.g. \u2018New York\u2019, \u2018London\u2019"}, "doc.snowplow_unified.col_geo_zipcode": {"name": "col_geo_zipcode", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_geo_zipcode", "block_contents": "Postcode the visitor is in e.g. \u201894109\u2019"}, "doc.snowplow_unified.col_geo_latitude": {"name": "col_geo_latitude", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_geo_latitude", "block_contents": "Visitor location latitude e.g. 37.443604"}, "doc.snowplow_unified.col_geo_longitude": {"name": "col_geo_longitude", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_geo_longitude", "block_contents": "Visitor location longitude e.g. -122.4124"}, "doc.snowplow_unified.col_geo_region_name": {"name": "col_geo_region_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_geo_region_name", "block_contents": "Visitor region name e.g. \u2018Florida\u2019"}, "doc.snowplow_unified.col_ip_isp": {"name": "col_ip_isp", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_ip_isp", "block_contents": "Visitor\u2019s ISP e.g. \u2018FDN Communications\u2019"}, "doc.snowplow_unified.col_ip_organization": {"name": "col_ip_organization", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_ip_organization", "block_contents": "Organization associated with the visitor\u2019s IP address \u2013 defaults to ISP name if none is found e.g. \u2018Bouygues Telecom\u2019"}, "doc.snowplow_unified.col_ip_domain": {"name": "col_ip_domain", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_ip_domain", "block_contents": "Second level domain name associated with the visitor\u2019s IP address e.g. \u2018nuvox.net\u2019"}, "doc.snowplow_unified.col_ip_netspeed": {"name": "col_ip_netspeed", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_ip_netspeed", "block_contents": "Visitor\u2019s connection type e.g. \u2018Cable/DSL\u2019"}, "doc.snowplow_unified.col_page_url": {"name": "col_page_url", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_page_url", "block_contents": "The page URL e.g. \u2018http://www.example.com\u2019"}, "doc.snowplow_unified.col_page_title": {"name": "col_page_title", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_page_title", "block_contents": "Web page title e.g. \u2018Snowplow Docs \u2013 Understanding the structure of Snowplow data\u2019"}, "doc.snowplow_unified.col_page_referrer": {"name": "col_page_referrer", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_page_referrer", "block_contents": "URL of the referrer e.g. \u2018http://www.referrer.com\u2019"}, "doc.snowplow_unified.col_page_urlscheme": {"name": "col_page_urlscheme", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_page_urlscheme", "block_contents": "Scheme aka protocol e.g. \u2018https\u2019"}, "doc.snowplow_unified.col_page_urlhost": {"name": "col_page_urlhost", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_page_urlhost", "block_contents": "Host aka domain e.g. \u2018\u201cwww.snowplow.io\u2019"}, "doc.snowplow_unified.col_page_urlport": {"name": "col_page_urlport", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_page_urlport", "block_contents": "Port if specified, 80 if not 80"}, "doc.snowplow_unified.col_page_urlpath": {"name": "col_page_urlpath", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_page_urlpath", "block_contents": "Path to page e.g. \u2018/product/index.html\u2019"}, "doc.snowplow_unified.col_page_urlquery": {"name": "col_page_urlquery", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_page_urlquery", "block_contents": "Querystring e.g. \u2018id=GTM-DLRG\u2019"}, "doc.snowplow_unified.col_page_urlfragment": {"name": "col_page_urlfragment", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_page_urlfragment", "block_contents": "Fragment aka anchor e.g. \u20184-conclusion\u2019"}, "doc.snowplow_unified.col_refr_urlscheme": {"name": "col_refr_urlscheme", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_refr_urlscheme", "block_contents": "Referer scheme e.g. \u2018http\u2019"}, "doc.snowplow_unified.col_refr_urlhost": {"name": "col_refr_urlhost", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_refr_urlhost", "block_contents": "Referer host e.g. \u2018www.bing.com\u2019"}, "doc.snowplow_unified.col_refr_urlport": {"name": "col_refr_urlport", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_refr_urlport", "block_contents": "Referer port e.g. 80"}, "doc.snowplow_unified.col_refr_urlpath": {"name": "col_refr_urlpath", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_refr_urlpath", "block_contents": "Referer page path e.g. \u2018/images/search\u2019"}, "doc.snowplow_unified.col_refr_urlquery": {"name": "col_refr_urlquery", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_refr_urlquery", "block_contents": "Referer URL querystring e.g. \u2018q=psychic+oracle+cards\u2019"}, "doc.snowplow_unified.col_refr_urlfragment": {"name": "col_refr_urlfragment", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_refr_urlfragment", "block_contents": "Referer URL fragment"}, "doc.snowplow_unified.col_refr_medium": {"name": "col_refr_medium", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_refr_medium", "block_contents": "Type of referer e.g. \u2018search\u2019, \u2018internal\u2019"}, "doc.snowplow_unified.col_refr_source": {"name": "col_refr_source", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_refr_source", "block_contents": "Name of referer if recognised e.g. \u2018Bing images\u2019"}, "doc.snowplow_unified.col_refr_term": {"name": "col_refr_term", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_refr_term", "block_contents": "Keywords if source is a search engine e.g. \u2018psychic oracle cards\u2019"}, "doc.snowplow_unified.col_mkt_medium": {"name": "col_mkt_medium", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_mkt_medium", "block_contents": "Type of traffic source e.g. \u2018cpc\u2019, \u2018affiliate\u2019, \u2018organic\u2019, \u2018social\u2019"}, "doc.snowplow_unified.col_mkt_source": {"name": "col_mkt_source", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_mkt_source", "block_contents": "The company / website where the traffic came from e.g. \u2018Google\u2019, \u2018Facebook\u2019"}, "doc.snowplow_unified.col_mkt_term": {"name": "col_mkt_term", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_mkt_term", "block_contents": "Any keywords associated with the referrer e.g. \u2018new age tarot decks\u2019"}, "doc.snowplow_unified.col_mkt_content": {"name": "col_mkt_content", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_mkt_content", "block_contents": "The content of the ad. (Or an ID so that it can be looked up.) e.g. 13894723"}, "doc.snowplow_unified.col_mkt_campaign": {"name": "col_mkt_campaign", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_mkt_campaign", "block_contents": "The campaign ID e.g. \u2018diageo-123\u2019"}, "doc.snowplow_unified.col_se_category": {"name": "col_se_category", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_se_category", "block_contents": "Category of event e.g. \u2018ecomm\u2019, \u2018video\u2019"}, "doc.snowplow_unified.col_se_action": {"name": "col_se_action", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_se_action", "block_contents": "Action performed / event name e.g. \u2018add-to-basket\u2019, \u2018play-video\u2019"}, "doc.snowplow_unified.col_se_label": {"name": "col_se_label", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_se_label", "block_contents": "The object of the action e.g. the ID of the video played or SKU of the product added-to-basket e.g. \u2018pbz00123\u2019"}, "doc.snowplow_unified.col_se_property": {"name": "col_se_property", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_se_property", "block_contents": "A property associated with the object of the action e.g. \u2018HD\u2019, \u2018large\u2019"}, "doc.snowplow_unified.col_se_value": {"name": "col_se_value", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_se_value", "block_contents": "A value associated with the event / action e.g. the value of goods added-to-basket e.g. 9.99"}, "doc.snowplow_unified.col_tr_orderid": {"name": "col_tr_orderid", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_tr_orderid", "block_contents": "Order ID e.g. \u2018#134\u2019"}, "doc.snowplow_unified.col_tr_affiliation": {"name": "col_tr_affiliation", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_tr_affiliation", "block_contents": "Transaction affiliation (e.g. store where sale took place) e.g. \u2018web\u2019"}, "doc.snowplow_unified.col_tr_total": {"name": "col_tr_total", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_tr_total", "block_contents": "Total transaction value e.g. 12.99"}, "doc.snowplow_unified.col_tr_tax": {"name": "col_tr_tax", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_tr_tax", "block_contents": "Total tax included in transaction value e.g. 3.00"}, "doc.snowplow_unified.col_tr_shipping": {"name": "col_tr_shipping", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_tr_shipping", "block_contents": "Delivery cost charged e.g. 0.00"}, "doc.snowplow_unified.col_tr_city": {"name": "col_tr_city", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_tr_city", "block_contents": "Delivery address, city e.g. \u2018London\u2019"}, "doc.snowplow_unified.col_tr_state": {"name": "col_tr_state", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_tr_state", "block_contents": "Delivery address, state e.g. \u2018Washington\u2019"}, "doc.snowplow_unified.col_tr_country": {"name": "col_tr_country", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_tr_country", "block_contents": "Delivery address, country e.g. \u2018France\u2019"}, "doc.snowplow_unified.col_ti_orderid": {"name": "col_ti_orderid", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_ti_orderid", "block_contents": "Order ID e.g. \u2018#134\u2019"}, "doc.snowplow_unified.col_ti_sku": {"name": "col_ti_sku", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_ti_sku", "block_contents": "Product SKU e.g. \u2018pbz00123\u2019"}, "doc.snowplow_unified.col_ti_name": {"name": "col_ti_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_ti_name", "block_contents": "Product name e.g. \u2018Cone pendulum\u2019"}, "doc.snowplow_unified.col_ti_category": {"name": "col_ti_category", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_ti_category", "block_contents": "Product category e.g. \u2018New Age\u2019"}, "doc.snowplow_unified.col_ti_price": {"name": "col_ti_price", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_ti_price", "block_contents": "Product unit price e.g. 9.99"}, "doc.snowplow_unified.col_ti_quantity": {"name": "col_ti_quantity", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_ti_quantity", "block_contents": "Number of product in transaction e.g. 2"}, "doc.snowplow_unified.col_pp_xoffset_min": {"name": "col_pp_xoffset_min", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_pp_xoffset_min", "block_contents": "Minimum page x offset seen in the last ping period e.g. 0"}, "doc.snowplow_unified.col_pp_xoffset_max": {"name": "col_pp_xoffset_max", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_pp_xoffset_max", "block_contents": "Maximum page x offset seen in the last ping period e.g. 100"}, "doc.snowplow_unified.col_pp_yoffset_min": {"name": "col_pp_yoffset_min", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_pp_yoffset_min", "block_contents": "Minimum page y offset seen in the last ping period e.g. 0"}, "doc.snowplow_unified.col_pp_yoffset_max": {"name": "col_pp_yoffset_max", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_pp_yoffset_max", "block_contents": "Maximum page y offset seen in the last ping period e.g. 200"}, "doc.snowplow_unified.col_useragent": {"name": "col_useragent", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_useragent", "block_contents": "Raw useragent"}, "doc.snowplow_unified.col_br_name": {"name": "col_br_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_name", "block_contents": "Browser name e.g. \u2018Firefox 12\u2019"}, "doc.snowplow_unified.col_br_family": {"name": "col_br_family", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_family", "block_contents": "Browser family e.g. \u2018Firefox\u2019"}, "doc.snowplow_unified.col_br_version": {"name": "col_br_version", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_version", "block_contents": "Browser version e.g. \u201812.0\u2019"}, "doc.snowplow_unified.col_br_type": {"name": "col_br_type", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_type", "block_contents": "Browser type e.g. \u2018Browser\u2019"}, "doc.snowplow_unified.col_br_renderengine": {"name": "col_br_renderengine", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_renderengine", "block_contents": "Browser rendering engine e.g. \u2018GECKO\u2019"}, "doc.snowplow_unified.col_br_lang": {"name": "col_br_lang", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_lang", "block_contents": "Language the browser is set to e.g. \u2018en-GB\u2019"}, "doc.snowplow_unified.col_br_features_pdf": {"name": "col_br_features_pdf", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_features_pdf", "block_contents": "Whether the browser recognizes PDFs e.g. True"}, "doc.snowplow_unified.col_br_features_flash": {"name": "col_br_features_flash", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_features_flash", "block_contents": "Whether Flash is installed e.g. True"}, "doc.snowplow_unified.col_br_features_java": {"name": "col_br_features_java", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_features_java", "block_contents": "Whether Java is installed e.g. True"}, "doc.snowplow_unified.col_br_features_director": {"name": "col_br_features_director", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_features_director", "block_contents": "Whether Adobe Shockwave is installed e.g. True"}, "doc.snowplow_unified.col_br_features_quicktime": {"name": "col_br_features_quicktime", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_features_quicktime", "block_contents": "Whether QuickTime is installed e.g. True"}, "doc.snowplow_unified.col_br_features_realplayer": {"name": "col_br_features_realplayer", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_features_realplayer", "block_contents": "Whether RealPlayer is installed e.g. True"}, "doc.snowplow_unified.col_br_features_windowsmedia": {"name": "col_br_features_windowsmedia", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_features_windowsmedia", "block_contents": "Whether mplayer2 is installed e.g. True"}, "doc.snowplow_unified.col_br_features_gears": {"name": "col_br_features_gears", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_features_gears", "block_contents": "Whether Google Gears is installed e.g. True"}, "doc.snowplow_unified.col_br_features_silverlight": {"name": "col_br_features_silverlight", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_features_silverlight", "block_contents": "Whether Microsoft Silverlight is installed e.g. True"}, "doc.snowplow_unified.col_br_cookies": {"name": "col_br_cookies", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_cookies", "block_contents": "Whether cookies are enabled e.g. True"}, "doc.snowplow_unified.col_br_colordepth": {"name": "col_br_colordepth", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_colordepth", "block_contents": "Bit depth of the browser color palette e.g. 24"}, "doc.snowplow_unified.col_br_viewwidth": {"name": "col_br_viewwidth", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_viewwidth", "block_contents": "Viewport width e.g. 1000"}, "doc.snowplow_unified.col_br_viewheight": {"name": "col_br_viewheight", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_viewheight", "block_contents": "Viewport height e.g. 1000"}, "doc.snowplow_unified.col_os_name": {"name": "col_os_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_os_name", "block_contents": "Name of operating system e.g. \u2018Android\u2019"}, "doc.snowplow_unified.col_os_family": {"name": "col_os_family", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_os_family", "block_contents": "Operating system family e.g. \u2018Linux\u2019"}, "doc.snowplow_unified.col_os_manufacturer": {"name": "col_os_manufacturer", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_os_manufacturer", "block_contents": "Company responsible for OS e.g. \u2018Apple\u2019"}, "doc.snowplow_unified.col_os_timezone": {"name": "col_os_timezone", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_os_timezone", "block_contents": "Client operating system timezone e.g. \u2018Europe/London\u2019"}, "doc.snowplow_unified.col_dvce_type": {"name": "col_dvce_type", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_dvce_type", "block_contents": "Type of device e.g. \u2018Computer\u2019"}, "doc.snowplow_unified.col_dvce_ismobile": {"name": "col_dvce_ismobile", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_dvce_ismobile", "block_contents": "Is the device mobile? e.g. True"}, "doc.snowplow_unified.col_dvce_screenwidth": {"name": "col_dvce_screenwidth", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_dvce_screenwidth", "block_contents": "Screen width in pixels e.g. 1900"}, "doc.snowplow_unified.col_dvce_screenheight": {"name": "col_dvce_screenheight", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_dvce_screenheight", "block_contents": "Screen height in pixels e.g. 1024"}, "doc.snowplow_unified.col_doc_charset": {"name": "col_doc_charset", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_doc_charset", "block_contents": "The page\u2019s character encoding e.g. , \u2018UTF-8\u2019"}, "doc.snowplow_unified.col_doc_width": {"name": "col_doc_width", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_doc_width", "block_contents": "The page\u2019s width in pixels e.g. 1024\n\nOn mobile, it is the content width reported in the `screen_summary` context."}, "doc.snowplow_unified.col_doc_height": {"name": "col_doc_height", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_doc_height", "block_contents": "The page\u2019s height in pixels e.g. 3000\n\nOn mobile, it is the content height reported in the `screen_summary` context."}, "doc.snowplow_unified.col_tr_currency": {"name": "col_tr_currency", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_tr_currency", "block_contents": "Currency e.g. \u2018USD\u2019"}, "doc.snowplow_unified.col_tr_total_base": {"name": "col_tr_total_base", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_tr_total_base", "block_contents": "Total in base currency e.g. 12.99"}, "doc.snowplow_unified.col_tr_tax_base": {"name": "col_tr_tax_base", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_tr_tax_base", "block_contents": "Total tax in base currency e.g. 3.00"}, "doc.snowplow_unified.col_tr_shipping_base": {"name": "col_tr_shipping_base", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_tr_shipping_base", "block_contents": "decimal Delivery cost in base currency e.g. 0.00"}, "doc.snowplow_unified.col_ti_currency": {"name": "col_ti_currency", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_ti_currency", "block_contents": "Currency e.g. \u2018EUR\u2019"}, "doc.snowplow_unified.col_ti_price_base": {"name": "col_ti_price_base", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_ti_price_base", "block_contents": "decimal Price in base currency e.g. 9.99"}, "doc.snowplow_unified.col_base_currency": {"name": "col_base_currency", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_base_currency", "block_contents": "Reporting currency e.g. \u2018GBP\u2019"}, "doc.snowplow_unified.col_geo_timezone": {"name": "col_geo_timezone", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_geo_timezone", "block_contents": "Visitor timezone name e.g. \u2018Europe/London\u2019"}, "doc.snowplow_unified.col_mkt_clickid": {"name": "col_mkt_clickid", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_mkt_clickid", "block_contents": "The click ID e.g. \u2018ac3d8e459\u2019"}, "doc.snowplow_unified.col_mkt_network": {"name": "col_mkt_network", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_mkt_network", "block_contents": "The ad network to which the click ID belongs e.g. \u2018DoubleClick\u2019"}, "doc.snowplow_unified.col_etl_tags": {"name": "col_etl_tags", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_etl_tags", "block_contents": "JSON of tags for this ETL run e.g. \u201c[\u2018prod\u2019]\u201d"}, "doc.snowplow_unified.col_dvce_sent_tstamp": {"name": "col_dvce_sent_tstamp", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_dvce_sent_tstamp", "block_contents": "When the event was sent by the client device e.g. \u20182013-11-26 00:03:58.032\u2019"}, "doc.snowplow_unified.col_refr_domain_userid": {"name": "col_refr_domain_userid", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_refr_domain_userid", "block_contents": "The Snowplow domain_userid of the referring website e.g. \u2018bc2e92ec6c204a14\u2019"}, "doc.snowplow_unified.col_refr_dvce_tstamp": {"name": "col_refr_dvce_tstamp", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_refr_dvce_tstamp", "block_contents": "The time of attaching the domain_userid to the inbound link e.g. \u20182013-11-26 00:02:05\u2019"}, "doc.snowplow_unified.col_domain_sessionid": {"name": "col_domain_sessionid", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_domain_sessionid", "block_contents": "Session identifier specified in your project variables. By default this is the true domain_sessionid i.e. a visit / session UUID e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019"}, "doc.snowplow_unified.col_derived_tstamp": {"name": "col_derived_tstamp", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_derived_tstamp", "block_contents": "Timestamp making allowance for innaccurate device clock e.g. \u20182013-11-26 00:02:04\u2019"}, "doc.snowplow_unified.col_event_vendor": {"name": "col_event_vendor", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_event_vendor", "block_contents": "Who defined the event e.g. \u2018com.acme\u2019"}, "doc.snowplow_unified.col_event_name": {"name": "col_event_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_event_name", "block_contents": "Event name e.g. \u2018link_click\u2019"}, "doc.snowplow_unified.col_event_format": {"name": "col_event_format", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_event_format", "block_contents": "Format for event e.g. \u2018jsonschema\u2019"}, "doc.snowplow_unified.col_event_version": {"name": "col_event_version", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_event_version", "block_contents": "Version of event schema e.g. \u20181-0-2\u2019"}, "doc.snowplow_unified.col_event_fingerprint": {"name": "col_event_fingerprint", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_event_fingerprint", "block_contents": "Hash client-set event fields e.g. AADCE520E20C2899F4CED228A79A3083"}, "doc.snowplow_unified.col_true_tstamp": {"name": "col_true_tstamp", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_true_tstamp", "block_contents": "User-set \u201ctrue timestamp\u201d for the event e.g. \u20182013-11-26 00:02:04\u2019"}, "doc.snowplow_unified.col_view_id": {"name": "col_view_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_view_id", "block_contents": "A UUID for each page view e.g. \u2018c6ef3124-b53a-4b13-a233-0088f79dcbcb\u2019"}, "doc.snowplow_unified.col_category": {"name": "col_category", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_category", "block_contents": "Category based on activity if the IP/UA is a spider or robot, BROWSER otherwise"}, "doc.snowplow_unified.col_primary_impact": {"name": "col_primary_impact", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_primary_impact", "block_contents": "Whether the spider or robot would affect page impression measurement, ad impression measurement, both or none"}, "doc.snowplow_unified.col_reason": {"name": "col_reason", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_reason", "block_contents": "Type of failed check if the IP/UA is a spider or robot, PASSED_ALL otherwise"}, "doc.snowplow_unified.col_spider_or_robot": {"name": "col_spider_or_robot", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_spider_or_robot", "block_contents": "True if the IP address or user agent checked against the list is a spider or robot, false otherwise"}, "doc.snowplow_unified.col_device_family": {"name": "col_device_family", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_family", "block_contents": "Device type"}, "doc.snowplow_unified.col_ua_os_family": {"name": "col_ua_os_family", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_ua_os_family", "block_contents": "Operation system name"}, "doc.snowplow_unified.col_useragent_family": {"name": "col_useragent_family", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_useragent_family", "block_contents": "Useragent family (browser) name"}, "doc.snowplow_unified.col_os_major": {"name": "col_os_major", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_os_major", "block_contents": "Operation system major version"}, "doc.snowplow_unified.col_os_minor": {"name": "col_os_minor", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_os_minor", "block_contents": "Operation system minor version"}, "doc.snowplow_unified.col_os_patch": {"name": "col_os_patch", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_os_patch", "block_contents": "Operation system patch version"}, "doc.snowplow_unified.col_os_patch_minor": {"name": "col_os_patch_minor", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_os_patch_minor", "block_contents": "Operation system patch minor version"}, "doc.snowplow_unified.col_os_version": {"name": "col_os_version", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_os_version", "block_contents": "Operation system full version"}, "doc.snowplow_unified.col_useragent_major": {"name": "col_useragent_major", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_useragent_major", "block_contents": "Useragent major version"}, "doc.snowplow_unified.col_useragent_minor": {"name": "col_useragent_minor", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_useragent_minor", "block_contents": "Useragent minor version"}, "doc.snowplow_unified.col_useragent_patch": {"name": "col_useragent_patch", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_useragent_patch", "block_contents": "Useragent patch version"}, "doc.snowplow_unified.col_useragent_version": {"name": "col_useragent_version", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_useragent_version", "block_contents": "Full version of the useragent"}, "doc.snowplow_unified.col_device_class": {"name": "col_device_class", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_class", "block_contents": "Class of device e.g. phone"}, "doc.snowplow_unified.col_agent_class": {"name": "col_agent_class", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_agent_class", "block_contents": "Class of agent e.g. browser"}, "doc.snowplow_unified.col_agent_name": {"name": "col_agent_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_agent_name", "block_contents": "Name of agent e.g. Chrome"}, "doc.snowplow_unified.col_agent_name_version": {"name": "col_agent_name_version", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_agent_name_version", "block_contents": "Name and version of agent e.g. Chrome 53.0.2785.124"}, "doc.snowplow_unified.col_agent_name_version_major": {"name": "col_agent_name_version_major", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_agent_name_version_major", "block_contents": "Name and major version of agent e.g. Chrome 53"}, "doc.snowplow_unified.col_agent_version": {"name": "col_agent_version", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_agent_version", "block_contents": "Version of agent e.g. 53.0.2785.124"}, "doc.snowplow_unified.col_agent_version_major": {"name": "col_agent_version_major", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_agent_version_major", "block_contents": "Major version of agent e.g. 53"}, "doc.snowplow_unified.col_device_brand": {"name": "col_device_brand", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_brand", "block_contents": "Brand of device e.g. Google"}, "doc.snowplow_unified.col_device_name": {"name": "col_device_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_name", "block_contents": "Name of device e.g. Google Nexus 6"}, "doc.snowplow_unified.col_device_version": {"name": "col_device_version", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_version", "block_contents": "Version of device e.g. 6.0"}, "doc.snowplow_unified.col_layout_engine_class": {"name": "col_layout_engine_class", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_layout_engine_class", "block_contents": "Class of layout engine e.g. Browser"}, "doc.snowplow_unified.col_layout_engine_name": {"name": "col_layout_engine_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_layout_engine_name", "block_contents": "Name of layout engine e.g. Blink"}, "doc.snowplow_unified.col_layout_engine_name_version": {"name": "col_layout_engine_name_version", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_layout_engine_name_version", "block_contents": "Name and version of layout engine e.g. Blink 53.0"}, "doc.snowplow_unified.col_layout_engine_name_version_major": {"name": "col_layout_engine_name_version_major", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_layout_engine_name_version_major", "block_contents": "Name and major version of layout engine e.g. Blink 53"}, "doc.snowplow_unified.col_layout_engine_version": {"name": "col_layout_engine_version", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_layout_engine_version", "block_contents": "Version of layout engine e.g. 53.0"}, "doc.snowplow_unified.col_layout_engine_version_major": {"name": "col_layout_engine_version_major", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_layout_engine_version_major", "block_contents": "Major version of layout engine e.g. 53"}, "doc.snowplow_unified.col_operating_system_class": {"name": "col_operating_system_class", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_operating_system_class", "block_contents": "Class of the OS e.g. Mobile"}, "doc.snowplow_unified.col_operating_system_name": {"name": "col_operating_system_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_operating_system_name", "block_contents": "Name of the OS e.g. Android"}, "doc.snowplow_unified.col_operating_system_name_version": {"name": "col_operating_system_name_version", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_operating_system_name_version", "block_contents": "Name and version of the OS e.g. Android 7.0"}, "doc.snowplow_unified.col_operating_system_version": {"name": "col_operating_system_version", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_operating_system_version", "block_contents": "Version of the OS e.g. 7.0"}, "doc.snowplow_unified.col_model_tstamp": {"name": "col_model_tstamp", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_model_tstamp", "block_contents": "The current timestamp when the model processed this row."}, "doc.snowplow_unified.col_mkt_source_platform": {"name": "col_mkt_source_platform", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_mkt_source_platform", "block_contents": "Source platform based off the `utm_source_platform` parameter of the first page_url in the session."}, "doc.snowplow_unified.col_default_channel_group": {"name": "col_default_channel_group", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_default_channel_group", "block_contents": "The channels by which users arrived at your site."}, "doc.snowplow_unified.col_geo_country_name": {"name": "col_geo_country_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_geo_country_name", "block_contents": "Name of the country the visitor is located in"}, "doc.snowplow_unified.col_geo_continent": {"name": "col_geo_continent", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_geo_continent", "block_contents": "Name of the continent the visitor is located in"}, "doc.snowplow_unified.col_br_lang_name": {"name": "col_br_lang_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_br_lang_name", "block_contents": "Full name of the language the browser is set to e.g. \u2018English (United Kingdom)\u2019"}, "doc.snowplow_unified.col_device_category": {"name": "col_device_category", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_category", "block_contents": "Derived from the `device_class` it is used to classify devices into one of the following: Desktop / Mobile / Tablet / Other."}, "doc.snowplow_unified.col_content_group": {"name": "col_content_group", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_content_group", "block_contents": "Custom defined rule builder to classify page based on url title, etc. Defined in macro `content_group_query`."}, "doc.snowplow_unified.col_screen_resolution": {"name": "col_screen_resolution", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_resolution", "block_contents": "Combines dvce_screenwidth x dvce_screenheight."}, "doc.snowplow_unified.col_session_identifier": {"name": "col_session_identifier", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_session_identifier", "block_contents": "The session identifier as defined in your project variables. Default to domain_sessionid."}, "doc.snowplow_unified.col_user_identifier": {"name": "col_user_identifier", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_user_identifier", "block_contents": "The user identifier as defined in your project variables. Default to domain_userid."}, "doc.snowplow_unified.col_stitched_user_id": {"name": "col_stitched_user_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_stitched_user_id", "block_contents": "The `user_id` (or `domain_user_id` if not found during user stitching) when the `snowplow__session_stitching` or `snowplow__view_stitching` variable is enabled otherwise NULL. The `user_id` field to be used for stitching can be overwritten by `var('snowplow__user_stitching_id')`."}, "doc.snowplow_unified.col_android_idfa": {"name": "col_android_idfa", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_android_idfa", "block_contents": "Identifier for Advertisers for Android devices."}, "doc.snowplow_unified.col_apple_idfa": {"name": "col_apple_idfa", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_apple_idfa", "block_contents": "Identifier for Advertisers for Apple devices."}, "doc.snowplow_unified.col_apple_idfv": {"name": "col_apple_idfv", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_apple_idfv", "block_contents": "Identifier for Vendors for Apple devices."}, "doc.snowplow_unified.col_open_idfa": {"name": "col_open_idfa", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_open_idfa", "block_contents": "Identifier for Vendors for Open devices."}, "doc.snowplow_unified.col_device_latitude": {"name": "col_device_latitude", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_latitude", "block_contents": "Latitude coordinates for device location."}, "doc.snowplow_unified.col_device_longitude": {"name": "col_device_longitude", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_longitude", "block_contents": "Longitude coordinates for device location."}, "doc.snowplow_unified.col_device_latitude_longitude_accuracy": {"name": "col_device_latitude_longitude_accuracy", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_latitude_longitude_accuracy", "block_contents": "Accuracy of Latitude and Longitude coordinates for device location."}, "doc.snowplow_unified.col_device_altitude": {"name": "col_device_altitude", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_altitude", "block_contents": "Altitude coordinates for device location."}, "doc.snowplow_unified.col_device_altitude_accuracy": {"name": "col_device_altitude_accuracy", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_altitude_accuracy", "block_contents": "Accuracy of device altitude coordinates."}, "doc.snowplow_unified.col_device_bearing": {"name": "col_device_bearing", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_bearing", "block_contents": "Horizontal angle between device and true north."}, "doc.snowplow_unified.col_device_speed": {"name": "col_device_speed", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_speed", "block_contents": "Mobile device speed."}, "doc.snowplow_unified.col_carrier": {"name": "col_carrier", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_carrier", "block_contents": "Carrier serivce provider used within device."}, "doc.snowplow_unified.col_network_technology": {"name": "col_network_technology", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_network_technology", "block_contents": "technology used by the network provider of the device."}, "doc.snowplow_unified.col_network_type": {"name": "col_network_type", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_network_type", "block_contents": "Type of network eg. `3G`."}, "doc.snowplow_unified.col_build": {"name": "col_build", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_build", "block_contents": "The build of the application."}, "doc.snowplow_unified.col_first_build": {"name": "col_first_build", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_first_build", "block_contents": "First build of the application."}, "doc.snowplow_unified.col_last_build": {"name": "col_last_build", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_last_build", "block_contents": "Last build of the application."}, "doc.snowplow_unified.col_version": {"name": "col_version", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_version", "block_contents": "The application version."}, "doc.snowplow_unified.col_first_version": {"name": "col_first_version", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_first_version", "block_contents": "First application version."}, "doc.snowplow_unified.col_last_version": {"name": "col_last_version", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_last_version", "block_contents": "Last application version."}, "doc.snowplow_unified.col_device_user_id": {"name": "col_device_user_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_user_id", "block_contents": "Unique device user id."}, "doc.snowplow_unified.col_sessions": {"name": "col_sessions", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_sessions", "block_contents": "Total number of session for the user."}, "doc.snowplow_unified.col_session_start_tstamp": {"name": "col_session_start_tstamp", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_session_start_tstamp", "block_contents": "Timestamp for the start of the session, based on `derived_tstamp`."}, "doc.snowplow_unified.col_session_end_tstamp": {"name": "col_session_end_tstamp", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_session_end_tstamp", "block_contents": "Timestamp for the end of the session, based on `derived_tstamp`."}, "doc.snowplow_unified.col_user_start_tstamp": {"name": "col_user_start_tstamp", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_user_start_tstamp", "block_contents": "Earliest timestamp for the user's activity, based on `derived_tstamp`."}, "doc.snowplow_unified.col_user_end_tstamp": {"name": "col_user_end_tstamp", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_user_end_tstamp", "block_contents": "Latest timestamp for the user's activity, based on `derived_tstamp`."}, "doc.snowplow_unified.col_active_days": {"name": "col_active_days", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_active_days", "block_contents": "Total number of active days for the user."}, "doc.snowplow_unified.col_last_carrier": {"name": "col_last_carrier", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_last_carrier", "block_contents": "Last carrier provider for user."}, "doc.snowplow_unified.col_first_carrier": {"name": "col_first_carrier", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_first_carrier", "block_contents": "First carrier for user."}, "doc.snowplow_unified.col_first_os_version": {"name": "col_first_os_version", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_first_os_version", "block_contents": "First Operating System version for user device."}, "doc.snowplow_unified.col_last_os_version": {"name": "col_last_os_version", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_last_os_version", "block_contents": "Last Operating System version for user device."}, "doc.snowplow_unified.col_screen_view_controller": {"name": "col_screen_view_controller", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_view_controller", "block_contents": "The name of the view controller."}, "doc.snowplow_unified.col_screen_type": {"name": "col_screen_type", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_type", "block_contents": "The type of screen that was viewed."}, "doc.snowplow_unified.col_screen_top_view_controller": {"name": "col_screen_top_view_controller", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_top_view_controller", "block_contents": "The name of the root view controller."}, "doc.snowplow_unified.col_screen_fragment": {"name": "col_screen_fragment", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_fragment", "block_contents": "The name of the screen fragment (also known as an anchor)."}, "doc.snowplow_unified.col_screen_activity": {"name": "col_screen_activity", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_activity", "block_contents": "The name of the Activity element in the screen."}, "doc.snowplow_unified.col_screen_name": {"name": "col_screen_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_name", "block_contents": "The name set for a specific screen, e.g. `DemoScreenName`."}, "doc.snowplow_unified.col_screen_id": {"name": "col_screen_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_id", "block_contents": "A UUID for each screen e.g. `738f1fbc-5298-46fa-9474-bc0a65f014ab`."}, "doc.snowplow_unified.col_root_id": {"name": "col_root_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_root_id", "block_contents": "The corresponding UUID used in the root table."}, "doc.snowplow_unified.col_root_tstamp": {"name": "col_root_tstamp", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_root_tstamp", "block_contents": "The timestamp for when this event was produced."}, "doc.snowplow_unified.col_id": {"name": "col_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_id", "block_contents": "A UUID for each row in the table."}, "doc.snowplow_unified.col_session_id": {"name": "col_session_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_session_id", "block_contents": "A visit / session UUID e.g. `c6ef3124-b53a-4b13-a233-0088f79dcbcb`."}, "doc.snowplow_unified.col_session_index": {"name": "col_session_index", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_session_index", "block_contents": "A visit / session index e.g. `3`."}, "doc.snowplow_unified.col_previous_session_id": {"name": "col_previous_session_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_previous_session_id", "block_contents": "A previous visit / session index e.g. `3`."}, "doc.snowplow_unified.col_first_event_id": {"name": "col_first_event_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_first_event_id", "block_contents": "The event ID of the first event."}, "doc.snowplow_unified.col_session_first_event_id": {"name": "col_session_first_event_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_session_first_event_id", "block_contents": "A first visit / session index e.g. `3`."}, "doc.snowplow_unified.col_session_last_event_id": {"name": "col_session_last_event_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_session_last_event_id", "block_contents": "A last visit / session index e.g. `3`."}, "doc.snowplow_unified.col_event_index": {"name": "col_event_index", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_event_index", "block_contents": "Optional index of the current event in the session."}, "doc.snowplow_unified.col_storage_mechanism": {"name": "col_storage_mechanism", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_storage_mechanism", "block_contents": "The mechanism that the session information has been stored on the device."}, "doc.snowplow_unified.col_first_event_timestamp": {"name": "col_first_event_timestamp", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_first_event_timestamp", "block_contents": "Optional date-time timestamp of when the first event in the session was tracked."}, "doc.snowplow_unified.col_has_install": {"name": "col_has_install", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_has_install", "block_contents": "Yes/No whether application is installed or not."}, "doc.snowplow_unified.col_views_in_session": {"name": "col_views_in_session", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_views_in_session", "block_contents": "Total number of views within a session."}, "doc.snowplow_unified.col_screen_views": {"name": "col_screen_views", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_views", "block_contents": "Total number of screen views within a session."}, "doc.snowplow_unified.col_screen_view_id": {"name": "col_screen_view_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_view_id", "block_contents": "The UUID of a screen view."}, "doc.snowplow_unified.col_screen_view_in_session_index": {"name": "col_screen_view_in_session_index", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_view_in_session_index", "block_contents": "The index of the screen view within the session. This is generated by the tracker."}, "doc.snowplow_unified.col_screen_view_name": {"name": "col_screen_view_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_view_name", "block_contents": "Name of the screen viewed."}, "doc.snowplow_unified.col_screen_view_transition_type": {"name": "col_screen_view_transition_type", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_view_transition_type", "block_contents": "The type of transition that led to the screen being viewed."}, "doc.snowplow_unified.col_screen_view_type": {"name": "col_screen_view_type", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_view_type", "block_contents": "The type of screen that was viewed."}, "doc.snowplow_unified.col_screen_view_previous_id": {"name": "col_screen_view_previous_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_view_previous_id", "block_contents": "The UUID of the previous screen view."}, "doc.snowplow_unified.col_screen_view_previous_name": {"name": "col_screen_view_previous_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_view_previous_name", "block_contents": "The name of the previous screen view."}, "doc.snowplow_unified.col_screen_view_previous_type": {"name": "col_screen_view_previous_type", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_view_previous_type", "block_contents": "The type of the previous screen viewed."}, "doc.snowplow_unified.col_screen_names_viewed": {"name": "col_screen_names_viewed", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_screen_names_viewed", "block_contents": "The number of different screens viewed where the unique screens are counted by the screen names."}, "doc.snowplow_unified.col_app_errors": {"name": "col_app_errors", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_app_errors", "block_contents": "Total number of app errors."}, "doc.snowplow_unified.col_fatal_app_errors": {"name": "col_fatal_app_errors", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_fatal_app_errors", "block_contents": "Totoal number of fatal app errors."}, "doc.snowplow_unified.col_first_event_name": {"name": "col_first_event_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_first_event_name", "block_contents": "Name of the first event fired in the session."}, "doc.snowplow_unified.col_last_event_name": {"name": "col_last_event_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_last_event_name", "block_contents": "Name of the last event fired in the session."}, "doc.snowplow_unified.col_first_screen_view_name": {"name": "col_first_screen_view_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_first_screen_view_name", "block_contents": "Name of the first screen viewed."}, "doc.snowplow_unified.col_first_screen_view_transition_type": {"name": "col_first_screen_view_transition_type", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_first_screen_view_transition_type", "block_contents": "Type of transition for the first screen view."}, "doc.snowplow_unified.col_first_screen_view_type": {"name": "col_first_screen_view_type", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_first_screen_view_type", "block_contents": "Type of first screen view."}, "doc.snowplow_unified.col_last_screen_view_name": {"name": "col_last_screen_view_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_last_screen_view_name", "block_contents": "Name of the last screen viewed."}, "doc.snowplow_unified.col_last_screen_view_transition_type": {"name": "col_last_screen_view_transition_type", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_last_screen_view_transition_type", "block_contents": "Type of transition for the last screen view."}, "doc.snowplow_unified.col_last_screen_view_type": {"name": "col_last_screen_view_type", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_last_screen_view_type", "block_contents": "Type of last screen view."}, "doc.snowplow_unified.col_device_manufacturer": {"name": "col_device_manufacturer", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_manufacturer", "block_contents": "Manufacturer name of the device eg. `Apple`."}, "doc.snowplow_unified.col_device_model": {"name": "col_device_model", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_model", "block_contents": "Model of the mobile device."}, "doc.snowplow_unified.col_os_type": {"name": "col_os_type", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_os_type", "block_contents": "Type of OS running on the mobile device."}, "doc.snowplow_unified.col_physical_memory": {"name": "col_physical_memory", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_physical_memory", "block_contents": "Total physical system memory in bytes"}, "doc.snowplow_unified.col_system_available_memory": {"name": "col_system_available_memory", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_system_available_memory", "block_contents": "Available memory on the system in bytes (Android only)"}, "doc.snowplow_unified.col_app_available_memory": {"name": "col_app_available_memory", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_app_available_memory", "block_contents": "Amount of memory in bytes available to the current app (iOS only)"}, "doc.snowplow_unified.col_battery_level": {"name": "col_battery_level", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_battery_level", "block_contents": "Remaining battery level as an integer percentage of total battery capacity."}, "doc.snowplow_unified.col_battery_state": {"name": "col_battery_state", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_battery_state", "block_contents": "Battery state for the device"}, "doc.snowplow_unified.col_low_power_mode": {"name": "col_low_power_mode", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_low_power_mode", "block_contents": "A Boolean indicating whether Low Power Mode is enabled (iOS only)"}, "doc.snowplow_unified.col_available_storage": {"name": "col_available_storage", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_available_storage", "block_contents": "Bytes of storage remaining"}, "doc.snowplow_unified.col_total_storage": {"name": "col_total_storage", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_total_storage", "block_contents": "Total size of storage in bytes"}, "doc.snowplow_unified.col_is_portrait": {"name": "col_is_portrait", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_is_portrait", "block_contents": "A Boolean indicating whether the device orientation is portrait (either upright or upside down)"}, "doc.snowplow_unified.col_resolution": {"name": "col_resolution", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_resolution", "block_contents": "Screen resolution in pixels. Arrives in the form of WIDTHxHEIGHT (e.g., 1200x900). Doesn't change when device orientation changes"}, "doc.snowplow_unified.col_scale": {"name": "col_scale", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_scale", "block_contents": "Scale factor used to convert logical coordinates to device coordinates of the screen (uses UIScreen.scale on iOS and DisplayMetrics.density on Android)"}, "doc.snowplow_unified.col_language": {"name": "col_language", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_language", "block_contents": "System language currently used on the device (ISO 639)"}, "doc.snowplow_unified.col_app_set_id": {"name": "col_app_set_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_app_set_id", "block_contents": "Android vendor ID scoped to the set of apps published under the same Google Play developer account (see https://developer.android.com/training/articles/app-set-id)"}, "doc.snowplow_unified.col_app_set_id_scope": {"name": "col_app_set_id_scope", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_app_set_id_scope", "block_contents": "Scope of the `appSetId`. Can be scoped to the app or to a developer account on an app store (all apps from the same developer on the same device will have the same ID)"}, "doc.snowplow_unified.col_latitude": {"name": "col_latitude", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_latitude", "block_contents": "Visitor location latitude e.g. `37.443604`."}, "doc.snowplow_unified.col_longitude": {"name": "col_longitude", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_longitude", "block_contents": "Visitor location longitude e.g. `-122.4124`."}, "doc.snowplow_unified.col_bearing": {"name": "col_bearing", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_bearing", "block_contents": "Horizontal angle between device and true north."}, "doc.snowplow_unified.col_speed": {"name": "col_speed", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_speed", "block_contents": "Mobile device speed."}, "doc.snowplow_unified.col_latitude_longitude_accuracy": {"name": "col_latitude_longitude_accuracy", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_latitude_longitude_accuracy", "block_contents": "Accuracy of Latitude and Longitude coordinates for device location."}, "doc.snowplow_unified.col_altitude_accuracy": {"name": "col_altitude_accuracy", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_altitude_accuracy", "block_contents": "Accuracy of device altitude coordinates."}, "doc.snowplow_unified.col_altitude": {"name": "col_altitude", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_altitude", "block_contents": "Altitude coordinates for device location."}, "doc.snowplow_unified.col_programming_language": {"name": "col_programming_language", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_programming_language", "block_contents": "The app error's programming language."}, "doc.snowplow_unified.col_message": {"name": "col_message", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_message", "block_contents": "The app error message."}, "doc.snowplow_unified.col_thread_name": {"name": "col_thread_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_thread_name", "block_contents": "The app error's thread name."}, "doc.snowplow_unified.col_thread_id": {"name": "col_thread_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_thread_id", "block_contents": "The app error's thread id."}, "doc.snowplow_unified.col_stack_trace": {"name": "col_stack_trace", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_stack_trace", "block_contents": "The stack trace of the app error."}, "doc.snowplow_unified.col_cause_stack_trace": {"name": "col_cause_stack_trace", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_cause_stack_trace", "block_contents": "The cause of the stack trace of the app error."}, "doc.snowplow_unified.col_line_number": {"name": "col_line_number", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_line_number", "block_contents": "The app error line number."}, "doc.snowplow_unified.col_class_name": {"name": "col_class_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_class_name", "block_contents": "The app error class name."}, "doc.snowplow_unified.col_exception_name": {"name": "col_exception_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_exception_name", "block_contents": "The app error excetion's name."}, "doc.snowplow_unified.col_is_fatal": {"name": "col_is_fatal", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_is_fatal", "block_contents": "Boolean whether the app error is fatal or not."}, "doc.snowplow_unified.col_line_column": {"name": "col_line_column", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_line_column", "block_contents": "The line column of the app error."}, "doc.snowplow_unified.col_file_name": {"name": "col_file_name", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_file_name", "block_contents": "The app error file name."}, "doc.snowplow_unified.col_viewport": {"name": "col_viewport", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_viewport", "block_contents": "Viewport dimensions of the browser. Arrives in the form of WidthxHeight e.g. 1200x900."}, "doc.snowplow_unified.col_document_size": {"name": "col_document_size", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_document_size", "block_contents": "Document dimensions. Arrives in the form of WidthxHeight e.g. 1200x900"}, "doc.snowplow_unified.col_browser_resolution": {"name": "col_browser_resolution", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_browser_resolution", "block_contents": "Device native resolution. Arrives in the form of WidthxHeight e.g. 1200x900\ncolor_depth\tThe number of bits allocated to colors for a pixel in the output device, excluding the alpha channel."}, "doc.snowplow_unified.col_color_depth": {"name": "col_color_depth", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_color_depth", "block_contents": "The number of bits allocated to colors for a pixel in the output device, excluding the alpha channel."}, "doc.snowplow_unified.col_device_pixel_ratio": {"name": "col_device_pixel_ratio", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_pixel_ratio", "block_contents": "Ratio of the resolution in physical pixels to the resolution in CSS pixels for the current display device."}, "doc.snowplow_unified.col_cookies_enabled": {"name": "col_cookies_enabled", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_cookies_enabled", "block_contents": "Indicates whether cookies are enabled or not. More info and caveats at https://developer.mozilla.org/en-US/docs/Web/API/Navigator/cookieEnabled."}, "doc.snowplow_unified.col_browser_language": {"name": "col_browser_language", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_browser_language", "block_contents": "The preferred language of the user, usually the language of the browser UI. RFC 5646 https://datatracker.ietf.org/doc/html/rfc5646."}, "doc.snowplow_unified.col_online": {"name": "col_online", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_online", "block_contents": "Returns the online status of the browser. Important caveats are described in https://developer.mozilla.org/en-US/docs/Web/API/Navigator/onLine.\nbrowser_language\nThe preferred language of the user, usually the language of the browser UI. RFC 5646 https://datatracker.ietf.org/doc/html/rfc5646."}, "doc.snowplow_unified.col_document_language": {"name": "col_document_language", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_document_language", "block_contents": "The language of the HTML document. RFC 5646 https://datatracker.ietf.org/doc/html/rfc5646."}, "doc.snowplow_unified.col_webdriver": {"name": "col_webdriver", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_webdriver", "block_contents": "Indicates whether the user agent is controlled by automation."}, "doc.snowplow_unified.col_device_memory": {"name": "col_device_memory", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_device_memory", "block_contents": "Approximate amount of device memory in gigabytes."}, "doc.snowplow_unified.col_hardware_concurrency": {"name": "col_hardware_concurrency", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_hardware_concurrency", "block_contents": "Number of logical processors available to run threads on the user's computer."}, "doc.snowplow_unified.col_tab_id": {"name": "col_tab_id", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_tab_id", "block_contents": "An identifier for the client browser tab the event is sent from."}, "doc.snowplow_unified.col_url": {"name": "col_url", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_url", "block_contents": "URL in the received deep-link."}, "doc.snowplow_unified.col_referrer": {"name": "col_referrer", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_referrer", "block_contents": "Referrer URL, source of this deep-link."}, "doc.snowplow_unified.col_event_index_in_session": {"name": "col_event_index_in_session", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_event_index_in_session", "block_contents": "A session index of the event."}, "doc.snowplow_unified.col_foreground_sec": {"name": "col_foreground_sec", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_foreground_sec", "block_contents": "Time in seconds spent on the current screen while the app was in foreground."}, "doc.snowplow_unified.col_background_sec": {"name": "col_background_sec", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_background_sec", "block_contents": "Time in seconds spent on the current screen while the app was in background"}, "doc.snowplow_unified.col_last_item_index": {"name": "col_last_item_index", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_last_item_index", "block_contents": "Index of the last viewed item in the list on the screen"}, "doc.snowplow_unified.col_items_count": {"name": "col_items_count", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_items_count", "block_contents": "Total number of items in the list on the screen"}, "doc.snowplow_unified.col_min_x_offset": {"name": "col_min_x_offset", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_min_x_offset", "block_contents": "Minimum horizontal scroll offset on the scroll view in pixels"}, "doc.snowplow_unified.col_max_x_offset": {"name": "col_max_x_offset", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_max_x_offset", "block_contents": "Maximum horizontal scroll offset on the scroll view in pixels"}, "doc.snowplow_unified.col_min_y_offset": {"name": "col_min_y_offset", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_min_y_offset", "block_contents": "Minimum vertical scroll offset on the scroll view in pixels"}, "doc.snowplow_unified.col_max_y_offset": {"name": "col_max_y_offset", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_max_y_offset", "block_contents": "Maximum vertical scroll offset on the scroll view in pixels"}, "doc.snowplow_unified.col_content_width": {"name": "col_content_width", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_content_width", "block_contents": "Width of the scroll view in pixels"}, "doc.snowplow_unified.col_content_height": {"name": "col_content_height", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_content_height", "block_contents": "Height of the scroll view in pixels"}, "doc.snowplow_unified.col_last_list_item_index": {"name": "col_last_list_item_index", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_last_list_item_index", "block_contents": "Index of the last viewed item in the list on the screen\n\nThis is calculated only for mobile apps based on the `screen_summary` context."}, "doc.snowplow_unified.col_list_items_count": {"name": "col_list_items_count", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_list_items_count", "block_contents": "Total number of items in the list on the screen\n\nThis is calculated only for mobile apps based on the `screen_summary` context."}, "doc.snowplow_unified.col_list_items_percentage_scrolled": {"name": "col_list_items_percentage_scrolled", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_list_items_percentage_scrolled", "block_contents": "Percentage of the list on the screen that the user scrolled to.\n\nThis is calculated only for mobile apps based on the `screen_summary` context."}, "doc.snowplow_unified.col_engaged_time_in_s": {"name": "col_engaged_time_in_s", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_engaged_time_in_s", "block_contents": "Time spent by the user on the page or screen.\n\nOn Web, it is calculated using page pings.\nOn mobile, it is calculated using information in the `screen_summary` context."}, "doc.snowplow_unified.col_session_engaged_time_in_s": {"name": "col_session_engaged_time_in_s", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_session_engaged_time_in_s", "block_contents": "The total time engaged by a user within a session.\n\nOn Web, it is calculated using page pings.\nOn mobile, it is calculated using information in the `screen_summary` context."}, "doc.snowplow_unified.col_user_engaged_time_in_s": {"name": "col_user_engaged_time_in_s", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_user_engaged_time_in_s", "block_contents": "The total engaged time in seconds by the user.\n\nOn Web, it is calculated using page pings.\nOn mobile, it is calculated using information in the `screen_summary` context."}, "doc.snowplow_unified.col_absolute_time_in_s": {"name": "col_absolute_time_in_s", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_absolute_time_in_s", "block_contents": "Total time in seconds of the page or screen view (including inactivity).\n\nOn Web, it is the time between the `start_tstamp` and `end_tstamp` of the page view and the last page ping.\nOn mobile, it is the time that the app was in foreground + background during the screen view (taken from the `screen_summary` context)."}, "doc.snowplow_unified.col_session_absolute_time_in_s": {"name": "col_session_absolute_time_in_s", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_session_absolute_time_in_s", "block_contents": "The time in seconds between the `start_tstamp` and `end_tstamp` of the first and last event in the session."}, "doc.snowplow_unified.col_user_absolute_time_in_s": {"name": "col_user_absolute_time_in_s", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_user_absolute_time_in_s", "block_contents": "The time in seconds between the `start_tstamp` and `end_tstamp` of the first and last event of sessions of the user."}, "doc.snowplow_unified.col_horizontal_pixels_scrolled": {"name": "col_horizontal_pixels_scrolled", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_horizontal_pixels_scrolled", "block_contents": "Distance the user scrolled horizontally in pixels.\n\nOn Web, it is calculated based on the page ping events.\nOn mobile, it is calculated using the `screen_summary` context."}, "doc.snowplow_unified.col_vertical_pixels_scrolled": {"name": "col_vertical_pixels_scrolled", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_vertical_pixels_scrolled", "block_contents": "Distance the user scrolled vertically in pixels.\n\nOn Web, it is calculated based on the page ping events.\nOn mobile, it is calculated using the `screen_summary` context."}, "doc.snowplow_unified.col_horizontal_percentage_scrolled": {"name": "col_horizontal_percentage_scrolled", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_horizontal_percentage_scrolled", "block_contents": "Percentage of page scrolled horizontally.\n\nOn Web, it is calculated based on the page ping events.\nOn mobile, it is calculated using the `screen_summary` context."}, "doc.snowplow_unified.col_vertical_percentage_scrolled": {"name": "col_vertical_percentage_scrolled", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_common_cols.md", "original_file_path": "docs/markdown/snowplow_unified_common_cols.md", "unique_id": "doc.snowplow_unified.col_vertical_percentage_scrolled", "block_contents": "Percentage of page scrolled vertically.\n\nOn Web, it is calculated based on the page ping events.\nOn mobile, it is calculated using the `screen_summary` context."}, "doc.snowplow_unified.macro_filter_bots": {"name": "macro_filter_bots", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_filter_bots", "block_contents": "This macro is used to generate a warehouse specific filter for the `useragent` field to remove bots from processing, or to overwrite for custom filtering. The filter excludes any of the following in the string:\n- bot\n- crawl\n- slurp\n- spider\n- archiv\n- spinn\n- sniff\n- seo\n- audit\n- survey\n- pingdom\n- worm\n- capture\n- (browser|screen)shots\n- analyz\n- index\n- thumb\n- check\n- facebook\n- PingdomBot\n- PhantomJS\n- YandexBot\n- Twitterbot\n- a_archiver\n- facebookexternalhit\n- Bingbot\n- BingPreview\n- Googlebot\n- Baiduspider\n- 360(Spider|User-agent)\n- semalt\n\n#### Returns\n\nA filter on `useragent` to exclude those with strings matching the above list.\n\n#### Usage\n\n```sql\nselect\n...\nfrom\n...\nwhere 1=1\nfilter_bots()\n\n-- returns (snowflake)\nselect\n...\nfrom\n...\nwhere 1=1\nand not rlike(useragent, '.*(bot|crawl|slurp|spider|archiv|spinn|sniff|seo|audit|survey|pingdom|worm|capture|(browser|screen)shots|analyz|index|thumb|check|facebook|PingdomBot|PhantomJS|YandexBot|Twitterbot|a_archiver|facebookexternalhit|Bingbot|BingPreview|Googlebot|Baiduspider|360(Spider|User-agent)|semalt).*')\n```"}, "doc.snowplow_unified.macro_stitch_user_identifiers": {"name": "macro_stitch_user_identifiers", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_stitch_user_identifiers", "block_contents": "This macro is used as a post-hook on the sessions table to stitch user identities using the user_mapping table provided.\n\n#### Returns\n\nThe update/merge statement to update the `stitched_user_id` column, if enabled."}, "doc.snowplow_unified.macro_get_iab_context_fields": {"name": "macro_get_iab_context_fields", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_get_iab_context_fields", "block_contents": "This macro is used to extract the fields from the iab enrichment context for each warehouse.\n\n#### Returns\n\nThe sql to extract the columns from the iab context, or these columns as nulls."}, "doc.snowplow_unified.macro_get_ua_context_fields": {"name": "macro_get_ua_context_fields", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_get_ua_context_fields", "block_contents": "This macro is used to extract the fields from the ua enrichment context for each warehouse.\n\n#### Returns\n\nThe sql to extract the columns from the ua context, or these columns as nulls."}, "doc.snowplow_unified.macro_get_yauaa_context_fields": {"name": "macro_get_yauaa_context_fields", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_get_yauaa_context_fields", "block_contents": "This macro is used to extract the fields from the yauaa enrichment context for each warehouse.\n\n#### Returns\n\nThe sql to extract the columns from the yauaa context, or these columns as nulls."}, "doc.snowplow_unified.macro_allow_refresh": {"name": "macro_allow_refresh", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_allow_refresh", "block_contents": "This macro is used to determine if a full-refresh is allowed (depending on the environment), using the `snowplow__allow_refresh` variable.\n\n#### Returns\n`snowplow__allow_refresh` if environment is not `dev`, `none` otherwise."}, "doc.snowplow_unified.macro_channel_group_query": {"name": "macro_channel_group_query", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_channel_group_query", "block_contents": "This macro returns the sql to identify the marketing channel from a url based on the `mkt_source`, `mkt_medium`, and `mkt_campaign` fields. It can be overwritten to use a different logic.\n\n#### Returns\nThe sql to provide the classification (expected in the form of case when statements)."}, "doc.snowplow_unified.macro_engaged_session": {"name": "macro_engaged_session", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_engaged_session", "block_contents": "This macro returns the sql to identify if a session is classed as engaged or not. It can be overwritten to use a different logic. By default any session that has 2 or more page views, more than 2 heartbeats worth of engaged time, or has any conversion events is classed as engaged.\n\nNote that if you are overwriting this macro you have may not have immediate access to all fields in the derived sessions table, and may have to use a table alias to specify the column you wish to use, please see the definition of `snowplow_unified_sessions_this_run` to identify which fields are available at the time of the macro call.\n\n#### Returns\nThe sql defining an engaged session (true/false)."}, "doc.snowplow_unified.macro_core_web_vital_results_query": {"name": "macro_core_web_vital_results_query", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_core_web_vital_results_query", "block_contents": "This macro is used to let the user classify the tresholds to be applied for the measurements. Please make sure you set the results you would like the measurements to pass to **`good`** or align it with the `macro_core_web_vital_pass_query` macro.\n\n#### Returns\nThe sql to provide the logic for the evaluation based on user defined tresholds (expected in the form of case when statements)."}, "doc.snowplow_unified.macro_core_web_vital_page_groups": {"name": "macro_core_web_vital_page_groups", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_core_web_vital_page_groups", "block_contents": "This macro is used to let the user classify page urls into page groups.\n\n#### Returns\nThe sql to provide the classification (expected in the form of case when statements)."}, "doc.snowplow_unified.macro_content_group_query": {"name": "macro_content_group_query", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_content_group_query", "block_contents": "This macro is used to let the user classify page urls into content groups.\n\n#### Returns\nThe sql to provide the classification (expected in the form of case when statements)."}, "doc.snowplow_unified.macro_core_web_vital_pass_query": {"name": "macro_core_web_vital_pass_query", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_core_web_vital_pass_query", "block_contents": "This macro is used to let the user define what counts as the overall pass condition for the core web vital measurements.\n\n#### Returns\nThe sql to provide the logic for the evaluation based on user defined tresholds (expected in the form of case when statements)."}, "doc.snowplow_unified.macro_field_extractions": {"name": "macro_field_extractions", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_field_extractions", "block_contents": "This macro is used in the `base_events_this_run` table to extract all the individual fields when the relevant context / sde is enabled, otherwise it returns null values.\n#### Returns\nThe sql to extract the list of fields specified in the context/sde."}, "doc.snowplow_unified.macro_config_check": {"name": "macro_config_check", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_config_check", "block_contents": "A macro that checks if at least one of the platform enabling variables is valid before the run starts and alerts users in case it happens. It also checks and warns if there are contexts enabled for a platform that will not be used."}, "doc.snowplow_unified.macro_unify_fields_query": {"name": "macro_unify_fields_query", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_unify_fields_query", "block_contents": "A macro to produce the sql to create the `unified_events_this_run` table. It's purpose is to add a set of coalesces in case there is a common field to be used both for mobile and web events and it needs to be taken from different sdes / contexts.\n#### Returns\nThe sql to create the `unified_events_this_run` table."}, "doc.snowplow_unified.macro_fields": {"name": "macro_fields", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_fields", "block_contents": "A macro to list all the fields that are extracted from a specific sde /context. Takes table_prefix and column_prefix as an optional argument.\n\n#### Returns\nA string of list of fields to be used in a sql statement."}, "doc.snowplow_unified.macro_event_counts_string_query": {"name": "macro_event_counts_string_query", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_event_counts_string_query", "block_contents": "A macro to keep the different ways of calculating event counts per warehouse abstracted away for the sessions table. It loops over every event_name in the run, create a json string / map of the name and counts ONLY if there are events with that name in the session (otherwise retrieves an empty string).\n#### Returns\nThe specific sql to be used for the relevant warehouse to calculate the count of events."}, "doc.snowplow_unified.macro_event_counts_query": {"name": "macro_event_counts_query", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_event_counts_query", "block_contents": "A macro to keep the different ways of calculating event counts per warehouse abstracted away for the sessions table. It handles the remaining sql transformation that needs to happen in the subsequent cte after the `macro_event_counts_string_query()` is used.\n\n#### Returns\nThe specific sql to be used for the relevant warehouse to calculate the count of events."}, "doc.snowplow_unified.macro_conversion_query": {"name": "macro_conversion_query", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_macros_docs.md", "original_file_path": "docs/markdown/snowplow_unified_macros_docs.md", "unique_id": "doc.snowplow_unified.macro_conversion_query", "block_contents": "A macro to keep the different ways of calculating conversion fields per warehouse abstracted away for the sessions table.\n\n#### Returns\n\nThe sql needed to make the warehosue specific transformations to retrieve the conversion fields."}, "doc.snowplow_unified.table_page_view_context": {"name": "table_page_view_context", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_atomic_docs.md", "original_file_path": "docs/markdown/snowplow_unified_atomic_docs.md", "unique_id": "doc.snowplow_unified.table_page_view_context", "block_contents": "**Redshift and Postgres only**. This context table contains the `view_id` associated with a given page view."}, "doc.snowplow_unified.table_iab_context": {"name": "table_iab_context", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_atomic_docs.md", "original_file_path": "docs/markdown/snowplow_unified_atomic_docs.md", "unique_id": "doc.snowplow_unified.table_iab_context", "block_contents": "**Redshift and Postgres only**. This context table contains the data generated by the IAB Spiders & Robots enrichment.\n\nThe IAB Spiders & Robots enrichment uses the [IAB/ABC International Spiders and Bots List](https://iabtechlab.com/software/iababc-international-spiders-and-bots-list/) to determine whether an event was produced by a user or a robot/spider based on its\u2019 IP address and user agent."}, "doc.snowplow_unified.table_ua_parser_context": {"name": "table_ua_parser_context", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_atomic_docs.md", "original_file_path": "docs/markdown/snowplow_unified_atomic_docs.md", "unique_id": "doc.snowplow_unified.table_ua_parser_context", "block_contents": "**Redshift and Postgres only**. This context table contains the data generated by the [UA parser enrichment](https://docs.snowplow.io/docs/enriching-your-data/available-enrichments/ua-parser-enrichment/)."}, "doc.snowplow_unified.table_yauaa_context": {"name": "table_yauaa_context", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_atomic_docs.md", "original_file_path": "docs/markdown/snowplow_unified_atomic_docs.md", "unique_id": "doc.snowplow_unified.table_yauaa_context", "block_contents": "**Redshift and Postgres only**. This context table contains the data generated by the [YAUAA enrichment](https://docs.snowplow.io/docs/enriching-your-data/available-enrichments/yauaa-enrichment/)."}, "doc.snowplow_unified.table_events": {"name": "table_events", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_atomic_docs.md", "original_file_path": "docs/markdown/snowplow_unified_atomic_docs.md", "unique_id": "doc.snowplow_unified.table_events", "block_contents": "The `events` table contains all canonical events generated by [Snowplow's](https://snowplow.io/) trackers, including web, mobile and server side events."}, "doc.snowplow_unified.table_cmp_visible": {"name": "table_cmp_visible", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_atomic_docs.md", "original_file_path": "docs/markdown/snowplow_unified_atomic_docs.md", "unique_id": "doc.snowplow_unified.table_cmp_visible", "block_contents": "**Redshift and Postgres only**. The cmp visible events table stores events related to the Consent Management Platform becoming available for users."}, "doc.snowplow_unified.table_consent_preferences": {"name": "table_consent_preferences", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_atomic_docs.md", "original_file_path": "docs/markdown/snowplow_unified_atomic_docs.md", "unique_id": "doc.snowplow_unified.table_consent_preferences", "block_contents": "**Redshift and Postgres only**. The consent preferences table is for storing consent preference selection events."}, "doc.snowplow_unified.table_session_context": {"name": "table_session_context", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_atomic_docs.md", "original_file_path": "docs/markdown/snowplow_unified_atomic_docs.md", "unique_id": "doc.snowplow_unified.table_session_context", "block_contents": "**Redshift and Postgres only**. This context table contains the `session_id` associated with a given mobile event."}, "doc.snowplow_unified.table_mobile_context": {"name": "table_mobile_context", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_atomic_docs.md", "original_file_path": "docs/markdown/snowplow_unified_atomic_docs.md", "unique_id": "doc.snowplow_unified.table_mobile_context", "block_contents": "**Redshift and Postgres only**. This context table contains various mobile device details and identifiers."}, "doc.snowplow_unified.table_geolocation_context": {"name": "table_geolocation_context", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_atomic_docs.md", "original_file_path": "docs/markdown/snowplow_unified_atomic_docs.md", "unique_id": "doc.snowplow_unified.table_geolocation_context", "block_contents": "**Redshift and Postgres only**. This context table contains geolocation data collected from the device."}, "doc.snowplow_unified.table_app_context": {"name": "table_app_context", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_atomic_docs.md", "original_file_path": "docs/markdown/snowplow_unified_atomic_docs.md", "unique_id": "doc.snowplow_unified.table_app_context", "block_contents": "**Redshift and Postgres only**. This context table contains app build and version details."}, "doc.snowplow_unified.table_screen_context": {"name": "table_screen_context", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_atomic_docs.md", "original_file_path": "docs/markdown/snowplow_unified_atomic_docs.md", "unique_id": "doc.snowplow_unified.table_screen_context", "block_contents": "**Redshift and Postgres only**. This context table contains the `screen_id` associated with a given mobile event."}, "doc.snowplow_unified.table_app_errors_context": {"name": "table_app_errors_context", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_atomic_docs.md", "original_file_path": "docs/markdown/snowplow_unified_atomic_docs.md", "unique_id": "doc.snowplow_unified.table_app_errors_context", "block_contents": "**Redshift and Postgres only**. This context table contains information about any errors thrown by the application."}, "doc.snowplow_unified.table_screen_view_events": {"name": "table_screen_view_events", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_atomic_docs.md", "original_file_path": "docs/markdown/snowplow_unified_atomic_docs.md", "unique_id": "doc.snowplow_unified.table_screen_view_events", "block_contents": "**Redshift and Postgres only**. This table contains screen view events."}, "doc.snowplow_unified.table_deep_link_context": {"name": "table_deep_link_context", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_atomic_docs.md", "original_file_path": "docs/markdown/snowplow_unified_atomic_docs.md", "unique_id": "doc.snowplow_unified.table_deep_link_context", "block_contents": "**Redshift and Postgres only**. This context table contains the url and referrer of the deep link."}, "doc.snowplow_unified.table_browser_context": {"name": "table_browser_context", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_atomic_docs.md", "original_file_path": "docs/markdown/snowplow_unified_atomic_docs.md", "unique_id": "doc.snowplow_unified.table_browser_context", "block_contents": "**Redshift and Postgres only**. This context table contains many useful browser related fields such as the HTML document language or its size / dimensions."}, "doc.snowplow_unified.table_sessions_this_run": {"name": "table_sessions_this_run", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_sessions_docs.md", "original_file_path": "docs/markdown/snowplow_unified_sessions_docs.md", "unique_id": "doc.snowplow_unified.table_sessions_this_run", "block_contents": "This staging table contains all the sessions for the given run of the model. It possess all the same columns as `snowplow_unified_sessions`. If building a custom module that requires session level data, this is the table you should reference."}, "doc.snowplow_unified.table_sessions": {"name": "table_sessions", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_sessions_docs.md", "original_file_path": "docs/markdown/snowplow_unified_sessions_docs.md", "unique_id": "doc.snowplow_unified.table_sessions", "block_contents": "This derived incremental table contains all historic sessions and should be the end point for any analysis or BI tools."}, "doc.snowplow_unified.__snowplow_unified__": {"name": "__snowplow_unified__", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_overview.md", "original_file_path": "docs/markdown/snowplow_unified_overview.md", "unique_id": "doc.snowplow_unified.__snowplow_unified__", "block_contents": "# Snowplow Unified Package\n\nWelcome to the model documentation site for the Snowplow unified dbt package. The package contains is a fully incremental model, that transforms raw web and mobile event data generated by the [Snowplow JavaScript tracker](https://docs.snowplow.io/docs/collecting-data/collecting-from-own-applications/javascript-trackers/) and [iOS tracker][https://docs.snowplow.io/docs/collecting-data/collecting-from-own-applications/objective-c-tracker/] or [Android tracker][https://docs.snowplow.io/docs/collecting-data/collecting-from-own-applications/android-tracker/] into a series of derived tables of varying levels of aggregation.\n\n**For more information, including a QuickStart guide, operation and configuration, and implementing your own custom modules on top of this please visit the [Snowplow Docs](https://docs.snowplow.io/docs/modeling-your-data/modeling-your-data-with-dbt/).**\n\n*Note this model design doc site is linked to latest release of the package. If you are not using the latest release, [generate and serve](https://docs.getdbt.com/reference/commands/cmd-docs#dbt-docs-serve) the doc site locally for accurate documentation.*\n\n## Overview\n\nThis model consists of a series of modules, each producing a table which serves as the input to the next module. The 'standard' modules are:\n\n- Base: Performs the incremental logic, outputting the table `snowplow_unified_base_events_this_run` which contains a de-duped data set of all events required for the current run of the model. It also generates the `snowplow_unified_events_this_run` which renames / unifies certain fields for easier downstream usage.\n- Views: Aggregates event level data to a page view (web) / screen view (mobile) level, `view_id`.\n- Sessions: Aggregates page view level data to a session level, `session_identifier`.\n- Users: Aggregates session level data to a users level, `user_identifier`.\n- User Mapping: Provides a mapping between user identifiers, `user_identifier` and `user_id`. This can be used for session / view table stitching.\n\nEach module produces a table which acts as the input to the subsequent module (the `_this_run` tables), and updates a derived table - with the exception of the Base module, which takes atomic data as its input, and does not update a derived table.\n\n## Installation\n\nCheck [dbt Hub](https://hub.getdbt.com/snowplow/snowplow_unified/latest/) for the latest installation instructions, or read the [dbt docs][dbt-package-docs] for more information on installing packages.\n\n# Join the Snowplow community\n\nWe welcome all ideas, questions and contributions!\n\nFor support requests, please use our community support [Discourse][discourse] forum.\n\nIf you find a bug, please report an issue on GitHub.\n\n# Copyright and license\n\nThe snowplow-unified package is Copyright 2023-present Snowplow Analytics Ltd.\n\nLicensed under the [Snowplow Personal and Academic License][license] (the \"License\");\nyou may not use this software except in compliance with the License.\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n[license]: https://docs.snowplow.io/personal-and-academic-license-1.0/\n[license-image]: http://img.shields.io/badge/license-Snowplow--Personal--and--Academic--1-blue.svg?style=flat\n[tracker-classificiation]: https://docs.snowplow.io/docs/collecting-data/collecting-from-own-applications/tracker-maintenance-classification/\n[early-release]: https://img.shields.io/static/v1?style=flat&label=Snowplow&message=Early%20Release&color=014477&labelColor=9ba0aa&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAeFBMVEVMaXGXANeYANeXANZbAJmXANeUANSQAM+XANeMAMpaAJhZAJeZANiXANaXANaOAM2WANVnAKWXANZ9ALtmAKVaAJmXANZaAJlXAJZdAJxaAJlZAJdbAJlbAJmQAM+UANKZANhhAJ+EAL+BAL9oAKZnAKVjAKF1ALNBd8J1AAAAKHRSTlMAa1hWXyteBTQJIEwRgUh2JjJon21wcBgNfmc+JlOBQjwezWF2l5dXzkW3/wAAAHpJREFUeNokhQOCA1EAxTL85hi7dXv/E5YPCYBq5DeN4pcqV1XbtW/xTVMIMAZE0cBHEaZhBmIQwCFofeprPUHqjmD/+7peztd62dWQRkvrQayXkn01f/gWp2CrxfjY7rcZ5V7DEMDQgmEozFpZqLUYDsNwOqbnMLwPAJEwCopZxKttAAAAAElFTkSuQmCC\n\n[tracker-docs]: https://docs.snowplow.io/docs/collecting-data/collecting-from-own-applications/\n[docs-what-is-dm]: https://docs.snowplow.io/docs/modeling-your-data/what-is-data-modeling/\n[docs-data-models]: https://docs.snowplow.io/docs/modeling-your-data/\n[dbt-disable-model]: https://docs.getdbt.com/reference/resource-configs/enabled#disable-a-model-in-a-package-in-order-to-use-your-own-version-of-the-model\n[dbt-package-docs]: https://docs.getdbt.com/docs/building-a-dbt-project/package-management\n[discourse]: http://discourse.snowplow.io/\n[dbt-selectors]: https://docs.getdbt.com/reference/node-selection/yaml-selectors\n[selectors-yml-file]: https://github.com/snowplow/dbt-snowplow-unified/blob/main/selectors.yml\n[dbt-bq-merge-strategy]: https://docs.getdbt.com/reference/resource-configs/bigquery-configs#the-merge-strategy\n[dbt-snowflake-merge-strategy]: https://docs.getdbt.com/reference/resource-configs/snowflake-configs#merge-behavior-incremental-models\n[snowflake-merge-duplicates]: https://docs.snowflake.com/en/sql-reference/sql/merge.html#duplicate-join-behavior\n[snowplow-utils]: https://github.com/snowplow/dbt-snowplow-utils\n[user-mapping-blog]: https://snowplow.io/blog/2021/02/24/developing-a-single-customer-view-with-snowplow/\n[dbt-indexes]: https://docs.getdbt.com/reference/resource-configs/postgres-configs#indexes"}, "doc.snowplow_unified.table_views_this_run": {"name": "table_views_this_run", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_views_docs.md", "original_file_path": "docs/markdown/snowplow_unified_views_docs.md", "unique_id": "doc.snowplow_unified.table_views_this_run", "block_contents": "This staging table contains all the page and screen views for the given run of the model. It possess all the same columns as `snowplow_unified_page_views`. If building a custom module that requires page/screen view events, this is the table you should reference."}, "doc.snowplow_unified.table_views": {"name": "table_views", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_views_docs.md", "original_file_path": "docs/markdown/snowplow_unified_views_docs.md", "unique_id": "doc.snowplow_unified.table_views", "block_contents": "This derived incremental table contains all historic page/screen views and should be the end point for any analysis or BI tools."}, "doc.snowplow_unified.table_pv_engaged_time": {"name": "table_pv_engaged_time", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_views_docs.md", "original_file_path": "docs/markdown/snowplow_unified_views_docs.md", "unique_id": "doc.snowplow_unified.table_pv_engaged_time", "block_contents": "This model calculates the time a visitor spent engaged on a given page view. This is calculated using the number of page ping events received for that page view."}, "doc.snowplow_unified.table_scroll_depth": {"name": "table_scroll_depth", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_views_docs.md", "original_file_path": "docs/markdown/snowplow_unified_views_docs.md", "unique_id": "doc.snowplow_unified.table_scroll_depth", "block_contents": "This model calculates the horizontal and vertical scroll depth of the visitor on a given page view. Such metrics are useful when assessing engagement on a page view."}, "doc.snowplow_unified.table_screen_summary_metrics": {"name": "table_screen_summary_metrics", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_views_docs.md", "original_file_path": "docs/markdown/snowplow_unified_views_docs.md", "unique_id": "doc.snowplow_unified.table_screen_summary_metrics", "block_contents": "This model calculates screen engagement statistics based on the screen summary context entity tracked on mobile apps.\nIt contains metrics related to the screen time and scroll depth."}, "doc.snowplow_unified.table_session_screen_summary_metrics": {"name": "table_session_screen_summary_metrics", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_views_docs.md", "original_file_path": "docs/markdown/snowplow_unified_views_docs.md", "unique_id": "doc.snowplow_unified.table_session_screen_summary_metrics", "block_contents": "This model calculates screen time metrics per session based on the screen summary context entity tracked on mobile apps."}, "doc.snowplow_unified.table_base_sessions_lifecycle_manifest": {"name": "table_base_sessions_lifecycle_manifest", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_base_docs.md", "original_file_path": "docs/markdown/snowplow_unified_base_docs.md", "unique_id": "doc.snowplow_unified.table_base_sessions_lifecycle_manifest", "block_contents": "This incremental table is a manifest of all sessions that have been processed by the Snowplow dbt unified model. For each session, the start and end timestamp is recorded.\n\nBy knowing the lifecycle of a session the model is able to able to determine which sessions and thus events to process for a given timeframe, as well as the complete date range required to reprocess all events of each session."}, "doc.snowplow_unified.table_base_incremental_manifest": {"name": "table_base_incremental_manifest", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_base_docs.md", "original_file_path": "docs/markdown/snowplow_unified_base_docs.md", "unique_id": "doc.snowplow_unified.table_base_incremental_manifest", "block_contents": "This incremental table is a manifest of the timestamp of the latest event consumed per model within the `snowplow-unified` package as well as any models leveraging the incremental framework provided by the package. The latest event's timestamp is based off `collector_tstamp`. This table is used to determine what events should be processed in the next run of the model."}, "doc.snowplow_unified.table_base_new_event_limits": {"name": "table_base_new_event_limits", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_base_docs.md", "original_file_path": "docs/markdown/snowplow_unified_base_docs.md", "unique_id": "doc.snowplow_unified.table_base_new_event_limits", "block_contents": "This table contains the lower and upper timestamp limits for the given run of the unified model. These limits are used to select new events from the events table."}, "doc.snowplow_unified.table_base_events_this_run": {"name": "table_base_events_this_run", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_base_docs.md", "original_file_path": "docs/markdown/snowplow_unified_base_docs.md", "unique_id": "doc.snowplow_unified.table_base_events_this_run", "block_contents": "For any given run, this table contains all required events to be consumed by subsequent nodes in the Snowplow dbt unified package. This is a cleaned, deduped dataset, containing all columns from the raw events table. On top, all the most common context/sde fields are also extracted if they are available, otherwise NULLs are displayed. Such fields are named with a shortened version of the field name followed by double underscores + field name (e.g. `yauaa__device_class`)."}, "doc.snowplow_unified.table_events_this_run": {"name": "table_events_this_run", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_base_docs.md", "original_file_path": "docs/markdown/snowplow_unified_base_docs.md", "unique_id": "doc.snowplow_unified.table_events_this_run", "block_contents": "This table takes all the fields from the `base_events_this_run` table and with a help of a set of coalesces unifies certain fields for web and mobile depending on what is defined in the `unify_fields_query()` macro for easier downstream usage.\n\n**Note: This table should be used as the input to any custom modules that require event level data, rather than selecting straight from `atomic.events`**"}, "doc.snowplow_unified.table_base_sessions_this_run": {"name": "table_base_sessions_this_run", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_base_docs.md", "original_file_path": "docs/markdown/snowplow_unified_base_docs.md", "unique_id": "doc.snowplow_unified.table_base_sessions_this_run", "block_contents": "For any given run, this table contains all the required sessions."}, "doc.snowplow_unified.table_base_quarantined_sessions": {"name": "table_base_quarantined_sessions", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_base_docs.md", "original_file_path": "docs/markdown/snowplow_unified_base_docs.md", "unique_id": "doc.snowplow_unified.table_base_quarantined_sessions", "block_contents": "This table contains any sessions that have been quarantined. Sessions are quarantined once they exceed the maximum allowed session length, defined by `snowplow__max_session_days`.\nOnce quarantined, no further events from these sessions will be processed. Events up until the point of quarantine remain in your derived tables.\nThe reason for removing long sessions is to reduce table scans on both the events table and all derived tables. This improves performance greatly."}, "doc.snowplow_unified.table_users_this_run": {"name": "table_users_this_run", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_users_docs.md", "original_file_path": "docs/markdown/snowplow_unified_users_docs.md", "unique_id": "doc.snowplow_unified.table_users_this_run", "block_contents": "This staging table contains all the users for the given run of the model. It possess all the same columns as `snowplow_unified_users`. If building a custom module that requires session level data, this is the table you should reference."}, "doc.snowplow_unified.table_users": {"name": "table_users", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_users_docs.md", "original_file_path": "docs/markdown/snowplow_unified_users_docs.md", "unique_id": "doc.snowplow_unified.table_users", "block_contents": "This derived incremental table contains all historic users data and should be the end point for any analysis or BI tools."}, "doc.snowplow_unified.table_users_aggs": {"name": "table_users_aggs", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_users_docs.md", "original_file_path": "docs/markdown/snowplow_unified_users_docs.md", "unique_id": "doc.snowplow_unified.table_users_aggs", "block_contents": "This model aggregates various metrics derived from sessions to a users level."}, "doc.snowplow_unified.table_users_lasts": {"name": "table_users_lasts", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_users_docs.md", "original_file_path": "docs/markdown/snowplow_unified_users_docs.md", "unique_id": "doc.snowplow_unified.table_users_lasts", "block_contents": "This model identifies the last page view for a user and returns various dimensions associated with that page view."}, "doc.snowplow_unified.table_users_sessions_this_run": {"name": "table_users_sessions_this_run", "resource_type": "doc", "package_name": "snowplow_unified", "path": "markdown/snowplow_unified_users_docs.md", "original_file_path": "docs/markdown/snowplow_unified_users_docs.md", "unique_id": "doc.snowplow_unified.table_users_sessions_this_run", "block_contents": "This model contains all sessions data related to users contained in the given run of the model"}, "doc.snowplow_utils.macro_app_id_filter": {"name": "macro_app_id_filter", "resource_type": "doc", "package_name": "snowplow_utils", "path": "markdown/snowplow_utils_macro_docs.md", "original_file_path": "docs/markdown/snowplow_utils_macro_docs.md", "unique_id": "doc.snowplow_utils.macro_app_id_filter", "block_contents": "Generates a `sql` filter for the values in `app_ids` applied on the `app_id` column.\n\n#### Returns\n\n`app_id in (...)` if any `app_ids` are provided, otherwise `true`.\n\n#### Usage\n\n```sql\napp_id_filter(['web', 'mobile', 'news'])\n\n-- returns\napp_id in ('web', 'mobile', 'news')\n```"}, "doc.snowplow_utils.macro_get_columns_in_relation_by_column_prefix": {"name": "macro_get_columns_in_relation_by_column_prefix", "resource_type": "doc", "package_name": "snowplow_utils", "path": "markdown/snowplow_utils_macro_docs.md", "original_file_path": "docs/markdown/snowplow_utils_macro_docs.md", "unique_id": "doc.snowplow_utils.macro_get_columns_in_relation_by_column_prefix", "block_contents": "This macro returns an array of column objects within a relation that start with the given column prefix. This is useful when you have multiple versions of a column within a table and want to dynamically identify all versions.\n\n#### Returns\n\nAn array of (column objects)[https://docs.getdbt.com/reference/dbt-classes#column]. The name of each column can be accessed with the name property.\n\n#### Usage\n\n```sql\nget_columns_in_relation_by_column_prefix(ref('snowplow_web_base_events_this_run'), 'domain')\n\n-- returns\n['domain_sessionid', 'domain_userid', 'domain_sessionidx',...]\n\n{% set matched_columns = snowplow_utils.get_columns_in_relation_by_column_prefix(\n relation=ref('snowplow_web_base_events_this_run'),\n column_prefix='custom_context_1_0_'\n ) %}\n\n{% for column in matched_columns %}\n{{ column.name }}\n{% endfor %}\n\n# Renders to something like:\n'custom_context_1_0_1'\n'custom_context_1_0_2'\n'custom_context_1_0_3'\n\n```"}, "doc.snowplow_utils.macro_get_schemas_by_pattern": {"name": "macro_get_schemas_by_pattern", "resource_type": "doc", "package_name": "snowplow_utils", "path": "markdown/snowplow_utils_macro_docs.md", "original_file_path": "docs/markdown/snowplow_utils_macro_docs.md", "unique_id": "doc.snowplow_utils.macro_get_schemas_by_pattern", "block_contents": "Given a pattern, finds and returns all schemas that match that pattern. Note that for databricks any single character matches (`_`) will not be properly translated due to databricks using a regex expression instead of a SQL `like` clause.\n\n #### Returns\n\n A list of schemas that match the pattern provided."}, "doc.snowplow_utils.macro_get_value_by_target_type": {"name": "macro_get_value_by_target_type", "resource_type": "doc", "package_name": "snowplow_utils", "path": "markdown/snowplow_utils_macro_docs.md", "original_file_path": "docs/markdown/snowplow_utils_macro_docs.md", "unique_id": "doc.snowplow_utils.macro_get_value_by_target_type", "block_contents": "Returns the value provided based on the `target.type`. This is useful when you need a different value based on which warehouse is being used e.g. cluster fields or partition keys.\n\n#### Returns\n\nThe appropriate value for the target warehouse type, or an error if not an expected target type."}, "doc.snowplow_utils.macro_get_value_by_target": {"name": "macro_get_value_by_target", "resource_type": "doc", "package_name": "snowplow_utils", "path": "markdown/snowplow_utils_macro_docs.md", "original_file_path": "docs/markdown/snowplow_utils_macro_docs.md", "unique_id": "doc.snowplow_utils.macro_get_value_by_target", "block_contents": "This macro is designed to dynamically return values based on the target (`target.name`) you are running against. Your target names are defined in your [profiles.yml](https://docs.getdbt.com/reference/profiles.yml) file. This can be useful for dynamically changing variables within your project, depending on whether you are running in dev or prod.\n\n#### Returns\n\nThe value relevant to the target environment\n\n#### Usage\n\n```yml\n\n# dbt_project.yml\n...\nvars:\nsnowplow_web:\n snowplow__backfill_limit_days: \"{{ snowplow_utils.get_value_by_target(dev_value=1, default_value=30, dev_target_name='dev') }}\"\n\n```"}, "doc.snowplow_utils.macro_is_run_with_new_events": {"name": "macro_is_run_with_new_events", "resource_type": "doc", "package_name": "snowplow_utils", "path": "markdown/snowplow_utils_macro_docs.md", "original_file_path": "docs/markdown/snowplow_utils_macro_docs.md", "unique_id": "doc.snowplow_utils.macro_is_run_with_new_events", "block_contents": "This macro is designed for use with Snowplow data modelling packages like `snowplow-web`. It can be used in any incremental models, to effectively block the incremental model from being updated with old data which it has already consumed. This saves cost as well as preventing historical data from being overwritten with partially complete data (due to a batch back-fill for instance).\n\nThe macro utilizes the `snowplow_[platform]_incremental_manifest` table to determine whether the model from which the macro is called, i.e. `{{ this }}`, has already consumed the data in the given run. If it has, it returns `false`. If the data in the run contains new data, `true` is returned.\n\nFor the sessions lifecycle identifier it does not use the manifest as this table is not included in it.\n\n#### Returns\n\n`true` if the run contains new events previously not consumed by `this`, `false` otherwise.\n\n#### Usage\n\n```sql\n\n{{\nconfig(\n materialized='incremental',\n unique_key='screen_view_id',\n upsert_date_key='start_tstamp'\n)\n}}\n\nselect\n...\n\nfrom {{ ref('snowplow_mobile_base_events_this_run' ) }}\nwhere {{ snowplow_utils.is_run_with_new_events('snowplow_mobile') }} --returns false if run doesn't contain new events.\n\n```"}, "doc.snowplow_utils.macro_log_message": {"name": "macro_log_message", "resource_type": "doc", "package_name": "snowplow_utils", "path": "markdown/snowplow_utils_macro_docs.md", "original_file_path": "docs/markdown/snowplow_utils_macro_docs.md", "unique_id": "doc.snowplow_utils.macro_log_message", "block_contents": "A wrapper macro for the `dbt_utils.pretty_log_format` using the `snowplow__has_log_enabled` to determine if the log is also printed to the stdout."}, "doc.snowplow_utils.macro_post_ci_cleanup": {"name": "macro_post_ci_cleanup", "resource_type": "doc", "package_name": "snowplow_utils", "path": "markdown/snowplow_utils_macro_docs.md", "original_file_path": "docs/markdown/snowplow_utils_macro_docs.md", "unique_id": "doc.snowplow_utils.macro_post_ci_cleanup", "block_contents": "This macro deletes all schemas that start with the specified `schema_pattern`, mostly for use before/after CI testing to ensure a clean start and removal of data after CI tests."}, "doc.snowplow_utils.macro_print_list": {"name": "macro_print_list", "resource_type": "doc", "package_name": "snowplow_utils", "path": "markdown/snowplow_utils_macro_docs.md", "original_file_path": "docs/markdown/snowplow_utils_macro_docs.md", "unique_id": "doc.snowplow_utils.macro_print_list", "block_contents": "Prints an array as a `seperator` separated quoted list.\n\n#### Returns\n\nSeparated output of items in the list, quoted."}, "doc.snowplow_utils.macro_return_limits_from_model": {"name": "macro_return_limits_from_model", "resource_type": "doc", "package_name": "snowplow_utils", "path": "markdown/snowplow_utils_macro_docs.md", "original_file_path": "docs/markdown/snowplow_utils_macro_docs.md", "unique_id": "doc.snowplow_utils.macro_return_limits_from_model", "block_contents": "Calculates and returns the minimum (lower) and maximum (upper) values of specified columns within the specified table. Useful to find ranges of a column within a table.\n\n#### Returns\n\nA list of two objects, the lower and upper values from the columns in the model"}, "doc.snowplow_utils.macro_set_query_tag": {"name": "macro_set_query_tag", "resource_type": "doc", "package_name": "snowplow_utils", "path": "markdown/snowplow_utils_macro_docs.md", "original_file_path": "docs/markdown/snowplow_utils_macro_docs.md", "unique_id": "doc.snowplow_utils.macro_set_query_tag", "block_contents": "This macro takes a provided statement as argument and generates the SQL command to set this statement as the query_tag for Snowflake databases, and does nothing otherwise. It can be used to safely set the query_tag regardless of database type.\n\n#### Returns\n\nAn alter session command set to the `query_tag` to the `statement` for Snowflake, otherwise nothing\n\n#### Usage\n\n```sql\n\n{{ snowplow_utils.set_query_tag('snowplow_query_tag') }}\n\n```"}, "doc.snowplow_utils.macro_n_timedeltas_ago": {"name": "macro_n_timedeltas_ago", "resource_type": "doc", "package_name": "snowplow_utils", "path": "markdown/snowplow_utils_macro_docs.md", "original_file_path": "docs/markdown/snowplow_utils_macro_docs.md", "unique_id": "doc.snowplow_utils.macro_n_timedeltas_ago", "block_contents": "This macro takes the current timestamp and subtracts `n` units, as defined by the `timedelta_attribute`, from it. This is achieved using the Python datetime module, rather than querying your database. By combining this with the `get_value_by_target` macro, you can dynamically set dates depending on your environment.\n\n#### Returns\n\nCurrent timestamp minus `n` units.\n\n#### Usage\n\n```sql\n\n{{ snowplow_utils.n_timedeltas_ago(1, 'weeks') }}\n\n```"}, "doc.snowplow_utils.macro_get_string_agg": {"name": "macro_get_string_agg", "resource_type": "doc", "package_name": "snowplow_utils", "path": "markdown/snowplow_utils_macro_docs.md", "original_file_path": "docs/markdown/snowplow_utils_macro_docs.md", "unique_id": "doc.snowplow_utils.macro_get_string_agg", "block_contents": "This macro takes care of harmonising cross-db `list_agg`, `string_agg` type functions. These are aggregate functions (i.e. to be used with a `group by`) that take values from grouped rows and concatenates them into a single string. This macro supports ordering values by an arbitrary column and ensuring unique values (i.e. applying distinct).\n\nNote that databricks does not have list/string_agg function so a more complex expression is used.\n\n#### Returns\n\nThe data warehouse appropriate sql to perform a list/string_agg. \n\n#### Usage\n\n```sql\nselect\n...\n{{ snowplow_utils.get_string_agg('base_column', 'column_prefix', ';', 'order_by_col', sort_numeric=true, order_by_column_prefix='order_by_column_prefix', is_distict=True, order_desc=True) }},\n...\nfrom ...\ngroup by ...\n\n```"}, "doc.snowplow_utils.macro_get_split_to_array": {"name": "macro_get_split_to_array", "resource_type": "doc", "package_name": "snowplow_utils", "path": "markdown/snowplow_utils_macro_docs.md", "original_file_path": "docs/markdown/snowplow_utils_macro_docs.md", "unique_id": "doc.snowplow_utils.macro_get_split_to_array", "block_contents": "This macro takes care of harmonising cross-db split to array type functions. The macro supports a custom delimiter if your string is not delimited by a comma with no space (default).\n\n#### Returns\n\nThe data warehouse appropriate sql to perform a split to array. \n\n#### Usage\n\n```sql\nselect\n...\n{{ snowplow_utils.get_split_to_array('my_string_column', 'a', ', ') }}\n...\nfrom ... a\n\n```"}, "doc.snowplow_utils.macro_get_array_to_string": {"name": "macro_get_array_to_string", "resource_type": "doc", "package_name": "snowplow_utils", "path": "markdown/snowplow_utils_macro_docs.md", "original_file_path": "docs/markdown/snowplow_utils_macro_docs.md", "unique_id": "doc.snowplow_utils.macro_get_array_to_string", "block_contents": "This macro takes care of harmonising cross-db array to string type functions. The macro supports a custom delimiter if you don't want to use a comma with no space (default).\n\n#### Returns\n\nThe data warehouse appropriate sql to convert an array to a string. \n\n#### Usage\n\n```sql\nselect\n...\n{{ snowplow_utils.get_array_to_string('my_array_column', 'a', ', ') }}\n...\nfrom ... a\n\n```"}, "doc.snowplow_utils.macro_get_sde_or_context": {"name": "macro_get_sde_or_context", "resource_type": "doc", "package_name": "snowplow_utils", "path": "markdown/snowplow_utils_macro_docs.md", "original_file_path": "docs/markdown/snowplow_utils_macro_docs.md", "unique_id": "doc.snowplow_utils.macro_get_sde_or_context", "block_contents": "This macro exists for Redshift and Postgres users to more easily select their self-describing event and context tables and apply de-duplication before joining onto their (already de-duplicated) events table. The `root_id` and `root_tstamp` columns are by default returned as `schema_name_id` and `schema_name_tstamp` respectively, where `schema_name` is the value in the `schema_name` column of the table. In the case where multiple entities may be sent in the context (e.g. products in a search results), you should set the `single_entity` argument to `false` and use an additional criteria in your join (see [the snowplow docs](https://docs.snowplow.io/docs/modeling-your-data/modeling-your-data-with-dbt/dbt-advanced-usage/dbt-duplicates/) for further details).\n\nNote that is the responsibility of the user to ensure they have no duplicate names when using this macro multiple times or when a schema column name matches on already in the events table. In this case the `prefix` argument should be used and aliasing applied to the output.\n\n#### Returns\n\nCTE sql for deduplicating records from the schema table, without the schema details columns. The final CTE is the name of the original table.\n\n#### Usage\n\nWith at most one entity per context:\n```sql\nwith {{ snowplow_utils.get_sde_or_context('atomic', 'nl_basjes_yauaa_context_1', \"'2023-01-01'\", \"'2023-02-01'\")}}\n\nselect\n...\nfrom my_events_table a\nleft join nl_basjes_yauaa_context_1 b on \n a.event_id = b.yauaa_context__id \n and a.collector_tstamp = b.yauaa_context__tstamp\n```\nWith the possibility of multiple entities per context, your events table must already be de-duped but still have a field with the number of duplicates:\n```sql\nwith {{ snowplow_utils.get_sde_or_context('atomic', 'nl_basjes_yauaa_context_1', \"'2023-01-01'\", \"'2023-02-01'\", single_entity = false)}}\n\nselect\n...,\ncount(*) over (partition by a.event_id) as duplicate_count\nfrom my_events_table a\nleft join nl_basjes_yauaa_context_1 b on \n a.event_id = b.yauaa_context__id \n and a.collector_tstamp = b.yauaa_context__tstamp\n and mod(b.yauaa_context__index, a.duplicate_count) = 0\n```"}, "doc.snowplow_utils.macro_get_field": {"name": "macro_get_field", "resource_type": "doc", "package_name": "snowplow_utils", "path": "markdown/snowplow_utils_macro_docs.md", "original_file_path": "docs/markdown/snowplow_utils_macro_docs.md", "unique_id": "doc.snowplow_utils.macro_get_field", "block_contents": "This macro exists to make it easier to extract a field from our `unstruct_` and `contexts_` type columns for users in Snowflake, Databricks, and BigQuery (using a wildcard version number is only possible for BigQuery e.g. `column_name = 'contexts_nl_basjes_yauaa_context_1_*'`). The macro can handle type casting and selecting from arrays.\n\n#### Returns\n\nSQL snippet to select the field specified from the column\n\n#### Usage\n\nExtracting a single field\n```sql\n\nselect\n{{ snowplow_utils.get_field(column_name = 'contexts_nl_basjes_yauaa_context_1', \n field_name = 'agent_class', \n table_alias = 'a',\n type = 'string',\n array_index = 0)}} as yauaa_agent_class\nfrom \n my_events_table a\n\n```\n\nExtracting multiple fields\n```sql\n\nselect\n{% for field in [('field1', 'string'), ('field2', 'numeric'), ...] %}\n {{ snowplow_utils.get_field(column_name = 'contexts_nl_basjes_yauaa_context_1', \n field_name = field[0], \n table_alias = 'a',\n type = field[1],\n array_index = 0)}} as {{ field[0] }}\n{% endfor %}\n\nfrom \n my_events_table a\n\n```"}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {"model.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_actual": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_views_mobile_screen_engagement_actual", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "actual/snowplow_unified_views_mobile_screen_engagement_actual.sql", "original_file_path": "models/actual/snowplow_unified_views_mobile_screen_engagement_actual.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_actual", "fqn": ["snowplow_unified_integration_tests", "actual", "snowplow_unified_views_mobile_screen_engagement_actual"], "alias": "snowplow_unified_views_mobile_screen_engagement_actual", "checksum": {"name": "sha256", "checksum": "35a6efe3d18cdef1e3ec2bffc212e22545eade95e87c654f5ff9fc8845efb6c6"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified_integration_tests://models/actual/actual_vs_expected.yml", "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": false}, "created_at": 1706612343.4257188, "config_call_dict": {"enabled": false}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_views_mobile_screen_engagement_actual", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n enabled=var(\"snowplow__enable_screen_summary_context\", false) | as_bool()\n )\n}}\n\nselect\n view_id,\n session_identifier,\n user_identifier,\n engaged_time_in_s,\n absolute_time_in_s,\n horizontal_pixels_scrolled,\n vertical_pixels_scrolled,\n horizontal_percentage_scrolled,\n vertical_percentage_scrolled,\n last_list_item_index,\n list_items_count,\n list_items_percentage_scrolled\n\nfrom {{ ref('snowplow_unified_views') }}\n\nunion all\n\nselect\n null as view_id,\n session_identifier,\n user_identifier,\n engaged_time_in_s,\n absolute_time_in_s,\n null as horizontal_pixels_scrolled,\n null as vertical_pixels_scrolled,\n null as horizontal_percentage_scrolled,\n null as vertical_percentage_scrolled,\n null as last_list_item_index,\n null as list_items_count,\n null as list_items_percentage_scrolled\n\n\nfrom {{ ref('snowplow_unified_sessions') }}\n\nunion all\n\nselect\n null as view_id,\n null as session_identifier,\n user_identifier,\n engaged_time_in_s,\n absolute_time_in_s,\n null as horizontal_pixels_scrolled,\n null as vertical_pixels_scrolled,\n null as horizontal_percentage_scrolled,\n null as vertical_percentage_scrolled,\n null as last_list_item_index,\n null as list_items_count,\n null as list_items_percentage_scrolled\n\n\nfrom {{ ref('snowplow_unified_users') }}", "language": "sql", "refs": [{"name": "snowplow_unified_views", "package": null, "version": null}, {"name": "snowplow_unified_sessions", "package": null, "version": null}, {"name": "snowplow_unified_users", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_events_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_events_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/bigquery/snowplow_unified_events_stg.sql", "original_file_path": "models/source/bigquery/snowplow_unified_events_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_events_stg", "fqn": ["snowplow_unified_integration_tests", "source", "bigquery", "snowplow_unified_events_stg"], "alias": "snowplow_unified_events_stg", "checksum": {"name": "sha256", "checksum": "f7ccc6b48e2f227e33640995c7aed0f3306c18865c2c2d8298f23028ed9b635f"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type == 'bigquery' | as_bool() }}"}, "created_at": 1706612341.1973248, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_events_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{# CWV tests run on a different source dataset, this is an easy way to hack them together. #}\n{% if not var(\"snowplow__enable_cwv\", false) and not var(\"snowplow__enable_screen_summary_context\", false) %}\n\n -- page view context is given as json string in csv. Extract array from json\n with prep as (\n select\n *\n except(contexts_com_snowplowanalytics_snowplow_web_page_1_0_0,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1_0_0,\n unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1_0_0,\n contexts_com_iab_snowplow_spiders_and_robots_1_0_0,\n contexts_com_snowplowanalytics_snowplow_ua_parser_context_1_0_0,\n contexts_nl_basjes_yauaa_context_1_0_0,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0,\n contexts_com_snowplowanalytics_snowplow_client_session_1_0_0,\n contexts_com_snowplowanalytics_snowplow_geolocation_context_1_0_0,\n contexts_com_snowplowanalytics_mobile_application_1_0_0,\n contexts_com_snowplowanalytics_mobile_deep_link_1_0_0,\n contexts_com_snowplowanalytics_snowplow_browser_context_1_0_0,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_0,\n contexts_com_snowplowanalytics_mobile_screen_1_0_0,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1_0_0),\n JSON_EXTRACT_ARRAY(contexts_com_snowplowanalytics_snowplow_web_page_1_0_0) AS contexts_com_snowplowanalytics_snowplow_web_page_1_0_0,\n JSON_EXTRACT_ARRAY(unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1_0_0) AS unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1_0_0,\n JSON_EXTRACT_ARRAY(unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1_0_0) AS unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1_0_0,\n JSON_EXTRACT_ARRAY(contexts_com_iab_snowplow_spiders_and_robots_1_0_0) as contexts_com_iab_snowplow_spiders_and_robots_1_0_0,\n JSON_EXTRACT_ARRAY(contexts_com_snowplowanalytics_snowplow_ua_parser_context_1_0_0) as contexts_com_snowplowanalytics_snowplow_ua_parser_context_1_0_0,\n JSON_EXTRACT_ARRAY(contexts_nl_basjes_yauaa_context_1_0_0) as contexts_nl_basjes_yauaa_context_1_0_0,\n JSON_EXTRACT_ARRAY(unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0) as unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0,\n JSON_EXTRACT_ARRAY(contexts_com_snowplowanalytics_snowplow_client_session_1_0_0) as contexts_com_snowplowanalytics_snowplow_client_session_1_0_0,\n JSON_EXTRACT_ARRAY(contexts_com_snowplowanalytics_snowplow_geolocation_context_1_0_0) as contexts_com_snowplowanalytics_snowplow_geolocation_context_1_0_0,\n JSON_EXTRACT_ARRAY(contexts_com_snowplowanalytics_mobile_application_1_0_0) as contexts_com_snowplowanalytics_mobile_application_1_0_0,\n JSON_EXTRACT_ARRAY(contexts_com_snowplowanalytics_mobile_deep_link_1_0_0) as contexts_com_snowplowanalytics_mobile_deep_link_1_0_0,\n JSON_EXTRACT_ARRAY(contexts_com_snowplowanalytics_snowplow_browser_context_1_0_0) as contexts_com_snowplowanalytics_snowplow_browser_context_1_0_0,\n JSON_EXTRACT_ARRAY(contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_0) as contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_0,\n JSON_EXTRACT_ARRAY(contexts_com_snowplowanalytics_mobile_screen_1_0_0) as contexts_com_snowplowanalytics_mobile_screen_1_0_0,\n JSON_EXTRACT_ARRAY(unstruct_event_com_snowplowanalytics_snowplow_application_error_1_0_0) as unstruct_event_com_snowplowanalytics_snowplow_application_error_1_0_0\n\n from {{ ref('snowplow_unified_events') }}\n )\n\n -- recreate repeated record field i.e. array of structs as is originally in BQ events table\n select\n *\n except(contexts_com_snowplowanalytics_snowplow_web_page_1_0_0,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1_0_0,\n unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1_0_0,\n contexts_com_iab_snowplow_spiders_and_robots_1_0_0,\n contexts_com_snowplowanalytics_snowplow_ua_parser_context_1_0_0,\n contexts_nl_basjes_yauaa_context_1_0_0,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0,\n contexts_com_snowplowanalytics_snowplow_client_session_1_0_0,\n contexts_com_snowplowanalytics_snowplow_geolocation_context_1_0_0,\n contexts_com_snowplowanalytics_mobile_application_1_0_0,\n contexts_com_snowplowanalytics_mobile_deep_link_1_0_0,\n contexts_com_snowplowanalytics_snowplow_browser_context_1_0_0,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_0,\n contexts_com_snowplowanalytics_mobile_screen_1_0_0,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1_0_0),\n array(\n select as struct\n JSON_EXTRACT_scalar(json_array,'$.id') as id\n from unnest(contexts_com_snowplowanalytics_snowplow_web_page_1_0_0) as json_array\n ) as contexts_com_snowplowanalytics_snowplow_web_page_1_0_0,\n\n array(\n select as struct\n JSON_EXTRACT_scalar(json_array,'$.basis_for_processing') as basis_for_processing,\n JSON_EXTRACT_STRING_ARRAY(json_array,'$.consent_scopes') as consent_scopes,\n JSON_EXTRACT_scalar(json_array,'$.consent_url') as consent_url,\n JSON_EXTRACT_scalar(json_array,'$.consent_version') as consent_version,\n JSON_EXTRACT_STRING_ARRAY(json_array,'$.domains_applied') as domains_applied,\n JSON_EXTRACT_scalar(json_array,'$.event_type') as event_type,\n JSON_EXTRACT_scalar(json_array,'$.gdpr_applies') as gdpr_applies\n from unnest(unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1_0_0) as json_array\n ) as unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1_0_0,\n\n array(\n select as struct\n JSON_EXTRACT_scalar(json_array,'$.elapsed_time') as elapsed_time\n from unnest(unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1_0_0) as json_array\n ) as unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1_0_0,\n\n array(\n select as struct\n JSON_EXTRACT_scalar(json_array,'$.category') as category,\n JSON_EXTRACT_scalar(json_array,'$.primaryImpact') as primary_impact,\n JSON_EXTRACT_scalar(json_array,'$.reason') as reason,\n cast(JSON_EXTRACT_scalar(json_array ,'$.spiderOrRobot') as boolean) as spider_or_robot\n from unnest(contexts_com_iab_snowplow_spiders_and_robots_1_0_0) as json_array\n ) as contexts_com_iab_snowplow_spiders_and_robots_1_0_0,\n\n array(\n select as struct\n JSON_EXTRACT_scalar(json_array,'$.deviceFamily') as device_family,\n JSON_EXTRACT_scalar(json_array,'$.osFamily') as os_family,\n JSON_EXTRACT_scalar(json_array,'$.osMajor') as os_major,\n JSON_EXTRACT_scalar(json_array,'$.osMinor') as os_minor,\n JSON_EXTRACT_scalar(json_array,'$.osPatch') as os_patch,\n JSON_EXTRACT_scalar(json_array,'$.osPatchMinor') as os_patch_minor,\n JSON_EXTRACT_scalar(json_array,'$.osVersion') as os_version,\n JSON_EXTRACT_scalar(json_array,'$.useragentFamily') as useragent_family,\n JSON_EXTRACT_scalar(json_array,'$.useragentMajor') as useragent_major,\n JSON_EXTRACT_scalar(json_array,'$.useragentMinor') as useragent_minor,\n JSON_EXTRACT_scalar(json_array,'$.useragentPatch') as useragent_patch,\n JSON_EXTRACT_scalar(json_array,'$.useragentVersion') as useragent_version\n from unnest(contexts_com_snowplowanalytics_snowplow_ua_parser_context_1_0_0) as json_array\n ) as contexts_com_snowplowanalytics_snowplow_ua_parser_context_1_0_0,\n\n array(\n select as struct\n JSON_EXTRACT_scalar(json_array,'$.agentClass') as agent_class,\n JSON_EXTRACT_scalar(json_array,'$.agentInformationEmail') as agent_information_email,\n JSON_EXTRACT_scalar(json_array,'$.agentName') as agent_name,\n JSON_EXTRACT_scalar(json_array,'$.agentNameVersion') as agent_name_version,\n JSON_EXTRACT_scalar(json_array,'$.agentNameVersionMajor') as agent_name_version_major,\n JSON_EXTRACT_scalar(json_array,'$.agentVersion') as agent_version,\n JSON_EXTRACT_scalar(json_array,'$.agentVersionMajor') as agent_version_major,\n JSON_EXTRACT_scalar(json_array,'$.deviceBrand') as device_brand,\n JSON_EXTRACT_scalar(json_array,'$.deviceClass') as device_class,\n JSON_EXTRACT_scalar(json_array,'$.deviceCpu') as device_cpu,\n JSON_EXTRACT_scalar(json_array,'$.deviceCpuBits') as device_cpu_bits,\n JSON_EXTRACT_scalar(json_array,'$.deviceName') as device_name,\n JSON_EXTRACT_scalar(json_array,'$.deviceVersion') as device_version,\n JSON_EXTRACT_scalar(json_array,'$.layoutEngineClass') as layout_engine_class,\n JSON_EXTRACT_scalar(json_array,'$.layoutEngineName') as layout_engine_name,\n JSON_EXTRACT_scalar(json_array,'$.layoutEngineNameVersion') as layout_engine_name_version,\n JSON_EXTRACT_scalar(json_array,'$.layoutEngineNameVersionMajor') as layout_engine_name_version_major,\n JSON_EXTRACT_scalar(json_array,'$.layoutEngineVersion') as layout_engine_version,\n JSON_EXTRACT_scalar(json_array,'$.layoutEngineVersionMajor') as layout_engine_version_major,\n JSON_EXTRACT_scalar(json_array,'$.networkType') as network_type,\n JSON_EXTRACT_scalar(json_array,'$.operatingSystemClass') as operating_system_class,\n JSON_EXTRACT_scalar(json_array,'$.operatingSystemName') as operating_system_name,\n JSON_EXTRACT_scalar(json_array,'$.operatingSystemNameVersion') as operating_system_name_version,\n JSON_EXTRACT_scalar(json_array,'$.operatingSystemNameVersionMajor') as operating_system_name_version_major,\n JSON_EXTRACT_scalar(json_array,'$.operatingSystemVersion') as operating_system_version,\n JSON_EXTRACT_scalar(json_array,'$.operatingSystemVersionBuild') as operating_system_version_build,\n JSON_EXTRACT_scalar(json_array,'$.operatingSystemVersionMajor') as operating_system_version_major,\n JSON_EXTRACT_scalar(json_array,'$.webviewAppName') as webview_app_name,\n JSON_EXTRACT_scalar(json_array,'$.webviewAppNameVersionMajor') as webview_app_name_version_major,\n JSON_EXTRACT_scalar(json_array,'$.webviewAppVersion') as webview_app_version,\n JSON_EXTRACT_scalar(json_array,'$.webviewAppVersionMajor') as webview_app_version_major\n from unnest(contexts_nl_basjes_yauaa_context_1_0_0) as json_array\n ) as contexts_nl_basjes_yauaa_context_1_0_0,\n\n array(\n select as struct\n JSON_EXTRACT_scalar(json_array,'$.id') as id,\n JSON_EXTRACT_scalar(json_array,'$.name') as name,\n JSON_EXTRACT_scalar(json_array,'$.previousId') as previous_id,\n JSON_EXTRACT_scalar(json_array,'$.previousName') as previous_name,\n JSON_EXTRACT_scalar(json_array,'$.previousType') as previous_type,\n JSON_EXTRACT_scalar(json_array,'$.transitionType') as transition_type,\n JSON_EXTRACT_scalar(json_array,'$.type') as type\n from unnest(unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0) as json_array\n ) as unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0,\n array(\n select as struct JSON_EXTRACT_scalar(json_array,'$.sessionId') as session_id,\n JSON_EXTRACT_scalar(json_array,'$.userId') as user_id,\n cast(JSON_EXTRACT_scalar(json_array,'$.sessionIndex') as integer) as session_index,\n JSON_EXTRACT_scalar(json_array,'$.firstEventId') as first_event_id,\n JSON_EXTRACT_scalar(json_array,'$.previousSessionId') as previous_session_id,\n JSON_EXTRACT_scalar(json_array,'$.eventIndex') as event_index,\n JSON_EXTRACT_scalar(json_array,'$.storageMechanism') as storage_mechanism,\n JSON_EXTRACT_scalar(json_array,'$.firstEventTimestamp') as first_event_timestamp\n from unnest(contexts_com_snowplowanalytics_snowplow_client_session_1_0_0) as json_array\n ) as contexts_com_snowplowanalytics_snowplow_client_session_1_0_0,\n array(\n select as struct cast(JSON_EXTRACT_scalar(json_array,'$.latitude') as FLOAT64) as latitude,\n cast(JSON_EXTRACT_scalar(json_array,'$.longitude') as FLOAT64) as longitude,\n cast(JSON_EXTRACT_scalar(json_array,'$.latitudeLongitudeAccuracy') as FLOAT64) as latitude_longitude_accuracy,\n cast(JSON_EXTRACT_scalar(json_array,'$.altitude') as FLOAT64) as altitude,\n cast(JSON_EXTRACT_scalar(json_array,'$.altitudeAccuracy') as FLOAT64)as altitude_accuracy,\n cast(JSON_EXTRACT_scalar(json_array,'$.bearing') as FLOAT64)as bearing,\n cast(JSON_EXTRACT_scalar(json_array,'$.speed') as FLOAT64) as speed,\n cast(JSON_EXTRACT_scalar(json_array,'$.timestamp') as integer) as timestamp\n from unnest(contexts_com_snowplowanalytics_snowplow_geolocation_context_1_0_0) as json_array\n ) as contexts_com_snowplowanalytics_snowplow_geolocation_context_1_0_0,\n\n array(\n select as struct\n JSON_EXTRACT_scalar(json_array,'$.viewport') as viewport,\n JSON_EXTRACT_scalar(json_array,'$.documentSize') as document_size,\n JSON_EXTRACT_scalar(json_array,'$.resolution') as resolution,\n cast(JSON_EXTRACT_scalar(json_array,'$.colorDepth') as integer) as color_depth,\n cast(JSON_EXTRACT_scalar(json_array,'$.devicePixelRatio') as FLOAT64) as device_pixel_ratio,\n cast(JSON_EXTRACT_scalar(json_array,'$.cookiesEnabled') as boolean) as cookies_enabled,\n cast(JSON_EXTRACT_scalar(json_array,'$.online') as boolean) as online,\n JSON_EXTRACT_scalar(json_array,'$.browserLanguage') as browser_language,\n JSON_EXTRACT_scalar(json_array,'$.documentLanguage') as document_language,\n cast(JSON_EXTRACT_scalar(json_array,'$.webdriver') as boolean) as webdriver,\n cast(JSON_EXTRACT_scalar(json_array,'$.deviceMemory') as integer) as device_memory,\n cast(JSON_EXTRACT_scalar(json_array,'$.hardwareConcurrency') as integer) as hardware_concurrency,\n JSON_EXTRACT_scalar(json_array,'$.tab_id') as tab_id\n from unnest(contexts_com_snowplowanalytics_snowplow_browser_context_1_0_0) as json_array\n ) as contexts_com_snowplowanalytics_snowplow_browser_context_1_0_0,\n\n array(\n select as struct JSON_EXTRACT_scalar(json_array,'$.version') as version,\n JSON_EXTRACT_scalar(json_array,'$.build') as build\n from unnest(contexts_com_snowplowanalytics_mobile_application_1_0_0) as json_array\n ) as contexts_com_snowplowanalytics_mobile_application_1_0_0,\n\n array(\n select as struct JSON_EXTRACT_scalar(json_array,'$.url') as url,\n JSON_EXTRACT_scalar(json_array,'$.referrer') as referrer\n from unnest(contexts_com_snowplowanalytics_mobile_deep_link_1_0_0) as json_array\n ) as contexts_com_snowplowanalytics_mobile_deep_link_1_0_0,\n\n array(\n select as struct\n JSON_EXTRACT_scalar(json_array,'$.deviceManufacturer') as device_manufacturer,\n JSON_EXTRACT_scalar(json_array,'$.deviceModel') as device_model,\n JSON_EXTRACT_scalar(json_array,'$.osType') as os_type,\n JSON_EXTRACT_scalar(json_array,'$.osVersion') as os_version,\n JSON_EXTRACT_scalar(json_array,'$.androidIdfa') as android_idfa,\n JSON_EXTRACT_scalar(json_array,'$.appleIdfa') as apple_idfa,\n JSON_EXTRACT_scalar(json_array,'$.appleIdfv') as apple_idfv,\n JSON_EXTRACT_scalar(json_array,'$.carrier') as carrier,\n JSON_EXTRACT_scalar(json_array,'$.openIdfa') as open_idfa,\n JSON_EXTRACT_scalar(json_array,'$.networkTechnology') as network_technology,\n JSON_EXTRACT_scalar(json_array,'$.networkType') as network_type,\n cast(JSON_EXTRACT_scalar(json_array,'$.physicalMemory') as integer) as physical_memory,\n cast(JSON_EXTRACT_scalar(json_array,'$.systemAvailableMemory') as integer) as system_available_memory,\n cast(JSON_EXTRACT_scalar(json_array,'$.appAvailableMemory') as integer) as app_available_memory,\n cast(JSON_EXTRACT_scalar(json_array,'$.batteryLevel') as integer) as battery_level,\n JSON_EXTRACT_scalar(json_array,'$.batteryState') as battery_state,\n cast(JSON_EXTRACT_scalar(json_array,'$.availableStorage') as integer) as available_storage,\n cast(JSON_EXTRACT_scalar(json_array,'$.totalStorage') as integer) as total_storage,\n cast(JSON_EXTRACT_scalar(json_array,'$.lowPowerMode') as boolean) as low_power_mode,\n cast(JSON_EXTRACT_scalar(json_array,'$.isPortrait') as boolean) as is_portrait,\n JSON_EXTRACT_scalar(json_array,'$.resolution') as resolution,\n cast(JSON_EXTRACT_scalar(json_array,'$.scale') as integer) as scale,\n JSON_EXTRACT_scalar(json_array,'$.language') as language,\n JSON_EXTRACT_scalar(json_array,'$.appSetId') as app_set_id,\n JSON_EXTRACT_scalar(json_array,'$.appSetIdScope') as app_set_id_scope\n\n from unnest(contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_0) as json_array\n ) as contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_0,\n\n array(\n select as struct JSON_EXTRACT_scalar(json_array,'$.id') as id,\n JSON_EXTRACT_scalar(json_array,'$.name') as name,\n JSON_EXTRACT_scalar(json_array,'$.activity') as activity,\n JSON_EXTRACT_scalar(json_array,'$.fragment') as fragment,\n JSON_EXTRACT_scalar(json_array,'$.topViewController') as top_view_controller,\n JSON_EXTRACT_scalar(json_array,'$.type') as type,\n JSON_EXTRACT_scalar(json_array,'$.viewController') as view_controller\n from unnest(contexts_com_snowplowanalytics_mobile_screen_1_0_0) as json_array\n ) as contexts_com_snowplowanalytics_mobile_screen_1_0_0,\n\n\n array(\n select as struct\n JSON_EXTRACT_scalar(json_array,'$.message') as message,\n JSON_EXTRACT_scalar(json_array,'$.programmingLanguage') as programming_language,\n JSON_EXTRACT_scalar(json_array,'$.className') as class_name,\n JSON_EXTRACT_scalar(json_array,'$.exceptionName') as exception_name,\n cast(JSON_EXTRACT_scalar(json_array,'$.isFatal') as boolean) as is_fatal,\n cast(JSON_EXTRACT_scalar(json_array,'$.lineNumber') as integer) as line_number,\n JSON_EXTRACT_scalar(json_array,'$.stackTrace') as stack_trace,\n cast(JSON_EXTRACT_scalar(json_array,'$.threadId') as integer) as thread_id,\n JSON_EXTRACT_scalar(json_array,'$.threadName') as thread_name\n from unnest(unstruct_event_com_snowplowanalytics_snowplow_application_error_1_0_0) as json_array\n ) as unstruct_event_com_snowplowanalytics_snowplow_application_error_1_0_0\n\n from prep\n\n{% elif var(\"snowplow__enable_screen_summary_context\", false) %}\n\n with prep as (\n select\n *\n except(unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0,\n contexts_com_snowplowanalytics_snowplow_client_session_1_0_2,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_3,\n contexts_com_snowplowanalytics_mobile_application_1_0_0,\n contexts_com_snowplowanalytics_mobile_screen_1_0_0,\n contexts_com_snowplowanalytics_mobile_screen_summary_1_0_0),\n\n JSON_EXTRACT_ARRAY(unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0) as unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0,\n JSON_EXTRACT_ARRAY(contexts_com_snowplowanalytics_snowplow_client_session_1_0_2) as contexts_com_snowplowanalytics_snowplow_client_session_1_0_2,\n JSON_EXTRACT_ARRAY(contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_3) as contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_3,\n JSON_EXTRACT_ARRAY(contexts_com_snowplowanalytics_mobile_application_1_0_0) as contexts_com_snowplowanalytics_mobile_application_1_0_0,\n JSON_EXTRACT_ARRAY(contexts_com_snowplowanalytics_mobile_screen_1_0_0) as contexts_com_snowplowanalytics_mobile_screen_1_0_0,\n JSON_EXTRACT_ARRAY(contexts_com_snowplowanalytics_mobile_screen_summary_1_0_0) as contexts_com_snowplowanalytics_mobile_screen_summary_1_0_0\n\n from {{ ref('snowplow_unified_screen_engagement_events') }}\n )\n\n -- recreate repeated record field i.e. array of structs as is originally in BQ events table\n select\n *\n except(unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0,\n contexts_com_snowplowanalytics_snowplow_client_session_1_0_2,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_3,\n contexts_com_snowplowanalytics_mobile_application_1_0_0,\n contexts_com_snowplowanalytics_mobile_screen_1_0_0,\n contexts_com_snowplowanalytics_mobile_screen_summary_1_0_0),\n\n array(\n select as struct\n JSON_EXTRACT_scalar(json_array,'$.id') as id,\n JSON_EXTRACT_scalar(json_array,'$.name') as name,\n JSON_EXTRACT_scalar(json_array,'$.previousId') as previous_id,\n JSON_EXTRACT_scalar(json_array,'$.previousName') as previous_name,\n JSON_EXTRACT_scalar(json_array,'$.previousType') as previous_type,\n JSON_EXTRACT_scalar(json_array,'$.transitionType') as transition_type,\n JSON_EXTRACT_scalar(json_array,'$.type') as type\n from unnest(unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0) as json_array\n ) as unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0,\n\n array(\n select as struct JSON_EXTRACT_scalar(json_array,'$.sessionId') as session_id,\n JSON_EXTRACT_scalar(json_array,'$.userId') as user_id,\n cast(JSON_EXTRACT_scalar(json_array,'$.sessionIndex') as integer) as session_index,\n JSON_EXTRACT_scalar(json_array,'$.firstEventId') as first_event_id,\n JSON_EXTRACT_scalar(json_array,'$.previousSessionId') as previous_session_id,\n JSON_EXTRACT_scalar(json_array,'$.eventIndex') as event_index,\n JSON_EXTRACT_scalar(json_array,'$.storageMechanism') as storage_mechanism,\n JSON_EXTRACT_scalar(json_array,'$.firstEventTimestamp') as first_event_timestamp\n from unnest(contexts_com_snowplowanalytics_snowplow_client_session_1_0_2) as json_array\n ) as contexts_com_snowplowanalytics_snowplow_client_session_1_0_2,\n\n array(\n select as struct JSON_EXTRACT_scalar(json_array,'$.version') as version,\n JSON_EXTRACT_scalar(json_array,'$.build') as build\n from unnest(contexts_com_snowplowanalytics_mobile_application_1_0_0) as json_array\n ) as contexts_com_snowplowanalytics_mobile_application_1_0_0,\n\n array(\n select as struct\n JSON_EXTRACT_scalar(json_array,'$.deviceManufacturer') as device_manufacturer,\n JSON_EXTRACT_scalar(json_array,'$.deviceModel') as device_model,\n JSON_EXTRACT_scalar(json_array,'$.osType') as os_type,\n JSON_EXTRACT_scalar(json_array,'$.osVersion') as os_version,\n JSON_EXTRACT_scalar(json_array,'$.androidIdfa') as android_idfa,\n JSON_EXTRACT_scalar(json_array,'$.appleIdfa') as apple_idfa,\n JSON_EXTRACT_scalar(json_array,'$.appleIdfv') as apple_idfv,\n JSON_EXTRACT_scalar(json_array,'$.carrier') as carrier,\n JSON_EXTRACT_scalar(json_array,'$.openIdfa') as open_idfa,\n JSON_EXTRACT_scalar(json_array,'$.networkTechnology') as network_technology,\n JSON_EXTRACT_scalar(json_array,'$.networkType') as network_type,\n cast(JSON_EXTRACT_scalar(json_array,'$.physicalMemory') as integer) as physical_memory,\n cast(JSON_EXTRACT_scalar(json_array,'$.systemAvailableMemory') as integer) as system_available_memory,\n cast(JSON_EXTRACT_scalar(json_array,'$.appAvailableMemory') as integer) as app_available_memory,\n cast(JSON_EXTRACT_scalar(json_array,'$.batteryLevel') as integer) as battery_level,\n JSON_EXTRACT_scalar(json_array,'$.batteryState') as battery_state,\n cast(JSON_EXTRACT_scalar(json_array,'$.availableStorage') as integer) as available_storage,\n cast(JSON_EXTRACT_scalar(json_array,'$.totalStorage') as integer) as total_storage,\n cast(JSON_EXTRACT_scalar(json_array,'$.lowPowerMode') as boolean) as low_power_mode,\n cast(JSON_EXTRACT_scalar(json_array,'$.isPortrait') as boolean) as is_portrait,\n JSON_EXTRACT_scalar(json_array,'$.resolution') as resolution,\n cast(JSON_EXTRACT_scalar(json_array,'$.scale') as integer) as scale,\n JSON_EXTRACT_scalar(json_array,'$.language') as language,\n JSON_EXTRACT_scalar(json_array,'$.appSetId') as app_set_id,\n JSON_EXTRACT_scalar(json_array,'$.appSetIdScope') as app_set_id_scope\n\n from unnest(contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_3) as json_array\n ) as contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_3,\n\n array(\n select as struct JSON_EXTRACT_scalar(json_array,'$.id') as id,\n JSON_EXTRACT_scalar(json_array,'$.name') as name,\n JSON_EXTRACT_scalar(json_array,'$.activity') as activity,\n JSON_EXTRACT_scalar(json_array,'$.fragment') as fragment,\n JSON_EXTRACT_scalar(json_array,'$.topViewController') as top_view_controller,\n JSON_EXTRACT_scalar(json_array,'$.type') as type,\n JSON_EXTRACT_scalar(json_array,'$.viewController') as view_controller\n from unnest(contexts_com_snowplowanalytics_mobile_screen_1_0_0) as json_array\n ) as contexts_com_snowplowanalytics_mobile_screen_1_0_0,\n\n array(\n select as struct cast(JSON_EXTRACT_scalar(json_array,'$.foreground_sec') as FLOAT64) as foreground_sec,\n cast(JSON_EXTRACT_scalar(json_array,'$.background_sec') as FLOAT64) as background_sec,\n cast(JSON_EXTRACT_scalar(json_array,'$.last_item_index') as integer) as last_item_index,\n cast(JSON_EXTRACT_scalar(json_array,'$.items_count') as integer) as items_count,\n cast(JSON_EXTRACT_scalar(json_array,'$.min_x_offset') as integer) as min_x_offset,\n cast(JSON_EXTRACT_scalar(json_array,'$.max_x_offset') as integer) as max_x_offset,\n cast(JSON_EXTRACT_scalar(json_array,'$.min_y_offset') as integer) as min_y_offset,\n cast(JSON_EXTRACT_scalar(json_array,'$.max_y_offset') as integer) as max_y_offset,\n cast(JSON_EXTRACT_scalar(json_array,'$.content_width') as integer) as content_width,\n cast(JSON_EXTRACT_scalar(json_array,'$.content_height') as integer) as content_height\n from unnest(contexts_com_snowplowanalytics_mobile_screen_summary_1_0_0) as json_array\n ) as contexts_com_snowplowanalytics_mobile_screen_summary_1_0_0\n\n from prep\n\n{% else %}\n -- page view context is given as json string in csv. Parse json\n with prep as (\n select\n *\n except(contexts_com_snowplowanalytics_snowplow_web_page_1_0_0, unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1_0_0, unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1_0_0, unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1_0_0, contexts_nl_basjes_yauaa_context_1_0_0, contexts_com_iab_snowplow_spiders_and_robots_1_0_0),\n JSON_EXTRACT_ARRAY(contexts_com_snowplowanalytics_snowplow_web_page_1_0_0) AS contexts_com_snowplowanalytics_snowplow_web_page_1_0_0,\n JSON_EXTRACT_ARRAY(unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1_0_0) AS unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1_0_0,\n JSON_EXTRACT_ARRAY(unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1_0_0) AS unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1_0_0,\n JSON_EXTRACT_ARRAY(unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1_0_0) AS unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1_0_0,\n JSON_EXTRACT_ARRAY(contexts_nl_basjes_yauaa_context_1_0_0) AS contexts_nl_basjes_yauaa_context_1_0_0,\n JSON_EXTRACT_ARRAY(contexts_com_iab_snowplow_spiders_and_robots_1_0_0) AS contexts_com_iab_snowplow_spiders_and_robots_1_0_0\n\n from {{ ref('snowplow_unified_web_vital_events') }}\n )\n -- recreate repeated record field i.e. array of structs as is originally in BQ events table\n select\n *\n except(contexts_com_snowplowanalytics_snowplow_web_page_1_0_0, unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1_0_0, unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1_0_0, unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1_0_0, contexts_nl_basjes_yauaa_context_1_0_0, contexts_com_iab_snowplow_spiders_and_robots_1_0_0),\n array(\n select as struct JSON_EXTRACT_scalar(json_array,'$.id') as id\n from unnest(contexts_com_snowplowanalytics_snowplow_web_page_1_0_0) as json_array\n ) as contexts_com_snowplowanalytics_snowplow_web_page_1_0_0,\n\n array(\n select as struct\n JSON_EXTRACT_scalar(json_array,'$.basis_for_processing') as basis_for_processing,\n JSON_EXTRACT_STRING_ARRAY(json_array,'$.consent_scopes') as consent_scopes,\n JSON_EXTRACT_scalar(json_array,'$.consent_url') as consent_url,\n JSON_EXTRACT_scalar(json_array,'$.consent_version') as consent_version,\n JSON_EXTRACT_STRING_ARRAY(json_array,'$.domains_applied') as domains_applied,\n JSON_EXTRACT_scalar(json_array,'$.event_type') as event_type,\n JSON_EXTRACT_scalar(json_array,'$.gdpr_applies') as gdpr_applies\n from unnest(unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1_0_0) as json_array\n ) as unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1_0_0,\n\n array(\n select as struct\n JSON_EXTRACT_scalar(json_array,'$.elapsed_time') as elapsed_time\n from unnest(unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1_0_0) as json_array\n ) as unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1_0_0,\n array(\n select as struct\n JSON_EXTRACT_scalar(json_array,'$.cls') as cls,\n JSON_EXTRACT_scalar(json_array,'$.fcp') as fcp,\n JSON_EXTRACT_scalar(json_array,'$.fid') as fid,\n JSON_EXTRACT_scalar(json_array,'$.inp') as inp,\n JSON_EXTRACT_scalar(json_array,'$.lcp') as lcp,\n JSON_EXTRACT_scalar(json_array,'$.navigation_type') as navigation_type,\n JSON_EXTRACT_scalar(json_array,'$.ttfb') as ttfb\n from unnest(unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1_0_0) as json_array\n ) as unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1_0_0,\n\n array(\n select as struct JSON_EXTRACT_scalar(json_array,'$.device_class') as device_class,\n JSON_EXTRACT_scalar(json_array,'$.agent_class') as agent_class,\n JSON_EXTRACT_scalar(json_array,'$.agent_name') as agent_name,\n JSON_EXTRACT_scalar(json_array,'$.agent_name_version') as agent_name_version,\n JSON_EXTRACT_scalar(json_array,'$.agent_name_version_major') as agent_name_version_major,\n JSON_EXTRACT_scalar(json_array,'$.agent_version') as agent_version,\n JSON_EXTRACT_scalar(json_array,'$.agent_version_major') as agent_version_major,\n JSON_EXTRACT_scalar(json_array,'$.device_brand') as device_brand,\n JSON_EXTRACT_scalar(json_array,'$.device_name') as device_name,\n JSON_EXTRACT_scalar(json_array,'$.device_version') as device_version,\n JSON_EXTRACT_scalar(json_array,'$.layout_engine_class') as layout_engine_class,\n JSON_EXTRACT_scalar(json_array,'$.layout_engine_name') as layout_engine_name,\n JSON_EXTRACT_scalar(json_array,'$.layout_engine_name_version') as layout_engine_name_version,\n JSON_EXTRACT_scalar(json_array,'$.layout_engine_name_version_major') as layout_engine_name_version_major,\n JSON_EXTRACT_scalar(json_array,'$.layout_engine_version') as layout_engine_version,\n JSON_EXTRACT_scalar(json_array,'$.layout_engine_version_major') as layout_engine_version_major,\n JSON_EXTRACT_scalar(json_array,'$.operating_system_class') as operating_system_class,\n JSON_EXTRACT_scalar(json_array,'$.operating_system_name') as operating_system_name,\n JSON_EXTRACT_scalar(json_array,'$.operating_system_name_version') as operating_system_name_version,\n JSON_EXTRACT_scalar(json_array,'$.operating_system_version') as operating_system_version\n\n from unnest(contexts_nl_basjes_yauaa_context_1_0_0) as json_array\n ) as contexts_nl_basjes_yauaa_context_1_0_0,\n\n array(\n select as struct JSON_EXTRACT_scalar(json_array,'$.category') as category,\n JSON_EXTRACT_scalar(json_array,'$.primary_impact') as primary_impact,\n JSON_EXTRACT_scalar(json_array,'$.reason') as reason,\n JSON_EXTRACT_scalar(json_array,'$.spider_or_robot') as spider_or_robot\n\n from unnest(contexts_com_iab_snowplow_spiders_and_robots_1_0_0) as json_array\n ) as contexts_com_iab_snowplow_spiders_and_robots_1_0_0\n from prep\n\n{% endif %}", "language": "sql", "refs": [{"name": "snowplow_unified_web_vital_events", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}, {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_events_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/databricks/snowplow_unified_events_stg.sql", "original_file_path": "models/source/databricks/snowplow_unified_events_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_events_stg", "fqn": ["snowplow_unified_integration_tests", "source", "databricks", "snowplow_unified_events_stg"], "alias": "snowplow_unified_events_stg", "checksum": {"name": "sha256", "checksum": "8b92ef4fb348fab27c84d38c45cc18b8cc9c4dec492e0fdd611d0167bc05115e"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['databricks', 'spark'] | as_bool() }}"}, "created_at": 1706612341.2085667, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_events_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{# CWV tests run on a different source dataset, this is an easy way to hack them together. #}\n{% if not var(\"snowplow__enable_cwv\", false) and not var(\"snowplow__enable_screen_summary_context\", false) %}\n\n -- page view context is given as json string in csv. Parse json\n with prep as (\n select\n *,\n from_json(contexts_com_snowplowanalytics_snowplow_web_page_1_0_0, 'array>') as contexts_com_snowplowanalytics_snowplow_web_page_1,\n from_json(unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1_0_0, 'array, consent_url:string, consent_version:string, domains_applied:array, event_type:string, gdpr_applies:string>>') as unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1,\n from_json(unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1_0_0, 'array>') as unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1,\n from_json(contexts_com_iab_snowplow_spiders_and_robots_1_0_0, 'array>') as contexts_com_iab_snowplow_spiders_and_robots_1,\n from_json(contexts_com_snowplowanalytics_snowplow_ua_parser_context_1_0_0, 'array>') as contexts_com_snowplowanalytics_snowplow_ua_parser_context_1,\n from_json(contexts_nl_basjes_yauaa_context_1_0_0, 'array>') as contexts_nl_basjes_yauaa_context_1,\n from_json(unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0,'array>') as unstruct_event_com_snowplowanalytics_mobile_screen_view_1,\n from_json(contexts_com_snowplowanalytics_snowplow_client_session_1_0_0,'array>') as contexts_com_snowplowanalytics_snowplow_client_session_1,\n from_json(contexts_com_snowplowanalytics_snowplow_geolocation_context_1_0_0,'array>') as contexts_com_snowplowanalytics_snowplow_geolocation_context_1,\n from_json(contexts_com_snowplowanalytics_mobile_application_1_0_0,'array>') as contexts_com_snowplowanalytics_mobile_application_1,\n from_json(contexts_com_snowplowanalytics_mobile_deep_link_1_0_0,'array>') as contexts_com_snowplowanalytics_mobile_deep_link_1,\n from_json(contexts_com_snowplowanalytics_snowplow_browser_context_1_0_0,'array>') as contexts_com_snowplowanalytics_snowplow_browser_context_1,\n from_json(contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_0,'array>') as contexts_com_snowplowanalytics_snowplow_mobile_context_1,\n from_json(contexts_com_snowplowanalytics_mobile_screen_1_0_0,'array>') as contexts_com_snowplowanalytics_mobile_screen_1,\n from_json(unstruct_event_com_snowplowanalytics_snowplow_application_error_1_0_0,'array>') as unstruct_event_com_snowplowanalytics_snowplow_application_error_1\n from\n {{ ref('snowplow_unified_events') }}\n )\n\n select\n app_id,\n platform,\n etl_tstamp,\n collector_tstamp,\n dvce_created_tstamp,\n event,\n event_id,\n txn_id,\n name_tracker,\n v_tracker,\n v_collector,\n v_etl,\n user_id,\n user_ipaddress,\n user_fingerprint,\n domain_userid,\n domain_sessionidx,\n network_userid,\n geo_country,\n geo_region,\n geo_city,\n geo_zipcode,\n geo_latitude,\n geo_longitude,\n geo_region_name,\n ip_isp,\n ip_organization,\n ip_domain,\n ip_netspeed,\n page_url,\n page_title,\n page_referrer,\n page_urlscheme,\n page_urlhost,\n page_urlport,\n page_urlpath,\n page_urlquery,\n page_urlfragment,\n refr_urlscheme,\n refr_urlhost,\n refr_urlport,\n refr_urlpath,\n refr_urlquery,\n refr_urlfragment,\n refr_medium,\n refr_source,\n refr_term,\n mkt_medium,\n mkt_source,\n mkt_term,\n mkt_content,\n mkt_campaign,\n se_category,\n se_action,\n se_label,\n se_property,\n se_value,\n tr_orderid,\n tr_affiliation,\n tr_total,\n tr_tax,\n tr_shipping,\n tr_city,\n tr_state,\n tr_country,\n ti_orderid,\n ti_sku,\n ti_name,\n ti_category,\n ti_price,\n ti_quantity,\n pp_xoffset_min,\n pp_xoffset_max,\n pp_yoffset_min,\n pp_yoffset_max,\n useragent,\n br_name,\n br_family,\n br_version,\n br_type,\n br_renderengine,\n br_lang,\n br_features_pdf,\n br_features_flash,\n br_features_java,\n br_features_director,\n br_features_quicktime,\n br_features_realplayer,\n br_features_windowsmedia,\n br_features_gears,\n br_features_silverlight,\n br_cookies,\n br_colordepth,\n br_viewwidth,\n br_viewheight,\n os_name,\n os_family,\n os_manufacturer,\n os_timezone,\n dvce_type,\n dvce_ismobile,\n dvce_screenwidth,\n dvce_screenheight,\n doc_charset,\n doc_width,\n doc_height,\n tr_currency,\n tr_total_base,\n tr_tax_base,\n tr_shipping_base,\n ti_currency,\n ti_price_base,\n base_currency,\n geo_timezone,\n mkt_clickid,\n mkt_network,\n etl_tags,\n dvce_sent_tstamp,\n refr_domain_userid,\n refr_dvce_tstamp,\n domain_sessionid,\n derived_tstamp,\n event_vendor,\n event_name,\n event_format,\n event_version,\n event_fingerprint,\n true_tstamp,\n load_tstamp,\n contexts_com_snowplowanalytics_snowplow_web_page_1,\n struct(unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].basis_for_processing::STRING as basis_for_processing,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].consent_scopes::ARRAY as consent_scopes,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].consent_url::STRING as consent_url,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].consent_version::STRING as consent_version,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].domains_applied::ARRAY as domains_applied,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].event_type::STRING as event_type,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].gdpr_applies::BOOLEAN as gdpr_applies) as unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1,\n struct(unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1[0].elapsed_time::FLOAT as elapsed_time) as unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1,\n array(struct(contexts_com_iab_snowplow_spiders_and_robots_1[0].category as category,\n contexts_com_iab_snowplow_spiders_and_robots_1[0].primaryImpact as primary_impact,\n contexts_com_iab_snowplow_spiders_and_robots_1[0].reason as reason,\n contexts_com_iab_snowplow_spiders_and_robots_1[0].spiderOrRobot as spider_or_robot)) as contexts_com_iab_snowplow_spiders_and_robots_1,\n array(struct(contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].deviceFamily as device_family,\n contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].osFamily as os_family,\n contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].osMajor as os_major,\n contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].osMinor as os_minor,\n contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].osPatch as os_patch,\n contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].osPatchMinor as os_patch_minor,\n contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].osVersion as os_version,\n contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].useragentFamily as useragent_family,\n contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].useragentMajor as useragent_major,\n contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].useragentMinor as useragent_minor,\n contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].useragentPatch as useragent_patch,\n contexts_com_snowplowanalytics_snowplow_ua_parser_context_1[0].useragentVersion as useragent_version)) as contexts_com_snowplowanalytics_snowplow_ua_parser_context_1,\n array(struct(contexts_nl_basjes_yauaa_context_1[0].agentClass as agent_class,\n contexts_nl_basjes_yauaa_context_1[0].agentInformationEmail as agent_information_email,\n contexts_nl_basjes_yauaa_context_1[0].agentName as agent_name,\n contexts_nl_basjes_yauaa_context_1[0].agentNameVersion as agent_name_version,\n contexts_nl_basjes_yauaa_context_1[0].agentNameVersionMajor as agent_name_version_major,\n contexts_nl_basjes_yauaa_context_1[0].agentVersion as agent_version,\n contexts_nl_basjes_yauaa_context_1[0].agentVersionMajor as agent_version_major,\n contexts_nl_basjes_yauaa_context_1[0].deviceBrand as device_brand,\n contexts_nl_basjes_yauaa_context_1[0].deviceClass as device_class,\n contexts_nl_basjes_yauaa_context_1[0].deviceCpu as device_cpu,\n contexts_nl_basjes_yauaa_context_1[0].deviceCpuBits as device_cpu_bits,\n contexts_nl_basjes_yauaa_context_1[0].deviceName as device_name,\n contexts_nl_basjes_yauaa_context_1[0].deviceVersion as device_version,\n contexts_nl_basjes_yauaa_context_1[0].layoutEngineClass as layout_engine_class,\n contexts_nl_basjes_yauaa_context_1[0].layoutEngineName as layout_engine_name,\n contexts_nl_basjes_yauaa_context_1[0].layoutEngineNameVersion as layout_engine_name_version,\n contexts_nl_basjes_yauaa_context_1[0].layoutEngineNameVersionMajor as layout_engine_name_version_major,\n contexts_nl_basjes_yauaa_context_1[0].layoutEngineVersion as layout_engine_version,\n contexts_nl_basjes_yauaa_context_1[0].layoutEngineVersionMajor as layout_engine_version_major,\n contexts_nl_basjes_yauaa_context_1[0].networkType as network_type,\n contexts_nl_basjes_yauaa_context_1[0].operatingSystemClass as operating_system_class,\n contexts_nl_basjes_yauaa_context_1[0].operatingSystemName as operating_system_name,\n contexts_nl_basjes_yauaa_context_1[0].operatingSystemNameVersion as operating_system_name_version,\n contexts_nl_basjes_yauaa_context_1[0].operatingSystemNameVersionMajor as operating_system_name_version_major,\n contexts_nl_basjes_yauaa_context_1[0].operatingSystemVersion as operating_system_version,\n contexts_nl_basjes_yauaa_context_1[0].operatingSystemVersionBuild as operating_system_version_build,\n contexts_nl_basjes_yauaa_context_1[0].operatingSystemVersionMajor as operating_system_version_major,\n contexts_nl_basjes_yauaa_context_1[0].webviewAppName as webview_app_name,\n contexts_nl_basjes_yauaa_context_1[0].webviewAppNameVersionMajor as webview_app_name_version_major,\n contexts_nl_basjes_yauaa_context_1[0].webviewAppVersion as webview_app_version,\n contexts_nl_basjes_yauaa_context_1[0].webviewAppVersionMajor as webview_app_version_major)) as contexts_nl_basjes_yauaa_context_1,\n struct(unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0].id::string AS id,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0].name::string AS name,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0].previousId::string AS previous_id,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0].previousName::string AS previous_name,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0].previousType::string AS previous_type,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0].transitionType::string AS transition_type,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0].type::string AS type) as unstruct_event_com_snowplowanalytics_mobile_screen_view_1,\n array(struct(contexts_com_snowplowanalytics_snowplow_client_session_1[0].firstEventId::string AS first_event_id,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0].previousSessionId::string AS previous_session_id,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0].sessionId::string AS session_id,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0].sessionIndex::int AS session_index,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0].userId::string AS user_id,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0].eventIndex::int AS event_index,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0].storageMechanism::string AS storage_mechanism,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0].firstEventTimestamp::timestamp AS first_event_timestamp)) as contexts_com_snowplowanalytics_snowplow_client_session_1,\n array(struct(contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0].latitude::string AS latitude,\n contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0].longitude::string AS longitude,\n contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0].latitudeLongitudeAccuracy::string AS latitude_longitude_accuracy,\n contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0].altitude::string AS altitude,\n contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0].altitudeAccuracy::string AS altitude_accuracy,\n contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0].bearing::string AS bearing,\n contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0].speed::string AS speed,\n contexts_com_snowplowanalytics_snowplow_geolocation_context_1[0].timestamp::int AS timestamp)) as contexts_com_snowplowanalytics_snowplow_geolocation_context_1,\n array(struct(contexts_com_snowplowanalytics_mobile_application_1[0].version::string AS version,\n contexts_com_snowplowanalytics_mobile_application_1[0].build::string AS build)) as contexts_com_snowplowanalytics_mobile_application_1,\n array(struct(contexts_com_snowplowanalytics_mobile_deep_link_1[0].referrer::string AS referrer,\n contexts_com_snowplowanalytics_mobile_deep_link_1[0].url::string AS url)) as contexts_com_snowplowanalytics_mobile_deep_link_1,\n array(struct(contexts_com_snowplowanalytics_snowplow_browser_context_1[0].viewport::string AS viewport,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0].documentSize::string AS document_size,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0].resolution::string AS resolution,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0].colorDepth::int AS color_depth,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0].devicePixelRatio::double AS device_pixel_ratio,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0].cookiesEnabled::boolean AS cookies_enabled,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0].online::boolean AS online,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0].browserLanguage::string AS browser_language,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0].documentLanguage::string AS document_language,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0].webdriver::boolean AS webdriver,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0].deviceMemory::int AS device_memory,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0].hardwareConcurrency::int AS hardware_concurrency,\n contexts_com_snowplowanalytics_snowplow_browser_context_1[0].tabId::string AS tab_id)) as contexts_com_snowplowanalytics_snowplow_browser_context_1,\n array(struct(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].deviceManufacturer::string AS device_manufacturer,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].deviceModel::string AS device_model,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].osType::string AS os_type,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].osVersion::string AS os_version,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].androidIdfa::string AS android_idfa,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].appleIdfa::string AS apple_idfa,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].appleIdfv::string AS apple_idfv,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].carrier::string AS carrier,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].openIdfa::string AS open_idfa,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].networkTechnology::string AS network_technology,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].networkType::string AS network_type,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].physicalMemory::int AS physical_memory,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].systemAvailableMemory::int AS system_available_memory,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].appAvailableMemory::int AS app_available_memory,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].batteryLevel::int AS battery_level,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].batteryState::string AS battery_state,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].lowPowerMode::boolean AS low_power_mode,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].availableStorage::int AS available_storage,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].totalStorage::long AS total_storage,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].isPortrait::string AS is_portrait,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].resolution::string AS resolution,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].scale::string AS scale,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].language::string AS language,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].appSetId::string AS app_set_id,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].appSetIdScope::string AS app_set_id_scope)) as contexts_com_snowplowanalytics_snowplow_mobile_context_1,\n array(struct(contexts_com_snowplowanalytics_mobile_screen_1[0].id::string AS id,\n contexts_com_snowplowanalytics_mobile_screen_1[0].name::string AS name,\n contexts_com_snowplowanalytics_mobile_screen_1[0].activity::string AS activity,\n contexts_com_snowplowanalytics_mobile_screen_1[0].fragment::string AS fragment,\n contexts_com_snowplowanalytics_mobile_screen_1[0].topViewController::string AS top_view_controller,\n contexts_com_snowplowanalytics_mobile_screen_1[0].type::string AS type,\n contexts_com_snowplowanalytics_mobile_screen_1[0].viewController::string AS view_controller)) as contexts_com_snowplowanalytics_mobile_screen_1,\n\n struct(unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].message::string AS message,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].programmingLanguage::string AS programming_language,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].className::string AS class_name,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].exceptionName::string AS exception_name,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].isFatal::boolean AS is_fatal,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].lineNumber::double AS line_number,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].stackTrace::string AS stack_trace,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].threadId::string AS thread_id,\n unstruct_event_com_snowplowanalytics_snowplow_application_error_1[0].threadName::string AS thread_name) as unstruct_event_com_snowplowanalytics_snowplow_application_error_1\n\n from\n prep\n\n{% elif var(\"snowplow__enable_screen_summary_context\", false) %}\n\n with prep as (\n select\n *,\n\n from_json(unstruct_event_com_snowplowanalytics_mobile_screen_view_1_0_0,'array>') as unstruct_event_com_snowplowanalytics_mobile_screen_view_1,\n from_json(contexts_com_snowplowanalytics_snowplow_client_session_1_0_2,'array>') as contexts_com_snowplowanalytics_snowplow_client_session_1,\n from_json(contexts_com_snowplowanalytics_snowplow_mobile_context_1_0_3,'array>') as contexts_com_snowplowanalytics_snowplow_mobile_context_1,\n from_json(contexts_com_snowplowanalytics_mobile_application_1_0_0,'array>') as contexts_com_snowplowanalytics_mobile_application_1,\n from_json(contexts_com_snowplowanalytics_mobile_screen_1_0_0,'array>') as contexts_com_snowplowanalytics_mobile_screen_1,\n from_json(contexts_com_snowplowanalytics_mobile_screen_summary_1_0_0,'array>') as contexts_com_snowplowanalytics_mobile_screen_summary_1\n\n from {{ ref('snowplow_unified_screen_engagement_events') }}\n )\n\n select\n * except (\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1,\n contexts_com_snowplowanalytics_snowplow_client_session_1,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1,\n contexts_com_snowplowanalytics_mobile_application_1,\n contexts_com_snowplowanalytics_mobile_screen_1\n ),\n\n struct(unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0].id::string AS id,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0].name::string AS name,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0].previousId::string AS previous_id,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0].previousName::string AS previous_name,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0].previousType::string AS previous_type,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0].transitionType::string AS transition_type,\n unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0].type::string AS type) as unstruct_event_com_snowplowanalytics_mobile_screen_view_1,\n array(struct(contexts_com_snowplowanalytics_snowplow_client_session_1[0].firstEventId::string AS first_event_id,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0].previousSessionId::string AS previous_session_id,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0].sessionId::string AS session_id,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0].sessionIndex::int AS session_index,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0].userId::string AS user_id,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0].eventIndex::int AS event_index,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0].storageMechanism::string AS storage_mechanism,\n contexts_com_snowplowanalytics_snowplow_client_session_1[0].firstEventTimestamp::timestamp AS first_event_timestamp)) as contexts_com_snowplowanalytics_snowplow_client_session_1,\n array(struct(contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].deviceManufacturer::string AS device_manufacturer,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].deviceModel::string AS device_model,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].osType::string AS os_type,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].osVersion::string AS os_version,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].androidIdfa::string AS android_idfa,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].appleIdfa::string AS apple_idfa,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].appleIdfv::string AS apple_idfv,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].carrier::string AS carrier,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].openIdfa::string AS open_idfa,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].networkTechnology::string AS network_technology,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].networkType::string AS network_type,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].physicalMemory::int AS physical_memory,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].systemAvailableMemory::int AS system_available_memory,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].appAvailableMemory::int AS app_available_memory,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].batteryLevel::int AS battery_level,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].batteryState::string AS battery_state,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].lowPowerMode::boolean AS low_power_mode,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].availableStorage::int AS available_storage,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].totalStorage::long AS total_storage,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].isPortrait::string AS is_portrait,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].resolution::string AS resolution,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].scale::string AS scale,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].language::string AS language,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].appSetId::string AS app_set_id,\n contexts_com_snowplowanalytics_snowplow_mobile_context_1[0].appSetIdScope::string AS app_set_id_scope)) as contexts_com_snowplowanalytics_snowplow_mobile_context_1,\n array(struct(contexts_com_snowplowanalytics_mobile_application_1[0].version::string AS version,\n contexts_com_snowplowanalytics_mobile_application_1[0].build::string AS build)) as contexts_com_snowplowanalytics_mobile_application_1,\n array(struct(contexts_com_snowplowanalytics_mobile_screen_1[0].id::string AS id,\n contexts_com_snowplowanalytics_mobile_screen_1[0].name::string AS name,\n contexts_com_snowplowanalytics_mobile_screen_1[0].activity::string AS activity,\n contexts_com_snowplowanalytics_mobile_screen_1[0].fragment::string AS fragment,\n contexts_com_snowplowanalytics_mobile_screen_1[0].topViewController::string AS top_view_controller,\n contexts_com_snowplowanalytics_mobile_screen_1[0].type::string AS type,\n contexts_com_snowplowanalytics_mobile_screen_1[0].viewController::string AS view_controller)) as contexts_com_snowplowanalytics_mobile_screen_1\n\n from prep\n\n{% else %}\n-- page view context is given as json string in csv. Parse json\n\n with prep as (\n select\n *,\n from_json(contexts_com_snowplowanalytics_snowplow_web_page_1_0_0, 'array>') as contexts_com_snowplowanalytics_snowplow_web_page_1,\n from_json(unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1_0_0, 'array, consent_url:string, consent_version:string, domains_applied:array, event_type:string, gdpr_applies:string>>') as unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1,\n from_json(unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1_0_0, 'array>') as unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1,\n from_json(unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1_0_0, 'array>') as unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1,\n from_json(contexts_nl_basjes_yauaa_context_1_0_0, 'array>') as contexts_nl_basjes_yauaa_context_1,\n from_json(contexts_com_iab_snowplow_spiders_and_robots_1_0_0, 'array>') as contexts_com_iab_snowplow_spiders_and_robots_1\n\n from {{ ref('snowplow_unified_web_vital_events') }}\n\n )\n\nselect\n app_id,\n platform,\n etl_tstamp,\n collector_tstamp,\n dvce_created_tstamp,\n event,\n event_id,\n txn_id,\n name_tracker,\n v_tracker,\n v_collector,\n v_etl,\n user_id,\n user_ipaddress,\n user_fingerprint,\n domain_userid,\n domain_sessionidx,\n network_userid,\n geo_country,\n geo_region,\n geo_city,\n geo_zipcode,\n geo_latitude,\n geo_longitude,\n geo_region_name,\n ip_isp,\n ip_organization,\n ip_domain,\n ip_netspeed,\n page_url,\n page_title,\n page_referrer,\n page_urlscheme,\n page_urlhost,\n page_urlport,\n page_urlpath,\n page_urlquery,\n page_urlfragment,\n refr_urlscheme,\n refr_urlhost,\n refr_urlport,\n refr_urlpath,\n refr_urlquery,\n refr_urlfragment,\n refr_medium,\n refr_source,\n refr_term,\n mkt_medium,\n mkt_source,\n mkt_term,\n mkt_content,\n mkt_campaign,\n se_category,\n se_action,\n se_label,\n se_property,\n se_value,\n tr_orderid,\n tr_affiliation,\n tr_total,\n tr_tax,\n tr_shipping,\n tr_city,\n tr_state,\n tr_country,\n ti_orderid,\n ti_sku,\n ti_name,\n ti_category,\n ti_price,\n ti_quantity,\n pp_xoffset_min,\n pp_xoffset_max,\n pp_yoffset_min,\n pp_yoffset_max,\n useragent,\n br_name,\n br_family,\n br_version,\n br_type,\n br_renderengine,\n br_lang,\n br_features_pdf,\n br_features_flash,\n br_features_java,\n br_features_director,\n br_features_quicktime,\n br_features_realplayer,\n br_features_windowsmedia,\n br_features_gears,\n br_features_silverlight,\n br_cookies,\n br_colordepth,\n br_viewwidth,\n br_viewheight,\n os_name,\n os_family,\n os_manufacturer,\n os_timezone,\n dvce_type,\n dvce_ismobile,\n dvce_screenwidth,\n dvce_screenheight,\n doc_charset,\n doc_width,\n doc_height,\n tr_currency,\n tr_total_base,\n tr_tax_base,\n tr_shipping_base,\n ti_currency,\n ti_price_base,\n base_currency,\n geo_timezone,\n mkt_clickid,\n mkt_network,\n etl_tags,\n dvce_sent_tstamp,\n refr_domain_userid,\n refr_dvce_tstamp,\n domain_sessionid,\n derived_tstamp,\n event_vendor,\n event_name,\n event_format,\n event_version,\n event_fingerprint,\n true_tstamp,\n load_tstamp,\n contexts_com_snowplowanalytics_snowplow_web_page_1,\n struct(unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].basis_for_processing::STRING as basis_for_processing,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].consent_scopes::ARRAY as consent_scopes,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].consent_url::STRING as consent_url,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].consent_version::STRING as consent_version,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].domains_applied::ARRAY as domains_applied,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].event_type::STRING as event_type,\n unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1[0].gdpr_applies::BOOLEAN as gdpr_applies) as unstruct_event_com_snowplowanalytics_snowplow_consent_preferences_1,\n struct(unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1[0].elapsed_time::FLOAT as elapsed_time) as unstruct_event_com_snowplowanalytics_snowplow_cmp_visible_1,\n struct(unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].lcp::FLOAT as lcp,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].fcp::FLOAT as fcp,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].fid::FLOAT as fid,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].cls::FLOAT as cls,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].inp::FLOAT as inp,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].ttfb::FLOAT as ttfb,\n unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1[0].navigation_type::STRING as navigation_type) as unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1,\n contexts_nl_basjes_yauaa_context_1,\n contexts_com_iab_snowplow_spiders_and_robots_1,\n struct(''::STRING as basis_for_processing, ''::STRING as id, ''::STRING as name, ''::STRING as previous_id, ''::STRING as transition_type, '' as type) as unstruct_event_com_snowplowanalytics_mobile_screen_view_1\n\nfrom prep\n{% endif %}", "language": "sql", "refs": [{"name": "snowplow_unified_web_vital_events", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}, {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_events_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_events_stg.sql", "original_file_path": "models/source/default/snowplow_unified_events_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_events_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_events_stg"], "alias": "snowplow_unified_events_stg", "checksum": {"name": "sha256", "checksum": "d036851655582d96c3de1904b8f1353d5d18a0cc9a49c6088238b39f6c9376eb"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.223846, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_events_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{# CWV tests run on a different source dataset, this is an easy way to hack them together. #}\n{% if not var(\"snowplow__enable_cwv\", false) and not var(\"snowplow__enable_screen_summary_context\", false) %}\n\nselect\n *\n\nfrom {{ ref('snowplow_unified_events') }}\n\n{% elif var(\"snowplow__enable_screen_summary_context\", false) %}\n\nselect\n *\n\nfrom {{ ref('snowplow_unified_screen_engagement_events') }}\n\n{% else %}\n\nselect\n *\n\nfrom {{ ref('snowplow_unified_web_vital_events') }}\n\n\n{% endif %}", "language": "sql", "refs": [{"name": "snowplow_unified_web_vital_events", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_screen_view_event_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_screen_view_event_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_screen_view_event_stg.sql", "original_file_path": "models/source/default/snowplow_unified_screen_view_event_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_screen_view_event_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_screen_view_event_stg"], "alias": "snowplow_unified_screen_view_event_stg", "checksum": {"name": "sha256", "checksum": "6c91e027bebbac130129f8eaf6332755518a44ca1bcafd2b8a46af92ffcfc3f2"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.2207606, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_screen_view_event_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\nSelect\n root_id as root_id,\n root_tstamp::timestamp as root_tstamp,\n id,\n 'na' as name,\n 'na' as previous_id,\n 'na' as previous_name,\n 'na' as previous_type,\n 'na' as transition_type,\n 'na' as type,\n 'screen_view_events' as schema_name\n\nfrom {{ ref('snowplow_unified_screen_view_event') }}", "language": "sql", "refs": [{"name": "snowplow_unified_screen_view_event", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_screen_summary_context_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_screen_summary_context_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_screen_summary_context_stg.sql", "original_file_path": "models/source/default/snowplow_unified_screen_summary_context_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_screen_summary_context_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_screen_summary_context_stg"], "alias": "snowplow_unified_screen_summary_context_stg", "checksum": {"name": "sha256", "checksum": "46dc753612e359079db96565caddee3f9932fb94f4099dfe987bcb2712ad63f3"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.2330117, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_screen_summary_context_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{% set col = 'ev.contexts_com_snowplowanalytics_mobile_screen_summary_1_0_0' %}\n\nSelect\n ev.event_id as root_id,\n ev.collector_tstamp::timestamp as root_tstamp,\n\n {% for (att, type) in [\n ('foreground_sec', 'float'),\n ('background_sec', 'float'),\n ('last_item_index', 'int'),\n ('items_count', 'int'),\n ('max_x_offset', 'int'),\n ('min_x_offset', 'int'),\n ('max_y_offset', 'int'),\n ('min_y_offset', 'int'),\n ('content_height', 'int'),\n ('content_width', 'int'),\n ] %}\n {% if target.type == 'postgres' -%}\n (\n {{ col }}::json->0 ->>'{{ att }}'\n )::{{ type}} as {{ att }},\n {%- else -%}\n case when {{ col }} like '%{{ att }}%' then\n JSON_EXTRACT_PATH_TEXT(\n JSON_EXTRACT_ARRAY_ELEMENT_TEXT(\n {{ col }},\n 0\n ),\n '{{ att }}'\n )::{{ type }}\n end as {{ att }},\n {%- endif %}\n {% endfor %}\n\n 'screen_summary' as schema_name\n\nfrom {{ ref('snowplow_unified_screen_engagement_events') }} as ev", "language": "sql", "refs": [{"name": "snowplow_unified_screen_engagement_events", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_yauaa_context_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_yauaa_context_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_yauaa_context_stg.sql", "original_file_path": "models/source/default/snowplow_unified_yauaa_context_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_yauaa_context_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_yauaa_context_stg"], "alias": "snowplow_unified_yauaa_context_stg", "checksum": {"name": "sha256", "checksum": "11a39e2987941e72a1a08e9707f70da49dcac0d3c43355414833c6753368985b"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.3050675, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_yauaa_context_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\nselect\n root_id,\n root_tstamp::timestamp,\n 'yauaa' as schema_name,\n agentClass::varchar as agent_class,\n agentInformationEmail::varchar as agent_information_email,\n agentName::varchar as agent_name,\n agentNameVersion::varchar as agent_name_version,\n agentNameVersionMajor::varchar as agent_name_version_major,\n agentVersion::varchar as agent_version,\n agentVersionMajor::varchar as agent_version_major,\n deviceBrand::varchar as device_brand,\n deviceClass::varchar as device_class,\n deviceCpu::varchar as device_cpu,\n deviceCpuBits::varchar as device_cpu_bits,\n deviceName::varchar as device_name,\n deviceVersion::varchar as device_version,\n layoutEngineClass::varchar as layout_engine_class,\n layoutEngineName::varchar as layout_engine_name,\n layoutEngineNameVersion::varchar as layout_engine_name_version,\n layoutEngineNameVersionMajor::varchar as layout_engine_name_version_major,\n layoutEngineVersion::varchar as layout_engine_version,\n layoutEngineVersionMajor::varchar as layout_engine_version_major,\n networkType::varchar as network_type,\n operatingSystemClass::varchar as operating_system_class,\n operatingSystemName::varchar as operating_system_name,\n operatingSystemNameVersion::varchar as operating_system_name_version,\n operatingSystemNameVersionMajor::varchar as operating_system_name_version_major,\n operatingSystemVersion::varchar as operating_system_version,\n operatingSystemVersionBuild::varchar as operating_system_version_build,\n operatingSystemVersionMajor::varchar as operating_system_version_major,\n webviewAppName::varchar as webview_app_name,\n webviewAppNameVersionMajor::varchar as webview_app_name_version_major,\n webviewAppVersion::varchar as webview_app_version,\n webviewAppVersionMajor::varchar as webview_app_version_major\n\nfrom {{ ref('snowplow_unified_yauaa_context') }}", "language": "sql", "refs": [{"name": "snowplow_unified_yauaa_context", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_page_view_context_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_page_view_context_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_page_view_context_stg.sql", "original_file_path": "models/source/default/snowplow_unified_page_view_context_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_page_view_context_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_page_view_context_stg"], "alias": "snowplow_unified_page_view_context_stg", "checksum": {"name": "sha256", "checksum": "b87569fd27cd318c19d5c5c565be37aa74535bdf91b8e77ef7442c2565ae4c1f"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.3083458, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_page_view_context_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\n{# CWV tests run on a different source dataset, this is an easy way to hack them together. #}\n{% if not var(\"snowplow__enable_cwv\", false) %}\n\n-- test dataset includes page_view_id as part of events table.\n-- RS and PG events tables are federated so split out page_view_id into its own table\n\nwith prep as (\nselect\n event_id as root_id,\n collector_tstamp::timestamp as root_tstamp,\n split_part(split_part(contexts_com_snowplowanalytics_snowplow_web_page_1_0_0,'[{\"id\":\"', 2), '\"}]', 1) as id -- test dataset uses json format. Extract.\n\nfrom {{ ref('snowplow_unified_events') }}\n)\n\nselect\n root_id,\n root_tstamp,\n 'page_view_context' as schema_name,\n case when id = 'null' or id = '' then null else id end as id\n\nfrom prep\n\n\n{% else %}\n\nwith prep as (\nselect\n event_id as root_id,\n collector_tstamp::timestamp as root_tstamp,\n split_part(split_part(contexts_com_snowplowanalytics_snowplow_web_page_1_0_0,'[{\"id\":\"', 2), '\"}]', 1) as id -- test dataset uses json format. Extract.\n\nfrom {{ ref('snowplow_unified_web_vital_events') }}\n)\n\nselect\n root_id,\n root_tstamp,\n 'page_view_context' as schema_name,\n case when id = 'null' or id = '' then null else id end as id\n\nfrom prep\n\n{% endif %}", "language": "sql", "refs": [{"name": "snowplow_unified_web_vital_events", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_cwv_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_cwv_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_cwv_stg.sql", "original_file_path": "models/source/default/snowplow_unified_cwv_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_cwv_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_cwv_stg"], "alias": "snowplow_unified_cwv_stg", "checksum": {"name": "sha256", "checksum": "a584095814ed637bfa1c935ffa27077a0e4fc913ad3fe865fc57807ec85705d0"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.316126, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_cwv_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\nselect\n cls,\n fcp,\n fid,\n inp,\n lcp,\n navigation_type,\n ttfb,\n root_tstamp::timestamp,\n root_id,\n schema_name\n\nfrom {{ ref('snowplow_unified_cwv') }}", "language": "sql", "refs": [{"name": "snowplow_unified_cwv", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_geolocation_context_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_geolocation_context_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_geolocation_context_stg.sql", "original_file_path": "models/source/default/snowplow_unified_geolocation_context_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_geolocation_context_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_geolocation_context_stg"], "alias": "snowplow_unified_geolocation_context_stg", "checksum": {"name": "sha256", "checksum": "92eb242d00f7d0c7a9aa8afedebf735e22d8b48cf48db7cfd521f16c3d381bc4"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.3192768, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_geolocation_context_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n select\n root_id,\n root_tstamp::timestamp as root_tstamp,\n 'geolocation_context' as schema_name,\n latitude::float as latitude,\n longitude::float as longitude,\n latitude_longitude_accuracy::float as latitude_longitude_accuracy,\n altitude::float as altitude,\n altitude_accuracy::float as altitude_accuracy,\n bearing::float as bearing,\n speed::float as speed\n\nfrom {{ ref('snowplow_unified_geolocation_context') }}", "language": "sql", "refs": [{"name": "snowplow_unified_geolocation_context", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_screen_context_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_screen_context_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_screen_context_stg.sql", "original_file_path": "models/source/default/snowplow_unified_screen_context_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_screen_context_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_screen_context_stg"], "alias": "snowplow_unified_screen_context_stg", "checksum": {"name": "sha256", "checksum": "64c9e89e9d3e76d0f80205a7a2db7dbc0e3ed4a75ca7739d2137aba0e793546a"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.3223681, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_screen_context_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\nwith events as (\n select event_id, collector_tstamp, platform, contexts_com_snowplowanalytics_mobile_screen_1_0_0\n from {{ ref('snowplow_unified_events') }}\n union all\n select event_id, collector_tstamp, platform, contexts_com_snowplowanalytics_mobile_screen_1_0_0\n from {{ ref('snowplow_unified_screen_engagement_events') }}\n)\n\nselect\n ev.event_id as root_id,\n ev.collector_tstamp::timestamp as root_tstamp,\n case when ev.platform = 'web' then null else\n {% if target.type == 'postgres' -%}\n (ev.contexts_com_snowplowanalytics_mobile_screen_1_0_0::json->0 ->>'id')\n {%- else -%}\n JSON_EXTRACT_PATH_TEXT(JSON_EXTRACT_ARRAY_ELEMENT_TEXT(contexts_com_snowplowanalytics_mobile_screen_1_0_0, 0), 'id')\n {%- endif %}\n end as id,\n case when ev.platform = 'web' then null else 'Add New Item' end as name,\n case when ev.platform = 'web' then null else 'na' end as activity,\n case when ev.platform = 'web' then null else 'na' end as type,\n case when ev.platform = 'web' then null else 'na' end as fragment,\n case when ev.platform = 'web' then null else 'na' end as top_view_controller,\n case when ev.platform = 'web' then null else 'na' end as view_controller,\n 'screen_context' as schema_name\n\nfrom events as ev", "language": "sql", "refs": [{"name": "snowplow_unified_events", "package": null, "version": null}, {"name": "snowplow_unified_screen_engagement_events", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_ua_context_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_ua_context_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_ua_context_stg.sql", "original_file_path": "models/source/default/snowplow_unified_ua_context_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_ua_context_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_ua_context_stg"], "alias": "snowplow_unified_ua_context_stg", "checksum": {"name": "sha256", "checksum": "526eb1231b1a14e7356c242bbd9dfb80e1c09a859e3fdb1ba5ae6bb3a38f3083"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.3302157, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_ua_context_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\nselect\n root_id,\n root_tstamp::timestamp,\n 'ua_parser' as schema_name,\n deviceFamily::varchar as device_family,\n osFamily::varchar as os_family,\n osMajor::varchar as os_major,\n osMinor::varchar as os_minor,\n osPatch::varchar as os_patch,\n osPatchMinor::varchar as os_patch_minor,\n osVersion::varchar as os_version,\n useragentFamily::varchar as useragent_family,\n useragentMajor::varchar as useragent_major,\n useragentMinor::varchar as useragent_minor,\n useragentPatch::varchar as useragent_patch,\n useragentVersion::varchar as useragent_version\n\nfrom {{ ref('snowplow_unified_ua_context') }}", "language": "sql", "refs": [{"name": "snowplow_unified_ua_context", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_session_context_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_session_context_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_session_context_stg.sql", "original_file_path": "models/source/default/snowplow_unified_session_context_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_session_context_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_session_context_stg"], "alias": "snowplow_unified_session_context_stg", "checksum": {"name": "sha256", "checksum": "f956a78620496ff1964f35da8795e2370c32da0982f2a2c9f5feccf43fbc36d0"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.3333306, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_session_context_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\nselect\n root_id,\n root_tstamp::timestamp as root_tstamp,\n 'session_context' as schema_name,\n session_index::int as session_index,\n session_id,\n previous_session_id,\n user_id,\n first_event_id,\n event_index::int as event_index,\n storage_mechanism,\n cast('2021-03-03 08:14:01.599' as timestamp) as first_event_timestamp\n\nfrom {{ ref('snowplow_unified_session_context') }}", "language": "sql", "refs": [{"name": "snowplow_unified_session_context", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_consent_preferences_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_preferences_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_consent_preferences_stg.sql", "original_file_path": "models/source/default/snowplow_unified_consent_preferences_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_preferences_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_consent_preferences_stg"], "alias": "snowplow_unified_consent_preferences_stg", "checksum": {"name": "sha256", "checksum": "25c82d0cc138f4013007ad86591101c6e152d9451543d9aa8c4949f44860fbbd"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.3366218, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_preferences_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\nselect\n root_id,\n root_tstamp::timestamp as root_tstamp,\n basis_for_processing,\n consent_version,\n consent_scopes,\n domains_applied,\n consent_url,\n event_type,\n gdpr_applies::boolean as gdpr_applies,\n 'consent_preferences' as schema_name\n\nfrom {{ ref('snowplow_unified_consent_preferences') }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_preferences", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_app_error_event_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_app_error_event_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_app_error_event_stg.sql", "original_file_path": "models/source/default/snowplow_unified_app_error_event_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_app_error_event_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_app_error_event_stg"], "alias": "snowplow_unified_app_error_event_stg", "checksum": {"name": "sha256", "checksum": "031a6e713e7b1217936d481cba2bf9803108e6574d16625290fe691349a22e72"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.3396688, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_app_error_event_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\nSelect\n event_id as root_id,\n collector_tstamp::timestamp as root_tstamp,\n case when platform = 'web' then null else 'na' end AS message,\n case when platform = 'web' then null else 'na' end AS programming_language,\n case when platform = 'web' then null else 'na' end AS class_name,\n case when platform = 'web' then null else 'na' end AS exception_name,\n case when platform = 'web' then null else false::BOOLEAN end AS is_fatal,\n case when platform = 'web' then null else 1::INT end AS line_number,\n case when platform = 'web' then null else 'na' end AS stack_trace,\n case when platform = 'web' then null else 1::INT end AS thread_id,\n case when platform = 'web' then null else 'na' end AS thread_name,\n 'app_error_events' as schema_name\n\nfrom {{ ref('snowplow_unified_events') }}", "language": "sql", "refs": [{"name": "snowplow_unified_events", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_mobile_context_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_mobile_context_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_mobile_context_stg.sql", "original_file_path": "models/source/default/snowplow_unified_mobile_context_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_mobile_context_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_mobile_context_stg"], "alias": "snowplow_unified_mobile_context_stg", "checksum": {"name": "sha256", "checksum": "a835255112f486af33bd90b46877dbb70405cc7fec482f03689ad0c3f9eada4a"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.3427339, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_mobile_context_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\nSelect\n\n event_id as root_id,\n collector_tstamp::timestamp as root_tstamp,\n case when platform = 'web' then null else 'Samsung' end as device_manufacturer,\n case when platform = 'web' then null else 'SM-N960N Galaxy Note9 TD-LTE KR 128GB' end as device_model,\n case when platform = 'web' then null else 'Google Android 8.1 (Oreo)' end as os_type,\n case when platform = 'web' then null else '8.1' end as os_version,\n case when platform = 'web' then null else '00000000-0000-0000-0000-000000000000' end as android_idfa,\n case when platform = 'web' then null else 'na' end as apple_idfa,\n case when platform = 'web' then null else 'na' end as apple_idfv,\n case when platform = 'web' then null else 'Unknown' end as carrier,\n case when platform = 'web' then null else 'na' end as open_idfa,\n case when platform = 'web' then null else '2G' end as network_technology,\n case when platform = 'web' then null else 'wifi' end as network_type,\n case when platform = 'web' then null else cast(1 as {{ type_int() }}) end as physical_memory,\n case when platform = 'web' then null else cast(1 as {{ type_int() }}) end as system_available_memory,\n case when platform = 'web' then null else cast(1 as {{ type_int() }}) end as app_available_memory,\n case when platform = 'web' then null else cast(42 as {{ type_int() }}) end as battery_level,\n case when platform = 'web' then null else 'charging' end as battery_state,\n case when platform = 'web' then null else cast('true' as {{ type_boolean() }}) end as low_power_mode,\n case when platform = 'web' then null else cast(1 as {{ type_int() }}) end as available_storage,\n case when platform = 'web' then null else 128000000000 end as total_storage,\n case when platform = 'web' then null else cast('false' as {{ type_boolean() }}) end as is_portrait,\n case when platform = 'web' then null else '1440x2960' end as resolution,\n case when platform = 'web' then null else cast(1 as {{ type_float() }}) end as scale,\n case when platform = 'web' then null else 'na' end as language,\n case when platform = 'web' then null else 'na' end as app_set_id,\n case when platform = 'web' then null else 'na' end as app_set_id_scope,\n 'mobile_context' as schema_name\n\nfrom {{ ref('snowplow_unified_events') }}", "language": "sql", "refs": [{"name": "snowplow_unified_events", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_boolean", "macro.dbt.type_float"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_spider_context_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_spider_context_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_spider_context_stg.sql", "original_file_path": "models/source/default/snowplow_unified_spider_context_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_spider_context_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_spider_context_stg"], "alias": "snowplow_unified_spider_context_stg", "checksum": {"name": "sha256", "checksum": "4b975ac02bf27d0c43be4e4f4cd24a9aa60ed939507b919e6b2ec07cf5ed1ec3"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.3561594, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_spider_context_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\nselect\n root_id,\n root_tstamp::timestamp,\n category,\n primaryImpact as primary_impact,\n reason,\n spiderOrRobot::boolean as spider_or_robot,\n schema_name\n\nfrom {{ ref('snowplow_unified_spider_context') }}", "language": "sql", "refs": [{"name": "snowplow_unified_spider_context", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_deep_link_context_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_deep_link_context_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_deep_link_context_stg.sql", "original_file_path": "models/source/default/snowplow_unified_deep_link_context_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_deep_link_context_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_deep_link_context_stg"], "alias": "snowplow_unified_deep_link_context_stg", "checksum": {"name": "sha256", "checksum": "075f0f41e82127c7d01e9610a0678c12164eb29038dde82da087a81e2a04c642"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.3594298, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_deep_link_context_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\nSelect\n\n event_id as root_id,\n collector_tstamp::timestamp as root_tstamp,\n case when platform = 'web' then null else cast('na' as {{ type_string() }}) end as url,\n case when platform = 'web' then null else cast('na' as {{ type_string() }}) end as referrer,\n 'deep_link_context' as schema_name\n\nfrom {{ ref('snowplow_unified_events') }}", "language": "sql", "refs": [{"name": "snowplow_unified_events", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_app_context_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_app_context_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_app_context_stg.sql", "original_file_path": "models/source/default/snowplow_unified_app_context_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_app_context_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_app_context_stg"], "alias": "snowplow_unified_app_context_stg", "checksum": {"name": "sha256", "checksum": "724518ede1ec1bc916461aed16d8a95ade8254882a30e4a13708e896dd4977bf"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.3677318, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_app_context_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\nSelect\n event_id as root_id,\n collector_tstamp::timestamp as root_tstamp,\n case when platform = 'web' then null else cast('na' as {{ type_string() }}) end as build,\n case when platform = 'web' then null else cast('na' as {{ type_string() }}) end as version,\n 'app_context' as schema_name\n\nfrom {{ ref('snowplow_unified_events') }}", "language": "sql", "refs": [{"name": "snowplow_unified_events", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_visible_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_consent_cmp_visible_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_consent_cmp_visible_stg.sql", "original_file_path": "models/source/default/snowplow_unified_consent_cmp_visible_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_visible_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_consent_cmp_visible_stg"], "alias": "snowplow_unified_consent_cmp_visible_stg", "checksum": {"name": "sha256", "checksum": "595ed0ec57fe0b1278daf0e9338a76a438450dab6545ab719102f9f73885806a"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.3755474, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_consent_cmp_visible_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n\nselect\n root_id,\n root_tstamp::timestamp,\n elapsed_time,\n 'cmp_visible' as schema_name\n\nfrom {{ ref('snowplow_unified_consent_cmp_visible') }}", "language": "sql", "refs": [{"name": "snowplow_unified_consent_cmp_visible", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified_integration_tests.snowplow_unified_browser_context_stg": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_browser_context_stg", "resource_type": "model", "package_name": "snowplow_unified_integration_tests", "path": "source/default/snowplow_unified_browser_context_stg.sql", "original_file_path": "models/source/default/snowplow_unified_browser_context_stg.sql", "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_browser_context_stg", "fqn": ["snowplow_unified_integration_tests", "source", "default", "snowplow_unified_browser_context_stg"], "alias": "snowplow_unified_browser_context_stg", "checksum": {"name": "sha256", "checksum": "eb6cec754b09c1cbaf7cab95faecdb0a9783d70d9de5c3668aecc262932ec30c"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "bind": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"bind": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.3786793, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_browser_context_stg", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\nSelect\n\n event_id as root_id,\n collector_tstamp::timestamp as root_tstamp,\n case when platform = 'web' then cast('na' as {{ type_string() }}) else null end as viewport,\n case when platform = 'web' then cast('na' as {{ type_string() }}) else null end as document_size,\n case when platform = 'web' then cast('na' as {{ type_string() }}) else null end as resolution,\n case when platform = 'web' then cast(1 as {{ type_int() }}) else null end as color_depth,\n case when platform = 'web' then cast(1 as {{ type_int() }}) else null end as device_pixel_ratio,\n case when platform = 'web' then cast(1 as {{ type_boolean() }}) else null end as cookies_enabled,\n case when platform = 'web' then cast(1 as {{ type_boolean() }}) else null end as online,\n case when platform = 'web' then cast('na' as {{ type_string() }}) else null end as browser_language,\n case when platform = 'web' then cast('na' as {{ type_string() }}) else null end as document_language,\n case when platform = 'web' then cast(1 as {{ type_boolean() }}) else null end as webdriver,\n case when platform = 'web' then cast(1 as {{ type_int() }}) else null end as device_memory,\n case when platform = 'web' then cast(1 as {{ type_int() }}) else null end as hardware_concurrency,\n case when platform = 'web' then cast('na' as {{ type_string() }}) else null end as tab_id,\n 'browser_context' as schema_name\n\nfrom {{ ref('snowplow_unified_events') }}", "language": "sql", "refs": [{"name": "snowplow_unified_events", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_boolean"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_web_vital_measurements_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/bigquery/snowplow_unified_web_vital_measurements_expected.csv", "original_file_path": "data/expected/bigquery/snowplow_unified_web_vital_measurements_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "bigquery", "snowplow_unified_web_vital_measurements_expected"], "alias": "snowplow_unified_web_vital_measurements_expected", "checksum": {"name": "sha256", "checksum": "2b5c0e34e35d2f31a35f00a70bb960c4e29b9f7686ba04252c101bdf8d2702f8"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type == 'bigquery' | as_bool() }}"}, "created_at": 1706612341.4633443, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_web_vital_measurements_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}, "defer_relation": null}, {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_web_vital_measurements_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/databricks/snowplow_unified_web_vital_measurements_expected.csv", "original_file_path": "data/expected/databricks/snowplow_unified_web_vital_measurements_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "databricks", "snowplow_unified_web_vital_measurements_expected"], "alias": "snowplow_unified_web_vital_measurements_expected", "checksum": {"name": "sha256", "checksum": "020660c308ee72500c7eddeb92b19ba6867cc7de8e25c14c78587aa8c40c55b0"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"lcp_75p": "decimal(19,3)", "fid_75p": "decimal(19,3)", "cls_75p": "decimal(19,3)", "ttfb_75p": "decimal(19,3)"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['databricks', 'spark'] | as_bool() }}", "column_types": {"lcp_75p": "decimal(19,3)", "fid_75p": "decimal(19,3)", "cls_75p": "decimal(19,3)", "ttfb_75p": "decimal(19,3)"}}, "created_at": 1706612341.4699209, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_web_vital_measurements_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}, "defer_relation": null}, {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_web_vital_measurements_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/default/snowplow_unified_web_vital_measurements_expected.csv", "original_file_path": "data/expected/default/snowplow_unified_web_vital_measurements_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "default", "snowplow_unified_web_vital_measurements_expected"], "alias": "snowplow_unified_web_vital_measurements_expected", "checksum": {"name": "sha256", "checksum": "c99684f51fd23ba7dc6ad0ae8d643f2899144769d6cfef7549ba3d892168d5bb"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.4767551, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_web_vital_measurements_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}, "defer_relation": null}], "seed.snowplow_unified_integration_tests.snowplow_unified_sessions_expected": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_sessions_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/bigquery/snowplow_unified_sessions_expected.csv", "original_file_path": "data/expected/bigquery/snowplow_unified_sessions_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_sessions_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "bigquery", "snowplow_unified_sessions_expected"], "alias": "snowplow_unified_sessions_expected", "checksum": {"name": "sha256", "checksum": "ec14ed0c41a1fc5178d835cf317c28c4bfea8127802479913afa8ca1834bb752"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"app_id": "string", "start_tstamp": "timestamp", "end_tstamp": "timestamp", "first_page_urlfragment": "string", "last_page_urlfragment": "string", "refr_urlquery": "string", "refr_urlfragment": "string", "refr_medium": "string", "refr_source": "string", "refr_term": "string", "mkt_term": "string", "mkt_content": "string", "br_renderengine": "string", "category": "string", "primary_impact": "string", "reason": "string", "spider_or_robot": "boolean", "useragent_family": "string", "useragent_major": "string", "useragent_minor": "string", "useragent_patch": "string", "useragent_version": "string", "os_family": "string", "os_major": "string", "os_minor": "string", "os_patch": "string", "os_patch_minor": "string", "os_version": "string", "device_family": "string", "device_class": "string", "agent_class": "string", "agent_name": "string", "agent_name_version": "string", "agent_name_version_major": "string", "agent_version": "string", "agent_version_major": "string", "device_brand": "string", "device_name": "string", "device_version": "string", "layout_engine_class": "string", "layout_engine_name": "string", "layout_engine_name_version": "string", "layout_engine_name_version_major": "string", "layout_engine_version": "string", "layout_engine_version_major": "string", "operating_system_class": "string", "operating_system_name": "string", "operating_system_name_version": "string", "operating_system_version": "string", "cv_view_page_volume": "integer", "cv_view_page_total": "float", "cv_view_page_first_conversion": "timestamp", "cv_view_page_converted": "boolean", "mobile__total_storage": "integer", "mobile__os_version": "varchar", "mobile__available_storage": "integer", "yauaa__agent_version": "varchar", "yauaa__agent_version_major": "varchar", "yauaa__layout_engine_version": "varchar", "yauaa__layout_engine_version_major": "varchar", "ua__useragent_family": "varchar", "ua__useragent_major": "varchar", "ua__useragent_minor": "varchar", "ua__useragent_patch": "varchar", "ua__useragent_version": "varchar", "ua__os_family": "varchar", "ua__os_major": "varchar", "ua__os_minor": "varchar", "ua__os_patch": "varchar", "ua__os_patch_minor": "varchar", "ua__os_version": "varchar", "ua__device_family": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type == 'bigquery' | as_bool() }}", "column_types": {"app_id": "string", "start_tstamp": "timestamp", "end_tstamp": "timestamp", "first_page_urlfragment": "string", "last_page_urlfragment": "string", "refr_urlquery": "string", "refr_urlfragment": "string", "refr_medium": "string", "refr_source": "string", "refr_term": "string", "mkt_term": "string", "mkt_content": "string", "br_renderengine": "string", "category": "string", "primary_impact": "string", "reason": "string", "spider_or_robot": "boolean", "useragent_family": "string", "useragent_major": "string", "useragent_minor": "string", "useragent_patch": "string", "useragent_version": "string", "os_family": "string", "os_major": "string", "os_minor": "string", "os_patch": "string", "os_patch_minor": "string", "os_version": "string", "device_family": "string", "device_class": "string", "agent_class": "string", "agent_name": "string", "agent_name_version": "string", "agent_name_version_major": "string", "agent_version": "string", "agent_version_major": "string", "device_brand": "string", "device_name": "string", "device_version": "string", "layout_engine_class": "string", "layout_engine_name": "string", "layout_engine_name_version": "string", "layout_engine_name_version_major": "string", "layout_engine_version": "string", "layout_engine_version_major": "string", "operating_system_class": "string", "operating_system_name": "string", "operating_system_name_version": "string", "operating_system_version": "string", "cv_view_page_volume": "integer", "cv_view_page_total": "float", "cv_view_page_first_conversion": "timestamp", "cv_view_page_converted": "boolean", "mobile__total_storage": "{{ 'bigint' if target.type in ['postgres', 'spark', 'databricks', 'redshift'] else 'integer' }}", "mobile__os_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mobile__available_storage": "{{ 'bigint' if target.type in ['postgres', 'spark', 'databricks', 'redshift'] else 'integer' }}", "yauaa__agent_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "yauaa__agent_version_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "yauaa__layout_engine_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "yauaa__layout_engine_version_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_minor": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_patch": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_minor": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_patch": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_patch_minor": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__device_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}"}}, "created_at": 1706612341.4665816, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_sessions_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}, "defer_relation": null}, {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_sessions_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/databricks/snowplow_unified_sessions_expected.csv", "original_file_path": "data/expected/databricks/snowplow_unified_sessions_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_sessions_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "databricks", "snowplow_unified_sessions_expected"], "alias": "snowplow_unified_sessions_expected", "checksum": {"name": "sha256", "checksum": "2a230b409837b79b8ba40250fab03251611bfba267e0db9321bd00726d03d6ae"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"app_id": "string", "start_tstamp": "timestamp", "end_tstamp": "timestamp", "first_page_urlfragment": "string", "last_page_urlfragment": "string", "refr_urlquery": "string", "refr_urlfragment": "string", "refr_medium": "string", "refr_source": "string", "refr_term": "string", "mkt_term": "string", "mkt_content": "string", "br_renderengine": "string", "category": "string", "primary_impact": "string", "reason": "string", "spider_or_robot": "boolean", "useragent_family": "string", "useragent_major": "string", "useragent_minor": "string", "useragent_patch": "string", "useragent_version": "string", "os_family": "string", "os_major": "string", "os_minor": "string", "os_patch": "string", "os_patch_minor": "string", "os_version": "string", "device_family": "string", "device_class": "string", "agent_class": "string", "agent_name": "string", "agent_name_version": "string", "agent_name_version_major": "string", "agent_version": "string", "agent_version_major": "string", "device_brand": "string", "device_name": "string", "device_version": "string", "layout_engine_class": "string", "layout_engine_name": "string", "layout_engine_name_version": "string", "layout_engine_name_version_major": "string", "layout_engine_version": "string", "layout_engine_version_major": "string", "operating_system_class": "string", "operating_system_name": "string", "operating_system_name_version": "string", "operating_system_version": "string", "cv_view_page_volume": "integer", "cv_view_page_total": "decimal(9, 1)", "cv_view_page_first_conversion": "timestamp", "cv_view_page_converted": "boolean", "mobile__os_version": "varchar", "mobile__available_storage": "integer", "yauaa__agent_version": "varchar", "yauaa__agent_version_major": "varchar", "yauaa__layout_engine_version": "varchar", "yauaa__layout_engine_version_major": "varchar", "ua__useragent_family": "varchar", "ua__useragent_major": "varchar", "ua__useragent_minor": "varchar", "ua__useragent_patch": "varchar", "ua__useragent_version": "varchar", "ua__os_family": "varchar", "ua__os_major": "varchar", "ua__os_minor": "varchar", "ua__os_patch": "varchar", "ua__os_patch_minor": "varchar", "ua__os_version": "varchar", "ua__device_family": "varchar", "geo_longitude": "float", "geo_latitude": "float", "geo__altitude": "float", "geo__altitude_accuracy": "float", "geo__bearing": "float", "geo__latitude": "float", "geo__latitude_longitude_accuracy": "float", "geo__longitude": "float", "geo__speed": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['databricks', 'spark'] | as_bool() }}", "column_types": {"app_id": "string", "start_tstamp": "timestamp", "end_tstamp": "timestamp", "first_page_urlfragment": "string", "last_page_urlfragment": "string", "refr_urlquery": "string", "refr_urlfragment": "string", "refr_medium": "string", "refr_source": "string", "refr_term": "string", "mkt_term": "string", "mkt_content": "string", "br_renderengine": "string", "category": "string", "primary_impact": "string", "reason": "string", "spider_or_robot": "boolean", "useragent_family": "string", "useragent_major": "string", "useragent_minor": "string", "useragent_patch": "string", "useragent_version": "string", "os_family": "string", "os_major": "string", "os_minor": "string", "os_patch": "string", "os_patch_minor": "string", "os_version": "string", "device_family": "string", "device_class": "string", "agent_class": "string", "agent_name": "string", "agent_name_version": "string", "agent_name_version_major": "string", "agent_version": "string", "agent_version_major": "string", "device_brand": "string", "device_name": "string", "device_version": "string", "layout_engine_class": "string", "layout_engine_name": "string", "layout_engine_name_version": "string", "layout_engine_name_version_major": "string", "layout_engine_version": "string", "layout_engine_version_major": "string", "operating_system_class": "string", "operating_system_name": "string", "operating_system_name_version": "string", "operating_system_version": "string", "cv_view_page_volume": "integer", "cv_view_page_total": "decimal(9, 1)", "cv_view_page_first_conversion": "timestamp", "cv_view_page_converted": "boolean", "mobile__os_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mobile__available_storage": "{{ 'bigint' if target.type in ['postgres', 'spark', 'databricks', 'redshift'] else 'integer' }}", "yauaa__agent_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "yauaa__agent_version_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "yauaa__layout_engine_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "yauaa__layout_engine_version_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_minor": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_patch": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_minor": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_patch": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_patch_minor": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__device_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "geo_longitude": "{{ 'double' if target.type in ['databricks', 'spark'] else 'float' }}", "geo_latitude": "{{ 'double' if target.type in ['databricks', 'spark'] else 'float' }}", "geo__altitude": "{{ 'double' if target.type in ['spark', 'databricks'] else 'float' }}", "geo__altitude_accuracy": "{{ 'double' if target.type in ['spark', 'databricks'] else 'float' }}", "geo__bearing": "{{ 'double' if target.type in ['spark', 'databricks'] else 'float' }}", "geo__latitude": "{{ 'double' if target.type in ['spark', 'databricks'] else 'float' }}", "geo__latitude_longitude_accuracy": "{{ 'double' if target.type in ['spark', 'databricks'] else 'float' }}", "geo__longitude": "{{ 'double' if target.type in ['spark', 'databricks'] else 'float' }}", "geo__speed": "{{ 'double' if target.type in ['spark', 'databricks'] else 'float' }}"}}, "created_at": 1706612341.4731824, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_sessions_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}, "defer_relation": null}, {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_sessions_expected", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "expected/default/snowplow_unified_sessions_expected.csv", "original_file_path": "data/expected/default/snowplow_unified_sessions_expected.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_sessions_expected", "fqn": ["snowplow_unified_integration_tests", "expected", "default", "snowplow_unified_sessions_expected"], "alias": "snowplow_unified_sessions_expected", "checksum": {"name": "sha256", "checksum": "3d299f5ea0952b781ad61d359db6b22763e240ed149ce23e6d03a470a40061fc"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"app_id": "varchar", "start_tstamp": "timestamp", "end_tstamp": "timestamp", "first_page_urlfragment": "varchar", "last_page_urlfragment": "varchar", "refr_urlquery": "varchar", "refr_urlfragment": "varchar", "refr_medium": "varchar", "refr_source": "varchar", "refr_term": "varchar", "mkt_term": "varchar", "mkt_content": "varchar", "last_page_urlquery": "varchar", "br_renderengine": "varchar", "category": "varchar", "primary_impact": "varchar", "reason": "varchar", "spider_or_robot": "boolean", "useragent_family": "varchar", "useragent_major": "varchar", "useragent_minor": "varchar", "useragent_patch": "varchar", "useragent_version": "varchar", "os_family": "varchar", "os_major": "varchar", "os_minor": "varchar", "os_patch": "varchar", "os_patch_minor": "varchar", "os_version": "varchar", "device_family": "varchar", "device_class": "varchar", "agent_class": "varchar", "agent_name": "varchar", "agent_name_version": "varchar", "agent_name_version_major": "varchar", "agent_version": "varchar", "agent_version_major": "varchar", "device_brand": "varchar", "device_name": "varchar", "device_version": "varchar", "layout_engine_class": "varchar", "layout_engine_name": "varchar", "layout_engine_name_version": "varchar", "layout_engine_name_version_major": "varchar", "layout_engine_version": "varchar", "layout_engine_version_major": "varchar", "operating_system_class": "varchar", "operating_system_name": "varchar", "operating_system_name_version": "varchar", "operating_system_version": "varchar", "cv_view_page_first_conversion": "timestamp", "mobile__total_storage": "integer", "mobile__os_version": "varchar", "mobile__available_storage": "integer", "yauaa__agent_version": "varchar", "yauaa__agent_version_major": "varchar", "yauaa__layout_engine_version": "varchar", "yauaa__layout_engine_version_major": "varchar", "ua__useragent_family": "varchar", "ua__useragent_major": "varchar", "ua__useragent_minor": "varchar", "ua__useragent_patch": "varchar", "ua__useragent_version": "varchar", "ua__os_family": "varchar", "ua__os_major": "varchar", "ua__os_minor": "varchar", "ua__os_patch": "varchar", "ua__os_patch_minor": "varchar", "ua__os_version": "varchar", "ua__device_family": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}", "column_types": {"app_id": "varchar", "start_tstamp": "timestamp", "end_tstamp": "timestamp", "first_page_urlfragment": "varchar", "last_page_urlfragment": "varchar", "refr_urlquery": "varchar", "refr_urlfragment": "varchar", "refr_medium": "varchar", "refr_source": "varchar", "refr_term": "varchar", "mkt_term": "varchar", "mkt_content": "varchar", "last_page_urlquery": "varchar", "br_renderengine": "varchar", "category": "varchar", "primary_impact": "varchar", "reason": "varchar", "spider_or_robot": "boolean", "useragent_family": "varchar", "useragent_major": "varchar", "useragent_minor": "varchar", "useragent_patch": "varchar", "useragent_version": "varchar", "os_family": "varchar", "os_major": "varchar", "os_minor": "varchar", "os_patch": "varchar", "os_patch_minor": "varchar", "os_version": "varchar", "device_family": "varchar", "device_class": "varchar", "agent_class": "varchar", "agent_name": "varchar", "agent_name_version": "varchar", "agent_name_version_major": "varchar", "agent_version": "varchar", "agent_version_major": "varchar", "device_brand": "varchar", "device_name": "varchar", "device_version": "varchar", "layout_engine_class": "varchar", "layout_engine_name": "varchar", "layout_engine_name_version": "varchar", "layout_engine_name_version_major": "varchar", "layout_engine_version": "varchar", "layout_engine_version_major": "varchar", "operating_system_class": "varchar", "operating_system_name": "varchar", "operating_system_name_version": "varchar", "operating_system_version": "varchar", "cv_view_page_first_conversion": "timestamp", "mobile__total_storage": "{{ 'bigint' if target.type in ['postgres', 'spark', 'databricks', 'redshift'] else 'integer' }}", "mobile__os_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "mobile__available_storage": "{{ 'bigint' if target.type in ['postgres', 'spark', 'databricks', 'redshift'] else 'integer' }}", "yauaa__agent_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "yauaa__agent_version_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "yauaa__layout_engine_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "yauaa__layout_engine_version_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_minor": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_patch": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__useragent_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_major": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_minor": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_patch": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_patch_minor": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__os_version": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}", "ua__device_family": "{{ 'string' if target.type in ['bigquery', 'databricks', 'spark'] else 'varchar' }}"}}, "created_at": 1706612341.4800136, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_sessions_expected", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}, "defer_relation": null}], "seed.snowplow_unified_integration_tests.snowplow_unified_spider_context": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_spider_context", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "source/snowplow_unified_spider_context.csv", "original_file_path": "data/source/snowplow_unified_spider_context.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_spider_context", "fqn": ["snowplow_unified_integration_tests", "source", "snowplow_unified_spider_context"], "alias": "snowplow_unified_spider_context", "checksum": {"name": "sha256", "checksum": "6264cee5b4b4486bc4cac638b63d0d84fd2085aac3365c35fcfb633b9260b32b"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.486319, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_spider_context", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}, "defer_relation": null}], "seed.snowplow_unified_integration_tests.snowplow_unified_yauaa_context": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_yauaa_context", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "source/snowplow_unified_yauaa_context.csv", "original_file_path": "data/source/snowplow_unified_yauaa_context.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_yauaa_context", "fqn": ["snowplow_unified_integration_tests", "source", "snowplow_unified_yauaa_context"], "alias": "snowplow_unified_yauaa_context", "checksum": {"name": "sha256", "checksum": "3f19965b95619198a9e04e75aa0c847a4715ec2fcd66273b5dccfccb957b82a1"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.502484, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_yauaa_context", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}, "defer_relation": null}], "seed.snowplow_unified_integration_tests.snowplow_unified_ua_context": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_snplw_unified_int_tests", "name": "snowplow_unified_ua_context", "resource_type": "seed", "package_name": "snowplow_unified_integration_tests", "path": "source/snowplow_unified_ua_context.csv", "original_file_path": "data/source/snowplow_unified_ua_context.csv", "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_ua_context", "fqn": ["snowplow_unified_integration_tests", "source", "snowplow_unified_ua_context"], "alias": "snowplow_unified_ua_context", "checksum": {"name": "sha256", "checksum": "748d8fd4c86d5edfd3df2371e205da9dac021672e815c8f696f592fa93895862"}, "config": {"enabled": false, "alias": null, "schema": "snplw_unified_int_tests", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": false, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": false, "schema": "snplw_unified_int_tests", "enabled": "{{ target.type in ['redshift', 'postgres'] | as_bool() }}"}, "created_at": 1706612341.51174, "config_call_dict": {}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_snplw_unified_int_tests.snowplow_unified_ua_context", "raw_code": "", "root_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "depends_on": {"macros": []}, "defer_relation": null}], "model.snowplow_unified.snowplow_unified_screen_summary_metrics": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_screen_summary_metrics", "resource_type": "model", "package_name": "snowplow_unified", "path": "views/scratch/snowplow_unified_screen_summary_metrics.sql", "original_file_path": "models/views/scratch/snowplow_unified_screen_summary_metrics.sql", "unique_id": "model.snowplow_unified.snowplow_unified_screen_summary_metrics", "fqn": ["snowplow_unified", "views", "scratch", "snowplow_unified_screen_summary_metrics"], "alias": "snowplow_unified_screen_summary_metrics", "checksum": {"name": "sha256", "checksum": "4423ce83044e40a2d885073dbbbd2356ca063cfe327f86375628269c4a03fb63"}, "config": {"enabled": false, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "scratch"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "scratch"], "description": "{{ doc(\"table_screen_summary_metrics\") }}", "columns": {"view_id": {"name": "view_id", "description": "{{ doc(\"col_view_id\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/views/scratch/views_scratch.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": "scratch", "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "enabled": false}, "created_at": 1706612343.769241, "config_call_dict": {"sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "enabled": false}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_screen_summary_metrics", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt')),\n enabled=var(\"snowplow__enable_screen_summary_context\", false)\n )\n}}\n\nwith prep as (\n select\n ev.view_id\n , ev.session_identifier\n\n , round(cast(max(ev.screen_summary__foreground_sec) as {{ type_numeric() }}), 2) as foreground_sec\n , round(cast(max(ev.screen_summary__background_sec) as {{ type_numeric() }}), 2) as background_sec\n\n , max(ev.screen_summary__last_item_index) as last_item_index\n , max(ev.screen_summary__items_count) as items_count\n\n , min(ev.screen_summary__min_x_offset) as min_x_offset\n , min(ev.screen_summary__min_y_offset) as min_y_offset\n\n , max(ev.screen_summary__max_x_offset) as max_x_offset\n , max(ev.screen_summary__max_y_offset) as max_y_offset\n\n , max(ev.screen_summary__content_width) as content_width\n , max(ev.screen_summary__content_height) as content_height\n\n from {{ ref('snowplow_unified_events_this_run') }} as ev\n\n where ev.view_id is not null\n and ev.platform <> 'web'\n and ev.event_name in ('screen_end', 'application_background', 'application_foreground')\n\n group by 1, 2\n)\n\nselect *\n\n , case\n when max_x_offset is not null and content_width is not null and content_width > 0 then\n cast(round(100.0 * cast(max_x_offset as {{ type_float() }}) / cast(content_width as {{ type_float() }})) as {{ type_float() }})\n else null\n end as horizontal_percentage_scrolled\n\n , case\n when max_y_offset is not null and content_height is not null and content_height > 0 then\n cast(round(100.0 * cast(max_y_offset as {{ type_float() }}) / cast(content_height as {{ type_float() }})) as {{ type_float() }})\n else null\n end as vertical_percentage_scrolled\n\n , case\n when last_item_index is not null and items_count is not null and items_count > 0 then\n cast(round(100.0 * (cast(last_item_index as {{ type_float() }}) + 1) / cast(items_count as {{ type_float() }})) as {{ type_float() }})\n else null\n end as list_items_percentage_scrolled\n\nfrom prep", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.dbt.type_numeric", "macro.dbt.type_float"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified.snowplow_unified_consent_events_this_run": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_consent_events_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/consent/scratch/bigquery/snowplow_unified_consent_events_this_run.sql", "original_file_path": "models/optional_modules/consent/scratch/bigquery/snowplow_unified_consent_events_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_consent_events_this_run", "fqn": ["snowplow_unified", "optional_modules", "consent", "scratch", "bigquery", "snowplow_unified_consent_events_this_run"], "alias": "snowplow_unified_consent_events_this_run", "checksum": {"name": "sha256", "checksum": "2501d7e129fbaa4a7cc70df60b32deaa97e3d94013f42148d287b18abc9b489b"}, "config": {"enabled": false, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "derived", "consent", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "consent", "scratch", "this_run"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": ["this_run"], "enabled": false}, "created_at": 1706612342.3473487, "config_call_dict": {"tags": ["this_run"], "enabled": false}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_consent_events_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n tags=[\"this_run\"],\n enabled=var(\"snowplow__enable_consent\", false) and target.type == 'bigquery' | as_bool(),\n )\n}}\n\nwith prep as (\n\n select\n e.event_id\n , e.user_identifier\n , e.user_id\n , e.geo_country\n , e.view_id\n , e.session_identifier\n , e.derived_tstamp\n , e.load_tstamp\n , e.event_name\n , e.consent__event_type as event_type\n , e.consent__basis_for_processing as basis_for_processing\n , e.consent__consent_url as consent_url\n , e.consent__consent_version as consent_version\n , e.consent__consent_scopes as consent_scopes\n , e.consent__domains_applied as domains_applied\n , e.consent__gdpr_applies as gdpr_applies\n , e.cmp__elapsed_time as cmp_load_time\n\n from {{ ref(\"snowplow_unified_events_this_run\") }} as e\n\n where e.event_name in ('cmp_visible', 'consent_preferences')\n\n and {{ snowplow_utils.is_run_with_new_events('snowplow_unified') }} --returns false if run doesn't contain new events.\n\n {% if var(\"snowplow__ua_bot_filter\", false) %}\n {{ filter_bots() }}\n {% endif %}\n)\n\nselect\n p.event_id,\n p.user_identifier,\n p.user_id,\n p.geo_country,\n p.view_id,\n p.session_identifier,\n p.derived_tstamp,\n p.load_tstamp,\n p.event_name,\n p.event_type,\n p.basis_for_processing,\n p.consent_url,\n p.consent_version,\n {{ snowplow_utils.get_array_to_string('consent_scopes', 'p', ', ') }} as consent_scopes,\n {{ snowplow_utils.get_array_to_string('domains_applied', 'p', ', ') }} as domains_applied,\n coalesce(safe_cast(p.gdpr_applies as boolean), false) gdpr_applies,\n cast(p.cmp_load_time as {{ dbt.type_float() }}) as cmp_load_time\n\n from prep p", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.is_run_with_new_events", "macro.snowplow_unified.filter_bots", "macro.snowplow_utils.get_array_to_string", "macro.dbt.type_float"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}, {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_consent_events_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/consent/scratch/databricks/snowplow_unified_consent_events_this_run.sql", "original_file_path": "models/optional_modules/consent/scratch/databricks/snowplow_unified_consent_events_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_consent_events_this_run", "fqn": ["snowplow_unified", "optional_modules", "consent", "scratch", "databricks", "snowplow_unified_consent_events_this_run"], "alias": "snowplow_unified_consent_events_this_run", "checksum": {"name": "sha256", "checksum": "3001e5f40dbbd4a5dd36a6e0421d1129dfb559033ca693d39eb55e8f52c10761"}, "config": {"enabled": false, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "derived", "consent", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "consent", "scratch", "this_run"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": ["this_run"], "enabled": false}, "created_at": 1706612342.3596804, "config_call_dict": {"tags": ["this_run"], "enabled": false}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_consent_events_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n tags=[\"this_run\"],\n enabled=var(\"snowplow__enable_consent\", false) and target.type in ['databricks', 'spark'] | as_bool(),\n )\n}}\n\nwith prep as (\n\n select\n e.event_id\n , e.user_identifier\n , e.user_id\n , e.geo_country\n , e.view_id\n , e.session_identifier\n , e.derived_tstamp\n , e.load_tstamp\n , e.event_name\n , e.consent__event_type as event_type\n , e.consent__basis_for_processing as basis_for_processing\n , e.consent__consent_url as consent_url\n , e.consent__consent_version as consent_version\n , e.consent__consent_scopes as consent_scopes\n , e.consent__domains_applied as domains_applied\n , e.consent__gdpr_applies as gdpr_applies\n , e.cmp__elapsed_time as cmp_load_time\n\n from {{ ref(\"snowplow_unified_events_this_run\") }} as e\n\n where event_name in ('cmp_visible', 'consent_preferences')\n\n and {{ snowplow_utils.is_run_with_new_events('snowplow_unified') }} --returns false if run doesn't contain new events.\n\n {% if var(\"snowplow__ua_bot_filter\", false) %}\n {{ filter_bots() }}\n {% endif %}\n)\n\nselect\n p.event_id,\n p.user_identifier,\n p.user_id,\n p.geo_country,\n p.view_id,\n p.session_identifier,\n p.derived_tstamp,\n p.load_tstamp,\n p.event_name,\n p.event_type,\n p.basis_for_processing,\n p.consent_url,\n p.consent_version,\n {{ snowplow_utils.get_array_to_string('consent_scopes', 'p', ', ') }} as consent_scopes,\n {{ snowplow_utils.get_array_to_string('domains_applied', 'p', ', ') }} as domains_applied,\n coalesce(p.gdpr_applies, false) as gdpr_applies,\n p.cmp_load_time\n\nfrom prep p", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.is_run_with_new_events", "macro.snowplow_unified.filter_bots", "macro.snowplow_utils.get_array_to_string"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}, {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_consent_events_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/consent/scratch/default/snowplow_unified_consent_events_this_run.sql", "original_file_path": "models/optional_modules/consent/scratch/default/snowplow_unified_consent_events_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_consent_events_this_run", "fqn": ["snowplow_unified", "optional_modules", "consent", "scratch", "default", "snowplow_unified_consent_events_this_run"], "alias": "snowplow_unified_consent_events_this_run", "checksum": {"name": "sha256", "checksum": "4e8cae68b1c43ebb136df6b564c776cfce0c65cbacab03b42b303567cefd293e"}, "config": {"enabled": false, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "derived", "consent", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "consent", "scratch", "this_run"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": ["this_run"], "enabled": false}, "created_at": 1706612342.371872, "config_call_dict": {"tags": ["this_run"], "enabled": false}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_consent_events_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n tags=[\"this_run\"],\n enabled=var(\"snowplow__enable_consent\", false) and target.type in ['redshift', 'postgres'] | as_bool(),\n )\n}}\n\n{%- set lower_limit, upper_limit = snowplow_utils.return_limits_from_model(ref('snowplow_unified_base_sessions_this_run'),\n 'start_tstamp',\n 'end_tstamp') %}\n\n select\n e.event_id\n , e.user_identifier\n , e.user_id\n , e.geo_country\n , e.view_id\n , e.session_identifier\n , e.derived_tstamp\n , e.load_tstamp\n , e.event_name\n , e.consent__event_type as event_type\n , e.consent__basis_for_processing as basis_for_processing\n , e.consent__consent_url as consent_url\n , e.consent__consent_version as consent_version\n , replace(translate(e.consent__consent_scopes, '\"[]', ''), ',', ', ') as consent_scopes\n , replace(translate(e.consent__domains_applied, '\"[]', ''), ',', ', ') as domains_applied\n , coalesce(e.consent__gdpr_applies, false) as gdpr_applies\n , e.cmp__elapsed_time as cmp_load_time\n\n from {{ ref(\"snowplow_unified_events_this_run\") }} as e\n\n where event_name in ('cmp_visible', 'consent_preferences')\n\n and {{ snowplow_utils.is_run_with_new_events('snowplow_unified') }}\n\n --returns false if run doesn't contain new events.\n\n {% if var(\"snowplow__ua_bot_filter\", false) %}\n {{ filter_bots() }}\n {% endif %}", "language": "sql", "refs": [{"name": "snowplow_unified_base_sessions_this_run", "package": null, "version": null}, {"name": "snowplow_unified_events_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.return_limits_from_model", "macro.snowplow_utils.is_run_with_new_events", "macro.snowplow_unified.filter_bots"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified.snowplow_unified_conversions": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_derived", "name": "snowplow_unified_conversions", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/conversions/snowplow_unified_conversions.sql", "original_file_path": "models/optional_modules/conversions/snowplow_unified_conversions.sql", "unique_id": "model.snowplow_unified.snowplow_unified_conversions", "fqn": ["snowplow_unified", "optional_modules", "conversions", "snowplow_unified_conversions"], "alias": "snowplow_unified_conversions", "checksum": {"name": "sha256", "checksum": "c011581d298ff993276513e0182dbf4131ecd7b6ef41d22efe3b8226ada23af0"}, "config": {"enabled": false, "alias": null, "schema": "derived", "database": null, "tags": ["snowplow_unified_incremental", "derived", "conversions", "derived"], "meta": {}, "group": null, "materialized": "incremental", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": "event_id", "on_schema_change": "append_new_columns", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "cluster_by": ["to_date(cv_tstamp)"], "upsert_date_key": "cv_tstamp", "sort": "cv_tstamp", "dist": "event_id", "partition_by": null, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "snowplow_optimize": true, "post-hook": [{"sql": "{{ snowplow_unified.stitch_user_identifiers(\n enabled=var('snowplow__conversion_stitching')\n ) }}", "transaction": true, "index": null}], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "conversions"], "description": "An incremental table which contains all relevant fields for unique conversion events.", "columns": {"event_id": {"name": "event_id", "description": "{{ doc(\"col_event_id\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}, "user_id": {"name": "user_id", "description": "{{ doc(\"col_user_id\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_identifier": {"name": "session_identifier", "description": "{{ doc(\"col_session_identifier\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_identifier": {"name": "user_identifier", "description": "{{ doc(\"col_user_identifier\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stitched_user_id": {"name": "stitched_user_id", "description": "{{ doc(\"col_stitched_user_id\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cv_value": {"name": "cv_value", "description": "The conversion value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cv_tstamp": {"name": "cv_tstamp", "description": "The derived_tstamp of the conversion event", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_created_tstamp,": {"name": "dvce_created_tstamp,", "description": "{{ doc(\"col_dvce_created_tstamp\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "as cv_type": {"name": "as cv_type", "description": "The type of conversion, taken from the 'name' value of the user defined conversion definition", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/optional_modules/conversions/conversions.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "incremental", "file_format": "delta", "bind": false, "schema": "derived", "tags": ["derived"], "enabled": false, "on_schema_change": "append_new_columns", "unique_key": "event_id", "upsert_date_key": "cv_tstamp", "sort": "cv_tstamp", "dist": "event_id", "partition_by": null, "cluster_by": ["to_date(cv_tstamp)"], "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "snowplow_optimize": true, "post-hook": ["{{ snowplow_unified.stitch_user_identifiers(\n enabled=var('snowplow__conversion_stitching')\n ) }}"]}, "created_at": 1706612344.2423227, "config_call_dict": {"materialized": "incremental", "enabled": false, "on_schema_change": "append_new_columns", "unique_key": "event_id", "upsert_date_key": "cv_tstamp", "sort": "cv_tstamp", "dist": "event_id", "partition_by": null, "cluster_by": ["to_date(cv_tstamp)"], "tags": ["derived"], "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "tblproperties": {"delta.autoOptimize.optimizeWrite": "true", "delta.autoOptimize.autoCompact": "true"}, "snowplow_optimize": true, "post-hook": ["{{ snowplow_unified.stitch_user_identifiers(\n enabled=var('snowplow__conversion_stitching')\n ) }}"]}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_conversions", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized='incremental',\n enabled=var(\"snowplow__enable_conversions\", false),\n on_schema_change='append_new_columns',\n unique_key='event_id',\n upsert_date_key='cv_tstamp',\n sort='cv_tstamp',\n dist='event_id',\n partition_by = snowplow_utils.get_value_by_target_type(bigquery_val = {\n \"field\": \"cv_tstamp\",\n \"data_type\": \"timestamp\"\n }, databricks_val='cv_tstamp_date'),\n cluster_by=snowplow_utils.get_value_by_target_type(bigquery_val=[\"user_identifier\",\"session_identifier\"], snowflake_val=[\"to_date(cv_tstamp)\"]),\n tags=[\"derived\"],\n post_hook=\"{{ snowplow_unified.stitch_user_identifiers(\n enabled=var('snowplow__conversion_stitching')\n ) }}\",\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt')),\n tblproperties={\n 'delta.autoOptimize.optimizeWrite' : 'true',\n 'delta.autoOptimize.autoCompact' : 'true'\n },\n snowplow_optimize = true\n )\n}}\n\n\nselect *\n {% if target.type in ['databricks', 'spark'] -%}\n , DATE(cv_tstamp) as cv_tstamp_date\n {%- endif %}\nfrom {{ ref('snowplow_unified_conversions_this_run') }}\nwhere {{ snowplow_utils.is_run_with_new_events('snowplow_unified') }} --returns false if run doesn't contain new events.", "language": "sql", "refs": [{"name": "snowplow_unified_conversions_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.get_value_by_target_type", "macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.is_run_with_new_events", "macro.snowplow_unified.stitch_user_identifiers"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified.snowplow_unified_conversions_this_run": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_conversions_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/conversions/scratch/snowplow_unified_conversions_this_run.sql", "original_file_path": "models/optional_modules/conversions/scratch/snowplow_unified_conversions_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_conversions_this_run", "fqn": ["snowplow_unified", "optional_modules", "conversions", "scratch", "snowplow_unified_conversions_this_run"], "alias": "snowplow_unified_conversions_this_run", "checksum": {"name": "sha256", "checksum": "66da0ee13d54d4d558ba971f5f2891471af57d8f079aecfe20bee9992abaaf2c"}, "config": {"enabled": false, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "derived", "conversions", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "conversions", "scratch", "this_run"], "description": "A scratch table used as a base for creating the incremental conversions derived table.", "columns": {"event_id": {"name": "event_id", "description": "{{ doc(\"col_event_id\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": ["primary-key"]}, "user_id": {"name": "user_id", "description": "{{ doc(\"col_user_id\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "session_identifier": {"name": "session_identifier", "description": "{{ doc(\"col_session_identifier\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_identifier": {"name": "user_identifier", "description": "{{ doc(\"col_user_identifier\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stitched_user_id": {"name": "stitched_user_id", "description": "{{ doc(\"col_stitched_user_id\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cv_value": {"name": "cv_value", "description": "The conversion value.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cv_tstamp": {"name": "cv_tstamp", "description": "The derived_tstamp of the conversion event", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "dvce_created_tstamp,": {"name": "dvce_created_tstamp,", "description": "{{ doc(\"col_dvce_created_tstamp\") }}", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "as cv_type": {"name": "as cv_type", "description": "The type of conversion, taken from the 'name' value of the user defined conversion definition", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/optional_modules/conversions/conversions.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": ["this_run"], "enabled": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612344.2409332, "config_call_dict": {"tags": ["this_run"], "enabled": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_conversions_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n tags=[\"this_run\"],\n enabled=var(\"snowplow__enable_conversions\", false),\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\nwith prep as (\n \n {%- for conv_def in var('snowplow__conversion_events', []) %}\n \n {{ snowplow_unified.get_conversion_fields(conv_def)}}\n {% if not loop.last %}union all{% endif %}\n \n {%- endfor %}\n \n)\n\nselect * from prep", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.snowplow_unified.get_conversion_fields"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified.snowplow_unified_web_vital_events_this_run": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_web_vital_events_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/core_web_vitals/scratch/bigquery/snowplow_unified_web_vital_events_this_run.sql", "original_file_path": "models/optional_modules/core_web_vitals/scratch/bigquery/snowplow_unified_web_vital_events_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_web_vital_events_this_run", "fqn": ["snowplow_unified", "optional_modules", "core_web_vitals", "scratch", "bigquery", "snowplow_unified_web_vital_events_this_run"], "alias": "snowplow_unified_web_vital_events_this_run", "checksum": {"name": "sha256", "checksum": "c3280c5d6d00a5ac9d57997f9a81f8a23c3e5132e359401d536c354cde3854fc"}, "config": {"enabled": false, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals", "scratch", "this_run"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": ["this_run"], "enabled": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612342.5138805, "config_call_dict": {"tags": ["this_run"], "enabled": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_web_vital_events_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n tags=[\"this_run\"],\n enabled=var(\"snowplow__enable_cwv\", false) and target.type == 'bigquery' | as_bool(),\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\nwith prep as (\n\n select\n e.event_id\n , e.event_name\n , e.app_id\n , e.platform\n , e.user_identifier\n , e.user_id\n , e.view_id\n , e.session_identifier\n , e.collector_tstamp\n , e.derived_tstamp\n , e.dvce_created_tstamp\n , e.load_tstamp\n , e.geo_country\n , e.page_url\n , e.page_title\n , e.useragent\n , lower(e.yauaa__device_class) as device_class\n , e.yauaa__agent_class as agent_class\n , e.yauaa__agent_name as agent_name\n , e.yauaa__agent_name_version as agent_name_version\n , e.yauaa__agent_name_version_major as agent_name_version_major\n , e.yauaa__agent_version as agent_version\n , e.yauaa__agent_version_major agent_version_major\n , e.yauaa__device_brand as device_brand\n , e.yauaa__device_name as device_name\n , e.yauaa__device_version as device_version\n , e.yauaa__layout_engine_class as layout_engine_class\n , e.yauaa__layout_engine_name as layout_engine_name\n , e.yauaa__layout_engine_name_version as layout_engine_name_version\n , e.yauaa__layout_engine_name_version_major as layout_engine_name_version_major\n , e.yauaa__layout_engine_version as layout_engine_version\n , e.yauaa__layout_engine_version_major as layout_engine_version_major\n , e.yauaa__operating_system_class as operating_system_class\n , e.yauaa__operating_system_name as operating_system_name\n , e.yauaa__operating_system_name_version as operating_system_name_version\n , e.yauaa__operating_system_version as operating_system_version\n , ceil(cast(cwv__lcp as decimal)) /1000 as lcp\n , ceil(cast(cwv__fcp as decimal)) /1000 as fcp\n , ceil(safe_cast(cwv__fid as decimal) * 1000) /1000 as fid\n , ceil(cast(cwv__cls as decimal) * 1000) /1000 as cls\n , ceil(cast(cwv__inp as decimal) * 1000) /1000 as inp\n , ceil(cast(cwv__ttfb as decimal) * 1000) /1000 as ttfb\n , e.cwv__navigation_type as navigation_type\n\n from {{ ref(\"snowplow_unified_events_this_run\") }} as e\n\n where {{ snowplow_utils.is_run_with_new_events('snowplow_unified') }} --returns false if run doesn't contain new events.\n\n and event_name = 'web_vitals'\n\n and view_id is not null\n\n -- exclude bot traffic\n\n {% if var('snowplow__enable_iab', false) %}\n and not {{ snowplow_utils.get_field(column_name = 'contexts_com_iab_snowplow_spiders_and_robots_1_0_0',\n field_name = 'spider_or_robot',\n table_alias = 'e',\n type = 'boolean',\n array_index = 0)}} = True\n {% endif %}\n\n {{ filter_bots() }}\n\n)\n\nselect\n*\nfrom prep", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.is_run_with_new_events", "macro.snowplow_utils.get_field", "macro.snowplow_unified.filter_bots"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}, {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_web_vital_events_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/core_web_vitals/scratch/databricks/snowplow_unified_web_vital_events_this_run.sql", "original_file_path": "models/optional_modules/core_web_vitals/scratch/databricks/snowplow_unified_web_vital_events_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_web_vital_events_this_run", "fqn": ["snowplow_unified", "optional_modules", "core_web_vitals", "scratch", "databricks", "snowplow_unified_web_vital_events_this_run"], "alias": "snowplow_unified_web_vital_events_this_run", "checksum": {"name": "sha256", "checksum": "fd3e33cced8d2bcf84eb920c27481bf268516b42263238dbdb2a2a9c66d10d43"}, "config": {"enabled": false, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals", "scratch", "this_run"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": ["this_run"], "enabled": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "created_at": 1706612342.526191, "config_call_dict": {"tags": ["this_run"], "enabled": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n"}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_web_vital_events_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n tags=[\"this_run\"],\n enabled=var(\"snowplow__enable_cwv\", false) and target.type in ('databricks', 'spark') | as_bool(),\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt'))\n )\n}}\n\nwith prep as (\n\n select\n e.event_id\n , e.event_name\n , e.app_id\n , e.platform\n , e.user_identifier\n , e.user_id\n , e.view_id\n , e.session_identifier\n , e.collector_tstamp\n , e.derived_tstamp\n , e.dvce_created_tstamp\n , e.load_tstamp\n , e.geo_country\n , e.page_url\n , e.page_title\n , e.useragent\n , e.yauaa__device_class as device_class\n , e.yauaa__agent_class as agent_class\n , e.yauaa__agent_name as agent_name\n , e.yauaa__agent_name_version as agent_name_version\n , e.yauaa__agent_name_version_major as agent_name_version_major\n , e.yauaa__agent_version as agent_version\n , e.yauaa__agent_version_major agent_version_major\n , e.yauaa__device_brand as device_brand\n , e.yauaa__device_name as device_name\n , e.yauaa__device_version as device_version\n , e.yauaa__layout_engine_class as layout_engine_class\n , e.yauaa__layout_engine_name as layout_engine_name\n , e.yauaa__layout_engine_name_version as layout_engine_name_version\n , e.yauaa__layout_engine_name_version_major as layout_engine_name_version_major\n , e.yauaa__layout_engine_version as layout_engine_version\n , e.yauaa__layout_engine_version_major as layout_engine_version_major\n , e.yauaa__operating_system_class as operating_system_class\n , e.yauaa__operating_system_name as operating_system_name\n , e.yauaa__operating_system_name_version as operating_system_name_version\n , e.yauaa__operating_system_version as operating_system_version\n , ceil(e.cwv__lcp) /1000 as lcp\n , ceil(e.cwv__fcp, 3) as fcp\n , ceil(e.cwv__fid, 3) as fid\n , ceil(e.cwv__cls, 3) as cls\n , ceil(e.cwv__inp, 3)as inp\n , ceil(e.cwv__ttfb, 3) as ttfb\n , e.cwv__navigation_type as navigation_type\n\n from {{ ref(\"snowplow_unified_events_this_run\") }} as e\n\n where {{ snowplow_utils.is_run_with_new_events('snowplow_unified') }} --returns false if run doesn't contain new events.\n\n and event_name = 'web_vitals'\n\n and view_id is not null\n\n -- exclude bot traffic\n\n {% if var('snowplow__enable_iab', false) %}\n and not {{ snowplow_utils.get_field(column_name = 'contexts_com_iab_snowplow_spiders_and_robots_1',\n field_name = 'spider_or_robot',\n table_alias = 'e',\n type = 'boolean',\n array_index = 0)}} = True\n {% endif %}\n\n {{ filter_bots() }}\n\n)\n\nselect\n event_id,\n event_name,\n app_id,\n platform,\n user_identifier,\n user_id,\n view_id,\n session_identifier,\n collector_tstamp,\n derived_tstamp,\n dvce_created_tstamp,\n load_tstamp,\n geo_country,\n page_url,\n page_title,\n useragent,\n lower(device_class) as device_class,\n agent_class,\n agent_name,\n agent_name_version,\n agent_name_version_major,\n agent_version,\n agent_version_major,\n device_brand,\n device_name,\n device_version,\n layout_engine_class,\n layout_engine_name,\n layout_engine_name_version,\n layout_engine_name_version_major,\n layout_engine_version,\n layout_engine_version_major,\n operating_system_class,\n operating_system_name,\n operating_system_name_version,\n operating_system_version,\n lcp,\n fcp,\n fid,\n cls,\n inp,\n ttfb,\n navigation_type\n\nfrom prep p", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.snowplow_utils.is_run_with_new_events", "macro.snowplow_utils.get_field", "macro.snowplow_unified.filter_bots"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}, {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_web_vital_events_this_run", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/core_web_vitals/scratch/default/snowplow_unified_web_vital_events_this_run.sql", "original_file_path": "models/optional_modules/core_web_vitals/scratch/default/snowplow_unified_web_vital_events_this_run.sql", "unique_id": "model.snowplow_unified.snowplow_unified_web_vital_events_this_run", "fqn": ["snowplow_unified", "optional_modules", "core_web_vitals", "scratch", "default", "snowplow_unified_web_vital_events_this_run"], "alias": "snowplow_unified_web_vital_events_this_run", "checksum": {"name": "sha256", "checksum": "5cb23af2c821a1957cda49ae0710e097ef88f612ea1c3f157c28118f8c1a2a26"}, "config": {"enabled": false, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals", "scratch", "this_run"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals", "scratch", "this_run"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": ["this_run"], "enabled": false}, "created_at": 1706612342.5388136, "config_call_dict": {"tags": ["this_run"], "enabled": false}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_web_vital_events_this_run", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n tags=[\"this_run\"],\n enabled=var(\"snowplow__enable_cwv\", false) and target.type in ('redshift', 'postgres') | as_bool()\n )\n}}\n\nwith prep as (\n\n select\n e.event_id\n , e.event_name\n , e.app_id\n , e.platform\n , e.user_identifier\n , e.user_id\n , e.view_id\n , e.session_identifier\n , e.collector_tstamp\n , e.derived_tstamp\n , e.dvce_created_tstamp\n , e.load_tstamp\n , e.geo_country\n , e.page_url\n , e.page_title\n , e.useragent\n , e.yauaa__device_class as device_class\n , e.yauaa__agent_class as agent_class\n , e.yauaa__agent_name as agent_name\n , e.yauaa__agent_name_version as agent_name_version\n , e.yauaa__agent_name_version_major as agent_name_version_major\n , e.yauaa__agent_version as agent_version\n , e.yauaa__agent_version_major agent_version_major\n , e.yauaa__device_brand as device_brand\n , e.yauaa__device_name as device_name\n , e.yauaa__device_version as device_version\n , e.yauaa__layout_engine_class as layout_engine_class\n , e.yauaa__layout_engine_name as layout_engine_name\n , e.yauaa__layout_engine_name_version as layout_engine_name_version\n , e.yauaa__layout_engine_name_version_major as layout_engine_name_version_major\n , e.yauaa__layout_engine_version as layout_engine_version\n , e.yauaa__layout_engine_version_major as layout_engine_version_major\n , e.yauaa__operating_system_class as operating_system_class\n , e.yauaa__operating_system_name as operating_system_name\n , e.yauaa__operating_system_name_version as operating_system_name_version\n , e.yauaa__operating_system_version as operating_system_version\n , ceil(cast(cwv__lcp/1000 as decimal(14,4))*1000) /1000 as lcp\n , ceil(cast(cwv__fcp as decimal(14,4))*1000) /1000 as fcp\n , ceil(cast(cwv__fid as decimal(14,4))*1000) /1000 as fid\n , ceil(cast(cwv__cls as decimal(14,4))*1000) /1000 as cls\n , ceil(cast(cwv__inp as decimal(14,4))*1000) /1000 as inp\n , ceil(cast(cwv__ttfb as decimal(14,4))*1000) /1000 as ttfb\n , cwv__navigation_type as navigation_type\n\n from {{ ref(\"snowplow_unified_events_this_run\") }} as e\n\n where {{ snowplow_utils.is_run_with_new_events('snowplow_unified') }} --returns false if run doesn't contain new events.\n\n and event_name = 'web_vitals'\n\n and view_id is not null\n\n -- exclude bot traffic\n\n {% if var('snowplow__enable_iab', false) %}\n and not e.iab__spider_or_robot = True\n {% endif %}\n\n {{ filter_bots() }}\n\n)\n\nselect\n event_id,\n event_name,\n app_id,\n platform,\n user_identifier,\n user_id,\n view_id,\n session_identifier,\n collector_tstamp,\n derived_tstamp,\n dvce_created_tstamp,\n load_tstamp,\n geo_country,\n page_url,\n page_title,\n useragent,\n lower(device_class) as device_class,\n agent_class,\n agent_name,\n agent_name_version,\n agent_name_version_major,\n agent_version,\n agent_version_major,\n device_brand,\n device_name,\n device_version,\n layout_engine_class,\n layout_engine_name,\n layout_engine_name_version,\n layout_engine_name_version_major,\n layout_engine_version,\n layout_engine_version_major,\n operating_system_class,\n operating_system_name,\n operating_system_name_version,\n operating_system_version,\n lcp,\n fcp,\n fid,\n cls,\n inp,\n ttfb,\n navigation_type\n\nfrom prep p", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}, {"name": "snowplow_unified_base_new_event_limits", "package": null, "version": null}, {"name": "snowplow_unified_incremental_manifest", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.is_run_with_new_events", "macro.snowplow_unified.filter_bots"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified.snowplow_unified_web_vital_measurements": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_derived", "name": "snowplow_unified_web_vital_measurements", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/core_web_vitals/bigquery/snowplow_unified_web_vital_measurements.sql", "original_file_path": "models/optional_modules/core_web_vitals/bigquery/snowplow_unified_web_vital_measurements.sql", "unique_id": "model.snowplow_unified.snowplow_unified_web_vital_measurements", "fqn": ["snowplow_unified", "optional_modules", "core_web_vitals", "bigquery", "snowplow_unified_web_vital_measurements"], "alias": "snowplow_unified_web_vital_measurements", "checksum": {"name": "sha256", "checksum": "b1b1e3e1eb9cbdc4443cea723d33cf4d6258905c9eacf5d71e141843a10886a4"}, "config": {"enabled": false, "alias": null, "schema": "derived", "database": null, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "derived", "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals"], "enabled": false}, "created_at": 1706612342.5495782, "config_call_dict": {"materialized": "table", "enabled": false}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_web_vital_measurements", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized='table',\n enabled=var(\"snowplow__enable_cwv\", false) and target.type == 'bigquery' | as_bool()\n )\n}}\n\nwith by_url_and_device as (\n\n select distinct\n\n page_url,\n device_class,\n 'all' as geo_country,\n 'last {{var(\"snowplow__cwv_days_to_measure\")|string }} days' as time_period,\n count(*) over (partition by page_url, device_class) as view_count,\n percentile_cont(lcp, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by page_url, device_class) as lcp_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(fid, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by page_url, device_class) as fid_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(cls, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by page_url, device_class) as cls_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(ttfb, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by page_url, device_class) as ttfb_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(inp, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by page_url, device_class) as inp_{{ var('snowplow__cwv_percentile') }}p,\n 'by_url_and_device' as measurement_type\n\n from {{ ref('snowplow_unified_web_vitals') }}\n\n where cast(derived_tstamp as date) >= {{ dateadd('day', '-'+var('snowplow__cwv_days_to_measure')|string, date_trunc('day', snowplow_utils.current_timestamp_in_utc())) }}\n)\n\n, overall as (\n\n select distinct\n\n 'all' as page_url,\n 'all' as device_class,\n 'all' as geo_country,\n 'last {{var(\"snowplow__cwv_days_to_measure\")|string }} days' as time_period,\n count(*) over() as view_count,\n percentile_cont(lcp, 0.{{ var('snowplow__cwv_percentile') }}) over() as lcp_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(fid, 0.{{ var('snowplow__cwv_percentile') }}) over() as fid_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(cls, 0.{{ var('snowplow__cwv_percentile') }}) over() as cls_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(ttfb, 0.{{ var('snowplow__cwv_percentile') }}) over() as ttfb_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(inp, 0.{{ var('snowplow__cwv_percentile') }}) over() as inp_{{ var('snowplow__cwv_percentile') }}p,\n 'overall' as measurement_type\n\n from {{ ref('snowplow_unified_web_vitals') }}\n\n where cast(derived_tstamp as date) >= {{ dateadd('day', '-'+var('snowplow__cwv_days_to_measure')|string, date_trunc('day', snowplow_utils.current_timestamp_in_utc())) }}\n)\n\n, by_device as (\n\n select distinct\n\n 'all' as page_url,\n device_class,\n 'all' as geo_country,\n 'last {{var(\"snowplow__cwv_days_to_measure\")|string }} days' as time_period,\n count(*) over (partition by device_class) as view_count,\n percentile_cont(lcp, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by device_class) as lcp_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(fid, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by device_class) as fid_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(cls, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by device_class) as cls_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(ttfb, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by device_class) as ttfb_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(inp, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by device_class) as inp_{{ var('snowplow__cwv_percentile') }}p,\n 'by_device' as measurement_type\n\n from {{ ref('snowplow_unified_web_vitals') }}\n\n where cast(derived_tstamp as date) >= {{ dateadd('day', '-'+var('snowplow__cwv_days_to_measure')|string, date_trunc('day', snowplow_utils.current_timestamp_in_utc())) }}\n)\n\n, by_day as (\n\n select distinct\n\n 'all' as page_url,\n 'all' as device_class,\n 'all' as geo_country,\n cast( {{ dbt.date_trunc('day', 'derived_tstamp') }} as {{ dbt.type_string() }}) as time_period,\n count(*) over (partition by cast( {{ dbt.date_trunc('day', 'derived_tstamp') }} as {{ dbt.type_string() }})) as view_count,\n percentile_cont(lcp, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by {{ dbt.date_trunc('day', 'derived_tstamp') }}) as lcp_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(fid, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by {{ dbt.date_trunc('day', 'derived_tstamp') }}) as fid_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(cls, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by {{ dbt.date_trunc('day', 'derived_tstamp') }}) as cls_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(ttfb, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by {{ dbt.date_trunc('day', 'derived_tstamp') }}) as ttfb_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(inp, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by {{ dbt.date_trunc('day', 'derived_tstamp') }}) as inp_{{ var('snowplow__cwv_percentile') }}p,\n 'by_day' as measurement_type\n\n from {{ ref('snowplow_unified_web_vitals') }}\n\n where cast(derived_tstamp as date) >= {{ dateadd('day', '-'+var('snowplow__cwv_days_to_measure')|string, date_trunc('day', snowplow_utils.current_timestamp_in_utc())) }}\n\n)\n\n, by_day_and_device as (\n\n select distinct\n\n 'all' as page_url,\n device_class,\n 'all' as geo_country,\n cast( {{ dbt.date_trunc('day', 'derived_tstamp') }} as {{ dbt.type_string() }}) as time_period,\n count(*) over (partition by device_class, cast( {{ dbt.date_trunc('day', 'derived_tstamp') }} as {{ dbt.type_string() }})) as view_count,\n percentile_cont(lcp, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by {{ dbt.date_trunc('day', 'derived_tstamp') }}, device_class) as lcp_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(fid, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by {{ dbt.date_trunc('day', 'derived_tstamp') }}, device_class) as fid_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(cls, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by {{ dbt.date_trunc('day', 'derived_tstamp') }}, device_class) as cls_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(ttfb, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by {{ dbt.date_trunc('day', 'derived_tstamp') }}, device_class) as ttfb_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(inp, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by {{ dbt.date_trunc('day', 'derived_tstamp') }}, device_class) as inp_{{ var('snowplow__cwv_percentile') }}p,\n 'by_day_and_device' as measurement_type\n\n from {{ ref('snowplow_unified_web_vitals') }}\n\n where cast(derived_tstamp as date) >= {{ dateadd('day', '-'+var('snowplow__cwv_days_to_measure')|string, date_trunc('day', snowplow_utils.current_timestamp_in_utc())) }}\n\n)\n\n, by_country as (\n\n select distinct\n\n 'all' as page_url,\n 'all' as device_class,\n geo_country,\n 'last {{var(\"snowplow__cwv_days_to_measure\")|string }} days' as time_period,\n count(*) over (partition by geo_country) as view_count,\n percentile_cont(lcp, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by geo_country) as lcp_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(fid, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by geo_country) as fid_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(cls, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by geo_country) as cls_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(ttfb, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by geo_country) as ttfb_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(inp, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by geo_country) as inp_{{ var('snowplow__cwv_percentile') }}p,\n 'by_country' as measurement_type\n\n from {{ ref('snowplow_unified_web_vitals') }}\n\n where cast(derived_tstamp as date) >= {{ dateadd('day', '-'+var('snowplow__cwv_days_to_measure')|string, date_trunc('day', snowplow_utils.current_timestamp_in_utc())) }}\n\n)\n\n, by_country_and_device as (\n\n select distinct\n\n 'all' as page_url,\n device_class,\n geo_country,\n 'last {{var(\"snowplow__cwv_days_to_measure\")|string }} days' as time_period,\n count(*) over (partition by geo_country, device_class) as view_count,\n percentile_cont(lcp, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by geo_country, device_class) as lcp_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(fid, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by geo_country, device_class) as fid_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(cls, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by geo_country, device_class) as cls_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(ttfb, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by geo_country, device_class) as ttfb_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(inp, 0.{{ var('snowplow__cwv_percentile') }}) over (partition by geo_country, device_class) as inp_{{ var('snowplow__cwv_percentile') }}p,\n 'by_country_and_device' as measurement_type\n\n from {{ ref('snowplow_unified_web_vitals') }}\n\n where cast(derived_tstamp as date) >= {{ dateadd('day', '-'+var('snowplow__cwv_days_to_measure')|string, date_trunc('day', snowplow_utils.current_timestamp_in_utc())) }}\n\n)\n\n, measurements as (\n\n select *,\n\n {{ snowplow_unified.core_web_vital_results_query('_' + var('snowplow__cwv_percentile') | string + 'p') }}\n\n from by_url_and_device\n\n union all\n\n select *,\n\n {{ snowplow_unified.core_web_vital_results_query('_' + var('snowplow__cwv_percentile') | string + 'p') }}\n\n from overall\n\n union all\n\n select *,\n\n {{ snowplow_unified.core_web_vital_results_query('_' + var('snowplow__cwv_percentile') | string + 'p') }}\n\n from by_device\n\n union all\n\n select *,\n\n {{ snowplow_unified.core_web_vital_results_query('_' + var('snowplow__cwv_percentile') | string + 'p') }}\n\n from by_day\n\n union all\n\n select *,\n\n {{ snowplow_unified.core_web_vital_results_query('_' + var('snowplow__cwv_percentile') | string + 'p') }}\n\n from by_day_and_device\n\n union all\n\n select *,\n\n {{ snowplow_unified.core_web_vital_results_query('_' + var('snowplow__cwv_percentile') | string + 'p') }}\n\n from by_country\n\n union all\n\n select *,\n\n {{ snowplow_unified.core_web_vital_results_query('_' + var('snowplow__cwv_percentile') | string + 'p') }}\n\n from by_country_and_device\n\n)\n\n, coalesce as (\n\nselect\n m.measurement_type,\n m.page_url,\n m.device_class,\n m.geo_country,\n coalesce(g.name, 'all') as country,\n m.time_period,\n m.view_count,\n ceil(cast(m.lcp_{{ var('snowplow__cwv_percentile') }}p as decimal) * 1000) /1000 as lcp_{{ var('snowplow__cwv_percentile') }}p,\n ceil(cast(m.fid_{{ var('snowplow__cwv_percentile') }}p as decimal) * 1000) /1000 as fid_{{ var('snowplow__cwv_percentile') }}p,\n ceil(cast(m.cls_{{ var('snowplow__cwv_percentile') }}p as decimal) * 1000) /1000 as cls_{{ var('snowplow__cwv_percentile') }}p,\n ceil(cast(m.ttfb_{{ var('snowplow__cwv_percentile') }}p as decimal) * 1000) /1000 as ttfb_{{ var('snowplow__cwv_percentile') }}p,\n ceil(cast(m.inp_{{ var('snowplow__cwv_percentile') }}p as decimal) * 1000) /1000 as inp_{{ var('snowplow__cwv_percentile') }}p,\n m.lcp_result,\n m.fid_result,\n m.cls_result,\n m.ttfb_result,\n m.inp_result,\n {{ snowplow_unified.core_web_vital_pass_query() }} as passed\n\nfrom measurements m\n\nleft join {{ ref(var('snowplow__geo_mapping_seed')) }} g on lower(m.geo_country) = lower(g.alpha_2)\n\norder by 1\n\n)\n\nselect\n\n {{ dbt.concat(['page_url', \"'-'\" , 'device_class', \"'-'\" , 'geo_country', \"'-'\" , 'time_period' ]) }} compound_key,\n *\n\nfrom coalesce", "language": "sql", "refs": [{"name": "snowplow_unified_web_vitals", "package": null, "version": null}, {"name": "snowplow_unified_web_vitals", "package": null, "version": null}, {"name": "snowplow_unified_web_vitals", "package": null, "version": null}, {"name": "snowplow_unified_web_vitals", "package": null, "version": null}, {"name": "snowplow_unified_web_vitals", "package": null, "version": null}, {"name": "snowplow_unified_web_vitals", "package": null, "version": null}, {"name": "snowplow_unified_web_vitals", "package": null, "version": null}, {"name": "snowplow_unified_dim_geo_country_mapping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.current_timestamp_in_utc", "macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt.type_string", "macro.snowplow_unified.core_web_vital_results_query", "macro.snowplow_unified.core_web_vital_pass_query", "macro.dbt.concat"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}, {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_derived", "name": "snowplow_unified_web_vital_measurements", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/core_web_vitals/databricks/snowplow_unified_web_vital_measurements.sql", "original_file_path": "models/optional_modules/core_web_vitals/databricks/snowplow_unified_web_vital_measurements.sql", "unique_id": "model.snowplow_unified.snowplow_unified_web_vital_measurements", "fqn": ["snowplow_unified", "optional_modules", "core_web_vitals", "databricks", "snowplow_unified_web_vital_measurements"], "alias": "snowplow_unified_web_vital_measurements", "checksum": {"name": "sha256", "checksum": "bdc272b0245b792e12c19419b07c39fc973fc3feb9ce61f3cad31725efda1255"}, "config": {"enabled": false, "alias": null, "schema": "derived", "database": null, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "derived", "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals"], "enabled": false}, "created_at": 1706612342.6073623, "config_call_dict": {"materialized": "table", "enabled": false}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_web_vital_measurements", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized='table',\n enabled=var(\"snowplow__enable_cwv\", false) and target.type in ('databricks', 'spark') | as_bool()\n )\n}}\n\nwith measurements as (\n\n select\n page_url,\n device_class,\n geo_country,\n cast( {{ dbt.date_trunc('day', 'derived_tstamp') }} as {{ dbt.type_string() }}) as time_period,\n count(*) as view_count,\n grouping_id() as grouping_ids,\n percentile_cont(0.{{ var('snowplow__cwv_percentile') }}) within group (order by lcp) as lcp_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(0.{{ var('snowplow__cwv_percentile') }}) within group (order by fid) as fid_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(0.{{ var('snowplow__cwv_percentile') }}) within group (order by cls) as cls_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(0.{{ var('snowplow__cwv_percentile') }}) within group (order by ttfb) as ttfb_{{ var('snowplow__cwv_percentile') }}p,\n percentile_cont(0.{{ var('snowplow__cwv_percentile') }}) within group (order by inp) as inp_{{ var('snowplow__cwv_percentile') }}p\n from {{ ref('snowplow_unified_web_vitals') }}\n\n where cast(derived_tstamp as date) >= {{ dateadd('day', '-'+var('snowplow__cwv_days_to_measure')|string, date_trunc('day', snowplow_utils.current_timestamp_in_utc())) }}\n\n group by cube(page_url, device_class,cast( {{ dbt.date_trunc('day', 'derived_tstamp') }} as {{ dbt.type_string() }}), geo_country)\n\n)\n\n, measurement_type as (\n\n select\n *,\n case when grouping_ids = 15 then 'overall'\n when grouping_ids = 3 then 'by_url_and_device'\n when grouping_ids = 9 then 'by_day_and_device'\n when grouping_ids = 10 then 'by_country_and_device'\n when grouping_ids = 14 then 'by_country'\n when grouping_ids = 11 then 'by_device'\n when grouping_ids = 13 then 'by_day'\n end as measurement_type,\n {{ snowplow_unified.core_web_vital_results_query('_' + var('snowplow__cwv_percentile') | string + 'p') }}\n\n from measurements\n)\n\n, coalesce as (\n\n select\n m.measurement_type,\n coalesce(m.page_url, 'all') as page_url,\n coalesce(m.device_class, 'all') as device_class,\n coalesce(m.geo_country, 'all') as geo_country,\n coalesce(g.name, 'all') as country,\n coalesce(m.time_period, 'last {{var(\"snowplow__cwv_days_to_measure\")|string }} days') as time_period,\n m.view_count,\n ceil(m.lcp_{{ var('snowplow__cwv_percentile') }}p, 3) as lcp_{{ var('snowplow__cwv_percentile') }}p,\n ceil(m.fid_{{ var('snowplow__cwv_percentile') }}p, 3) as fid_{{ var('snowplow__cwv_percentile') }}p,\n ceil(m.cls_{{ var('snowplow__cwv_percentile') }}p, 3) as cls_{{ var('snowplow__cwv_percentile') }}p,\n ceil(m.ttfb_{{ var('snowplow__cwv_percentile') }}p, 3) as ttfb_{{ var('snowplow__cwv_percentile') }}p,\n ceil(m.inp_{{ var('snowplow__cwv_percentile') }}p, 3) as inp_{{ var('snowplow__cwv_percentile') }}p,\n m.lcp_result,\n m.fid_result,\n m.cls_result,\n m.ttfb_result,\n m.inp_result,\n {{ snowplow_unified.core_web_vital_pass_query() }} as passed\n\n from measurement_type m\n\n left join {{ ref(var('snowplow__geo_mapping_seed')) }} g on lower(m.geo_country) = lower(g.alpha_2)\n\n where measurement_type is not null\n\n order by 1\n\n)\n\nselect\n {{ dbt.concat(['page_url', \"'-'\" , 'device_class', \"'-'\" , 'geo_country', \"'-'\" , 'time_period' ]) }} compound_key,\n *\nfrom coalesce", "language": "sql", "refs": [{"name": "snowplow_unified_web_vitals", "package": null, "version": null}, {"name": "snowplow_unified_dim_geo_country_mapping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.type_string", "macro.snowplow_utils.current_timestamp_in_utc", "macro.dbt.dateadd", "macro.snowplow_unified.core_web_vital_results_query", "macro.snowplow_unified.core_web_vital_pass_query", "macro.dbt.concat"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}, {"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_derived", "name": "snowplow_unified_web_vital_measurements", "resource_type": "model", "package_name": "snowplow_unified", "path": "optional_modules/core_web_vitals/default/snowplow_unified_web_vital_measurements.sql", "original_file_path": "models/optional_modules/core_web_vitals/default/snowplow_unified_web_vital_measurements.sql", "unique_id": "model.snowplow_unified.snowplow_unified_web_vital_measurements", "fqn": ["snowplow_unified", "optional_modules", "core_web_vitals", "default", "snowplow_unified_web_vital_measurements"], "alias": "snowplow_unified_web_vital_measurements", "checksum": {"name": "sha256", "checksum": "5fcef7c127eb7b719457687031739af6a9db86686c1d4733f9dd730d87e99b5e"}, "config": {"enabled": false, "alias": null, "schema": "derived", "database": null, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "derived", "tags": ["snowplow_unified_incremental", "derived", "core_web_vitals"], "enabled": false}, "created_at": 1706612342.626585, "config_call_dict": {"materialized": "table", "enabled": false}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_derived.snowplow_unified_web_vital_measurements", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n materialized='table',\n enabled=var(\"snowplow__enable_cwv\", false) and target.type in ('redshift', 'postgres') | as_bool(),\n )\n}}\n\n{% if target.type == 'redshift'%}\n {% set grouping_function = 'grouping_id' %}\n{% else %}\n {% set grouping_function = 'grouping' %}\n{% endif %}\n\nwith prep as (\n\n select\n page_url,\n device_class,\n geo_country,\n concat(cast({{ date_trunc('day', 'derived_tstamp') }} as {{ type_string() }}),'.000') as time_period,\n lcp,\n fid,\n cls,\n ttfb,\n inp\n\n from {{ ref('snowplow_unified_web_vitals') }}\n\n where cast(derived_tstamp as date) >= {{ dateadd('day', '-'+var('snowplow__cwv_days_to_measure')|string, date_trunc('day', snowplow_utils.current_timestamp_in_utc())) }}\n\n)\n\n, lcp_measurements as (\n\n select\n {{ dbt_utils.generate_surrogate_key(['page_url', 'device_class', 'geo_country', 'time_period' ]) }} surrogate_key,\n page_url,\n device_class,\n geo_country,\n time_period,\n count(*) as view_count,\n {{ grouping_function }}(page_url, device_class) as id_url_and_device,\n {{ grouping_function }}(device_class) as id_device,\n {{ grouping_function }}(time_period) as id_period,\n {{ grouping_function }}(time_period, device_class) as id_period_and_device,\n {{ grouping_function }}(geo_country) as id_country,\n {{ grouping_function }}(geo_country, device_class) as id_country_and_device,\n percentile_cont(0.{{ var('snowplow__cwv_percentile') }}) within group (order by lcp) as lcp_{{ var('snowplow__cwv_percentile') }}p\n\n from prep\n\n group by grouping sets ((), (page_url, device_class), (device_class), (time_period), (time_period, device_class), (geo_country), (geo_country, device_class))\n\n)\n\n, fid_measurements as (\n\n select\n {{ dbt_utils.generate_surrogate_key(['page_url', 'device_class', 'geo_country', 'time_period' ]) }} surrogate_key,\n page_url,\n device_class,\n geo_country,\n time_period,\n count(*) as view_count,\n {{ grouping_function }}(page_url, device_class) as id_url_and_device,\n {{ grouping_function }}(device_class) as id_device,\n {{ grouping_function }}(time_period) as id_period,\n {{ grouping_function }}(time_period, device_class) as id_period_and_device,\n {{ grouping_function }}(geo_country) as id_country,\n {{ grouping_function }}(geo_country, device_class) as id_country_and_device,\n percentile_cont(0.{{ var('snowplow__cwv_percentile') }}) within group (order by fid) as fid_{{ var('snowplow__cwv_percentile') }}p\n\n from prep\n\n group by grouping sets ((), (page_url, device_class), (device_class), (time_period), (time_period, device_class), (geo_country), (geo_country, device_class))\n\n)\n\n, cls_measurements as (\n\n select\n {{ dbt_utils.generate_surrogate_key(['page_url', 'device_class', 'geo_country', 'time_period' ]) }} surrogate_key,\n page_url,\n device_class,\n geo_country,\n time_period,\n count(*) as view_count,\n {{ grouping_function }}(page_url, device_class) as id_url_and_device,\n {{ grouping_function }}(device_class) as id_device,\n {{ grouping_function }}(time_period) as id_period,\n {{ grouping_function }}(time_period, device_class) as id_period_and_device,\n {{ grouping_function }}(geo_country) as id_country,\n {{ grouping_function }}(geo_country, device_class) as id_country_and_device,\n percentile_cont(0.{{ var('snowplow__cwv_percentile') }}) within group (order by cls) as cls_{{ var('snowplow__cwv_percentile') }}p\n\n from prep\n\n group by grouping sets ((), (page_url, device_class), (device_class), (time_period), (time_period, device_class), (geo_country), (geo_country, device_class))\n\n)\n\n, ttfb_measurements as (\n\n select\n {{ dbt_utils.generate_surrogate_key(['page_url', 'device_class', 'geo_country', 'time_period' ]) }} surrogate_key,\n page_url,\n device_class,\n geo_country,\n time_period,\n count(*) as view_count,\n {{ grouping_function }}(page_url, device_class) as id_url_and_device,\n {{ grouping_function }}(device_class) as id_device,\n {{ grouping_function }}(time_period) as id_period,\n {{ grouping_function }}(time_period, device_class) as id_period_and_device,\n {{ grouping_function }}(geo_country) as id_country,\n {{ grouping_function }}(geo_country, device_class) as id_country_and_device,\n percentile_cont(0.{{ var('snowplow__cwv_percentile') }}) within group (order by ttfb) as ttfb_{{ var('snowplow__cwv_percentile') }}p\n\n from prep\n\n group by grouping sets ((), (page_url, device_class), (device_class), (time_period), (time_period, device_class), (geo_country), (geo_country, device_class))\n\n)\n\n, inp_measurements as (\n\n select\n {{ dbt_utils.generate_surrogate_key(['page_url', 'device_class', 'geo_country', 'time_period' ]) }} surrogate_key,\n page_url,\n device_class,\n geo_country,\n time_period,\n count(*) as view_count,\n {{ grouping_function }}(page_url, device_class) as id_url_and_device,\n {{ grouping_function }}(device_class) as id_device,\n {{ grouping_function }}(time_period) as id_period,\n {{ grouping_function }}(time_period, device_class) as id_period_and_device,\n {{ grouping_function }}(geo_country) as id_country,\n {{ grouping_function }}(geo_country, device_class) as id_country_and_device,\n percentile_cont(0.{{ var('snowplow__cwv_percentile') }}) within group (order by inp) as inp_{{ var('snowplow__cwv_percentile') }}p\n\n from prep\n\n group by grouping sets ((), (page_url, device_class), (device_class), (time_period), (time_period, device_class), (geo_country), (geo_country, device_class))\n\n)\n\n, measurements as (\n\n select\n l.*,\n f.fid_{{ var('snowplow__cwv_percentile') }}p,\n c.cls_{{ var('snowplow__cwv_percentile') }}p,\n t.ttfb_{{ var('snowplow__cwv_percentile') }}p,\n i.inp_{{ var('snowplow__cwv_percentile') }}p\n\n from lcp_measurements l\n\n left join fid_measurements f on l.surrogate_key = f.surrogate_key\n\n left join cls_measurements c on l.surrogate_key = c.surrogate_key\n\n left join ttfb_measurements t on l.surrogate_key = t.surrogate_key\n\n left join inp_measurements i on l.surrogate_key = i.surrogate_key\n\n)\n\n, measurement_type as (\n\n select\n *,\n case when id_url_and_device <> 0 and id_device <> 0 and id_period <> 0 and id_period_and_device <> 0 and id_country <> 0 and id_country_and_device <> 0 then 'overall'\n when id_url_and_device = 0 then 'by_url_and_device'\n when id_period_and_device = 0 then 'by_day_and_device'\n when id_country_and_device = 0 then 'by_country_and_device'\n when id_country = 0 then 'by_country'\n when id_device = 0 then 'by_device'\n when id_period = 0 then 'by_day'\n end as measurement_type,\n {{ snowplow_unified.core_web_vital_results_query('_' + var('snowplow__cwv_percentile') | string + 'p') }}\n\n from measurements\n)\n\n\n, coalesce as (\n\n select\n measurement_type,\n coalesce(m.page_url, 'all') as page_url,\n coalesce(m.device_class, 'all') as device_class,\n coalesce(m.geo_country, 'all') as geo_country,\n coalesce(g.name, 'all') as country,\n coalesce(time_period, 'last {{var(\"snowplow__cwv_days_to_measure\")|string }} days') as time_period,\n view_count,\n ceil(cast(lcp_{{ var('snowplow__cwv_percentile') }}p as decimal(14,4))*1000) /1000 as lcp_{{ var('snowplow__cwv_percentile') }}p,\n ceil(cast(fid_{{ var('snowplow__cwv_percentile') }}p as decimal(14,4))*1000) /1000 as fid_{{ var('snowplow__cwv_percentile') }}p,\n ceil(cast(cls_{{ var('snowplow__cwv_percentile') }}p as decimal(14,4))*1000) /1000 as cls_{{ var('snowplow__cwv_percentile') }}p,\n ceil(cast(ttfb_{{ var('snowplow__cwv_percentile') }}p as decimal(14,4))*1000) /1000 as ttfb_{{ var('snowplow__cwv_percentile') }}p,\n ceil(cast(inp_{{ var('snowplow__cwv_percentile') }}p as decimal(14,4))*1000) /1000 as inp_{{ var('snowplow__cwv_percentile') }}p,\n m.lcp_result,\n m.fid_result,\n m.cls_result,\n m.ttfb_result,\n m.inp_result,\n {{ snowplow_unified.core_web_vital_pass_query() }} as passed\n\n from measurement_type m\n\n left join {{ ref(var('snowplow__geo_mapping_seed')) }} g on lower(m.geo_country) = lower(g.alpha_2)\n\n order by 1\n\n)\n\nselect\n\n {{ dbt.concat(['page_url', \"'-'\" , 'device_class', \"'-'\" , 'geo_country', \"'-'\" , 'time_period' ]) }} compound_key,\n measurement_type,\n page_url,\n device_class,\n geo_country,\n country,\n time_period,\n view_count,\n lcp_{{ var('snowplow__cwv_percentile') }}p,\n fid_{{ var('snowplow__cwv_percentile') }}p,\n cls_{{ var('snowplow__cwv_percentile') }}p,\n ttfb_{{ var('snowplow__cwv_percentile') }}p,\n inp_{{ var('snowplow__cwv_percentile') }}p,\n lcp_result,\n fid_result,\n cls_result,\n ttfb_result,\n inp_result,\n passed\n\nfrom coalesce", "language": "sql", "refs": [{"name": "snowplow_unified_web_vitals", "package": null, "version": null}, {"name": "snowplow_unified_dim_geo_country_mapping", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.type_string", "macro.snowplow_utils.current_timestamp_in_utc", "macro.dbt.dateadd", "macro.dbt_utils.generate_surrogate_key", "macro.snowplow_unified.core_web_vital_results_query", "macro.snowplow_unified.core_web_vital_pass_query", "macro.dbt.concat"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "model.snowplow_unified.snowplow_unified_session_screen_summary_metrics": [{"database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_scratch", "name": "snowplow_unified_session_screen_summary_metrics", "resource_type": "model", "package_name": "snowplow_unified", "path": "sessions/scratch/snowplow_unified_session_screen_summary_metrics.sql", "original_file_path": "models/sessions/scratch/snowplow_unified_session_screen_summary_metrics.sql", "unique_id": "model.snowplow_unified.snowplow_unified_session_screen_summary_metrics", "fqn": ["snowplow_unified", "sessions", "scratch", "snowplow_unified_session_screen_summary_metrics"], "alias": "snowplow_unified_session_screen_summary_metrics", "checksum": {"name": "sha256", "checksum": "e6215a5bd3e695461adf4719b8b7215c1a4d066d9b555b80421b3f39fe1228c1"}, "config": {"enabled": false, "alias": null, "schema": "scratch", "database": null, "tags": ["snowplow_unified_incremental", "scratch"], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "file_format": "delta", "bind": false, "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "post-hook": [], "pre-hook": []}, "tags": ["snowplow_unified_incremental", "scratch"], "description": "{{ doc(\"table_session_screen_summary_metrics\") }}", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "snowplow_unified://models/sessions/scratch/sessions_scratch.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "file_format": "delta", "bind": false, "schema": "scratch", "tags": "scratch", "sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "enabled": false}, "created_at": 1706612344.3532026, "config_call_dict": {"sql_header": "\n alter session set query_tag = 'snowplow_dbt';\n", "enabled": false}, "relation_name": "SNOWPLOW_DEV1.gh_sp_web_dbt_1_6_scratch.snowplow_unified_session_screen_summary_metrics", "raw_code": "{#\nCopyright (c) 2023-present Snowplow Analytics Ltd. All rights reserved.\nThis program is licensed to you under the Snowplow Personal and Academic License Version 1.0,\nand you may not use this file except in compliance with the Snowplow Personal and Academic License Version 1.0.\nYou 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/\n#}\n\n{{\n config(\n sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt')),\n enabled=var(\"snowplow__enable_screen_summary_context\", false)\n )\n}}\n\nwith by_views as (\n select\n ev.view_id\n , ev.session_identifier\n , max(ev.screen_summary__foreground_sec) as foreground_sec\n\n from {{ ref('snowplow_unified_events_this_run') }} as ev\n\n where ev.view_id is not null\n and ev.platform <> 'web'\n and ev.event_name in ('screen_end', 'application_background', 'application_foreground')\n\n group by 1, 2\n)\n\n, by_sessions as (\n select\n session_identifier\n , cast(round(sum(foreground_sec)) as {{ type_int() }}) as foreground_sec\n\n from by_views\n\n group by 1\n)\n\nselect *\n\nfrom by_sessions", "language": "sql", "refs": [{"name": "snowplow_unified_events_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snowplow_utils.set_query_tag", "macro.dbt.type_int"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null, "defer_relation": null}], "test.snowplow_unified.not_null_snowplow_unified_conversions_this_run_event_id.c8eea12486": [{"test_metadata": {"name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_conversions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_conversions_this_run_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_conversions_this_run_event_id.sql", "original_file_path": "models/optional_modules/conversions/conversions.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_conversions_this_run_event_id.c8eea12486", "fqn": ["snowplow_unified", "optional_modules", "conversions", "not_null_snowplow_unified_conversions_this_run_event_id"], "alias": "not_null_snowplow_unified_conversions_this_run_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": false}, "created_at": 1706612344.2448, "config_call_dict": {"enabled": false}, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=False) }}", "language": "sql", "refs": [{"name": "snowplow_unified_conversions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_conversions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_conversions_this_run"}], "test.snowplow_unified.not_null_snowplow_unified_conversions_this_run_user_id.9af7c7b700": [{"test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_id", "model": "{{ get_where_subquery(ref('snowplow_unified_conversions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_conversions_this_run_user_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_conversions_this_run_user_id.sql", "original_file_path": "models/optional_modules/conversions/conversions.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_conversions_this_run_user_id.9af7c7b700", "fqn": ["snowplow_unified", "optional_modules", "conversions", "not_null_snowplow_unified_conversions_this_run_user_id"], "alias": "not_null_snowplow_unified_conversions_this_run_user_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": false}, "created_at": 1706612344.2479417, "config_call_dict": {"enabled": false}, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=False) }}", "language": "sql", "refs": [{"name": "snowplow_unified_conversions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "column_name": "user_id", "file_key_name": "models.snowplow_unified_conversions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_conversions_this_run"}], "test.snowplow_unified.not_null_snowplow_unified_conversions_this_run_session_identifier.218147705f": [{"test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_conversions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_conversions_this_run_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_conv_a69a8fcd85d094b22c8fe07d7b5c3c04.sql", "original_file_path": "models/optional_modules/conversions/conversions.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_conversions_this_run_session_identifier.218147705f", "fqn": ["snowplow_unified", "optional_modules", "conversions", "not_null_snowplow_unified_conversions_this_run_session_identifier"], "alias": "not_null_snowplow_unified_conv_a69a8fcd85d094b22c8fe07d7b5c3c04", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": "not_null_snowplow_unified_conv_a69a8fcd85d094b22c8fe07d7b5c3c04", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_snowplow_unified_conv_a69a8fcd85d094b22c8fe07d7b5c3c04", "enabled": false}, "created_at": 1706612344.250938, "config_call_dict": {"alias": "not_null_snowplow_unified_conv_a69a8fcd85d094b22c8fe07d7b5c3c04", "enabled": false}, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=False,alias=\"not_null_snowplow_unified_conv_a69a8fcd85d094b22c8fe07d7b5c3c04\") }}", "language": "sql", "refs": [{"name": "snowplow_unified_conversions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_conversions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_conversions_this_run"}], "test.snowplow_unified.not_null_snowplow_unified_conversions_this_run_user_identifier.aca7c7325f": [{"test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_conversions_this_run')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_conversions_this_run_user_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_conversions_this_run_user_identifier.sql", "original_file_path": "models/optional_modules/conversions/conversions.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_conversions_this_run_user_identifier.aca7c7325f", "fqn": ["snowplow_unified", "optional_modules", "conversions", "not_null_snowplow_unified_conversions_this_run_user_identifier"], "alias": "not_null_snowplow_unified_conversions_this_run_user_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": false}, "created_at": 1706612344.2538266, "config_call_dict": {"enabled": false}, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=False) }}", "language": "sql", "refs": [{"name": "snowplow_unified_conversions_this_run", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "column_name": "user_identifier", "file_key_name": "models.snowplow_unified_conversions_this_run", "attached_node": "model.snowplow_unified.snowplow_unified_conversions_this_run"}], "test.snowplow_unified.not_null_snowplow_unified_conversions_event_id.39ff55f555": [{"test_metadata": {"name": "not_null", "kwargs": {"column_name": "event_id", "model": "{{ get_where_subquery(ref('snowplow_unified_conversions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_conversions_event_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_conversions_event_id.sql", "original_file_path": "models/optional_modules/conversions/conversions.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_conversions_event_id.39ff55f555", "fqn": ["snowplow_unified", "optional_modules", "conversions", "not_null_snowplow_unified_conversions_event_id"], "alias": "not_null_snowplow_unified_conversions_event_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": ["primary-key"], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": false}, "created_at": 1706612344.257105, "config_call_dict": {"enabled": false}, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=False) }}", "language": "sql", "refs": [{"name": "snowplow_unified_conversions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "column_name": "event_id", "file_key_name": "models.snowplow_unified_conversions", "attached_node": "model.snowplow_unified.snowplow_unified_conversions"}], "test.snowplow_unified.not_null_snowplow_unified_conversions_user_id.d138f3fc75": [{"test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_id", "model": "{{ get_where_subquery(ref('snowplow_unified_conversions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_conversions_user_id", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_conversions_user_id.sql", "original_file_path": "models/optional_modules/conversions/conversions.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_conversions_user_id.d138f3fc75", "fqn": ["snowplow_unified", "optional_modules", "conversions", "not_null_snowplow_unified_conversions_user_id"], "alias": "not_null_snowplow_unified_conversions_user_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": false}, "created_at": 1706612344.2599916, "config_call_dict": {"enabled": false}, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=False) }}", "language": "sql", "refs": [{"name": "snowplow_unified_conversions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "column_name": "user_id", "file_key_name": "models.snowplow_unified_conversions", "attached_node": "model.snowplow_unified.snowplow_unified_conversions"}], "test.snowplow_unified.not_null_snowplow_unified_conversions_session_identifier.e61f15ab16": [{"test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_conversions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_conversions_session_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_conversions_session_identifier.sql", "original_file_path": "models/optional_modules/conversions/conversions.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_conversions_session_identifier.e61f15ab16", "fqn": ["snowplow_unified", "optional_modules", "conversions", "not_null_snowplow_unified_conversions_session_identifier"], "alias": "not_null_snowplow_unified_conversions_session_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": false}, "created_at": 1706612344.262844, "config_call_dict": {"enabled": false}, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=False) }}", "language": "sql", "refs": [{"name": "snowplow_unified_conversions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "column_name": "session_identifier", "file_key_name": "models.snowplow_unified_conversions", "attached_node": "model.snowplow_unified.snowplow_unified_conversions"}], "test.snowplow_unified.not_null_snowplow_unified_conversions_user_identifier.c9cd913004": [{"test_metadata": {"name": "not_null", "kwargs": {"column_name": "user_identifier", "model": "{{ get_where_subquery(ref('snowplow_unified_conversions')) }}"}, "namespace": null}, "database": "SNOWPLOW_DEV1", "schema": "gh_sp_web_dbt_1_6_dbt_test__audit", "name": "not_null_snowplow_unified_conversions_user_identifier", "resource_type": "test", "package_name": "snowplow_unified", "path": "not_null_snowplow_unified_conversions_user_identifier.sql", "original_file_path": "models/optional_modules/conversions/conversions.yml", "unique_id": "test.snowplow_unified.not_null_snowplow_unified_conversions_user_identifier.c9cd913004", "fqn": ["snowplow_unified", "optional_modules", "conversions", "not_null_snowplow_unified_conversions_user_identifier"], "alias": "not_null_snowplow_unified_conversions_user_identifier", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": false, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": false}, "created_at": 1706612344.2657166, "config_call_dict": {"enabled": false}, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=False) }}", "language": "sql", "refs": [{"name": "snowplow_unified_conversions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "column_name": "user_identifier", "file_key_name": "models.snowplow_unified_conversions", "attached_node": "model.snowplow_unified.snowplow_unified_conversions"}]}, "parent_map": {"model.snowplow_unified_integration_tests.test_late_enabled_contexts": ["model.snowplow_unified.snowplow_unified_events_this_run"], "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_actual": ["model.snowplow_unified.snowplow_unified_base_quarantined_sessions"], "model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_actual": ["model.snowplow_unified.snowplow_unified_web_vital_measurements"], "model.snowplow_unified_integration_tests.snowplow_unified_sessions_actual": ["model.snowplow_unified.snowplow_unified_sessions"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_actual": ["model.snowplow_unified.snowplow_unified_consent_log"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_actual": ["model.snowplow_unified.snowplow_unified_consent_users"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_actual": ["model.snowplow_unified.snowplow_unified_consent_scope_status"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_actual": ["model.snowplow_unified.snowplow_unified_consent_totals"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_actual": ["model.snowplow_unified.snowplow_unified_consent_versions"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_actual": ["model.snowplow_unified.snowplow_unified_consent_cmp_stats"], "model.snowplow_unified_integration_tests.snowplow_unified_views_actual": ["model.snowplow_unified.snowplow_unified_views"], "model.snowplow_unified_integration_tests.snowplow_unified_users_actual": ["model.snowplow_unified.snowplow_unified_users"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected_stg": ["seed.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected"], "model.snowplow_unified_integration_tests.snowplow_unified_sessions_expected_stg": ["seed.snowplow_unified_integration_tests.snowplow_unified_sessions_expected"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected_stg": ["seed.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected"], "model.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected_stg": ["seed.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected_stg": ["seed.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected"], "model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected_stg": ["seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected"], "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected_stg": ["seed.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected_stg": ["seed.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected"], "model.snowplow_unified_integration_tests.snowplow_unified_views_expected_stg": ["seed.snowplow_unified_integration_tests.snowplow_unified_views_expected"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected_stg": ["seed.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected"], "model.snowplow_unified_integration_tests.snowplow_unified_users_expected_stg": ["seed.snowplow_unified_integration_tests.snowplow_unified_users_expected"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected_stg": ["seed.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected"], "model.snowplow_unified_integration_tests.snowplow_unified_events_stg": ["seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_events"], "seed.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected": [], "seed.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected": [], "seed.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected": [], "seed.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected": [], "seed.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected": [], "seed.snowplow_unified_integration_tests.snowplow_unified_views_expected": [], "seed.snowplow_unified_integration_tests.snowplow_unified_users_expected": [], "seed.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected": [], "seed.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected": [], "seed.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected": [], "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected": [], "seed.snowplow_unified_integration_tests.snowplow_unified_sessions_expected": [], "seed.snowplow_unified_integration_tests.snowplow_unified_cwv": [], "seed.snowplow_unified_integration_tests.snowplow_unified_screen_engagement_events": [], "seed.snowplow_unified_integration_tests.snowplow_unified_session_context": [], "seed.snowplow_unified_integration_tests.snowplow_unified_events": [], "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_events": [], "seed.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_visible": [], "seed.snowplow_unified_integration_tests.snowplow_unified_geolocation_context": [], "seed.snowplow_unified_integration_tests.snowplow_unified_consent_preferences": [], "seed.snowplow_unified_integration_tests.snowplow_unified_screen_view_event": [], "model.snowplow_unified.snowplow_unified_views": ["model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_incremental_manifest", "model.snowplow_unified.snowplow_unified_views_this_run"], "model.snowplow_unified.snowplow_unified_pv_engaged_time": ["model.snowplow_unified.snowplow_unified_events_this_run"], "model.snowplow_unified.snowplow_unified_pv_scroll_depth": ["model.snowplow_unified.snowplow_unified_events_this_run"], "model.snowplow_unified.snowplow_unified_views_this_run": ["model.snowplow_unified.snowplow_unified_events_this_run", "model.snowplow_unified.snowplow_unified_pv_engaged_time", "model.snowplow_unified.snowplow_unified_pv_scroll_depth", "seed.snowplow_unified.snowplow_unified_dim_ga4_source_categories"], "model.snowplow_unified.snowplow_unified_base_sessions_this_run": ["model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_base_quarantined_sessions", "model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest"], "model.snowplow_unified.snowplow_unified_base_new_event_limits": ["model.snowplow_unified.snowplow_unified_incremental_manifest"], "model.snowplow_unified.snowplow_unified_base_events_this_run": ["model.snowplow_unified.snowplow_unified_base_sessions_this_run"], "model.snowplow_unified.snowplow_unified_events_this_run": ["model.snowplow_unified.snowplow_unified_base_events_this_run"], "model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest": ["model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_base_quarantined_sessions", "model.snowplow_unified.snowplow_unified_incremental_manifest"], "model.snowplow_unified.snowplow_unified_base_quarantined_sessions": [], "model.snowplow_unified.snowplow_unified_incremental_manifest": [], "model.snowplow_unified.snowplow_unified_users": ["model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_incremental_manifest", "model.snowplow_unified.snowplow_unified_user_mapping", "model.snowplow_unified.snowplow_unified_users_this_run"], "model.snowplow_unified.snowplow_unified_users_aggs": ["model.snowplow_unified.snowplow_unified_users_sessions_this_run"], "model.snowplow_unified.snowplow_unified_users_lasts": ["model.snowplow_unified.snowplow_unified_users_aggs", "model.snowplow_unified.snowplow_unified_users_sessions_this_run"], "model.snowplow_unified.snowplow_unified_users_this_run": ["model.snowplow_unified.snowplow_unified_users_aggs", "model.snowplow_unified.snowplow_unified_users_lasts", "model.snowplow_unified.snowplow_unified_users_sessions_this_run"], "model.snowplow_unified.snowplow_unified_users_sessions_this_run": ["model.snowplow_unified.snowplow_unified_base_sessions_this_run", "model.snowplow_unified.snowplow_unified_sessions"], "model.snowplow_unified.snowplow_unified_consent_cmp_stats": ["model.snowplow_unified.snowplow_unified_consent_log"], "model.snowplow_unified.snowplow_unified_consent_log": ["model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_consent_events_this_run", "model.snowplow_unified.snowplow_unified_incremental_manifest"], "model.snowplow_unified.snowplow_unified_consent_versions": ["model.snowplow_unified.snowplow_unified_consent_log"], "model.snowplow_unified.snowplow_unified_consent_scope_status": ["model.snowplow_unified.snowplow_unified_consent_users"], "model.snowplow_unified.snowplow_unified_consent_users": ["model.snowplow_unified.snowplow_unified_consent_log", "model.snowplow_unified.snowplow_unified_consent_versions"], "model.snowplow_unified.snowplow_unified_consent_totals": ["model.snowplow_unified.snowplow_unified_consent_users", "model.snowplow_unified.snowplow_unified_consent_versions"], "model.snowplow_unified.snowplow_unified_consent_events_this_run": ["model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_events_this_run", "model.snowplow_unified.snowplow_unified_incremental_manifest"], "model.snowplow_unified.snowplow_unified_app_errors": ["model.snowplow_unified.snowplow_unified_app_errors_this_run", "model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_incremental_manifest"], "model.snowplow_unified.snowplow_unified_app_errors_this_run": ["model.snowplow_unified.snowplow_unified_events_this_run"], "model.snowplow_unified.snowplow_unified_web_vitals": ["model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_incremental_manifest", "model.snowplow_unified.snowplow_unified_web_vitals_this_run"], "model.snowplow_unified.snowplow_unified_web_vital_measurements": ["model.snowplow_unified.snowplow_unified_web_vitals", "seed.snowplow_unified.snowplow_unified_dim_geo_country_mapping"], "model.snowplow_unified.snowplow_unified_web_vitals_this_run": ["model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_incremental_manifest", "model.snowplow_unified.snowplow_unified_web_vital_events_this_run"], "model.snowplow_unified.snowplow_unified_web_vital_events_this_run": ["model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_events_this_run", "model.snowplow_unified.snowplow_unified_incremental_manifest"], "model.snowplow_unified.snowplow_unified_sessions": ["model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_incremental_manifest", "model.snowplow_unified.snowplow_unified_sessions_this_run", "model.snowplow_unified.snowplow_unified_user_mapping"], "model.snowplow_unified.snowplow_unified_sessions_this_run": ["model.snowplow_unified.snowplow_unified_events_this_run", "seed.snowplow_unified.snowplow_unified_dim_ga4_source_categories", "seed.snowplow_unified.snowplow_unified_dim_geo_country_mapping", "seed.snowplow_unified.snowplow_unified_dim_rfc_5646_language_mapping"], "model.snowplow_unified.snowplow_unified_user_mapping": ["model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_events_this_run", "model.snowplow_unified.snowplow_unified_incremental_manifest"], "test.snowplow_unified.snowplow_tests_consent_versions": ["model.snowplow_unified.snowplow_unified_consent_versions"], "test.snowplow_unified.snowplow_tests_view_in_session_values": ["model.snowplow_unified.snowplow_unified_views"], "seed.snowplow_unified.snowplow_unified_dim_geo_country_mapping": [], "seed.snowplow_unified.snowplow_unified_dim_rfc_5646_language_mapping": [], "seed.snowplow_unified.snowplow_unified_dim_ga4_source_categories": [], "operation.snowplow_unified.snowplow_unified-on-run-start-0": [], "operation.snowplow_unified.snowplow_unified-on-run-start-1": [], "operation.snowplow_unified.snowplow_unified-on-run-end-0": ["model.snowplow_unified.snowplow_unified_base_events_this_run", "model.snowplow_unified.snowplow_unified_incremental_manifest"], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_.541911e8f1": ["model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_actual", "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_.b675df62df": ["model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_actual", "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_.bcfd303281": ["model.snowplow_unified_integration_tests.snowplow_unified_views_actual", "model.snowplow_unified_integration_tests.snowplow_unified_views_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_.13f329e6b4": ["model.snowplow_unified_integration_tests.snowplow_unified_views_actual", "model.snowplow_unified_integration_tests.snowplow_unified_views_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_.deb9a7689f": ["model.snowplow_unified_integration_tests.snowplow_unified_sessions_actual", "model.snowplow_unified_integration_tests.snowplow_unified_sessions_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_.e1af6ef1db": ["model.snowplow_unified_integration_tests.snowplow_unified_sessions_actual", "model.snowplow_unified_integration_tests.snowplow_unified_sessions_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_.78448e6f51": ["model.snowplow_unified_integration_tests.snowplow_unified_users_actual", "model.snowplow_unified_integration_tests.snowplow_unified_users_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_.971c3ddd69": ["model.snowplow_unified_integration_tests.snowplow_unified_users_actual", "model.snowplow_unified_integration_tests.snowplow_unified_users_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_.22d90b662d": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_actual", "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_.ada2f282a8": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_actual", "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_.2bc14dd7de": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_log_actual", "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_.71b95e8674": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_log_actual", "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_.b8cacd3cab": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_actual", "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_.cd008a201b": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_actual", "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_.485f757328": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_actual", "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_.89fccda7d0": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_actual", "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_.8251b18a75": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_users_actual", "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_.ed39291772": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_users_actual", "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_.7b92210c06": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_actual", "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_.6e4043b1d2": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_actual", "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg_.d3e434d0cf": ["model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_actual", "model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected_stg"], "test.snowplow_unified_integration_tests.snowplow_unified_integration_tests_equality_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg___3.2ce4bf2e3f": ["model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_actual", "model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected_stg"], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_views_mobile_screen_engagement_actual_ref_snowplow_unified_views_mobile_screen_engagement_expected_stg_.9b5480d2ee": ["model.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected_stg"], "test.snowplow_unified_integration_tests.snowplow_unified_integration_tests_equality_snowplow_unified_views_mobile_screen_engagement_actual_ref_snowplow_unified_views_mobile_screen_engagement_expected_stg___3.ffe28d2ef0": ["model.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected_stg"], "test.snowplow_unified.unique_snowplow_unified_views_view_id.deffd898f9": ["model.snowplow_unified.snowplow_unified_views"], "test.snowplow_unified.not_null_snowplow_unified_views_view_id.3a1d547e18": ["model.snowplow_unified.snowplow_unified_views"], "test.snowplow_unified.unique_snowplow_unified_views_event_id.e61ed6df21": ["model.snowplow_unified.snowplow_unified_views"], "test.snowplow_unified.not_null_snowplow_unified_views_event_id.4fc9c1e85a": ["model.snowplow_unified.snowplow_unified_views"], "test.snowplow_unified.not_null_snowplow_unified_views_session_identifier.f4ae3412ff": ["model.snowplow_unified.snowplow_unified_views"], "test.snowplow_unified.not_null_snowplow_unified_views_device_session_index.3a9aeaa22e": ["model.snowplow_unified.snowplow_unified_views"], "test.snowplow_unified.not_null_snowplow_unified_views_view_in_session_index.e092c63b1e": ["model.snowplow_unified.snowplow_unified_views"], "test.snowplow_unified.not_null_snowplow_unified_views_views_in_session.b139e474d0": ["model.snowplow_unified.snowplow_unified_views"], "test.snowplow_unified.not_null_snowplow_unified_views_dvce_created_tstamp.2cfe0b4cb4": ["model.snowplow_unified.snowplow_unified_views"], "test.snowplow_unified.not_null_snowplow_unified_views_collector_tstamp.826c18335b": ["model.snowplow_unified.snowplow_unified_views"], "test.snowplow_unified.not_null_snowplow_unified_views_derived_tstamp.8e5fcb344e": ["model.snowplow_unified.snowplow_unified_views"], "test.snowplow_unified.not_null_snowplow_unified_views_start_tstamp.dbc42b7f20": ["model.snowplow_unified.snowplow_unified_views"], "test.snowplow_unified.not_null_snowplow_unified_views_end_tstamp.901b1d09a9": ["model.snowplow_unified.snowplow_unified_views"], "test.snowplow_unified.not_null_snowplow_unified_views_engaged_time_in_s.dd74f36be9": ["model.snowplow_unified.snowplow_unified_views"], "test.snowplow_unified.not_null_snowplow_unified_views_absolute_time_in_s.54b3c5c9fc": ["model.snowplow_unified.snowplow_unified_views"], "test.snowplow_unified.unique_snowplow_unified_views_this_run_view_id.5cfb771408": ["model.snowplow_unified.snowplow_unified_views_this_run"], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_view_id.6bc7169d25": ["model.snowplow_unified.snowplow_unified_views_this_run"], "test.snowplow_unified.unique_snowplow_unified_views_this_run_event_id.5609868632": ["model.snowplow_unified.snowplow_unified_views_this_run"], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_event_id.1cbbdc3adf": ["model.snowplow_unified.snowplow_unified_views_this_run"], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_session_identifier.59be3a100c": ["model.snowplow_unified.snowplow_unified_views_this_run"], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_device_session_index.3c52b66c6d": ["model.snowplow_unified.snowplow_unified_views_this_run"], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_view_in_session_index.5ce5ac1b50": ["model.snowplow_unified.snowplow_unified_views_this_run"], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_views_in_session.6dc8364a51": ["model.snowplow_unified.snowplow_unified_views_this_run"], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_dvce_created_tstamp.19b30ff7fb": ["model.snowplow_unified.snowplow_unified_views_this_run"], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_collector_tstamp.98b0c0df1b": ["model.snowplow_unified.snowplow_unified_views_this_run"], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_derived_tstamp.3270a2d7ef": ["model.snowplow_unified.snowplow_unified_views_this_run"], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_start_tstamp.c8c1676039": ["model.snowplow_unified.snowplow_unified_views_this_run"], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_end_tstamp.4af862c0e6": ["model.snowplow_unified.snowplow_unified_views_this_run"], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_engaged_time_in_s.efb00705e1": ["model.snowplow_unified.snowplow_unified_views_this_run"], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_absolute_time_in_s.960178ffa8": ["model.snowplow_unified.snowplow_unified_views_this_run"], "test.snowplow_unified.not_null_snowplow_unified_pv_engaged_time_view_id.fab3bfc907": ["model.snowplow_unified.snowplow_unified_pv_engaged_time"], "test.snowplow_unified.not_null_snowplow_unified_pv_engaged_time_session_identifier.369fb4dedc": ["model.snowplow_unified.snowplow_unified_pv_engaged_time"], "test.snowplow_unified.unique_snowplow_unified_pv_engaged_time__view_id_session_identifier_.f0fca93783": ["model.snowplow_unified.snowplow_unified_pv_engaged_time"], "test.snowplow_unified.not_null_snowplow_unified_pv_scroll_depth_view_id.0e2d9dba7d": ["model.snowplow_unified.snowplow_unified_pv_scroll_depth"], "test.snowplow_unified.unique_snowplow_unified_pv_scroll_depth__view_id_session_identifier_.009d0ff70e": ["model.snowplow_unified.snowplow_unified_pv_scroll_depth"], "test.snowplow_unified.not_null_snowplow_unified_screen_summary_metrics_view_id.16d2af0899": [], "test.snowplow_unified.unique_snowplow_unified_screen_summary_metrics__view_id_session_identifier_.fda2881a90": [], "test.snowplow_unified.unique_snowplow_unified_base_sessions_this_run_session_identifier.4db28e3b1d": ["model.snowplow_unified.snowplow_unified_base_sessions_this_run"], "test.snowplow_unified.not_null_snowplow_unified_base_sessions_this_run_session_identifier.15278d0f20": ["model.snowplow_unified.snowplow_unified_base_sessions_this_run"], "test.snowplow_unified.unique_snowplow_unified_base_events_this_run_event_id.9d8628f1f4": ["model.snowplow_unified.snowplow_unified_base_events_this_run"], "test.snowplow_unified.not_null_snowplow_unified_base_events_this_run_event_id.e3cb52ed73": ["model.snowplow_unified.snowplow_unified_base_events_this_run"], "test.snowplow_unified.unique_snowplow_unified_events_this_run_event_id.d04b0599f5": ["model.snowplow_unified.snowplow_unified_events_this_run"], "test.snowplow_unified.not_null_snowplow_unified_events_this_run_event_id.152f747832": ["model.snowplow_unified.snowplow_unified_events_this_run"], "test.snowplow_unified.unique_snowplow_unified_base_sessions_lifecycle_manifest_session_identifier.55eb56faed": ["model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest"], "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_session_identifier.b6a553df4c": ["model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest"], "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_start_tstamp.78e6f715a9": ["model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest"], "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_end_tstamp.68530988e8": ["model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest"], "test.snowplow_unified.unique_snowplow_unified_incremental_manifest_model.eae251f82d": ["model.snowplow_unified.snowplow_unified_incremental_manifest"], "test.snowplow_unified.not_null_snowplow_unified_incremental_manifest_model.5f8ae0dc3e": ["model.snowplow_unified.snowplow_unified_incremental_manifest"], "test.snowplow_unified.unique_snowplow_unified_base_quarantined_sessions_session_identifier.09ea66d5f8": ["model.snowplow_unified.snowplow_unified_base_quarantined_sessions"], "test.snowplow_unified.not_null_snowplow_unified_base_quarantined_sessions_session_identifier.aaf46f9514": ["model.snowplow_unified.snowplow_unified_base_quarantined_sessions"], "test.snowplow_unified.unique_snowplow_unified_users_user_identifier.fd4bf488ce": ["model.snowplow_unified.snowplow_unified_users"], "test.snowplow_unified.not_null_snowplow_unified_users_user_identifier.38f23dc040": ["model.snowplow_unified.snowplow_unified_users"], "test.snowplow_unified.not_null_snowplow_unified_users_network_userid.998e27e258": ["model.snowplow_unified.snowplow_unified_users"], "test.snowplow_unified.not_null_snowplow_unified_users_start_tstamp.5d33b09a65": ["model.snowplow_unified.snowplow_unified_users"], "test.snowplow_unified.not_null_snowplow_unified_users_end_tstamp.f58b0bcf06": ["model.snowplow_unified.snowplow_unified_users"], "test.snowplow_unified.not_null_snowplow_unified_users_views.bbd526f2de": ["model.snowplow_unified.snowplow_unified_users"], "test.snowplow_unified.not_null_snowplow_unified_users_sessions.55421015ef": ["model.snowplow_unified.snowplow_unified_users"], "test.snowplow_unified.not_null_snowplow_unified_users_engaged_time_in_s.c55717a97e": ["model.snowplow_unified.snowplow_unified_users"], "test.snowplow_unified.unique_snowplow_unified_users_this_run_user_identifier.84672e2e42": ["model.snowplow_unified.snowplow_unified_users_this_run"], "test.snowplow_unified.not_null_snowplow_unified_users_this_run_user_identifier.2a721feeaf": ["model.snowplow_unified.snowplow_unified_users_this_run"], "test.snowplow_unified.not_null_snowplow_unified_users_this_run_network_userid.01e75c2b66": ["model.snowplow_unified.snowplow_unified_users_this_run"], "test.snowplow_unified.not_null_snowplow_unified_users_this_run_start_tstamp.e6b6b8a018": ["model.snowplow_unified.snowplow_unified_users_this_run"], "test.snowplow_unified.not_null_snowplow_unified_users_this_run_end_tstamp.2343122421": ["model.snowplow_unified.snowplow_unified_users_this_run"], "test.snowplow_unified.not_null_snowplow_unified_users_this_run_views.6535b10483": ["model.snowplow_unified.snowplow_unified_users_this_run"], "test.snowplow_unified.not_null_snowplow_unified_users_this_run_sessions.3a2f33dcae": ["model.snowplow_unified.snowplow_unified_users_this_run"], "test.snowplow_unified.not_null_snowplow_unified_users_this_run_engaged_time_in_s.6c8ec87fc3": ["model.snowplow_unified.snowplow_unified_users_this_run"], "test.snowplow_unified.unique_snowplow_unified_users_aggs_user_identifier.7a0ce8ecea": ["model.snowplow_unified.snowplow_unified_users_aggs"], "test.snowplow_unified.not_null_snowplow_unified_users_aggs_user_identifier.67601373c5": ["model.snowplow_unified.snowplow_unified_users_aggs"], "test.snowplow_unified.unique_snowplow_unified_users_lasts_user_identifier.2e0875d502": ["model.snowplow_unified.snowplow_unified_users_lasts"], "test.snowplow_unified.not_null_snowplow_unified_users_lasts_user_identifier.bf9c874d36": ["model.snowplow_unified.snowplow_unified_users_lasts"], "test.snowplow_unified.unique_snowplow_unified_users_sessions_this_run_session_identifier.d123f43ae3": ["model.snowplow_unified.snowplow_unified_users_sessions_this_run"], "test.snowplow_unified.not_null_snowplow_unified_users_sessions_this_run_session_identifier.ccd4dad35f": ["model.snowplow_unified.snowplow_unified_users_sessions_this_run"], "test.snowplow_unified.unique_snowplow_unified_consent_log_event_id.cb11e5f422": ["model.snowplow_unified.snowplow_unified_consent_log"], "test.snowplow_unified.not_null_snowplow_unified_consent_log_event_id.d048b68e09": ["model.snowplow_unified.snowplow_unified_consent_log"], "test.snowplow_unified.accepted_values_snowplow_unified_consent_log_event_type__deny_all__allow_all__allow_selected__pending__implicit_consent__withdrawn__expired.0f024b208b": ["model.snowplow_unified.snowplow_unified_consent_log"], "test.snowplow_unified.unique_snowplow_unified_consent_users_user_identifier.e93ed6baff": ["model.snowplow_unified.snowplow_unified_consent_users"], "test.snowplow_unified.not_null_snowplow_unified_consent_users_user_identifier.6c2cb3f0a2": ["model.snowplow_unified.snowplow_unified_consent_users"], "test.snowplow_unified.unique_snowplow_unified_consent_scope_status_scope.cd80ea727a": ["model.snowplow_unified.snowplow_unified_consent_scope_status"], "test.snowplow_unified.not_null_snowplow_unified_consent_scope_status_scope.2b9365b124": ["model.snowplow_unified.snowplow_unified_consent_scope_status"], "test.snowplow_unified.unique_snowplow_unified_consent_cmp_stats_event_id.4bdb9bcc41": ["model.snowplow_unified.snowplow_unified_consent_cmp_stats"], "test.snowplow_unified.not_null_snowplow_unified_consent_cmp_stats_event_id.70b4093ca8": ["model.snowplow_unified.snowplow_unified_consent_cmp_stats"], "test.snowplow_unified.unique_snowplow_unified_consent_versions_consent_version.5ceb06b341": ["model.snowplow_unified.snowplow_unified_consent_versions"], "test.snowplow_unified.not_null_snowplow_unified_consent_versions_consent_version.309008d9d1": ["model.snowplow_unified.snowplow_unified_consent_versions"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_event_id.1927547c47": ["model.snowplow_unified.snowplow_unified_app_errors"], "test.snowplow_unified.unique_snowplow_unified_app_errors_event_id.f6537234ea": ["model.snowplow_unified.snowplow_unified_app_errors"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_user_identifier.f874778b72": ["model.snowplow_unified.snowplow_unified_app_errors"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_network_userid.5f50553758": ["model.snowplow_unified.snowplow_unified_app_errors"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_identifier.3099f21f2c": ["model.snowplow_unified.snowplow_unified_app_errors"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_index.0c20768315": ["model.snowplow_unified.snowplow_unified_app_errors"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_first_event_id.cc8700559f": ["model.snowplow_unified.snowplow_unified_app_errors"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_dvce_created_tstamp.f8ea85c5e4": ["model.snowplow_unified.snowplow_unified_app_errors"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_collector_tstamp.fd6db01a42": ["model.snowplow_unified.snowplow_unified_app_errors"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_derived_tstamp.57ca9d9382": ["model.snowplow_unified.snowplow_unified_app_errors"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_model_tstamp.1dbf1b6723": ["model.snowplow_unified.snowplow_unified_app_errors"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_event_id.a04e4b56e9": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"], "test.snowplow_unified.unique_snowplow_unified_app_errors_this_run_event_id.27c49e9797": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_user_identifier.0d35170908": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_network_userid.6e4a6bdf97": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_identifier.765b562252": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_index.c4dd0f3b15": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_first_event_id.918c25b76d": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_dvce_created_tstamp.64cdf1fba6": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_collector_tstamp.4fc8c4afad": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_derived_tstamp.ea1324a9e3": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_model_tstamp.2f83e1ec04": ["model.snowplow_unified.snowplow_unified_app_errors_this_run"], "test.snowplow_unified.unique_snowplow_unified_web_vital_events_this_run_event_id.e1799e0876": ["model.snowplow_unified.snowplow_unified_web_vital_events_this_run"], "test.snowplow_unified.not_null_snowplow_unified_web_vital_events_this_run_event_id.e5bc4bf41e": ["model.snowplow_unified.snowplow_unified_web_vital_events_this_run"], "test.snowplow_unified.not_null_snowplow_unified_web_vital_events_this_run_page_url.febc36e022": ["model.snowplow_unified.snowplow_unified_web_vital_events_this_run"], "test.snowplow_unified.unique_snowplow_unified_web_vital_measurements_compound_key.cf8bddba94": ["model.snowplow_unified.snowplow_unified_web_vital_measurements"], "test.snowplow_unified.not_null_snowplow_unified_web_vital_measurements_compound_key.ff79f11fe6": ["model.snowplow_unified.snowplow_unified_web_vital_measurements"], "test.snowplow_unified.unique_snowplow_unified_sessions_session_identifier.3620ace50e": ["model.snowplow_unified.snowplow_unified_sessions"], "test.snowplow_unified.not_null_snowplow_unified_sessions_session_identifier.833be1a65d": ["model.snowplow_unified.snowplow_unified_sessions"], "test.snowplow_unified.not_null_snowplow_unified_sessions_device_session_index.04ce4fd111": ["model.snowplow_unified.snowplow_unified_sessions"], "test.snowplow_unified.not_null_snowplow_unified_sessions_start_tstamp.22e855927c": ["model.snowplow_unified.snowplow_unified_sessions"], "test.snowplow_unified.not_null_snowplow_unified_sessions_end_tstamp.d10ab70f31": ["model.snowplow_unified.snowplow_unified_sessions"], "test.snowplow_unified.not_null_snowplow_unified_sessions_views.9efb838735": ["model.snowplow_unified.snowplow_unified_sessions"], "test.snowplow_unified.not_null_snowplow_unified_sessions_engaged_time_in_s.6b702898cc": ["model.snowplow_unified.snowplow_unified_sessions"], "test.snowplow_unified.not_null_snowplow_unified_sessions_total_events.5c72a6e786": ["model.snowplow_unified.snowplow_unified_sessions"], "test.snowplow_unified.not_null_snowplow_unified_sessions_is_engaged.05221eb41c": ["model.snowplow_unified.snowplow_unified_sessions"], "test.snowplow_unified.not_null_snowplow_unified_sessions_absolute_time_in_s.615acac3d6": ["model.snowplow_unified.snowplow_unified_sessions"], "test.snowplow_unified.unique_snowplow_unified_sessions_this_run_session_identifier.9866ae020a": ["model.snowplow_unified.snowplow_unified_sessions_this_run"], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_session_identifier.38695dce6d": ["model.snowplow_unified.snowplow_unified_sessions_this_run"], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_device_session_index.5c2b86a93c": ["model.snowplow_unified.snowplow_unified_sessions_this_run"], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_start_tstamp.4b70415d30": ["model.snowplow_unified.snowplow_unified_sessions_this_run"], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_end_tstamp.07dd45d070": ["model.snowplow_unified.snowplow_unified_sessions_this_run"], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_views.e8617150ef": ["model.snowplow_unified.snowplow_unified_sessions_this_run"], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_engaged_time_in_s.98c95134a4": ["model.snowplow_unified.snowplow_unified_sessions_this_run"], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_total_events.29cffeca11": ["model.snowplow_unified.snowplow_unified_sessions_this_run"], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_is_engaged.32ff9493b2": ["model.snowplow_unified.snowplow_unified_sessions_this_run"], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_absolute_time_in_s.5768c67caa": ["model.snowplow_unified.snowplow_unified_sessions_this_run"], "test.snowplow_unified.unique_snowplow_unified_session_screen_summary_metrics_session_identifier.1603938078": [], "test.snowplow_unified.unique_snowplow_unified_user_mapping_user_identifier.35e726d1ba": ["model.snowplow_unified.snowplow_unified_user_mapping"], "test.snowplow_unified.not_null_snowplow_unified_user_mapping_user_identifier.fc04955624": ["model.snowplow_unified.snowplow_unified_user_mapping"], "test.snowplow_unified.not_null_snowplow_unified_user_mapping_user_id.0fb58f2762": ["model.snowplow_unified.snowplow_unified_user_mapping"], "test.snowplow_unified.not_null_snowplow_unified_user_mapping_end_tstamp.8930fbf647": ["model.snowplow_unified.snowplow_unified_user_mapping"], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_web_page_1": [], "source.snowplow_unified.atomic.com_iab_snowplow_spiders_and_robots_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_ua_parser_context_1": [], "source.snowplow_unified.atomic.nl_basjes_yauaa_context_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_client_session_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_mobile_context_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_geolocation_context_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_mobile_application_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_mobile_screen_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_application_error_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_mobile_screen_view_1": [], "source.snowplow_unified.atomic.events": [], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_browser_context_1": [], "source.snowplow_unified.atomic.contexts_com_snowplowanalytics_mobile_deep_link_1": [], "source.snowplow_unified.atomic.contexts_com_snowplowanalytics_mobile_screen_summary_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_consent_preferences_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_cmp_visible_1": [], "source.snowplow_unified.atomic.unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1": []}, "child_map": {"model.snowplow_unified_integration_tests.test_late_enabled_contexts": [], "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_actual": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_.541911e8f1", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_.b675df62df"], "model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_actual": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg_.d3e434d0cf", "test.snowplow_unified_integration_tests.snowplow_unified_integration_tests_equality_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg___3.2ce4bf2e3f"], "model.snowplow_unified_integration_tests.snowplow_unified_sessions_actual": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_.deb9a7689f", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_.e1af6ef1db"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_actual": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_.2bc14dd7de", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_.71b95e8674"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_actual": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_.8251b18a75", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_.ed39291772"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_actual": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_.b8cacd3cab", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_.cd008a201b"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_actual": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_.485f757328", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_.89fccda7d0"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_actual": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_.7b92210c06", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_.6e4043b1d2"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_actual": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_.22d90b662d", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_.ada2f282a8"], "model.snowplow_unified_integration_tests.snowplow_unified_views_actual": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_.bcfd303281", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_.13f329e6b4"], "model.snowplow_unified_integration_tests.snowplow_unified_users_actual": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_.78448e6f51", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_.971c3ddd69"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected_stg": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_.8251b18a75", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_.ed39291772"], "model.snowplow_unified_integration_tests.snowplow_unified_sessions_expected_stg": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_.deb9a7689f", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_.e1af6ef1db"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected_stg": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_.2bc14dd7de", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_.71b95e8674"], "model.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected_stg": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_views_mobile_screen_engagement_actual_ref_snowplow_unified_views_mobile_screen_engagement_expected_stg_.9b5480d2ee", "test.snowplow_unified_integration_tests.snowplow_unified_integration_tests_equality_snowplow_unified_views_mobile_screen_engagement_actual_ref_snowplow_unified_views_mobile_screen_engagement_expected_stg___3.ffe28d2ef0"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected_stg": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_.22d90b662d", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_.ada2f282a8"], "model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected_stg": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg_.d3e434d0cf", "test.snowplow_unified_integration_tests.snowplow_unified_integration_tests_equality_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg___3.2ce4bf2e3f"], "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected_stg": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_.541911e8f1", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_.b675df62df"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected_stg": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_.b8cacd3cab", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_.cd008a201b"], "model.snowplow_unified_integration_tests.snowplow_unified_views_expected_stg": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_.bcfd303281", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_.13f329e6b4"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected_stg": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_.485f757328", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_.89fccda7d0"], "model.snowplow_unified_integration_tests.snowplow_unified_users_expected_stg": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_.78448e6f51", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_.971c3ddd69"], "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected_stg": ["test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_.7b92210c06", "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_.6e4043b1d2"], "model.snowplow_unified_integration_tests.snowplow_unified_events_stg": [], "seed.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected_stg"], "seed.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected_stg"], "seed.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected_stg"], "seed.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected_stg"], "seed.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected_stg"], "seed.snowplow_unified_integration_tests.snowplow_unified_views_expected": ["model.snowplow_unified_integration_tests.snowplow_unified_views_expected_stg"], "seed.snowplow_unified_integration_tests.snowplow_unified_users_expected": ["model.snowplow_unified_integration_tests.snowplow_unified_users_expected_stg"], "seed.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected": ["model.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected_stg"], "seed.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected_stg"], "seed.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected": ["model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected_stg"], "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected": ["model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected_stg"], "seed.snowplow_unified_integration_tests.snowplow_unified_sessions_expected": ["model.snowplow_unified_integration_tests.snowplow_unified_sessions_expected_stg"], "seed.snowplow_unified_integration_tests.snowplow_unified_cwv": [], "seed.snowplow_unified_integration_tests.snowplow_unified_screen_engagement_events": [], "seed.snowplow_unified_integration_tests.snowplow_unified_session_context": [], "seed.snowplow_unified_integration_tests.snowplow_unified_events": [], "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_events": ["model.snowplow_unified_integration_tests.snowplow_unified_events_stg"], "seed.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_visible": [], "seed.snowplow_unified_integration_tests.snowplow_unified_geolocation_context": [], "seed.snowplow_unified_integration_tests.snowplow_unified_consent_preferences": [], "seed.snowplow_unified_integration_tests.snowplow_unified_screen_view_event": [], "model.snowplow_unified.snowplow_unified_views": ["model.snowplow_unified_integration_tests.snowplow_unified_views_actual", "test.snowplow_unified.not_null_snowplow_unified_views_absolute_time_in_s.54b3c5c9fc", "test.snowplow_unified.not_null_snowplow_unified_views_collector_tstamp.826c18335b", "test.snowplow_unified.not_null_snowplow_unified_views_derived_tstamp.8e5fcb344e", "test.snowplow_unified.not_null_snowplow_unified_views_device_session_index.3a9aeaa22e", "test.snowplow_unified.not_null_snowplow_unified_views_dvce_created_tstamp.2cfe0b4cb4", "test.snowplow_unified.not_null_snowplow_unified_views_end_tstamp.901b1d09a9", "test.snowplow_unified.not_null_snowplow_unified_views_engaged_time_in_s.dd74f36be9", "test.snowplow_unified.not_null_snowplow_unified_views_event_id.4fc9c1e85a", "test.snowplow_unified.not_null_snowplow_unified_views_session_identifier.f4ae3412ff", "test.snowplow_unified.not_null_snowplow_unified_views_start_tstamp.dbc42b7f20", "test.snowplow_unified.not_null_snowplow_unified_views_view_id.3a1d547e18", "test.snowplow_unified.not_null_snowplow_unified_views_view_in_session_index.e092c63b1e", "test.snowplow_unified.not_null_snowplow_unified_views_views_in_session.b139e474d0", "test.snowplow_unified.snowplow_tests_view_in_session_values", "test.snowplow_unified.unique_snowplow_unified_views_event_id.e61ed6df21", "test.snowplow_unified.unique_snowplow_unified_views_view_id.deffd898f9"], "model.snowplow_unified.snowplow_unified_pv_engaged_time": ["model.snowplow_unified.snowplow_unified_views_this_run", "test.snowplow_unified.not_null_snowplow_unified_pv_engaged_time_session_identifier.369fb4dedc", "test.snowplow_unified.not_null_snowplow_unified_pv_engaged_time_view_id.fab3bfc907", "test.snowplow_unified.unique_snowplow_unified_pv_engaged_time__view_id_session_identifier_.f0fca93783"], "model.snowplow_unified.snowplow_unified_pv_scroll_depth": ["model.snowplow_unified.snowplow_unified_views_this_run", "test.snowplow_unified.not_null_snowplow_unified_pv_scroll_depth_view_id.0e2d9dba7d", "test.snowplow_unified.unique_snowplow_unified_pv_scroll_depth__view_id_session_identifier_.009d0ff70e"], "model.snowplow_unified.snowplow_unified_views_this_run": ["model.snowplow_unified.snowplow_unified_views", "test.snowplow_unified.not_null_snowplow_unified_views_this_run_absolute_time_in_s.960178ffa8", "test.snowplow_unified.not_null_snowplow_unified_views_this_run_collector_tstamp.98b0c0df1b", "test.snowplow_unified.not_null_snowplow_unified_views_this_run_derived_tstamp.3270a2d7ef", "test.snowplow_unified.not_null_snowplow_unified_views_this_run_device_session_index.3c52b66c6d", "test.snowplow_unified.not_null_snowplow_unified_views_this_run_dvce_created_tstamp.19b30ff7fb", "test.snowplow_unified.not_null_snowplow_unified_views_this_run_end_tstamp.4af862c0e6", "test.snowplow_unified.not_null_snowplow_unified_views_this_run_engaged_time_in_s.efb00705e1", "test.snowplow_unified.not_null_snowplow_unified_views_this_run_event_id.1cbbdc3adf", "test.snowplow_unified.not_null_snowplow_unified_views_this_run_session_identifier.59be3a100c", "test.snowplow_unified.not_null_snowplow_unified_views_this_run_start_tstamp.c8c1676039", "test.snowplow_unified.not_null_snowplow_unified_views_this_run_view_id.6bc7169d25", "test.snowplow_unified.not_null_snowplow_unified_views_this_run_view_in_session_index.5ce5ac1b50", "test.snowplow_unified.not_null_snowplow_unified_views_this_run_views_in_session.6dc8364a51", "test.snowplow_unified.unique_snowplow_unified_views_this_run_event_id.5609868632", "test.snowplow_unified.unique_snowplow_unified_views_this_run_view_id.5cfb771408"], "model.snowplow_unified.snowplow_unified_base_sessions_this_run": ["model.snowplow_unified.snowplow_unified_base_events_this_run", "model.snowplow_unified.snowplow_unified_users_sessions_this_run", "test.snowplow_unified.not_null_snowplow_unified_base_sessions_this_run_session_identifier.15278d0f20", "test.snowplow_unified.unique_snowplow_unified_base_sessions_this_run_session_identifier.4db28e3b1d"], "model.snowplow_unified.snowplow_unified_base_new_event_limits": ["model.snowplow_unified.snowplow_unified_app_errors", "model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest", "model.snowplow_unified.snowplow_unified_base_sessions_this_run", "model.snowplow_unified.snowplow_unified_consent_events_this_run", "model.snowplow_unified.snowplow_unified_consent_log", "model.snowplow_unified.snowplow_unified_sessions", "model.snowplow_unified.snowplow_unified_user_mapping", "model.snowplow_unified.snowplow_unified_users", "model.snowplow_unified.snowplow_unified_views", "model.snowplow_unified.snowplow_unified_web_vital_events_this_run", "model.snowplow_unified.snowplow_unified_web_vitals", "model.snowplow_unified.snowplow_unified_web_vitals_this_run"], "model.snowplow_unified.snowplow_unified_base_events_this_run": ["model.snowplow_unified.snowplow_unified_events_this_run", "operation.snowplow_unified.snowplow_unified-on-run-end-0", "test.snowplow_unified.not_null_snowplow_unified_base_events_this_run_event_id.e3cb52ed73", "test.snowplow_unified.unique_snowplow_unified_base_events_this_run_event_id.9d8628f1f4"], "model.snowplow_unified.snowplow_unified_events_this_run": ["model.snowplow_unified.snowplow_unified_app_errors_this_run", "model.snowplow_unified.snowplow_unified_consent_events_this_run", "model.snowplow_unified.snowplow_unified_pv_engaged_time", "model.snowplow_unified.snowplow_unified_pv_scroll_depth", "model.snowplow_unified.snowplow_unified_sessions_this_run", "model.snowplow_unified.snowplow_unified_user_mapping", "model.snowplow_unified.snowplow_unified_views_this_run", "model.snowplow_unified.snowplow_unified_web_vital_events_this_run", "model.snowplow_unified_integration_tests.test_late_enabled_contexts", "test.snowplow_unified.not_null_snowplow_unified_events_this_run_event_id.152f747832", "test.snowplow_unified.unique_snowplow_unified_events_this_run_event_id.d04b0599f5"], "model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest": ["model.snowplow_unified.snowplow_unified_base_sessions_this_run", "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_end_tstamp.68530988e8", "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_session_identifier.b6a553df4c", "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_start_tstamp.78e6f715a9", "test.snowplow_unified.unique_snowplow_unified_base_sessions_lifecycle_manifest_session_identifier.55eb56faed"], "model.snowplow_unified.snowplow_unified_base_quarantined_sessions": ["model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest", "model.snowplow_unified.snowplow_unified_base_sessions_this_run", "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_actual", "test.snowplow_unified.not_null_snowplow_unified_base_quarantined_sessions_session_identifier.aaf46f9514", "test.snowplow_unified.unique_snowplow_unified_base_quarantined_sessions_session_identifier.09ea66d5f8"], "model.snowplow_unified.snowplow_unified_incremental_manifest": ["model.snowplow_unified.snowplow_unified_app_errors", "model.snowplow_unified.snowplow_unified_base_new_event_limits", "model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest", "model.snowplow_unified.snowplow_unified_consent_events_this_run", "model.snowplow_unified.snowplow_unified_consent_log", "model.snowplow_unified.snowplow_unified_sessions", "model.snowplow_unified.snowplow_unified_user_mapping", "model.snowplow_unified.snowplow_unified_users", "model.snowplow_unified.snowplow_unified_views", "model.snowplow_unified.snowplow_unified_web_vital_events_this_run", "model.snowplow_unified.snowplow_unified_web_vitals", "model.snowplow_unified.snowplow_unified_web_vitals_this_run", "operation.snowplow_unified.snowplow_unified-on-run-end-0", "test.snowplow_unified.not_null_snowplow_unified_incremental_manifest_model.5f8ae0dc3e", "test.snowplow_unified.unique_snowplow_unified_incremental_manifest_model.eae251f82d"], "model.snowplow_unified.snowplow_unified_users": ["model.snowplow_unified_integration_tests.snowplow_unified_users_actual", "test.snowplow_unified.not_null_snowplow_unified_users_end_tstamp.f58b0bcf06", "test.snowplow_unified.not_null_snowplow_unified_users_engaged_time_in_s.c55717a97e", "test.snowplow_unified.not_null_snowplow_unified_users_network_userid.998e27e258", "test.snowplow_unified.not_null_snowplow_unified_users_sessions.55421015ef", "test.snowplow_unified.not_null_snowplow_unified_users_start_tstamp.5d33b09a65", "test.snowplow_unified.not_null_snowplow_unified_users_user_identifier.38f23dc040", "test.snowplow_unified.not_null_snowplow_unified_users_views.bbd526f2de", "test.snowplow_unified.unique_snowplow_unified_users_user_identifier.fd4bf488ce"], "model.snowplow_unified.snowplow_unified_users_aggs": ["model.snowplow_unified.snowplow_unified_users_lasts", "model.snowplow_unified.snowplow_unified_users_this_run", "test.snowplow_unified.not_null_snowplow_unified_users_aggs_user_identifier.67601373c5", "test.snowplow_unified.unique_snowplow_unified_users_aggs_user_identifier.7a0ce8ecea"], "model.snowplow_unified.snowplow_unified_users_lasts": ["model.snowplow_unified.snowplow_unified_users_this_run", "test.snowplow_unified.not_null_snowplow_unified_users_lasts_user_identifier.bf9c874d36", "test.snowplow_unified.unique_snowplow_unified_users_lasts_user_identifier.2e0875d502"], "model.snowplow_unified.snowplow_unified_users_this_run": ["model.snowplow_unified.snowplow_unified_users", "test.snowplow_unified.not_null_snowplow_unified_users_this_run_end_tstamp.2343122421", "test.snowplow_unified.not_null_snowplow_unified_users_this_run_engaged_time_in_s.6c8ec87fc3", "test.snowplow_unified.not_null_snowplow_unified_users_this_run_network_userid.01e75c2b66", "test.snowplow_unified.not_null_snowplow_unified_users_this_run_sessions.3a2f33dcae", "test.snowplow_unified.not_null_snowplow_unified_users_this_run_start_tstamp.e6b6b8a018", "test.snowplow_unified.not_null_snowplow_unified_users_this_run_user_identifier.2a721feeaf", "test.snowplow_unified.not_null_snowplow_unified_users_this_run_views.6535b10483", "test.snowplow_unified.unique_snowplow_unified_users_this_run_user_identifier.84672e2e42"], "model.snowplow_unified.snowplow_unified_users_sessions_this_run": ["model.snowplow_unified.snowplow_unified_users_aggs", "model.snowplow_unified.snowplow_unified_users_lasts", "model.snowplow_unified.snowplow_unified_users_this_run", "test.snowplow_unified.not_null_snowplow_unified_users_sessions_this_run_session_identifier.ccd4dad35f", "test.snowplow_unified.unique_snowplow_unified_users_sessions_this_run_session_identifier.d123f43ae3"], "model.snowplow_unified.snowplow_unified_consent_cmp_stats": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_actual", "test.snowplow_unified.not_null_snowplow_unified_consent_cmp_stats_event_id.70b4093ca8", "test.snowplow_unified.unique_snowplow_unified_consent_cmp_stats_event_id.4bdb9bcc41"], "model.snowplow_unified.snowplow_unified_consent_log": ["model.snowplow_unified.snowplow_unified_consent_cmp_stats", "model.snowplow_unified.snowplow_unified_consent_users", "model.snowplow_unified.snowplow_unified_consent_versions", "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_actual", "test.snowplow_unified.accepted_values_snowplow_unified_consent_log_event_type__deny_all__allow_all__allow_selected__pending__implicit_consent__withdrawn__expired.0f024b208b", "test.snowplow_unified.not_null_snowplow_unified_consent_log_event_id.d048b68e09", "test.snowplow_unified.unique_snowplow_unified_consent_log_event_id.cb11e5f422"], "model.snowplow_unified.snowplow_unified_consent_versions": ["model.snowplow_unified.snowplow_unified_consent_totals", "model.snowplow_unified.snowplow_unified_consent_users", "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_actual", "test.snowplow_unified.not_null_snowplow_unified_consent_versions_consent_version.309008d9d1", "test.snowplow_unified.snowplow_tests_consent_versions", "test.snowplow_unified.unique_snowplow_unified_consent_versions_consent_version.5ceb06b341"], "model.snowplow_unified.snowplow_unified_consent_scope_status": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_actual", "test.snowplow_unified.not_null_snowplow_unified_consent_scope_status_scope.2b9365b124", "test.snowplow_unified.unique_snowplow_unified_consent_scope_status_scope.cd80ea727a"], "model.snowplow_unified.snowplow_unified_consent_users": ["model.snowplow_unified.snowplow_unified_consent_scope_status", "model.snowplow_unified.snowplow_unified_consent_totals", "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_actual", "test.snowplow_unified.not_null_snowplow_unified_consent_users_user_identifier.6c2cb3f0a2", "test.snowplow_unified.unique_snowplow_unified_consent_users_user_identifier.e93ed6baff"], "model.snowplow_unified.snowplow_unified_consent_totals": ["model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_actual"], "model.snowplow_unified.snowplow_unified_consent_events_this_run": ["model.snowplow_unified.snowplow_unified_consent_log"], "model.snowplow_unified.snowplow_unified_app_errors": ["test.snowplow_unified.not_null_snowplow_unified_app_errors_collector_tstamp.fd6db01a42", "test.snowplow_unified.not_null_snowplow_unified_app_errors_derived_tstamp.57ca9d9382", "test.snowplow_unified.not_null_snowplow_unified_app_errors_dvce_created_tstamp.f8ea85c5e4", "test.snowplow_unified.not_null_snowplow_unified_app_errors_event_id.1927547c47", "test.snowplow_unified.not_null_snowplow_unified_app_errors_model_tstamp.1dbf1b6723", "test.snowplow_unified.not_null_snowplow_unified_app_errors_network_userid.5f50553758", "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_first_event_id.cc8700559f", "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_identifier.3099f21f2c", "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_index.0c20768315", "test.snowplow_unified.not_null_snowplow_unified_app_errors_user_identifier.f874778b72", "test.snowplow_unified.unique_snowplow_unified_app_errors_event_id.f6537234ea"], "model.snowplow_unified.snowplow_unified_app_errors_this_run": ["model.snowplow_unified.snowplow_unified_app_errors", "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_collector_tstamp.4fc8c4afad", "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_derived_tstamp.ea1324a9e3", "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_dvce_created_tstamp.64cdf1fba6", "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_event_id.a04e4b56e9", "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_model_tstamp.2f83e1ec04", "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_network_userid.6e4a6bdf97", "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_first_event_id.918c25b76d", "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_identifier.765b562252", "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_index.c4dd0f3b15", "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_user_identifier.0d35170908", "test.snowplow_unified.unique_snowplow_unified_app_errors_this_run_event_id.27c49e9797"], "model.snowplow_unified.snowplow_unified_web_vitals": ["model.snowplow_unified.snowplow_unified_web_vital_measurements"], "model.snowplow_unified.snowplow_unified_web_vital_measurements": ["model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_actual", "test.snowplow_unified.not_null_snowplow_unified_web_vital_measurements_compound_key.ff79f11fe6", "test.snowplow_unified.unique_snowplow_unified_web_vital_measurements_compound_key.cf8bddba94"], "model.snowplow_unified.snowplow_unified_web_vitals_this_run": ["model.snowplow_unified.snowplow_unified_web_vitals"], "model.snowplow_unified.snowplow_unified_web_vital_events_this_run": ["model.snowplow_unified.snowplow_unified_web_vitals_this_run", "test.snowplow_unified.not_null_snowplow_unified_web_vital_events_this_run_event_id.e5bc4bf41e", "test.snowplow_unified.not_null_snowplow_unified_web_vital_events_this_run_page_url.febc36e022", "test.snowplow_unified.unique_snowplow_unified_web_vital_events_this_run_event_id.e1799e0876"], "model.snowplow_unified.snowplow_unified_sessions": ["model.snowplow_unified.snowplow_unified_users_sessions_this_run", "model.snowplow_unified_integration_tests.snowplow_unified_sessions_actual", "test.snowplow_unified.not_null_snowplow_unified_sessions_absolute_time_in_s.615acac3d6", "test.snowplow_unified.not_null_snowplow_unified_sessions_device_session_index.04ce4fd111", "test.snowplow_unified.not_null_snowplow_unified_sessions_end_tstamp.d10ab70f31", "test.snowplow_unified.not_null_snowplow_unified_sessions_engaged_time_in_s.6b702898cc", "test.snowplow_unified.not_null_snowplow_unified_sessions_is_engaged.05221eb41c", "test.snowplow_unified.not_null_snowplow_unified_sessions_session_identifier.833be1a65d", "test.snowplow_unified.not_null_snowplow_unified_sessions_start_tstamp.22e855927c", "test.snowplow_unified.not_null_snowplow_unified_sessions_total_events.5c72a6e786", "test.snowplow_unified.not_null_snowplow_unified_sessions_views.9efb838735", "test.snowplow_unified.unique_snowplow_unified_sessions_session_identifier.3620ace50e"], "model.snowplow_unified.snowplow_unified_sessions_this_run": ["model.snowplow_unified.snowplow_unified_sessions", "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_absolute_time_in_s.5768c67caa", "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_device_session_index.5c2b86a93c", "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_end_tstamp.07dd45d070", "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_engaged_time_in_s.98c95134a4", "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_is_engaged.32ff9493b2", "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_session_identifier.38695dce6d", "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_start_tstamp.4b70415d30", "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_total_events.29cffeca11", "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_views.e8617150ef", "test.snowplow_unified.unique_snowplow_unified_sessions_this_run_session_identifier.9866ae020a"], "model.snowplow_unified.snowplow_unified_user_mapping": ["model.snowplow_unified.snowplow_unified_sessions", "model.snowplow_unified.snowplow_unified_users", "test.snowplow_unified.not_null_snowplow_unified_user_mapping_end_tstamp.8930fbf647", "test.snowplow_unified.not_null_snowplow_unified_user_mapping_user_id.0fb58f2762", "test.snowplow_unified.not_null_snowplow_unified_user_mapping_user_identifier.fc04955624", "test.snowplow_unified.unique_snowplow_unified_user_mapping_user_identifier.35e726d1ba"], "test.snowplow_unified.snowplow_tests_consent_versions": [], "test.snowplow_unified.snowplow_tests_view_in_session_values": [], "seed.snowplow_unified.snowplow_unified_dim_geo_country_mapping": ["model.snowplow_unified.snowplow_unified_sessions_this_run", "model.snowplow_unified.snowplow_unified_web_vital_measurements"], "seed.snowplow_unified.snowplow_unified_dim_rfc_5646_language_mapping": ["model.snowplow_unified.snowplow_unified_sessions_this_run"], "seed.snowplow_unified.snowplow_unified_dim_ga4_source_categories": ["model.snowplow_unified.snowplow_unified_sessions_this_run", "model.snowplow_unified.snowplow_unified_views_this_run"], "operation.snowplow_unified.snowplow_unified-on-run-start-0": [], "operation.snowplow_unified.snowplow_unified-on-run-start-1": [], "operation.snowplow_unified.snowplow_unified-on-run-end-0": [], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_.541911e8f1": [], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_.b675df62df": [], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_.bcfd303281": [], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_.13f329e6b4": [], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_.deb9a7689f": [], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_.e1af6ef1db": [], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_.78448e6f51": [], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_.971c3ddd69": [], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_.22d90b662d": [], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_.ada2f282a8": [], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_.2bc14dd7de": [], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_.71b95e8674": [], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_.b8cacd3cab": [], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_.cd008a201b": [], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_.485f757328": [], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_.89fccda7d0": [], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_.8251b18a75": [], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_.ed39291772": [], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_.7b92210c06": [], "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_.6e4043b1d2": [], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg_.d3e434d0cf": [], "test.snowplow_unified_integration_tests.snowplow_unified_integration_tests_equality_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg___3.2ce4bf2e3f": [], "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_views_mobile_screen_engagement_actual_ref_snowplow_unified_views_mobile_screen_engagement_expected_stg_.9b5480d2ee": [], "test.snowplow_unified_integration_tests.snowplow_unified_integration_tests_equality_snowplow_unified_views_mobile_screen_engagement_actual_ref_snowplow_unified_views_mobile_screen_engagement_expected_stg___3.ffe28d2ef0": [], "test.snowplow_unified.unique_snowplow_unified_views_view_id.deffd898f9": [], "test.snowplow_unified.not_null_snowplow_unified_views_view_id.3a1d547e18": [], "test.snowplow_unified.unique_snowplow_unified_views_event_id.e61ed6df21": [], "test.snowplow_unified.not_null_snowplow_unified_views_event_id.4fc9c1e85a": [], "test.snowplow_unified.not_null_snowplow_unified_views_session_identifier.f4ae3412ff": [], "test.snowplow_unified.not_null_snowplow_unified_views_device_session_index.3a9aeaa22e": [], "test.snowplow_unified.not_null_snowplow_unified_views_view_in_session_index.e092c63b1e": [], "test.snowplow_unified.not_null_snowplow_unified_views_views_in_session.b139e474d0": [], "test.snowplow_unified.not_null_snowplow_unified_views_dvce_created_tstamp.2cfe0b4cb4": [], "test.snowplow_unified.not_null_snowplow_unified_views_collector_tstamp.826c18335b": [], "test.snowplow_unified.not_null_snowplow_unified_views_derived_tstamp.8e5fcb344e": [], "test.snowplow_unified.not_null_snowplow_unified_views_start_tstamp.dbc42b7f20": [], "test.snowplow_unified.not_null_snowplow_unified_views_end_tstamp.901b1d09a9": [], "test.snowplow_unified.not_null_snowplow_unified_views_engaged_time_in_s.dd74f36be9": [], "test.snowplow_unified.not_null_snowplow_unified_views_absolute_time_in_s.54b3c5c9fc": [], "test.snowplow_unified.unique_snowplow_unified_views_this_run_view_id.5cfb771408": [], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_view_id.6bc7169d25": [], "test.snowplow_unified.unique_snowplow_unified_views_this_run_event_id.5609868632": [], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_event_id.1cbbdc3adf": [], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_session_identifier.59be3a100c": [], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_device_session_index.3c52b66c6d": [], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_view_in_session_index.5ce5ac1b50": [], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_views_in_session.6dc8364a51": [], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_dvce_created_tstamp.19b30ff7fb": [], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_collector_tstamp.98b0c0df1b": [], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_derived_tstamp.3270a2d7ef": [], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_start_tstamp.c8c1676039": [], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_end_tstamp.4af862c0e6": [], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_engaged_time_in_s.efb00705e1": [], "test.snowplow_unified.not_null_snowplow_unified_views_this_run_absolute_time_in_s.960178ffa8": [], "test.snowplow_unified.not_null_snowplow_unified_pv_engaged_time_view_id.fab3bfc907": [], "test.snowplow_unified.not_null_snowplow_unified_pv_engaged_time_session_identifier.369fb4dedc": [], "test.snowplow_unified.unique_snowplow_unified_pv_engaged_time__view_id_session_identifier_.f0fca93783": [], "test.snowplow_unified.not_null_snowplow_unified_pv_scroll_depth_view_id.0e2d9dba7d": [], "test.snowplow_unified.unique_snowplow_unified_pv_scroll_depth__view_id_session_identifier_.009d0ff70e": [], "test.snowplow_unified.not_null_snowplow_unified_screen_summary_metrics_view_id.16d2af0899": [], "test.snowplow_unified.unique_snowplow_unified_screen_summary_metrics__view_id_session_identifier_.fda2881a90": [], "test.snowplow_unified.unique_snowplow_unified_base_sessions_this_run_session_identifier.4db28e3b1d": [], "test.snowplow_unified.not_null_snowplow_unified_base_sessions_this_run_session_identifier.15278d0f20": [], "test.snowplow_unified.unique_snowplow_unified_base_events_this_run_event_id.9d8628f1f4": [], "test.snowplow_unified.not_null_snowplow_unified_base_events_this_run_event_id.e3cb52ed73": [], "test.snowplow_unified.unique_snowplow_unified_events_this_run_event_id.d04b0599f5": [], "test.snowplow_unified.not_null_snowplow_unified_events_this_run_event_id.152f747832": [], "test.snowplow_unified.unique_snowplow_unified_base_sessions_lifecycle_manifest_session_identifier.55eb56faed": [], "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_session_identifier.b6a553df4c": [], "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_start_tstamp.78e6f715a9": [], "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_end_tstamp.68530988e8": [], "test.snowplow_unified.unique_snowplow_unified_incremental_manifest_model.eae251f82d": [], "test.snowplow_unified.not_null_snowplow_unified_incremental_manifest_model.5f8ae0dc3e": [], "test.snowplow_unified.unique_snowplow_unified_base_quarantined_sessions_session_identifier.09ea66d5f8": [], "test.snowplow_unified.not_null_snowplow_unified_base_quarantined_sessions_session_identifier.aaf46f9514": [], "test.snowplow_unified.unique_snowplow_unified_users_user_identifier.fd4bf488ce": [], "test.snowplow_unified.not_null_snowplow_unified_users_user_identifier.38f23dc040": [], "test.snowplow_unified.not_null_snowplow_unified_users_network_userid.998e27e258": [], "test.snowplow_unified.not_null_snowplow_unified_users_start_tstamp.5d33b09a65": [], "test.snowplow_unified.not_null_snowplow_unified_users_end_tstamp.f58b0bcf06": [], "test.snowplow_unified.not_null_snowplow_unified_users_views.bbd526f2de": [], "test.snowplow_unified.not_null_snowplow_unified_users_sessions.55421015ef": [], "test.snowplow_unified.not_null_snowplow_unified_users_engaged_time_in_s.c55717a97e": [], "test.snowplow_unified.unique_snowplow_unified_users_this_run_user_identifier.84672e2e42": [], "test.snowplow_unified.not_null_snowplow_unified_users_this_run_user_identifier.2a721feeaf": [], "test.snowplow_unified.not_null_snowplow_unified_users_this_run_network_userid.01e75c2b66": [], "test.snowplow_unified.not_null_snowplow_unified_users_this_run_start_tstamp.e6b6b8a018": [], "test.snowplow_unified.not_null_snowplow_unified_users_this_run_end_tstamp.2343122421": [], "test.snowplow_unified.not_null_snowplow_unified_users_this_run_views.6535b10483": [], "test.snowplow_unified.not_null_snowplow_unified_users_this_run_sessions.3a2f33dcae": [], "test.snowplow_unified.not_null_snowplow_unified_users_this_run_engaged_time_in_s.6c8ec87fc3": [], "test.snowplow_unified.unique_snowplow_unified_users_aggs_user_identifier.7a0ce8ecea": [], "test.snowplow_unified.not_null_snowplow_unified_users_aggs_user_identifier.67601373c5": [], "test.snowplow_unified.unique_snowplow_unified_users_lasts_user_identifier.2e0875d502": [], "test.snowplow_unified.not_null_snowplow_unified_users_lasts_user_identifier.bf9c874d36": [], "test.snowplow_unified.unique_snowplow_unified_users_sessions_this_run_session_identifier.d123f43ae3": [], "test.snowplow_unified.not_null_snowplow_unified_users_sessions_this_run_session_identifier.ccd4dad35f": [], "test.snowplow_unified.unique_snowplow_unified_consent_log_event_id.cb11e5f422": [], "test.snowplow_unified.not_null_snowplow_unified_consent_log_event_id.d048b68e09": [], "test.snowplow_unified.accepted_values_snowplow_unified_consent_log_event_type__deny_all__allow_all__allow_selected__pending__implicit_consent__withdrawn__expired.0f024b208b": [], "test.snowplow_unified.unique_snowplow_unified_consent_users_user_identifier.e93ed6baff": [], "test.snowplow_unified.not_null_snowplow_unified_consent_users_user_identifier.6c2cb3f0a2": [], "test.snowplow_unified.unique_snowplow_unified_consent_scope_status_scope.cd80ea727a": [], "test.snowplow_unified.not_null_snowplow_unified_consent_scope_status_scope.2b9365b124": [], "test.snowplow_unified.unique_snowplow_unified_consent_cmp_stats_event_id.4bdb9bcc41": [], "test.snowplow_unified.not_null_snowplow_unified_consent_cmp_stats_event_id.70b4093ca8": [], "test.snowplow_unified.unique_snowplow_unified_consent_versions_consent_version.5ceb06b341": [], "test.snowplow_unified.not_null_snowplow_unified_consent_versions_consent_version.309008d9d1": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_event_id.1927547c47": [], "test.snowplow_unified.unique_snowplow_unified_app_errors_event_id.f6537234ea": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_user_identifier.f874778b72": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_network_userid.5f50553758": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_identifier.3099f21f2c": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_index.0c20768315": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_first_event_id.cc8700559f": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_dvce_created_tstamp.f8ea85c5e4": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_collector_tstamp.fd6db01a42": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_derived_tstamp.57ca9d9382": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_model_tstamp.1dbf1b6723": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_event_id.a04e4b56e9": [], "test.snowplow_unified.unique_snowplow_unified_app_errors_this_run_event_id.27c49e9797": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_user_identifier.0d35170908": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_network_userid.6e4a6bdf97": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_identifier.765b562252": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_index.c4dd0f3b15": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_first_event_id.918c25b76d": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_dvce_created_tstamp.64cdf1fba6": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_collector_tstamp.4fc8c4afad": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_derived_tstamp.ea1324a9e3": [], "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_model_tstamp.2f83e1ec04": [], "test.snowplow_unified.unique_snowplow_unified_web_vital_events_this_run_event_id.e1799e0876": [], "test.snowplow_unified.not_null_snowplow_unified_web_vital_events_this_run_event_id.e5bc4bf41e": [], "test.snowplow_unified.not_null_snowplow_unified_web_vital_events_this_run_page_url.febc36e022": [], "test.snowplow_unified.unique_snowplow_unified_web_vital_measurements_compound_key.cf8bddba94": [], "test.snowplow_unified.not_null_snowplow_unified_web_vital_measurements_compound_key.ff79f11fe6": [], "test.snowplow_unified.unique_snowplow_unified_sessions_session_identifier.3620ace50e": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_session_identifier.833be1a65d": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_device_session_index.04ce4fd111": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_start_tstamp.22e855927c": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_end_tstamp.d10ab70f31": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_views.9efb838735": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_engaged_time_in_s.6b702898cc": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_total_events.5c72a6e786": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_is_engaged.05221eb41c": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_absolute_time_in_s.615acac3d6": [], "test.snowplow_unified.unique_snowplow_unified_sessions_this_run_session_identifier.9866ae020a": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_session_identifier.38695dce6d": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_device_session_index.5c2b86a93c": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_start_tstamp.4b70415d30": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_end_tstamp.07dd45d070": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_views.e8617150ef": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_engaged_time_in_s.98c95134a4": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_total_events.29cffeca11": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_is_engaged.32ff9493b2": [], "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_absolute_time_in_s.5768c67caa": [], "test.snowplow_unified.unique_snowplow_unified_session_screen_summary_metrics_session_identifier.1603938078": [], "test.snowplow_unified.unique_snowplow_unified_user_mapping_user_identifier.35e726d1ba": [], "test.snowplow_unified.not_null_snowplow_unified_user_mapping_user_identifier.fc04955624": [], "test.snowplow_unified.not_null_snowplow_unified_user_mapping_user_id.0fb58f2762": [], "test.snowplow_unified.not_null_snowplow_unified_user_mapping_end_tstamp.8930fbf647": [], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_web_page_1": [], "source.snowplow_unified.atomic.com_iab_snowplow_spiders_and_robots_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_ua_parser_context_1": [], "source.snowplow_unified.atomic.nl_basjes_yauaa_context_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_client_session_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_mobile_context_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_geolocation_context_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_mobile_application_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_mobile_screen_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_application_error_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_mobile_screen_view_1": [], "source.snowplow_unified.atomic.events": [], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_browser_context_1": [], "source.snowplow_unified.atomic.contexts_com_snowplowanalytics_mobile_deep_link_1": [], "source.snowplow_unified.atomic.contexts_com_snowplowanalytics_mobile_screen_summary_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_consent_preferences_1": [], "source.snowplow_unified.atomic.com_snowplowanalytics_snowplow_cmp_visible_1": [], "source.snowplow_unified.atomic.unstruct_event_com_snowplowanalytics_snowplow_web_vitals_1": []}, "group_map": {}, "semantic_models": {}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json new file mode 100644 index 00000000..b0fbe255 --- /dev/null +++ b/docs/run_results.json @@ -0,0 +1 @@ +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.6.9", "generated_at": "2024-01-30T10:59:16.890788Z", "invocation_id": "f39fda47-7768-452b-a139-2400d4b89531", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.280145Z", "completed_at": "2024-01-30T10:59:06.290555Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.292275Z", "completed_at": "2024-01-30T10:59:06.292292Z"}], "thread_id": "Thread-3", "execution_time": 0.036058902740478516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "operation.snowplow_unified.snowplow_unified-on-run-start-0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.296645Z", "completed_at": "2024-01-30T10:59:06.299332Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.304302Z", "completed_at": "2024-01-30T10:59:06.304316Z"}], "thread_id": "Thread-3", "execution_time": 0.012484550476074219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified.snowplow_unified_dim_ga4_source_categories"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.286141Z", "completed_at": "2024-01-30T10:59:06.300084Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.305653Z", "completed_at": "2024-01-30T10:59:06.305668Z"}], "thread_id": "Thread-4", "execution_time": 0.05135631561279297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "operation.snowplow_unified.snowplow_unified-on-run-start-1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.259522Z", "completed_at": "2024-01-30T10:59:06.300951Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.306450Z", "completed_at": "2024-01-30T10:59:06.306457Z"}], "thread_id": "Thread-1", "execution_time": 0.057421207427978516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_base_quarantined_sessions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.273413Z", "completed_at": "2024-01-30T10:59:06.302338Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.308430Z", "completed_at": "2024-01-30T10:59:06.308440Z"}], "thread_id": "Thread-2", "execution_time": 0.056852102279663086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_incremental_manifest"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.321340Z", "completed_at": "2024-01-30T10:59:06.324215Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.338542Z", "completed_at": "2024-01-30T10:59:06.338557Z"}], "thread_id": "Thread-3", "execution_time": 0.026722192764282227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified.snowplow_unified_dim_geo_country_mapping"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.325736Z", "completed_at": "2024-01-30T10:59:06.329431Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.339939Z", "completed_at": "2024-01-30T10:59:06.339950Z"}], "thread_id": "Thread-4", "execution_time": 0.0269622802734375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified.snowplow_unified_dim_rfc_5646_language_mapping"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.330275Z", "completed_at": "2024-01-30T10:59:06.332635Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.340650Z", "completed_at": "2024-01-30T10:59:06.340663Z"}], "thread_id": "Thread-1", "execution_time": 0.027125120162963867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.334130Z", "completed_at": "2024-01-30T10:59:06.336300Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.342702Z", "completed_at": "2024-01-30T10:59:06.342711Z"}], "thread_id": "Thread-2", "execution_time": 0.027878284454345703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.356117Z", "completed_at": "2024-01-30T10:59:06.358822Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.372788Z", "completed_at": "2024-01-30T10:59:06.372802Z"}], "thread_id": "Thread-3", "execution_time": 0.026485443115234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_visible"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.360201Z", "completed_at": "2024-01-30T10:59:06.362545Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.374170Z", "completed_at": "2024-01-30T10:59:06.374182Z"}], "thread_id": "Thread-4", "execution_time": 0.02651810646057129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.363283Z", "completed_at": "2024-01-30T10:59:06.366615Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.374885Z", "completed_at": "2024-01-30T10:59:06.374895Z"}], "thread_id": "Thread-1", "execution_time": 0.026691913604736328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_preferences"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.368054Z", "completed_at": "2024-01-30T10:59:06.370313Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.376848Z", "completed_at": "2024-01-30T10:59:06.376855Z"}], "thread_id": "Thread-2", "execution_time": 0.027138471603393555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.389456Z", "completed_at": "2024-01-30T10:59:06.392310Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.406610Z", "completed_at": "2024-01-30T10:59:06.406624Z"}], "thread_id": "Thread-3", "execution_time": 0.026286602020263672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.393728Z", "completed_at": "2024-01-30T10:59:06.396091Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.407946Z", "completed_at": "2024-01-30T10:59:06.407954Z"}], "thread_id": "Thread-4", "execution_time": 0.026636123657226562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.396845Z", "completed_at": "2024-01-30T10:59:06.399433Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.408633Z", "completed_at": "2024-01-30T10:59:06.408643Z"}], "thread_id": "Thread-1", "execution_time": 0.026693344116210938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.400862Z", "completed_at": "2024-01-30T10:59:06.404321Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.410617Z", "completed_at": "2024-01-30T10:59:06.410624Z"}], "thread_id": "Thread-2", "execution_time": 0.027129173278808594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_cwv"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.423179Z", "completed_at": "2024-01-30T10:59:06.425969Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.437910Z", "completed_at": "2024-01-30T10:59:06.437925Z"}], "thread_id": "Thread-3", "execution_time": 0.02404332160949707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_events"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.427375Z", "completed_at": "2024-01-30T10:59:06.429509Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.439366Z", "completed_at": "2024-01-30T10:59:06.439374Z"}], "thread_id": "Thread-4", "execution_time": 0.024376869201660156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_geolocation_context"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.430260Z", "completed_at": "2024-01-30T10:59:06.432435Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.440045Z", "completed_at": "2024-01-30T10:59:06.440055Z"}], "thread_id": "Thread-1", "execution_time": 0.025116682052612305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_screen_engagement_events"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.433786Z", "completed_at": "2024-01-30T10:59:06.435798Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.441999Z", "completed_at": "2024-01-30T10:59:06.442006Z"}], "thread_id": "Thread-2", "execution_time": 0.025684833526611328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_screen_view_event"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.454783Z", "completed_at": "2024-01-30T10:59:06.458770Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.471546Z", "completed_at": "2024-01-30T10:59:06.471560Z"}], "thread_id": "Thread-3", "execution_time": 0.02590155601501465, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_session_context"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.460231Z", "completed_at": "2024-01-30T10:59:06.462620Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.472921Z", "completed_at": "2024-01-30T10:59:06.472930Z"}], "thread_id": "Thread-4", "execution_time": 0.02618265151977539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_sessions_expected"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.463506Z", "completed_at": "2024-01-30T10:59:06.465706Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.473614Z", "completed_at": "2024-01-30T10:59:06.473624Z"}], "thread_id": "Thread-1", "execution_time": 0.026469707489013672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_users_expected"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.467192Z", "completed_at": "2024-01-30T10:59:06.469328Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.475640Z", "completed_at": "2024-01-30T10:59:06.475647Z"}], "thread_id": "Thread-2", "execution_time": 0.02696990966796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_views_expected"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.488641Z", "completed_at": "2024-01-30T10:59:06.492668Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.506553Z", "completed_at": "2024-01-30T10:59:06.506569Z"}], "thread_id": "Thread-3", "execution_time": 0.02720165252685547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.494197Z", "completed_at": "2024-01-30T10:59:06.496473Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.507404Z", "completed_at": "2024-01-30T10:59:06.507417Z"}], "thread_id": "Thread-4", "execution_time": 0.027563095092773438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_events"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.497228Z", "completed_at": "2024-01-30T10:59:06.499508Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.508267Z", "completed_at": "2024-01-30T10:59:06.508275Z"}], "thread_id": "Thread-1", "execution_time": 0.0276639461517334, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.500926Z", "completed_at": "2024-01-30T10:59:06.510320Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.517458Z", "completed_at": "2024-01-30T10:59:06.517469Z"}], "thread_id": "Thread-2", "execution_time": 0.034531354904174805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_actual"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.522955Z", "completed_at": "2024-01-30T10:59:06.559722Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.571487Z", "completed_at": "2024-01-30T10:59:06.571507Z"}], "thread_id": "Thread-3", "execution_time": 0.05804705619812012, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_base_quarantined_sessions_session_identifier.aaf46f9514"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.535607Z", "completed_at": "2024-01-30T10:59:06.561166Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.572390Z", "completed_at": "2024-01-30T10:59:06.572403Z"}], "thread_id": "Thread-4", "execution_time": 0.05842232704162598, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_base_quarantined_sessions_session_identifier.09ea66d5f8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.563303Z", "completed_at": "2024-01-30T10:59:06.575620Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.582496Z", "completed_at": "2024-01-30T10:59:06.582508Z"}], "thread_id": "Thread-2", "execution_time": 0.02850031852722168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_incremental_manifest_model.5f8ae0dc3e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.593880Z", "completed_at": "2024-01-30T10:59:06.606721Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.608988Z", "completed_at": "2024-01-30T10:59:06.609003Z"}], "thread_id": "Thread-4", "execution_time": 0.027995824813842773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_base_quarantined_sessions_expected_stg"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.586702Z", "completed_at": "2024-01-30T10:59:06.608293Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.612256Z", "completed_at": "2024-01-30T10:59:06.612263Z"}], "thread_id": "Thread-3", "execution_time": 0.03309273719787598, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_incremental_manifest_model.eae251f82d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.600714Z", "completed_at": "2024-01-30T10:59:06.610316Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.615698Z", "completed_at": "2024-01-30T10:59:06.615706Z"}], "thread_id": "Thread-2", "execution_time": 0.01922297477722168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_expected_stg"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.621505Z", "completed_at": "2024-01-30T10:59:06.642225Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.644703Z", "completed_at": "2024-01-30T10:59:06.644720Z"}], "thread_id": "Thread-4", "execution_time": 0.030308008193969727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_expected_stg"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.630087Z", "completed_at": "2024-01-30T10:59:06.643835Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.648286Z", "completed_at": "2024-01-30T10:59:06.648296Z"}], "thread_id": "Thread-3", "execution_time": 0.03147292137145996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_expected_stg"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.635489Z", "completed_at": "2024-01-30T10:59:06.647546Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.653622Z", "completed_at": "2024-01-30T10:59:06.653635Z"}], "thread_id": "Thread-2", "execution_time": 0.027803421020507812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_expected_stg"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.658448Z", "completed_at": "2024-01-30T10:59:06.679624Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.690771Z", "completed_at": "2024-01-30T10:59:06.690788Z"}], "thread_id": "Thread-4", "execution_time": 0.03973555564880371, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_expected_stg"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.672239Z", "completed_at": "2024-01-30T10:59:06.692779Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.696019Z", "completed_at": "2024-01-30T10:59:06.696031Z"}], "thread_id": "Thread-3", "execution_time": 0.04101419448852539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_expected_stg"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.680511Z", "completed_at": "2024-01-30T10:59:06.696738Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.707719Z", "completed_at": "2024-01-30T10:59:06.707732Z"}], "thread_id": "Thread-2", "execution_time": 0.03870415687561035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_sessions_expected_stg"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.700007Z", "completed_at": "2024-01-30T10:59:06.712132Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.727417Z", "completed_at": "2024-01-30T10:59:06.727434Z"}], "thread_id": "Thread-4", "execution_time": 0.03941607475280762, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_users_expected_stg"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.713000Z", "completed_at": "2024-01-30T10:59:06.735867Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.740605Z", "completed_at": "2024-01-30T10:59:06.740619Z"}], "thread_id": "Thread-3", "execution_time": 0.034490108489990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_views_expected_stg"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.728341Z", "completed_at": "2024-01-30T10:59:06.738710Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.743924Z", "completed_at": "2024-01-30T10:59:06.743934Z"}], "thread_id": "Thread-2", "execution_time": 0.032004356384277344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_views_mobile_screen_engagement_expected_stg"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.744710Z", "completed_at": "2024-01-30T10:59:06.765007Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.772699Z", "completed_at": "2024-01-30T10:59:06.772720Z"}], "thread_id": "Thread-4", "execution_time": 0.03738093376159668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_events_stg"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.759904Z", "completed_at": "2024-01-30T10:59:06.775764Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.779628Z", "completed_at": "2024-01-30T10:59:06.779639Z"}], "thread_id": "Thread-3", "execution_time": 0.02582263946533203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_expected_stg"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.767494Z", "completed_at": "2024-01-30T10:59:06.780326Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:06.784544Z", "completed_at": "2024-01-30T10:59:06.784555Z"}], "thread_id": "Thread-2", "execution_time": 0.036902666091918945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_.541911e8f1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.545977Z", "completed_at": "2024-01-30T10:59:07.174331Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:07.175621Z", "completed_at": "2024-01-30T10:59:07.175635Z"}], "thread_id": "Thread-1", "execution_time": 0.8187088966369629, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_base_new_event_limits"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:06.785274Z", "completed_at": "2024-01-30T10:59:07.555699Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:07.557059Z", "completed_at": "2024-01-30T10:59:07.557074Z"}], "thread_id": "Thread-4", "execution_time": 0.9371490478515625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_base_quarantined_sessions_actual_ref_snowplow_unified_base_quarantined_sessions_expected_stg_.b675df62df"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:07.341384Z", "completed_at": "2024-01-30T10:59:08.048789Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:08.050214Z", "completed_at": "2024-01-30T10:59:08.050229Z"}], "thread_id": "Thread-3", "execution_time": 0.9541683197021484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_base_sessions_lifecycle_manifest"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:08.321312Z", "completed_at": "2024-01-30T10:59:08.336392Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:08.342800Z", "completed_at": "2024-01-30T10:59:08.342816Z"}], "thread_id": "Thread-4", "execution_time": 0.04478764533996582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_session_identifier.b6a553df4c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:08.313453Z", "completed_at": "2024-01-30T10:59:08.337375Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:08.344159Z", "completed_at": "2024-01-30T10:59:08.344169Z"}], "thread_id": "Thread-2", "execution_time": 0.04776883125305176, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_end_tstamp.68530988e8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:08.328658Z", "completed_at": "2024-01-30T10:59:08.339820Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:08.346227Z", "completed_at": "2024-01-30T10:59:08.346236Z"}], "thread_id": "Thread-3", "execution_time": 0.04724478721618652, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_base_sessions_lifecycle_manifest_start_tstamp.78e6f715a9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:08.351848Z", "completed_at": "2024-01-30T10:59:08.358727Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:08.360011Z", "completed_at": "2024-01-30T10:59:08.360023Z"}], "thread_id": "Thread-4", "execution_time": 0.010694503784179688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_base_sessions_lifecycle_manifest_session_identifier.55eb56faed"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:08.304290Z", "completed_at": "2024-01-30T10:59:08.853398Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:08.854779Z", "completed_at": "2024-01-30T10:59:08.854794Z"}], "thread_id": "Thread-1", "execution_time": 0.7294273376464844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_base_sessions_this_run"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:09.057725Z", "completed_at": "2024-01-30T10:59:09.088661Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:09.092567Z", "completed_at": "2024-01-30T10:59:09.092584Z"}], "thread_id": "Thread-3", "execution_time": 0.06213545799255371, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_base_sessions_this_run_session_identifier.15278d0f20"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:09.078024Z", "completed_at": "2024-01-30T10:59:09.091522Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:09.095635Z", "completed_at": "2024-01-30T10:59:09.095645Z"}], "thread_id": "Thread-4", "execution_time": 0.06270432472229004, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_base_sessions_this_run_session_identifier.4db28e3b1d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:09.035712Z", "completed_at": "2024-01-30T10:59:09.629657Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:09.631071Z", "completed_at": "2024-01-30T10:59:09.631087Z"}], "thread_id": "Thread-2", "execution_time": 0.7690470218658447, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_base_events_this_run"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:09.809416Z", "completed_at": "2024-01-30T10:59:09.840157Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:09.845361Z", "completed_at": "2024-01-30T10:59:09.845376Z"}], "thread_id": "Thread-1", "execution_time": 0.045395851135253906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_events_this_run"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:09.826320Z", "completed_at": "2024-01-30T10:59:09.841409Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:09.846727Z", "completed_at": "2024-01-30T10:59:09.846736Z"}], "thread_id": "Thread-4", "execution_time": 0.04338383674621582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_base_events_this_run_event_id.e3cb52ed73"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:09.819331Z", "completed_at": "2024-01-30T10:59:09.842176Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:09.847415Z", "completed_at": "2024-01-30T10:59:09.847424Z"}], "thread_id": "Thread-3", "execution_time": 0.04620647430419922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "operation.snowplow_unified.snowplow_unified-on-run-end-0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:09.832872Z", "completed_at": "2024-01-30T10:59:09.843447Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:09.849299Z", "completed_at": "2024-01-30T10:59:09.849308Z"}], "thread_id": "Thread-2", "execution_time": 0.04535317420959473, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_base_events_this_run_event_id.9d8628f1f4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:09.871350Z", "completed_at": "2024-01-30T10:59:09.902758Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:09.904164Z", "completed_at": "2024-01-30T10:59:09.904179Z"}], "thread_id": "Thread-4", "execution_time": 0.0470738410949707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_consent_events_this_run"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:09.863024Z", "completed_at": "2024-01-30T10:59:09.908649Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:09.960649Z", "completed_at": "2024-01-30T10:59:09.960665Z"}], "thread_id": "Thread-1", "execution_time": 0.10663127899169922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_app_errors_this_run"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:09.880800Z", "completed_at": "2024-01-30T10:59:09.914689Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:09.962036Z", "completed_at": "2024-01-30T10:59:09.962044Z"}], "thread_id": "Thread-3", "execution_time": 0.10658144950866699, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_pv_engaged_time"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:09.889773Z", "completed_at": "2024-01-30T10:59:09.924808Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:09.962738Z", "completed_at": "2024-01-30T10:59:09.962745Z"}], "thread_id": "Thread-2", "execution_time": 0.10694026947021484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_pv_scroll_depth"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:09.997429Z", "completed_at": "2024-01-30T10:59:10.006020Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.009260Z", "completed_at": "2024-01-30T10:59:10.009277Z"}], "thread_id": "Thread-2", "execution_time": 0.036350250244140625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.test_late_enabled_contexts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:09.987622Z", "completed_at": "2024-01-30T10:59:10.007085Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.010131Z", "completed_at": "2024-01-30T10:59:10.010140Z"}], "thread_id": "Thread-3", "execution_time": 0.03830838203430176, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_web_vital_events_this_run"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.024134Z", "completed_at": "2024-01-30T10:59:10.031909Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.033877Z", "completed_at": "2024-01-30T10:59:10.033890Z"}], "thread_id": "Thread-3", "execution_time": 0.019739866256713867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_events_this_run_event_id.d04b0599f5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.017838Z", "completed_at": "2024-01-30T10:59:10.033203Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.036332Z", "completed_at": "2024-01-30T10:59:10.036339Z"}], "thread_id": "Thread-2", "execution_time": 0.023327350616455078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_events_this_run_event_id.152f747832"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:09.909491Z", "completed_at": "2024-01-30T10:59:10.511775Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.513203Z", "completed_at": "2024-01-30T10:59:10.513219Z"}], "thread_id": "Thread-4", "execution_time": 0.7687311172485352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_sessions_this_run"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.679116Z", "completed_at": "2024-01-30T10:59:10.689424Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.690971Z", "completed_at": "2024-01-30T10:59:10.690987Z"}], "thread_id": "Thread-4", "execution_time": 0.015406370162963867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_collector_tstamp.4fc8c4afad"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.696050Z", "completed_at": "2024-01-30T10:59:10.703109Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.704416Z", "completed_at": "2024-01-30T10:59:10.704429Z"}], "thread_id": "Thread-4", "execution_time": 0.010933399200439453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_derived_tstamp.ea1324a9e3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.708431Z", "completed_at": "2024-01-30T10:59:10.715068Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.716376Z", "completed_at": "2024-01-30T10:59:10.716389Z"}], "thread_id": "Thread-4", "execution_time": 0.01034235954284668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_dvce_created_tstamp.64cdf1fba6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.720345Z", "completed_at": "2024-01-30T10:59:10.726914Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.728246Z", "completed_at": "2024-01-30T10:59:10.728258Z"}], "thread_id": "Thread-4", "execution_time": 0.010284900665283203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_event_id.a04e4b56e9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.732255Z", "completed_at": "2024-01-30T10:59:10.740835Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.742149Z", "completed_at": "2024-01-30T10:59:10.742162Z"}], "thread_id": "Thread-4", "execution_time": 0.012419939041137695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_model_tstamp.2f83e1ec04"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.746128Z", "completed_at": "2024-01-30T10:59:10.752781Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.754141Z", "completed_at": "2024-01-30T10:59:10.754153Z"}], "thread_id": "Thread-4", "execution_time": 0.010595321655273438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_network_userid.6e4a6bdf97"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.758144Z", "completed_at": "2024-01-30T10:59:10.764976Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.766327Z", "completed_at": "2024-01-30T10:59:10.766339Z"}], "thread_id": "Thread-4", "execution_time": 0.010667800903320312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_first_event_id.918c25b76d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.770279Z", "completed_at": "2024-01-30T10:59:10.777208Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.778528Z", "completed_at": "2024-01-30T10:59:10.778541Z"}], "thread_id": "Thread-4", "execution_time": 0.010769844055175781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_identifier.765b562252"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.053986Z", "completed_at": "2024-01-30T10:59:10.596214Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.597546Z", "completed_at": "2024-01-30T10:59:10.597559Z"}], "thread_id": "Thread-2", "execution_time": 0.7523477077484131, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_app_errors"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.782476Z", "completed_at": "2024-01-30T10:59:10.791073Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.794406Z", "completed_at": "2024-01-30T10:59:10.794418Z"}], "thread_id": "Thread-4", "execution_time": 0.01517629623413086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_session_index.c4dd0f3b15"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.800538Z", "completed_at": "2024-01-30T10:59:10.814863Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.816239Z", "completed_at": "2024-01-30T10:59:10.816253Z"}], "thread_id": "Thread-2", "execution_time": 0.019961118698120117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_this_run_user_identifier.0d35170908"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.808284Z", "completed_at": "2024-01-30T10:59:10.835583Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.847771Z", "completed_at": "2024-01-30T10:59:10.847792Z"}], "thread_id": "Thread-4", "execution_time": 0.05335187911987305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_app_errors_this_run_event_id.27c49e9797"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.820346Z", "completed_at": "2024-01-30T10:59:10.856585Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.867642Z", "completed_at": "2024-01-30T10:59:10.867660Z"}], "thread_id": "Thread-2", "execution_time": 0.051772356033325195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_views_this_run"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.857268Z", "completed_at": "2024-01-30T10:59:10.871553Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.876024Z", "completed_at": "2024-01-30T10:59:10.876035Z"}], "thread_id": "Thread-4", "execution_time": 0.02329730987548828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_pv_engaged_time_session_identifier.369fb4dedc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.879928Z", "completed_at": "2024-01-30T10:59:10.898325Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.900908Z", "completed_at": "2024-01-30T10:59:10.900923Z"}], "thread_id": "Thread-2", "execution_time": 0.027765989303588867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_pv_engaged_time_view_id.fab3bfc907"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.890836Z", "completed_at": "2024-01-30T10:59:10.900183Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.903679Z", "completed_at": "2024-01-30T10:59:10.903687Z"}], "thread_id": "Thread-4", "execution_time": 0.01749134063720703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_pv_scroll_depth_view_id.0e2d9dba7d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.909697Z", "completed_at": "2024-01-30T10:59:10.924929Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.926434Z", "completed_at": "2024-01-30T10:59:10.926447Z"}], "thread_id": "Thread-2", "execution_time": 0.02085566520690918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_pv_engaged_time__view_id_session_identifier_.f0fca93783"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.916878Z", "completed_at": "2024-01-30T10:59:10.930572Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.940099Z", "completed_at": "2024-01-30T10:59:10.940115Z"}], "thread_id": "Thread-4", "execution_time": 0.0323486328125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_pv_scroll_depth__view_id_session_identifier_.009d0ff70e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.931249Z", "completed_at": "2024-01-30T10:59:10.944007Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.951824Z", "completed_at": "2024-01-30T10:59:10.951839Z"}], "thread_id": "Thread-2", "execution_time": 0.02397608757019043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_web_vitals_this_run"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.945878Z", "completed_at": "2024-01-30T10:59:10.962261Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.963589Z", "completed_at": "2024-01-30T10:59:10.963602Z"}], "thread_id": "Thread-4", "execution_time": 0.022359609603881836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_web_vital_events_this_run_event_id.e5bc4bf41e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.956211Z", "completed_at": "2024-01-30T10:59:10.964257Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.967480Z", "completed_at": "2024-01-30T10:59:10.967489Z"}], "thread_id": "Thread-2", "execution_time": 0.014792203903198242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_web_vital_events_this_run_page_url.febc36e022"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.971472Z", "completed_at": "2024-01-30T10:59:10.987051Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.989341Z", "completed_at": "2024-01-30T10:59:10.989354Z"}], "thread_id": "Thread-4", "execution_time": 0.023353099822998047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_web_vital_events_this_run_event_id.e1799e0876"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.980925Z", "completed_at": "2024-01-30T10:59:11.001903Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.003299Z", "completed_at": "2024-01-30T10:59:11.003312Z"}], "thread_id": "Thread-2", "execution_time": 0.02687692642211914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_absolute_time_in_s.5768c67caa"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.994763Z", "completed_at": "2024-01-30T10:59:11.005147Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.008072Z", "completed_at": "2024-01-30T10:59:11.008080Z"}], "thread_id": "Thread-4", "execution_time": 0.01646733283996582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_device_session_index.5c2b86a93c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.010460Z", "completed_at": "2024-01-30T10:59:11.024893Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.026339Z", "completed_at": "2024-01-30T10:59:11.026353Z"}], "thread_id": "Thread-2", "execution_time": 0.020108938217163086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_end_tstamp.07dd45d070"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.019127Z", "completed_at": "2024-01-30T10:59:11.038450Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.039986Z", "completed_at": "2024-01-30T10:59:11.040000Z"}], "thread_id": "Thread-4", "execution_time": 0.023365020751953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_engaged_time_in_s.98c95134a4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.030399Z", "completed_at": "2024-01-30T10:59:11.043498Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.051488Z", "completed_at": "2024-01-30T10:59:11.051502Z"}], "thread_id": "Thread-2", "execution_time": 0.02402806282043457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_is_engaged.32ff9493b2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.045352Z", "completed_at": "2024-01-30T10:59:11.055521Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.063545Z", "completed_at": "2024-01-30T10:59:11.063560Z"}], "thread_id": "Thread-4", "execution_time": 0.022114992141723633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_session_identifier.38695dce6d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.057417Z", "completed_at": "2024-01-30T10:59:11.067862Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.075750Z", "completed_at": "2024-01-30T10:59:11.075762Z"}], "thread_id": "Thread-2", "execution_time": 0.022215843200683594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_start_tstamp.4b70415d30"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.068546Z", "completed_at": "2024-01-30T10:59:11.079557Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.089100Z", "completed_at": "2024-01-30T10:59:11.089116Z"}], "thread_id": "Thread-4", "execution_time": 0.024761199951171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_total_events.29cffeca11"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:09.977841Z", "completed_at": "2024-01-30T10:59:10.874347Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:10.879176Z", "completed_at": "2024-01-30T10:59:10.879184Z"}], "thread_id": "Thread-1", "execution_time": 1.1222946643829346, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_user_mapping"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.081425Z", "completed_at": "2024-01-30T10:59:11.102973Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.107079Z", "completed_at": "2024-01-30T10:59:11.107094Z"}], "thread_id": "Thread-2", "execution_time": 0.036681175231933594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_this_run_views.e8617150ef"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.096121Z", "completed_at": "2024-01-30T10:59:11.106361Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.116335Z", "completed_at": "2024-01-30T10:59:11.116345Z"}], "thread_id": "Thread-4", "execution_time": 0.02548384666442871, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_sessions_this_run_session_identifier.9866ae020a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.107779Z", "completed_at": "2024-01-30T10:59:11.120022Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.130437Z", "completed_at": "2024-01-30T10:59:11.130453Z"}], "thread_id": "Thread-1", "execution_time": 0.03029346466064453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_collector_tstamp.fd6db01a42"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.123682Z", "completed_at": "2024-01-30T10:59:11.143282Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.148335Z", "completed_at": "2024-01-30T10:59:11.148351Z"}], "thread_id": "Thread-2", "execution_time": 0.032128095626831055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_derived_tstamp.57ca9d9382"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.134919Z", "completed_at": "2024-01-30T10:59:11.146879Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.160384Z", "completed_at": "2024-01-30T10:59:11.160399Z"}], "thread_id": "Thread-4", "execution_time": 0.0403134822845459, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_dvce_created_tstamp.f8ea85c5e4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.152211Z", "completed_at": "2024-01-30T10:59:11.164654Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.171738Z", "completed_at": "2024-01-30T10:59:11.171751Z"}], "thread_id": "Thread-1", "execution_time": 0.034776926040649414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_event_id.1927547c47"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.181663Z", "completed_at": "2024-01-30T10:59:11.190187Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.200178Z", "completed_at": "2024-01-30T10:59:11.200194Z"}], "thread_id": "Thread-4", "execution_time": 0.031781911849975586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_network_userid.5f50553758"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.172651Z", "completed_at": "2024-01-30T10:59:11.190862Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.200966Z", "completed_at": "2024-01-30T10:59:11.200977Z"}], "thread_id": "Thread-2", "execution_time": 0.038034915924072266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_model_tstamp.1dbf1b6723"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.193416Z", "completed_at": "2024-01-30T10:59:11.204888Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.209390Z", "completed_at": "2024-01-30T10:59:11.209400Z"}], "thread_id": "Thread-1", "execution_time": 0.02999138832092285, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_first_event_id.cc8700559f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.210693Z", "completed_at": "2024-01-30T10:59:11.227341Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.231047Z", "completed_at": "2024-01-30T10:59:11.231060Z"}], "thread_id": "Thread-4", "execution_time": 0.03314208984375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_identifier.3099f21f2c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.220066Z", "completed_at": "2024-01-30T10:59:11.229708Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.240470Z", "completed_at": "2024-01-30T10:59:11.240481Z"}], "thread_id": "Thread-2", "execution_time": 0.03448748588562012, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_session_index.0c20768315"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.232351Z", "completed_at": "2024-01-30T10:59:11.244252Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.254466Z", "completed_at": "2024-01-30T10:59:11.254480Z"}], "thread_id": "Thread-1", "execution_time": 0.030614852905273438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_app_errors_user_identifier.f874778b72"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.247764Z", "completed_at": "2024-01-30T10:59:11.264861Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.275929Z", "completed_at": "2024-01-30T10:59:11.275946Z"}], "thread_id": "Thread-4", "execution_time": 0.03488755226135254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_app_errors_event_id.f6537234ea"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.279117Z", "completed_at": "2024-01-30T10:59:11.297043Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.298461Z", "completed_at": "2024-01-30T10:59:11.298479Z"}], "thread_id": "Thread-1", "execution_time": 0.026831388473510742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_absolute_time_in_s.960178ffa8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.290571Z", "completed_at": "2024-01-30T10:59:11.300279Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.303243Z", "completed_at": "2024-01-30T10:59:11.303254Z"}], "thread_id": "Thread-4", "execution_time": 0.01607823371887207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_collector_tstamp.98b0c0df1b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.305669Z", "completed_at": "2024-01-30T10:59:11.320156Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.321532Z", "completed_at": "2024-01-30T10:59:11.321545Z"}], "thread_id": "Thread-1", "execution_time": 0.020411252975463867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_derived_tstamp.3270a2d7ef"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.314229Z", "completed_at": "2024-01-30T10:59:11.325317Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.335001Z", "completed_at": "2024-01-30T10:59:11.335016Z"}], "thread_id": "Thread-4", "execution_time": 0.023482322692871094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_device_session_index.3c52b66c6d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.327247Z", "completed_at": "2024-01-30T10:59:11.345631Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.347098Z", "completed_at": "2024-01-30T10:59:11.347111Z"}], "thread_id": "Thread-1", "execution_time": 0.023853302001953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_dvce_created_tstamp.19b30ff7fb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:10.042081Z", "completed_at": "2024-01-30T10:59:11.147643Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.161135Z", "completed_at": "2024-01-30T10:59:11.161145Z"}], "thread_id": "Thread-3", "execution_time": 1.3158783912658691, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_consent_log"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.339255Z", "completed_at": "2024-01-30T10:59:11.349915Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.353529Z", "completed_at": "2024-01-30T10:59:11.353545Z"}], "thread_id": "Thread-4", "execution_time": 0.024289846420288086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_end_tstamp.4af862c0e6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.355594Z", "completed_at": "2024-01-30T10:59:11.366554Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.383411Z", "completed_at": "2024-01-30T10:59:11.383425Z"}], "thread_id": "Thread-1", "execution_time": 0.034455299377441406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_engaged_time_in_s.efb00705e1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.369430Z", "completed_at": "2024-01-30T10:59:11.389309Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.396664Z", "completed_at": "2024-01-30T10:59:11.396678Z"}], "thread_id": "Thread-3", "execution_time": 0.03789544105529785, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_event_id.1cbbdc3adf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.375837Z", "completed_at": "2024-01-30T10:59:11.395964Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.403645Z", "completed_at": "2024-01-30T10:59:11.403659Z"}], "thread_id": "Thread-4", "execution_time": 0.03979611396789551, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_session_identifier.59be3a100c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.390066Z", "completed_at": "2024-01-30T10:59:11.407988Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.417830Z", "completed_at": "2024-01-30T10:59:11.417846Z"}], "thread_id": "Thread-1", "execution_time": 0.038526296615600586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_start_tstamp.c8c1676039"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.410891Z", "completed_at": "2024-01-30T10:59:11.433821Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.436990Z", "completed_at": "2024-01-30T10:59:11.437002Z"}], "thread_id": "Thread-3", "execution_time": 0.03236532211303711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_view_id.6bc7169d25"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.418825Z", "completed_at": "2024-01-30T10:59:11.436316Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.439643Z", "completed_at": "2024-01-30T10:59:11.439654Z"}], "thread_id": "Thread-4", "execution_time": 0.03271007537841797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_view_in_session_index.5ce5ac1b50"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.428645Z", "completed_at": "2024-01-30T10:59:11.440338Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.445021Z", "completed_at": "2024-01-30T10:59:11.445029Z"}], "thread_id": "Thread-1", "execution_time": 0.020276308059692383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_this_run_views_in_session.6dc8364a51"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.448296Z", "completed_at": "2024-01-30T10:59:11.464314Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.477144Z", "completed_at": "2024-01-30T10:59:11.477163Z"}], "thread_id": "Thread-3", "execution_time": 0.03573465347290039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_views_this_run_event_id.5609868632"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.457433Z", "completed_at": "2024-01-30T10:59:11.471596Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.480220Z", "completed_at": "2024-01-30T10:59:11.480231Z"}], "thread_id": "Thread-4", "execution_time": 0.036429405212402344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_views_this_run_view_id.5cfb771408"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.466416Z", "completed_at": "2024-01-30T10:59:11.480987Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.485877Z", "completed_at": "2024-01-30T10:59:11.485885Z"}], "thread_id": "Thread-1", "execution_time": 0.0249941349029541, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_web_vitals"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.501497Z", "completed_at": "2024-01-30T10:59:11.624622Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.628134Z", "completed_at": "2024-01-30T10:59:11.628149Z"}], "thread_id": "Thread-4", "execution_time": 0.14201998710632324, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_user_mapping_end_tstamp.8930fbf647"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.618527Z", "completed_at": "2024-01-30T10:59:11.631156Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.633890Z", "completed_at": "2024-01-30T10:59:11.633898Z"}], "thread_id": "Thread-1", "execution_time": 0.037657737731933594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_user_mapping_user_id.0fb58f2762"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.634611Z", "completed_at": "2024-01-30T10:59:11.649683Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.651224Z", "completed_at": "2024-01-30T10:59:11.651236Z"}], "thread_id": "Thread-4", "execution_time": 0.020374059677124023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_user_mapping_user_identifier.fc04955624"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.644031Z", "completed_at": "2024-01-30T10:59:11.652999Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.655926Z", "completed_at": "2024-01-30T10:59:11.655934Z"}], "thread_id": "Thread-1", "execution_time": 0.014785528182983398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_user_mapping_user_identifier.35e726d1ba"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.658302Z", "completed_at": "2024-01-30T10:59:11.679962Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.682510Z", "completed_at": "2024-01-30T10:59:11.682525Z"}], "thread_id": "Thread-4", "execution_time": 0.028774023056030273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_consent_cmp_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.686961Z", "completed_at": "2024-01-30T10:59:11.692427Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.693864Z", "completed_at": "2024-01-30T10:59:11.693878Z"}], "thread_id": "Thread-4", "execution_time": 0.009762763977050781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_log_actual"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.698601Z", "completed_at": "2024-01-30T10:59:11.705758Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.707978Z", "completed_at": "2024-01-30T10:59:11.707994Z"}], "thread_id": "Thread-4", "execution_time": 0.01288747787475586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.accepted_values_snowplow_unified_consent_log_event_type__deny_all__allow_all__allow_selected__pending__implicit_consent__withdrawn__expired.0f024b208b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.714578Z", "completed_at": "2024-01-30T10:59:11.726123Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.727527Z", "completed_at": "2024-01-30T10:59:11.727540Z"}], "thread_id": "Thread-4", "execution_time": 0.01633167266845703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_consent_log_event_id.d048b68e09"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.731409Z", "completed_at": "2024-01-30T10:59:11.737981Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.739280Z", "completed_at": "2024-01-30T10:59:11.739292Z"}], "thread_id": "Thread-4", "execution_time": 0.01028132438659668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_consent_log_event_id.cb11e5f422"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.743225Z", "completed_at": "2024-01-30T10:59:11.763365Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.764777Z", "completed_at": "2024-01-30T10:59:11.764792Z"}], "thread_id": "Thread-4", "execution_time": 0.02406144142150879, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_web_vital_measurements"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.769039Z", "completed_at": "2024-01-30T10:59:11.774719Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.776033Z", "completed_at": "2024-01-30T10:59:11.776045Z"}], "thread_id": "Thread-4", "execution_time": 0.009607076644897461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_cmp_stats_actual"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.779874Z", "completed_at": "2024-01-30T10:59:11.788304Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.789900Z", "completed_at": "2024-01-30T10:59:11.789916Z"}], "thread_id": "Thread-4", "execution_time": 0.014405965805053711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_consent_cmp_stats_event_id.70b4093ca8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.797917Z", "completed_at": "2024-01-30T10:59:11.804173Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.805488Z", "completed_at": "2024-01-30T10:59:11.805499Z"}], "thread_id": "Thread-4", "execution_time": 0.010385990142822266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_consent_cmp_stats_event_id.4bdb9bcc41"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.809536Z", "completed_at": "2024-01-30T10:59:11.816638Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:11.817975Z", "completed_at": "2024-01-30T10:59:11.817988Z"}], "thread_id": "Thread-4", "execution_time": 0.010959148406982422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_.2bc14dd7de"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.259774Z", "completed_at": "2024-01-30T10:59:12.121735Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.123109Z", "completed_at": "2024-01-30T10:59:12.123124Z"}], "thread_id": "Thread-2", "execution_time": 1.0495164394378662, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_views"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.669680Z", "completed_at": "2024-01-30T10:59:12.158777Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.160138Z", "completed_at": "2024-01-30T10:59:12.160151Z"}], "thread_id": "Thread-1", "execution_time": 0.6418964862823486, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_consent_versions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.301797Z", "completed_at": "2024-01-30T10:59:12.318162Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.323292Z", "completed_at": "2024-01-30T10:59:12.323307Z"}], "thread_id": "Thread-2", "execution_time": 0.03175973892211914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_web_vital_measurements_actual"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.323992Z", "completed_at": "2024-01-30T10:59:12.343711Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.345121Z", "completed_at": "2024-01-30T10:59:12.345134Z"}], "thread_id": "Thread-1", "execution_time": 0.02681422233581543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_web_vital_measurements_compound_key.ff79f11fe6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.335981Z", "completed_at": "2024-01-30T10:59:12.348588Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.357130Z", "completed_at": "2024-01-30T10:59:12.357143Z"}], "thread_id": "Thread-2", "execution_time": 0.023934125900268555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_web_vital_measurements_compound_key.cf8bddba94"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.350503Z", "completed_at": "2024-01-30T10:59:12.359979Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.362813Z", "completed_at": "2024-01-30T10:59:12.362820Z"}], "thread_id": "Thread-1", "execution_time": 0.02592158317565918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_.22d90b662d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.378984Z", "completed_at": "2024-01-30T10:59:12.390781Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.392306Z", "completed_at": "2024-01-30T10:59:12.392319Z"}], "thread_id": "Thread-1", "execution_time": 0.016686677932739258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_views_actual"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.396560Z", "completed_at": "2024-01-30T10:59:12.402757Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.403995Z", "completed_at": "2024-01-30T10:59:12.404004Z"}], "thread_id": "Thread-1", "execution_time": 0.009875297546386719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_absolute_time_in_s.54b3c5c9fc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.407862Z", "completed_at": "2024-01-30T10:59:12.413802Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.415152Z", "completed_at": "2024-01-30T10:59:12.415163Z"}], "thread_id": "Thread-1", "execution_time": 0.009646415710449219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_collector_tstamp.826c18335b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.419010Z", "completed_at": "2024-01-30T10:59:12.425224Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.426523Z", "completed_at": "2024-01-30T10:59:12.426535Z"}], "thread_id": "Thread-1", "execution_time": 0.009838104248046875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_derived_tstamp.8e5fcb344e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.489217Z", "completed_at": "2024-01-30T10:59:12.222484Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.223764Z", "completed_at": "2024-01-30T10:59:12.223777Z"}], "thread_id": "Thread-3", "execution_time": 0.9537522792816162, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_sessions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.431089Z", "completed_at": "2024-01-30T10:59:12.437007Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.440456Z", "completed_at": "2024-01-30T10:59:12.440468Z"}], "thread_id": "Thread-1", "execution_time": 0.014516353607177734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_device_session_index.3a9aeaa22e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.445687Z", "completed_at": "2024-01-30T10:59:12.460700Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.462083Z", "completed_at": "2024-01-30T10:59:12.462096Z"}], "thread_id": "Thread-3", "execution_time": 0.020973920822143555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_dvce_created_tstamp.2cfe0b4cb4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.454743Z", "completed_at": "2024-01-30T10:59:12.472324Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.474032Z", "completed_at": "2024-01-30T10:59:12.474045Z"}], "thread_id": "Thread-1", "execution_time": 0.023041725158691406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_end_tstamp.901b1d09a9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.466333Z", "completed_at": "2024-01-30T10:59:12.474851Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.480948Z", "completed_at": "2024-01-30T10:59:12.480957Z"}], "thread_id": "Thread-3", "execution_time": 0.02504253387451172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_engaged_time_in_s.dd74f36be9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.493055Z", "completed_at": "2024-01-30T10:59:12.511140Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.512502Z", "completed_at": "2024-01-30T10:59:12.512516Z"}], "thread_id": "Thread-1", "execution_time": 0.03180861473083496, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_event_id.4fc9c1e85a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.504644Z", "completed_at": "2024-01-30T10:59:12.522638Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.524092Z", "completed_at": "2024-01-30T10:59:12.524104Z"}], "thread_id": "Thread-3", "execution_time": 0.024172544479370117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_session_identifier.f4ae3412ff"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.516529Z", "completed_at": "2024-01-30T10:59:12.533522Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.536044Z", "completed_at": "2024-01-30T10:59:12.536055Z"}], "thread_id": "Thread-1", "execution_time": 0.022066831588745117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_start_tstamp.dbc42b7f20"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.528397Z", "completed_at": "2024-01-30T10:59:12.545990Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.547417Z", "completed_at": "2024-01-30T10:59:12.547429Z"}], "thread_id": "Thread-3", "execution_time": 0.021537303924560547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_view_id.3a1d547e18"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.539953Z", "completed_at": "2024-01-30T10:59:12.550867Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.560058Z", "completed_at": "2024-01-30T10:59:12.560073Z"}], "thread_id": "Thread-1", "execution_time": 0.02303481101989746, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_view_in_session_index.e092c63b1e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.552714Z", "completed_at": "2024-01-30T10:59:12.564357Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.570901Z", "completed_at": "2024-01-30T10:59:12.570912Z"}], "thread_id": "Thread-3", "execution_time": 0.022017478942871094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_views_views_in_session.b139e474d0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.566447Z", "completed_at": "2024-01-30T10:59:12.580803Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.582243Z", "completed_at": "2024-01-30T10:59:12.582254Z"}], "thread_id": "Thread-1", "execution_time": 0.019763469696044922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.snowplow_tests_view_in_session_values"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.575086Z", "completed_at": "2024-01-30T10:59:12.584073Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.587016Z", "completed_at": "2024-01-30T10:59:12.587025Z"}], "thread_id": "Thread-3", "execution_time": 0.014981269836425781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_views_event_id.e61ed6df21"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.589575Z", "completed_at": "2024-01-30T10:59:12.610435Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.617766Z", "completed_at": "2024-01-30T10:59:12.617783Z"}], "thread_id": "Thread-1", "execution_time": 0.03560376167297363, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_views_view_id.deffd898f9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.625107Z", "completed_at": "2024-01-30T10:59:12.634193Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.637012Z", "completed_at": "2024-01-30T10:59:12.637026Z"}], "thread_id": "Thread-1", "execution_time": 0.015200614929199219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_versions_actual"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.642138Z", "completed_at": "2024-01-30T10:59:12.659937Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.661594Z", "completed_at": "2024-01-30T10:59:12.661610Z"}], "thread_id": "Thread-1", "execution_time": 0.02326512336730957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_consent_versions_consent_version.309008d9d1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.666727Z", "completed_at": "2024-01-30T10:59:12.671328Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.672567Z", "completed_at": "2024-01-30T10:59:12.672580Z"}], "thread_id": "Thread-1", "execution_time": 0.008284568786621094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.snowplow_tests_consent_versions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.676575Z", "completed_at": "2024-01-30T10:59:12.684202Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.685482Z", "completed_at": "2024-01-30T10:59:12.685495Z"}], "thread_id": "Thread-1", "execution_time": 0.011370420455932617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_consent_versions_consent_version.5ceb06b341"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.689524Z", "completed_at": "2024-01-30T10:59:12.696961Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.699151Z", "completed_at": "2024-01-30T10:59:12.699168Z"}], "thread_id": "Thread-1", "execution_time": 0.012928485870361328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg_.d3e434d0cf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:11.822118Z", "completed_at": "2024-01-30T10:59:12.630092Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.631618Z", "completed_at": "2024-01-30T10:59:12.631630Z"}], "thread_id": "Thread-4", "execution_time": 0.9905357360839844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_log_actual_ref_snowplow_unified_consent_log_expected_stg_.71b95e8674"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.814741Z", "completed_at": "2024-01-30T10:59:12.823135Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:12.824445Z", "completed_at": "2024-01-30T10:59:12.824457Z"}], "thread_id": "Thread-4", "execution_time": 0.012273550033569336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_.bcfd303281"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.598223Z", "completed_at": "2024-01-30T10:59:13.207519Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.208826Z", "completed_at": "2024-01-30T10:59:13.208840Z"}], "thread_id": "Thread-3", "execution_time": 0.7673397064208984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_consent_users"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.367895Z", "completed_at": "2024-01-30T10:59:13.376717Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.378031Z", "completed_at": "2024-01-30T10:59:13.378044Z"}], "thread_id": "Thread-3", "execution_time": 0.012902975082397461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_users_sessions_this_run"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.382137Z", "completed_at": "2024-01-30T10:59:13.391258Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.392547Z", "completed_at": "2024-01-30T10:59:13.392561Z"}], "thread_id": "Thread-3", "execution_time": 0.013010501861572266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_sessions_actual"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.396656Z", "completed_at": "2024-01-30T10:59:13.403096Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.404399Z", "completed_at": "2024-01-30T10:59:13.404412Z"}], "thread_id": "Thread-3", "execution_time": 0.01011514663696289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_absolute_time_in_s.615acac3d6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.408317Z", "completed_at": "2024-01-30T10:59:13.421440Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.424467Z", "completed_at": "2024-01-30T10:59:13.424482Z"}], "thread_id": "Thread-3", "execution_time": 0.019443511962890625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_device_session_index.04ce4fd111"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.434278Z", "completed_at": "2024-01-30T10:59:13.442063Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.443499Z", "completed_at": "2024-01-30T10:59:13.443514Z"}], "thread_id": "Thread-3", "execution_time": 0.014484405517578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_end_tstamp.d10ab70f31"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.448028Z", "completed_at": "2024-01-30T10:59:13.454661Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.455963Z", "completed_at": "2024-01-30T10:59:13.455975Z"}], "thread_id": "Thread-3", "execution_time": 0.010539531707763672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_engaged_time_in_s.6b702898cc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.460350Z", "completed_at": "2024-01-30T10:59:13.469417Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.477446Z", "completed_at": "2024-01-30T10:59:13.477462Z"}], "thread_id": "Thread-3", "execution_time": 0.02046036720275879, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_is_engaged.05221eb41c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.484810Z", "completed_at": "2024-01-30T10:59:13.491448Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.492729Z", "completed_at": "2024-01-30T10:59:13.492741Z"}], "thread_id": "Thread-3", "execution_time": 0.010492801666259766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_session_identifier.833be1a65d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.497755Z", "completed_at": "2024-01-30T10:59:13.518894Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.523774Z", "completed_at": "2024-01-30T10:59:13.523789Z"}], "thread_id": "Thread-3", "execution_time": 0.029013872146606445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_start_tstamp.22e855927c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.528132Z", "completed_at": "2024-01-30T10:59:13.537644Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.539069Z", "completed_at": "2024-01-30T10:59:13.539082Z"}], "thread_id": "Thread-3", "execution_time": 0.013616800308227539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_total_events.5c72a6e786"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.543012Z", "completed_at": "2024-01-30T10:59:13.549464Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.550790Z", "completed_at": "2024-01-30T10:59:13.550804Z"}], "thread_id": "Thread-3", "execution_time": 0.010166645050048828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_sessions_views.9efb838735"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.554778Z", "completed_at": "2024-01-30T10:59:13.560876Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.562236Z", "completed_at": "2024-01-30T10:59:13.562249Z"}], "thread_id": "Thread-3", "execution_time": 0.00988149642944336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_sessions_session_identifier.3620ace50e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.566196Z", "completed_at": "2024-01-30T10:59:13.573200Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.574645Z", "completed_at": "2024-01-30T10:59:13.574661Z"}], "thread_id": "Thread-3", "execution_time": 0.010905027389526367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_.7b92210c06"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.363533Z", "completed_at": "2024-01-30T10:59:13.423440Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.427365Z", "completed_at": "2024-01-30T10:59:13.427374Z"}], "thread_id": "Thread-2", "execution_time": 1.4249138832092285, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_cmp_stats_actual_ref_snowplow_unified_consent_cmp_stats_expected_stg_.ada2f282a8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.788873Z", "completed_at": "2024-01-30T10:59:13.797260Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.798712Z", "completed_at": "2024-01-30T10:59:13.798723Z"}], "thread_id": "Thread-2", "execution_time": 0.012285232543945312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_consent_scope_status"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.817662Z", "completed_at": "2024-01-30T10:59:13.849930Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.856028Z", "completed_at": "2024-01-30T10:59:13.856046Z"}], "thread_id": "Thread-2", "execution_time": 0.0549161434173584, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_consent_totals"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.860655Z", "completed_at": "2024-01-30T10:59:13.865592Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.866916Z", "completed_at": "2024-01-30T10:59:13.866926Z"}], "thread_id": "Thread-2", "execution_time": 0.008729696273803711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_users_actual"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.870851Z", "completed_at": "2024-01-30T10:59:13.876560Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.877784Z", "completed_at": "2024-01-30T10:59:13.877794Z"}], "thread_id": "Thread-2", "execution_time": 0.009480476379394531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_consent_users_user_identifier.6c2cb3f0a2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.881547Z", "completed_at": "2024-01-30T10:59:13.889376Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.890660Z", "completed_at": "2024-01-30T10:59:13.890671Z"}], "thread_id": "Thread-2", "execution_time": 0.011411428451538086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_consent_users_user_identifier.e93ed6baff"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.894534Z", "completed_at": "2024-01-30T10:59:13.903448Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.904903Z", "completed_at": "2024-01-30T10:59:13.904916Z"}], "thread_id": "Thread-2", "execution_time": 0.012978076934814453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_users_aggs"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.909201Z", "completed_at": "2024-01-30T10:59:13.915918Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.917199Z", "completed_at": "2024-01-30T10:59:13.917212Z"}], "thread_id": "Thread-2", "execution_time": 0.01065373420715332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_sessions_this_run_session_identifier.ccd4dad35f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.921076Z", "completed_at": "2024-01-30T10:59:13.927635Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.928930Z", "completed_at": "2024-01-30T10:59:13.928942Z"}], "thread_id": "Thread-2", "execution_time": 0.01028752326965332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_users_sessions_this_run_session_identifier.d123f43ae3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.932829Z", "completed_at": "2024-01-30T10:59:13.939972Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.941235Z", "completed_at": "2024-01-30T10:59:13.941247Z"}], "thread_id": "Thread-2", "execution_time": 0.010978937149047852, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_.deb9a7689f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.828513Z", "completed_at": "2024-01-30T10:59:13.992793Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:13.996001Z", "completed_at": "2024-01-30T10:59:13.996018Z"}], "thread_id": "Thread-4", "execution_time": 1.3590388298034668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_views_actual_ref_snowplow_unified_views_expected_stg_.13f329e6b4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:14.189401Z", "completed_at": "2024-01-30T10:59:14.194473Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:14.195742Z", "completed_at": "2024-01-30T10:59:14.195753Z"}], "thread_id": "Thread-4", "execution_time": 0.008744239807128906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_scope_status_actual"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:12.706158Z", "completed_at": "2024-01-30T10:59:14.000107Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:14.002638Z", "completed_at": "2024-01-30T10:59:14.002653Z"}], "thread_id": "Thread-1", "execution_time": 1.5058503150939941, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.snowplow_unified_integration_tests_equality_snowplow_unified_web_vital_measurements_actual_ref_snowplow_unified_web_vital_measurements_expected_stg___3.2ce4bf2e3f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:14.199875Z", "completed_at": "2024-01-30T10:59:14.207836Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:14.211585Z", "completed_at": "2024-01-30T10:59:14.211596Z"}], "thread_id": "Thread-4", "execution_time": 0.015211820602416992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_consent_scope_status_scope.2b9365b124"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:14.215866Z", "completed_at": "2024-01-30T10:59:14.235901Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:14.239304Z", "completed_at": "2024-01-30T10:59:14.239319Z"}], "thread_id": "Thread-1", "execution_time": 0.02994680404663086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_consent_scope_status_scope.cd80ea727a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:14.230703Z", "completed_at": "2024-01-30T10:59:14.238564Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:14.243653Z", "completed_at": "2024-01-30T10:59:14.243666Z"}], "thread_id": "Thread-4", "execution_time": 0.02207016944885254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_consent_totals_actual"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:14.249992Z", "completed_at": "2024-01-30T10:59:14.270182Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:14.273608Z", "completed_at": "2024-01-30T10:59:14.273622Z"}], "thread_id": "Thread-1", "execution_time": 0.028585195541381836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_.8251b18a75"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:14.278559Z", "completed_at": "2024-01-30T10:59:14.287506Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:14.288843Z", "completed_at": "2024-01-30T10:59:14.288855Z"}], "thread_id": "Thread-1", "execution_time": 0.012848377227783203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_users_lasts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:14.292828Z", "completed_at": "2024-01-30T10:59:14.300406Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:14.301680Z", "completed_at": "2024-01-30T10:59:14.301690Z"}], "thread_id": "Thread-1", "execution_time": 0.011267662048339844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_aggs_user_identifier.67601373c5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:14.305503Z", "completed_at": "2024-01-30T10:59:14.314287Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:14.316150Z", "completed_at": "2024-01-30T10:59:14.316168Z"}], "thread_id": "Thread-1", "execution_time": 0.013144254684448242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_users_aggs_user_identifier.7a0ce8ecea"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:14.320313Z", "completed_at": "2024-01-30T10:59:14.327451Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:14.328747Z", "completed_at": "2024-01-30T10:59:14.328759Z"}], "thread_id": "Thread-1", "execution_time": 0.010823965072631836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_.b8cacd3cab"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.578652Z", "completed_at": "2024-01-30T10:59:14.352258Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:14.354478Z", "completed_at": "2024-01-30T10:59:14.354497Z"}], "thread_id": "Thread-3", "execution_time": 0.9347834587097168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_versions_actual_ref_snowplow_unified_consent_versions_expected_stg_.6e4043b1d2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:14.515457Z", "completed_at": "2024-01-30T10:59:14.522494Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:14.523939Z", "completed_at": "2024-01-30T10:59:14.523952Z"}], "thread_id": "Thread-3", "execution_time": 0.010942697525024414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_.485f757328"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:13.945390Z", "completed_at": "2024-01-30T10:59:14.802117Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:14.803415Z", "completed_at": "2024-01-30T10:59:14.803429Z"}], "thread_id": "Thread-2", "execution_time": 1.020920753479004, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_sessions_actual_ref_snowplow_unified_sessions_expected_stg_.e1af6ef1db"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:14.968210Z", "completed_at": "2024-01-30T10:59:14.982555Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:14.983872Z", "completed_at": "2024-01-30T10:59:14.983886Z"}], "thread_id": "Thread-2", "execution_time": 0.018072128295898438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_users_this_run"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:14.987882Z", "completed_at": "2024-01-30T10:59:14.995037Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:14.996335Z", "completed_at": "2024-01-30T10:59:14.996347Z"}], "thread_id": "Thread-2", "execution_time": 0.010822057723999023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_lasts_user_identifier.bf9c874d36"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.000260Z", "completed_at": "2024-01-30T10:59:15.007948Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.009218Z", "completed_at": "2024-01-30T10:59:15.009230Z"}], "thread_id": "Thread-2", "execution_time": 0.011350154876708984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_users_lasts_user_identifier.2e0875d502"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:14.258843Z", "completed_at": "2024-01-30T10:59:15.056871Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.058251Z", "completed_at": "2024-01-30T10:59:15.058266Z"}], "thread_id": "Thread-4", "execution_time": 0.9832251071929932, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_users_actual_ref_snowplow_unified_consent_users_expected_stg_.ed39291772"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.235768Z", "completed_at": "2024-01-30T10:59:15.243808Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.245387Z", "completed_at": "2024-01-30T10:59:15.245402Z"}], "thread_id": "Thread-4", "execution_time": 0.012174367904663086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_this_run_end_tstamp.2343122421"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.249399Z", "completed_at": "2024-01-30T10:59:15.268422Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.270307Z", "completed_at": "2024-01-30T10:59:15.270326Z"}], "thread_id": "Thread-4", "execution_time": 0.023517847061157227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_this_run_engaged_time_in_s.6c8ec87fc3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.274472Z", "completed_at": "2024-01-30T10:59:15.280888Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.282206Z", "completed_at": "2024-01-30T10:59:15.282218Z"}], "thread_id": "Thread-4", "execution_time": 0.010207176208496094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_this_run_network_userid.01e75c2b66"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.295015Z", "completed_at": "2024-01-30T10:59:15.305385Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.307157Z", "completed_at": "2024-01-30T10:59:15.307173Z"}], "thread_id": "Thread-4", "execution_time": 0.02276897430419922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_this_run_sessions.3a2f33dcae"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:14.332649Z", "completed_at": "2024-01-30T10:59:15.150636Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.151977Z", "completed_at": "2024-01-30T10:59:15.151992Z"}], "thread_id": "Thread-1", "execution_time": 0.9868795871734619, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_scope_status_actual_ref_snowplow_unified_consent_scope_status_expected_stg_.cd008a201b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.312014Z", "completed_at": "2024-01-30T10:59:15.327826Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.330821Z", "completed_at": "2024-01-30T10:59:15.330836Z"}], "thread_id": "Thread-4", "execution_time": 0.021481990814208984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_this_run_start_tstamp.e6b6b8a018"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.322707Z", "completed_at": "2024-01-30T10:59:15.341607Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.343156Z", "completed_at": "2024-01-30T10:59:15.343168Z"}], "thread_id": "Thread-1", "execution_time": 0.023016929626464844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_this_run_user_identifier.2a721feeaf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.334998Z", "completed_at": "2024-01-30T10:59:15.353318Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.354931Z", "completed_at": "2024-01-30T10:59:15.354944Z"}], "thread_id": "Thread-4", "execution_time": 0.02250838279724121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_this_run_views.6535b10483"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.347092Z", "completed_at": "2024-01-30T10:59:15.356901Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.358211Z", "completed_at": "2024-01-30T10:59:15.358219Z"}], "thread_id": "Thread-1", "execution_time": 0.013533353805541992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_users_this_run_user_identifier.84672e2e42"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:14.528043Z", "completed_at": "2024-01-30T10:59:15.420877Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.422239Z", "completed_at": "2024-01-30T10:59:15.422252Z"}], "thread_id": "Thread-3", "execution_time": 1.0812511444091797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_consent_totals_actual_ref_snowplow_unified_consent_totals_expected_stg_.89fccda7d0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.013203Z", "completed_at": "2024-01-30T10:59:15.596081Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.597454Z", "completed_at": "2024-01-30T10:59:15.597471Z"}], "thread_id": "Thread-2", "execution_time": 0.756077766418457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified.snowplow_unified_users"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.777688Z", "completed_at": "2024-01-30T10:59:15.804910Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.806714Z", "completed_at": "2024-01-30T10:59:15.806728Z"}], "thread_id": "Thread-4", "execution_time": 0.03644204139709473, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snowplow_unified_integration_tests.snowplow_unified_users_actual"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.792941Z", "completed_at": "2024-01-30T10:59:15.810255Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.822786Z", "completed_at": "2024-01-30T10:59:15.822802Z"}], "thread_id": "Thread-3", "execution_time": 0.050245046615600586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_engaged_time_in_s.c55717a97e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.787031Z", "completed_at": "2024-01-30T10:59:15.811922Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.823641Z", "completed_at": "2024-01-30T10:59:15.823649Z"}], "thread_id": "Thread-1", "execution_time": 0.053144216537475586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_end_tstamp.f58b0bcf06"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.798952Z", "completed_at": "2024-01-30T10:59:15.812608Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.824404Z", "completed_at": "2024-01-30T10:59:15.824412Z"}], "thread_id": "Thread-2", "execution_time": 0.052300214767456055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_network_userid.998e27e258"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.814822Z", "completed_at": "2024-01-30T10:59:15.827534Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.834076Z", "completed_at": "2024-01-30T10:59:15.834089Z"}], "thread_id": "Thread-4", "execution_time": 0.027773380279541016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_sessions.55421015ef"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.838564Z", "completed_at": "2024-01-30T10:59:15.860285Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.864972Z", "completed_at": "2024-01-30T10:59:15.864987Z"}], "thread_id": "Thread-3", "execution_time": 0.04132986068725586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_start_tstamp.5d33b09a65"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.853547Z", "completed_at": "2024-01-30T10:59:15.863585Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.874608Z", "completed_at": "2024-01-30T10:59:15.874622Z"}], "thread_id": "Thread-2", "execution_time": 0.04303550720214844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_views.bbd526f2de"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.846747Z", "completed_at": "2024-01-30T10:59:15.864252Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.875342Z", "completed_at": "2024-01-30T10:59:15.875353Z"}], "thread_id": "Thread-1", "execution_time": 0.045885562896728516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.not_null_snowplow_unified_users_user_identifier.38f23dc040"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.865676Z", "completed_at": "2024-01-30T10:59:15.876095Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.882259Z", "completed_at": "2024-01-30T10:59:15.882268Z"}], "thread_id": "Thread-4", "execution_time": 0.023746013641357422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified.unique_snowplow_unified_users_user_identifier.fd4bf488ce"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.885594Z", "completed_at": "2024-01-30T10:59:15.906677Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:15.909602Z", "completed_at": "2024-01-30T10:59:15.909618Z"}], "thread_id": "Thread-3", "execution_time": 0.030298948287963867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equal_rowcount_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_.78448e6f51"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-01-30T10:59:15.895685Z", "completed_at": "2024-01-30T10:59:16.726143Z"}, {"name": "execute", "started_at": "2024-01-30T10:59:16.727486Z", "completed_at": "2024-01-30T10:59:16.727500Z"}], "thread_id": "Thread-2", "execution_time": 1.0022778511047363, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snowplow_unified_integration_tests.dbt_utils_equality_snowplow_unified_users_actual_ref_snowplow_unified_users_expected_stg_.971c3ddd69"}], "elapsed_time": 11.633824348449707, "args": {"log_path": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests/logs", "send_anonymous_usage_stats": false, "static_parser": true, "use_colors_file": true, "partial_parse_file_diff": true, "strict_mode": false, "quiet": false, "log_level": "info", "use_colors": true, "defer": false, "enable_legacy_logger": false, "exclude": [], "empty_catalog": false, "log_format": "default", "populate_cache": true, "compile": true, "write_json": true, "profiles_dir": "./ci", "select": [], "introspect": true, "indirect_selection": "eager", "invocation_command": "dbt docs generate --vars {snowplow__atomic_schema: \"snowflake_snplw_unified_int_tests\"}", "cache_selected_only": false, "favor_state": false, "log_level_file": "debug", "printer_width": 80, "project_dir": "/home/runner/work/dbt-snowplow-unified/dbt-snowplow-unified/integration_tests", "macro_debugging": false, "print": true, "version_check": true, "partial_parse": true, "warn_error_options": {"include": [], "exclude": []}, "vars": {"snowplow__atomic_schema": "snowflake_snplw_unified_int_tests"}, "which": "generate", "log_format_file": "debug", "log_file_max_bytes": 10485760}} \ No newline at end of file