【发布时间】:2017-12-05 09:51:40
【问题描述】:
【问题讨论】:
【问题讨论】:
fill() 更改没有数据的时间间隔报告的值。
要为没有数据的间隔返回不时间戳,请使用fill(none):
select count(quantity) from test where time > now()-10d group by time(1d) fill(none)
【讨论】:
fill(none),它会返回什么?您可能需要更改where 条件...
fill(none) 应该删除 count == 0 的那些...您现在正在运行的 exact 查询是什么?