Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
24090f01
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看板
提交
24090f01
编写于
10月 21, 2021
作者:
H
Haojun Liao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[td-10564] Fix compiler error.
上级
0671a3ff
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
17 addition
and
14 deletion
+17
-14
include/common/common.h
include/common/common.h
+2
-0
include/libs/function/function.h
include/libs/function/function.h
+1
-0
include/util/tpagedfile.h
include/util/tpagedfile.h
+2
-2
source/libs/function/inc/taggfunction.h
source/libs/function/inc/taggfunction.h
+1
-1
source/libs/function/inc/tpercentile.h
source/libs/function/inc/tpercentile.h
+2
-3
source/libs/function/inc/ttszip.h
source/libs/function/inc/ttszip.h
+5
-5
source/libs/function/src/tpercentile.c
source/libs/function/src/tpercentile.c
+2
-1
source/util/src/tpagedfile.c
source/util/src/tpagedfile.c
+2
-2
未找到文件。
include/common/common.h
浏览文件 @
24090f01
...
...
@@ -17,6 +17,8 @@
#define TDENGINE_COMMON_H
#include "taosdef.h"
#include "taosmsg.h"
#include "tarray.h"
//typedef struct STimeWindow {
// TSKEY skey;
...
...
include/libs/function/function.h
浏览文件 @
24090f01
...
...
@@ -21,6 +21,7 @@ extern "C" {
#endif
#include "common.h"
#include "tvariant.h"
#define FUNCTION_SCALAR 1
#define FUNCTION_AGG 2
...
...
include/util/tpagedfile.h
浏览文件 @
24090f01
...
...
@@ -93,7 +93,7 @@ typedef struct SFilePage {
* @param handle
* @return
*/
int32_t
createDiskbasedResultBuffer
(
SDiskbasedResultBuf
**
pResultBuf
,
int32_t
pagesize
,
int32_t
inMemBufSize
,
uint64_t
qId
);
int32_t
createDiskbasedResultBuffer
(
SDiskbasedResultBuf
**
pResultBuf
,
int32_t
pagesize
,
int32_t
inMemBufSize
,
uint64_t
qId
,
const
char
*
dir
);
/**
*
...
...
@@ -118,7 +118,7 @@ SIDList getDataBufPagesIdList(SDiskbasedResultBuf* pResultBuf, int32_t groupId);
* @param id
* @return
*/
t
FilePage
*
getResBufPage
(
SDiskbasedResultBuf
*
pResultBuf
,
int32_t
id
);
S
FilePage
*
getResBufPage
(
SDiskbasedResultBuf
*
pResultBuf
,
int32_t
id
);
/**
* release the referenced buf pages
...
...
source/libs/function/inc/taggfunction.h
浏览文件 @
24090f01
...
...
@@ -73,7 +73,7 @@ enum {
#define QUERY_IS_FREE_RESOURCE(type) (((type)&TSDB_QUERY_TYPE_FREE_RESOURCE) != 0)
typedef
struct
SArithmeticSupport
{
SExprInfo
*
pExprInfo
;
struct
SExprInfo
*
pExprInfo
;
int32_t
numOfCols
;
SColumnInfo
*
colList
;
void
*
exprList
;
// client side used
...
...
source/libs/function/inc/tpercentile.h
浏览文件 @
24090f01
...
...
@@ -20,8 +20,7 @@
extern
"C"
{
#endif
#include "qExtbuffer.h"
#include "qResultbuf.h"
#include "tpagedfile.h"
#include "ttszip.h"
typedef
struct
MinMaxEntry
{
...
...
@@ -40,7 +39,7 @@ typedef struct MinMaxEntry {
typedef
struct
{
int32_t
size
;
int32_t
pageId
;
t
FilePage
*
data
;
S
FilePage
*
data
;
}
SSlotInfo
;
typedef
struct
tMemBucketSlot
{
...
...
source/libs/function/inc/ttszip.h
浏览文件 @
24090f01
...
...
@@ -37,7 +37,7 @@ typedef struct STSList {
typedef
struct
STSElem
{
TSKEY
ts
;
t
Variant
*
tag
;
S
Variant
*
tag
;
int32_t
id
;
}
STSElem
;
...
...
@@ -49,7 +49,7 @@ typedef struct STSCursor {
}
STSCursor
;
typedef
struct
STSBlock
{
t
Variant
tag
;
// tag value
S
Variant
tag
;
// tag value
int32_t
numOfElem
;
// number of elements
int32_t
compLen
;
// size after compressed
int32_t
padding
;
// 0xFFFFFFFF by default, after the payload
...
...
@@ -105,7 +105,7 @@ STSBuf* tsBufCreateFromCompBlocks(const char* pData, int32_t numOfBlocks, int32_
void
*
tsBufDestroy
(
STSBuf
*
pTSBuf
);
void
tsBufAppend
(
STSBuf
*
pTSBuf
,
int32_t
id
,
t
Variant
*
tag
,
const
char
*
pData
,
int32_t
len
);
void
tsBufAppend
(
STSBuf
*
pTSBuf
,
int32_t
id
,
S
Variant
*
tag
,
const
char
*
pData
,
int32_t
len
);
int32_t
tsBufMerge
(
STSBuf
*
pDestBuf
,
const
STSBuf
*
pSrcBuf
);
STSBuf
*
tsBufClone
(
STSBuf
*
pTSBuf
);
...
...
@@ -117,7 +117,7 @@ void tsBufResetPos(STSBuf* pTSBuf);
bool
tsBufNextPos
(
STSBuf
*
pTSBuf
);
STSElem
tsBufGetElem
(
STSBuf
*
pTSBuf
);
STSElem
tsBufGetElemStartPos
(
STSBuf
*
pTSBuf
,
int32_t
id
,
t
Variant
*
tag
);
STSElem
tsBufGetElemStartPos
(
STSBuf
*
pTSBuf
,
int32_t
id
,
S
Variant
*
tag
);
STSCursor
tsBufGetCursor
(
STSBuf
*
pTSBuf
);
void
tsBufSetTraverseOrder
(
STSBuf
*
pTSBuf
,
int32_t
order
);
...
...
@@ -136,7 +136,7 @@ void tsBufGetGroupIdList(STSBuf* pTSBuf, int32_t* num, int32_t** id);
int32_t
dumpFileBlockByGroupId
(
STSBuf
*
pTSBuf
,
int32_t
id
,
void
*
buf
,
int32_t
*
len
,
int32_t
*
numOfBlocks
);
STSElem
tsBufFindElemStartPosByTag
(
STSBuf
*
pTSBuf
,
t
Variant
*
pTag
);
STSElem
tsBufFindElemStartPosByTag
(
STSBuf
*
pTSBuf
,
S
Variant
*
pTag
);
bool
tsBufIsValidElem
(
STSElem
*
pElem
);
...
...
source/libs/function/src/tpercentile.c
浏览文件 @
24090f01
...
...
@@ -12,6 +12,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <tglobal.h>
#include "os.h"
#include "tpercentile.h"
...
...
@@ -253,7 +254,7 @@ tMemBucket *tMemBucketCreate(int16_t nElemSize, int16_t dataType, double minval,
resetSlotInfo
(
pBucket
);
int32_t
ret
=
createDiskbasedResultBuffer
(
&
pBucket
->
pBuffer
,
pBucket
->
bufPageSize
,
pBucket
->
bufPageSize
*
512
,
1
);
int32_t
ret
=
createDiskbasedResultBuffer
(
&
pBucket
->
pBuffer
,
pBucket
->
bufPageSize
,
pBucket
->
bufPageSize
*
512
,
1
,
tsTempDir
);
if
(
ret
!=
0
)
{
tMemBucketDestroy
(
pBucket
);
return
NULL
;
...
...
source/util/src/tpagedfile.c
浏览文件 @
24090f01
...
...
@@ -7,7 +7,7 @@
#define GET_DATA_PAYLOAD(_p) ((char *)(_p)->pData + POINTER_BYTES)
#define NO_IN_MEM_AVAILABLE_PAGES(_b) (listNEles((_b)->lruList) >= (_b)->inMemPages)
int32_t
createDiskbasedResultBuffer
(
SDiskbasedResultBuf
**
pResultBuf
,
int32_t
pagesize
,
int32_t
inMemBufSize
,
uint64_t
qId
)
{
int32_t
createDiskbasedResultBuffer
(
SDiskbasedResultBuf
**
pResultBuf
,
int32_t
pagesize
,
int32_t
inMemBufSize
,
uint64_t
qId
,
const
char
*
dir
)
{
*
pResultBuf
=
calloc
(
1
,
sizeof
(
SDiskbasedResultBuf
));
SDiskbasedResultBuf
*
pResBuf
=
*
pResultBuf
;
...
...
@@ -36,7 +36,7 @@ int32_t createDiskbasedResultBuffer(SDiskbasedResultBuf** pResultBuf, int32_t pa
pResBuf
->
all
=
taosHashInit
(
10
,
taosGetDefaultHashFunction
(
TSDB_DATA_TYPE_INT
),
true
,
false
);
char
path
[
PATH_MAX
]
=
{
0
};
taosGetTmpfilePath
(
"qbuf"
,
path
);
taosGetTmpfilePath
(
dir
,
"qbuf"
,
path
);
pResBuf
->
path
=
strdup
(
path
);
pResBuf
->
emptyDummyIdList
=
taosArrayInit
(
1
,
sizeof
(
int32_t
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录