Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
422a6043
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看板
未验证
提交
422a6043
编写于
6月 09, 2023
作者:
D
dapan1121
提交者:
GitHub
6月 09, 2023
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #21679 from taosdata/fix/TD-24716
fix: row size too big issue
上级
cab9ddbe
7956a8c4
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
22 addition
and
5 deletion
+22
-5
source/common/src/systable.c
source/common/src/systable.c
+1
-1
source/libs/executor/src/aggregateoperator.c
source/libs/executor/src/aggregateoperator.c
+6
-2
source/libs/executor/src/executorInt.c
source/libs/executor/src/executorInt.c
+8
-0
source/libs/executor/src/groupoperator.c
source/libs/executor/src/groupoperator.c
+7
-2
未找到文件。
source/common/src/systable.c
浏览文件 @
422a6043
...
@@ -280,7 +280,7 @@ static const SSysDbTableSchema topicSchema[] = {
...
@@ -280,7 +280,7 @@ static const SSysDbTableSchema topicSchema[] = {
{.
name
=
"db_name"
,
.
bytes
=
SYSTABLE_SCH_DB_NAME_LEN
,
.
type
=
TSDB_DATA_TYPE_BINARY
,
.
sysInfo
=
false
},
{.
name
=
"db_name"
,
.
bytes
=
SYSTABLE_SCH_DB_NAME_LEN
,
.
type
=
TSDB_DATA_TYPE_BINARY
,
.
sysInfo
=
false
},
{.
name
=
"create_time"
,
.
bytes
=
8
,
.
type
=
TSDB_DATA_TYPE_TIMESTAMP
,
.
sysInfo
=
false
},
{.
name
=
"create_time"
,
.
bytes
=
8
,
.
type
=
TSDB_DATA_TYPE_TIMESTAMP
,
.
sysInfo
=
false
},
{.
name
=
"sql"
,
.
bytes
=
TSDB_SHOW_SQL_LEN
+
VARSTR_HEADER_SIZE
,
.
type
=
TSDB_DATA_TYPE_BINARY
,
.
sysInfo
=
false
},
{.
name
=
"sql"
,
.
bytes
=
TSDB_SHOW_SQL_LEN
+
VARSTR_HEADER_SIZE
,
.
type
=
TSDB_DATA_TYPE_BINARY
,
.
sysInfo
=
false
},
{.
name
=
"schema"
,
.
bytes
=
TSDB_
SHOW_SCHEMA_JSON_LEN
+
VARSTR_HEADER_SIZE
,
.
type
=
TSDB_DATA_TYPE_BINARY
,
.
sysInfo
=
false
},
{.
name
=
"schema"
,
.
bytes
=
TSDB_
MAX_BINARY_LEN
,
.
type
=
TSDB_DATA_TYPE_BINARY
,
.
sysInfo
=
false
},
{.
name
=
"meta"
,
.
bytes
=
4
+
VARSTR_HEADER_SIZE
,
.
type
=
TSDB_DATA_TYPE_BINARY
,
.
sysInfo
=
false
},
{.
name
=
"meta"
,
.
bytes
=
4
+
VARSTR_HEADER_SIZE
,
.
type
=
TSDB_DATA_TYPE_BINARY
,
.
sysInfo
=
false
},
{.
name
=
"type"
,
.
bytes
=
8
+
VARSTR_HEADER_SIZE
,
.
type
=
TSDB_DATA_TYPE_BINARY
,
.
sysInfo
=
false
},
{.
name
=
"type"
,
.
bytes
=
8
+
VARSTR_HEADER_SIZE
,
.
type
=
TSDB_DATA_TYPE_BINARY
,
.
sysInfo
=
false
},
};
};
...
...
source/libs/executor/src/aggregateoperator.c
浏览文件 @
422a6043
...
@@ -461,8 +461,12 @@ int32_t doInitAggInfoSup(SAggSupporter* pAggSup, SqlFunctionCtx* pCtx, int32_t n
...
@@ -461,8 +461,12 @@ int32_t doInitAggInfoSup(SAggSupporter* pAggSup, SqlFunctionCtx* pCtx, int32_t n
uint32_t
defaultPgsz
=
0
;
uint32_t
defaultPgsz
=
0
;
uint32_t
defaultBufsz
=
0
;
uint32_t
defaultBufsz
=
0
;
getBufferPgSize
(
pAggSup
->
resultRowSize
,
&
defaultPgsz
,
&
defaultBufsz
);
code
=
getBufferPgSize
(
pAggSup
->
resultRowSize
,
&
defaultPgsz
,
&
defaultBufsz
);
if
(
code
)
{
qError
(
"failed to get buff page size, rowSize:%d"
,
pAggSup
->
resultRowSize
);
return
code
;
}
if
(
!
osTempSpaceAvailable
())
{
if
(
!
osTempSpaceAvailable
())
{
code
=
TSDB_CODE_NO_DISKSPACE
;
code
=
TSDB_CODE_NO_DISKSPACE
;
qError
(
"Init stream agg supporter failed since %s, key:%s, tempDir:%s"
,
terrstr
(
code
),
pKey
,
tsTempDir
);
qError
(
"Init stream agg supporter failed since %s, key:%s, tempDir:%s"
,
terrstr
(
code
),
pKey
,
tsTempDir
);
...
...
source/libs/executor/src/executorInt.c
浏览文件 @
422a6043
...
@@ -922,8 +922,13 @@ void destroyExprInfo(SExprInfo* pExpr, int32_t numOfExprs) {
...
@@ -922,8 +922,13 @@ void destroyExprInfo(SExprInfo* pExpr, int32_t numOfExprs) {
int32_t
getBufferPgSize
(
int32_t
rowSize
,
uint32_t
*
defaultPgsz
,
uint32_t
*
defaultBufsz
)
{
int32_t
getBufferPgSize
(
int32_t
rowSize
,
uint32_t
*
defaultPgsz
,
uint32_t
*
defaultBufsz
)
{
*
defaultPgsz
=
4096
;
*
defaultPgsz
=
4096
;
uint32_t
last
=
*
defaultPgsz
;
while
(
*
defaultPgsz
<
rowSize
*
4
)
{
while
(
*
defaultPgsz
<
rowSize
*
4
)
{
*
defaultPgsz
<<=
1u
;
*
defaultPgsz
<<=
1u
;
if
(
*
defaultPgsz
<
last
)
{
return
TSDB_CODE_INVALID_PARA
;
}
last
=
*
defaultPgsz
;
}
}
// The default buffer for each operator in query is 10MB.
// The default buffer for each operator in query is 10MB.
...
@@ -932,6 +937,9 @@ int32_t getBufferPgSize(int32_t rowSize, uint32_t* defaultPgsz, uint32_t* defaul
...
@@ -932,6 +937,9 @@ int32_t getBufferPgSize(int32_t rowSize, uint32_t* defaultPgsz, uint32_t* defaul
*
defaultBufsz
=
4096
*
2560
;
*
defaultBufsz
=
4096
*
2560
;
if
((
*
defaultBufsz
)
<=
(
*
defaultPgsz
))
{
if
((
*
defaultBufsz
)
<=
(
*
defaultPgsz
))
{
(
*
defaultBufsz
)
=
(
*
defaultPgsz
)
*
4
;
(
*
defaultBufsz
)
=
(
*
defaultPgsz
)
*
4
;
if
(
*
defaultBufsz
<
((
int64_t
)(
*
defaultPgsz
))
*
4
)
{
return
TSDB_CODE_INVALID_PARA
;
}
}
}
return
0
;
return
0
;
...
...
source/libs/executor/src/groupoperator.c
浏览文件 @
422a6043
...
@@ -869,7 +869,12 @@ SOperatorInfo* createPartitionOperatorInfo(SOperatorInfo* downstream, SPartition
...
@@ -869,7 +869,12 @@ SOperatorInfo* createPartitionOperatorInfo(SOperatorInfo* downstream, SPartition
uint32_t
defaultBufsz
=
0
;
uint32_t
defaultBufsz
=
0
;
pInfo
->
binfo
.
pRes
=
createDataBlockFromDescNode
(
pPartNode
->
node
.
pOutputDataBlockDesc
);
pInfo
->
binfo
.
pRes
=
createDataBlockFromDescNode
(
pPartNode
->
node
.
pOutputDataBlockDesc
);
getBufferPgSize
(
pInfo
->
binfo
.
pRes
->
info
.
rowSize
,
&
defaultPgsz
,
&
defaultBufsz
);
int32_t
code
=
getBufferPgSize
(
pInfo
->
binfo
.
pRes
->
info
.
rowSize
,
&
defaultPgsz
,
&
defaultBufsz
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
terrno
=
code
;
pTaskInfo
->
code
=
code
;
goto
_error
;
}
if
(
!
osTempSpaceAvailable
())
{
if
(
!
osTempSpaceAvailable
())
{
terrno
=
TSDB_CODE_NO_DISKSPACE
;
terrno
=
TSDB_CODE_NO_DISKSPACE
;
...
@@ -878,7 +883,7 @@ SOperatorInfo* createPartitionOperatorInfo(SOperatorInfo* downstream, SPartition
...
@@ -878,7 +883,7 @@ SOperatorInfo* createPartitionOperatorInfo(SOperatorInfo* downstream, SPartition
goto
_error
;
goto
_error
;
}
}
int32_t
code
=
createDiskbasedBuf
(
&
pInfo
->
pBuf
,
defaultPgsz
,
defaultBufsz
,
pTaskInfo
->
id
.
str
,
tsTempDir
);
code
=
createDiskbasedBuf
(
&
pInfo
->
pBuf
,
defaultPgsz
,
defaultBufsz
,
pTaskInfo
->
id
.
str
,
tsTempDir
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
terrno
=
code
;
terrno
=
code
;
pTaskInfo
->
code
=
code
;
pTaskInfo
->
code
=
code
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录