influxdb/query/functions/testdata
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
..
derivative.flux Move querytest/test_cases to functions/testdata and update query_test with new path 2018-07-09 14:13:53 -07:00
derivative.in.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
derivative.influxql Move querytest/test_cases to functions/testdata and update query_test with new path 2018-07-09 14:13:53 -07:00
derivative.out.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
derivative_nonnegative.flux Order all data by time in flux increase test case, add related non-negative derivative test case 2018-07-23 17:18:29 -07:00
derivative_nonnegative.in.csv Order all data by time in flux increase test case, add related non-negative derivative test case 2018-07-23 17:18:29 -07:00
derivative_nonnegative.out.csv Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
difference.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
difference.in.csv Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
difference.out.csv Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
difference_one_value.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
difference_one_value.in.csv Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
difference_one_value.out.csv fix: Fix tests that are failing because of the rename 2018-07-13 13:02:37 -06:00
difference_panic.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
difference_panic.in.csv Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
difference_panic.out.csv fix: Fix tests that are failing because of the rename 2018-07-13 13:02:37 -06:00
drop_after_rename.flux Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_after_rename.in.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_after_rename.out.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_before_rename.flux Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_before_rename.in.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_before_rename.out.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_newname_after.flux Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_newname_after.in.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_newname_after.out.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_newname_before.flux Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_newname_before.in.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_newname_before.out.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_referenced.flux Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_referenced.in.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_referenced.out.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_unused.flux Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_unused.in.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
drop_unused.out.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
filter_by_regex.flux Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
filter_by_regex.in.csv Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
filter_by_regex.influxql Move additional tests to new query test location 2018-07-09 14:17:02 -07:00
filter_by_regex.out.csv Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
filter_by_tags.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
filter_by_tags.in.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
filter_by_tags.influxql Move querytest/test_cases to functions/testdata and update query_test with new path 2018-07-09 14:13:53 -07:00
filter_by_tags.out.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
group.flux Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
group.in.csv Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
group.influxql Move querytest/test_cases to functions/testdata and update query_test with new path 2018-07-09 14:13:53 -07:00
group.out.csv Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
group_by_field.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
group_by_field.in.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
group_by_field.out.csv Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
group_except.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
group_except.in.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
group_except.out.csv Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
group_ungroup.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
group_ungroup.in.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
group_ungroup.out.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
increase.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
increase.in.csv Order all data by time in flux increase test case, add related non-negative derivative test case 2018-07-23 17:18:29 -07:00
increase.out.csv Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
keep.flux Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
keep.in.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
keep.out.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
keep_fn.flux Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
keep_fn.in.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
keep_fn.out.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
mean.flux Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
mean.in.csv Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
mean.influxql Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
mean.out.csv Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
meta_query_fields.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
meta_query_fields.in.csv fix: Fix tests that are failing because of the rename 2018-07-13 13:02:37 -06:00
meta_query_fields.out.csv fix: Fix tests that are failing because of the rename 2018-07-13 13:02:37 -06:00
meta_query_keys.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
meta_query_keys.in.csv Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
meta_query_keys.out.csv fix: Fix tests that are failing because of the rename 2018-07-13 13:02:37 -06:00
meta_query_measurements.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
meta_query_measurements.in.csv fix: Fix tests that are failing because of the rename 2018-07-13 13:02:37 -06:00
meta_query_measurements.out.csv fix: Fix tests that are failing because of the rename 2018-07-13 13:02:37 -06:00
null_as_value.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
null_as_value.in.csv Move querytest/test_cases to functions/testdata and update query_test with new path 2018-07-09 14:13:53 -07:00
null_as_value.out.csv Move querytest/test_cases to functions/testdata and update query_test with new path 2018-07-09 14:13:53 -07:00
percentile.flux Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
percentile.in.csv Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
percentile.influxql feat(query/functions) Update percentile function to provide a selector option add transpiler support. (#444) 2018-07-25 16:32:04 -04:00
percentile.out.csv Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
range.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
range.in.csv Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
range.out.csv Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
rename.flux Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
rename.in.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
rename.out.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
rename_fn.flux Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
rename_fn.in.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
rename_fn.out.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
rename_multiple.flux Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
rename_multiple.in.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
rename_multiple.out.csv Flux drop and rename functions (#482) 2018-08-06 11:19:55 -07:00
select_measurement.flux Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
select_measurement.in.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
select_measurement.influxql Move querytest/test_cases to functions/testdata and update query_test with new path 2018-07-09 14:13:53 -07:00
select_measurement.out.csv Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
select_measurement.out.json Move querytest/test_cases to functions/testdata and update query_test with new path 2018-07-09 14:13:53 -07:00
select_measurement_field.flux Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
select_measurement_field.in.csv Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
select_measurement_field.influxql Move querytest/test_cases to functions/testdata and update query_test with new path 2018-07-09 14:13:53 -07:00
select_measurement_field.out.csv Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
select_measurement_field.out.json Move querytest/test_cases to functions/testdata and update query_test with new path 2018-07-09 14:13:53 -07:00
selector_preserve_time.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
selector_preserve_time.in.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
selector_preserve_time.out.csv Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
simple_max.flux Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
simple_max.in.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
simple_max.influxql Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
simple_max.out.csv Fix initial transpiler grouping so that aggregates will compute (#460) 2018-07-25 17:56:33 -04:00
simple_max.out.json Move querytest/test_cases to functions/testdata and update query_test with new path 2018-07-09 14:13:53 -07:00
sort.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
sort.in.csv Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
sort.out.csv Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
string_interp.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
string_interp.in.csv Add flux string interpolation test 2018-07-12 15:06:59 -07:00
string_interp.out.csv Add flux string interpolation test 2018-07-12 15:06:59 -07:00
string_max.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
string_max.in.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
string_max.out.csv Update output file for flux string max test with new error message 2018-07-09 18:10:21 -07:00
string_sort.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
string_sort.in.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
string_sort.out.csv Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
telegraf_sample.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
window.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
window.in.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
window.influxql Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
window.out.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
window_default_start_align.flux Move querytest/test_cases to functions/testdata and update query_test with new path 2018-07-09 14:13:53 -07:00
window_default_start_align.in.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
window_default_start_align.out.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
window_group_mean_ungroup.flux Move querytest/test_cases to functions/testdata and update query_test with new path 2018-07-09 14:13:53 -07:00
window_group_mean_ungroup.in.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
window_group_mean_ungroup.influxql Move querytest/test_cases to functions/testdata and update query_test with new path 2018-07-09 14:13:53 -07:00
window_group_mean_ungroup.out.csv Move querytest/test_cases to functions/testdata and update query_test with new path 2018-07-09 14:13:53 -07:00
window_offset.flux Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
window_offset.in.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
window_offset.influxql Add filtering to flux range function when not pushed down 2018-07-24 13:33:42 -07:00
window_offset.out.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
window_start_bound.flux Move querytest/test_cases to functions/testdata and update query_test with new path 2018-07-09 14:13:53 -07:00
window_start_bound.in.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00
window_start_bound.out.csv chore: Rename parition key to group key 2018-07-12 16:16:58 -06:00