diff --git a/tests/script/general/parser/col_arithmetic_operation.sim b/tests/script/general/parser/col_arithmetic_operation.sim index 4977e906d72e845a668a3c17d6d093bface66826..3208df95e446f5f06494617fa33a71a5f09ab828 100644 --- a/tests/script/general/parser/col_arithmetic_operation.sim +++ b/tests/script/general/parser/col_arithmetic_operation.sim @@ -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