Influxdb 分組查詢 bug

 

查詢時 用日期查 

select first(0x00060001) as 0x00060001 from update_gadget_attr group by time(12h) fill(null) where time >'2015-05-21 00:00:01' and time < '2015-05-21 23:00:00' and gadget_id='e346d10a10bdc186b62cdd4f3e2298c8df254204'

結果結果正確返回2條記錄

郎知  17:09:35

如果用 秒查詢

select first(0x00060001) as 0x00060001 from update_gadget_attr group by time(12h) fill(null) where time >1432137600s and time < 1432220400s and gadget_id='e346d10a10bdc186b62cdd4f3e2298c8df254204'

結果返回6條記錄,

 

查詢2015-05-20的返回三條記錄,這纔是想要的結果

select first(0x00060001) as 0x00060001 from update_gadget_attr group by time(3h) fill(null) where time >1432051200s and time < 1432134000s and gadget_id='e346d10a10bdc186b62cdd4f3e2298c8df254204'

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章