Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
d5a8a4ae
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
未验证
提交
d5a8a4ae
编写于
3月 17, 2023
作者:
H
Haojun Liao
提交者:
GitHub
3月 17, 2023
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #20502 from taosdata/fix/liaohj
fix(client): set the initial value for num_of_rows.
上级
a5e6bac8
1b219f7a
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
18 addition
and
8 deletion
+18
-8
source/client/src/clientJniConnector.c
source/client/src/clientJniConnector.c
+2
-2
source/client/src/clientMain.c
source/client/src/clientMain.c
+3
-0
source/client/src/clientTmqConnector.c
source/client/src/clientTmqConnector.c
+2
-2
source/dnode/vnode/src/tsdb/tsdbCacheRead.c
source/dnode/vnode/src/tsdb/tsdbCacheRead.c
+0
-1
source/dnode/vnode/src/tsdb/tsdbRead.c
source/dnode/vnode/src/tsdb/tsdbRead.c
+3
-1
source/libs/executor/src/executil.c
source/libs/executor/src/executil.c
+1
-0
source/libs/executor/src/executorimpl.c
source/libs/executor/src/executorimpl.c
+1
-0
source/libs/executor/src/groupoperator.c
source/libs/executor/src/groupoperator.c
+6
-1
source/libs/executor/src/tsort.c
source/libs/executor/src/tsort.c
+0
-1
未找到文件。
source/client/src/clientJniConnector.c
浏览文件 @
d5a8a4ae
...
...
@@ -581,8 +581,8 @@ JNIEXPORT jint JNICALL Java_com_taosdata_jdbc_TSDBJNIConnector_fetchBlockImp(JNI
return
JNI_RESULT_SET_NULL
;
}
void
*
data
;
int32_t
numOfRows
;
void
*
data
=
NULL
;
int32_t
numOfRows
=
0
;
int
error_code
=
taos_fetch_raw_block
(
tres
,
&
numOfRows
,
&
data
);
if
(
numOfRows
==
0
)
{
if
(
error_code
==
JNI_SUCCESS
)
{
...
...
source/client/src/clientMain.c
浏览文件 @
d5a8a4ae
...
...
@@ -611,6 +611,9 @@ int taos_fetch_block_s(TAOS_RES *res, int *numOfRows, TAOS_ROW *rows) {
}
int
taos_fetch_raw_block
(
TAOS_RES
*
res
,
int
*
numOfRows
,
void
**
pData
)
{
*
numOfRows
=
0
;
*
pData
=
NULL
;
if
(
res
==
NULL
||
TD_RES_TMQ_META
(
res
))
{
return
0
;
}
...
...
source/client/src/clientTmqConnector.c
浏览文件 @
d5a8a4ae
...
...
@@ -361,8 +361,8 @@ JNIEXPORT jint JNICALL Java_com_taosdata_jdbc_tmq_TMQConnector_fetchRawBlockImp(
TAOS_RES
*
tres
=
(
TAOS_RES
*
)
res
;
void
*
data
;
int32_t
numOfRows
;
void
*
data
=
NULL
;
int32_t
numOfRows
=
0
;
int
error_code
=
taos_fetch_raw_block
(
tres
,
&
numOfRows
,
&
data
);
if
(
numOfRows
==
0
)
{
if
(
error_code
==
JNI_SUCCESS
)
{
...
...
source/dnode/vnode/src/tsdb/tsdbCacheRead.c
浏览文件 @
d5a8a4ae
...
...
@@ -118,7 +118,6 @@ static int32_t setTableSchema(SCacheRowsReader* p, uint64_t suid, const char* id
if
(
suid
!=
0
)
{
p
->
pSchema
=
metaGetTbTSchema
(
p
->
pVnode
->
pMeta
,
suid
,
-
1
,
1
);
if
(
p
->
pSchema
==
NULL
)
{
taosMemoryFree
(
p
);
tsdbWarn
(
"stable:%"
PRIu64
" has been dropped, failed to retrieve cached rows, %s"
,
suid
,
idstr
);
return
TSDB_CODE_PAR_TABLE_NOT_EXIST
;
}
...
...
source/dnode/vnode/src/tsdb/tsdbRead.c
浏览文件 @
d5a8a4ae
...
...
@@ -390,8 +390,10 @@ static SHashObj* createDataBlockScanInfo(STsdbReader* pTsdbReader, SBlockInfoBuf
pUidList
->
tableUidList
=
taosMemoryMalloc
(
numOfTables
*
sizeof
(
uint64_t
));
if
(
pUidList
->
tableUidList
==
NULL
)
{
taosHashCleanup
(
pTableMap
);
return
NULL
;
}
pUidList
->
currentIndex
=
0
;
for
(
int32_t
j
=
0
;
j
<
numOfTables
;
++
j
)
{
...
...
@@ -4763,7 +4765,7 @@ int32_t tsdbGetFileBlocksDistInfo(STsdbReader* pReader, STableBlockDistInfo* pTa
pTableBlockInfo
->
defMinRows
=
pc
->
minRows
;
pTableBlockInfo
->
defMaxRows
=
pc
->
maxRows
;
int32_t
bucketRange
=
ceil
((
pc
->
maxRows
-
pc
->
minRows
)
/
numOfBucket
);
int32_t
bucketRange
=
ceil
((
(
double
)(
pc
->
maxRows
-
pc
->
minRows
)
)
/
numOfBucket
);
pTableBlockInfo
->
numOfFiles
+=
1
;
...
...
source/libs/executor/src/executil.c
浏览文件 @
d5a8a4ae
...
...
@@ -820,6 +820,7 @@ static SSDataBlock* createTagValBlockForFilter(SArray* pColList, int32_t numOfTa
int32_t
code
=
blockDataEnsureCapacity
(
pResBlock
,
numOfTables
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
terrno
=
code
;
taosMemoryFree
(
pResBlock
);
return
NULL
;
}
...
...
source/libs/executor/src/executorimpl.c
浏览文件 @
d5a8a4ae
...
...
@@ -2344,6 +2344,7 @@ SOperatorInfo* createOperatorTree(SPhysiNode* pPhyNode, SExecTaskInfo* pTaskInfo
pOptr
=
createEventwindowOperatorInfo
(
ops
[
0
],
pPhyNode
,
pTaskInfo
);
}
else
{
terrno
=
TSDB_CODE_INVALID_PARA
;
taosMemoryFree
(
ops
);
return
NULL
;
}
...
...
source/libs/executor/src/groupoperator.c
浏览文件 @
d5a8a4ae
...
...
@@ -173,9 +173,14 @@ static void recordNewGroupKeys(SArray* pGroupCols, SArray* pGroupColVals, SSData
size_t
numOfGroupCols
=
taosArrayGetSize
(
pGroupCols
);
for
(
int32_t
i
=
0
;
i
<
numOfGroupCols
;
++
i
)
{
SColumn
*
pCol
=
taosArrayGet
(
pGroupCols
,
i
);
SColumn
*
pCol
=
(
SColumn
*
)
taosArrayGet
(
pGroupCols
,
i
);
SColumnInfoData
*
pColInfoData
=
taosArrayGet
(
pBlock
->
pDataBlock
,
pCol
->
slotId
);
// valid range check. todo: return error code.
if
(
pCol
->
slotId
>
taosArrayGetSize
(
pBlock
->
pDataBlock
))
{
continue
;
}
if
(
pBlock
->
pBlockAgg
!=
NULL
)
{
pColAgg
=
pBlock
->
pBlockAgg
[
pCol
->
slotId
];
// TODO is agg data matched?
}
...
...
source/libs/executor/src/tsort.c
浏览文件 @
d5a8a4ae
...
...
@@ -214,7 +214,6 @@ static int32_t doAddToBuf(SSDataBlock* pDataBlock, SSortHandle* pHandle) {
if
(
pPage
==
NULL
)
{
taosArrayDestroy
(
pPageIdList
);
blockDataDestroy
(
p
);
taosArrayDestroy
(
pPageIdList
);
return
terrno
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录