Open federicogatti opened 3 years ago
Hi, any news about this issue?
Hi, this bug still remains with a change of the output. Now there isn't an additional line, but the result of the week where the time change is always 0
SELECT sum("value") FROM "datapoint_values" WHERE "plant"='0001' AND "datapoint"='PWER' AND time >= '2020-03-20T00:00:00Z' AND time <= '2020-04-30T00:00:00Z' GROUP BY time(1w,4d) fill(0) tz('Europe/Rome')
name: datapoint_values
time sum
---- ---
2020-03-16T00:00:00+01:00 882795
2020-03-23T00:00:00+01:00 1531390
2020-03-30T00:00:00+02:00 0
2020-04-06T00:00:00+02:00 477533
2020-04-13T00:00:00+02:00 418878
2020-04-20T00:00:00+02:00 424883
2020-04-27T00:00:00+02:00 187801
Steps to reproduce:
-precision rfc339
option, likeinflux --database <database> --username <username> --password <password> -precision rfc3339
Expected behavior:
Actual behavior:
An additional line with zero result is printed (
2020-03-30T00:00:00+02:00 0
), also one line time is not midnight located (2020-03-30T01:00:00+02:00 713050
)Additional info:
The same behavior occurs with an offset of days whose module is> = 4 and <= 6
With offset day time null or < 4 (unitl sunday) the output looks like consistent:
Environment info:
same behavior with updated version InfluxDB v1.8.3 (git: 1.8 563e6c3d1a7a2790763c6289501095dbec19244e)