sql select t1,t1,count(*),t1,t1 from lr_stb0 where ts>'2018-09-24 00:00:00.000' and ts<'2018-09-25 00:00:00.000' partition by t1 interval(1h) fill(NULL) limit 1
sql select _wstart, t1,t1,count(*),t1,t1 from lr_stb0 where ts>'2018-09-24 00:00:00.000' and ts<'2018-09-25 00:00:00.000' partition by t1 interval(1h) fill(NULL) limit 1
if $row != 2 then
if $row != 2 then
return -1
return -1
endi
endi
#if $data01 != 7 then
if $data01 != NULL then
# return -1
return -1
#endi
endi
#if $data02 != 7 then
if $data02 != NULL then
# return -1
return -1
#endi
endi
#if $data03 != 59 then
if $data03 != NULL then
# print expect 59, actual: $data03
return -1
# return -1
endi
#endi
if $data11 != 7 then
#if $data04 != 7 then
return -1
# return -1
endi
#endi
if $data12 != 7 then
#if $data11 != 8 then
return -1
# return -1
endi
#endi
if $data13 != 59 then
#if $data12 != 8 then
print expect 59, actual: $data03
# return -1
return -1
#endi
endi
#if $data13 != NULL then
if $data14 != 7 then
# return -1
return -1
#endi
endi
sql select t1,t1,count(*),t1,t1 from lr_stb0 where ts>'2018-09-24 00:00:00.000' and ts<'2018-09-25 00:00:00.000' partition by t1 interval(1h) fill(NULL) limit 9
sql select t1,t1,count(*),t1,t1 from lr_stb0 where ts>'2018-09-24 00:00:00.000' and ts<'2018-09-25 00:00:00.000' partition by t1 interval(1h) fill(NULL) limit 9