influxdb/query/functions
Adam Perlin 0e80e5774b
Flux drop and rename functions (#482)
* Add Flux Rename, Drop, and Keep functions.

* Add flux language tests for drop and rename; bugfixes around constructing drop/rename procedures

* Correct autcomplete error, remove debug statements

* Fix additional autocomplete error

* Add support for fn parameter to flux drop and rename functions

* Remove unneeded renameDropTransformation field

* WIP initial thoughts about merge/procedure rewrite logic

* Remove unnecessary external columnFn types

* Add additional query tests for drop/rename, add error when drop or rename refers to column that doesn't exist

* Change swapped test names

* Add keep function implementation

* Refactor rename/drop implementation to make use of helper methods

* Remove test skips forqueries that produce an expected error

* Make predicate return value logic clearer in drop implementation

* Add group key support to drop/rename/keep, update unit and query tests accordingly

* WIP refactor drop and rename to use new SchemaMutator interface

* Add unit tests for refactored drop, keep, and rename; bug fixes

* Update file structure for flux schema mutation functions

* Refactor mutation functions and interface

* Address final review drop/rename PR review comments

* Add builtin import to make sure builtins are initialized if test drop_rename_keep_test is run as standalone

* Small aesthetic change to schema_mutators.go
2018-08-06 11:19:55 -07:00
..
compspecs revert #442 2018-08-01 14:54:32 -04:00
prepcsvtests feat(query/functions) Update percentile function to provide a selector option add transpiler support. (#444) 2018-07-25 16:32:04 -04:00
storage revert #442 2018-08-01 14:54:32 -04:00
testdata Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
count.go move types around to avoid cyclic imports 2018-05-21 17:02:42 -06:00
count_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
covariance.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
covariance_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
cumulative_sum.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
cumulative_sum_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
data_test.go chore: Rename block to table 2018-07-13 09:56:35 -06:00
derivative.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
derivative_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
difference.go Merge pull request #398 from influxdata/ap-difference-panic-fix 2018-07-13 10:42:12 -07:00
difference_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
distinct.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
drop_rename_keep.go Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_rename_keep_test.go Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
filter.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
filter_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
first.go rewrite imports 2018-05-21 15:20:06 -06:00
first_test.go chore: Rename block to table 2018-07-13 09:56:35 -06:00
from.go revert #442 2018-08-01 14:54:32 -04:00
from_csv.go tests(query/functions): add benchmarks for all of the query tests 2018-07-26 16:09:13 -05:00
from_csv_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
from_test.go revert #442 2018-08-01 14:54:32 -04:00
group.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
group_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
increase.go Update formatting of flux increase built-in to align with standard style 2018-07-24 10:42:20 -07:00
integral.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
integral_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
join.go flux options interface 2018-07-16 14:24:37 -07:00
join_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
keys.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
keys_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
last.go Remove broken nil check method; add simple interface nil check 2018-07-09 18:10:21 -07:00
last_test.go chore: Rename block to table 2018-07-13 09:56:35 -06:00
limit.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
limit_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
map.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
map_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
max.go Remove broken nil check method; add simple interface nil check 2018-07-09 18:10:21 -07:00
max_test.go chore: Rename block to table 2018-07-13 09:56:35 -06:00
mean.go move types around to avoid cyclic imports 2018-05-21 17:02:42 -06:00
mean_test.go flux options interface 2018-07-16 14:24:37 -07:00
min.go Remove broken nil check method; add simple interface nil check 2018-07-09 18:10:21 -07:00
min_test.go chore: Rename block to table 2018-07-13 09:56:35 -06:00
percentile.go feat(query/functions) Update percentile function to provide a selector option add transpiler support. (#444) 2018-07-25 16:32:04 -04:00
percentile_test.go feat(query/functions) Update percentile function to provide a selector option add transpiler support. (#444) 2018-07-25 16:32:04 -04:00
query_test.go Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
range.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
range_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
sample.go rewrite imports 2018-05-21 15:20:06 -06:00
sample_test.go chore: Rename block to table 2018-07-13 09:56:35 -06:00
schema_mutators.go Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
set.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
set_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
shift.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
shift_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
skew.go move types around to avoid cyclic imports 2018-05-21 17:02:42 -06:00
skew_test.go flux options interface 2018-07-16 14:24:37 -07:00
sort.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
sort_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
spread.go chore: Rename block to table 2018-07-13 09:56:35 -06:00
spread_test.go flux options interface 2018-07-16 14:24:37 -07:00
state_tracking.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
state_tracking_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
stddev.go move types around to avoid cyclic imports 2018-05-21 17:02:42 -06:00
stddev_test.go flux options interface 2018-07-16 14:24:37 -07:00
sum.go move types around to avoid cyclic imports 2018-05-21 17:02:42 -06:00
sum_test.go flux options interface 2018-07-16 14:24:37 -07:00
system_time.go flux options interface 2018-07-16 14:24:37 -07:00
to_http.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
to_http_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
to_kafka.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
to_kafka_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
top_bottom.go rewrite imports 2018-05-21 15:20:06 -06:00
typeconv.go add HasSideEffect method to Function interface 2018-07-03 12:44:09 -07:00
unique.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
unique_test.go Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
window.go chore: Rename local vars for b to tbl 2018-07-13 10:04:38 -06:00
window_test.go chore: Rename block to table 2018-07-13 09:56:35 -06:00
yield.go add HasSideEffect method to Function interface 2018-07-03 12:44:09 -07:00