Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
19554380
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看板
提交
19554380
编写于
3月 24, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/3.0' into feature/shm
上级
2d255d17
2feeccfb
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
60 addition
and
60 deletion
+60
-60
tests/script/tsim/query/interval-offset.sim
tests/script/tsim/query/interval-offset.sim
+60
-60
未找到文件。
tests/script/tsim/query/interval-offset.sim
浏览文件 @
19554380
...
...
@@ -135,33 +135,33 @@ print ===> rows4: $data40 $data41 $data42 $data43 $data44 $data45
print ===> rows5: $data50 $data51 $data52 $data53 $data54 $data55
print ===> rows6: $data60 $data61 $data62 $data63 $data64 $data65
print ===> rows7: $data70 $data71 $data72 $data73 $data74 $data75
if $rows != 8 then
return -1
endi
if $data00 != 1 then
return -1
endi
if $data10 != 2 then
return -1
endi
if $data20 != 2 then
return -1
endi
if $data30 != 2 then
return -1
endi
if $data40 != 2 then
return -1
endi
if $data50 != 2 then
return -1
endi
if $data60 != 2 then
return -1
endi
if $data70 != 1 then
return -1
endi
#
if $rows != 8 then
#
return -1
#
endi
#
if $data00 != 1 then
#
return -1
#
endi
#
if $data10 != 2 then
#
return -1
#
endi
#
if $data20 != 2 then
#
return -1
#
endi
#
if $data30 != 2 then
#
return -1
#
endi
#
if $data40 != 2 then
#
return -1
#
endi
#
if $data50 != 2 then
#
return -1
#
endi
#
if $data60 != 2 then
#
return -1
#
endi
#
if $data70 != 1 then
#
return -1
#
endi
print =============== insert data into child table ct3 (n)
sql insert into ct3 values ( '2021-12-21 01:01:01.000', 1 )
...
...
@@ -182,36 +182,36 @@ print ===> rows1: $data10 $data11 $data12 $data13 $data14
print ===> rows2: $data20 $data21 $data22 $data23 $data24
print ===> rows3: $data30 $data31 $data32 $data33 $data34
print ===> rows4: $data40 $data41 $data42 $data43 $data44
if $rows != 5 then
return -1
endi
if $data00 != 1 then
return -1
endi
if $data40 != 1 then
return -1
endi
sql select count(tbcol), sum(tbcol), max(tbcol), min(tbcol), count(*) from ct
1 interval(10s, 2s) sliding(10s
)
print ===> select count(tbcol), sum(tbcol), max(tbcol), min(tbcol), count(*) from ct
1 interval(10s, 2s) sliding(10s
)
#
if $rows != 5 then
#
return -1
#
endi
#
if $data00 != 1 then
#
return -1
#
endi
#
if $data40 != 1 then
#
return -1
#
endi
sql select count(tbcol), sum(tbcol), max(tbcol), min(tbcol), count(*) from ct
3 interval(1n, 1w) sliding(2w
)
print ===> select count(tbcol), sum(tbcol), max(tbcol), min(tbcol), count(*) from ct
3 interval(1n, 1w) sliding(2w
)
print ===> rows: $rows
print ===> rows0: $data00 $data01 $data02 $data03 $data04
print ===> rows1: $data10 $data11 $data12 $data13 $data14
print ===> rows2: $data20 $data21 $data22 $data23 $data24
print ===> rows3: $data30 $data31 $data32 $data33 $data34
print ===> rows4: $data40 $data41 $data42 $data43 $data44
if $rows != 5 then
return -1
endi
if $data00 != 1 then
return -1
endi
if $data40 != 1 then
return -1
endi
sql select count(tbcol), sum(tbcol), max(tbcol), min(tbcol), count(*) from ct
1 interval(10s, 2s) sliding(5s
)
print ===> select count(tbcol), sum(tbcol), max(tbcol), min(tbcol), count(*) from ct
1 interval(10s, 2s) sliding(5s
)
#
if $rows != 5 then
#
return -1
#
endi
#
if $data00 != 1 then
#
return -1
#
endi
#
if $data40 != 1 then
#
return -1
#
endi
sql select count(tbcol), sum(tbcol), max(tbcol), min(tbcol), count(*) from ct
3 interval(1n, 1w) sliding(4w
)
print ===> select count(tbcol), sum(tbcol), max(tbcol), min(tbcol), count(*) from ct
3 interval(1n, 1w) sliding(4w
)
print ===> rows: $rows
print ===> rows0: $data00 $data01 $data02 $data03 $data04
print ===> rows1: $data10 $data11 $data12 $data13 $data14
...
...
@@ -221,15 +221,15 @@ print ===> rows4: $data40 $data41 $data42 $data43 $data44
print ===> rows5: $data50 $data51 $data52 $data53 $data54
print ===> rows6: $data60 $data61 $data62 $data63 $data64
print ===> rows7: $data70 $data71 $data72 $data73 $data74
if $rows != 8 then
return -1
endi
if $data00 != 2 then
return -1
endi
if $data70 != 1 then
return -1
endi
#
if $rows != 8 then
#
return -1
#
endi
#
if $data00 != 2 then
#
return -1
#
endi
#
if $data70 != 1 then
#
return -1
#
endi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录