I am trying to use wildcard table functions to query bunch of date-partitioned tables.
This query works:
select * from `Mydataset.fact_table_1` where _partitiontime='2016-09-30' limit 10
This query does not work:
select * from `Mydataset.fact_table_*` where _partitiontime='2016-09-30' limit 10
Is this operation not supported?
If it is not supported what's the best way to read same day's data from multiple date-partitioned tables?
_TABLE_SUFFIXinstead, or at least that's my interpretation of cloud.google.com/bigquery/docs/querying-wildcard-tables. I'm not sure that you can use both_TABLE_SUFFIXand_PARTITIONTIMEbut I asked a coworker to confirm. - Elliott Brossard