Yiqun (Ethan) Zhang
5333ff4d1b
feat(transpiler): support difference(), group by wildcard, and correc… ( #17021 )
...
* feat(transpiler): support difference(), stddev(), spread(), group by wildcard, and correct _time column
2020-03-06 11:19:46 -05:00
Nathaniel Cook
9f7d4f9be0
feat(query): adds support for influxql as language type for queries ( #16712 )
...
This change allows for the InfluxQL language type to be used with the
/v2/query API endpoint.
This change also introduces a way to give the transpiler an explicit
bucket name instead of using the DBRPMapping service.
Requests to the endpoint will know the bucket name directly but will
likely not have run the migration step to populate the DBRP mappings.
2020-02-07 15:20:50 -07:00
Nathaniel Cook
c46045e673
fix(influxql): update all links to transpiler issues to new github urls ( #16728 )
...
The platform repo was removed and the issues migrated. For ease in tracking progress the issues have been
updated with their new influxdb repo links.
2020-02-06 15:59:46 -07:00
Nathaniel Cook
fd63ff17f3
feat(cmd/influx): add command to manually transpile InfluxQL to Flux ( #16119 )
2019-12-04 13:31:20 -07:00
Nathaniel Cook
e59c72b245
fix(tests): update e2e tests for new flux executetest methods
2019-07-12 11:15:58 -06:00
Nathaniel Cook
11a4b911b0
fix(query/influxql): use explicit mergeKey parameter
2019-07-03 09:48:31 -06:00
Christopher Wolff
6d3cf4b71e
test(query): update typo in Flux in test
...
This test started failing as a result of influxdata/flux/#1312.
2019-05-30 16:29:31 -07:00
Jonathan A. Sternberg
ebdbc394fc
chore(flux): update to Flux v0.31.0 ( #14002 )
...
* refactor(storage/reads): update the table implementation for the interface change (#13994 )
* chore(flux): update to Flux v0.31.0
2019-05-28 17:24:26 -05:00
Jonathan A. Sternberg
dd56c23343
fix(query/influxql): update transpiler for moved/renamed code ( #13740 )
...
The `databases()` function was moved into the `influxdata/influxdb/v1`
package and so it wouldn't work anymore. The `percentile()` call was
changed to `quantile()` and the argument was changed to `q`. This also
updates `median()` to use `median()` since we now produce AST's and not
the spec so we can use the `median()` definition instead.
2019-05-09 11:22:32 -05:00
Nathaniel Cook
07f98e31e7
fix(query): fix misc tests with new master Flux
2019-04-18 10:51:35 -06:00
jlapacik
20b492bb13
refactor(influxql): compile with planner options ( #13288 )
2019-04-12 07:15:27 -07:00
Christopher M. Wolff
6c3f1a05b9
refactor(query): allow code to compile despite BucketsAccessed ( #13282 )
...
BucketsAccessed doesn't work currently with a private flux.Spec.
See this issue: https://github.com/influxdata/influxdb/issues/13278
This set of changes just allows code to compile until #13278 is fixed.
Note that preauthorization is not working in the meantime.
Fixes #13275 .
2019-04-12 07:15:27 -07:00
Christopher M. Wolff
16b9158b39
refactor(task): make tasks use new Query interface ( #13219 )
...
Fixes #12883 .
2019-04-12 07:15:27 -07:00
Christopher M. Wolff
dec149d22d
refactor(query): update testing InfluxQL testing compiler to use new interface ( #13107 )
...
Fixes influxdata/flux#1099 .
2019-04-12 07:15:27 -07:00
Jacob Marble
603a1f26e0
use tracing.StartSpanFromContext
2019-03-07 12:12:31 -07:00
Jacob Marble
9541e861a3
goimports -w -local github.com/influxdata/influxdb
2019-03-07 12:12:31 -07:00
Jacob Marble
92fa813c45
add spans to multiple services
2019-03-07 12:12:31 -07:00
Jonathan A. Sternberg
f30820cb46
fix(query/influxql): normalize selectors when an interval is present ( #11760 )
...
The selector will be normalized to the start time interval when `GROUP
BY time(X)` is present in the query.
2019-02-11 10:51:59 -06:00
Jonathan A. Sternberg
204d919a92
refactor(query/influxql): use ast compile function from flux ( #11749 )
2019-02-07 10:02:23 -06:00
Jonathan A. Sternberg
8b20b52f51
refactor(query/influxql): modify the transpiler interface to produce an AST ( #11662 )
...
This refactors everything to generate and use a flux AST when
transpiling an influxql query. This also updates the spectests so they
use flux instead of writing out the AST and compare the resulting
AST's.
2019-02-06 10:18:33 -06:00
Lorenzo Affetti
ce00375298
refactor(query/stlib): move from implementation from Flux
2019-02-05 17:46:46 +01:00
Nathaniel Cook
d0603457b7
refactor(flux): make packages mirror Flux namespaces
2019-01-14 18:00:45 -07:00
Nathaniel Cook
1708a41fa7
refactor: update query functions for Flux builtins
2019-01-11 13:11:57 -07:00
Jonathan A. Sternberg
a59e6b8d25
refactor: rename DoArrow to Do ( #2372 )
...
See influxdata/flux#783 for details.
2019-01-10 10:30:25 -07:00
Jonathan A. Sternberg
6ccb8e8c75
refactor: convert usages of ColReader to ArrowColReader
2019-01-10 10:25:10 -07:00
Mark Rushakoff
d73d73c0d4
chore: rename imports from platform to influxdb
...
I did this with a dumb editor macro, so some comments changed too.
Also rename root package from platform to influxdb.
In interest of minimizing risk, anyone importing the root package has
now aliased it to "platform" so that no changes beyond imports were
necessary in those files.
Lastly, replace the old platform module to local path /dev/null so that
nobody can accidentally reintroduce a platform dependency while
migrating platform code to influxdb.
2019-01-09 20:51:47 -08:00
Adam
af0cad76ba
chore(query/influxql): moved query_test.go and requisite files to the influxql dir to be closer to the code it tests. ( #2013 )
2018-12-20 11:48:33 -05:00
Jonathan A. Sternberg
cc93531400
fix(storage): convert the storage table interface to use arrow buffers
...
The table interface was modified to expose the arrow buffers. The
storage table has now been converted to use this interface with the same
fixes so that it exposes arrow buffers.
The influxql package has also been updated to use the `DoArrow` method
from the `flux.Table` interface.
2018-12-18 09:47:53 -07:00
Christopher M. Wolff
f1d21b8132
refactor(query): update transpiler to reflect signature change to `group()` ( #1689 )
...
update other modules that used old syntax as well
2018-12-04 09:32:37 -08:00
Edd Robinson
9403c1ec8e
Ensure error strings not capitalised ST1005
2018-11-30 10:54:24 +00:00
Ben Johnson
1862b4421d
Integrate scanned values statistics tracking.
2018-11-28 15:32:06 -07:00
Lorenzo Affetti
987370d1c9
Merge pull request #1565 from influxdata/la-median-transp
...
Support for median in transpiler
2018-11-27 17:38:35 +01:00
Lorenzo Affetti
eda4a59c35
Support for median in transpiler
2018-11-27 17:23:29 +01:00
jlapacik
2b52224e84
update flux dependency - add missing Statistics() methods
2018-11-26 13:19:14 -08:00
jlapacik
17413276c2
update transpiler result iterators with new Statistics method
2018-11-26 12:17:16 -08:00
Adam
41aa5688a0
Add default column to databases and add support for `show retention policies` ( #1423 )
...
* Add default column to databases to support `show retention policies`
* add unit test for show retention policies
* update transpiler readme for show databases, show retention policies
2018-11-16 15:20:49 -05:00
Christopher M. Wolff
bbd460e7d9
Add method QueryRawJSON to influxql.service (for querytest tool) ( #1402 )
2018-11-15 10:45:38 -08:00
Adam
2321d81291
Feat/transpiler show databases ( #1363 )
...
* feat(query): databases transformation implementation
add show databases to transpiler
2018-11-13 16:07:28 -05:00
Adam
c950a6dc00
fix to transpiler result encoder when there's no _time column ( #1350 )
...
* fix to transpiler result encoder when there's no _time column
* add unit tests
2018-11-12 15:35:16 -05:00
Jonathan A. Sternberg
fadf4f3e4f
deps: update flux dependency
2018-11-08 14:49:35 -06:00
jlapacik
3a6810c7ff
generated influxql json tests
2018-11-06 14:04:40 -08:00
Jonathan A. Sternberg
66920f253a
fix: show tag values must specify a range stop
2018-11-06 09:17:37 -06:00
Nathaniel Cook
9fecaa0eb0
chore: Update for Flux renaming
2018-11-05 19:30:22 -07:00
Mark Rushakoff
dae3dc8a7e
chore(bolt,http,mock,query,testing): fix megacheck errors
2018-11-01 12:54:46 -07:00
Nathaniel Cook
2a1d76eb2d
chore: Update flux dependency for the type-inference changes
2018-10-31 17:11:11 -06:00
Adam
98be8bcd32
moved to_http and to_kafka to flux and update to latest flux ( #1175 )
2018-10-24 12:33:43 -04:00
Chris Goller
2bea48f15a
refactor(testing): rename MustIDFromString to MustIDBase16
2018-10-11 09:54:19 -05:00
Leonardo Di Donato
8d7f06cf4b
feat(platform/id): using uint64 for platform.IDs
...
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Co-Authored-by: Lorenzo Fontana <lo@linux.com>
2018-10-11 09:54:18 -05:00
Adam
195eb04350
Chore/move from function to platform ( #1013 )
...
* moved execution code for from into query/functions/inputs
* rebase with master, disable buckets accessed test
2018-10-09 20:36:41 -04:00
Chris Goller
90494a5309
chore(fmt): fix and simplify go formatting
2018-10-08 17:23:54 -05:00