elasticsearch5.5.0实战(把复杂sql翻译为ES语法在kibana执行),实现ES分组统计,去重
一、sql语句(大体就是分组统计,去重累加)select*from(selecta.reDay,count(distincta.deviceNum)deviceNumber,b.deviceCountdeviceCount,sum(a.newOrderNum)newOrderNum,sum(a.paidOrderNum)paidOrderNum,sum(a.refundedOrderNum)ref