我正在学习在 bigquery 中取消嵌套,我的理解是 UNNEST(hits) 跟在表名之后,并且在 where 子句中定义了 WHERE 子句中的 hits.type。下面的查询给出了错误无效的表名,但是表名是正确的:
SELECT index, value
FROM (SELECT hits.customDimensions.index as index,
hits.customDimensions.value as value
FROM `60400612.ga_sessions_*`,
UNNEST(hits) AS hits
WHERE _table_suffix BETWEEN '20190714' and '20190811'
AND hits.type = 'customDimensions')
GROUP BY 1,2
我在这里想念什么?