generated influxql json tests
parent
362d4c6b34
commit
3a6810c7ff
2
go.mod
2
go.mod
|
@ -37,7 +37,7 @@ require (
|
|||
github.com/hashicorp/raft v1.0.0 // indirect
|
||||
github.com/imdario/mergo v0.3.6 // indirect
|
||||
github.com/inconshreveable/mousetrap v1.0.0 // indirect
|
||||
github.com/influxdata/flux v0.7.0
|
||||
github.com/influxdata/flux v0.0.0-20181101181147-ad320b7fd3f6
|
||||
github.com/influxdata/influxdb v0.0.0-20181017211453-9520b8d95606
|
||||
github.com/influxdata/influxql v0.0.0-20180925231337-1cbfca8e56b6
|
||||
github.com/influxdata/usage-client v0.0.0-20160829180054-6d3895376368
|
||||
|
|
4
go.sum
4
go.sum
|
@ -120,8 +120,8 @@ github.com/imdario/mergo v0.3.6 h1:xTNEAn+kxVO7dTZGu0CegyqKZmoWFI0rF8UxjlB2d28=
|
|||
github.com/imdario/mergo v0.3.6/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
|
||||
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
|
||||
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
|
||||
github.com/influxdata/flux v0.7.0 h1:5CNC9pJnxTVXPpLOsSp1AMpH0XcLAIBVuTdntBzroJQ=
|
||||
github.com/influxdata/flux v0.7.0/go.mod h1:wC5PBWVC/p7SQjKZNJ/dtwAuIufYHOVapzlC/A3awbQ=
|
||||
github.com/influxdata/flux v0.0.0-20181101181147-ad320b7fd3f6 h1:E+oTJgVeGnwL2uXhRF+jKNLug+QoVOserEjji36fSaw=
|
||||
github.com/influxdata/flux v0.0.0-20181101181147-ad320b7fd3f6/go.mod h1:wC5PBWVC/p7SQjKZNJ/dtwAuIufYHOVapzlC/A3awbQ=
|
||||
github.com/influxdata/goreleaser v0.86.2-0.20181010170531-0fd209ba67f5/go.mod h1:aVuBpDAT5VtjtUxzvBt8HOd0buzvvk7OX3H2iaviixg=
|
||||
github.com/influxdata/influxdb v0.0.0-20181017211453-9520b8d95606 h1:LBPg9NDkmVEGr22IrYPNsESFPjUnSgAbIgClv65dMIg=
|
||||
github.com/influxdata/influxdb v0.0.0-20181017211453-9520b8d95606/go.mod h1:qZna6X/4elxqT3yI9iZYdZrWWdeFOOprn86kgg4+IzY=
|
||||
|
|
|
@ -22,6 +22,8 @@ import (
|
|||
"github.com/andreyvit/diff"
|
||||
)
|
||||
|
||||
const generatedInfluxQLDataDir = "random"
|
||||
|
||||
var dbrpMappingSvc = mock.NewDBRPMappingService()
|
||||
|
||||
func init() {
|
||||
|
@ -76,6 +78,26 @@ func withEachFluxFile(t testing.TB, fn func(prefix, caseName string)) {
|
|||
}
|
||||
}
|
||||
|
||||
func withEachInfluxQLFile(t testing.TB, fn func(prefix, caseName string)) {
|
||||
dir, err := os.Getwd()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
path := filepath.Join(dir, generatedInfluxQLDataDir)
|
||||
|
||||
influxqlFiles, err := filepath.Glob(filepath.Join(path, "*.influxql"))
|
||||
if err != nil {
|
||||
t.Fatalf("error searching for influxQL files: %s", err)
|
||||
}
|
||||
|
||||
for _, influxqlFile := range influxqlFiles {
|
||||
ext := filepath.Ext(influxqlFile)
|
||||
prefix := influxqlFile[0 : len(influxqlFile)-len(ext)]
|
||||
_, caseName := filepath.Split(prefix)
|
||||
fn(prefix, caseName)
|
||||
}
|
||||
}
|
||||
|
||||
func Test_QueryEndToEnd(t *testing.T) {
|
||||
withEachFluxFile(t, func(prefix, caseName string) {
|
||||
reason, skip := skipTests[caseName]
|
||||
|
@ -97,6 +119,15 @@ func Test_QueryEndToEnd(t *testing.T) {
|
|||
})
|
||||
}
|
||||
|
||||
func Test_GeneratedInfluxQLQueries(t *testing.T) {
|
||||
withEachInfluxQLFile(t, func(prefix, caseName string) {
|
||||
influxqlName := caseName + ".influxql"
|
||||
t.Run(influxqlName, func(t *testing.T) {
|
||||
testGeneratedInfluxQL(t, querier, prefix, ".influxql")
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
func Benchmark_QueryEndToEnd(b *testing.B) {
|
||||
withEachFluxFile(b, func(prefix, caseName string) {
|
||||
reason, skip := skipTests[caseName]
|
||||
|
@ -200,6 +231,37 @@ func testInfluxQL(t testing.TB, querier *querytest.Querier, prefix, queryExt str
|
|||
QueryTestCheckSpec(t, querier, req, string(jsonOut))
|
||||
}
|
||||
|
||||
func testGeneratedInfluxQL(t testing.TB, querier *querytest.Querier, prefix, queryExt string) {
|
||||
q, err := ioutil.ReadFile(prefix + queryExt)
|
||||
if err != nil {
|
||||
if !os.IsNotExist(err) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Skip("influxql query is missing")
|
||||
}
|
||||
|
||||
jsonInFileName := prefix + ".in.json"
|
||||
jsonOut, err := ioutil.ReadFile(prefix + ".out.json")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
compiler := influxql.NewCompiler(dbrpMappingSvc)
|
||||
compiler.Cluster = "cluster"
|
||||
compiler.DB = "db0"
|
||||
compiler.Query = string(q)
|
||||
req := &query.ProxyRequest{
|
||||
Request: query.Request{
|
||||
Compiler: querytest.FromInfluxJSONCompiler{
|
||||
Compiler: compiler,
|
||||
InputFile: jsonInFileName,
|
||||
},
|
||||
},
|
||||
Dialect: new(influxql.Dialect),
|
||||
}
|
||||
QueryTestCheckSpec(t, querier, req, string(jsonOut))
|
||||
}
|
||||
|
||||
func QueryTestCheckSpec(t testing.TB, querier *querytest.Querier, req *query.ProxyRequest, want string) {
|
||||
t.Helper()
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
{"results":[{"statement_id":0,"series":[{"name":"ctr","columns":["time","n"],"values":[["1970-01-01T00:00:00Z",0],["1970-01-01T00:00:00.000000001Z",1],["1970-01-01T00:00:00.000000002Z",2],["1970-01-01T00:00:00.000000003Z",3],["1970-01-01T00:00:00.000000004Z",4],["1970-01-01T00:00:00.000000005Z",5],["1970-01-01T00:00:00.000000006Z",6],["1970-01-01T00:00:00.000000007Z",7],["1970-01-01T00:00:00.000000008Z",8],["1970-01-01T00:00:00.000000009Z",9],["1970-01-01T00:00:00.00000001Z",10],["1970-01-01T00:00:00.000000011Z",11],["1970-01-01T00:00:00.000000012Z",12],["1970-01-01T00:00:00.000000013Z",13],["1970-01-01T00:00:00.000000014Z",14],["1970-01-01T00:00:00.000000015Z",15],["1970-01-01T00:00:00.000000016Z",16],["1970-01-01T00:00:00.000000017Z",17],["1970-01-01T00:00:00.000000018Z",18],["1970-01-01T00:00:00.000000019Z",19]]}]}]}
|
|
@ -0,0 +1,200 @@
|
|||
SELECT n FROM ctr WHERE n > -1
|
||||
AND n > -2
|
||||
AND n > -3
|
||||
AND n > -4
|
||||
AND n > -5
|
||||
AND n > -6
|
||||
AND n > -7
|
||||
AND n > -8
|
||||
AND n > -9
|
||||
AND n > -10
|
||||
AND n > -11
|
||||
AND n > -12
|
||||
AND n > -13
|
||||
AND n > -14
|
||||
AND n > -15
|
||||
AND n > -16
|
||||
AND n > -17
|
||||
AND n > -18
|
||||
AND n > -19
|
||||
AND n > -20
|
||||
AND n > -21
|
||||
AND n > -22
|
||||
AND n > -23
|
||||
AND n > -24
|
||||
AND n > -25
|
||||
AND n > -26
|
||||
AND n > -27
|
||||
AND n > -28
|
||||
AND n > -29
|
||||
AND n > -30
|
||||
AND n > -31
|
||||
AND n > -32
|
||||
AND n > -33
|
||||
AND n > -34
|
||||
AND n > -35
|
||||
AND n > -36
|
||||
AND n > -37
|
||||
AND n > -38
|
||||
AND n > -39
|
||||
AND n > -40
|
||||
AND n > -41
|
||||
AND n > -42
|
||||
AND n > -43
|
||||
AND n > -44
|
||||
AND n > -45
|
||||
AND n > -46
|
||||
AND n > -47
|
||||
AND n > -48
|
||||
AND n > -49
|
||||
AND n > -50
|
||||
AND n > -51
|
||||
AND n > -52
|
||||
AND n > -53
|
||||
AND n > -54
|
||||
AND n > -55
|
||||
AND n > -56
|
||||
AND n > -57
|
||||
AND n > -58
|
||||
AND n > -59
|
||||
AND n > -60
|
||||
AND n > -61
|
||||
AND n > -62
|
||||
AND n > -63
|
||||
AND n > -64
|
||||
AND n > -65
|
||||
AND n > -66
|
||||
AND n > -67
|
||||
AND n > -68
|
||||
AND n > -69
|
||||
AND n > -70
|
||||
AND n > -71
|
||||
AND n > -72
|
||||
AND n > -73
|
||||
AND n > -74
|
||||
AND n > -75
|
||||
AND n > -76
|
||||
AND n > -77
|
||||
AND n > -78
|
||||
AND n > -79
|
||||
AND n > -80
|
||||
AND n > -81
|
||||
AND n > -82
|
||||
AND n > -83
|
||||
AND n > -84
|
||||
AND n > -85
|
||||
AND n > -86
|
||||
AND n > -87
|
||||
AND n > -88
|
||||
AND n > -89
|
||||
AND n > -90
|
||||
AND n > -91
|
||||
AND n > -92
|
||||
AND n > -93
|
||||
AND n > -94
|
||||
AND n > -95
|
||||
AND n > -96
|
||||
AND n > -97
|
||||
AND n > -98
|
||||
AND n > -99
|
||||
AND n > -100
|
||||
AND n > -101
|
||||
AND n > -102
|
||||
AND n > -103
|
||||
AND n > -104
|
||||
AND n > -105
|
||||
AND n > -106
|
||||
AND n > -107
|
||||
AND n > -108
|
||||
AND n > -109
|
||||
AND n > -110
|
||||
AND n > -111
|
||||
AND n > -112
|
||||
AND n > -113
|
||||
AND n > -114
|
||||
AND n > -115
|
||||
AND n > -116
|
||||
AND n > -117
|
||||
AND n > -118
|
||||
AND n > -119
|
||||
AND n > -120
|
||||
AND n > -121
|
||||
AND n > -122
|
||||
AND n > -123
|
||||
AND n > -124
|
||||
AND n > -125
|
||||
AND n > -126
|
||||
AND n > -127
|
||||
AND n > -128
|
||||
AND n > -129
|
||||
AND n > -130
|
||||
AND n > -131
|
||||
AND n > -132
|
||||
AND n > -133
|
||||
AND n > -134
|
||||
AND n > -135
|
||||
AND n > -136
|
||||
AND n > -137
|
||||
AND n > -138
|
||||
AND n > -139
|
||||
AND n > -140
|
||||
AND n > -141
|
||||
AND n > -142
|
||||
AND n > -143
|
||||
AND n > -144
|
||||
AND n > -145
|
||||
AND n > -146
|
||||
AND n > -147
|
||||
AND n > -148
|
||||
AND n > -149
|
||||
AND n > -150
|
||||
AND n > -151
|
||||
AND n > -152
|
||||
AND n > -153
|
||||
AND n > -154
|
||||
AND n > -155
|
||||
AND n > -156
|
||||
AND n > -157
|
||||
AND n > -158
|
||||
AND n > -159
|
||||
AND n > -160
|
||||
AND n > -161
|
||||
AND n > -162
|
||||
AND n > -163
|
||||
AND n > -164
|
||||
AND n > -165
|
||||
AND n > -166
|
||||
AND n > -167
|
||||
AND n > -168
|
||||
AND n > -169
|
||||
AND n > -170
|
||||
AND n > -171
|
||||
AND n > -172
|
||||
AND n > -173
|
||||
AND n > -174
|
||||
AND n > -175
|
||||
AND n > -176
|
||||
AND n > -177
|
||||
AND n > -178
|
||||
AND n > -179
|
||||
AND n > -180
|
||||
AND n > -181
|
||||
AND n > -182
|
||||
AND n > -183
|
||||
AND n > -184
|
||||
AND n > -185
|
||||
AND n > -186
|
||||
AND n > -187
|
||||
AND n > -188
|
||||
AND n > -189
|
||||
AND n > -190
|
||||
AND n > -191
|
||||
AND n > -192
|
||||
AND n > -193
|
||||
AND n > -194
|
||||
AND n > -195
|
||||
AND n > -196
|
||||
AND n > -197
|
||||
AND n > -198
|
||||
AND n > -199
|
||||
AND n > -200
|
|
@ -0,0 +1 @@
|
|||
{"results":[{"statement_id":0,"series":[{"name":"ctr","columns":["time","n"],"values":[["1970-01-01T00:00:00Z",0],["1970-01-01T00:00:00.000000001Z",1],["1970-01-01T00:00:00.000000002Z",2],["1970-01-01T00:00:00.000000003Z",3],["1970-01-01T00:00:00.000000004Z",4],["1970-01-01T00:00:00.000000005Z",5],["1970-01-01T00:00:00.000000006Z",6],["1970-01-01T00:00:00.000000007Z",7],["1970-01-01T00:00:00.000000008Z",8],["1970-01-01T00:00:00.000000009Z",9],["1970-01-01T00:00:00.00000001Z",10],["1970-01-01T00:00:00.000000011Z",11],["1970-01-01T00:00:00.000000012Z",12],["1970-01-01T00:00:00.000000013Z",13],["1970-01-01T00:00:00.000000014Z",14],["1970-01-01T00:00:00.000000015Z",15],["1970-01-01T00:00:00.000000016Z",16],["1970-01-01T00:00:00.000000017Z",17],["1970-01-01T00:00:00.000000018Z",18],["1970-01-01T00:00:00.000000019Z",19]]}]}]}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
SELECT f9 FROM m
|
|
@ -0,0 +1 @@
|
|||
{"results":[{"statement_id":0,"series":[{"name":"m","columns":["time","f9"],"values":[["1970-01-01T00:00:00Z",0.7822396695487349],["1970-01-01T00:00:00Z",0.44218763277979267],["1970-01-01T00:00:00Z",0.17448419646572513],["1970-01-01T00:00:01Z",0.6839962828444629],["1970-01-01T00:00:01Z",0.1356718793544881],["1970-01-01T00:00:01Z",0.48190584278573106],["1970-01-01T00:00:02Z",0.8457449548348979],["1970-01-01T00:00:02Z",0.9834967137145335],["1970-01-01T00:00:02Z",0.2427792618512445],["1970-01-01T00:00:03Z",0.1266300302485541],["1970-01-01T00:00:03Z",0.036280211603582094],["1970-01-01T00:00:03Z",0.156343766579991],["1970-01-01T00:00:04Z",0.846699126703084],["1970-01-01T00:00:04Z",0.46693053299425497],["1970-01-01T00:00:04Z",0.6065694505136637],["1970-01-01T00:00:05Z",0.5592475596102195],["1970-01-01T00:00:05Z",0.8721057976790727],["1970-01-01T00:00:05Z",0.9322564329789343],["1970-01-01T00:00:06Z",0.2703399283985322],["1970-01-01T00:00:06Z",0.7202948099570011],["1970-01-01T00:00:06Z",0.765918421340765],["1970-01-01T00:00:07Z",0.5677404374561501],["1970-01-01T00:00:07Z",0.3934077136597092],["1970-01-01T00:00:07Z",0.7759073505946763],["1970-01-01T00:00:08Z",0.8416021003453006],["1970-01-01T00:00:08Z",0.8943789828418723],["1970-01-01T00:00:08Z",0.2262623854493681],["1970-01-01T00:00:09Z",0.8012931556741746],["1970-01-01T00:00:09Z",0.8817654197982071],["1970-01-01T00:00:09Z",0.7687942955760755]]}]}]}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
SELECT f1 FROM m
|
|
@ -0,0 +1 @@
|
|||
{"results":[{"statement_id":0,"series":[{"name":"m","columns":["time","f1"],"values":[["1970-01-01T00:00:00Z",0.8638387305501782],["1970-01-01T00:00:00Z",0.22955152180514285],["1970-01-01T00:00:00Z",0.26480675667080245],["1970-01-01T00:00:01Z",0.38597934093769365],["1970-01-01T00:00:01Z",0.22864969229536702],["1970-01-01T00:00:01Z",0.057587691009471295],["1970-01-01T00:00:02Z",0.30956477645615227],["1970-01-01T00:00:02Z",0.009218497843564934],["1970-01-01T00:00:02Z",0.47428651232352664],["1970-01-01T00:00:03Z",0.29157008522975036],["1970-01-01T00:00:03Z",0.7706753775336918],["1970-01-01T00:00:03Z",0.5920392113694708],["1970-01-01T00:00:04Z",0.3851401759922073],["1970-01-01T00:00:04Z",0.28013536619350193],["1970-01-01T00:00:04Z",0.4563158665884148],["1970-01-01T00:00:05Z",0.454787866296595],["1970-01-01T00:00:05Z",0.7419027685473334],["1970-01-01T00:00:05Z",0.446965282549521],["1970-01-01T00:00:06Z",0.18575611267633582],["1970-01-01T00:00:06Z",0.3071949701738796],["1970-01-01T00:00:06Z",0.37580741988140315],["1970-01-01T00:00:07Z",0.8341341263595288],["1970-01-01T00:00:07Z",0.8309570018625956],["1970-01-01T00:00:07Z",0.360601308248434],["1970-01-01T00:00:08Z",0.49248002346969677],["1970-01-01T00:00:08Z",0.6447018279892763],["1970-01-01T00:00:08Z",0.68496674479988],["1970-01-01T00:00:09Z",0.841931720355974],["1970-01-01T00:00:09Z",0.8291927462104175],["1970-01-01T00:00:09Z",0.5165650143344009]]}]}]}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
SELECT f2::float FROM m
|
|
@ -0,0 +1 @@
|
|||
{"results":[{"statement_id":0,"series":[{"name":"m","columns":["time","f2"],"values":[["1970-01-01T00:00:00Z",0.9272805413130395],["1970-01-01T00:00:00Z",0.47970472558416827],["1970-01-01T00:00:00Z",0.7408460829730995],["1970-01-01T00:00:01Z",0.016796730762748433],["1970-01-01T00:00:01Z",0.6168333631553172],["1970-01-01T00:00:01Z",0.0032840645076174704],["1970-01-01T00:00:02Z",0.34894769350751254],["1970-01-01T00:00:02Z",0.23692549661840276],["1970-01-01T00:00:02Z",0.285685698547801],["1970-01-01T00:00:03Z",0.8716613231085969],["1970-01-01T00:00:03Z",0.4967162556944982],["1970-01-01T00:00:03Z",0.8948251912376763],["1970-01-01T00:00:04Z",0.4979297775861864],["1970-01-01T00:00:04Z",0.38442773428859933],["1970-01-01T00:00:04Z",0.9106983769054712],["1970-01-01T00:00:05Z",0.7353984723681996],["1970-01-01T00:00:05Z",0.9286996963678618],["1970-01-01T00:00:05Z",0.44348430366003927],["1970-01-01T00:00:06Z",0.6811149528140394],["1970-01-01T00:00:06Z",0.8809591446652713],["1970-01-01T00:00:06Z",0.1625028500747293],["1970-01-01T00:00:07Z",0.044489099715004324],["1970-01-01T00:00:07Z",0.22951124801511558],["1970-01-01T00:00:07Z",0.736982299781463],["1970-01-01T00:00:08Z",0.023541697782227818],["1970-01-01T00:00:08Z",0.7056909206703172],["1970-01-01T00:00:08Z",0.9241415719994643],["1970-01-01T00:00:09Z",0.8070089650418835],["1970-01-01T00:00:09Z",0.8347282414681495],["1970-01-01T00:00:09Z",0.186164815469359]]}]}]}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
SELECT count("n") FROM "ctr" WHERE time >= 0m AND time <= 840m
|
|
@ -0,0 +1 @@
|
|||
{"results":[{"statement_id":0,"series":[{"name":"ctr","columns":["time","count"],"values":[["1970-01-01T00:00:00Z",840]]}]}]}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
SELECT count("n") FROM "ctr" WHERE time >= 0m AND time <= 210m
|
|
@ -0,0 +1 @@
|
|||
{"results":[{"statement_id":0,"series":[{"name":"ctr","columns":["time","count"],"values":[["1970-01-01T00:00:00Z",211]]}]}]}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
SELECT count("n") FROM "ctr" WHERE time >= 630m AND time <= 840m
|
|
@ -0,0 +1 @@
|
|||
{"results":[{"statement_id":0,"series":[{"name":"ctr","columns":["time","count"],"values":[["1970-01-01T10:30:00Z",210]]}]}]}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
SELECT count("n") FROM "ctr" WHERE time >= 210m AND time <= 630m
|
|
@ -0,0 +1 @@
|
|||
{"results":[{"statement_id":0,"series":[{"name":"ctr","columns":["time","count"],"values":[["1970-01-01T03:30:00Z",421]]}]}]}
|
|
@ -0,0 +1 @@
|
|||
{"results":[{"statement_id":0,"series":[{"name":"ctr","columns":["time","n"],"values":[["1970-01-01T00:00:00Z",0],["1970-01-01T00:00:00.000000001Z",1],["1970-01-01T00:00:00.000000002Z",2],["1970-01-01T00:00:00.000000003Z",3],["1970-01-01T00:00:00.000000004Z",4],["1970-01-01T00:00:00.000000005Z",5],["1970-01-01T00:00:00.000000006Z",6],["1970-01-01T00:00:00.000000007Z",7],["1970-01-01T00:00:00.000000008Z",8],["1970-01-01T00:00:00.000000009Z",9],["1970-01-01T00:00:00.00000001Z",10],["1970-01-01T00:00:00.000000011Z",11],["1970-01-01T00:00:00.000000012Z",12],["1970-01-01T00:00:00.000000013Z",13],["1970-01-01T00:00:00.000000014Z",14],["1970-01-01T00:00:00.000000015Z",15],["1970-01-01T00:00:00.000000016Z",16],["1970-01-01T00:00:00.000000017Z",17],["1970-01-01T00:00:00.000000018Z",18],["1970-01-01T00:00:00.000000019Z",19]]}]}]}
|
|
@ -0,0 +1,201 @@
|
|||
SELECT n FROM ctr WHERE n > 2000
|
||||
OR n > 2001
|
||||
OR n > 2002
|
||||
OR n > 2003
|
||||
OR n > 2004
|
||||
OR n > 2005
|
||||
OR n > 2006
|
||||
OR n > 2007
|
||||
OR n > 2008
|
||||
OR n > 2009
|
||||
OR n > 2010
|
||||
OR n > 2011
|
||||
OR n > 2012
|
||||
OR n > 2013
|
||||
OR n > 2014
|
||||
OR n > 2015
|
||||
OR n > 2016
|
||||
OR n > 2017
|
||||
OR n > 2018
|
||||
OR n > 2019
|
||||
OR n > 2020
|
||||
OR n > 2021
|
||||
OR n > 2022
|
||||
OR n > 2023
|
||||
OR n > 2024
|
||||
OR n > 2025
|
||||
OR n > 2026
|
||||
OR n > 2027
|
||||
OR n > 2028
|
||||
OR n > 2029
|
||||
OR n > 2030
|
||||
OR n > 2031
|
||||
OR n > 2032
|
||||
OR n > 2033
|
||||
OR n > 2034
|
||||
OR n > 2035
|
||||
OR n > 2036
|
||||
OR n > 2037
|
||||
OR n > 2038
|
||||
OR n > 2039
|
||||
OR n > 2040
|
||||
OR n > 2041
|
||||
OR n > 2042
|
||||
OR n > 2043
|
||||
OR n > 2044
|
||||
OR n > 2045
|
||||
OR n > 2046
|
||||
OR n > 2047
|
||||
OR n > 2048
|
||||
OR n > 2049
|
||||
OR n > 2050
|
||||
OR n > 2051
|
||||
OR n > 2052
|
||||
OR n > 2053
|
||||
OR n > 2054
|
||||
OR n > 2055
|
||||
OR n > 2056
|
||||
OR n > 2057
|
||||
OR n > 2058
|
||||
OR n > 2059
|
||||
OR n > 2060
|
||||
OR n > 2061
|
||||
OR n > 2062
|
||||
OR n > 2063
|
||||
OR n > 2064
|
||||
OR n > 2065
|
||||
OR n > 2066
|
||||
OR n > 2067
|
||||
OR n > 2068
|
||||
OR n > 2069
|
||||
OR n > 2070
|
||||
OR n > 2071
|
||||
OR n > 2072
|
||||
OR n > 2073
|
||||
OR n > 2074
|
||||
OR n > 2075
|
||||
OR n > 2076
|
||||
OR n > 2077
|
||||
OR n > 2078
|
||||
OR n > 2079
|
||||
OR n > 2080
|
||||
OR n > 2081
|
||||
OR n > 2082
|
||||
OR n > 2083
|
||||
OR n > 2084
|
||||
OR n > 2085
|
||||
OR n > 2086
|
||||
OR n > 2087
|
||||
OR n > 2088
|
||||
OR n > 2089
|
||||
OR n > 2090
|
||||
OR n > 2091
|
||||
OR n > 2092
|
||||
OR n > 2093
|
||||
OR n > 2094
|
||||
OR n > 2095
|
||||
OR n > 2096
|
||||
OR n > 2097
|
||||
OR n > 2098
|
||||
OR n > 2099
|
||||
OR n > 2100
|
||||
OR n > 2101
|
||||
OR n > 2102
|
||||
OR n > 2103
|
||||
OR n > 2104
|
||||
OR n > 2105
|
||||
OR n > 2106
|
||||
OR n > 2107
|
||||
OR n > 2108
|
||||
OR n > 2109
|
||||
OR n > 2110
|
||||
OR n > 2111
|
||||
OR n > 2112
|
||||
OR n > 2113
|
||||
OR n > 2114
|
||||
OR n > 2115
|
||||
OR n > 2116
|
||||
OR n > 2117
|
||||
OR n > 2118
|
||||
OR n > 2119
|
||||
OR n > 2120
|
||||
OR n > 2121
|
||||
OR n > 2122
|
||||
OR n > 2123
|
||||
OR n > 2124
|
||||
OR n > 2125
|
||||
OR n > 2126
|
||||
OR n > 2127
|
||||
OR n > 2128
|
||||
OR n > 2129
|
||||
OR n > 2130
|
||||
OR n > 2131
|
||||
OR n > 2132
|
||||
OR n > 2133
|
||||
OR n > 2134
|
||||
OR n > 2135
|
||||
OR n > 2136
|
||||
OR n > 2137
|
||||
OR n > 2138
|
||||
OR n > 2139
|
||||
OR n > 2140
|
||||
OR n > 2141
|
||||
OR n > 2142
|
||||
OR n > 2143
|
||||
OR n > 2144
|
||||
OR n > 2145
|
||||
OR n > 2146
|
||||
OR n > 2147
|
||||
OR n > 2148
|
||||
OR n > 2149
|
||||
OR n > 2150
|
||||
OR n > 2151
|
||||
OR n > 2152
|
||||
OR n > 2153
|
||||
OR n > 2154
|
||||
OR n > 2155
|
||||
OR n > 2156
|
||||
OR n > 2157
|
||||
OR n > 2158
|
||||
OR n > 2159
|
||||
OR n > 2160
|
||||
OR n > 2161
|
||||
OR n > 2162
|
||||
OR n > 2163
|
||||
OR n > 2164
|
||||
OR n > 2165
|
||||
OR n > 2166
|
||||
OR n > 2167
|
||||
OR n > 2168
|
||||
OR n > 2169
|
||||
OR n > 2170
|
||||
OR n > 2171
|
||||
OR n > 2172
|
||||
OR n > 2173
|
||||
OR n > 2174
|
||||
OR n > 2175
|
||||
OR n > 2176
|
||||
OR n > 2177
|
||||
OR n > 2178
|
||||
OR n > 2179
|
||||
OR n > 2180
|
||||
OR n > 2181
|
||||
OR n > 2182
|
||||
OR n > 2183
|
||||
OR n > 2184
|
||||
OR n > 2185
|
||||
OR n > 2186
|
||||
OR n > 2187
|
||||
OR n > 2188
|
||||
OR n > 2189
|
||||
OR n > 2190
|
||||
OR n > 2191
|
||||
OR n > 2192
|
||||
OR n > 2193
|
||||
OR n > 2194
|
||||
OR n > 2195
|
||||
OR n > 2196
|
||||
OR n > 2197
|
||||
OR n > 2198
|
||||
OR n > 2199
|
||||
OR n >= 0
|
|
@ -0,0 +1 @@
|
|||
{"results":[{"statement_id":0,"series":[{"name":"ctr","columns":["time","n"],"values":[["1970-01-01T00:00:00Z",0],["1970-01-01T00:00:00.000000001Z",1],["1970-01-01T00:00:00.000000002Z",2],["1970-01-01T00:00:00.000000003Z",3],["1970-01-01T00:00:00.000000004Z",4],["1970-01-01T00:00:00.000000005Z",5],["1970-01-01T00:00:00.000000006Z",6],["1970-01-01T00:00:00.000000007Z",7],["1970-01-01T00:00:00.000000008Z",8],["1970-01-01T00:00:00.000000009Z",9],["1970-01-01T00:00:00.00000001Z",10],["1970-01-01T00:00:00.000000011Z",11],["1970-01-01T00:00:00.000000012Z",12],["1970-01-01T00:00:00.000000013Z",13],["1970-01-01T00:00:00.000000014Z",14],["1970-01-01T00:00:00.000000015Z",15],["1970-01-01T00:00:00.000000016Z",16],["1970-01-01T00:00:00.000000017Z",17],["1970-01-01T00:00:00.000000018Z",18],["1970-01-01T00:00:00.000000019Z",19]]}]}]}
|
|
@ -131,7 +131,7 @@ func (e *MultiResultEncoder) Encode(w io.Writer, results flux.ResultIterator) (i
|
|||
}
|
||||
case flux.TTime:
|
||||
for i, v := range cr.Times(idx) {
|
||||
values[i][j] = v.Time().Format(time.RFC3339)
|
||||
values[i][j] = v.Time().Format(time.RFC3339Nano)
|
||||
}
|
||||
default:
|
||||
return fmt.Errorf("unsupported column type: %s", c.Type)
|
||||
|
|
Loading…
Reference in New Issue