I am hitting the error
"Resources exceeded during query execution: Table metadata used for the query is too large"
when executing this query:
SELECT
EXACT_COUNT_DISTINCT(a.id)
FROM (
SELECT
id
FROM (TABLE_DATE_RANGE([*****],
TIMESTAMP('2019-4-1'),
TIMESTAMP('2019-4-22')))
GROUP BY
id) AS a
JOIN (
SELECT
id
FROM (TABLE_DATE_RANGE([*****],
TIMESTAMP('2017-1-1'),
TIMESTAMP('2018-12-31')))
GROUP BY
id) AS b
ON
a.id = b.id
If I change TIMESTAMP('2017-1-1'),TIMESTAMP('2018-12-31')
to TIMESTAMP('2018-1-1'),TIMESTAMP('2018-12-31')
, it will work. Anything i can do to fix it without change the TIMESTAMP ?