add count aggregate fill test
parent
d993a3f36b
commit
8a8506e0bb
|
@ -912,6 +912,11 @@ func runTestsData(t *testing.T, testName string, nodes Cluster, database, retent
|
|||
query: `select mean(val) from "%DB%"."%RP%".fills where time >= '2009-11-10T23:00:00Z' and time < '2009-11-10T23:00:20Z' group by time(5s)`,
|
||||
expected: `{"results":[{"series":[{"name":"fills","columns":["time","mean"],"values":[["2009-11-10T23:00:00Z",4],["2009-11-10T23:00:05Z",4],["2009-11-10T23:00:10Z",null],["2009-11-10T23:00:15Z",10]]}]}]}`,
|
||||
},
|
||||
{
|
||||
name: "fill with count aggregate defaults to null",
|
||||
query: `select count(val) from "%DB%"."%RP%".fills where time >= '2009-11-10T23:00:00Z' and time < '2009-11-10T23:00:20Z' group by time(5s)`,
|
||||
expected: `{"results":[{"series":[{"name":"fills","columns":["time","count"],"values":[["2009-11-10T23:00:00Z",2],["2009-11-10T23:00:05Z",1],["2009-11-10T23:00:10Z",null],["2009-11-10T23:00:15Z",1]]}]}]}`,
|
||||
},
|
||||
|
||||
// Drop Measurement, series tags preserved tests
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue