这就是我写的↓公式
count(if(avg(timestamp_diff(broker_delivery_date,request_datetime,minute)),0) >= 30,id,NULL)这就是不断显示↓的错误
不匹配参数类型的函数IF签名: FLOAT64,INT64。支持签名:如果(BOOL,任何,任何)在10:10
发布于 2020-02-04 09:46:08
假设你的问题是“为什么会这样?”:
IF(BOOL, ANY, ANY)需要三个参数。你只给它两个。这就是它的处理方式:
count(if(
avg(timestamp_diff(broker_delivery_date,request_datetime,minute)), <-- This is not a BOOL
0 <-- This is the second parameter to if
) >= 30, <-- This is a BOOL as the first parameter to count
id, <-- This is a second parameter to count
NULL) <-- This is the third parameter to count试一试(免责声明:未测试):
count(if(avg(timestamp_diff(broker_delivery_date,request_datetime,minute)) >= 30,
1,
NULL)
)https://stackoverflow.com/questions/60053875
复制相似问题