Merge pull request #354 from influxdata/ifql-window-interval

Add initial window bound offset test cases for flux
pull/10616/head
Adam Perlin 2018-07-06 12:57:17 -07:00 committed by GitHub
commit 3b122e327d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,3 @@
from(db: "test")
|> range(start:2018-05-22T19:53:30Z)
|> window(every:1m)

View File

@ -0,0 +1,10 @@
#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,double,string,string,string
#partition,false,false,false,false,false,false,true,true,true
#default,_result,,,,,,,,
,result,table,_start,_stop,_time,_value,_field,_measurement,host
,,147,2018-05-22T19:53:24.421470485Z,2018-05-22T19:54:24.421470485Z,2018-05-22T19:53:26Z,63.053321838378906,used_percent,mem,host.local
,,147,2018-05-22T19:54:34.421470485Z,2018-05-22T19:55:34.421470485Z,2018-05-22T19:54:36Z,62.71536350250244,used_percent,mem,host.local
,,147,2018-05-22T19:55:44.421470485Z,2018-05-22T19:56:44.421470485Z,2018-05-22T19:55:46Z,62.38760948181152,used_percent,mem,host.local
,,147,2018-05-22T19:56:54.421470485Z,2018-05-22T19:57:54.421470485Z,2018-05-22T19:56:56Z,62.74595260620117,used_percent,mem,host.local
,,147,2018-05-22T19:57:04.421470485Z,2018-05-22T19:58:04.421470485Z,2018-05-22T19:57:06Z,62.78183460235596,used_percent,mem,host.local
,,147,2018-05-22T19:58:14.421470485Z,2018-05-22T19:59:14.421470485Z,2018-05-22T19:58:16Z,62.46745586395264,used_percent,mem,host.local
1 #datatype string long dateTime:RFC3339 dateTime:RFC3339 dateTime:RFC3339 double string string string
2 #partition false false false false false false true true true
3 #default _result
4 result table _start _stop _time _value _field _measurement host
5 147 2018-05-22T19:53:24.421470485Z 2018-05-22T19:54:24.421470485Z 2018-05-22T19:53:26Z 63.053321838378906 used_percent mem host.local
6 147 2018-05-22T19:54:34.421470485Z 2018-05-22T19:55:34.421470485Z 2018-05-22T19:54:36Z 62.71536350250244 used_percent mem host.local
7 147 2018-05-22T19:55:44.421470485Z 2018-05-22T19:56:44.421470485Z 2018-05-22T19:55:46Z 62.38760948181152 used_percent mem host.local
8 147 2018-05-22T19:56:54.421470485Z 2018-05-22T19:57:54.421470485Z 2018-05-22T19:56:56Z 62.74595260620117 used_percent mem host.local
9 147 2018-05-22T19:57:04.421470485Z 2018-05-22T19:58:04.421470485Z 2018-05-22T19:57:06Z 62.78183460235596 used_percent mem host.local
10 147 2018-05-22T19:58:14.421470485Z 2018-05-22T19:59:14.421470485Z 2018-05-22T19:58:16Z 62.46745586395264 used_percent mem host.local

View File

@ -0,0 +1,10 @@
#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,double,string,string,string
#partition,false,false,true,true,false,false,true,true,true
#default,_result,,,,,,,,
,result,table,_start,_stop,_time,_value,_field,_measurement,host
,,0,2018-05-22T19:54:00Z,2018-05-22T19:55:00Z,2018-05-22T19:54:36Z,62.71536350250244,used_percent,mem,host.local
,,1,2018-05-22T19:55:00Z,2018-05-22T19:56:00Z,2018-05-22T19:55:46Z,62.38760948181152,used_percent,mem,host.local
,,2,2018-05-22T19:56:00Z,2018-05-22T19:57:00Z,2018-05-22T19:56:56Z,62.74595260620117,used_percent,mem,host.local
,,3,2018-05-22T19:57:00Z,2018-05-22T19:58:00Z,2018-05-22T19:57:06Z,62.78183460235596,used_percent,mem,host.local
,,4,2018-05-22T19:58:00Z,2018-05-22T19:59:00Z,2018-05-22T19:58:16Z,62.46745586395264,used_percent,mem,host.local
1 #datatype string long dateTime:RFC3339 dateTime:RFC3339 dateTime:RFC3339 double string string string
2 #partition false false true true false false true true true
3 #default _result
4 result table _start _stop _time _value _field _measurement host
5 0 2018-05-22T19:54:00Z 2018-05-22T19:55:00Z 2018-05-22T19:54:36Z 62.71536350250244 used_percent mem host.local
6 1 2018-05-22T19:55:00Z 2018-05-22T19:56:00Z 2018-05-22T19:55:46Z 62.38760948181152 used_percent mem host.local
7 2 2018-05-22T19:56:00Z 2018-05-22T19:57:00Z 2018-05-22T19:56:56Z 62.74595260620117 used_percent mem host.local
8 3 2018-05-22T19:57:00Z 2018-05-22T19:58:00Z 2018-05-22T19:57:06Z 62.78183460235596 used_percent mem host.local
9 4 2018-05-22T19:58:00Z 2018-05-22T19:59:00Z 2018-05-22T19:58:16Z 62.46745586395264 used_percent mem host.local

View File

