Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
e5e817ae
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看板
提交
e5e817ae
编写于
11月 24, 2022
作者:
H
Haojun Liao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
other: merge 3.0
上级
8dd780b4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
9 deletion
+11
-9
source/libs/executor/inc/executorimpl.h
source/libs/executor/inc/executorimpl.h
+4
-4
source/libs/executor/src/exchangeoperator.c
source/libs/executor/src/exchangeoperator.c
+5
-5
source/libs/function/inc/builtinsimpl.h
source/libs/function/inc/builtinsimpl.h
+2
-0
未找到文件。
source/libs/executor/inc/executorimpl.h
浏览文件 @
e5e817ae
...
...
@@ -153,17 +153,17 @@ typedef struct {
SSchemaWrapper
*
qsw
;
}
SSchemaInfo
;
typedef
struct
{
typedef
struct
SExchangeOpStopInfo
{
int32_t
operatorType
;
int64_t
refId
;
}
SExchangeOpStopInfo
;
typedef
struct
{
typedef
struct
STaskStopInfo
{
SRWLatch
lock
;
SArray
*
pStopInfo
;
}
STaskStopInfo
;
typedef
struct
SExecTaskInfo
{
struct
SExecTaskInfo
{
STaskIdInfo
id
;
uint32_t
status
;
STimeWindow
window
;
...
...
@@ -260,7 +260,7 @@ typedef struct SExchangeInfo {
// SArray<SSDataBlock*>, result block list, used to keep the multi-block that
// passed by downstream operator
SArray
*
pRe
adyBlocks
;
SArray
*
pRe
sultBlockList
;
SArray
*
pRecycledBlocks
;
// build a pool for small data block to avoid to repeatly create and then destroy.
SSDataBlock
*
pDummyBlock
;
// dummy block, not keep data
bool
seqLoadData
;
// sequential load data or not, false by default
...
...
source/libs/executor/src/exchangeoperator.c
浏览文件 @
e5e817ae
...
...
@@ -182,7 +182,7 @@ static SSDataBlock* doLoadRemoteDataImpl(SOperatorInfo* pOperator) {
}
// we have buffered retrieved datablock, return it directly
SSDataBlock
**
p
=
taosArrayPop
(
pExchangeInfo
->
pRe
adyBlocks
);
SSDataBlock
**
p
=
taosArrayPop
(
pExchangeInfo
->
pRe
sultBlockList
);
if
(
p
!=
NULL
)
{
taosArrayPush
(
pExchangeInfo
->
pRecycledBlocks
,
p
);
return
*
p
;
...
...
@@ -193,10 +193,10 @@ static SSDataBlock* doLoadRemoteDataImpl(SOperatorInfo* pOperator) {
concurrentlyLoadRemoteDataImpl
(
pOperator
,
pExchangeInfo
,
pTaskInfo
);
}
if
(
taosArrayGetSize
(
pExchangeInfo
->
pRe
adyBlocks
)
==
0
)
{
if
(
taosArrayGetSize
(
pExchangeInfo
->
pRe
sultBlockList
)
==
0
)
{
return
NULL
;
}
else
{
p
=
taosArrayPop
(
pExchangeInfo
->
pRe
adyBlocks
);
p
=
taosArrayPop
(
pExchangeInfo
->
pRe
sultBlockList
);
taosArrayPush
(
pExchangeInfo
->
pRecycledBlocks
,
p
);
return
*
p
;
}
...
...
@@ -298,7 +298,7 @@ SOperatorInfo* createExchangeOperatorInfo(void* pTransporter, SExchangePhysiNode
tsem_init
(
&
pInfo
->
ready
,
0
,
0
);
pInfo
->
pDummyBlock
=
createResDataBlock
(
pExNode
->
node
.
pOutputDataBlockDesc
);
pInfo
->
pRe
adyBlocks
=
taosArrayInit
(
64
,
POINTER_BYTES
);
pInfo
->
pRe
sultBlockList
=
taosArrayInit
(
64
,
POINTER_BYTES
);
pInfo
->
pRecycledBlocks
=
taosArrayInit
(
64
,
POINTER_BYTES
);
SExchangeOpStopInfo
stopInfo
=
{
QUERY_NODE_PHYSICAL_PLAN_EXCHANGE
,
pInfo
->
self
};
...
...
@@ -346,7 +346,7 @@ void doDestroyExchangeOperatorInfo(void* param) {
taosArrayDestroy
(
pExInfo
->
pSources
);
taosArrayDestroyEx
(
pExInfo
->
pSourceDataInfo
,
freeSourceDataInfo
);
taosArrayDestroyEx
(
pExInfo
->
pRe
adyBlocks
,
freeBlock
);
taosArrayDestroyEx
(
pExInfo
->
pRe
sultBlockList
,
freeBlock
);
taosArrayDestroyEx
(
pExInfo
->
pRecycledBlocks
,
freeBlock
);
blockDataDestroy
(
pExInfo
->
pDummyBlock
);
...
...
source/libs/function/inc/builtinsimpl.h
浏览文件 @
e5e817ae
...
...
@@ -30,6 +30,8 @@ typedef struct SSumRes {
double
dsum
;
};
int16_t
type
;
int64_t
prevTs
;
bool
isPrevTsSet
;
}
SSumRes
;
typedef
struct
SMinmaxResInfo
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录