Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
7d1c2fdb
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22017
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
7d1c2fdb
编写于
7月 14, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test: restore some 2.0 case
上级
dc4e5e61
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
155 addition
and
168 deletion
+155
-168
tests/script/jenkins/basic.txt
tests/script/jenkins/basic.txt
+12
-12
tests/script/tsim/compute/avg.sim
tests/script/tsim/compute/avg.sim
+9
-9
tests/script/tsim/compute/bottom.sim
tests/script/tsim/compute/bottom.sim
+12
-14
tests/script/tsim/compute/count.sim
tests/script/tsim/compute/count.sim
+13
-16
tests/script/tsim/compute/diff.sim
tests/script/tsim/compute/diff.sim
+8
-8
tests/script/tsim/compute/diff2.sim
tests/script/tsim/compute/diff2.sim
+35
-35
tests/script/tsim/compute/first.sim
tests/script/tsim/compute/first.sim
+13
-15
tests/script/tsim/compute/interval.sim
tests/script/tsim/compute/interval.sim
+16
-16
tests/script/tsim/compute/last.sim
tests/script/tsim/compute/last.sim
+13
-13
tests/script/tsim/compute/last_row.sim
tests/script/tsim/compute/last_row.sim
+1
-4
tests/script/tsim/compute/leastsquare.sim
tests/script/tsim/compute/leastsquare.sim
+6
-8
tests/script/tsim/compute/max.sim
tests/script/tsim/compute/max.sim
+13
-15
tests/script/tsim/compute/null.sim
tests/script/tsim/compute/null.sim
+4
-3
未找到文件。
tests/script/jenkins/basic.txt
浏览文件 @
7d1c2fdb
...
...
@@ -236,23 +236,23 @@
./test.sh -f tsim/compress/uncompress.sim
# ---- compute
#
./test.sh -f tsim/compute/avg.sim
./test.sh -f tsim/compute/avg.sim
#./test.sh -f tsim/compute/block_dist.sim
#
./test.sh -f tsim/compute/bottom.sim
#
./test.sh -f tsim/compute/count.sim
#
./test.sh -f tsim/compute/diff.sim
#
./test.sh -f tsim/compute/diff2.sim
#
./test.sh -f tsim/compute/first.sim
#
./test.sh -f tsim/compute/interval.sim
./test.sh -f tsim/compute/bottom.sim
./test.sh -f tsim/compute/count.sim
./test.sh -f tsim/compute/diff.sim
./test.sh -f tsim/compute/diff2.sim
./test.sh -f tsim/compute/first.sim
./test.sh -f tsim/compute/interval.sim
#./test.sh -f tsim/compute/last_row.sim
#
./test.sh -f tsim/compute/last.sim
#
./test.sh -f tsim/compute/leastsquare.sim
#
./test.sh -f tsim/compute/max.sim
#
./test.sh -f tsim/compute/min.sim
./test.sh -f tsim/compute/last.sim
./test.sh -f tsim/compute/leastsquare.sim
./test.sh -f tsim/compute/max.sim
./test.sh -f tsim/compute/min.sim
#./test.sh -f tsim/compute/null.sim
./test.sh -f tsim/compute/percentile.sim
./test.sh -f tsim/compute/stddev.sim
#
./test.sh -f tsim/compute/sum.sim
./test.sh -f tsim/compute/sum.sim
./test.sh -f tsim/compute/top.sim
# ---- field
...
...
tests/script/tsim/compute/avg.sim
浏览文件 @
7d1c2fdb
...
...
@@ -69,13 +69,13 @@ endi
print =============== step5
sql select avg(tbcol) as b from $tb interval(1m)
print ===> $data01
if $data1
1
!= 1.000000000 then
if $data1
0
!= 1.000000000 then
return -1
endi
sql select avg(tbcol) as b from $tb interval(1d)
print ===> $data01
if $data0
1
!= 9.500000000 then
if $data0
0
!= 9.500000000 then
return -1
endi
...
...
@@ -84,7 +84,7 @@ $cc = 4 * 60000
$ms = 1601481600000 + $cc
sql select avg(tbcol) as b from $tb where ts <= $ms interval(1m)
print ===> $data01
if $data4
1
!= 4.000000000 then
if $data4
0
!= 4.000000000 then
return -1
endi
if $rows != 5 then
...
...
@@ -123,14 +123,14 @@ endi
print =============== step9
sql select avg(tbcol) as b from $mt interval(1m)
print ===> $data1
1
if $data1
1
!= 1.000000000 then
print ===> $data1
0
if $data1
0
!= 1.000000000 then
return -1
endi
sql select avg(tbcol) as b from $mt interval(1d)
print ===> $data01
if $data0
1
!= 9.500000000 then
if $data0
0
!= 9.500000000 then
return -1
endi
...
...
@@ -148,9 +148,9 @@ endi
print =============== step11
$cc = 4 * 60000
$ms = 1601481600000 + $cc
sql select avg(tbcol) as b from $mt where ts <= $ms
interval(1m) group by tgcol
print ===> $data1
1
if $data1
1
!= 1.000000000 then
sql select avg(tbcol) as b from $mt where ts <= $ms
partition by tgcol interval(1m)
print ===> $data1
0
if $data1
0
!= 1.000000000 then
return -1
endi
if $rows != 50 then
...
...
tests/script/tsim/compute/bottom.sim
浏览文件 @
7d1c2fdb
...
...
@@ -38,15 +38,13 @@ while $i < $tbNum
$i = $i + 1
endw
sleep 100
print =============== step2
$i = 1
$tb = $tbPrefix . $i
sql select bottom(tbcol, 1) from $tb
print ===> $data0
1
if $data0
1
!= 0 then
print ===> $data0
0
if $data0
0
!= 0 then
return -1
endi
...
...
@@ -54,25 +52,25 @@ print =============== step3
$cc = 4 * 60000
$ms = 1601481600000 + $cc
sql select bottom(tbcol, 1) from $tb where ts > $ms
print ===> $data0
1
if $data0
1
!= 5 then
print ===> $data0
0
if $data0
0
!= 5 then
return -1
endi
print =============== step4
sql select bottom(tbcol, 1) as b from $tb
print ===> $data0
1
if $data0
1
!= 0 then
print ===> $data0
0
if $data0
0
!= 0 then
return -1
endi
print =============== step5
sql select bottom(tbcol, 2) as b from $tb
print ===> $data0
1 $data11
if $data0
1 != 0
then
print ===> $data0
0 $data10
if $data0
0 != 1
then
return -1
endi
if $data1
1 != 1
then
if $data1
0 != 0
then
return -1
endi
...
...
@@ -80,11 +78,11 @@ print =============== step6
$cc = 4 * 60000
$ms = 1601481600000 + $cc
sql select bottom(tbcol, 2) as b from $tb where ts > $ms
print ===> $data0
1 $data11
if $data0
1 != 5
then
print ===> $data0
0 $data10
if $data0
0 != 6
then
return -1
endi
if $data1
1 != 6
then
if $data1
0 != 5
then
return -1
endi
...
...
tests/script/tsim/compute/count.sim
浏览文件 @
7d1c2fdb
...
...
@@ -38,13 +38,10 @@ while $i < $tbNum
$i = $i + 1
endw
sleep 100
print =============== step2
$i = 1
$tb = $tbPrefix . $i
sql select count(*) from $tb
print ===> select count(*) from $tb => $data00
if $data00 != $rowNum then
...
...
@@ -81,14 +78,14 @@ endi
print =============== step5
sql select count(tbcol) as b from $tb interval(1m)
print ===> $data0
1
if $data0
1
!= 1 then
print ===> $data0
0
if $data0
0
!= 1 then
return -1
endi
sql select count(tbcol) as b from $tb interval(1d)
print ===> $data0
1
if $data0
1
!= $rowNum then
print ===> $data0
0
if $data0
0
!= $rowNum then
return -1
endi
...
...
@@ -96,8 +93,8 @@ print =============== step6
$cc = 4 * 60000
$ms = 1601481600000 + $cc
sql select count(tbcol) as b from $tb where ts <= $ms interval(1m)
print ===> $data0
1
if $data0
1
!= 1 then
print ===> $data0
0
if $data0
0
!= 1 then
return -1
endi
if $rows != 5 then
...
...
@@ -149,17 +146,17 @@ endi
print =============== step9
sql select count(tbcol) as b from $mt interval(1m)
print ===> $data0
1
if $data0
1
!= 10 then
print ===> $data0
0
if $data0
0
!= 10 then
return -1
endi
if $data1
1
!= 10 then
if $data1
0
!= 10 then
return -1
endi
sql select count(tbcol) as b from $mt interval(1d)
print ===> $data0
1
if $data0
1
!= 200 then
print ===> $data0
0
if $data0
0
!= 200 then
return -1
endi
...
...
@@ -177,9 +174,9 @@ endi
print =============== step11
$cc = 4 * 60000
$ms = 1601481600000 + $cc
sql select count(tbcol) as b from $mt where ts <= $ms
interval(1m) group by tgcol
sql select count(tbcol) as b from $mt where ts <= $ms
partition by tgcol interval(1m)
print ===> $data01
if $data0
1
!= 1 then
if $data0
0
!= 1 then
return -1
endi
if $rows != 50 then
...
...
tests/script/tsim/compute/diff.sim
浏览文件 @
7d1c2fdb
...
...
@@ -44,8 +44,8 @@ $i = 1
$tb = $tbPrefix . $i
sql select diff(tbcol) from $tb
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
...
...
@@ -53,23 +53,23 @@ print =============== step3
$cc = 4 * 60000
$ms = 1601481600000 + $cc
sql select diff(tbcol) from $tb where ts > $ms
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
$cc = 4 * 60000
$ms = 1601481600000 + $cc
sql select diff(tbcol) from $tb where ts <= $ms
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
print =============== step4
sql select diff(tbcol) as b from $tb
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
...
...
tests/script/tsim/compute/diff2.sim
浏览文件 @
7d1c2fdb
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c debugflag -v 131
system sh/exec.sh -n dnode1 -s start
sql connect
...
...
@@ -39,91 +40,90 @@ while $i < $tbNum
$i = $i + 1
endw
sleep 100
print =============== step2
$i = 1
$tb = $tbPrefix . $i
sql select diff(c1) from $tb
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
sql select diff(c2) from $tb
print ===> $data1
1
if $data1
1 != 1.
00000 then
print ===> $data1
0
if $data1
0 != 1.0000
00000 then
return -1
endi
sql select diff(c3) from $tb
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
sql select diff(c4) from $tb
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
sql select diff(c5) from $tb
print ===> $data1
1
if $data1
1
!= 0 then
print ===> $data1
0
if $data1
0
!= 0 then
return -1
endi
sql select diff(c6) from $tb
print ===> $data1
1
if $data1
1
!= 1.000000000 then
print ===> $data1
0
if $data1
0
!= 1.000000000 then
return -1
endi
sql_error select diff(c7) from $tb
sql select diff(c7) from $tb
sql_error select diff(c8) from $tb
sql_error select diff(c9) from $tb
sql_error select diff(ts) from $tb
sql_error select diff(c1), diff(c2) from $tb
#sql_error select 2+diff(c1) from $tb
sql_error select diff(c1+2) from $tb
sql select 2+diff(c1) from $tb
sql select diff(c1+2) from $tb
sql_error select diff(c1) from $tb where ts > 0 and ts < now + 100m interval(10m)
sql
_error
select diff(c1) from $mt
sql select diff(c1) from $mt
sql_error select diff(diff(c1)) from $tb
sql_error select diff(c1) from m_di_tb1 where c2 like '2%'
print =============== step3
sql select diff(c1) from $tb where c1 > 5
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
sql select diff(c2) from $tb where c2 > 5
print ===> $data1
1
if $data1
1 != 1.
00000 then
print ===> $data1
0
if $data1
0 != 1.0000
00000 then
return -1
endi
sql select diff(c3) from $tb where c3 > 5
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
sql select diff(c4) from $tb where c4 > 5
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
sql select diff(c5) from $tb where c5 > 5
print ===> $data1
1
if $data1
1
!= 0 then
print ===> $data1
0
if $data1
0
!= 0 then
return -1
endi
sql select diff(c6) from $tb where c6 > 5
print ===> $data1
1
if $data1
1
!= 1.000000000 then
print ===> $data1
0
if $data1
0
!= 1.000000000 then
return -1
endi
print =============== step4
sql select diff(c1) from $tb where c1 > 5 and c2 < $rowNum
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
...
...
@@ -131,8 +131,8 @@ sql select diff(c1) from $tb where c9 like '%9' and c1 <= 20
if $rows != 1 then
return -1
endi
print ===> $data1
1
if $data0
1
!= 10 then
print ===> $data1
0
if $data0
0
!= 10 then
return -1
endi
...
...
tests/script/tsim/compute/first.sim
浏览文件 @
7d1c2fdb
...
...
@@ -38,8 +38,6 @@ while $i < $tbNum
$i = $i + 1
endw
sleep 100
print =============== step2
$i = 1
$tb = $tbPrefix . $i
...
...
@@ -68,14 +66,14 @@ endi
print =============== step5
sql select first(tbcol) as b from $tb interval(1m)
print ===> $data0
1
if $data0
1
!= 0 then
print ===> $data0
0
if $data0
0
!= 0 then
return -1
endi
sql select first(tbcol) as b from $tb interval(1d)
print ===> $data0
1
if $data0
1
!= 0 then
print ===> $data0
0
if $data0
0
!= 0 then
return -1
endi
...
...
@@ -83,8 +81,8 @@ print =============== step6
$cc = 4 * 60000
$ms = 1601481600000 + $cc
sql select first(tbcol) as b from $tb where ts <= $ms interval(1m)
print ===> $data0
1
if $data4
1
!= 4 then
print ===> $data0
0
if $data4
0
!= 4 then
return -1
endi
if $rows != 5 then
...
...
@@ -124,14 +122,14 @@ endi
print =============== step9
sql select first(tbcol) as b from $mt interval(1m)
print select first(tbcol) as b from $mt interval(1m)
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
sql select first(tbcol) as b from $mt interval(1d)
print ===> $data0
1
if $data0
1
!= 0 then
print ===> $data0
0
if $data0
0
!= 0 then
return -1
endi
...
...
@@ -149,9 +147,9 @@ endi
print =============== step11
$cc = 4 * 60000
$ms = 1601481600000 + $cc
sql select first(tbcol) as b from $mt where ts <= $ms
interval(1m) group by tgcol
print ===> $data1
1
if $data1
1
!= 1 then
sql select first(tbcol) as b from $mt where ts <= $ms
partition by tgcol interval(1m)
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
print ===> $rows
...
...
tests/script/tsim/compute/interval.sim
浏览文件 @
7d1c2fdb
...
...
@@ -47,10 +47,10 @@ print ===> $rows
if $rows < $rowNum then
return -1
endi
if $data0
1
!= 1 then
if $data0
0
!= 1 then
return -1
endi
if $data0
5
!= 1 then
if $data0
4
!= 1 then
return -1
endi
...
...
@@ -65,10 +65,10 @@ endi
if $rows < 3 then
return -1
endi
if $data0
1
!= 1 then
if $data0
0
!= 1 then
return -1
endi
if $data0
5
!= 1 then
if $data0
4
!= 1 then
return -1
endi
...
...
@@ -87,10 +87,10 @@ endi
if $rows > 22 then
return -1
endi
if $data0
1
!= 1 then
if $data0
0
!= 1 then
return -1
endi
if $data0
5
!= 1 then
if $data0
4
!= 1 then
return -1
endi
...
...
@@ -109,10 +109,10 @@ endi
if $rows > 50 then
return -1
endi
if $data2
1
!= 1 then
if $data2
0
!= 1 then
return -1
endi
if $data2
5
!= 1 then
if $data2
4
!= 1 then
return -1
endi
...
...
@@ -125,10 +125,10 @@ endi
if $rows > 22 then
return -1
endi
if $data1
1
> 15 then
if $data1
0
> 15 then
return -1
endi
if $data1
1
< 5 then
if $data1
0
< 5 then
return -1
endi
...
...
@@ -143,10 +143,10 @@ endi
if $rows > 7 then
return -1
endi
if $data1
1
> 15 then
if $data1
0
> 15 then
return -1
endi
if $data1
1
< 5 then
if $data1
0
< 5 then
return -1
endi
...
...
@@ -165,10 +165,10 @@ endi
if $rows > 22 then
return -1
endi
if $data1
1
> 15 then
if $data1
0
> 15 then
return -1
endi
if $data1
1
< 5 then
if $data1
0
< 5 then
return -1
endi
...
...
@@ -186,10 +186,10 @@ endi
if $rows > 50 then
return -1
endi
if $data1
1
> 15 then
if $data1
0
> 15 then
return -1
endi
if $data1
1
< 5 then
if $data1
0
< 5 then
return -1
endi
...
...
tests/script/tsim/compute/last.sim
浏览文件 @
7d1c2fdb
...
...
@@ -69,14 +69,14 @@ endi
print =============== step5
sql select last(tbcol) as b from $tb interval(1m)
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
sql select last(tbcol) as b from $tb interval(1d)
print ===> $data0
1
if $data0
1
!= 19 then
print ===> $data0
0
if $data0
0
!= 19 then
return -1
endi
...
...
@@ -85,8 +85,8 @@ $cc = 4 * 60000
$ms = 1601481600000 + $cc
sql select last(tbcol) as b from $tb where ts <= $ms interval(1m)
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
if $rows != 5 then
...
...
@@ -127,14 +127,14 @@ endi
print =============== step9
sql select last(tbcol) as b from $mt interval(1m)
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
sql select last(tbcol) as b from $mt interval(1d)
print ===> $data0
1
if $data0
1
!= 19 then
print ===> $data0
0
if $data0
0
!= 19 then
return -1
endi
...
...
@@ -153,9 +153,9 @@ print =============== step11
$cc = 4 * 60000
$ms = 1601481600000 + $cc
sql select last(tbcol) as b from $mt where ts <= $ms
interval(1m) group by tgcol
print ===> $data1
1
if $data1
1
!= 1 then
sql select last(tbcol) as b from $mt where ts <= $ms
partition by tgcol interval(1m)
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
print ===> $rows
...
...
tests/script/tsim/compute/last_row.sim
浏览文件 @
7d1c2fdb
...
...
@@ -38,8 +38,6 @@ while $i < $tbNum
$i = $i + 1
endw
sleep 100
print =============== step2
$i = 1
$tb = $tbPrefix . $i
...
...
@@ -53,6 +51,7 @@ endi
print =============== step3
$cc = 4 * 60000
$ms = 1601481600000 + $cc
print select last_row(tbcol) from $tb where ts <= $ms
sql select last_row(tbcol) from $tb where ts <= $ms
print ===> $data00
if $data00 != 4 then
...
...
@@ -98,8 +97,6 @@ if $data00 != 4 then
return -1
endi
print =============== step10
sql select last_row(tbcol) as b from $mt group by tgcol
print ===> $data00
...
...
tests/script/tsim/compute/leastsquare.sim
浏览文件 @
7d1c2fdb
...
...
@@ -37,8 +37,6 @@ while $i < $tbNum
$i = $i + 1
endw
sleep 100
print =============== step2
$i = 1
$tb = $tbPrefix . $i
...
...
@@ -65,21 +63,21 @@ endi
print =============== step5
sql select leastsquares(tbcol, 1, 1) as b from $tb interval(1m)
print ===> $data0
1
if $data0
1
!= @{slop:1.000000, intercept:1.000000}@ then
print ===> $data0
0
if $data0
0
!= @{slop:1.000000, intercept:1.000000}@ then
return -1
endi
sql select leastsquares(tbcol, 1, 1) as b from $tb interval(1d)
print ===> $data0
1
if $data0
1
!= @{slop:1.000000, intercept:1.000000}@ then
print ===> $data0
0
if $data0
0
!= @{slop:1.000000, intercept:1.000000}@ then
return -1
endi
print =============== step6
sql select leastsquares(tbcol, 1, 1) as b from $tb where ts < now + 4m interval(1m)
print ===> $data0
1
if $data0
1
!= @{slop:1.000000, intercept:1.000000}@ then
print ===> $data0
0
if $data0
0
!= @{slop:1.000000, intercept:1.000000}@ then
return -1
endi
print ===> $rows
...
...
tests/script/tsim/compute/max.sim
浏览文件 @
7d1c2fdb
...
...
@@ -38,8 +38,6 @@ while $i < $tbNum
$i = $i + 1
endw
sleep 100
print =============== step2
$i = 1
$tb = $tbPrefix . $i
...
...
@@ -69,14 +67,14 @@ endi
print =============== step5
sql select max(tbcol) as b from $tb interval(1m)
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
sql select max(tbcol) as b from $tb interval(1d)
print ===> $data0
1
if $data0
1
!= 19 then
print ===> $data0
0
if $data0
0
!= 19 then
return -1
endi
...
...
@@ -85,8 +83,8 @@ $cc = 4 * 60000
$ms = 1601481600000 + $cc
sql select max(tbcol) as b from $tb where ts <= $ms interval(1m)
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
if $rows != 5 then
...
...
@@ -127,14 +125,14 @@ endi
print =============== step9
sql select max(tbcol) as b from $mt interval(1m)
print ===> $data1
1
if $data1
1
!= 1 then
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
sql select max(tbcol) as b from $mt interval(1d)
print ===> $data0
1
if $data0
1
!= 19 then
print ===> $data0
0
if $data0
0
!= 19 then
return -1
endi
...
...
@@ -153,9 +151,9 @@ print =============== step11
$cc = 4 * 60000
$ms = 1601481600000 + $cc
sql select max(tbcol) as b from $mt where ts <= $ms
interval(1m) group by tgcol
print ===> $data1
1
if $data1
1
!= 1 then
sql select max(tbcol) as b from $mt where ts <= $ms
partition by tgcol interval(1m)
print ===> $data1
0
if $data1
0
!= 1 then
return -1
endi
print ===> $rows
...
...
tests/script/tsim/compute/null.sim
浏览文件 @
7d1c2fdb
...
...
@@ -100,9 +100,10 @@ if $rows != 1 then
return -1
endi
sql_error select * from $tb where tbcol = NULL
return
sql select * from $tb where tbcol = NULL
if $rows != 0 then
return -1
endi
print =============== step5
sql create table tt using $mt tags( NULL )
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录