[TD-225] update sim.

This commit is contained in:
Haojun Liao 2020-11-24 18:04:15 +08:00
parent 41049dba72
commit 32138695c6
1 changed files with 12 additions and 3 deletions

View File

@ -532,10 +532,19 @@ if $rows != 0 then
return -1
endi
# slimit/soffset not suport for normal table query. [d.11]===============================================================
sql_error select sum(c1) from $stb slimit 1 soffset 19;
sql select apercentile(c4, 21) / sum(c4) from $stb interval(1s) limit 1 offset 1;
if $rows != 1 then
return -1
endi
sql select sum(c1) from $stb interval(1s) group by tbname slimit 1 soffset 1;
# slimit/soffset not support for normal table query. [d.11]===============================================================
sql select sum(c1) from $stb slimit 1 soffset 19;
if $rows != 0 then
return -1
endi
sql select sum(c1) from $stb interval(1s) group by tbname slimit 1 soffset 1
sql select sum(c1) from ca_stb0 interval(1s) group by tbname slimit 2 soffset 4 limit 10 offset 1
# fill [d.12]===============================================================
sql_error select first(c1)-last(c1), sum(c3)*count(c3), spread(c5 ) % count(*) from $stb interval(1s) fill(prev);