I'm looking at the public GitHub events dataset githubarchive.day.YYYYMMDD to pull public events that belong to me.
For this I use a simple query like:
SELECT id, actor.login, type
FROM `githubarchive.day.2*`
WHERE
_TABLE_SUFFIX BETWEEN '20200520' AND '20200528'
AND actor.login='ahmetb'
This BETWEEN clause doesn't seem to be matching any tables according to this message
Query complete (0.4 sec elapsed, 0 B processed)
If I use a simpler syntax like this it works:
SELECT id, actor.login, type
FROM `githubarchive.day.202005*`
WHERE actor.login='ahmetb'
Query complete (2.2 sec elapsed, 2.4 GB processed)
However using the wildcard syntax directly in FROM is not an option for me as I determine the table suffix dynamically through a query parameter.