有人可以解释如何在bigquery中查询customDimensions吗?
我的查询使用简单的where子句,即
SELECT COUNT(DISTINCT fullVisitorId)
FROM GA_SESSION
WHERE hits.customDimensions.index = 4
AND hits.customDimensions.value = 'variable1'
AND hits.page.pagePath LIKE '%something%';
但是现在当我尝试进行聚合时,或者如果我在没有分组的情况下尝试EXACT_COUNT_DISTINCT,我会收到一个错误,即
SELECT date, COUNT(DISTINCT fullVisitorId)
FROM GA_SESSION
WHERE hits.customDimensions.index = 4
AND hits.customDimensions.value = 'variable1'
AND hits.page.pagePath LIKE '%something%'
group by date
错误是: 查询失败 错误:无法查询重复字段customDimensions.index和hits.customDimensions.index的叉积。