@ -0,0 +1,3 @@
from(db: "test")
|> range(start:2018-05-22T19:53:00Z)
|> window(start:2018-05-22T19:53:30Z,every: 1m)

View File

@ -0,0 +1,10 @@
#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,double,string,string,string
#partition,false,false,false,false,false,false,true,true,true
#default,_result,,,,,,,,
,result,table,_start,_stop,_time,_value,_field,_measurement,host
,,147,2018-05-22T19:53:24.421470485Z,2018-05-22T19:54:24.421470485Z,2018-05-22T19:53:26Z,63.053321838378906,used_percent,mem,host.local
,,147,2018-05-22T19:54:34.421470485Z,2018-05-22T19:55:34.421470485Z,2018-05-22T19:54:36Z,62.71536350250244,used_percent,mem,host.local
,,147,2018-05-22T19:55:44.421470485Z,2018-05-22T19:56:44.421470485Z,2018-05-22T19:55:46Z,62.38760948181152,used_percent,mem,host.local
,,147,2018-05-22T19:56:54.421470485Z,2018-05-22T19:57:54.421470485Z,2018-05-22T19:56:56Z,62.74595260620117,used_percent,mem,host.local
,,147,2018-05-22T19:57:04.421470485Z,2018-05-22T19:58:04.421470485Z,2018-05-22T19:57:06Z,62.78183460235596,used_percent,mem,host.local
,,147,2018-05-22T19:58:14.421470485Z,2018-05-22T19:59:14.421470485Z,2018-05-22T19:58:16Z,62.46745586395264,used_percent,mem,host.local
1 #datatype string long dateTime:RFC3339 dateTime:RFC3339 dateTime:RFC3339 double string string string
2 #partition false false false false false false true true true
3 #default _result
4 result table _start _stop _time _value _field _measurement host
5 147 2018-05-22T19:53:24.421470485Z 2018-05-22T19:54:24.421470485Z 2018-05-22T19:53:26Z 63.053321838378906 used_percent mem host.local
6 147 2018-05-22T19:54:34.421470485Z 2018-05-22T19:55:34.421470485Z 2018-05-22T19:54:36Z 62.71536350250244 used_percent mem host.local
7 147 2018-05-22T19:55:44.421470485Z 2018-05-22T19:56:44.421470485Z 2018-05-22T19:55:46Z 62.38760948181152 used_percent mem host.local
8 147 2018-05-22T19:56:54.421470485Z 2018-05-22T19:57:54.421470485Z 2018-05-22T19:56:56Z 62.74595260620117 used_percent mem host.local
9 147 2018-05-22T19:57:04.421470485Z 2018-05-22T19:58:04.421470485Z 2018-05-22T19:57:06Z 62.78183460235596 used_percent mem host.local
10 147 2018-05-22T19:58:14.421470485Z 2018-05-22T19:59:14.421470485Z 2018-05-22T19:58:16Z 62.46745586395264 used_percent mem host.local

View File

@ -0,0 +1,11 @@
#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,double,string,string,string
#partition,false,false,true,true,false,false,true,true,true
#default,_result,,,,,,,,
,result,table,_start,_stop,_time,_value,_field,_measurement,host
,,0,2018-05-22T19:53:00Z,2018-05-22T19:53:30Z,2018-05-22T19:53:26Z,63.053321838378906,used_percent,mem,host.local
,,1,2018-05-22T19:54:30Z,2018-05-22T19:55:30Z,2018-05-22T19:54:36Z,62.71536350250244,used_percent,mem,host.local
,,2,2018-05-22T19:55:30Z,2018-05-22T19:56:30Z,2018-05-22T19:55:46Z,62.38760948181152,used_percent,mem,host.local
,,3,2018-05-22T19:56:30Z,2018-05-22T19:57:30Z,2018-05-22T19:56:56Z,62.74595260620117,used_percent,mem,host.local
,,3,2018-05-22T19:56:30Z,2018-05-22T19:57:30Z,2018-05-22T19:57:06Z,62.78183460235596,used_percent,mem,host.local
,,4,2018-05-22T19:57:30Z,2018-05-22T19:58:30Z,2018-05-22T19:58:16Z,62.46745586395264,used_percent,mem,host.local
1 #datatype string long dateTime:RFC3339 dateTime:RFC3339 dateTime:RFC3339 double string string string
2 #partition false false true true false false true true true
3 #default _result
4 result table _start _stop _time _value _field _measurement host
5 0 2018-05-22T19:53:00Z 2018-05-22T19:53:30Z 2018-05-22T19:53:26Z 63.053321838378906 used_percent mem host.local
6 1 2018-05-22T19:54:30Z 2018-05-22T19:55:30Z 2018-05-22T19:54:36Z 62.71536350250244 used_percent mem host.local
7 2 2018-05-22T19:55:30Z 2018-05-22T19:56:30Z 2018-05-22T19:55:46Z 62.38760948181152 used_percent mem host.local
8 3 2018-05-22T19:56:30Z 2018-05-22T19:57:30Z 2018-05-22T19:56:56Z 62.74595260620117 used_percent mem host.local
9 3 2018-05-22T19:56:30Z 2018-05-22T19:57:30Z 2018-05-22T19:57:06Z 62.78183460235596 used_percent mem host.local
10 4 2018-05-22T19:57:30Z 2018-05-22T19:58:30Z 2018-05-22T19:58:16Z 62.46745586395264 used_percent mem host.local