Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
9ddff93b
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看板
提交
9ddff93b
编写于
11月 21, 2022
作者:
K
kailixu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: support 64k for row/column
上级
06494ba5
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
27 addition
and
27 deletion
+27
-27
src/mnode/inc/mnodeDef.h
src/mnode/inc/mnodeDef.h
+4
-4
src/query/src/qAggMain.c
src/query/src/qAggMain.c
+7
-7
src/query/src/qExecutor.c
src/query/src/qExecutor.c
+14
-14
src/query/src/qPercentile.c
src/query/src/qPercentile.c
+2
-2
未找到文件。
src/mnode/inc/mnodeDef.h
浏览文件 @
9ddff93b
...
...
@@ -288,10 +288,10 @@ typedef struct {
int32_t
index
;
int32_t
rowSize
;
int32_t
numOfRows
;
void
*
pIter
;
void
*
pVgIter
;
void
**
ppShow
;
int16_t
offset
[
TSDB_MAX_COLUMNS
];
void
*
pIter
;
void
*
pVgIter
;
void
**
ppShow
;
uint16_t
offset
[
TSDB_MAX_COLUMNS
];
int32_t
bytes
[
TSDB_MAX_COLUMNS
];
int32_t
numOfReads
;
int8_t
maxReplica
;
...
...
src/query/src/qAggMain.c
浏览文件 @
9ddff93b
...
...
@@ -192,7 +192,7 @@ typedef struct {
typedef
struct
{
int32_t
totalPoints
;
int32_t
numSampled
;
int16_t
colBytes
;
u
int16_t
colBytes
;
char
*
values
;
int64_t
*
timeStamps
;
char
*
taglists
;
...
...
@@ -5271,7 +5271,7 @@ static void mavg_function(SQLFunctionCtx *pCtx) {
//////////////////////////////////////////////////////////////////////////////////
// Sample function with reservoir sampling algorithm
static
void
assignResultSample
(
SQLFunctionCtx
*
pCtx
,
SSampleFuncInfo
*
pInfo
,
int32_t
idx
,
int64_t
ts
,
void
*
pData
,
uint16_t
type
,
int16_t
bytes
,
char
*
inputTags
)
{
static
void
assignResultSample
(
SQLFunctionCtx
*
pCtx
,
SSampleFuncInfo
*
pInfo
,
int32_t
idx
,
int64_t
ts
,
void
*
pData
,
uint16_t
type
,
u
int16_t
bytes
,
char
*
inputTags
)
{
assignVal
(
pInfo
->
values
+
idx
*
bytes
,
pData
,
bytes
,
type
);
*
(
pInfo
->
timeStamps
+
idx
)
=
ts
;
...
...
@@ -5296,7 +5296,7 @@ static void assignResultSample(SQLFunctionCtx *pCtx, SSampleFuncInfo *pInfo, int
}
}
static
void
do_reservoir_sample
(
SQLFunctionCtx
*
pCtx
,
SSampleFuncInfo
*
pInfo
,
int32_t
samplesK
,
int64_t
ts
,
void
*
pData
,
uint16_t
type
,
int16_t
bytes
)
{
static
void
do_reservoir_sample
(
SQLFunctionCtx
*
pCtx
,
SSampleFuncInfo
*
pInfo
,
int32_t
samplesK
,
int64_t
ts
,
void
*
pData
,
uint16_t
type
,
u
int16_t
bytes
)
{
pInfo
->
totalPoints
++
;
if
(
pInfo
->
numSampled
<
samplesK
)
{
assignResultSample
(
pCtx
,
pInfo
,
pInfo
->
numSampled
,
ts
,
pData
,
type
,
bytes
,
NULL
);
...
...
src/query/src/qExecutor.c
浏览文件 @
9ddff93b
...
...
@@ -338,7 +338,7 @@ static void sortGroupResByOrderList(SGroupResInfo* pGroupResInfo, SQueryRuntimeE
}
// get dataOffset and index on pRuntimeEnv->pQueryAttr->pExpr1
int16_t
dataOffset
=
0
;
u
int16_t
dataOffset
=
0
;
int16_t
type
=
0
;
int32_t
bytes
=
0
;
for
(
int32_t
j
=
0
;
j
<
pDataBlock
->
info
.
numOfCols
;
++
j
)
{
...
...
@@ -2283,7 +2283,7 @@ static SQLFunctionCtx* createSQLFunctionCtx(SQueryRuntimeEnv* pRuntimeEnv, SExpr
pCtx
->
numOfParams
=
pSqlExpr
->
numOfParams
;
for
(
int32_t
j
=
0
;
j
<
pCtx
->
numOfParams
;
++
j
)
{
int16_t
type
=
pSqlExpr
->
param
[
j
].
nType
;
int
16
_t
bytes
=
pSqlExpr
->
param
[
j
].
nLen
;
int
32
_t
bytes
=
pSqlExpr
->
param
[
j
].
nLen
;
if
(
pSqlExpr
->
functionId
==
TSDB_FUNC_STDDEV_DST
||
pSqlExpr
->
functionId
==
TSDB_FUNC_TS_COMP
)
{
continue
;
}
...
...
@@ -3297,7 +3297,7 @@ void doCompactSDataBlock(SSDataBlock* pBlock, int32_t numOfRows, int8_t* p) {
for
(
int32_t
i
=
0
;
i
<
pBlock
->
info
.
numOfCols
;
++
i
)
{
SColumnInfoData
*
pColumnInfoData
=
taosArrayGet
(
pBlock
->
pDataBlock
,
i
);
int
16
_t
bytes
=
pColumnInfoData
->
info
.
bytes
;
int
32
_t
bytes
=
pColumnInfoData
->
info
.
bytes
;
memmove
(((
char
*
)
pColumnInfoData
->
pData
)
+
start
*
bytes
,
pColumnInfoData
->
pData
+
cstart
*
bytes
,
len
*
bytes
);
}
...
...
@@ -3313,7 +3313,7 @@ void doCompactSDataBlock(SSDataBlock* pBlock, int32_t numOfRows, int8_t* p) {
for
(
int32_t
i
=
0
;
i
<
pBlock
->
info
.
numOfCols
;
++
i
)
{
SColumnInfoData
*
pColumnInfoData
=
taosArrayGet
(
pBlock
->
pDataBlock
,
i
);
int
16
_t
bytes
=
pColumnInfoData
->
info
.
bytes
;
int
32
_t
bytes
=
pColumnInfoData
->
info
.
bytes
;
memmove
(
pColumnInfoData
->
pData
+
start
*
bytes
,
pColumnInfoData
->
pData
+
cstart
*
bytes
,
len
*
bytes
);
}
...
...
@@ -6681,7 +6681,7 @@ static SSDataBlock* doLimit(void* param, bool* newgroup) {
for
(
int32_t
i
=
0
;
i
<
pBlock
->
info
.
numOfCols
;
++
i
)
{
SColumnInfoData
*
pColInfoData
=
taosArrayGet
(
pBlock
->
pDataBlock
,
i
);
int
16
_t
bytes
=
pColInfoData
->
info
.
bytes
;
int
32
_t
bytes
=
pColInfoData
->
info
.
bytes
;
memmove
(
pColInfoData
->
pData
,
pColInfoData
->
pData
+
skip
*
bytes
,
remain
*
bytes
);
}
...
...
@@ -7384,7 +7384,7 @@ static void doStateWindowAggImpl(SOperatorInfo* pOperator, SStateWindowOperatorI
SOptrBasicInfo
*
pBInfo
=
&
pInfo
->
binfo
;
bool
masterScan
=
IS_MASTER_SCAN
(
pRuntimeEnv
);
int
16
_t
bytes
=
pColInfoData
->
info
.
bytes
;
int
32
_t
bytes
=
pColInfoData
->
info
.
bytes
;
// int16_t type = pColInfoData->info.type;
SColumnInfoData
*
pTsColInfoData
=
taosArrayGet
(
pSDataBlock
->
pDataBlock
,
0
);
...
...
@@ -8584,7 +8584,7 @@ static SSDataBlock* doTagScan(void* param, bool* newgroup) {
count
=
0
;
uint16
_t
bytes
=
pExprInfo
->
base
.
resBytes
;
int32
_t
bytes
=
pExprInfo
->
base
.
resBytes
;
int16_t
type
=
pExprInfo
->
base
.
resType
;
for
(
int32_t
i
=
0
;
i
<
pQueryAttr
->
numOfTags
;
++
i
)
{
...
...
@@ -8659,7 +8659,7 @@ static SSDataBlock* doTagScan(void* param, bool* newgroup) {
char
*
data
=
NULL
,
*
dst
=
NULL
;
int16_t
type
=
0
;
uint16
_t
bytes
=
0
;
int32
_t
bytes
=
0
;
for
(
int32_t
j
=
0
;
j
<
pOperator
->
numOfOutput
;
++
j
)
{
// not assign value in case of user defined constant output column
if
(
TSDB_COL_IS_UD_COL
(
pExprInfo
[
j
].
base
.
colInfo
.
flag
))
{
...
...
@@ -9691,7 +9691,7 @@ int32_t createQueryFunc(SQueriedTableInfo* pTableInfo, int32_t numOfOutput, SExp
}
int16_t
type
=
0
;
int16_t
bytes
=
0
;
u
int16_t
bytes
=
0
;
// parse the arithmetic expression
if
(
pExprs
[
i
].
base
.
functionId
==
TSDB_FUNC_SCALAR_EXPR
)
{
...
...
@@ -9834,7 +9834,7 @@ int32_t createIndirectQueryFuncExprFromMsg(SQueryTableMsg* pQueryMsg, int32_t nu
pExprs
[
i
].
base
.
resType
=
0
;
int16_t
type
=
0
;
int
16
_t
bytes
=
0
;
int
32
_t
bytes
=
0
;
// parse the arithmetic expression
if
(
pExprs
[
i
].
base
.
functionId
==
TSDB_FUNC_SCALAR_EXPR
)
{
...
...
src/query/src/qPercentile.c
浏览文件 @
9ddff93b
...
...
@@ -268,7 +268,7 @@ tMemBucket *tMemBucketCreate(uint16_t nElemSize, int16_t dataType, double minval
return
NULL
;
}
qDebug
(
"MemBucket:%p, elem size:%
d"
,
pBucket
,
pBucket
->
bytes
);
qDebug
(
"MemBucket:%p, elem size:%
"
PRIu16
,
pBucket
,
pBucket
->
bytes
);
return
pBucket
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录