Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
f2560fd5
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1193
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f2560fd5
编写于
4月 20, 2023
作者:
L
liuyao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
opt test
上级
d29dcb4b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
26 addition
and
24 deletion
+26
-24
source/libs/executor/src/scanoperator.c
source/libs/executor/src/scanoperator.c
+4
-4
tests/script/tsim/stream/distributeInterval0.sim
tests/script/tsim/stream/distributeInterval0.sim
+22
-20
未找到文件。
source/libs/executor/src/scanoperator.c
浏览文件 @
f2560fd5
...
@@ -2056,10 +2056,10 @@ FETCH_NEXT_BLOCK:
...
@@ -2056,10 +2056,10 @@ FETCH_NEXT_BLOCK:
doClearBufferedBlocks
(
pInfo
);
doClearBufferedBlocks
(
pInfo
);
qDebug
(
"stream scan return empty, consume block %d"
,
totBlockNum
);
qDebug
(
"stream scan return empty, consume block %d"
,
totBlockNum
);
void
*
buff
=
NULL
;
void
*
buff
=
NULL
;
int32_t
len
=
streamScanOperatorEncode
(
pInfo
,
&
buff
);
//
int32_t len = streamScanOperatorEncode(pInfo, &buff);
if
(
len
>
0
)
{
//
if (len > 0) {
streamStateSaveInfo
(
pInfo
->
pState
,
STREAM_SCAN_OP_NAME
,
strlen
(
STREAM_SCAN_OP_NAME
),
buff
,
len
);
//
streamStateSaveInfo(pInfo->pState, STREAM_SCAN_OP_NAME, strlen(STREAM_SCAN_OP_NAME), buff, len);
}
//
}
taosMemoryFreeClear
(
buff
);
taosMemoryFreeClear
(
buff
);
return
NULL
;
return
NULL
;
}
}
...
...
tests/script/tsim/stream/distributeInterval0.sim
浏览文件 @
f2560fd5
...
@@ -76,7 +76,7 @@ if $rows != 1 then
...
@@ -76,7 +76,7 @@ if $rows != 1 then
endi
endi
if $data01 != 8 then
if $data01 != 8 then
print =====data01=$data01
print =
1
====data01=$data01
goto loop0
goto loop0
endi
endi
...
@@ -97,7 +97,7 @@ if $loop_count == 30 then
...
@@ -97,7 +97,7 @@ if $loop_count == 30 then
return -1
return -1
endi
endi
sleep
20
000
sleep
1
000
print 2 select * from streamtST1;
print 2 select * from streamtST1;
sql select * from streamtST1;
sql select * from streamtST1;
...
@@ -107,7 +107,7 @@ if $rows != 4 then
...
@@ -107,7 +107,7 @@ if $rows != 4 then
endi
endi
if $data01 != 8 then
if $data01 != 8 then
print =====data01=$data01
print =
2
====data01=$data01
goto loop01
goto loop01
endi
endi
...
@@ -136,7 +136,7 @@ if $loop_count == 30 then
...
@@ -136,7 +136,7 @@ if $loop_count == 30 then
return -1
return -1
endi
endi
sleep
2
000
sleep
1
000
print 3 select * from streamtST1;
print 3 select * from streamtST1;
sql select * from streamtST1;
sql select * from streamtST1;
...
@@ -146,7 +146,7 @@ if $rows != 4 then
...
@@ -146,7 +146,7 @@ if $rows != 4 then
endi
endi
if $data01 != 8 then
if $data01 != 8 then
print =====data01=$data01
print =
3
====data01=$data01
goto loop011
goto loop011
endi
endi
...
@@ -175,7 +175,7 @@ if $loop_count == 30 then
...
@@ -175,7 +175,7 @@ if $loop_count == 30 then
return -1
return -1
endi
endi
sleep
2
000
sleep
1
000
print 4 select * from streamtST1;
print 4 select * from streamtST1;
sql select * from streamtST1;
sql select * from streamtST1;
...
@@ -185,7 +185,7 @@ if $rows != 4 then
...
@@ -185,7 +185,7 @@ if $rows != 4 then
endi
endi
if $data01 != 8 then
if $data01 != 8 then
print =====data01=$data01
print =
4
====data01=$data01
goto loop02
goto loop02
endi
endi
...
@@ -215,7 +215,7 @@ if $loop_count == 30 then
...
@@ -215,7 +215,7 @@ if $loop_count == 30 then
return -1
return -1
endi
endi
sleep
2
000
sleep
1
000
print 5 select * from streamtST1;
print 5 select * from streamtST1;
sql select * from streamtST1;
sql select * from streamtST1;
...
@@ -225,7 +225,7 @@ if $rows != 4 then
...
@@ -225,7 +225,7 @@ if $rows != 4 then
endi
endi
if $data01 != 8 then
if $data01 != 8 then
print =====data01=$data01
print =
5
====data01=$data01
goto loop03
goto loop03
endi
endi
...
@@ -262,7 +262,7 @@ if $loop_count == 30 then
...
@@ -262,7 +262,7 @@ if $loop_count == 30 then
return -1
return -1
endi
endi
sleep
2
000
sleep
1
000
print 6 select * from streamtST1;
print 6 select * from streamtST1;
sql select * from streamtST1;
sql select * from streamtST1;
...
@@ -272,7 +272,7 @@ if $rows != 4 then
...
@@ -272,7 +272,7 @@ if $rows != 4 then
endi
endi
if $data01 != 8 then
if $data01 != 8 then
print =====data01=$data01
print =
6
====data01=$data01
goto loop04
goto loop04
endi
endi
...
@@ -296,7 +296,7 @@ sql insert into ts3 values(1648791243006,4,2,3,3.1) (1648791213001,1,52,13,1.0)
...
@@ -296,7 +296,7 @@ sql insert into ts3 values(1648791243006,4,2,3,3.1) (1648791213001,1,52,13,1.0)
$loop_count = 0
$loop_count = 0
loop1:
loop1:
sleep
2
000
sleep
1
000
sql select * from streamtST1;
sql select * from streamtST1;
$loop_count = $loop_count + 1
$loop_count = $loop_count + 1
...
@@ -306,7 +306,7 @@ endi
...
@@ -306,7 +306,7 @@ endi
# row 0
# row 0
if $data01 != 8 then
if $data01 != 8 then
print =====data01=$data01
print =
7
====data01=$data01
goto loop1
goto loop1
endi
endi
...
@@ -427,7 +427,7 @@ $loop_count = 0
...
@@ -427,7 +427,7 @@ $loop_count = 0
loop2:
loop2:
sql select * from streamtST1;
sql select * from streamtST1;
sleep
2
000
sleep
1
000
$loop_count = $loop_count + 1
$loop_count = $loop_count + 1
if $loop_count == 30 then
if $loop_count == 30 then
return -1
return -1
...
@@ -435,7 +435,7 @@ endi
...
@@ -435,7 +435,7 @@ endi
# row 0
# row 0
if $data01 != 2 then
if $data01 != 2 then
print =====data01=$data01
print =
8
====data01=$data01
goto loop2
goto loop2
endi
endi
...
@@ -466,7 +466,7 @@ $loop_count = 0
...
@@ -466,7 +466,7 @@ $loop_count = 0
loop3:
loop3:
sql select * from streamtST3;
sql select * from streamtST3;
sleep
2
000
sleep
1
000
$loop_count = $loop_count + 1
$loop_count = $loop_count + 1
if $loop_count == 30 then
if $loop_count == 30 then
return -1
return -1
...
@@ -484,6 +484,8 @@ if $data12 != 2 then
...
@@ -484,6 +484,8 @@ if $data12 != 2 then
goto loop3
goto loop3
endi
endi
return 1
print ===== step3
print ===== step3
sql drop database if exists test4;
sql drop database if exists test4;
...
@@ -532,7 +534,7 @@ sql insert into ddd values(1648791226003,2,2,"/a6/aa/aa");
...
@@ -532,7 +534,7 @@ sql insert into ddd values(1648791226003,2,2,"/a6/aa/aa");
$loop_count = 0
$loop_count = 0
loop4:
loop4:
sleep
2
000
sleep
1
000
$loop_count = $loop_count + 1
$loop_count = $loop_count + 1
if $loop_count == 20 then
if $loop_count == 20 then
...
@@ -550,7 +552,7 @@ sql delete from aaa where ts = 1648791223003 ;
...
@@ -550,7 +552,7 @@ sql delete from aaa where ts = 1648791223003 ;
$loop_count = 0
$loop_count = 0
loop5:
loop5:
sleep
2
000
sleep
1
000
$loop_count = $loop_count + 1
$loop_count = $loop_count + 1
if $loop_count == 20 then
if $loop_count == 20 then
...
@@ -569,7 +571,7 @@ sql delete from ccc;
...
@@ -569,7 +571,7 @@ sql delete from ccc;
$loop_count = 0
$loop_count = 0
loop6:
loop6:
sleep
20
000
sleep
1
000
$loop_count = $loop_count + 1
$loop_count = $loop_count + 1
if $loop_count == 20 then
if $loop_count == 20 then
...
@@ -587,7 +589,7 @@ sql delete from ddd;
...
@@ -587,7 +589,7 @@ sql delete from ddd;
$loop_count = 0
$loop_count = 0
loop7:
loop7:
sleep
20
000
sleep
1
000
$loop_count = $loop_count + 1
$loop_count = $loop_count + 1
if $loop_count == 20 then
if $loop_count == 20 then
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录