提交 84d24478 编写于 作者: H Haojun Liao

[td-1664]

上级 a170da72
......@@ -109,39 +109,42 @@ if $data02 != 225000 then
return -1
endi
sql select first(speed) - last(speed), first(speed) as b, last(speed) as b, min(speed) - max(speed), spread(speed) from stb interval(1y)", NULL);
sql select first(c1) - last(c1), first(c1) as b, last(c1) as b, min(c1) - max(c1), spread(c1) from ca_stb0 interval(1y)
if $rows != 1 then
return -1
endi
if $data00 != @20-01-01 00:00:00.000@ then
if $data00 != @18-01-01 00:00:00.000@ then
return -1
endi
if $data01 != -20.000000000 then
if $data01 != -9.000000000 then
return -1
endi
if $data02 != 100.000000000 then
if $data02 != 0 then
return -1
endi
if $data03 != 120.000000000 then
if $data03 != 9 then
return -1
endi
if $data04 != -20.000000000 then
if $data04 != -9.000000000 then
return -1
endi
if $data05 != 20.000000000 then
if $data05 != 9.000000000 then
return -1
endi
sql_error select first(speed, mileage) - last(speed, mileage) from stb interval(1y)
sql_error select first(c1, c2) - last(c1, c2) from stb interval(1y)
sql_error select first(ts) - last(ts) from stb interval(1y)
sql_error select top(speed, 2) - last(speed) from stb;
sql_error select stddev(speed) - last(speed) from stb;
sql_error select diff(speed) - last(speed) from stb;
sql_error select top(c1, 2) - last(c1) from stb;
sql_error select stddev(c1) - last(c1) from stb;
sql_error select diff(c1) - last(c1) from stb;
sql_error select first(c7) - last(c7) from stb;
sql_error select first(c8) - last(c8) from stb;
sql_error select first(c9) - last(c9) from stb;
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册