Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
efd2eddf
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
提交
efd2eddf
编写于
12月 13, 2021
作者:
S
shenglian zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify test case of string function concat
上级
a2767f62
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
30 addition
and
29 deletion
+30
-29
tests/script/general/compute/str_concat.sim
tests/script/general/compute/str_concat.sim
+4
-0
tests/script/general/compute/str_concat2.sim
tests/script/general/compute/str_concat2.sim
+10
-13
tests/script/general/compute/str_concat_ws2.sim
tests/script/general/compute/str_concat_ws2.sim
+16
-16
未找到文件。
tests/script/general/compute/str_concat.sim
浏览文件 @
efd2eddf
...
...
@@ -2,6 +2,7 @@ sleep 100
sql connect
sql use db
$emptyString = @@
print execute sql select concat(c8,*) from tb1;
sql_error select concat(c8,*) from tb1;
print execute sql select concat(c8,*) from tb1;
...
...
@@ -493,6 +494,9 @@ endi
if $data60 != @678@ then
return -1
endi
if $data61 != $emptyString then
return -1
endi
if $data62 != @678@ then
return -1
endi
...
...
tests/script/general/compute/str_concat2.sim
浏览文件 @
efd2eddf
...
...
@@ -2,6 +2,7 @@ sleep 100
sql connect
sql use db
$emptyString = @@
print execute sql select concat(stb1.c8,stb1.c14),pow(stba.c2,stba.c5) from stb1,stba where stb1.t1=stba.t1 and stb1.ts=stba.ts;
sql select concat(stb1.c8,stb1.c14),pow(stba.c2,stba.c5) from stb1,stba where stb1.t1=stba.t1 and stb1.ts=stba.ts;
if $data00 != @1231@ then
...
...
@@ -132,51 +133,47 @@ if $data00 != @c8135@ then
endi
print execute sql select concat('c8',cast(avg(c2) as binary(10))) from tba1;
sql select concat('c8',cast(avg(c2) as binary(10))) from tba1;
if $data00 != @c84.50@ then
if $data00 != @c84.50
0000
@ then
return -1
endi
print execute sql select concat('c8',cast(percentile(c2, 10) as binary(10))) from tba1;
sql select concat('c8',cast(percentile(c2, 10) as binary(10))) from tba1;
if $data00 != @c80.90@ then
if $data00 != @c80.90
0000
@ then
return -1
endi
print execute sql select concat('c8',cast(apercentile(c2, 10) as binary(10))) from tba1;
sql select concat('c8',cast(apercentile(c2, 10) as binary(10))) from tba1;
if $data00 != @c80.00@ then
if $data00 != @c80.00
0000
@ then
return -1
endi
print execute sql select concat('c8',cast(stddev(c2) as binary(10))) from tba1;
sql select concat('c8',cast(stddev(c2) as binary(10))) from tba1;
if $data00 != @c82.87@ then
if $data00 != @c82.87
2281
@ then
return -1
endi
print execute sql select concat('c8',cast(spread(c2) as binary(10))) from tba1;
sql select concat('c8',cast(spread(c2) as binary(10))) from tba1;
if $data00 != @c89.00@ then
if $data00 != @c89.00
0000
@ then
return -1
endi
print execute sql select concat('c8',cast(twa(c2) as binary(10))) from tba1;
sql select concat('c8',cast(twa(c2) as binary(10))) from tba1;
if $data00 != @c84.63@ then
if $data00 != @c84.63
7931
@ then
return -1
endi
print execute sql #select concat('c8',cast(interp(c2) as binary(10))) from tba1 every(1s)
sql_error #select concat('c8',cast(interp(c2) as binary(10))) from tba1 every(1s)
print execute sql #select concat('c8',cast(interp(c2) as binary(10))) from stba every(1s) group by tbname;
sql_error #select concat('c8',cast(interp(c2) as binary(10))) from stba every(1s) group by tbname;
print execute sql select concat('c8',cast(elapsed(ts) as binary(10))) from tba1;
sql select concat('c8',cast(elapsed(ts) as binary(10))) from tba1;
if $data00 != @c82900@ then
if $data00 != @c82900
0.0000
@ then
return -1
endi
print execute sql select concat('c8',cast(rate(c2) as binary(10))) from tba1;
sql select concat('c8',cast(rate(c2) as binary(10))) from tba1;
if $data00 != @c80.89@ then
if $data00 != @c80.89
6552
@ then
return -1
endi
print execute sql select concat('c8',cast(irate(c2) as binary(10))) from tba1;
sql select concat('c8',cast(irate(c2) as binary(10))) from tba1;
if $data00 != @c80.00@ then
if $data00 != @c80.00
0000
@ then
return -1
endi
print execute sql select concat('c8',cast(first(c2) as binary(10))) from tba1;
...
...
tests/script/general/compute/str_concat_ws2.sim
浏览文件 @
efd2eddf
...
...
@@ -113,82 +113,82 @@ if $data90 != @000sepa0@ then
endi
print execute sql select concat_ws('sepa','c8',cast(min(c2) as binary(10))) from tba1;
sql select concat_ws('sepa','c8',cast(min(c2) as binary(10))) from tba1;
if $data00 != @c8sepa@ then
if $data00 != @c8sepa
0
@ then
return -1
endi
print execute sql select concat_ws('sepa','c8',cast(max(c2) as binary(10))) from tba1;
sql select concat_ws('sepa','c8',cast(max(c2) as binary(10))) from tba1;
if $data00 != @c8sepa@ then
if $data00 != @c8sepa
9
@ then
return -1
endi
print execute sql select concat_ws('sepa','c8',cast(count(c2) as binary(10))) from tba1;
sql select concat_ws('sepa','c8',cast(count(c2) as binary(10))) from tba1;
if $data00 != @c8sepa@ then
if $data00 != @c8sepa
30
@ then
return -1
endi
print execute sql select concat_ws('sepa','c8',cast(sum(c2) as binary(10))) from tba1;
sql select concat_ws('sepa','c8',cast(sum(c2) as binary(10))) from tba1;
if $data00 != @c8sepa@ then
if $data00 != @c8sepa
135
@ then
return -1
endi
print execute sql select concat_ws('sepa','c8',cast(avg(c2) as binary(10))) from tba1;
sql select concat_ws('sepa','c8',cast(avg(c2) as binary(10))) from tba1;
if $data00 != @c8sepa@ then
if $data00 != @c8sepa
4.500000
@ then
return -1
endi
print execute sql select concat_ws('sepa','c8',cast(percentile(c2, 10) as binary(10))) from tba1;
sql select concat_ws('sepa','c8',cast(percentile(c2, 10) as binary(10))) from tba1;
if $data00 != @c8sepa@ then
if $data00 != @c8sepa
0.900000
@ then
return -1
endi
print execute sql select concat_ws('sepa','c8',cast(apercentile(c2, 10) as binary(10))) from tba1;
sql select concat_ws('sepa','c8',cast(apercentile(c2, 10) as binary(10))) from tba1;
if $data00 != @c8sepa@ then
if $data00 != @c8sepa
0.000000
@ then
return -1
endi
print execute sql select concat_ws('sepa','c8',cast(stddev(c2) as binary(10))) from tba1;
sql select concat_ws('sepa','c8',cast(stddev(c2) as binary(10))) from tba1;
if $data00 != @c8sepa@ then
if $data00 != @c8sepa
2.872281
@ then
return -1
endi
print execute sql select concat_ws('sepa','c8',cast(spread(c2) as binary(10))) from tba1;
sql select concat_ws('sepa','c8',cast(spread(c2) as binary(10))) from tba1;
if $data00 != @c8sepa@ then
if $data00 != @c8sepa
9.000000
@ then
return -1
endi
print execute sql select concat_ws('sepa','c8',cast(twa(c2) as binary(10))) from tba1;
sql select concat_ws('sepa','c8',cast(twa(c2) as binary(10))) from tba1;
if $data00 != @c8sepa@ then
if $data00 != @c8sepa
4.637931
@ then
return -1
endi
print execute sql select concat_ws('sepa','c8',cast(elapsed(ts) as binary(10))) from tba1;
sql select concat_ws('sepa','c8',cast(elapsed(ts) as binary(10))) from tba1;
if $data00 != @c8sepa@ then
if $data00 != @c8sepa
29000.0000
@ then
return -1
endi
print execute sql select concat_ws('sepa','c8',cast(rate(c2) as binary(10))) from tba1;
sql select concat_ws('sepa','c8',cast(rate(c2) as binary(10))) from tba1;
if $data00 != @c8sepa@ then
if $data00 != @c8sepa
0.896552
@ then
return -1
endi
print execute sql select concat_ws('sepa','c8',cast(irate(c2) as binary(10))) from tba1;
sql select concat_ws('sepa','c8',cast(irate(c2) as binary(10))) from tba1;
if $data00 != @c8sepa@ then
if $data00 != @c8sepa
0.000000
@ then
return -1
endi
print execute sql select concat_ws('sepa','c8',cast(first(c2) as binary(10))) from tba1;
sql select concat_ws('sepa','c8',cast(first(c2) as binary(10))) from tba1;
if $data00 != @c8sepa@ then
if $data00 != @c8sepa
1
@ then
return -1
endi
print execute sql select concat_ws('sepa','c8',cast(last(c2) as binary(10))) from tba1;
sql select concat_ws('sepa','c8',cast(last(c2) as binary(10))) from tba1;
if $data00 != @c8sepa@ then
if $data00 != @c8sepa
0
@ then
return -1
endi
print execute sql select concat_ws('sepa','c8',cast(last_row(c2) as binary(10))) from tba1;
sql select concat_ws('sepa','c8',cast(last_row(c2) as binary(10))) from tba1;
if $data00 != @c8sepa@ then
if $data00 != @c8sepa
0
@ then
return -1
endi
print execute sql select concat_ws('sepa','c8',cast(top(c2, 1) as binary(10))) from tba1;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录