Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
136bc379
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看板
提交
136bc379
编写于
7月 03, 2023
作者:
wmmhello
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:ignore delete info
上级
20e616d5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
191 addition
and
88 deletion
+191
-88
source/dnode/vnode/src/tq/tqRead.c
source/dnode/vnode/src/tq/tqRead.c
+1
-1
tests/system-test/7-tmq/tmq_taosx.py
tests/system-test/7-tmq/tmq_taosx.py
+13
-0
utils/test/c/tmq_taosx_ci.c
utils/test/c/tmq_taosx_ci.c
+177
-87
未找到文件。
source/dnode/vnode/src/tq/tqRead.c
浏览文件 @
136bc379
...
...
@@ -218,7 +218,7 @@ int32_t tqFetchLog(STQ* pTq, STqHandle* pHandle, int64_t* fetchOffset, SWalCkHea
}
else
{
if
(
pHandle
->
fetchMeta
!=
WITH_DATA
)
{
SWalCont
*
pHead
=
&
((
*
ppCkHead
)
->
head
);
if
(
IS_META_MSG
(
pHead
->
msgType
))
{
if
(
IS_META_MSG
(
pHead
->
msgType
)
&&
!
(
pHead
->
msgType
==
TDMT_VND_DELETE
&&
pHandle
->
fetchMeta
==
ONLY_META
)
)
{
code
=
walFetchBody
(
pHandle
->
pWalReader
,
ppCkHead
);
if
(
code
<
0
)
{
*
fetchOffset
=
offset
;
...
...
tests/system-test/7-tmq/tmq_taosx.py
浏览文件 @
136bc379
...
...
@@ -220,6 +220,17 @@ class TDTestCase:
return
def
checkWal1VgroupOnlyMeta
(
self
):
buildPath
=
tdCom
.
getBuildPath
()
cfgPath
=
tdCom
.
getClientCfgPath
()
cmdStr
=
'%s/build/bin/tmq_taosx_ci -c %s -sv 1 -dv 1 -d -onlymeta'
%
(
buildPath
,
cfgPath
)
tdLog
.
info
(
cmdStr
)
os
.
system
(
cmdStr
)
self
.
checkJson
(
cfgPath
,
"tmq_taosx_tmp"
)
return
def
checkWal1VgroupTable
(
self
):
buildPath
=
tdCom
.
getBuildPath
()
cfgPath
=
tdCom
.
getClientCfgPath
()
...
...
@@ -301,6 +312,8 @@ class TDTestCase:
def
run
(
self
):
tdSql
.
prepare
()
self
.
checkWal1VgroupOnlyMeta
()
self
.
checkWal1Vgroup
()
self
.
checkSnapshot1Vgroup
()
...
...
utils/test/c/tmq_taosx_ci.c
浏览文件 @
136bc379
...
...
@@ -697,95 +697,185 @@ void initLogFile() {
}
}
}
else
{
if
(
g_conf
.
subTable
)
{
char
*
result
[]
=
{
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
meters_summary
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
_"
"wstart
\"
,
\"
type
\"
:9},{
\"
name
\"
:
\"
current
\"
,
\"
type
\"
:6},{
\"
name
\"
:
\"
groupid
\"
,
\"
type
\"
:4},{
\"
name
\"
:"
"
\"
location
\"
,
\"
type
\"
:8,
\"
length
\"
:16}],
\"
tags
\"
:[{
\"
name
\"
:
\"
group_id
\"
,
\"
type
\"
:14}]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
t_d2a450ee819dcf7576f0282d9ac22dbc
\"
,
\"
using
\"
:"
"
\"
meters_summary
\"
,
\"
tagNum
\"
:1,
\"
tags
\"
:[{
\"
name
\"
:
\"
group_id
\"
,
\"
type
\"
:14,
\"
value
\"
:1.313555008277358e+"
"19}],
\"
createList
\"
:[]}"
};
for
(
int
i
=
0
;
i
<
sizeof
(
result
)
/
sizeof
(
result
[
0
]);
i
++
)
{
taosFprintfFile
(
pFile2
,
result
[
i
]);
taosFprintfFile
(
pFile2
,
"
\n
"
);
if
(
g_conf
.
meta
)
{
if
(
g_conf
.
subTable
){
}
else
{
char
*
result
[]
=
{
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
tb1
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:"
"9},{
\"
name
\"
:
\"
c1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
c2
\"
,
\"
type
\"
:4}],
\"
tags
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
st1
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:9}"
",{
\"
name
\"
:
\"
c1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
c2
\"
,
\"
type
\"
:6},{
\"
name
\"
:
\"
c3
\"
,
\"
type
\"
:8,
\"
length
\"
:16}],"
"
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
length
\"
:8},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:"
"1}]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
ct0
\"
,
\"
using
\"
:
\"
st1
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:["
"{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:1000},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:
\"\\\"
ttt
\\\"\"
},{"
"
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}],
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
ct1
\"
,
\"
using
\"
:
\"
st1
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:["
"{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:2000}],
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
ct2
\"
,
\"
using
\"
:
\"
st1
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:["
"],
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
ct3
\"
,
\"
using
\"
:
\"
st1
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:["
"{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:3000}],
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
st1
\"
,
\"
alterType
\"
:5,
\"
colName
\"
:
\"
c4
\"
,"
"
\"
colType
\"
:5}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
st1
\"
,
\"
alterType
\"
:7,
\"
colName
\"
:
\"
c3
\"
,"
"
\"
colType
\"
:8,
\"
colLength
\"
:64}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
st1
\"
,
\"
alterType
\"
:1,
\"
colName
\"
:
\"
t2
\"
,"
"
\"
colType
\"
:8,
\"
colLength
\"
:64}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
ct3
\"
,
\"
alterType
\"
:4,
\"
colName
\"
:
\"
t1
\"
,"
"
\"
colValue
\"
:
\"
5000
\"
,
\"
colValueNull
\"
:false}"
,
"{
\"
type
\"
:
\"
drop
\"
,
\"
tableNameList
\"
:[
\"
ct3
\"
,
\"
ct1
\"
]}"
,
"{
\"
type
\"
:
\"
drop
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
st1
\"
}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:9}"
",{
\"
name
\"
:
\"
c1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
c2
\"
,
\"
type
\"
:10,
\"
length
\"
:4}],
\"
tags
\"
:[]}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
alterType
\"
:5,
\"
colName
\"
:
\"
c3
\"
,"
"
\"
colType
\"
:5}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
alterType
\"
:7,
\"
colName
\"
:
\"
c2
\"
,"
"
\"
colType
\"
:10,
\"
colLength
\"
:8}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
alterType
\"
:10,
\"
colName
\"
:
\"
c3
\"
,"
"
\"
colNewName
\"
:
\"
cc3
\"
}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
alterType
\"
:9}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
alterType
\"
:6,
\"
colName
\"
:
\"
c1
\"
}"
,
"{
\"
type
\"
:
\"
drop
\"
,
\"
tableNameList
\"
:[
\"
n1
\"
]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
jt
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:9},"
"{
\"
name
\"
:
\"
i
\"
,
\"
type
\"
:4}],
\"
tags
\"
:[{
\"
name
\"
:
\"
t
\"
,
\"
type
\"
:15}]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
jt1
\"
,
\"
using
\"
:
\"
jt
\"
,
\"
tagNum
\"
:1,
\"
tags
\"
:[{"
"
\"
name
\"
:
\"
t
\"
,
\"
type
\"
:15,
\"
value
\"
:
\"
{
\\\"
k1
\\\"
:1,
\\\"
k2
\\\"
:
\\\"
hello
\\\"
}
\"
}],
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
jt2
\"
,
\"
using
\"
:
\"
jt
\"
,
\"
tagNum
\"
:1,
\"
tags
\"
:[]"
",
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
st1
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:9},"
"{
\"
name
\"
:
\"
c1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
c2
\"
,
\"
type
\"
:6},{
\"
name
\"
:
\"
c3
\"
,
\"
type
\"
:8,
\"
length
\"
:16}],"
"
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
length
\"
:8},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1}]}"
,
"{
\"
type
\"
:
\"
drop
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
st1
\"
}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
stt
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:9}"
",{
\"
name
\"
:
\"
c1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
c2
\"
,
\"
type
\"
:6},{
\"
name
\"
:
\"
c3
\"
,
\"
type
\"
:8,
\"
length
\"
:16}],"
"
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
length
\"
:8},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:"
"1}]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
sttb
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:"
"9},{
\"
name
\"
:
\"
c1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
c2
\"
,
\"
type
\"
:6},{
\"
name
\"
:
\"
c3
\"
,
\"
type
\"
:8,
\"
length
\"
:16}],"
"
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
length
\"
:8},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:"
"1}]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
stt1
\"
,
\"
using
\"
:
\"
stt
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:"
"[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:2},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:
\"\\\"
stt1
\\\"\"
},{"
"
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}],
\"
createList
\"
:[{
\"
tableName
\"
:
\"
stt1
\"
,
\"
using
\"
:
\"
stt
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:2},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
stt1
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]},{
\"
tableName
\"
:
\"
sttb1
\"
,
\"
using
\"
:
\"
sttb
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:4},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
sttb1
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]},{
\"
tableName
\"
:
\"
stt2
\"
,
\"
using
\"
:
\"
stt
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:43},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
stt2
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:0}]},{
\"
tableName
\"
:
\"
sttb2
\"
,
\"
using
\"
:
\"
sttb
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:54},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
sttb2
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]}]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
stt3
\"
,
\"
using
\"
:
\"
stt
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:"
"[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:23},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:
\"\\\"
stt3
\\\"\"
},{"
"
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}],
\"
createList
\"
:[{
\"
tableName
\"
:
\"
stt3
\"
,
\"
using
\"
:
\"
stt
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:23},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
stt3
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]},{
\"
tableName
\"
:
\"
sttb3
\"
,
\"
using
\"
:
\"
sttb
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:4},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
sttb3
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]},{
\"
tableName
\"
:
\"
stt4
\"
,
\"
using
\"
:
\"
stt
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:433},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
stt4
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:0}]},{
\"
tableName
\"
:
\"
sttb4
\"
,
\"
using
\"
:
\"
sttb
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:543},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
sttb4
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]}]}"
};
for
(
int
i
=
0
;
i
<
sizeof
(
result
)
/
sizeof
(
result
[
0
]);
i
++
)
{
taosFprintfFile
(
pFile2
,
result
[
i
]);
taosFprintfFile
(
pFile2
,
"
\n
"
);
}
}
}
else
{
char
*
result
[]
=
{
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
tb1
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:"
"9},{
\"
name
\"
:
\"
c1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
c2
\"
,
\"
type
\"
:4}],
\"
tags
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
st1
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:9}"
",{
\"
name
\"
:
\"
c1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
c2
\"
,
\"
type
\"
:6},{
\"
name
\"
:
\"
c3
\"
,
\"
type
\"
:8,
\"
length
\"
:16}],"
"
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
length
\"
:8},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:"
"1}]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
ct0
\"
,
\"
using
\"
:
\"
st1
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:["
"{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:1000},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:
\"\\\"
ttt
\\\"\"
},{"
"
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}],
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
ct1
\"
,
\"
using
\"
:
\"
st1
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:["
"{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:2000}],
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
ct2
\"
,
\"
using
\"
:
\"
st1
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:["
"],
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
ct3
\"
,
\"
using
\"
:
\"
st1
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:["
"{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:3000}],
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
st1
\"
,
\"
alterType
\"
:5,
\"
colName
\"
:
\"
c4
\"
,"
"
\"
colType
\"
:5}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
st1
\"
,
\"
alterType
\"
:7,
\"
colName
\"
:
\"
c3
\"
,"
"
\"
colType
\"
:8,
\"
colLength
\"
:64}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
st1
\"
,
\"
alterType
\"
:1,
\"
colName
\"
:
\"
t2
\"
,"
"
\"
colType
\"
:8,
\"
colLength
\"
:64}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
ct3
\"
,
\"
alterType
\"
:4,
\"
colName
\"
:
\"
t1
\"
,"
"
\"
colValue
\"
:
\"
5000
\"
,
\"
colValueNull
\"
:false}"
,
"{
\"
type
\"
:
\"
delete
\"
,
\"
sql
\"
:
\"
delete from `ct3` where `ts` >= 1626006833600 and `ts` <= 1626006833605
\"
}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:9}"
",{
\"
name
\"
:
\"
c1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
c2
\"
,
\"
type
\"
:10,
\"
length
\"
:4}],
\"
tags
\"
:[]}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
alterType
\"
:5,
\"
colName
\"
:
\"
c3
\"
,"
"
\"
colType
\"
:5}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
alterType
\"
:7,
\"
colName
\"
:
\"
c2
\"
,"
"
\"
colType
\"
:10,
\"
colLength
\"
:8}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
alterType
\"
:10,
\"
colName
\"
:
\"
c3
\"
,"
"
\"
colNewName
\"
:
\"
cc3
\"
}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
alterType
\"
:9}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
alterType
\"
:6,
\"
colName
\"
:
\"
c1
\"
}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
jt
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:9},"
"{
\"
name
\"
:
\"
i
\"
,
\"
type
\"
:4}],
\"
tags
\"
:[{
\"
name
\"
:
\"
t
\"
,
\"
type
\"
:15}]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
jt1
\"
,
\"
using
\"
:
\"
jt
\"
,
\"
tagNum
\"
:1,
\"
tags
\"
:[{"
"
\"
name
\"
:
\"
t
\"
,
\"
type
\"
:15,
\"
value
\"
:
\"
{
\\\"
k1
\\\"
:1,
\\\"
k2
\\\"
:
\\\"
hello
\\\"
}
\"
}],
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
jt2
\"
,
\"
using
\"
:
\"
jt
\"
,
\"
tagNum
\"
:1,
\"
tags
\"
:[]"
",
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
stt
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:9}"
",{
\"
name
\"
:
\"
c1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
c2
\"
,
\"
type
\"
:6},{
\"
name
\"
:
\"
c3
\"
,
\"
type
\"
:8,
\"
length
\"
:16}],"
"
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
length
\"
:8},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:"
"1}]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
sttb
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:"
"9},{
\"
name
\"
:
\"
c1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
c2
\"
,
\"
type
\"
:6},{
\"
name
\"
:
\"
c3
\"
,
\"
type
\"
:8,
\"
length
\"
:16}],"
"
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
length
\"
:8},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:"
"1}]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
stt1
\"
,
\"
using
\"
:
\"
stt
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:"
"[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:2},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:
\"\\\"
stt1
\\\"\"
},{"
"
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}],
\"
createList
\"
:[{
\"
tableName
\"
:
\"
stt1
\"
,
\"
using
\"
:
\"
stt
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:2},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
stt1
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]},{
\"
tableName
\"
:
\"
sttb1
\"
,
\"
using
\"
:
\"
sttb
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:4},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
sttb1
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]},{
\"
tableName
\"
:
\"
stt2
\"
,
\"
using
\"
:
\"
stt
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:43},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
stt2
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:0}]},{
\"
tableName
\"
:
\"
sttb2
\"
,
\"
using
\"
:
\"
sttb
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:54},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
sttb2
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]}]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
stt3
\"
,
\"
using
\"
:
\"
stt
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:"
"[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:23},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:
\"\\\"
stt3
\\\"\"
},{"
"
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}],
\"
createList
\"
:[{
\"
tableName
\"
:
\"
stt3
\"
,
\"
using
\"
:
\"
stt
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:23},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
stt3
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]},{
\"
tableName
\"
:
\"
sttb3
\"
,
\"
using
\"
:
\"
sttb
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:4},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
sttb3
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]},{
\"
tableName
\"
:
\"
stt4
\"
,
\"
using
\"
:
\"
stt
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:433},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
stt4
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:0}]},{
\"
tableName
\"
:
\"
sttb4
\"
,
\"
using
\"
:
\"
sttb
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:543},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
sttb4
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]}]}"
};
for
(
int
i
=
0
;
i
<
sizeof
(
result
)
/
sizeof
(
result
[
0
]);
i
++
)
{
taosFprintfFile
(
pFile2
,
result
[
i
]);
taosFprintfFile
(
pFile2
,
"
\n
"
);
if
(
g_conf
.
subTable
)
{
char
*
result
[]
=
{
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
meters_summary
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
_"
"wstart
\"
,
\"
type
\"
:9},{
\"
name
\"
:
\"
current
\"
,
\"
type
\"
:6},{
\"
name
\"
:
\"
groupid
\"
,
\"
type
\"
:4},{
\"
name
\"
:"
"
\"
location
\"
,
\"
type
\"
:8,
\"
length
\"
:16}],
\"
tags
\"
:[{
\"
name
\"
:
\"
group_id
\"
,
\"
type
\"
:14}]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
t_d2a450ee819dcf7576f0282d9ac22dbc
\"
,
\"
using
\"
:"
"
\"
meters_summary
\"
,
\"
tagNum
\"
:1,
\"
tags
\"
:[{
\"
name
\"
:
\"
group_id
\"
,
\"
type
\"
:14,
\"
value
\"
:1.313555008277358e+"
"19}],
\"
createList
\"
:[]}"
};
for
(
int
i
=
0
;
i
<
sizeof
(
result
)
/
sizeof
(
result
[
0
]);
i
++
)
{
taosFprintfFile
(
pFile2
,
result
[
i
]);
taosFprintfFile
(
pFile2
,
"
\n
"
);
}
}
else
{
char
*
result
[]
=
{
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
tb1
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:"
"9},{
\"
name
\"
:
\"
c1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
c2
\"
,
\"
type
\"
:4}],
\"
tags
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
st1
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:9}"
",{
\"
name
\"
:
\"
c1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
c2
\"
,
\"
type
\"
:6},{
\"
name
\"
:
\"
c3
\"
,
\"
type
\"
:8,
\"
length
\"
:16}],"
"
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
length
\"
:8},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:"
"1}]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
ct0
\"
,
\"
using
\"
:
\"
st1
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:["
"{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:1000},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:
\"\\\"
ttt
\\\"\"
},{"
"
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}],
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
ct1
\"
,
\"
using
\"
:
\"
st1
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:["
"{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:2000}],
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
ct2
\"
,
\"
using
\"
:
\"
st1
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:["
"],
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
ct3
\"
,
\"
using
\"
:
\"
st1
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:["
"{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:3000}],
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
st1
\"
,
\"
alterType
\"
:5,
\"
colName
\"
:
\"
c4
\"
,"
"
\"
colType
\"
:5}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
st1
\"
,
\"
alterType
\"
:7,
\"
colName
\"
:
\"
c3
\"
,"
"
\"
colType
\"
:8,
\"
colLength
\"
:64}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
st1
\"
,
\"
alterType
\"
:1,
\"
colName
\"
:
\"
t2
\"
,"
"
\"
colType
\"
:8,
\"
colLength
\"
:64}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
ct3
\"
,
\"
alterType
\"
:4,
\"
colName
\"
:
\"
t1
\"
,"
"
\"
colValue
\"
:
\"
5000
\"
,
\"
colValueNull
\"
:false}"
,
"{
\"
type
\"
:
\"
delete
\"
,
\"
sql
\"
:
\"
delete from `ct3` where `ts` >= 1626006833600 and `ts` <= 1626006833605
\"
}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:9}"
",{
\"
name
\"
:
\"
c1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
c2
\"
,
\"
type
\"
:10,
\"
length
\"
:4}],
\"
tags
\"
:[]}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
alterType
\"
:5,
\"
colName
\"
:
\"
c3
\"
,"
"
\"
colType
\"
:5}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
alterType
\"
:7,
\"
colName
\"
:
\"
c2
\"
,"
"
\"
colType
\"
:10,
\"
colLength
\"
:8}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
alterType
\"
:10,
\"
colName
\"
:
\"
c3
\"
,"
"
\"
colNewName
\"
:
\"
cc3
\"
}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
alterType
\"
:9}"
,
"{
\"
type
\"
:
\"
alter
\"
,
\"
tableType
\"
:
\"
normal
\"
,
\"
tableName
\"
:
\"
n1
\"
,
\"
alterType
\"
:6,
\"
colName
\"
:
\"
c1
\"
}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
jt
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:9},"
"{
\"
name
\"
:
\"
i
\"
,
\"
type
\"
:4}],
\"
tags
\"
:[{
\"
name
\"
:
\"
t
\"
,
\"
type
\"
:15}]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
jt1
\"
,
\"
using
\"
:
\"
jt
\"
,
\"
tagNum
\"
:1,
\"
tags
\"
:[{"
"
\"
name
\"
:
\"
t
\"
,
\"
type
\"
:15,
\"
value
\"
:
\"
{
\\\"
k1
\\\"
:1,
\\\"
k2
\\\"
:
\\\"
hello
\\\"
}
\"
}],
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
jt2
\"
,
\"
using
\"
:
\"
jt
\"
,
\"
tagNum
\"
:1,
\"
tags
\"
:[]"
",
\"
createList
\"
:[]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
stt
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:9}"
",{
\"
name
\"
:
\"
c1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
c2
\"
,
\"
type
\"
:6},{
\"
name
\"
:
\"
c3
\"
,
\"
type
\"
:8,
\"
length
\"
:16}],"
"
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
length
\"
:8},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:"
"1}]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
super
\"
,
\"
tableName
\"
:
\"
sttb
\"
,
\"
columns
\"
:[{
\"
name
\"
:
\"
ts
\"
,
\"
type
\"
:"
"9},{
\"
name
\"
:
\"
c1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
c2
\"
,
\"
type
\"
:6},{
\"
name
\"
:
\"
c3
\"
,
\"
type
\"
:8,
\"
length
\"
:16}],"
"
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
length
\"
:8},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:"
"1}]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
stt1
\"
,
\"
using
\"
:
\"
stt
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:"
"[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:2},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:
\"\\\"
stt1
\\\"\"
},{"
"
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}],
\"
createList
\"
:[{
\"
tableName
\"
:
\"
stt1
\"
,
\"
using
\"
:
\"
stt
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:2},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
stt1
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]},{
\"
tableName
\"
:
\"
sttb1
\"
,
\"
using
\"
:
\"
sttb
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:4},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
sttb1
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]},{
\"
tableName
\"
:
\"
stt2
\"
,
\"
using
\"
:
\"
stt
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:43},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
stt2
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:0}]},{
\"
tableName
\"
:
\"
sttb2
\"
,
\"
using
\"
:
\"
sttb
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:54},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
sttb2
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]}]}"
,
"{
\"
type
\"
:
\"
create
\"
,
\"
tableType
\"
:
\"
child
\"
,
\"
tableName
\"
:
\"
stt3
\"
,
\"
using
\"
:
\"
stt
\"
,
\"
tagNum
\"
:3,
\"
tags
\"
:"
"[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:23},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:
\"\\\"
stt3
\\\"\"
},{"
"
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}],
\"
createList
\"
:[{
\"
tableName
\"
:
\"
stt3
\"
,
\"
using
\"
:
\"
stt
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:23},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
stt3
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]},{
\"
tableName
\"
:
\"
sttb3
\"
,
\"
using
\"
:
\"
sttb
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:4},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
sttb3
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]},{
\"
tableName
\"
:
\"
stt4
\"
,
\"
using
\"
:
\"
stt
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:433},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
stt4
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:0}]},{
\"
tableName
\"
:
\"
sttb4
\"
,
\"
using
\"
:
\"
sttb
\"
,"
"
\"
tagNum
\"
:3,
\"
tags
\"
:[{
\"
name
\"
:
\"
t1
\"
,
\"
type
\"
:4,
\"
value
\"
:543},{
\"
name
\"
:
\"
t3
\"
,
\"
type
\"
:10,
\"
value
\"
:"
"
\"\\\"
sttb4
\\\"\"
},{
\"
name
\"
:
\"
t4
\"
,
\"
type
\"
:1,
\"
value
\"
:1}]}]}"
};
for
(
int
i
=
0
;
i
<
sizeof
(
result
)
/
sizeof
(
result
[
0
]);
i
++
)
{
taosFprintfFile
(
pFile2
,
result
[
i
]);
taosFprintfFile
(
pFile2
,
"
\n
"
);
}
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录