influxdb/query
davidby-influx df39b1e71c
fix(query): Group By queries with offset that crosses a DST boundary can fail (#20230)
* fix(query): Group By queries with offset that crosses a DST boundary can fail

Customer reported that a GROUP BY query with an offset that caused an interval
to cross a daylight savings change inserted an extra output row off by one hour.
This fix ensured that the start time for the interval of a GROUP BY operator is
correctly set before calculating the time zone offset for that date and time.

Add TestGroupByIterator_DST() in query/iterator_test.go
for regression testing of this bug.

Fixes https://github.com/influxdata/influxdb/issues/20238
2020-12-04 09:40:43 -08:00
..
internal feat(influxdb): Add proxy path to cli 2020-01-21 10:23:46 -08:00
neldermead move RewriteStatement and neldermead to influxdb/query package 2017-10-30 10:24:15 -07:00
call_iterator.go Fix misspelling identified by misspell 2019-02-03 20:27:43 +00:00
call_iterator_test.go Cleanup query package 2018-01-21 12:08:23 -08:00
cast.go Fix subquery functionality when a function references a tag from the subquery 2018-10-04 10:05:20 -05:00
compile.go refactor: Change ToLower comparisons to EqualFold (#18147) 2020-05-18 19:46:59 -04:00
compile_test.go fix(query/compile.go): time range was exceeding min/max bounds under certain conditions 2019-08-14 09:59:17 -04:00
cursor.go fix(fill): fill resets the previous value when a new series or window is encountered (#13459) 2019-04-18 10:44:15 -04:00
emitter.go Modify the Select call to return a Cursor 2018-03-09 12:47:41 -06:00
execution_context.go Modify context key type 2018-10-16 11:25:33 +09:00
executor.go fix: address static check warning s1039 (#18135) 2020-05-18 13:55:05 -04:00
executor_test.go Turn the ExecutionContext into a context.Context 2018-03-08 14:03:20 -06:00
explain.go Modify the Select call to return a Cursor 2018-03-09 12:47:41 -06:00
functions.gen.go Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00
functions.gen.go.tmpl Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00
functions.go refactor(query): save an indent level when checking r.prev.Nil (#17125) 2020-03-06 13:48:30 -05:00
functions_test.go influxdata/influxdb/influxql -> influxdata/influxql 2017-10-30 14:40:26 -07:00
iterator.gen.go improvement(query): performance improvement for sorted merge iterator 2020-04-20 21:06:45 +08:00
iterator.gen.go.tmpl improvement(query): performance improvement for sorted merge iterator 2020-04-20 21:06:45 +08:00
iterator.gen_test.go improvement(query): performance improvement for sorted merge iterator 2020-04-20 21:06:45 +08:00
iterator.go fix(query): Group By queries with offset that crosses a DST boundary can fail (#20230) 2020-12-04 09:40:43 -08:00
iterator_mapper.go Fix subquery functionality when a function references a tag from the subquery 2018-10-04 10:05:20 -05:00
iterator_mapper_test.go Strip tags from a subquery when the outer query does not group by that tag 2018-10-04 10:05:46 -05:00
iterator_test.go fix(query): Group By queries with offset that crosses a DST boundary can fail (#20230) 2020-12-04 09:40:43 -08:00
linear.go Add unsigned iterators for all types 2017-09-18 15:09:10 -05:00
math.go Fix #10261 ABS(int64) 2018-09-11 21:53:44 +01:00
math_test.go Fix #10261 ABS(int64) 2018-09-11 21:53:44 +01:00
monitor.go Modify context key type 2018-10-16 11:25:33 +09:00
monitor_test.go Modify the Select call to return a Cursor 2018-03-09 12:47:41 -06:00
point.gen.go fix(query): address staticcheck warning S1020 (#18136) 2020-05-18 20:20:54 -04:00
point.gen.go.tmpl fix(query): address staticcheck warning S1020 (#18136) 2020-05-18 20:20:54 -04:00
point.go Update influxql so DataType constants are the type DataType 2017-11-07 18:34:53 -06:00
point_test.go Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00
query.go Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00
result.go influxdata/influxdb/influxql -> influxdata/influxql 2017-10-30 14:40:26 -07:00
select.go feat(query): Parallelize field iterator planning 2020-06-11 08:01:14 -06:00
select_test.go fix(fill): fill resets the previous value when a new series or window is encountered (#13459) 2019-04-18 10:44:15 -04:00
statement_rewriter.go refactor(query): reuse matchAllRegex (#18146) 2020-05-18 18:45:33 -04:00
statement_rewriter_test.go fix(query): add additional unit tests for series cardinality query rewriting 2019-07-24 17:06:14 -07:00
subquery.go Strip tags from a subquery when the outer query does not group by that tag 2018-10-04 10:05:46 -05:00
subquery_test.go Subquery ordering with aggregates in descending mode was wrong 2019-07-17 09:55:38 -05:00
task_manager.go Include the query task status in the QueryInfo struct 2018-04-26 08:17:41 -05:00
tmpldata Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00