Dane Strandboge
82d1123e78
build: upgrade to Go 1.18.1 ( #23252 )
2022-04-13 15:24:27 -05:00
Sam Arnold
9308b6586a
chore: remove unused member from TagSet ( #22930 )
...
Co-authored-by: Tristan Su <suqing.sq@alibaba-inc.com>
2021-11-24 14:43:50 -05:00
Dane Strandboge
f4e9ae94ca
build: upgrade protobuf library ( #22654 )
2021-11-02 16:00:54 -05:00
Stuart Carnie
0700cc8582
chore: Add subquery tests for compatibility checks with Cloud 2 ( #22621 )
2021-10-12 10:49:01 +11:00
Sam Arnold
1542d2404f
feat: new recovery subcommand allows creating recovery user/token ( #22590 )
...
* feat: influxd recovery-cli allows creating recovery user/token
Closes #12051
* test: do not assert order of users or orgs in list
* fix: code review suggestions from dan
Co-authored-by: Daniel Moran <danxmoran@gmail.com>
* fix: more fixes from dan's review
* chore: depend on tabwriter from influx-cli
* chore: revert onboarding refactor
Co-authored-by: Daniel Moran <danxmoran@gmail.com>
2021-10-06 12:37:36 -04:00
Sam Arnold
725794ef28
feat: show measurement database and retention policy wildcards ( #22396 )
...
* feat: show measurement database and retention policy wildcards
Closes #22390
* chore: formatting
* test: this commit fails tests with empty database
* fix: show measurements with one empty database
2021-10-05 13:20:15 -04:00
Sam Arnold
5015297d40
fix: more expressive errors ( #22448 )
...
* fix: more expressive errors
Closes #22446
* fix: server only logging for untyped errors
* chore: fix formatting
2021-09-13 15:12:35 -04:00
Daniel Moran
29ef6dc562
test: skip HoltWinters tests when GOARCH != amd64 ( #22414 )
2021-09-07 16:15:31 -04:00
Daniel Moran
cc6accf106
chore: delete old-style DBRP mapping ( #22339 )
2021-08-30 18:27:11 -04:00
Daniel Moran
37088e8f53
feat(influxql): Add hyper log log operators ( #22322 )
...
In addition to helping with normal queries, this can improve the 'SHOW CARDINALITY'
meta-queries.
Co-authored-by: Sam Arnold <sarnold@influxdata.com>
2021-08-30 15:46:46 -04:00
Daniel Moran
5d84c602c8
build: upgrade staticcheck, fix new linter warnings ( #21957 )
2021-07-27 20:37:23 -04:00
Dane Strandboge
c62d4cdc24
refactor: move to `filepath.WalkDir` for slight performance gain in Go 1.16 ( #21858 )
2021-07-16 09:11:11 -05:00
Daniel Moran
ae9eb3e847
fix: error instead of panic for statement rewrite failure ( #21800 )
...
Co-authored-by: Sam Arnold <sarnold@influxdata.com>
2021-07-06 16:35:34 -04:00
Sam Arnold
2a4dc9e356
fix: remove incorrect optimization for group-by ( #21691 )
...
* fix: remove incorrect optimization for group-by
Closes #21639
* test: add test for the broken group-by
* chore: formatting
2021-06-16 12:23:05 -04:00
Daniel Moran
2e2552f75f
test: move InfluxQL compatibility suites so they're covered by linting & `go test` ( #21611 )
...
* Move InfluxQL tests so they're included in normal `go test`
* Fix `staticcheck` errors
* No parallel runs for influxql
2021-06-04 14:40:42 -04:00
Daniel Moran
00afd95cb7
refactor: automated move of errors and id from root to kit ( #21101 )
...
Co-authored-by: Sam Arnold <sarnold@influxdata.com>
2021-03-30 14:10:02 -04:00
Daniel Moran
b1283bc998
build: fix 'go generate' and regenerate the universe ( #21089 )
2021-03-30 10:32:14 -04:00
Tecker.Yu
643acd4ab1
feat(influxql): rewrite regex conditions in subqueries ( #20882 )
...
Co-authored-by: Daniel Moran <danxmoran@gmail.com>
2021-03-15 13:04:38 -04:00
Daniel Moran
2920b55e19
fix(http): fix passing of bucket ID by write-handler client ( #20679 )
2021-02-02 17:34:40 -05:00
Sam Arnold
781fa0e846
chore: add goimports
2021-01-29 14:06:52 -05:00
Daniel Moran
10fcc2bf1d
fix(influxql): set correct Content-Type on v1 query responses ( #20565 )
2021-01-22 07:31:52 -08:00
Daniel Moran
1d3fa70928
fix(influxql): Prevent extra output row from GROUP BY crossing DST boundary ( #20539 )
...
Co-authored-by: davidby-influx <dbyrne@influxdata.com>
2021-01-19 08:33:24 -08:00
Daniel Moran
afdcb18655
refactor: simplify how we set the top-level influxd logger ( #20374 )
2020-12-21 11:15:08 -08:00
Stuart Carnie
7fec1f9275
fix: PR Feedback
2020-11-17 09:17:28 +11:00
Stuart Carnie
484f606a1e
chore: Test to validate expected behavior of SHOW DATABASES
2020-11-17 09:17:28 +11:00
Stuart Carnie
50752f9a6a
feat: Empty `Test` that elides writes or a default db / rp
...
This is useful for validating InfluxQL DDL queries that don't
typically require writes or may have more complex setup requirements.
2020-11-17 09:17:28 +11:00
Stuart Carnie
91acebeab0
chore: Lots of cleanup and response to PR feedback.
2020-11-17 08:14:17 +11:00
Stuart Carnie
9e42444d8a
chore: Port InfluxQL test packages from Cloud
...
This commit copies over the comprehensive tests from Cloud.
2020-11-17 08:14:17 +11:00
Daniel Moran
15b9531273
fix: correct various typos ( #19987 )
...
Co-authored-by: kumakichi <xyesan@gmail.com>
2020-11-11 13:54:21 -05:00
Ayan George
ca2055c16c
refactor: Replace ctx.Done() with ctx.Err() ( #19546 )
...
* refactor: Replace ctx.Done() with ctx.Err()
Prior to this commit we checked for context cancellation with a select
block and context.Context.Done() without multiplexing over any other
channel like:
select {
case <-ctx.Done():
// handle cancellation
default:
// fallthrough
}
This commit replaces those type of blocks with a simple check of
ctx.Err(). This has the following benefits:
* Calling ctx.Err() is much faster than entering a select block.
* ctx.Done() allocates a channel when called for the first time.
* Testing the result of ctx.Err() is a reliable way of determininging if
a context.Context value has been canceled.
* fix: Fix data race in execDeleteTagValueEntry()
2020-09-16 12:20:09 -04:00
Brett Buddin
b917d8d9b0
chore(influxdb): Placate the linter.
2020-08-27 15:46:32 -04:00
Stuart Carnie
d20440a09f
fix: go fmt to satisfy go linter
2020-08-26 10:28:35 -07:00
Stuart Carnie
8a7dcc21fb
feat(influxql): Initial implementation of InfluxQL query engine
...
* Some tests are broken or do not pass; follow up PRs will resolve that
2020-08-14 12:37:30 -07:00
Stuart Carnie
b73340a4b1
chore(influxql): Update to latest influxql master-1.x
2020-08-13 11:02:40 -07:00
Stuart Carnie
89532f0c29
refactor: move v2/v1/models to v2/models
2020-08-03 09:20:51 -07:00
Stuart Carnie
92efddbfbe
chore(tsdb): Initial commit of tsdb package
...
* pulls in 1.x tsdb, compiles and passes test
2020-08-03 09:17:23 -07:00
Stuart Carnie
f3d45ba301
influxdata/influxdb/influxql -> influxdata/influxql
2017-10-30 14:40:26 -07:00
Stuart Carnie
7435725e05
move RewriteStatement and neldermead to influxdb/query package
2017-10-30 10:24:15 -07:00
Edd Robinson
f7e0e41a94
Simplify representation of statements
2017-10-26 16:22:49 +01:00
Edd Robinson
ce00830a29
Typo
2017-10-26 16:22:49 +01:00
Edd Robinson
bda6de9817
Add all versions of CARDINALITY commands
2017-10-26 16:22:48 +01:00
Edd Robinson
1342046264
Rewrite sources appropriately
2017-10-26 16:22:31 +01:00
Edd Robinson
ba9506764c
SHOW FIELD KEY EXACT CARDINALITY
2017-10-26 16:22:31 +01:00
Edd Robinson
c57e192984
SHOW TAG VALUES EXACT CARDINALITY
2017-10-26 16:22:31 +01:00
Edd Robinson
47c0840d5b
SHOW TAG KEY EXACT CARDINALITY
2017-10-26 16:22:31 +01:00
Edd Robinson
f80591bfa1
Implement MEASUREMENT cardinality estimation
2017-10-26 16:22:31 +01:00
Edd Robinson
3079b41f00
Implement series cardinality estimation
2017-10-26 16:22:31 +01:00
Edd Robinson
89a0ddf689
Add EXACT CARDINALITY variation
2017-10-26 16:22:31 +01:00
Andrew Hare
4d6672fa66
Merge with master
2017-09-29 11:07:40 -06:00
Jonathan A. Sternberg
d474a0ed9c
Handle UnsignedLiteral in the Reduce operations
2017-09-27 15:10:30 -05:00