Is there a way to make this clause more compact?
SELECT campaign
,event_list
FROM `adobe_analytics.raw_data_20200*`
WHERE campaign IS NOT NULL -- What does it mean when a campaign is null in Adobe_analytics
AND
(
"1" IN UNNEST(split(event_list,","))
OR "2" IN UNNEST(split(event_list,","))
OR "3" IN UNNEST(split(event_list,","))
)
Something like :
SELECT campaign
,event_list
FROM `adobe_analytics.raw_data_20200*`
WHERE campaign IS NOT NULL
AND ("1" OR "2" OR "3") IN UNNEST(split(event_list,","))