-
Retrieving data from multiple schemas in BigQuery
So, I’ve been wrestling with GA4 data in BigQuery, right? Got this event table that seems to span like a bazillion different schemas. Thought I’d use UNION ALL to stitch ’em together, but the sheer number of schemas has me rethinking that real quick.
If you’re into visual aids, here’s a lil’ screenshot of my BigQuery schemas struggle.
Thought I could do this:
schemas_list = ['251049','275928', '286498'], date_range as ( select '20220901' as start_date, '20220910' as end_date) select event_date, traffic_source.name from
gtm<span class="hljs-operator">-</span>k3.analytics_<span class="hljs-operator">*</span>.events_<span class="hljs-operator">*</span>
, date_range where _table_suffix between date_range.start_date and date_range.end_date and schema in schemas_listBut no dice. You got any bright ideas? Appreciate it big time.
Log in to reply.