Reputation: 2238
I am trying to access a particular user property called "profileKey", and I want to get all events for the user with a certain profile key.
I tried doing the following
select * from this_table where user_properties.key.profileKey = 'someValue'
Upvotes: 2
Views: 486
Reputation: 173151
Below is for BigQuery Standard SQL
#standardSQL
SELECT *
FROM `project.dataset.this_table` t
WHERE EXISTS (
SELECT 1
FROM t.user_properties
WHERE (key, value.string_value) = ('profileKey', 'someValue')
)
Upvotes: 4