google big query standard SQL


google big query standard SQL



I am on Google big query using standard SQL and I am stuck because of the following sql. the name of the error is : Values referenced in UNNEST must be arrays. UNNEST contains expression of type STRING at [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









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

Export result set on Dbeaver to CSV

Opening a url is failing in Swift