类似sql
select ts,count(*)
from
(select id,min(ts)/1000000 ts from a group by id) a
group by ts;
ES中group by ts使用的是DateHistogramAggregationBuilder
select ts,count(*)
from
(select id,min(ts)/1000000 ts from a group by id) a
group by ts;
ES中group by ts使用的是DateHistogramAggregationBuilder
4 个回复
Memento - Memento
赞同来自:
liuxg - Elastic
赞同来自:
viewsite
赞同来自:
FFFrp
赞同来自: