我正在使用标准SQL来使用Google BigQuery,但我被卡住了。
错误是:
UNNEST中引用的值必须是数组。 UNNEST的STRING类型的表达式为[1:1155]
查询为:
SELECT
COUNT(DISTINCT user_first_touch_timestamp) AS count,
event_date AS dt
FROM
`analytics_173262434.events_20*` AS t
CROSS JOIN
UNNEST(event_date) AS event
WHERE
PARSE_DATE('%y%m%d', _table_suffix)
BETWEEN DATE_SUB(current_date(), INTERVAL 23 DAY)
AND DATE_SUB(current_date(), INTERVAL 1 DAY)
GROUP BY event_date