Great news about the new wildcard features this morning! Is there a way to use TABLE_DATE_RANGE () for tables containing a date but without a prefix?
I have a dataset that contains tables called YYYYMMDD (no prefix). Normally I would query like this:
SELECT foo FROM [mydata.20140319],[mydata.20140320],[mydata.20140321] LIMIT 100
I tried the following, but I get an error:
SELECT foo FROM (TABLE_DATE_RANGE(mydata., TIMESTAMP('2014-03-19'), TIMESTAMP('2015-03-21'))) LIMIT 100
and:
SELECT foo FROM (TABLE_DATE_RANGE(mydata, TIMESTAMP('2014-03-19'), TIMESTAMP('2015-03-21'))) LIMIT 100
google-bigquery
David M Smith
source share