【发布时间】:2019-12-04 07:31:09
【问题描述】:
我正在尝试在大查询中查询我的数据,并希望避免空记录但继续获取它们。
这是我目前的查询:
select
(SELECT x.value FROM UNNEST(user_properties) x
WHERE x.key='restaurantName'
and x.value is not null).string_value as restaurantName ,
(SELECT x.value FROM UNNEST(user_properties) x
WHERE x.key='restaurantId' and x.value is not null).string_value as
restaurantID ,
(SELECT x.value FROM UNNEST(user_properties) x
WHERE x.key='user_id' and x.value is not null).string_value as user
FROM some_data_set where event_name="ConfirmOrderBtn" and event_date between
'20191110' and '_*' and app_info.id = "app_id"
这是我的查询结果:
【问题讨论】:
标签: google-bigquery analytics firebase-analytics