Below is for BigQuery Standard SQL
#standardSQL SELECT * FROM ( 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
…
Top comments (0)