Using date_bin
with a time zone in a time range that contains daylight savings does not work
#10308
Labels
bug
Something isn't working
Describe the bug
When using the
date_bin
function, while providing a time zone to the column used indate_bin
, and using a range that contains daylight savings (i.e. part of the range would be for example with an offset of+01:00
, and another part with an offset of+02:00
), the querying fails with the following error:The query that I used is:
Notice that the interval used
[2021-03-27T22:00:00.000Z, 2021-03-29T00:00:00.000Z]
contains daylight savings within the range, meaning that in this case part of the range will be with an offset of+01:00
(before the daylight savings), and another part will be with an offset of+02:00
(after the daylight savings)I suspect the issue is that Arrow is attempting to case the times with a 2 hours offset to the times of an 1 hour offsetUpdate:
The issue is the daylight savings hour. This query works fine:
In the query above, we exclude the daylight savings hour of that year for that timezone.
To Reproduce
Execute the following query
Expected behavior
I should get the data aggregated by time. Part of the interval will be with a 2 hours offset, another part will be with a 1 hour offset
Additional context
raw_data
is a table that contains values for each 15 minutes. The table with its data is stored in influxDB 3.0 that uses the FDAP stackNo response
The text was updated successfully, but these errors were encountered: