Commit Graph

340 Commits (2bb809dfc02096238f72539f848e60694fcde068)

Author SHA1 Message Date
adamperlin 16b6c5e39e Add initial flux meta query tests 2018-07-11 17:33:59 -07:00
Mark Rushakoff a1bf6856fc chore(http): integrate with prom.Registry 2018-07-11 16:54:23 -07:00
Mark Rushakoff 15efa9d411 chore(query/control): use non-global prometheus metrics 2018-07-11 16:54:23 -07:00
Mark Rushakoff 11d5e76e1b chore(prometheus): don't use global prometheus registry
And add tests.
2018-07-11 16:54:23 -07:00
Mark Rushakoff 037eca4577 feat(kit/prom): add kit/prom and kit/prom/promtest
This is to drive eliminating use of global prometheus registries, and to
facilitate testing of metrics close to where they're generated.
2018-07-11 16:54:23 -07:00
Chris Goller 2287e1f3d5
Merge pull request #386 from influxdata/fix/tdigest
chore(vendor): update tdigest library fixing percentile panics
2018-07-11 13:46:09 -05:00
Adam Perlin 8dbd50712c
Merge pull request #364 from influxdata/ifql-test-groupexcept
Add group except test for flux
2018-07-11 10:40:32 -07:00
adamperlin 274a27a22b Add additional tags to exclude in flux group except test 2018-07-11 10:18:01 -07:00
adamperlin bb13ef8d8a Change sequence in flux group except test 2018-07-11 10:18:01 -07:00
adamperlin 4f6ba26579 Add group except test for flux 2018-07-11 10:17:55 -07:00
Adam Perlin 34b7837449
Merge pull request #363 from influxdata/ap-panic-fix-stringmax
Fix panic when unimplemented selector function is used
2018-07-11 10:10:35 -07:00
adamperlin cadc97ecd1 Add link to issue in failing flux test skip description; change error constructor in test function 2018-07-11 10:03:55 -07:00
Chris Goller a514ce2cf4 chore(vendor): update tdigest library fixing percentile panics 2018-07-11 11:51:03 -05:00
Nathaniel Cook 0ab163b68c fix: Update Spec.md link 2018-07-10 16:41:35 -06:00
Nathaniel Cook 33050848a8 Merged pull request #380 from influxdata/nc-dbrp-mapper
chore(dbrp mapper): Move DBRP mapper to platform
2018-07-10 16:33:49 -06:00
Nathaniel Cook 23ab3f1981 chore(dbrp mapper): Move DBRP mapper to platform 2018-07-10 15:56:57 -06:00
Nathaniel Cook f47daadd43 feat(query): Add support for using bucketID in from 2018-07-10 15:52:48 -06:00
jlapacik 9df4c82bf3
Merge pull request #378 from influxdata/jl-fix-node-ordering-in-spec
order parents in join based on parameter name
2018-07-10 13:00:53 -07:00
jlapacik aba6fc3378 order parents in join based on parameter name 2018-07-10 11:09:58 -07:00
adamperlin ac09a65727 Handle query execution errors in query_test to avoid infinite blocking issues after fail 2018-07-09 18:24:54 -07:00
adamperlin 8e34bd779e Update output file for flux string max test with new error message 2018-07-09 18:10:21 -07:00
adamperlin fe1493c120 Update error message for function unimplemented for data type in flux 2018-07-09 18:10:21 -07:00
adamperlin bcbc0256d5 Change error message when selector function is nil 2018-07-09 18:10:21 -07:00
adamperlin b46a14ba77 Remove broken nil check method; add simple interface nil check 2018-07-09 18:10:21 -07:00
adamperlin a546bbfcb1 Add error message when row selector interface has nil value to avoid panic 2018-07-09 18:10:21 -07:00
Adam Perlin 3289e2897b
Merge pull request #377 from influxdata/refactor-move-test-data
Refactor move test data
2018-07-09 18:08:51 -07:00
adamperlin dddfe38ee9 Move additional tests to new query test location 2018-07-09 14:17:02 -07:00
adamperlin b3aff30f4d Move main end to end flux query test to query/functions package dir 2018-07-09 14:13:53 -07:00
adamperlin df44aa0ad5 Move querytest/test_cases to functions/testdata and update query_test with new path 2018-07-09 14:13:53 -07:00
Jonathan A. Sternberg ca66f0df74
Merge pull request #376 from influxdata/js-query-try-plan
fix(query/control): race condition when attempting to plan a query in the controller
2018-07-09 16:00:01 -05:00
Adam 67bb5af1fb
regex support added to transpiler (#356)
* feat(query/influxql): add regex support to transpiler
also added test case to querytest

* Add raw_with_condition test to transpiler unit tests

* add unit tests for regex conditions on raw query
2018-07-09 16:54:00 -04:00
Jonathan A. Sternberg b9a4f1be74 fix(query/control): race condition when attempting to plan a query in the controller 2018-07-09 15:40:07 -05:00
jlapacik 9c8e89c83e
Merge pull request #347 from influxdata/jl-remove-query-domain
remove notion of query domain
2018-07-09 13:30:14 -07:00
jlapacik 15e3b7edf0 remove query domain 2018-07-09 13:27:30 -07:00
Jonathan A. Sternberg c3de8a6f5d
Merge pull request #372 from influxdata/js-query-controller-finished-panic
fix(query/control): discard finished queries from the priority queue
2018-07-09 13:34:46 -05:00
Jonathan A. Sternberg 9615528e31 fix(query/control): discard finished queries from the priority queue 2018-07-09 13:27:14 -05:00
Adam Perlin f92b105275
Merge pull request #360 from influxdata/ifql-time-selectors
Add test to make sure relevant _time values are returned when using top() selector
2018-07-06 16:31:25 -07:00
Adam Perlin 3b122e327d
Merge pull request #354 from influxdata/ifql-window-interval
Add initial window bound offset test cases for flux
2018-07-06 12:57:17 -07:00
adamperlin 0881ca9bee Add group() to selector_preserve_time flux tests 2018-07-06 12:36:15 -07:00
adamperlin 8e920cd793 Add test for default window boundary alignment in flux 2018-07-06 12:14:58 -07:00
adamperlin 622dd66356 Update test data point time ranges to include each _time value 2018-07-06 12:14:14 -07:00
Jonathan A. Sternberg 122813b8c5
Merge pull request #358 from influxdata/js-basic-aggregates-and-selectors
feat(query/influxql): implement all of the basic aggregates and selectors
2018-07-06 13:57:48 -05:00
Jonathan A. Sternberg c54a1e8fd9 feat(query/influxql): implement all of the basic aggregates and selectors 2018-07-06 13:45:35 -05:00
adamperlin 37ed9a8afa Add test to make sure relevant _time values are returned when using top() selector 2018-07-06 11:40:54 -07:00
Jonathan A. Sternberg e7f76b3f14
Merge pull request #357 from influxdata/js-transpiler-spectests
refactor(query/influxql): move transpiler spec tests to its own package
2018-07-06 12:32:37 -05:00
Jonathan A. Sternberg f694fa9637 refactor(query/influxql): move transpiler spec tests to its own package
The package contains all of the transpiler specs and allows them to be
put into different files instead of keeping all of the tests in the same
file. They are all Go code so they are type checked rather than being
loaded as JSON from disk.

Additionally, to make it easier for a developer, the tests will report
the exact file and line where the test was created. So rather than
hunting for which file a test is located in, you will get something nice
like the following:

    --- FAIL: TestTranspiler/SELECT_count(value)_FROM_db0..cpu_WHERE_host_=_'server01' (0.00s)
        testing.go:51: aggregates_with_condition.go:16: unexpected error: unimplemented function: "count"

As can be seen, the test that failed can be found in the
`aggregates_with_condition.go` file at line 16 which is where the test
was created by the `AggregateTest` function and the relevant spec can be
found in that same file.
2018-07-06 12:12:08 -05:00
adamperlin 695867ef1f Add initial window bound offset test cases for flux 2018-07-06 09:36:20 -07:00
Jonathan A. Sternberg 55f0c59eca
Merge pull request #350 from influxdata/js-transpiler-unimplemented-tests
refactor(query/influxql): modify the transpiler compilation tests to remove skip
2018-07-06 09:33:05 -05:00
Jonathan A. Sternberg 27cd61e22d refactor(query/influxql): modify the transpiler compilation tests to remove skip
The transpiler compilation tests will now not allow skip to be
specified. Instead, it must return an error message that starts with
`unimplemented` and then the reason will be used as the skip message.

This way, it will be easier to identify the failing tests in the
transpiler. In the previous method, it was possible for a test to be
marked as skip, but for the transpiler to return the wrong error message
because the test did not differentiate between an unimplemented error
message and an incorrect error message.
2018-07-06 09:21:41 -05:00
Jonathan A. Sternberg bfa7f2e719 feat(query/influxql): support for windowing
The transpiler now supports basic windowing. The window offsets are not
supported yet at all.

For windowing, we use the window function to split the points, perform
the aggregate/selector operation, and then we put them back into the
same window so they are within the same table as they originally were
located in. This is now reflected in the spec and the code.
2018-07-06 09:21:41 -05:00