Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
95c1b000
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看板
提交
95c1b000
编写于
6月 23, 2022
作者:
D
dapan1121
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
enh: modify delete output res
上级
94fd3091
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
11 addition
and
6 deletion
+11
-6
include/common/tcommon.h
include/common/tcommon.h
+1
-0
include/libs/executor/dataSinkMgt.h
include/libs/executor/dataSinkMgt.h
+3
-2
include/libs/qworker/qworker.h
include/libs/qworker/qworker.h
+1
-1
source/libs/executor/src/dataDeleter.c
source/libs/executor/src/dataDeleter.c
+1
-1
source/libs/executor/src/executil.c
source/libs/executor/src/executil.c
+2
-0
source/libs/executor/src/executorimpl.c
source/libs/executor/src/executorimpl.c
+1
-0
source/libs/qworker/src/qworker.c
source/libs/qworker/src/qworker.c
+1
-1
tests/script/tsim/show/basic.sim
tests/script/tsim/show/basic.sim
+1
-1
未找到文件。
include/common/tcommon.h
浏览文件 @
95c1b000
...
...
@@ -54,6 +54,7 @@ typedef struct {
SHashObj
*
map
;
// speedup acquire the tableQueryInfo by table uid
void
*
pTagCond
;
void
*
pTagIndexCond
;
uint64_t
suid
;
}
STableListInfo
;
typedef
struct
SColumnDataAgg
{
...
...
include/libs/executor/dataSinkMgt.h
浏览文件 @
95c1b000
...
...
@@ -33,7 +33,7 @@ struct SDataSink;
struct
SSDataBlock
;
typedef
struct
SDeleterRes
{
uint64_t
uid
;
uint64_t
s
uid
;
SArray
*
uidList
;
int64_t
skey
;
int64_t
ekey
;
...
...
@@ -41,7 +41,8 @@ typedef struct SDeleterRes {
}
SDeleterRes
;
typedef
struct
SDeleterParam
{
SArray
*
pUidList
;
uint64_t
suid
;
SArray
*
pUidList
;
}
SDeleterParam
;
typedef
struct
SDataSinkStat
{
...
...
include/libs/qworker/qworker.h
浏览文件 @
95c1b000
...
...
@@ -32,7 +32,7 @@ enum {
};
typedef
struct
SDeleteRes
{
uint64_t
uid
;
uint64_t
s
uid
;
SArray
*
uidList
;
int64_t
skey
;
int64_t
ekey
;
...
...
source/libs/executor/src/dataDeleter.c
浏览文件 @
95c1b000
...
...
@@ -86,7 +86,7 @@ static void toDataCacheEntry(SDataDeleterHandle* pHandle, const SInputData* pInp
SColumnInfoData
*
pColRes
=
(
SColumnInfoData
*
)
taosArrayGet
(
pInput
->
pData
->
pDataBlock
,
0
);
SDeleterRes
*
pRes
=
(
SDeleterRes
*
)
pEntry
->
data
;
pRes
->
uid
=
pHandle
->
pDeleter
->
tableI
d
;
pRes
->
suid
=
pHandle
->
pParam
->
sui
d
;
pRes
->
uidList
=
pHandle
->
pParam
->
pUidList
;
pRes
->
skey
=
pHandle
->
pDeleter
->
deleteTimeRange
.
skey
;
pRes
->
ekey
=
pHandle
->
pDeleter
->
deleteTimeRange
.
ekey
;
...
...
source/libs/executor/src/executil.c
浏览文件 @
95c1b000
...
...
@@ -300,6 +300,8 @@ int32_t getTableList(void* metaHandle, SScanPhysiNode* pScanNode, STableListInfo
uint64_t
tableUid
=
pScanNode
->
uid
;
pListInfo
->
suid
=
pScanNode
->
suid
;
SNode
*
pTagCond
=
(
SNode
*
)
pListInfo
->
pTagCond
;
SNode
*
pTagIndexCond
=
(
SNode
*
)
pListInfo
->
pTagIndexCond
;
if
(
pScanNode
->
tableType
==
TSDB_SUPER_TABLE
)
{
...
...
source/libs/executor/src/executorimpl.c
浏览文件 @
95c1b000
...
...
@@ -4464,6 +4464,7 @@ int32_t createDataSinkParam(SDataSinkNode* pNode, void** pParam, qTaskInfo_t* pT
return
TSDB_CODE_OUT_OF_MEMORY
;
}
int32_t
tbNum
=
taosArrayGetSize
(
pTask
->
tableqinfoList
.
pTableList
);
pDeleterParam
->
suid
=
pTask
->
tableqinfoList
.
suid
;
pDeleterParam
->
pUidList
=
taosArrayInit
(
tbNum
,
sizeof
(
uint64_t
));
if
(
NULL
==
pDeleterParam
->
pUidList
)
{
taosMemoryFree
(
pDeleterParam
);
...
...
source/libs/qworker/src/qworker.c
浏览文件 @
95c1b000
...
...
@@ -271,7 +271,7 @@ int32_t qwGetDeleteResFromSink(QW_FPARAMS_DEF, SQWTaskCtx *ctx, int32_t *dataLen
SDeleterRes
*
pDelRes
=
(
SDeleterRes
*
)
output
.
pData
;
rsp
.
affectedRows
=
pDelRes
->
affectedRows
;
pRes
->
uid
=
pDelRes
->
uid
;
pRes
->
suid
=
pDelRes
->
s
uid
;
pRes
->
uidList
=
pDelRes
->
uidList
;
pRes
->
skey
=
pDelRes
->
skey
;
pRes
->
ekey
=
pDelRes
->
ekey
;
...
...
tests/script/tsim/show/basic.sim
浏览文件 @
95c1b000
...
...
@@ -233,7 +233,7 @@ if $rows != 4 then
endi
sql show dnode 1 variables;
if $rows != 11
4
then
if $rows != 11
6
then
return -1
endi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录