Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
cb554920
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22017
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看板
提交
cb554920
编写于
9月 29, 2022
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
差异文件
Merge branch '3.0' of
https://github.com/taosdata/TDengine
into feat/stream_compression
上级
768ec894
aaf32548
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
23 addition
and
21 deletion
+23
-21
docs/en/14-reference/_telegraf.mdx
docs/en/14-reference/_telegraf.mdx
+0
-1
docs/en/25-application/01-telegraf.md
docs/en/25-application/01-telegraf.md
+0
-1
docs/zh/14-reference/_telegraf.mdx
docs/zh/14-reference/_telegraf.mdx
+0
-1
docs/zh/25-application/01-telegraf.md
docs/zh/25-application/01-telegraf.md
+0
-1
source/dnode/vnode/src/tsdb/tsdbRead.c
source/dnode/vnode/src/tsdb/tsdbRead.c
+15
-11
source/libs/function/src/tudf.c
source/libs/function/src/tudf.c
+2
-0
source/libs/function/src/udfd.c
source/libs/function/src/udfd.c
+1
-1
utils/test/c/sml_test.c
utils/test/c/sml_test.c
+5
-5
未找到文件。
docs/en/14-reference/_telegraf.mdx
浏览文件 @
cb554920
...
...
@@ -22,5 +22,4 @@ An example is as follows.
username = "root"
password = "taosdata"
data_format = "influx"
influx_max_line_bytes = 250
```
docs/en/25-application/01-telegraf.md
浏览文件 @
cb554920
...
...
@@ -60,7 +60,6 @@ For the configuration method, add the following text to `/etc/telegraf/telegraf.
username = "<TDengine's username>"
password = "<TDengine's password>"
data_format = "influx"
influx_max_line_bytes = 250
```
Then restart telegraf:
...
...
docs/zh/14-reference/_telegraf.mdx
浏览文件 @
cb554920
...
...
@@ -22,6 +22,5 @@
username = "root"
password = "taosdata"
data_format = "influx"
influx_max_line_bytes = 250
```
docs/zh/25-application/01-telegraf.md
浏览文件 @
cb554920
...
...
@@ -61,7 +61,6 @@ IT 运维监测数据通常都是对时间特性比较敏感的数据,例如
username = "<TDengine's username>"
password = "<TDengine's password>"
data_format = "influx"
influx_max_line_bytes = 250
```
然后重启 Telegraf:
...
...
source/dnode/vnode/src/tsdb/tsdbRead.c
浏览文件 @
cb554920
...
...
@@ -486,7 +486,7 @@ static int32_t tsdbReaderCreate(SVnode* pVnode, SQueryTableDataCond* pCond, STsd
pReader
->
pTsdb
=
getTsdbByRetentions
(
pVnode
,
pCond
->
twindows
.
skey
,
pVnode
->
config
.
tsdbCfg
.
retentions
,
idstr
,
&
level
);
pReader
->
suid
=
pCond
->
suid
;
pReader
->
order
=
pCond
->
order
;
pReader
->
capacity
=
4096
;
pReader
->
capacity
=
capacity
;
pReader
->
idStr
=
(
idstr
!=
NULL
)
?
strdup
(
idstr
)
:
NULL
;
pReader
->
verRange
=
getQueryVerRange
(
pVnode
,
pCond
,
level
);
pReader
->
type
=
pCond
->
type
;
...
...
@@ -841,14 +841,18 @@ static int32_t copyBlockDataToSDataBlock(STsdbReader* pReader, STableBlockScanIn
bool
asc
=
ASCENDING_TRAVERSE
(
pReader
->
order
);
int32_t
step
=
asc
?
1
:
-
1
;
if
(
asc
&&
pReader
->
window
.
skey
<=
pBlock
->
minKey
.
ts
)
{
pDumpInfo
->
rowIndex
=
0
;
}
else
if
(
!
asc
&&
pReader
->
window
.
ekey
>=
pBlock
->
maxKey
.
ts
)
{
pDumpInfo
->
rowIndex
=
pBlock
->
nRow
-
1
;
}
else
{
int32_t
pos
=
asc
?
pBlock
->
nRow
-
1
:
0
;
int32_t
order
=
(
pReader
->
order
==
TSDB_ORDER_ASC
)
?
TSDB_ORDER_DESC
:
TSDB_ORDER_ASC
;
pDumpInfo
->
rowIndex
=
doBinarySearchKey
(
pBlockData
->
aTSKEY
,
pBlock
->
nRow
,
pos
,
pReader
->
window
.
skey
,
order
);
if
((
pDumpInfo
->
rowIndex
==
0
&&
asc
)
||
(
pDumpInfo
->
rowIndex
==
pBlock
->
nRow
-
1
&&
(
!
asc
)))
{
if
(
asc
&&
pReader
->
window
.
skey
<=
pBlock
->
minKey
.
ts
)
{
//pDumpInfo->rowIndex = 0;
}
else
if
(
!
asc
&&
pReader
->
window
.
ekey
>=
pBlock
->
maxKey
.
ts
)
{
//pDumpInfo->rowIndex = pBlock->nRow - 1;
}
else
{
int32_t
pos
=
asc
?
pBlock
->
nRow
-
1
:
0
;
int32_t
order
=
(
pReader
->
order
==
TSDB_ORDER_ASC
)
?
TSDB_ORDER_DESC
:
TSDB_ORDER_ASC
;
pDumpInfo
->
rowIndex
=
doBinarySearchKey
(
pBlockData
->
aTSKEY
,
pBlock
->
nRow
,
pos
,
pReader
->
window
.
skey
,
order
);
}
}
// time window check
...
...
@@ -932,8 +936,8 @@ static int32_t copyBlockDataToSDataBlock(STsdbReader* pReader, STableBlockScanIn
pDumpInfo
->
rowIndex
+=
step
*
remain
;
if
(
pDumpInfo
->
rowIndex
>=
0
&&
pDumpInfo
->
rowIndex
<
pBlock
->
nRow
)
{
int64_t
ts
=
pBlockData
->
aTSKEY
[
pDumpInfo
->
rowIndex
];
setBlockAllDumped
(
pDumpInfo
,
ts
,
pReader
->
order
);
//
int64_t ts = pBlockData->aTSKEY[pDumpInfo->rowIndex];
//
setBlockAllDumped(pDumpInfo, ts, pReader->order);
}
else
{
int64_t
k
=
asc
?
pBlock
->
maxKey
.
ts
:
pBlock
->
minKey
.
ts
;
setBlockAllDumped
(
pDumpInfo
,
k
,
pReader
->
order
);
...
...
source/libs/function/src/tudf.c
浏览文件 @
cb554920
...
...
@@ -1656,6 +1656,8 @@ int32_t doSetupUdf(char udfName[], UdfcFuncHandle *funcHandle) {
int32_t
errCode
=
udfcRunUdfUvTask
(
task
,
UV_TASK_CONNECT
);
if
(
errCode
!=
0
)
{
fnError
(
"failed to connect to pipe. udfName: %s, pipe: %s"
,
udfName
,
(
&
gUdfdProxy
)
->
udfdPipeName
);
taosMemoryFree
(
task
->
session
);
taosMemoryFree
(
task
);
return
TSDB_CODE_UDF_PIPE_CONNECT_ERR
;
}
...
...
source/libs/function/src/udfd.c
浏览文件 @
cb554920
...
...
@@ -960,7 +960,7 @@ int32_t udfdInitResidentFuncs() {
char
*
token
;
while
((
token
=
strtok_r
(
pSave
,
","
,
&
pSave
))
!=
NULL
)
{
char
func
[
TSDB_FUNC_NAME_LEN
]
=
{
0
};
strncpy
(
func
,
token
,
s
trlen
(
token
));
strncpy
(
func
,
token
,
s
izeof
(
func
));
taosArrayPush
(
global
.
residentFuncs
,
func
);
}
...
...
utils/test/c/sml_test.c
浏览文件 @
cb554920
...
...
@@ -879,7 +879,7 @@ int sml_16960_Test() {
"{"
"
\"
timestamp
\"
:"
""
"{
\"
value
\"
: 1
349020800
000,
\"
type
\"
:
\"
ms
\"
}"
"{
\"
value
\"
: 1
664418955
000,
\"
type
\"
:
\"
ms
\"
}"
","
"
\"
value
\"
:"
""
...
...
@@ -916,7 +916,7 @@ int sml_16960_Test() {
"{"
"
\"
timestamp
\"
:"
""
"{
\"
value
\"
: 1
349020800
001,
\"
type
\"
:
\"
ms
\"
}"
"{
\"
value
\"
: 1
664418955
001,
\"
type
\"
:
\"
ms
\"
}"
","
"
\"
value
\"
:"
""
...
...
@@ -953,7 +953,7 @@ int sml_16960_Test() {
"{"
"
\"
timestamp
\"
:"
""
"{
\"
value
\"
: 1
349020800
002,
\"
type
\"
:
\"
ms
\"
}"
"{
\"
value
\"
: 1
664418955
002,
\"
type
\"
:
\"
ms
\"
}"
","
"
\"
value
\"
:"
""
...
...
@@ -990,7 +990,7 @@ int sml_16960_Test() {
"{"
"
\"
timestamp
\"
:"
""
"{
\"
value
\"
: 1
349020800
003,
\"
type
\"
:
\"
ms
\"
}"
"{
\"
value
\"
: 1
664418955
003,
\"
type
\"
:
\"
ms
\"
}"
","
"
\"
value
\"
:"
""
...
...
@@ -1027,7 +1027,7 @@ int sml_16960_Test() {
"{"
"
\"
timestamp
\"
:"
""
"{
\"
value
\"
: 1
349020800
004,
\"
type
\"
:
\"
ms
\"
}"
"{
\"
value
\"
: 1
664418955
004,
\"
type
\"
:
\"
ms
\"
}"
","
"
\"
value
\"
:"
""
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录