是否可以对聚合的 count() 进行存储?语法选择参数语言语法似乎表明它是,但我可能解释错了。
我的粗略解释:
predefined([expr = (aggr = (count())], bucket(...))
( "predefined" "(" exp "," "(" bucket ( "," bucket )* ")" ")" ) |
exp ::= ( "+" | "-") ( "$" identifier [ "=" math ] ) | ( math ) | ( aggr )
aggr ::= ( ( "count" "(" ")" ) |
( "sum" "(" exp ")" ) |
( "avg" "(" exp ")" ) |
( "max" "(" exp ")" ) |
尝试(“表达式'count()'不适用于单次点击。”)
all(group(predefined(status, bucket["field1"] ) ) each(
all(group(predefined(count(), bucket[0,10>, bucket[11,20>)) each(
output(count() as(count)
))
))