@@ -389,23 +389,28 @@ create view (your_schema)_derived.mock_snowplow_web_page_views as (
389
389
ua__useragent_minor as useragent_minor,
390
390
ua__useragent_patch as useragent_patch,
391
391
ua__useragent_version as useragent_version,
392
- null as os_family,
392
+ ua__os_family as os_family,
393
393
ua__os_major as os_major,
394
394
ua__os_minor as os_minor,
395
395
ua__os_patch as os_patch,
396
396
ua__os_patch_minor as os_patch_minor,
397
397
ua__os_version as os_version,
398
398
ua__device_family as device_family,
399
399
yauaa__device_class as device_class,
400
- device_category,
400
+ case
401
+ when device_class = 'Desktop' then 'Desktop'
402
+ when device_class = 'Phone' then 'Mobile'
403
+ when device_class = 'Tablet' then 'Tablet'
404
+ else 'Other'
405
+ end as device_category,
401
406
screen_resolution,
402
407
yauaa__agent_class as agent_class,
403
408
yauaa__agent_name as agent_name,
404
409
yauaa__agent_name_version as agent_name_version,
405
410
yauaa__agent_name_version_major as agent_name_version_major,
406
411
yauaa__agent_version as agent_version,
407
412
yauaa__agent_version_major as agent_version_major,
408
- null as device_brand,
413
+ yauaa__device_brand as device_brand,
409
414
yauaa__device_name as device_name,
410
415
yauaa__device_version as device_version,
411
416
yauaa__layout_engine_class as layout_engine_class,
0 commit comments