我收到错误"现场signupdate不是叶子领域"用于以下查询
SELECT COUNT(*) AS cnt
FROM [adknowledge_data.ADKBatch_Combined_c]
WHERE ABS(HASH(MD5email) % 3 ) = 0
GROUP EACH BY MD5email, signupdate
HAVING cnt > 1
对于以下表格架构:
MD5email:string
IP:string
signupdate:timestamp
答案 0 :(得分:5)
这不是一个很好的错误消息,但至少可以轻松解决潜在的问题:在SELECT表达式中包含'signupdate'。
请参阅:
SELECT COUNT(*) c
FROM [fh-bigquery:bigdataspain.aggr_transactions_to]
GROUP BY time
Error: Field time [...] is not a leaf field.
Vs的:
SELECT COUNT(*) c, time
FROM [fh-bigquery:bigdataspain.aggr_transactions_to]
GROUP BY time
(works!)