Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
1ad7827f
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1184
Star
22015
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1ad7827f
编写于
10月 16, 2020
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TD-1530
上级
a04dff12
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
30 addition
and
18 deletion
+30
-18
tests/script/general/insert/query_block1_memory.sim
tests/script/general/insert/query_block1_memory.sim
+16
-11
tests/script/general/parser/where.sim
tests/script/general/parser/where.sim
+6
-4
tests/script/general/stream/table_n.sim
tests/script/general/stream/table_n.sim
+2
-0
tests/script/unique/cluster/vgroup100.sim
tests/script/unique/cluster/vgroup100.sim
+6
-3
未找到文件。
tests/script/general/insert/query_block1_memory.sim
浏览文件 @
1ad7827f
...
...
@@ -30,9 +30,12 @@ print =============== step 1
$x = $N
$y = $N / 2
while $x > $y
$y = $x * 60000
$ms = 1601481600000 - $y
$ms = $x . m
$xt = - . $x
sql insert into $tb values (
now -
$ms , -$x )
sql insert into $tb values ($ms , -$x )
$x = $x - 1
endw
...
...
@@ -45,8 +48,10 @@ endi
$x = $N / 2
$y = $N
while $x < $y
$ms = $x . m
sql insert into $tb values (now + $ms , $x )
$y = $x * 60000
$ms = 1601481600000 + $y
sql insert into $tb values ($ms , $x )
$x = $x + 1
endw
sql select * from $tb
...
...
@@ -60,14 +65,14 @@ print =============== step 2
$N1 = $N + 1
$result1 = $N / 2
$result2 = $N
$step = $N1
. m
$start1 =
now- .
$step
$start2 =
now
$start3 =
now+ .
$step
$end1 =
now- .
$step
$end2 =
now
$end3 =
now+ .
$step
$step = $N1
* 60000
$start1 =
1601481600000 -
$step
$start2 =
1601481600000
$start3 =
1601481600000 +
$step
$end1 =
1601481600000 -
$step
$end2 =
1601481600000
$end3 =
1601481600000 +
$step
sql select * from $tb where ts < $start1 and ts > $end1
if $rows != 0 then
...
...
tests/script/general/parser/where.sim
浏览文件 @
1ad7827f
...
...
@@ -33,7 +33,8 @@ while $i < $tbNum
$x = 0
while $x < $rowNum
$ms = $x . m
$y = $x * 60000
$ms = 1600099200000 + $y
$c = $x / 100
$c = $c * 100
$c = $x - $c
...
...
@@ -41,7 +42,7 @@ while $i < $tbNum
$binary = $binary . '
$nchar = 'nchar . $c
$nchar = $nchar . '
sql insert into $tb values (
now +
$ms , $c , $c , $c , $c , $c , $c , $c , $binary , $nchar )
sql insert into $tb values ($ms , $c , $c , $c , $c , $c , $c , $c , $binary , $nchar )
$x = $x + 1
endw
...
...
@@ -299,7 +300,8 @@ while $i < 1
$x = 0
while $x < 10000
$ms = $x . m
$y = $x * 60000
$ms = 1601481600000 + $y
$c = $x / 100
$c = $c * 100
$c = $x - $c
...
...
@@ -307,7 +309,7 @@ while $i < 1
$binary = $binary . '
$nchar = 'nchar . $c
$nchar = $nchar . '
sql insert into $tb values (
now +
$ms , null , null , null , null , null , null , null , null , null )
sql insert into $tb values ($ms , null , null , null , null , null , null , null , null , null )
$x = $x + 1
endw
...
...
tests/script/general/stream/table_n.sim
浏览文件 @
1ad7827f
...
...
@@ -289,3 +289,5 @@ endi
if $data09 != 20 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/cluster/vgroup100.sim
浏览文件 @
1ad7827f
...
...
@@ -29,6 +29,9 @@ system sh/exec.sh -n dnode3 -s start
sleep 3000
$maxNum = 102
$maxNum = 12
$x = 0
show2:
$x = $x + 1
...
...
@@ -58,7 +61,7 @@ endi
print ============================== step3
$count = 2
while $count <
102
while $count <
$maxNum
$db = d . $count
$tb = $db . .t
$tb2 = $db . .t2
...
...
@@ -73,7 +76,7 @@ endw
print ============================== step4
$count = 2
while $count <
102
while $count <
$maxNum
$db = d . $count
$tb = $db . .t
sql select * from $tb
...
...
@@ -131,7 +134,7 @@ show8:
endi
$count = 2
while $count <
102
while $count <
$maxNum
$db = d . $count
$tb = $db . .t
sql select * from $tb
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录