influxdb/query
Jonathan A. Sternberg 728bdd6562 Fix the derivative and others time ranges for aggregate data
The derivative function and others similar to it would preload
themselves with data so that the first interval would be the start of
the time range. That meant reading data outside of the time range.

One change to the shard mapper back in v1.4.0 caused the shard mapper to
constrict queries to the intervals given to the shard mapper. This was
correct because the shard mapper can only deal with times it has mapped,
but this broke the functionality of looking back into the past for
the derivative and other functions that used that functionality.

The compiler has been updated with an additional attribute that records
how many intervals in the past will need to be read so that the shard
mapper can include extra times that it may not necessarily read from,
but may be queried because of the above described functionality.
2018-09-10 09:59:33 -05:00
..
internal Add technical analysis algorithms 2018-04-23 22:27:21 -04:00
neldermead move RewriteStatement and neldermead to influxdb/query package 2017-10-30 10:24:15 -07:00
call_iterator.go rename "triple_exponential_average" -> "triple_exponential_derivative" 2018-05-16 19:40:12 -04:00
call_iterator_test.go Cleanup query package 2018-01-21 12:08:23 -08:00
cast.go Enable casting values from a subquery 2018-03-30 16:58:37 -05:00
compile.go Fix the derivative and others time ranges for aggregate data 2018-09-10 09:59:33 -05:00
compile_test.go Fix the derivative and others time ranges for aggregate data 2018-09-10 09:59:33 -05:00
cursor.go Merge pull request #9666 from influxdata/js-simplify-call-valuer 2018-04-02 11:47:41 -05:00
emitter.go Modify the Select call to return a Cursor 2018-03-09 12:47:41 -06:00
execution_context.go Turn the ExecutionContext into a context.Context 2018-03-08 14:03:20 -06:00
executor.go respect rp parameter in /query 2018-04-19 08:31:43 -07: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 Merge pull request #9860 from phemmer/ta-rename 2018-05-17 14:42:26 -05:00
functions_test.go influxdata/influxdb/influxql -> influxdata/influxql 2017-10-30 14:40:26 -07:00
iterator.gen.go Enable casting values from a subquery 2018-03-30 16:58:37 -05:00
iterator.gen.go.tmpl Enable casting values from a subquery 2018-03-30 16:58:37 -05:00
iterator.go Enable casting values from a subquery 2018-03-30 16:58:37 -05:00
iterator_mapper.go Enable casting values from a subquery 2018-03-30 16:58:37 -05:00
iterator_mapper_test.go Enable casting values from a subquery 2018-03-30 16:58:37 -05:00
iterator_test.go Return the correct auxiliary values for top/bottom 2018-05-17 10:25:40 -05:00
linear.go Add unsigned iterators for all types 2017-09-18 15:09:10 -05:00
math.go Fix the log2 function to return values 2018-05-17 15:44:58 -05:00
math_test.go Fix the log2 function to return values 2018-05-17 15:44:58 -05:00
monitor.go Refactor the math engine to compile the query and use eval 2018-03-19 15:01:15 -05:00
monitor_test.go Modify the Select call to return a Cursor 2018-03-09 12:47:41 -06:00
point.gen.go Return the correct auxiliary values for top/bottom 2018-05-17 10:25:40 -05:00
point.gen.go.tmpl Return the correct auxiliary values for top/bottom 2018-05-17 10:25:40 -05: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 rename "triple_exponential_average" -> "triple_exponential_derivative" 2018-05-16 19:40:12 -04:00
select_test.go Fix the new top/bottom unit tests 2018-05-17 13:46:24 -05:00
statement_rewriter.go Improve SHOW TAG KEYS performance. 2017-11-07 10:59:19 -07:00
statement_rewriter_test.go Improve SHOW TAG KEYS performance. 2017-11-07 10:59:19 -07:00
subquery.go Enable casting values from a subquery 2018-03-30 16:58:37 -05:00
subquery_test.go Enable casting values from a subquery 2018-03-30 16:58:37 -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