Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
0a000b51
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看板
提交
0a000b51
编写于
11月 23, 2021
作者:
S
shenglian zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
enhance test for csum/diff/mavg group by limit test case
上级
48c641a3
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
388 addition
and
0 deletion
+388
-0
tests/script/general/compute/table_group.sim
tests/script/general/compute/table_group.sim
+388
-0
未找到文件。
tests/script/general/compute/table_group.sim
浏览文件 @
0a000b51
...
@@ -2086,6 +2086,394 @@ endi
...
@@ -2086,6 +2086,394 @@ endi
if $data53 != @ct3@ then
if $data53 != @ct3@ then
return -1
return -1
endi
endi
print execute sql select csum(f1),t,tbname from st group by tbname limit 2 offset 9
sql select csum(f1),t,tbname from st group by tbname limit 2 offset 9
if $rows != 6 then
return -1
endi
if $data00 != @20-10-01 00:00:00.541@ then
return -1
endi
if $data01 != @460@ then
return -1
endi
if $data02 != @1@ then
return -1
endi
if $data03 != @ct1@ then
return -1
endi
if $data04 != @ct1@ then
return -1
endi
if $data10 != @20-10-01 00:01:40.001@ then
return -1
endi
if $data11 != @561@ then
return -1
endi
if $data12 != @1@ then
return -1
endi
if $data13 != @ct1@ then
return -1
endi
if $data14 != @ct1@ then
return -1
endi
if $data20 != @20-10-01 00:00:00.542@ then
return -1
endi
if $data21 != @470@ then
return -1
endi
if $data22 != @2@ then
return -1
endi
if $data23 != @ct2@ then
return -1
endi
if $data24 != @ct2@ then
return -1
endi
if $data30 != @20-10-01 00:01:40.002@ then
return -1
endi
if $data31 != @572@ then
return -1
endi
if $data32 != @2@ then
return -1
endi
if $data33 != @ct2@ then
return -1
endi
if $data34 != @ct2@ then
return -1
endi
if $data40 != @20-10-01 00:00:00.543@ then
return -1
endi
if $data41 != @480@ then
return -1
endi
if $data42 != @3@ then
return -1
endi
if $data43 != @ct3@ then
return -1
endi
if $data44 != @ct3@ then
return -1
endi
if $data50 != @20-10-01 00:01:40.003@ then
return -1
endi
if $data51 != @583@ then
return -1
endi
if $data52 != @3@ then
return -1
endi
if $data53 != @ct3@ then
return -1
endi
if $data54 != @ct3@ then
return -1
endi
print execute sql select diff(f1),t,tbname from st group by tbname limit 2 offset 9
sql select diff(f1),t,tbname from st group by tbname limit 2 offset 9
if $rows != 6 then
return -1
endi
if $data00 != @20-10-01 00:01:40.001@ then
return -1
endi
if $data01 != @10@ then
return -1
endi
if $data02 != @1@ then
return -1
endi
if $data03 != @ct1@ then
return -1
endi
if $data04 != @ct1@ then
return -1
endi
if $data10 != @20-10-01 00:01:40.061@ then
return -1
endi
if $data11 != @10@ then
return -1
endi
if $data12 != @1@ then
return -1
endi
if $data13 != @ct1@ then
return -1
endi
if $data14 != @ct1@ then
return -1
endi
if $data20 != @20-10-01 00:01:40.002@ then
return -1
endi
if $data21 != @10@ then
return -1
endi
if $data22 != @2@ then
return -1
endi
if $data23 != @ct2@ then
return -1
endi
if $data24 != @ct2@ then
return -1
endi
if $data30 != @20-10-01 00:01:40.062@ then
return -1
endi
if $data31 != @10@ then
return -1
endi
if $data32 != @2@ then
return -1
endi
if $data33 != @ct2@ then
return -1
endi
if $data34 != @ct2@ then
return -1
endi
if $data40 != @20-10-01 00:01:40.003@ then
return -1
endi
if $data41 != @10@ then
return -1
endi
if $data42 != @3@ then
return -1
endi
if $data43 != @ct3@ then
return -1
endi
if $data44 != @ct3@ then
return -1
endi
if $data50 != @20-10-01 00:01:40.063@ then
return -1
endi
if $data51 != @10@ then
return -1
endi
if $data52 != @3@ then
return -1
endi
if $data53 != @ct3@ then
return -1
endi
if $data54 != @ct3@ then
return -1
endi
print execute sql select derivative(f1, 1s, 0),t,tbname from st group by tbname limit 2 offset 9
sql select derivative(f1, 1s, 0),t,tbname from st group by tbname limit 2 offset 9
if $rows != 6 then
return -1
endi
if $data00 != @20-10-01 00:01:40.001@ then
return -1
endi
if $data01 != @0.100542932@ then
return -1
endi
if $data02 != @1@ then
return -1
endi
if $data03 != @ct1@ then
return -1
endi
if $data04 != @ct1@ then
return -1
endi
if $data10 != @20-10-01 00:01:40.061@ then
return -1
endi
if $data11 != @166.666666667@ then
return -1
endi
if $data12 != @1@ then
return -1
endi
if $data13 != @ct1@ then
return -1
endi
if $data14 != @ct1@ then
return -1
endi
if $data20 != @20-10-01 00:01:40.002@ then
return -1
endi
if $data21 != @0.100542932@ then
return -1
endi
if $data22 != @2@ then
return -1
endi
if $data23 != @ct2@ then
return -1
endi
if $data24 != @ct2@ then
return -1
endi
if $data30 != @20-10-01 00:01:40.062@ then
return -1
endi
if $data31 != @166.666666667@ then
return -1
endi
if $data32 != @2@ then
return -1
endi
if $data33 != @ct2@ then
return -1
endi
if $data34 != @ct2@ then
return -1
endi
if $data40 != @20-10-01 00:01:40.003@ then
return -1
endi
if $data41 != @0.100542932@ then
return -1
endi
if $data42 != @3@ then
return -1
endi
if $data43 != @ct3@ then
return -1
endi
if $data44 != @ct3@ then
return -1
endi
if $data50 != @20-10-01 00:01:40.063@ then
return -1
endi
if $data51 != @166.666666667@ then
return -1
endi
if $data52 != @3@ then
return -1
endi
if $data53 != @ct3@ then
return -1
endi
if $data54 != @ct3@ then
return -1
endi
print execute sql select mavg(f1,2),t,tbname from st group by tbname limit 2 offset 9
sql select mavg(f1,2),t,tbname from st group by tbname limit 2 offset 9
if $rows != 6 then
return -1
endi
if $data00 != @20-10-01 00:01:40.001@ then
return -1
endi
if $data01 != @96.000000000@ then
return -1
endi
if $data02 != @1@ then
return -1
endi
if $data03 != @ct1@ then
return -1
endi
if $data04 != @ct1@ then
return -1
endi
if $data10 != @20-10-01 00:01:40.061@ then
return -1
endi
if $data11 != @106.000000000@ then
return -1
endi
if $data12 != @1@ then
return -1
endi
if $data13 != @ct1@ then
return -1
endi
if $data14 != @ct1@ then
return -1
endi
if $data20 != @20-10-01 00:01:40.002@ then
return -1
endi
if $data21 != @97.000000000@ then
return -1
endi
if $data22 != @2@ then
return -1
endi
if $data23 != @ct2@ then
return -1
endi
if $data24 != @ct2@ then
return -1
endi
if $data30 != @20-10-01 00:01:40.062@ then
return -1
endi
if $data31 != @107.000000000@ then
return -1
endi
if $data32 != @2@ then
return -1
endi
if $data33 != @ct2@ then
return -1
endi
if $data34 != @ct2@ then
return -1
endi
if $data40 != @20-10-01 00:01:40.003@ then
return -1
endi
if $data41 != @98.000000000@ then
return -1
endi
if $data42 != @3@ then
return -1
endi
if $data43 != @ct3@ then
return -1
endi
if $data44 != @ct3@ then
return -1
endi
if $data50 != @20-10-01 00:01:40.063@ then
return -1
endi
if $data51 != @108.000000000@ then
return -1
endi
if $data52 != @3@ then
return -1
endi
if $data53 != @ct3@ then
return -1
endi
if $data54 != @ct3@ then
return -1
endi
print ================================ clear
print ================================ clear
#sql drop database $db
#sql drop database $db
#sql show databases
#sql show databases
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录