How to select multiple custom Firebase event parameters in BigQuery?

前端 未结 3 1641
悲&欢浪女
悲&欢浪女 2020-12-31 08:21

I exported Firebase events to BigQuery and now I\'m trying to select two parameters from a certain event. Here is the query for selecting one parameter:

sele         


        
3条回答
  •  伪装坚强ぢ
    2020-12-31 08:33

    I love the previous solution! Here is an alternative solution for the same problem I came up with. I'd welcome comments on which solution is more efficient/cheaper and why.

    SELECT event_param1.value.int_value AS level_id, 
    event_param2.value.int_value AS count
    FROM `com_company_appname_ANDROID.app_events_20161210`,
    UNNEST(event_dim) event,
    UNNEST(event.params) as event_param1,
    UNNEST(event.params) as event_param2
    WHERE event.name = 'level_replays_until_first_victory'
    AND event_param1.key = 'level_id'
    AND event_param2.key = 'count'
    

提交回复
热议问题