Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
e7aebe26
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1193
Star
22018
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看板
提交
e7aebe26
编写于
2月 22, 2022
作者:
wmmhello
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feature/TD-11208-new' into feature/TD-10987
上级
dcf760d6
eb68f09b
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
5 addition
and
5 deletion
+5
-5
src/query/src/qAggMain.c
src/query/src/qAggMain.c
+3
-3
src/query/src/qExecutor.c
src/query/src/qExecutor.c
+1
-1
src/query/src/qUtil.c
src/query/src/qUtil.c
+1
-1
未找到文件。
src/query/src/qAggMain.c
浏览文件 @
e7aebe26
...
...
@@ -382,7 +382,7 @@ int32_t getResultDataInfo(int32_t dataType, int32_t dataBytes, int32_t functionI
if
(
size
>
MAX_UNIQUE_RESULT_SIZE
)
{
size
=
MAX_UNIQUE_RESULT_SIZE
;
}
*
bytes
=
size
;
*
bytes
=
(
int32_t
)
size
;
*
interBytes
=
*
bytes
;
return
TSDB_CODE_SUCCESS
;
...
...
@@ -5143,7 +5143,7 @@ static void copyUniqueRes(SQLFunctionCtx *pCtx, int32_t bytes) {
tvp
=
pRes
->
res
+
(
size
*
((
pCtx
->
param
[
2
].
i64
==
TSDB_ORDER_ASC
)
?
0
:
len
-
1
));
for
(
int32_t
i
=
0
;
i
<
len
;
++
i
)
{
int
16_t
offset
=
sizeof
(
UniqueUnit
)
+
bytes
;
int
32_t
offset
=
(
int32_t
)
sizeof
(
UniqueUnit
)
+
bytes
;
for
(
int32_t
j
=
0
;
j
<
pCtx
->
tagInfo
.
numOfTagCols
;
++
j
)
{
memcpy
(
pData
[
j
],
tvp
+
offset
,
(
size_t
)
pCtx
->
tagInfo
.
pTagCtxList
[
j
]
->
outputBytes
);
offset
+=
pCtx
->
tagInfo
.
pTagCtxList
[
j
]
->
outputBytes
;
...
...
@@ -5255,7 +5255,7 @@ typedef struct{
static
int32_t
uniqueCompareFn
(
const
void
*
p1
,
const
void
*
p2
,
const
void
*
param
)
{
UiqueSupporter
*
support
=
(
UiqueSupporter
*
)
param
;
return
support
->
comparFn
(
p1
+
support
->
dataOffset
,
p2
+
support
->
dataOffset
);
return
support
->
comparFn
(
(
const
char
*
)
p1
+
support
->
dataOffset
,
(
const
char
*
)
p2
+
support
->
dataOffset
);
}
static
void
unique_func_finalizer
(
SQLFunctionCtx
*
pCtx
)
{
...
...
src/query/src/qExecutor.c
浏览文件 @
e7aebe26
...
...
@@ -362,7 +362,7 @@ SSDataBlock* createOutputBuf(SExprInfo* pExpr, int32_t numOfOutput, int32_t numO
qError
(
"size is too large, failed to allocate column buffer for output buffer"
);
tmp
=
128
*
1024
*
1024
;
}
int32_t
size
=
MAX
(
tmp
,
minSize
);
int32_t
size
=
(
int32_t
)
MAX
(
tmp
,
minSize
);
idata
.
pData
=
calloc
(
1
,
size
);
// at least to hold a pointer on x64 platform
if
(
idata
.
pData
==
NULL
)
{
qError
(
"failed to allocate column buffer for output buffer"
);
...
...
src/query/src/qUtil.c
浏览文件 @
e7aebe26
...
...
@@ -209,7 +209,7 @@ SResultRowPool* initResultRowPool(size_t size) {
qError
(
"ResultRow blockSize is too large:%"
PRId64
,
tmp
);
tmp
=
128
*
1024
*
1024
;
}
p
->
blockSize
=
tmp
;
p
->
blockSize
=
(
int32_t
)
tmp
;
p
->
position
.
pos
=
0
;
p
->
pData
=
taosArrayInit
(
8
,
POINTER_BYTES
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录