test: taosdump functest for 3.0 (#15981)
* test: update taostools 0ad4712 * fix: update b46a3cf taostools * test: remove nextedquery/nestedqueryjson.py * test: remove unused taosdemo test casese * test: update cmake/taostools_CMakeLists.txt.in with 78e877a * test: update cmake/taostools_CMakeLists.txt.in * test: update taostools 79bf23d for 3.0
This commit is contained in:
parent
c76e218df1
commit
270f24c3d7
|
@ -2,7 +2,7 @@
|
||||||
# taos-tools
|
# taos-tools
|
||||||
ExternalProject_Add(taos-tools
|
ExternalProject_Add(taos-tools
|
||||||
GIT_REPOSITORY https://github.com/taosdata/taos-tools.git
|
GIT_REPOSITORY https://github.com/taosdata/taos-tools.git
|
||||||
GIT_TAG 57bdfbf
|
GIT_TAG 79bf23d
|
||||||
SOURCE_DIR "${TD_SOURCE_DIR}/tools/taos-tools"
|
SOURCE_DIR "${TD_SOURCE_DIR}/tools/taos-tools"
|
||||||
BINARY_DIR ""
|
BINARY_DIR ""
|
||||||
#BUILD_IN_SOURCE TRUE
|
#BUILD_IN_SOURCE TRUE
|
||||||
|
|
|
@ -1,62 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file":"./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"num_of_records_per_req": 1000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "stb0_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 100000,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1,
|
|
||||||
"timestamp_step": 1000,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./tools/taosdemoAllTest/sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT", "count":1}, {"type": "BINARY", "len": 16, "count":1}, {"type": "BOOL"}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":1}, {"type": "BINARY", "len": 16, "count":1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,81 +0,0 @@
|
||||||
###################################################################
|
|
||||||
# Copyright (c) 2016 by TAOS Technologies, Inc.
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# This file is proprietary and confidential to TAOS Technologies.
|
|
||||||
# No part of this file may be reproduced, stored, transmitted,
|
|
||||||
# disclosed or used in any form or by any means other than as
|
|
||||||
# expressly provided by the written permission from Jianhui Tao
|
|
||||||
#
|
|
||||||
###################################################################
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
from util.log import *
|
|
||||||
from util.cases import *
|
|
||||||
from util.sql import *
|
|
||||||
from util.dnodes import *
|
|
||||||
|
|
||||||
|
|
||||||
class TDTestCase:
|
|
||||||
def init(self, conn, logSql):
|
|
||||||
tdLog.debug("start to execute %s" % __file__)
|
|
||||||
tdSql.init(conn.cursor(), logSql)
|
|
||||||
|
|
||||||
def getBuildPath(self):
|
|
||||||
selfPath = os.path.dirname(os.path.realpath(__file__))
|
|
||||||
|
|
||||||
if ("community" in selfPath):
|
|
||||||
projPath = selfPath[:selfPath.find("community")]
|
|
||||||
else:
|
|
||||||
projPath = selfPath[:selfPath.find("tests")]
|
|
||||||
|
|
||||||
for root, dirs, files in os.walk(projPath):
|
|
||||||
if ("taosd" in files):
|
|
||||||
rootRealPath = os.path.dirname(os.path.realpath(root))
|
|
||||||
if ("packaging" not in rootRealPath):
|
|
||||||
buildPath = root[:len(root)-len("/build/bin")]
|
|
||||||
break
|
|
||||||
return buildPath
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
buildPath = self.getBuildPath()
|
|
||||||
if (buildPath == ""):
|
|
||||||
tdLog.exit("taosd not found!")
|
|
||||||
else:
|
|
||||||
tdLog.info("taosd found in %s" % buildPath)
|
|
||||||
binPath = buildPath+ "/build/bin/"
|
|
||||||
|
|
||||||
# insert: create one or mutiple tables per sql and insert multiple rows per sql
|
|
||||||
os.system("%staosdemo -f query/nestedQuery/insertData.json -y " % binPath)
|
|
||||||
tdSql.execute("use db")
|
|
||||||
tdSql.query("select count (tbname) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 1000)
|
|
||||||
tdSql.query("select count (tbname) from stb1")
|
|
||||||
tdSql.checkData(0, 0, 1000)
|
|
||||||
tdSql.query("select count(*) from stb00_0")
|
|
||||||
tdSql.checkData(0, 0, 100)
|
|
||||||
tdSql.query("select count(*) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 100000)
|
|
||||||
tdSql.query("select count(*) from stb01_1")
|
|
||||||
tdSql.checkData(0, 0, 200)
|
|
||||||
tdSql.query("select count(*) from stb1")
|
|
||||||
tdSql.checkData(0, 0, 200000)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
testcaseFilename = os.path.split(__file__)[-1]
|
|
||||||
os.system("rm -rf ./insert_res.txt")
|
|
||||||
os.system("rm -rf query/nestedQuery/%s.sql" % testcaseFilename )
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def stop(self):
|
|
||||||
tdSql.close()
|
|
||||||
tdLog.success("%s successfully executed" % __file__)
|
|
||||||
|
|
||||||
|
|
||||||
tdCases.addWindows(__file__, TDTestCase())
|
|
||||||
tdCases.addLinux(__file__, TDTestCase())
|
|
|
@ -1,3 +0,0 @@
|
||||||
1
|
|
||||||
2
|
|
||||||
3
|
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,100 +0,0 @@
|
||||||
8.855,"binary_str0" ,1626870128248246976
|
|
||||||
8.75,"binary_str1" ,1626870128249060032
|
|
||||||
5.44,"binary_str2" ,1626870128249067968
|
|
||||||
8.45,"binary_str3" ,1626870128249072064
|
|
||||||
4.07,"binary_str4" ,1626870128249075904
|
|
||||||
6.97,"binary_str5" ,1626870128249078976
|
|
||||||
6.86,"binary_str6" ,1626870128249082048
|
|
||||||
1.585,"binary_str7" ,1626870128249085120
|
|
||||||
1.4,"binary_str8" ,1626870128249087936
|
|
||||||
5.135,"binary_str9" ,1626870128249092032
|
|
||||||
3.15,"binary_str10" ,1626870128249095104
|
|
||||||
1.765,"binary_str11" ,1626870128249097920
|
|
||||||
7.71,"binary_str12" ,1626870128249100992
|
|
||||||
3.91,"binary_str13" ,1626870128249104064
|
|
||||||
5.615,"binary_str14" ,1626870128249106880
|
|
||||||
9.495,"binary_str15" ,1626870128249109952
|
|
||||||
3.825,"binary_str16" ,1626870128249113024
|
|
||||||
1.94,"binary_str17" ,1626870128249117120
|
|
||||||
5.385,"binary_str18" ,1626870128249119936
|
|
||||||
7.075,"binary_str19" ,1626870128249123008
|
|
||||||
5.715,"binary_str20" ,1626870128249126080
|
|
||||||
1.83,"binary_str21" ,1626870128249128896
|
|
||||||
6.365,"binary_str22" ,1626870128249131968
|
|
||||||
6.55,"binary_str23" ,1626870128249135040
|
|
||||||
6.315,"binary_str24" ,1626870128249138112
|
|
||||||
3.82,"binary_str25" ,1626870128249140928
|
|
||||||
2.455,"binary_str26" ,1626870128249145024
|
|
||||||
7.795,"binary_str27" ,1626870128249148096
|
|
||||||
2.47,"binary_str28" ,1626870128249150912
|
|
||||||
1.37,"binary_str29" ,1626870128249155008
|
|
||||||
5.39,"binary_str30" ,1626870128249158080
|
|
||||||
5.13,"binary_str31" ,1626870128249160896
|
|
||||||
4.09,"binary_str32" ,1626870128249163968
|
|
||||||
5.855,"binary_str33" ,1626870128249167040
|
|
||||||
0.17,"binary_str34" ,1626870128249170112
|
|
||||||
1.955,"binary_str35" ,1626870128249173952
|
|
||||||
0.585,"binary_str36" ,1626870128249178048
|
|
||||||
0.33,"binary_str37" ,1626870128249181120
|
|
||||||
7.925,"binary_str38" ,1626870128249183936
|
|
||||||
9.685,"binary_str39" ,1626870128249187008
|
|
||||||
2.6,"binary_str40" ,1626870128249191104
|
|
||||||
5.705,"binary_str41" ,1626870128249193920
|
|
||||||
3.965,"binary_str42" ,1626870128249196992
|
|
||||||
4.43,"binary_str43" ,1626870128249200064
|
|
||||||
8.73,"binary_str44" ,1626870128249202880
|
|
||||||
3.105,"binary_str45" ,1626870128249205952
|
|
||||||
9.39,"binary_str46" ,1626870128249209024
|
|
||||||
2.825,"binary_str47" ,1626870128249212096
|
|
||||||
9.675,"binary_str48" ,1626870128249214912
|
|
||||||
9.99,"binary_str49" ,1626870128249217984
|
|
||||||
4.51,"binary_str50" ,1626870128249221056
|
|
||||||
4.94,"binary_str51" ,1626870128249223872
|
|
||||||
7.72,"binary_str52" ,1626870128249226944
|
|
||||||
4.135,"binary_str53" ,1626870128249231040
|
|
||||||
2.325,"binary_str54" ,1626870128249234112
|
|
||||||
4.585,"binary_str55" ,1626870128249236928
|
|
||||||
8.76,"binary_str56" ,1626870128249240000
|
|
||||||
4.715,"binary_str57" ,1626870128249243072
|
|
||||||
0.56,"binary_str58" ,1626870128249245888
|
|
||||||
5.35,"binary_str59" ,1626870128249249984
|
|
||||||
5.075,"binary_str60" ,1626870128249253056
|
|
||||||
6.665,"binary_str61" ,1626870128249256128
|
|
||||||
7.13,"binary_str62" ,1626870128249258944
|
|
||||||
2.775,"binary_str63" ,1626870128249262016
|
|
||||||
5.775,"binary_str64" ,1626870128249265088
|
|
||||||
1.62,"binary_str65" ,1626870128249267904
|
|
||||||
1.625,"binary_str66" ,1626870128249270976
|
|
||||||
8.15,"binary_str67" ,1626870128249274048
|
|
||||||
0.75,"binary_str68" ,1626870128249277120
|
|
||||||
3.265,"binary_str69" ,1626870128249280960
|
|
||||||
8.585,"binary_str70" ,1626870128249284032
|
|
||||||
1.88,"binary_str71" ,1626870128249287104
|
|
||||||
8.44,"binary_str72" ,1626870128249289920
|
|
||||||
5.12,"binary_str73" ,1626870128249295040
|
|
||||||
2.58,"binary_str74" ,1626870128249298112
|
|
||||||
9.42,"binary_str75" ,1626870128249300928
|
|
||||||
1.765,"binary_str76" ,1626870128249304000
|
|
||||||
2.66,"binary_str77" ,1626870128249308096
|
|
||||||
1.405,"binary_str78" ,1626870128249310912
|
|
||||||
5.595,"binary_str79" ,1626870128249315008
|
|
||||||
2.28,"binary_str80" ,1626870128249318080
|
|
||||||
9.24,"binary_str81" ,1626870128249320896
|
|
||||||
9.03,"binary_str82" ,1626870128249323968
|
|
||||||
6.055,"binary_str83" ,1626870128249327040
|
|
||||||
1.74,"binary_str84" ,1626870128249330112
|
|
||||||
5.77,"binary_str85" ,1626870128249332928
|
|
||||||
1.97,"binary_str86" ,1626870128249336000
|
|
||||||
0.3,"binary_str87" ,1626870128249339072
|
|
||||||
7.145,"binary_str88" ,1626870128249342912
|
|
||||||
0.88,"binary_str89" ,1626870128249345984
|
|
||||||
8.025,"binary_str90" ,1626870128249349056
|
|
||||||
4.81,"binary_str91" ,1626870128249351872
|
|
||||||
0.725,"binary_str92" ,1626870128249355968
|
|
||||||
3.85,"binary_str93" ,1626870128249359040
|
|
||||||
9.455,"binary_str94" ,1626870128249362112
|
|
||||||
2.265,"binary_str95" ,1626870128249364928
|
|
||||||
3.985,"binary_str96" ,1626870128249368000
|
|
||||||
9.375,"binary_str97" ,1626870128249371072
|
|
||||||
0.2,"binary_str98" ,1626870128249373888
|
|
||||||
6.95,"binary_str99" ,1626870128249377984
|
|
Can't render this file because it contains an unexpected character in line 1 and column 19.
|
|
@ -1,100 +0,0 @@
|
||||||
"string0",7,8.615
|
|
||||||
"string1",4,9.895
|
|
||||||
"string2",3,2.92
|
|
||||||
"string3",3,5.62
|
|
||||||
"string4",7,1.615
|
|
||||||
"string5",6,1.45
|
|
||||||
"string6",5,7.48
|
|
||||||
"string7",7,3.01
|
|
||||||
"string8",5,4.76
|
|
||||||
"string9",10,7.09
|
|
||||||
"string10",2,8.38
|
|
||||||
"string11",7,8.65
|
|
||||||
"string12",5,5.025
|
|
||||||
"string13",10,5.765
|
|
||||||
"string14",2,4.57
|
|
||||||
"string15",2,1.03
|
|
||||||
"string16",7,6.98
|
|
||||||
"string17",10,0.23
|
|
||||||
"string18",7,5.815
|
|
||||||
"string19",1,2.37
|
|
||||||
"string20",10,8.865
|
|
||||||
"string21",3,1.235
|
|
||||||
"string22",2,8.62
|
|
||||||
"string23",9,1.045
|
|
||||||
"string24",8,4.34
|
|
||||||
"string25",1,5.455
|
|
||||||
"string26",2,4.475
|
|
||||||
"string27",1,6.95
|
|
||||||
"string28",2,3.39
|
|
||||||
"string29",3,6.79
|
|
||||||
"string30",7,9.735
|
|
||||||
"string31",1,9.79
|
|
||||||
"string32",10,9.955
|
|
||||||
"string33",1,5.095
|
|
||||||
"string34",3,3.86
|
|
||||||
"string35",9,5.105
|
|
||||||
"string36",10,4.22
|
|
||||||
"string37",1,2.78
|
|
||||||
"string38",9,6.345
|
|
||||||
"string39",1,0.975
|
|
||||||
"string40",5,6.16
|
|
||||||
"string41",4,7.735
|
|
||||||
"string42",5,6.6
|
|
||||||
"string43",8,2.845
|
|
||||||
"string44",1,0.655
|
|
||||||
"string45",3,2.995
|
|
||||||
"string46",9,3.6
|
|
||||||
"string47",8,3.47
|
|
||||||
"string48",3,7.98
|
|
||||||
"string49",6,2.225
|
|
||||||
"string50",9,5.44
|
|
||||||
"string51",4,6.335
|
|
||||||
"string52",3,2.955
|
|
||||||
"string53",1,0.565
|
|
||||||
"string54",6,5.575
|
|
||||||
"string55",6,9.905
|
|
||||||
"string56",9,6.025
|
|
||||||
"string57",8,0.94
|
|
||||||
"string58",10,0.15
|
|
||||||
"string59",8,1.555
|
|
||||||
"string60",4,2.28
|
|
||||||
"string61",2,8.29
|
|
||||||
"string62",9,6.22
|
|
||||||
"string63",6,3.35
|
|
||||||
"string64",10,6.7
|
|
||||||
"string65",3,9.345
|
|
||||||
"string66",7,9.815
|
|
||||||
"string67",1,5.365
|
|
||||||
"string68",10,3.81
|
|
||||||
"string69",1,6.405
|
|
||||||
"string70",8,2.715
|
|
||||||
"string71",3,8.58
|
|
||||||
"string72",8,6.34
|
|
||||||
"string73",2,7.49
|
|
||||||
"string74",4,8.64
|
|
||||||
"string75",3,8.995
|
|
||||||
"string76",7,3.465
|
|
||||||
"string77",1,7.64
|
|
||||||
"string78",6,3.65
|
|
||||||
"string79",6,1.4
|
|
||||||
"string80",6,5.875
|
|
||||||
"string81",2,1.22
|
|
||||||
"string82",5,7.87
|
|
||||||
"string83",9,8.41
|
|
||||||
"string84",9,8.9
|
|
||||||
"string85",9,3.89
|
|
||||||
"string86",2,5.0
|
|
||||||
"string87",2,4.495
|
|
||||||
"string88",4,2.835
|
|
||||||
"string89",3,5.895
|
|
||||||
"string90",7,8.41
|
|
||||||
"string91",5,5.125
|
|
||||||
"string92",7,9.165
|
|
||||||
"string93",5,8.315
|
|
||||||
"string94",10,7.485
|
|
||||||
"string95",7,4.635
|
|
||||||
"string96",2,6.015
|
|
||||||
"string97",8,0.595
|
|
||||||
"string98",3,8.79
|
|
||||||
"string99",4,1.72
|
|
|
|
@ -1,63 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 10,
|
|
||||||
"create_table_thread_count": 10,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 1000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "testdb3",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 3600,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "tb0_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 100,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1000,
|
|
||||||
"start_timestamp": "2021-07-01 00:00:00.000",
|
|
||||||
"sample_format": "",
|
|
||||||
"sample_file": "",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":3}, {"type": "BINARY", "len": 16, "count":2}, {"type": "BINARY", "len": 32, "count":2},
|
|
||||||
{"type": "TIMESTAMP"}, {"type": "BIGINT", "count":3},{"type": "FLOAT", "count":1},{"type": "SMALLINT", "count":1},{"type": "TINYINT", "count":1},
|
|
||||||
{"type": "BOOL"},{"type": "NCHAR","len":16}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5},{"type": "NCHAR","len":16, "count":1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,63 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 10,
|
|
||||||
"create_table_thread_count": 10,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 1000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "testdb1",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ns",
|
|
||||||
"keep": 3600,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "tb0_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 100,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1000,
|
|
||||||
"start_timestamp": "2021-07-01 00:00:00.000",
|
|
||||||
"sample_format": "",
|
|
||||||
"sample_file": "",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":3}, {"type": "BINARY", "len": 16, "count":2}, {"type": "BINARY", "len": 32, "count":2},
|
|
||||||
{"type": "TIMESTAMP"}, {"type": "BIGINT", "count":3},{"type": "FLOAT", "count":1},{"type": "SMALLINT", "count":1},{"type": "TINYINT", "count":1},
|
|
||||||
{"type": "BOOL"},{"type": "NCHAR","len":16}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5},{"type": "NCHAR","len":16, "count":1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,63 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 10,
|
|
||||||
"create_table_thread_count": 10,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 1000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "testdb2",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "us",
|
|
||||||
"keep": 3600,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "tb0_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 100,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1000,
|
|
||||||
"start_timestamp": "2021-07-01 00:00:00.000",
|
|
||||||
"sample_format": "",
|
|
||||||
"sample_file": "",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":3}, {"type": "BINARY", "len": 16, "count":2}, {"type": "BINARY", "len": 32, "count":2},
|
|
||||||
{"type": "TIMESTAMP"}, {"type": "BIGINT", "count":3},{"type": "FLOAT", "count":1},{"type": "SMALLINT", "count":1},{"type": "TINYINT", "count":1},
|
|
||||||
{"type": "BOOL"},{"type": "NCHAR","len":16}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5},{"type": "NCHAR","len":16, "count":1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,115 +0,0 @@
|
||||||
###################################################################
|
|
||||||
# Copyright (c) 2016 by TAOS Technologies, Inc.
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# This file is proprietary and confidential to TAOS Technologies.
|
|
||||||
# No part of this file may be reproduced, stored, transmitted,
|
|
||||||
# disclosed or used in any form or by any means other than as
|
|
||||||
# expressly provided by the written permission from Jianhui Tao
|
|
||||||
#
|
|
||||||
###################################################################
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
from util.log import *
|
|
||||||
from util.cases import *
|
|
||||||
from util.sql import *
|
|
||||||
from util.dnodes import *
|
|
||||||
|
|
||||||
|
|
||||||
class TDTestCase:
|
|
||||||
def init(self, conn, logSql):
|
|
||||||
tdLog.debug("start to execute %s" % __file__)
|
|
||||||
tdSql.init(conn.cursor(), logSql)
|
|
||||||
|
|
||||||
def getBuildPath(self):
|
|
||||||
selfPath = os.path.dirname(os.path.realpath(__file__))
|
|
||||||
|
|
||||||
if ("community" in selfPath):
|
|
||||||
projPath = selfPath[:selfPath.find("community")]
|
|
||||||
else:
|
|
||||||
projPath = selfPath[:selfPath.find("tests")]
|
|
||||||
|
|
||||||
for root, dirs, files in os.walk(projPath):
|
|
||||||
if ("taosd" in files):
|
|
||||||
rootRealPath = os.path.dirname(os.path.realpath(root))
|
|
||||||
if ("packaging" not in rootRealPath):
|
|
||||||
buildPath = root[:len(root)-len("/build/bin")]
|
|
||||||
break
|
|
||||||
return buildPath
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
buildPath = self.getBuildPath()
|
|
||||||
if (buildPath == ""):
|
|
||||||
tdLog.exit("taosd not found!")
|
|
||||||
else:
|
|
||||||
tdLog.info("taosd found in %s" % buildPath)
|
|
||||||
binPath = buildPath+ "/build/bin/"
|
|
||||||
|
|
||||||
# insert: create one or mutiple tables per sql and insert multiple rows per sql
|
|
||||||
|
|
||||||
# check the params of taosdemo about time_step is nano
|
|
||||||
os.system("%staosdemo -f tools/taosdemoAllTest/NanoTestCase/taosdemoInsertNanoDB.json -y " % binPath)
|
|
||||||
tdSql.execute("use testdb1")
|
|
||||||
tdSql.query("show stables")
|
|
||||||
tdSql.checkData(0, 4, 100)
|
|
||||||
tdSql.query("select count (tbname) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 100)
|
|
||||||
tdSql.query("select count(*) from tb0_0")
|
|
||||||
tdSql.checkData(0, 0, 100)
|
|
||||||
tdSql.query("select count(*) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 10000)
|
|
||||||
tdSql.query("describe stb0")
|
|
||||||
tdSql.getData(9, 1)
|
|
||||||
tdSql.checkDataType(9, 1,"TIMESTAMP")
|
|
||||||
tdSql.query("select last(ts) from stb0")
|
|
||||||
tdSql.checkData(0, 0,"2021-07-01 00:00:00.000099000")
|
|
||||||
|
|
||||||
# check the params of taosdemo about time_step is us
|
|
||||||
os.system("%staosdemo -f tools/taosdemoAllTest/NanoTestCase/taosdemoInsertUSDB.json -y " % binPath)
|
|
||||||
tdSql.execute("use testdb2")
|
|
||||||
tdSql.query("show stables")
|
|
||||||
tdSql.checkData(0, 4, 100)
|
|
||||||
tdSql.query("select count (tbname) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 100)
|
|
||||||
tdSql.query("select count(*) from tb0_0")
|
|
||||||
tdSql.checkData(0, 0, 100)
|
|
||||||
tdSql.query("select count(*) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 10000)
|
|
||||||
tdSql.query("describe stb0")
|
|
||||||
tdSql.getData(9, 1)
|
|
||||||
tdSql.checkDataType(9, 1,"TIMESTAMP")
|
|
||||||
tdSql.query("select last(ts) from stb0")
|
|
||||||
tdSql.checkData(0, 0,"2021-07-01 00:00:00.099000")
|
|
||||||
|
|
||||||
# check the params of taosdemo about time_step is ms
|
|
||||||
os.system("%staosdemo -f tools/taosdemoAllTest/NanoTestCase/taosdemoInsertMSDB.json -y " % binPath)
|
|
||||||
tdSql.execute("use testdb3")
|
|
||||||
tdSql.query("show stables")
|
|
||||||
tdSql.checkData(0, 4, 100)
|
|
||||||
tdSql.query("select count (tbname) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 100)
|
|
||||||
tdSql.query("select count(*) from tb0_0")
|
|
||||||
tdSql.checkData(0, 0, 100)
|
|
||||||
tdSql.query("select count(*) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 10000)
|
|
||||||
tdSql.query("describe stb0")
|
|
||||||
tdSql.checkDataType(9, 1,"TIMESTAMP")
|
|
||||||
tdSql.query("select last(ts) from stb0")
|
|
||||||
tdSql.checkData(0, 0,"2021-07-01 00:01:39.000")
|
|
||||||
|
|
||||||
|
|
||||||
os.system("rm -rf ./res.txt")
|
|
||||||
os.system("rm -rf ./*.py.sql")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def stop(self):
|
|
||||||
tdSql.close()
|
|
||||||
tdLog.success("%s successfully executed" % __file__)
|
|
||||||
|
|
||||||
|
|
||||||
tdCases.addWindows(__file__, TDTestCase())
|
|
||||||
tdCases.addLinux(__file__, TDTestCase())
|
|
|
@ -1,88 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 10,
|
|
||||||
"create_table_thread_count": 10,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 1000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "nsdb",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ns",
|
|
||||||
"keep": 3600,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "tb0_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 100,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10000000,
|
|
||||||
"start_timestamp": "2021-07-01 00:00:00.000",
|
|
||||||
"sample_format": "",
|
|
||||||
"sample_file": "",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":3}, {"type": "BINARY", "len": 16, "count":2}, {"type": "BINARY", "len": 32, "count":2},
|
|
||||||
{"type": "TIMESTAMP"}, {"type": "BIGINT", "count":3},{"type": "FLOAT", "count":1},{"type": "SMALLINT", "count":1},{"type": "TINYINT", "count":1},
|
|
||||||
{"type": "BOOL"},{"type": "NCHAR","len":16}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5},{"type": "NCHAR","len":16, "count":1}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "tb1_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 100,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 10,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10000000,
|
|
||||||
"start_timestamp": "2021-07-01 00:00:00.000",
|
|
||||||
"sample_format": "",
|
|
||||||
"sample_file": "",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":3}, {"type": "BINARY", "len": 16, "count":2}, {"type": "BINARY", "len": 32, "count":2},
|
|
||||||
{"type": "TIMESTAMP"}, {"type": "BIGINT", "count":3},{"type": "FLOAT", "count":1},{"type": "SMALLINT", "count":1},{"type": "TINYINT", "count":1},
|
|
||||||
{"type": "BOOL"},{"type": "NCHAR","len":16}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5},{"type": "NCHAR","len":16, "count":1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,84 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 10,
|
|
||||||
"create_table_thread_count": 10,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 1000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "subnsdb",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ns",
|
|
||||||
"keep": 3600,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "tb0_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "samples",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10000000,
|
|
||||||
"start_timestamp": "2021-07-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./tools/taosdemoAllTest/NanoTestCase/nano_samples.csv",
|
|
||||||
"tags_file": "./tools/taosdemoAllTest/NanoTestCase/nano_sampletags.csv",
|
|
||||||
"columns": [{"type": "DOUBLE"}, {"type": "BINARY", "len": 64, "count":1}, {"type": "TIMESTAMP", "count":1}],
|
|
||||||
"tags": [{"type": "BINARY", "len": 16, "count":1},{"type": "INT"},{"type": "DOUBLE"}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "tb1_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "samples",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 10,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10000000,
|
|
||||||
"start_timestamp": "2021-07-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./tools/taosdemoAllTest/NanoTestCase/nano_samples.csv",
|
|
||||||
"tags_file": "./tools/taosdemoAllTest/NanoTestCase/nano_sampletags.csv",
|
|
||||||
"columns": [{"type": "DOUBLE"}, {"type": "BINARY", "len": 64, "count":1}, {"type": "TIMESTAMP", "count":1}],
|
|
||||||
"tags": [{"type": "BINARY", "len": 16, "count":1},{"type": "INT"},{"type": "DOUBLE"}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,62 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 10,
|
|
||||||
"create_table_thread_count": 10,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 1000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "nsdb2",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ns",
|
|
||||||
"keep": 3600,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "tb0_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 100,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10,
|
|
||||||
"start_timestamp": "now",
|
|
||||||
"sample_format": "",
|
|
||||||
"sample_file": "",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":3}, {"type": "BINARY", "len": 16, "count":2}, {"type": "BINARY", "len": 32, "count":2},
|
|
||||||
{"type": "TIMESTAMP"}, {"type": "BIGINT", "count":3},{"type": "FLOAT", "count":1},{"type": "SMALLINT", "count":1},{"type": "TINYINT", "count":1},
|
|
||||||
{"type": "BOOL"},{"type": "NCHAR","len":16}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5},{"type": "NCHAR","len":16, "count":1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,84 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 10,
|
|
||||||
"create_table_thread_count": 10,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 1000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "nsdbcsv",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ns",
|
|
||||||
"keep": 3600,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "tb0_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "samples",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 100,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10000000,
|
|
||||||
"start_timestamp": "2021-07-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./tools/taosdemoAllTest/NanoTestCase/nano_samples.csv",
|
|
||||||
"tags_file": "./tools/taosdemoAllTest/NanoTestCase/nano_sampletags.csv",
|
|
||||||
"columns": [{"type": "DOUBLE"}, {"type": "BINARY", "len": 64, "count":1}, {"type": "TIMESTAMP", "count":1}],
|
|
||||||
"tags": [{"type": "BINARY", "len": 16, "count":1},{"type": "INT"},{"type": "DOUBLE"}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "tb1_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "samples",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 100,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 10,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10000000,
|
|
||||||
"start_timestamp": "2021-07-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./tools/taosdemoAllTest/NanoTestCase/nano_samples.csv",
|
|
||||||
"tags_file": "./tools/taosdemoAllTest/NanoTestCase/nano_sampletags.csv",
|
|
||||||
"columns": [{"type": "DOUBLE"}, {"type": "BINARY", "len": 64, "count":1}, {"type": "TIMESTAMP", "count":1}],
|
|
||||||
"tags": [{"type": "BINARY", "len": 16, "count":1},{"type": "INT"},{"type": "DOUBLE"}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,169 +0,0 @@
|
||||||
###################################################################
|
|
||||||
# Copyright (c) 2016 by TAOS Technologies, Inc.
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# This file is proprietary and confidential to TAOS Technologies.
|
|
||||||
# No part of this file may be reproduced, stored, transmitted,
|
|
||||||
# disclosed or used in any form or by any means other than as
|
|
||||||
# expressly provided by the written permission from Jianhui Tao
|
|
||||||
#
|
|
||||||
###################################################################
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
from util.log import *
|
|
||||||
from util.cases import *
|
|
||||||
from util.sql import *
|
|
||||||
from util.dnodes import *
|
|
||||||
|
|
||||||
|
|
||||||
class TDTestCase:
|
|
||||||
def init(self, conn, logSql):
|
|
||||||
tdLog.debug("start to execute %s" % __file__)
|
|
||||||
tdSql.init(conn.cursor(), logSql)
|
|
||||||
|
|
||||||
def getBuildPath(self):
|
|
||||||
selfPath = os.path.dirname(os.path.realpath(__file__))
|
|
||||||
|
|
||||||
if ("community" in selfPath):
|
|
||||||
projPath = selfPath[:selfPath.find("community")]
|
|
||||||
else:
|
|
||||||
projPath = selfPath[:selfPath.find("tests")]
|
|
||||||
|
|
||||||
for root, dirs, files in os.walk(projPath):
|
|
||||||
if ("taosd" in files):
|
|
||||||
rootRealPath = os.path.dirname(os.path.realpath(root))
|
|
||||||
if ("packaging" not in rootRealPath):
|
|
||||||
buildPath = root[:len(root) - len("/build/bin")]
|
|
||||||
break
|
|
||||||
return buildPath
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
buildPath = self.getBuildPath()
|
|
||||||
if (buildPath == ""):
|
|
||||||
tdLog.exit("taosd not found!")
|
|
||||||
else:
|
|
||||||
tdLog.info("taosd found in %s" % buildPath)
|
|
||||||
binPath = buildPath + "/build/bin/"
|
|
||||||
|
|
||||||
# insert: create one or mutiple tables per sql and insert multiple rows per sql
|
|
||||||
# insert data from a special timestamp
|
|
||||||
# check stable stb0
|
|
||||||
|
|
||||||
os.system(
|
|
||||||
"%staosdemo -f tools/taosdemoAllTest/NanoTestCase/taosdemoTestNanoDatabase.json -y " %
|
|
||||||
binPath)
|
|
||||||
tdSql.execute("use nsdb")
|
|
||||||
tdSql.query("show stables")
|
|
||||||
tdSql.checkData(0, 4, 100)
|
|
||||||
tdSql.query("select count (tbname) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 100)
|
|
||||||
tdSql.query("select count(*) from tb0_0")
|
|
||||||
tdSql.checkData(0, 0, 100)
|
|
||||||
tdSql.query("select count(*) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 10000)
|
|
||||||
tdSql.query("describe stb0")
|
|
||||||
tdSql.checkDataType(9, 1, "TIMESTAMP")
|
|
||||||
tdSql.query("select last(ts) from stb0")
|
|
||||||
tdSql.checkData(0, 0, "2021-07-01 00:00:00.990000000")
|
|
||||||
|
|
||||||
# check stable stb1 which is insert with disord
|
|
||||||
|
|
||||||
tdSql.query("select count (tbname) from stb1")
|
|
||||||
tdSql.checkData(0, 0, 100)
|
|
||||||
tdSql.query("select count(*) from tb1_0")
|
|
||||||
tdSql.checkData(0, 0, 100)
|
|
||||||
tdSql.query("select count(*) from stb1")
|
|
||||||
tdSql.checkData(0, 0, 10000)
|
|
||||||
# check c8 is an nano timestamp
|
|
||||||
tdSql.query("describe stb1")
|
|
||||||
tdSql.checkDataType(9, 1, "TIMESTAMP")
|
|
||||||
# check insert timestamp_step is nano_second
|
|
||||||
tdSql.query("select last(ts) from stb1")
|
|
||||||
tdSql.checkData(0, 0, "2021-07-01 00:00:00.990000000")
|
|
||||||
|
|
||||||
# insert data from now time
|
|
||||||
|
|
||||||
# check stable stb0
|
|
||||||
os.system(
|
|
||||||
"%staosdemo -f tools/taosdemoAllTest/NanoTestCase/taosdemoTestNanoDatabaseNow.json -y " %
|
|
||||||
binPath)
|
|
||||||
|
|
||||||
tdSql.execute("use nsdb2")
|
|
||||||
tdSql.query("show stables")
|
|
||||||
tdSql.checkData(0, 4, 100)
|
|
||||||
tdSql.query("select count (tbname) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 100)
|
|
||||||
tdSql.query("select count(*) from tb0_0")
|
|
||||||
tdSql.checkData(0, 0, 100)
|
|
||||||
tdSql.query("select count(*) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 10000)
|
|
||||||
# check c8 is an nano timestamp
|
|
||||||
tdSql.query("describe stb0")
|
|
||||||
tdSql.checkDataType(9, 1, "TIMESTAMP")
|
|
||||||
|
|
||||||
# insert by csv files and timetamp is long int , strings in ts and
|
|
||||||
# cols
|
|
||||||
|
|
||||||
os.system(
|
|
||||||
"%staosdemo -f tools/taosdemoAllTest/NanoTestCase/taosdemoTestNanoDatabasecsv.json -y " %
|
|
||||||
binPath)
|
|
||||||
tdSql.execute("use nsdbcsv")
|
|
||||||
tdSql.query("show stables")
|
|
||||||
tdSql.checkData(0, 4, 100)
|
|
||||||
tdSql.query("select count(*) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 10000)
|
|
||||||
tdSql.query("describe stb0")
|
|
||||||
tdSql.checkDataType(3, 1, "TIMESTAMP")
|
|
||||||
tdSql.query(
|
|
||||||
"select count(*) from stb0 where ts > \"2021-07-01 00:00:00.490000000\"")
|
|
||||||
tdSql.checkData(0, 0, 5000)
|
|
||||||
tdSql.query("select count(*) from stb0 where ts < 1626918583000000000")
|
|
||||||
tdSql.checkData(0, 0, 10000)
|
|
||||||
|
|
||||||
os.system("rm -rf ./insert_res.txt")
|
|
||||||
os.system(
|
|
||||||
"rm -rf tools/taosdemoAllTest/NanoTestCase/taosdemoTestSupportNano*.py.sql")
|
|
||||||
|
|
||||||
# taosdemo test insert with command and parameter , detals show
|
|
||||||
# taosdemo --help
|
|
||||||
os.system(
|
|
||||||
"%staosdemo -u root -ptaosdata -P 6030 -a 1 -m pre -n 10 -T 20 -t 60 -o res.txt -y " %
|
|
||||||
binPath)
|
|
||||||
tdSql.query("select count(*) from test.meters")
|
|
||||||
tdSql.checkData(0, 0, 600)
|
|
||||||
# check taosdemo -s
|
|
||||||
|
|
||||||
sqls_ls = [
|
|
||||||
'drop database if exists nsdbsql;',
|
|
||||||
'create database nsdbsql precision "ns" keep 3600 duration 6 update 1;',
|
|
||||||
'use nsdbsql;',
|
|
||||||
'CREATE STABLE meters (ts timestamp, current float, voltage int, phase float) TAGS (location binary(64), groupdId int);',
|
|
||||||
'CREATE TABLE d1001 USING meters TAGS ("Beijing.Chaoyang", 2);',
|
|
||||||
'INSERT INTO d1001 USING METERS TAGS ("Beijng.Chaoyang", 2) VALUES (now, 10.2, 219, 0.32);',
|
|
||||||
'INSERT INTO d1001 USING METERS TAGS ("Beijng.Chaoyang", 2) VALUES (now, 85, 32, 0.76);']
|
|
||||||
|
|
||||||
with open("./taosdemoTestNanoCreateDB.sql", mode="a") as sql_files:
|
|
||||||
for sql in sqls_ls:
|
|
||||||
sql_files.write(sql + "\n")
|
|
||||||
sql_files.close()
|
|
||||||
|
|
||||||
sleep(10)
|
|
||||||
|
|
||||||
os.system("%staosdemo -s taosdemoTestNanoCreateDB.sql -y " % binPath)
|
|
||||||
tdSql.query("select count(*) from nsdbsql.meters")
|
|
||||||
tdSql.checkData(0, 0, 2)
|
|
||||||
|
|
||||||
os.system("rm -rf ./res.txt")
|
|
||||||
os.system("rm -rf ./*.py.sql")
|
|
||||||
os.system("rm -rf ./taosdemoTestNanoCreateDB.sql")
|
|
||||||
|
|
||||||
def stop(self):
|
|
||||||
tdSql.close()
|
|
||||||
tdLog.success("%s successfully executed" % __file__)
|
|
||||||
|
|
||||||
|
|
||||||
tdCases.addWindows(__file__, TDTestCase())
|
|
||||||
tdCases.addLinux(__file__, TDTestCase())
|
|
|
@ -1,92 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "query",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"databases": "nsdb",
|
|
||||||
"query_times": 10,
|
|
||||||
"query_mode": "taosc",
|
|
||||||
"specified_table_query": {
|
|
||||||
"query_interval": 1,
|
|
||||||
"concurrent": 2,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select count(*) from stb0 where ts>\"2021-07-01 00:01:00.000000000 \" ;",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select count(*) from stb0 where ts>\"2021-07-01 00:01:00.000000000\" and ts <=\"2021-07-01 00:01:10.000000000\" ;",
|
|
||||||
"result": "./query_res1.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select count(*) from stb0 where ts>now-20d ;",
|
|
||||||
"result": "./query_res2.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select max(c10) from stb0;",
|
|
||||||
"result": "./query_res3.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select min(c1) from stb0;",
|
|
||||||
"result": "./query_res4.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select avg(c1) from stb0;",
|
|
||||||
"result": "./query_res5.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select count(*) from stb0 group by tbname;",
|
|
||||||
"result":"./query_res6.txt"
|
|
||||||
}
|
|
||||||
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"super_table_query": {
|
|
||||||
"stblname": "stb0",
|
|
||||||
"query_interval": 0,
|
|
||||||
"threads": 4,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select count(*) from xxxx where ts>\"2021-07-01 00:01:00.000000000 \" ;",
|
|
||||||
"result": "./query_res_tb0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select count(*) from xxxx where ts>\"2021-07-01 00:01:00.000000000\" and ts <=\"2021-07-01 00:01:10.000000000\" ;",
|
|
||||||
"result": "./query_res_tb1.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select first(*) from xxxx ;",
|
|
||||||
"result": "./query_res_tb2.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select last(*) from xxxx;",
|
|
||||||
"result": "./query_res_tb3.txt"
|
|
||||||
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select last_row(*) from xxxx ;",
|
|
||||||
"result": "./query_res_tb4.txt"
|
|
||||||
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select max(c10) from xxxx ;",
|
|
||||||
"result": "./query_res_tb5.txt"
|
|
||||||
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select min(c1) from xxxx ;",
|
|
||||||
"result": "./query_res_tb6.txt"
|
|
||||||
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select avg(c10) from xxxx ;",
|
|
||||||
"result": "./query_res_tb7.txt"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,157 +0,0 @@
|
||||||
###################################################################
|
|
||||||
# Copyright (c) 2016 by TAOS Technologies, Inc.
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# This file is proprietary and confidential to TAOS Technologies.
|
|
||||||
# No part of this file may be reproduced, stored, transmitted,
|
|
||||||
# disclosed or used in any form or by any means other than as
|
|
||||||
# expressly provided by the written permission from Jianhui Tao
|
|
||||||
#
|
|
||||||
###################################################################
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
from util.log import *
|
|
||||||
from util.cases import *
|
|
||||||
from util.sql import *
|
|
||||||
from util.dnodes import *
|
|
||||||
|
|
||||||
|
|
||||||
class TDTestCase:
|
|
||||||
def init(self, conn, logSql):
|
|
||||||
tdLog.debug("start to execute %s" % __file__)
|
|
||||||
tdSql.init(conn.cursor(), logSql)
|
|
||||||
|
|
||||||
def getBuildPath(self):
|
|
||||||
selfPath = os.path.dirname(os.path.realpath(__file__))
|
|
||||||
|
|
||||||
if ("community" in selfPath):
|
|
||||||
projPath = selfPath[:selfPath.find("community")]
|
|
||||||
else:
|
|
||||||
projPath = selfPath[:selfPath.find("tests")]
|
|
||||||
|
|
||||||
for root, dirs, files in os.walk(projPath):
|
|
||||||
if ("taosd" in files):
|
|
||||||
rootRealPath = os.path.dirname(os.path.realpath(root))
|
|
||||||
if ("packaging" not in rootRealPath):
|
|
||||||
buildPath = root[:len(root)-len("/build/bin")]
|
|
||||||
break
|
|
||||||
return buildPath
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
buildPath = self.getBuildPath()
|
|
||||||
if (buildPath == ""):
|
|
||||||
tdLog.exit("taosd not found!")
|
|
||||||
else:
|
|
||||||
tdLog.info("taosd found in %s" % buildPath)
|
|
||||||
binPath = buildPath+ "/build/bin/"
|
|
||||||
|
|
||||||
# query: query test for nanoSecond with where and max min groupby order
|
|
||||||
os.system("%staosdemo -f tools/taosdemoAllTest/NanoTestCase/taosdemoTestNanoDatabase.json -y " % binPath)
|
|
||||||
|
|
||||||
tdSql.execute("use nsdb")
|
|
||||||
|
|
||||||
# use where to filter
|
|
||||||
|
|
||||||
tdSql.query("select count(*) from stb0 where ts>\"2021-07-01 00:00:00.590000000 \" ")
|
|
||||||
tdSql.checkData(0, 0, 4000)
|
|
||||||
tdSql.query("select count(*) from stb0 where ts>\"2021-07-01 00:00:00.000000000\" and ts <=\"2021-07-01 00:00:00.590000000\" ")
|
|
||||||
tdSql.checkData(0, 0, 5900)
|
|
||||||
|
|
||||||
tdSql.query("select count(*) from tb0_0 where ts>\"2021-07-01 00:00:00.590000000 \" ;")
|
|
||||||
tdSql.checkData(0, 0, 40)
|
|
||||||
tdSql.query("select count(*) from tb0_0 where ts>\"2021-07-01 00:00:00.000000000\" and ts <=\"2021-07-01 00:00:00.590000000\" ")
|
|
||||||
tdSql.checkData(0, 0, 59)
|
|
||||||
|
|
||||||
|
|
||||||
# select max min avg from special col
|
|
||||||
tdSql.query("select max(c10) from stb0;")
|
|
||||||
print("select max(c10) from stb0 : " , tdSql.getData(0, 0))
|
|
||||||
|
|
||||||
tdSql.query("select max(c10) from tb0_0;")
|
|
||||||
print("select max(c10) from tb0_0 : " , tdSql.getData(0, 0))
|
|
||||||
|
|
||||||
|
|
||||||
tdSql.query("select min(c1) from stb0;")
|
|
||||||
print( "select min(c1) from stb0 : " , tdSql.getData(0, 0))
|
|
||||||
|
|
||||||
tdSql.query("select min(c1) from tb0_0;")
|
|
||||||
print( "select min(c1) from tb0_0 : " , tdSql.getData(0, 0))
|
|
||||||
|
|
||||||
tdSql.query("select avg(c1) from stb0;")
|
|
||||||
print( "select avg(c1) from stb0 : " , tdSql.getData(0, 0))
|
|
||||||
|
|
||||||
tdSql.query("select avg(c1) from tb0_0;")
|
|
||||||
print( "select avg(c1) from tb0_0 : " , tdSql.getData(0, 0))
|
|
||||||
|
|
||||||
tdSql.query("select count(*) from stb0 group by tbname;")
|
|
||||||
tdSql.checkData(0, 0, 100)
|
|
||||||
tdSql.checkData(10, 0, 100)
|
|
||||||
|
|
||||||
# query : query above sqls by taosdemo and continuously
|
|
||||||
|
|
||||||
os.system("%staosdemo -f tools/taosdemoAllTest/NanoTestCase/taosdemoTestSupportNanoQuery.json -y " % binPath)
|
|
||||||
|
|
||||||
|
|
||||||
os.system("%staosdemo -f tools/taosdemoAllTest/NanoTestCase/taosdemoTestNanoDatabasecsv.json -y " % binPath)
|
|
||||||
tdSql.execute("use nsdbcsv")
|
|
||||||
tdSql.query("show stables")
|
|
||||||
tdSql.checkData(0, 4, 100)
|
|
||||||
tdSql.query("select count(*) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 10000)
|
|
||||||
tdSql.query("describe stb0")
|
|
||||||
tdSql.checkDataType(3, 1, "TIMESTAMP")
|
|
||||||
tdSql.query("select count(*) from stb0 where ts >\"2021-07-01 00:00:00.490000000\"")
|
|
||||||
tdSql.checkData(0, 0, 5000)
|
|
||||||
tdSql.query("select count(*) from stb0 where ts <now -1d-1h-3s")
|
|
||||||
tdSql.checkData(0, 0, 10000)
|
|
||||||
tdSql.query("select count(*) from stb0 where ts < 1626918583000000000")
|
|
||||||
tdSql.checkData(0, 0, 10000)
|
|
||||||
tdSql.execute('select count(*) from stb0 where c2 > 162687012800000000')
|
|
||||||
tdSql.execute('select count(*) from stb0 where c2 < 162687012800000000')
|
|
||||||
tdSql.execute('select count(*) from stb0 where c2 = 162687012800000000')
|
|
||||||
tdSql.execute('select count(*) from stb0 where c2 != 162687012800000000')
|
|
||||||
tdSql.execute('select count(*) from stb0 where c2 <> 162687012800000000')
|
|
||||||
tdSql.execute('select count(*) from stb0 where c2 > "2021-07-21 20:22:08.248246976"')
|
|
||||||
tdSql.execute('select count(*) from stb0 where c2 < "2021-07-21 20:22:08.248246976"')
|
|
||||||
tdSql.execute('select count(*) from stb0 where c2 = "2021-07-21 20:22:08.248246976"')
|
|
||||||
tdSql.execute('select count(*) from stb0 where c2 != "2021-07-21 20:22:08.248246976"')
|
|
||||||
tdSql.execute('select count(*) from stb0 where c2 <> "2021-07-21 20:22:08.248246976"')
|
|
||||||
tdSql.execute('select count(*) from stb0 where ts between "2021-07-01 00:00:00.000000000" and "2021-07-01 00:00:00.990000000"')
|
|
||||||
tdSql.execute('select count(*) from stb0 where ts between 1625068800000000000 and 1625068801000000000')
|
|
||||||
tdSql.query('select avg(c0) from stb0 interval(5000000000b)')
|
|
||||||
tdSql.checkRows(1)
|
|
||||||
|
|
||||||
tdSql.query('select avg(c0) from stb0 interval(100000000b)')
|
|
||||||
tdSql.checkRows(10)
|
|
||||||
|
|
||||||
tdSql.error('select avg(c0) from stb0 interval(1b)')
|
|
||||||
tdSql.error('select avg(c0) from stb0 interval(999b)')
|
|
||||||
|
|
||||||
tdSql.query('select avg(c0) from stb0 interval(1000b)')
|
|
||||||
tdSql.checkRows(100)
|
|
||||||
|
|
||||||
tdSql.query('select avg(c0) from stb0 interval(1u)')
|
|
||||||
tdSql.checkRows(100)
|
|
||||||
|
|
||||||
tdSql.query('select avg(c0) from stb0 interval(100000000b) sliding (100000000b)')
|
|
||||||
tdSql.checkRows(10)
|
|
||||||
|
|
||||||
# query : query above sqls by taosdemo and continuously
|
|
||||||
os.system("%staosdemo -f tools/taosdemoAllTest/NanoTestCase/taosdemoTestSupportNanoQuerycsv.json -y " % binPath)
|
|
||||||
|
|
||||||
os.system("rm -rf ./query_res*.txt*")
|
|
||||||
os.system("rm -rf tools/taosdemoAllTest/NanoTestCase/*.py.sql")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def stop(self):
|
|
||||||
tdSql.close()
|
|
||||||
tdLog.success("%s successfully executed" % __file__)
|
|
||||||
|
|
||||||
|
|
||||||
tdCases.addWindows(__file__, TDTestCase())
|
|
||||||
tdCases.addLinux(__file__, TDTestCase())
|
|
|
@ -1,110 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "query",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"databases": "nsdbcsv",
|
|
||||||
"query_times": 10,
|
|
||||||
"query_mode": "taosc",
|
|
||||||
"specified_table_query": {
|
|
||||||
"query_interval": 1,
|
|
||||||
"concurrent": 2,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select count(*) from stb0 where ts> \"2021-07-01 00:00:00.490000000\" ;",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select count(*) from stb0 where ts < now -22d-1h-3s ;",
|
|
||||||
"result": "./query_res1.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select count(*) from stb0 where ts < 1626918583000000000 ;",
|
|
||||||
"result": "./query_res2.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select count(*) from stb0 where c2 <> 162687012800000000;",
|
|
||||||
"result": "./query_res3.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select count(*) from stb0 where c2 != \"2021-07-21 20:22:08.248246976\";",
|
|
||||||
"result": "./query_res4.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select count(*) from stb0 where ts between \"2021-07-01 00:00:00.000000000\" and \"2021-07-01 00:00:00.990000000\";",
|
|
||||||
"result": "./query_res5.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select count(*) from stb0 group by tbname;",
|
|
||||||
"result":"./query_res6.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select count(*) from stb0 where ts between 1625068800000000000 and 1625068801000000000;",
|
|
||||||
"result":"./query_res7.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select avg(c0) from stb0 interval(5000000000b);",
|
|
||||||
"result":"./query_res8.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select avg(c0) from stb0 interval(100000000b) sliding (100000000b);",
|
|
||||||
"result":"./query_res9.txt"
|
|
||||||
}
|
|
||||||
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"super_table_query": {
|
|
||||||
"stblname": "stb0",
|
|
||||||
"query_interval": 0,
|
|
||||||
"threads": 4,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select count(*) from xxxx where ts > \"2021-07-01 00:00:00.490000000\" ;",
|
|
||||||
"result": "./query_res_tb0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select count(*) from xxxx where ts between \"2021-07-01 00:00:00.000000000\" and \"2021-07-01 00:00:00.990000000\" ;",
|
|
||||||
"result": "./query_res_tb1.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select first(*) from xxxx ;",
|
|
||||||
"result": "./query_res_tb2.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select last(*) from xxxx;",
|
|
||||||
"result": "./query_res_tb3.txt"
|
|
||||||
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select last_row(*) from xxxx ;",
|
|
||||||
"result": "./query_res_tb4.txt"
|
|
||||||
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select max(c0) from xxxx ;",
|
|
||||||
"result": "./query_res_tb5.txt"
|
|
||||||
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select min(c0) from xxxx ;",
|
|
||||||
"result": "./query_res_tb6.txt"
|
|
||||||
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select avg(c0) from xxxx ;",
|
|
||||||
"result": "./query_res_tb7.txt"
|
|
||||||
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql":"select avg(c0) from xxxx interval(100000000b) sliding (100000000b) ;",
|
|
||||||
"result": "./query_res_tb8.txt"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
{
|
|
||||||
"filetype":"subscribe",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"databases": "subnsdb",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"specified_table_query":
|
|
||||||
{
|
|
||||||
"concurrent":2,
|
|
||||||
"mode":"sync",
|
|
||||||
"interval":10000,
|
|
||||||
"restart":"yes",
|
|
||||||
"keepProgress":"yes",
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select * from stb0 where ts>= \"2021-07-01 00:00:00.000000000\" ;",
|
|
||||||
"result": "./subscribe_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select * from stb0 where ts < now -2d-1h-3s ;",
|
|
||||||
"result": "./subscribe_res1.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select * from stb0 where ts < 1626918583000000000 ;",
|
|
||||||
"result": "./subscribe_res2.txt"
|
|
||||||
}]
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,125 +0,0 @@
|
||||||
###################################################################
|
|
||||||
# Copyright (c) 2016 by TAOS Technologies, Inc.
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# This file is proprietary and confidential to TAOS Technologies.
|
|
||||||
# No part of this file may be reproduced, stored, transmitted,
|
|
||||||
# disclosed or used in any form or by any means other than as
|
|
||||||
# expressly provided by the written permission from Jianhui Tao
|
|
||||||
#
|
|
||||||
###################################################################
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
from util.log import *
|
|
||||||
from util.cases import *
|
|
||||||
from util.sql import *
|
|
||||||
from util.dnodes import *
|
|
||||||
import time
|
|
||||||
from datetime import datetime
|
|
||||||
import subprocess
|
|
||||||
|
|
||||||
|
|
||||||
class TDTestCase:
|
|
||||||
def init(self, conn, logSql):
|
|
||||||
tdLog.debug("start to execute %s" % __file__)
|
|
||||||
tdSql.init(conn.cursor(), logSql)
|
|
||||||
|
|
||||||
def getBuildPath(self):
|
|
||||||
selfPath = os.path.dirname(os.path.realpath(__file__))
|
|
||||||
|
|
||||||
if ("community" in selfPath):
|
|
||||||
projPath = selfPath[:selfPath.find("community")]
|
|
||||||
else:
|
|
||||||
projPath = selfPath[:selfPath.find("tests")]
|
|
||||||
|
|
||||||
for root, dirs, files in os.walk(projPath):
|
|
||||||
if ("taosd" in files):
|
|
||||||
rootRealPath = os.path.dirname(os.path.realpath(root))
|
|
||||||
if ("packaging" not in rootRealPath):
|
|
||||||
buildPath = root[:len(root)-len("/build/bin")]
|
|
||||||
break
|
|
||||||
return buildPath
|
|
||||||
|
|
||||||
# get the number of subscriptions
|
|
||||||
def subTimes(self,filename):
|
|
||||||
self.filename = filename
|
|
||||||
command = 'cat %s |wc -l'% filename
|
|
||||||
times = int(subprocess.getstatusoutput(command)[1])
|
|
||||||
return times
|
|
||||||
|
|
||||||
# assert results
|
|
||||||
def assertCheck(self,filename,subResult,expectResult):
|
|
||||||
self.filename = filename
|
|
||||||
self.subResult = subResult
|
|
||||||
self.expectResult = expectResult
|
|
||||||
args0 = (filename, subResult, expectResult)
|
|
||||||
assert subResult == expectResult , "Queryfile:%s ,result is %s != expect: %s" % args0
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
buildPath = self.getBuildPath()
|
|
||||||
if (buildPath == ""):
|
|
||||||
tdLog.exit("taosd not found!")
|
|
||||||
else:
|
|
||||||
tdLog.info("taosd found in %s" % buildPath)
|
|
||||||
binPath = buildPath+ "/build/bin/"
|
|
||||||
|
|
||||||
# clear env
|
|
||||||
os.system("ps -ef |grep 'taosdemoAllTest/taosdemoTestSupportNanoSubscribe.json' |grep -v 'grep' |awk '{print $2}'|xargs kill -9")
|
|
||||||
os.system("rm -rf ./subscribe_res*")
|
|
||||||
os.system("rm -rf ./all_subscribe_res*")
|
|
||||||
|
|
||||||
|
|
||||||
# insert data
|
|
||||||
os.system("%staosdemo -f tools/taosdemoAllTest/NanoTestCase/taosdemoTestNanoDatabaseInsertForSub.json" % binPath)
|
|
||||||
os.system("nohup %staosdemo -f tools/taosdemoAllTest/NanoTestCase/taosdemoTestSupportNanoSubscribe.json &" % binPath)
|
|
||||||
query_pid = int(subprocess.getstatusoutput('ps aux|grep "taosdemoAllTest/NanoTestCase/taosdemoTestSupportNanoSubscribe.json" |grep -v "grep"|awk \'{print $2}\'')[1])
|
|
||||||
|
|
||||||
|
|
||||||
# merge result files
|
|
||||||
sleep(5)
|
|
||||||
os.system("cat subscribe_res0.txt* > all_subscribe_res0.txt")
|
|
||||||
os.system("cat subscribe_res1.txt* > all_subscribe_res1.txt")
|
|
||||||
os.system("cat subscribe_res2.txt* > all_subscribe_res2.txt")
|
|
||||||
|
|
||||||
|
|
||||||
# correct subscribeTimes testcase
|
|
||||||
subTimes0 = self.subTimes("all_subscribe_res0.txt")
|
|
||||||
self.assertCheck("all_subscribe_res0.txt",subTimes0 ,200)
|
|
||||||
|
|
||||||
subTimes1 = self.subTimes("all_subscribe_res1.txt")
|
|
||||||
self.assertCheck("all_subscribe_res1.txt",subTimes1 ,200)
|
|
||||||
|
|
||||||
subTimes2 = self.subTimes("all_subscribe_res2.txt")
|
|
||||||
self.assertCheck("all_subscribe_res2.txt",subTimes2 ,200)
|
|
||||||
|
|
||||||
|
|
||||||
# insert extral data
|
|
||||||
tdSql.execute("use subnsdb")
|
|
||||||
tdSql.execute("insert into tb0_0 values(now,100.1000,'subtest1',now-1s)")
|
|
||||||
sleep(15)
|
|
||||||
|
|
||||||
os.system("cat subscribe_res0.txt* > all_subscribe_res0.txt")
|
|
||||||
subTimes0 = self.subTimes("all_subscribe_res0.txt")
|
|
||||||
print("pass")
|
|
||||||
self.assertCheck("all_subscribe_res0.txt",subTimes0 ,202)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# correct data testcase
|
|
||||||
os.system("kill -9 %d" % query_pid)
|
|
||||||
sleep(3)
|
|
||||||
os.system("rm -rf ./subscribe_res*")
|
|
||||||
os.system("rm -rf ./all_subscribe*")
|
|
||||||
os.system("rm -rf ./*.py.sql")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def stop(self):
|
|
||||||
tdSql.close()
|
|
||||||
tdLog.success("%s successfully executed" % __file__)
|
|
||||||
|
|
||||||
tdCases.addWindows(__file__, TDTestCase())
|
|
||||||
tdCases.addLinux(__file__, TDTestCase())
|
|
|
@ -1,41 +0,0 @@
|
||||||
{
|
|
||||||
"filetype":"subscribe",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"databases": "db",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"specified_table_query":
|
|
||||||
{
|
|
||||||
"concurrent":2,
|
|
||||||
"mode":"sync",
|
|
||||||
"interval":0,
|
|
||||||
"resubAfterConsume":1,
|
|
||||||
"endAfterConsume":1,
|
|
||||||
"keepProgress":"yes",
|
|
||||||
"restart":"no",
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select * from stb00_0",
|
|
||||||
"result": "./subscribe_res0.txt"
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
"super_table_query":
|
|
||||||
{
|
|
||||||
"stblname": "stb0",
|
|
||||||
"threads":2,
|
|
||||||
"mode":"sync",
|
|
||||||
"interval":1000,
|
|
||||||
"resubAfterConsume":1,
|
|
||||||
"endAfterConsume":1,
|
|
||||||
"keepProgress":"yes",
|
|
||||||
"restart":"no",
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select * from xxxx where ts >= '2021-02-25 10:00:01.000' ",
|
|
||||||
"result": "./subscribe_res2.txt"
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,41 +0,0 @@
|
||||||
{
|
|
||||||
"filetype":"subscribe",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"databases": "db",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"specified_table_query":
|
|
||||||
{
|
|
||||||
"concurrent":2,
|
|
||||||
"mode":"sync",
|
|
||||||
"interval":0,
|
|
||||||
"resubAfterConsume":1,
|
|
||||||
"endAfterConsume":-1,
|
|
||||||
"keepProgress":"no",
|
|
||||||
"restart":"yes",
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select * from stb00_0",
|
|
||||||
"result": "./subscribe_res0.txt"
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
"super_table_query":
|
|
||||||
{
|
|
||||||
"stblname": "stb0",
|
|
||||||
"threads":2,
|
|
||||||
"mode":"sync",
|
|
||||||
"interval":1000,
|
|
||||||
"resubAfterConsume":1,
|
|
||||||
"endAfterConsume":-1,
|
|
||||||
"keepProgress":"no",
|
|
||||||
"restart":"yes",
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select * from xxxx where ts >= '2021-02-25 10:00:01.000' ",
|
|
||||||
"result": "./subscribe_res2.txt"
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,41 +0,0 @@
|
||||||
{
|
|
||||||
"filetype":"subscribe",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"databases": "db",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"specified_table_query":
|
|
||||||
{
|
|
||||||
"concurrent":2,
|
|
||||||
"mode":"sync",
|
|
||||||
"interval":0,
|
|
||||||
"resubAfterConsume":-1,
|
|
||||||
"endAfterConsume":-1,
|
|
||||||
"keepProgress":"no",
|
|
||||||
"restart":"yes",
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select * from stb00_0",
|
|
||||||
"result": "./subscribe_res0.txt"
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
"super_table_query":
|
|
||||||
{
|
|
||||||
"stblname": "stb0",
|
|
||||||
"threads":2,
|
|
||||||
"mode":"sync",
|
|
||||||
"interval":1000,
|
|
||||||
"resubAfterConsume":-1,
|
|
||||||
"endAfterConsume":-1,
|
|
||||||
"keepProgress":"no",
|
|
||||||
"restart":"yes",
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select * from xxxx where ts >= '2021-02-25 10:00:01.000' ",
|
|
||||||
"result": "./subscribe_res2.txt"
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,41 +0,0 @@
|
||||||
{
|
|
||||||
"filetype":"subscribe",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"databases": "db",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"specified_table_query":
|
|
||||||
{
|
|
||||||
"concurrent":2,
|
|
||||||
"mode":"sync",
|
|
||||||
"interval":0,
|
|
||||||
"resubAfterConsume":-1,
|
|
||||||
"endAfterConsume":0,
|
|
||||||
"keepProgress":"no",
|
|
||||||
"restart":"yes",
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select * from stb00_0",
|
|
||||||
"result": "./subscribe_res0.txt"
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
"super_table_query":
|
|
||||||
{
|
|
||||||
"stblname": "stb0",
|
|
||||||
"threads":2,
|
|
||||||
"mode":"sync",
|
|
||||||
"interval":0,
|
|
||||||
"resubAfterConsume":-1,
|
|
||||||
"endAfterConsume":0,
|
|
||||||
"keepProgress":"no",
|
|
||||||
"restart":"yes",
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select * from xxxx where ts >= '2021-02-25 10:00:01.000' ",
|
|
||||||
"result": "./subscribe_res2.txt"
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,41 +0,0 @@
|
||||||
{
|
|
||||||
"filetype":"subscribe",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"databases": "db",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"specified_table_query":
|
|
||||||
{
|
|
||||||
"concurrent":2,
|
|
||||||
"mode":"sync",
|
|
||||||
"interval":0,
|
|
||||||
"resubAfterConsume":-1,
|
|
||||||
"endAfterConsume":1,
|
|
||||||
"keepProgress":"no",
|
|
||||||
"restart":"yes",
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select * from stb00_0",
|
|
||||||
"result": "./subscribe_res0.txt"
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
"super_table_query":
|
|
||||||
{
|
|
||||||
"stblname": "stb0",
|
|
||||||
"threads":2,
|
|
||||||
"mode":"sync",
|
|
||||||
"interval":1000,
|
|
||||||
"resubAfterConsume":-1,
|
|
||||||
"endAfterConsume":2,
|
|
||||||
"keepProgress":"no",
|
|
||||||
"restart":"yes",
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select * from xxxx where ts >= '2021-02-25 10:00:01.000' ",
|
|
||||||
"result": "./subscribe_res2.txt"
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,62 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 1000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 60,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 100000,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 1000,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":10}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,89 +0,0 @@
|
||||||
###################################################################
|
|
||||||
# Copyright (c) 2016 by TAOS Technologies, Inc.
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# This file is proprietary and confidential to TAOS Technologies.
|
|
||||||
# No part of this file may be reproduced, stored, transmitted,
|
|
||||||
# disclosed or used in any form or by any means other than as
|
|
||||||
# expressly provided by the written permission from Jianhui Tao
|
|
||||||
#
|
|
||||||
###################################################################
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
import subprocess
|
|
||||||
import time
|
|
||||||
from util.log import *
|
|
||||||
from util.cases import *
|
|
||||||
from util.sql import *
|
|
||||||
from util.dnodes import *
|
|
||||||
|
|
||||||
|
|
||||||
class TDTestCase:
|
|
||||||
def init(self, conn, logSql):
|
|
||||||
tdLog.debug("start to execute %s" % __file__)
|
|
||||||
tdSql.init(conn.cursor(), logSql)
|
|
||||||
|
|
||||||
def getBuildPath(self):
|
|
||||||
selfPath = os.path.dirname(os.path.realpath(__file__))
|
|
||||||
|
|
||||||
if ("community" in selfPath):
|
|
||||||
projPath = selfPath[:selfPath.find("community")]
|
|
||||||
else:
|
|
||||||
projPath = selfPath[:selfPath.find("tests")]
|
|
||||||
|
|
||||||
for root, dirs, files in os.walk(projPath):
|
|
||||||
if ("taosd" in files):
|
|
||||||
rootRealPath = os.path.dirname(os.path.realpath(root))
|
|
||||||
if ("packaging" not in rootRealPath):
|
|
||||||
buildPath = root[:len(root)-len("/build/bin")]
|
|
||||||
break
|
|
||||||
return buildPath
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
tdSql.prepare()
|
|
||||||
buildPath = self.getBuildPath()
|
|
||||||
if (buildPath == ""):
|
|
||||||
tdLog.exit("taosd not found!")
|
|
||||||
else:
|
|
||||||
tdLog.info("taosd found in %s" % buildPath)
|
|
||||||
binPath = buildPath+ "/build/bin/"
|
|
||||||
|
|
||||||
# # insert 1000w rows in stb0
|
|
||||||
os.system("%staosdemo -f tools/taosdemoAllTest/TD-3453/query-interrupt.json -y " % binPath)
|
|
||||||
tdSql.execute("use db")
|
|
||||||
tdSql.query("select count (tbname) from stb0")
|
|
||||||
tdSql.checkData(0, 0,60)
|
|
||||||
tdSql.query("select count(*) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 6000000)
|
|
||||||
os.system('%staosdemo -f tools/taosdemoAllTest/TD-3453/queryall.json -y & ' % binPath)
|
|
||||||
time.sleep(2)
|
|
||||||
query_pid = int(subprocess.getstatusoutput('ps aux|grep "TD-3453/queryall.json" |grep -v "grep"|awk \'{print $2}\'')[1])
|
|
||||||
taosd_cpu_load_1 = float(subprocess.getstatusoutput('top -n 1 -b -p $(ps aux|grep "bin/taosd -c"|grep -v "grep" |awk \'{print $2}\')|awk \'END{print}\' |awk \'{print $9}\'')[1])
|
|
||||||
if taosd_cpu_load_1 > 10.0 :
|
|
||||||
os.system("kill -9 %d" % query_pid)
|
|
||||||
time.sleep(5)
|
|
||||||
taosd_cpu_load_2 = float(subprocess.getstatusoutput('top -n 1 -b -p $(ps aux|grep "bin/taosd -c"|grep -v "grep" |awk \'{print $2}\')|awk \'END{print}\' |awk \'{print $9}\'')[1])
|
|
||||||
if taosd_cpu_load_2 < 10.0 :
|
|
||||||
suc_kill = 60
|
|
||||||
else:
|
|
||||||
suc_kill = 10
|
|
||||||
print("taosd_cpu_load is higher than 10%")
|
|
||||||
else:
|
|
||||||
suc_kill = 20
|
|
||||||
print("taosd_cpu_load is still less than 10%")
|
|
||||||
tdSql.query("select count (tbname) from stb0")
|
|
||||||
tdSql.checkData(0, 0, "%d" % suc_kill)
|
|
||||||
os.system("rm -rf querySystemInfo*")
|
|
||||||
os.system("rm -rf insert_res.txt")
|
|
||||||
os.system("rm -rf query_res.txt")
|
|
||||||
|
|
||||||
def stop(self):
|
|
||||||
tdSql.close()
|
|
||||||
tdLog.success("%s successfully executed" % __file__)
|
|
||||||
|
|
||||||
|
|
||||||
tdCases.addWindows(__file__, TDTestCase())
|
|
||||||
tdCases.addLinux(__file__, TDTestCase())
|
|
|
@ -1,20 +0,0 @@
|
||||||
{
|
|
||||||
"filetype":"query",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"databases": "db",
|
|
||||||
"specified_table_query":{
|
|
||||||
"query_interval":1,
|
|
||||||
"concurrent":1,
|
|
||||||
"sqls":[
|
|
||||||
{
|
|
||||||
"sql": "select * from stb0",
|
|
||||||
"result": "./query_res.txt"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,10 +0,0 @@
|
||||||
0,0,'TAOSdata-0'
|
|
||||||
1,1,'TAOSdata-1'
|
|
||||||
2,22,'TAOSdata-2'
|
|
||||||
3,333,'TAOSdata-3'
|
|
||||||
4,4444,'TAOSdata-4'
|
|
||||||
5,55555,'TAOSdata-5'
|
|
||||||
6,666666,'TAOSdata-6'
|
|
||||||
7,7777777,'TAOSdata-7'
|
|
||||||
8,88888888,'TAOSdata-8'
|
|
||||||
9,999999999,'TAOSdata-9'
|
|
|
|
@ -1,62 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 10,
|
|
||||||
"create_table_thread_count": 10,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"num_of_records_per_req": 1,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 36500,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10000,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 1,
|
|
||||||
"data_source": "sample",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./tools/taosdemoAllTest/TD-4985/query-limit-offset.csv",
|
|
||||||
"tags_file": "./tools/taosdemoAllTest/TD-4985/query-limit-offset.csv",
|
|
||||||
"columns": [{"type": "INT","count":2}, {"type": "BINARY", "len": 16, "count":1}],
|
|
||||||
"tags": [{"type": "INT", "count":2}, {"type": "BINARY", "len": 16, "count":1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,192 +0,0 @@
|
||||||
###################################################################
|
|
||||||
# Copyright (c) 2016 by TAOS Technologies, Inc.
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# This file is proprietary and confidential to TAOS Technologies.
|
|
||||||
# No part of this file may be reproduced, stored, transmitted,
|
|
||||||
# disclosed or used in any form or by any means other than as
|
|
||||||
# expressly provided by the written permission from Jianhui Tao
|
|
||||||
#
|
|
||||||
###################################################################
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
import time
|
|
||||||
from util.log import *
|
|
||||||
from util.cases import *
|
|
||||||
from util.sql import *
|
|
||||||
from util.dnodes import *
|
|
||||||
|
|
||||||
|
|
||||||
class TDTestCase:
|
|
||||||
def init(self, conn, logSql):
|
|
||||||
tdLog.debug("start to execute %s" % __file__)
|
|
||||||
tdSql.init(conn.cursor(), logSql)
|
|
||||||
|
|
||||||
now = time.time()
|
|
||||||
self.ts = int(round(now * 1000))
|
|
||||||
|
|
||||||
def getBuildPath(self):
|
|
||||||
selfPath = os.path.dirname(os.path.realpath(__file__))
|
|
||||||
|
|
||||||
if ("community" in selfPath):
|
|
||||||
projPath = selfPath[:selfPath.find("community")]
|
|
||||||
else:
|
|
||||||
projPath = selfPath[:selfPath.find("tests")]
|
|
||||||
|
|
||||||
for root, dirs, files in os.walk(projPath):
|
|
||||||
if ("taosd" in files):
|
|
||||||
rootRealPath = os.path.dirname(os.path.realpath(root))
|
|
||||||
if ("packaging" not in rootRealPath):
|
|
||||||
buildPath = root[:len(root)-len("/build/bin")]
|
|
||||||
break
|
|
||||||
return buildPath
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
buildPath = self.getBuildPath()
|
|
||||||
if (buildPath == ""):
|
|
||||||
tdLog.exit("taosd not found!")
|
|
||||||
else:
|
|
||||||
tdLog.info("taosd found in %s" % buildPath)
|
|
||||||
binPath = buildPath+ "/build/bin/"
|
|
||||||
|
|
||||||
# insert: create one or mutiple tables per sql and insert multiple rows per sql
|
|
||||||
# test case for https://jira.taosdata.com:18080/browse/TD-4985
|
|
||||||
os.system("rm -rf tools/taosdemoAllTest/TD-4985/query-limit-offset.py.sql")
|
|
||||||
os.system("%staosdemo -f tools/taosdemoAllTest/TD-4985/query-limit-offset.json -y " % binPath)
|
|
||||||
tdSql.execute("use db")
|
|
||||||
tdSql.query("select count (tbname) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 10000)
|
|
||||||
|
|
||||||
for i in range(1000):
|
|
||||||
tdSql.execute('''insert into stb00_9999 values(%d, %d, %d,'test99.%s')'''
|
|
||||||
% (self.ts + i, i, -10000+i, i))
|
|
||||||
tdSql.execute('''insert into stb00_8888 values(%d, %d, %d,'test98.%s')'''
|
|
||||||
% (self.ts + i, i, -10000+i, i))
|
|
||||||
tdSql.execute('''insert into stb00_7777 values(%d, %d, %d,'test97.%s')'''
|
|
||||||
% (self.ts + i, i, -10000+i, i))
|
|
||||||
tdSql.execute('''insert into stb00_6666 values(%d, %d, %d,'test96.%s')'''
|
|
||||||
% (self.ts + i, i, -10000+i, i))
|
|
||||||
tdSql.execute('''insert into stb00_5555 values(%d, %d, %d,'test95.%s')'''
|
|
||||||
% (self.ts + i, i, -10000+i, i))
|
|
||||||
tdSql.execute('''insert into stb00_4444 values(%d, %d, %d,'test94.%s')'''
|
|
||||||
% (self.ts + i, i, -10000+i, i))
|
|
||||||
tdSql.execute('''insert into stb00_3333 values(%d, %d, %d,'test93.%s')'''
|
|
||||||
% (self.ts + i, i, -10000+i, i))
|
|
||||||
tdSql.execute('''insert into stb00_2222 values(%d, %d, %d,'test92.%s')'''
|
|
||||||
% (self.ts + i, i, -10000+i, i))
|
|
||||||
tdSql.execute('''insert into stb00_1111 values(%d, %d, %d,'test91.%s')'''
|
|
||||||
% (self.ts + i, i, -10000+i, i))
|
|
||||||
tdSql.execute('''insert into stb00_100 values(%d, %d, %d,'test90.%s')'''
|
|
||||||
% (self.ts + i, i, -10000+i, i))
|
|
||||||
tdSql.query("select * from stb0 where c2 like 'test99%' ")
|
|
||||||
tdSql.checkRows(1000)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_9999' limit 10" )
|
|
||||||
tdSql.checkData(0, 1, 0)
|
|
||||||
tdSql.checkData(1, 1, 1)
|
|
||||||
tdSql.checkData(2, 1, 2)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_9999' limit 10 offset 5" )
|
|
||||||
tdSql.checkData(0, 1, 5)
|
|
||||||
tdSql.checkData(1, 1, 6)
|
|
||||||
tdSql.checkData(2, 1, 7)
|
|
||||||
tdSql.query("select * from stb0 where c2 like 'test98%' ")
|
|
||||||
tdSql.checkRows(1000)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_8888' limit 10" )
|
|
||||||
tdSql.checkData(0, 1, 0)
|
|
||||||
tdSql.checkData(1, 1, 1)
|
|
||||||
tdSql.checkData(2, 1, 2)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_8888' limit 10 offset 5" )
|
|
||||||
tdSql.checkData(0, 1, 5)
|
|
||||||
tdSql.checkData(1, 1, 6)
|
|
||||||
tdSql.checkData(2, 1, 7)
|
|
||||||
tdSql.query("select * from stb0 where c2 like 'test97%' ")
|
|
||||||
tdSql.checkRows(1000)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_7777' limit 10" )
|
|
||||||
tdSql.checkData(0, 1, 0)
|
|
||||||
tdSql.checkData(1, 1, 1)
|
|
||||||
tdSql.checkData(2, 1, 2)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_7777' limit 10 offset 5" )
|
|
||||||
tdSql.checkData(0, 1, 5)
|
|
||||||
tdSql.checkData(1, 1, 6)
|
|
||||||
tdSql.checkData(2, 1, 7)
|
|
||||||
tdSql.query("select * from stb0 where c2 like 'test96%' ")
|
|
||||||
tdSql.checkRows(1000)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_6666' limit 10" )
|
|
||||||
tdSql.checkData(0, 1, 0)
|
|
||||||
tdSql.checkData(1, 1, 1)
|
|
||||||
tdSql.checkData(2, 1, 2)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_6666' limit 10 offset 5" )
|
|
||||||
tdSql.checkData(0, 1, 5)
|
|
||||||
tdSql.checkData(1, 1, 6)
|
|
||||||
tdSql.checkData(2, 1, 7)
|
|
||||||
tdSql.query("select * from stb0 where c2 like 'test95%' ")
|
|
||||||
tdSql.checkRows(1000)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_5555' limit 10" )
|
|
||||||
tdSql.checkData(0, 1, 0)
|
|
||||||
tdSql.checkData(1, 1, 1)
|
|
||||||
tdSql.checkData(2, 1, 2)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_5555' limit 10 offset 5" )
|
|
||||||
tdSql.checkData(0, 1, 5)
|
|
||||||
tdSql.checkData(1, 1, 6)
|
|
||||||
tdSql.checkData(2, 1, 7)
|
|
||||||
tdSql.query("select * from stb0 where c2 like 'test94%' ")
|
|
||||||
tdSql.checkRows(1000)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_4444' limit 10" )
|
|
||||||
tdSql.checkData(0, 1, 0)
|
|
||||||
tdSql.checkData(1, 1, 1)
|
|
||||||
tdSql.checkData(2, 1, 2)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_4444' limit 10 offset 5" )
|
|
||||||
tdSql.checkData(0, 1, 5)
|
|
||||||
tdSql.checkData(1, 1, 6)
|
|
||||||
tdSql.checkData(2, 1, 7)
|
|
||||||
tdSql.query("select * from stb0 where c2 like 'test93%' ")
|
|
||||||
tdSql.checkRows(1000)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_3333' limit 100" )
|
|
||||||
tdSql.checkData(0, 1, 0)
|
|
||||||
tdSql.checkData(1, 1, 1)
|
|
||||||
tdSql.checkData(2, 1, 2)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_3333' limit 100 offset 5" )
|
|
||||||
tdSql.checkData(0, 1, 5)
|
|
||||||
tdSql.checkData(1, 1, 6)
|
|
||||||
tdSql.checkData(2, 1, 7)
|
|
||||||
tdSql.query("select * from stb0 where c2 like 'test92%' ")
|
|
||||||
tdSql.checkRows(1000)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_2222' limit 100" )
|
|
||||||
tdSql.checkData(0, 1, 0)
|
|
||||||
tdSql.checkData(1, 1, 1)
|
|
||||||
tdSql.checkData(2, 1, 2)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_2222' limit 100 offset 5" )
|
|
||||||
tdSql.checkData(0, 1, 5)
|
|
||||||
tdSql.checkData(1, 1, 6)
|
|
||||||
tdSql.checkData(2, 1, 7)
|
|
||||||
tdSql.query("select * from stb0 where c2 like 'test91%' ")
|
|
||||||
tdSql.checkRows(1000)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_1111' limit 100" )
|
|
||||||
tdSql.checkData(0, 1, 0)
|
|
||||||
tdSql.checkData(1, 1, 1)
|
|
||||||
tdSql.checkData(2, 1, 2)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_1111' limit 100 offset 5" )
|
|
||||||
tdSql.checkData(0, 1, 5)
|
|
||||||
tdSql.checkData(1, 1, 6)
|
|
||||||
tdSql.checkData(2, 1, 7)
|
|
||||||
tdSql.query("select * from stb0 where c2 like 'test90%' ")
|
|
||||||
tdSql.checkRows(1000)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_100' limit 100" )
|
|
||||||
tdSql.checkData(0, 1, 0)
|
|
||||||
tdSql.checkData(1, 1, 1)
|
|
||||||
tdSql.checkData(2, 1, 2)
|
|
||||||
tdSql.query("select * from stb0 where tbname like 'stb00_100' limit 100 offset 5" )
|
|
||||||
tdSql.checkData(0, 1, 5)
|
|
||||||
tdSql.checkData(1, 1, 6)
|
|
||||||
tdSql.checkData(2, 1, 7)
|
|
||||||
|
|
||||||
|
|
||||||
def stop(self):
|
|
||||||
tdSql.close()
|
|
||||||
tdLog.success("%s successfully executed" % __file__)
|
|
||||||
|
|
||||||
|
|
||||||
tdCases.addWindows(__file__, TDTestCase())
|
|
||||||
tdCases.addLinux(__file__, TDTestCase())
|
|
|
@ -1,703 +0,0 @@
|
||||||
###################################################################
|
|
||||||
# Copyright (c) 2016 by TAOS Technologies, Inc.
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# This file is proprietary and confidential to TAOS Technologies.
|
|
||||||
# No part of this file may be reproduced, stored, transmitted,
|
|
||||||
# disclosed or used in any form or by any means other than as
|
|
||||||
# expressly provided by the written permission from Jianhui Tao
|
|
||||||
#
|
|
||||||
###################################################################
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import random
|
|
||||||
import string
|
|
||||||
import os
|
|
||||||
import time
|
|
||||||
from util.log import tdLog
|
|
||||||
from util.cases import tdCases
|
|
||||||
from util.sql import tdSql
|
|
||||||
from util.dnodes import tdDnodes
|
|
||||||
|
|
||||||
class TDTestCase:
|
|
||||||
updatecfgDict={'maxSQLLength':1048576}
|
|
||||||
def init(self, conn, logSql):
|
|
||||||
tdLog.debug("start to execute %s" % __file__)
|
|
||||||
tdSql.init(conn.cursor(), logSql)
|
|
||||||
|
|
||||||
self.ts = 1538548685000
|
|
||||||
self.num = 100
|
|
||||||
|
|
||||||
def get_random_string(self, length):
|
|
||||||
letters = string.ascii_lowercase
|
|
||||||
result_str = ''.join(random.choice(letters) for i in range(length))
|
|
||||||
return result_str
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
tdSql.prepare()
|
|
||||||
# test case for https://jira.taosdata.com:18080/browse/TD-5213
|
|
||||||
|
|
||||||
print("==============step1, regular table, 1 ts + 4094 cols + 1 binary==============")
|
|
||||||
startTime = time.time()
|
|
||||||
sql = "create table regular_table_1(ts timestamp, "
|
|
||||||
for i in range(4094):
|
|
||||||
sql += "col%d int, " % (i + 1)
|
|
||||||
sql += "col4095 binary(22))"
|
|
||||||
tdLog.info(len(sql))
|
|
||||||
tdSql.execute(sql)
|
|
||||||
|
|
||||||
for i in range(self.num):
|
|
||||||
sql = "insert into regular_table_1 values(%d, "
|
|
||||||
for j in range(4094):
|
|
||||||
str = "'%s', " % random.randint(0,1000)
|
|
||||||
sql += str
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.execute(sql % (self.ts + i))
|
|
||||||
time.sleep(1)
|
|
||||||
tdSql.query("select count(*) from regular_table_1")
|
|
||||||
tdSql.checkData(0, 0, self.num)
|
|
||||||
tdSql.query("select * from regular_table_1")
|
|
||||||
tdSql.checkRows(self.num)
|
|
||||||
tdSql.checkCols(4096)
|
|
||||||
|
|
||||||
endTime = time.time()
|
|
||||||
print("total time %ds" % (endTime - startTime))
|
|
||||||
|
|
||||||
#insert in order
|
|
||||||
tdLog.info('test insert in order')
|
|
||||||
for i in range(self.num):
|
|
||||||
sql = "insert into regular_table_1 (ts,col1,col2,col3,col4,col5,col6,col7,col8,col9,col10,col4095) values(%d, "
|
|
||||||
for j in range(10):
|
|
||||||
str = "'%s', " % random.randint(0,1000)
|
|
||||||
sql += str
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.execute(sql % (self.ts + i + 1000))
|
|
||||||
time.sleep(1)
|
|
||||||
tdSql.query("select count(*) from regular_table_1")
|
|
||||||
tdSql.checkData(0, 0, 2*self.num)
|
|
||||||
tdSql.query("select * from regular_table_1")
|
|
||||||
tdSql.checkRows(2*self.num)
|
|
||||||
tdSql.checkCols(4096)
|
|
||||||
|
|
||||||
#insert out of order
|
|
||||||
tdLog.info('test insert out of order')
|
|
||||||
for i in range(self.num):
|
|
||||||
sql = "insert into regular_table_1 (ts,col123,col2213,col331,col41,col523,col236,col71,col813,col912,col1320,col4095) values(%d, "
|
|
||||||
for j in range(10):
|
|
||||||
str = "'%s', " % random.randint(0,1000)
|
|
||||||
sql += str
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.execute(sql % (self.ts + i + 2000))
|
|
||||||
time.sleep(1)
|
|
||||||
tdSql.query("select count(*) from regular_table_1")
|
|
||||||
tdSql.checkData(0, 0, 3*self.num)
|
|
||||||
tdSql.query("select * from regular_table_1")
|
|
||||||
tdSql.checkRows(3*self.num)
|
|
||||||
tdSql.checkCols(4096)
|
|
||||||
|
|
||||||
|
|
||||||
print("==============step2,regular table error col or value==============")
|
|
||||||
tdLog.info('test regular table exceeds row num')
|
|
||||||
# column > 4096
|
|
||||||
sql = "create table regular_table_2(ts timestamp, "
|
|
||||||
for i in range(4095):
|
|
||||||
sql += "col%d int, " % (i + 1)
|
|
||||||
sql += "col4096 binary(22))"
|
|
||||||
tdLog.info(len(sql))
|
|
||||||
tdSql.error(sql)
|
|
||||||
|
|
||||||
# column > 4096
|
|
||||||
sql = "insert into regular_table_1 values(%d, "
|
|
||||||
for j in range(4095):
|
|
||||||
str = "'%s', " % random.randint(0,1000)
|
|
||||||
sql += str
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.error(sql)
|
|
||||||
|
|
||||||
# insert column < 4096
|
|
||||||
sql = "insert into regular_table_1 values(%d, "
|
|
||||||
for j in range(4092):
|
|
||||||
str = "'%s', " % random.randint(0,1000)
|
|
||||||
sql += str
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.error(sql)
|
|
||||||
|
|
||||||
# alter column > 4096
|
|
||||||
sql = "alter table regular_table_1 add column max int; "
|
|
||||||
tdSql.error(sql)
|
|
||||||
|
|
||||||
print("==============step3,regular table , mix data type==============")
|
|
||||||
startTime = time.time()
|
|
||||||
sql = "create table regular_table_3(ts timestamp, "
|
|
||||||
for i in range(2000):
|
|
||||||
sql += "col%d int, " % (i + 1)
|
|
||||||
for i in range(2000,4094):
|
|
||||||
sql += "col%d bigint, " % (i + 1)
|
|
||||||
sql += "col4095 binary(22))"
|
|
||||||
tdLog.info(len(sql))
|
|
||||||
tdSql.execute(sql)
|
|
||||||
|
|
||||||
for i in range(self.num):
|
|
||||||
sql = "insert into regular_table_3 values(%d, "
|
|
||||||
for j in range(4094):
|
|
||||||
str = "'%s', " % random.randint(0,1000)
|
|
||||||
sql += str
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.execute(sql % (self.ts + i))
|
|
||||||
time.sleep(1)
|
|
||||||
tdSql.query("select count(*) from regular_table_3")
|
|
||||||
tdSql.checkData(0, 0, self.num)
|
|
||||||
tdSql.query("select * from regular_table_3")
|
|
||||||
tdSql.checkRows(self.num)
|
|
||||||
tdSql.checkCols(4096)
|
|
||||||
|
|
||||||
endTime = time.time()
|
|
||||||
print("total time %ds" % (endTime - startTime))
|
|
||||||
|
|
||||||
sql = "create table regular_table_4(ts timestamp, "
|
|
||||||
for i in range(500):
|
|
||||||
sql += "int_%d int, " % (i + 1)
|
|
||||||
for i in range(500,1000):
|
|
||||||
sql += "smallint_%d smallint, " % (i + 1)
|
|
||||||
for i in range(1000,1500):
|
|
||||||
sql += "tinyint_%d tinyint, " % (i + 1)
|
|
||||||
for i in range(1500,2000):
|
|
||||||
sql += "double_%d double, " % (i + 1)
|
|
||||||
for i in range(2000,2500):
|
|
||||||
sql += "float_%d float, " % (i + 1)
|
|
||||||
for i in range(2500,3000):
|
|
||||||
sql += "bool_%d bool, " % (i + 1)
|
|
||||||
for i in range(3000,3500):
|
|
||||||
sql += "bigint_%d bigint, " % (i + 1)
|
|
||||||
for i in range(3500,3800):
|
|
||||||
sql += "nchar_%d nchar(4), " % (i + 1)
|
|
||||||
for i in range(3800,4090):
|
|
||||||
sql += "binary_%d binary(10), " % (i + 1)
|
|
||||||
for i in range(4090,4094):
|
|
||||||
sql += "timestamp_%d timestamp, " % (i + 1)
|
|
||||||
sql += "col4095 binary(22))"
|
|
||||||
tdLog.info(len(sql))
|
|
||||||
tdSql.execute(sql)
|
|
||||||
|
|
||||||
for i in range(self.num):
|
|
||||||
sql = "insert into regular_table_4 values(%d, "
|
|
||||||
for j in range(500):
|
|
||||||
str = "'%s', " % random.randint(-2147483647,2147483647)
|
|
||||||
sql += str
|
|
||||||
for j in range(500,1000):
|
|
||||||
str = "'%s', " % random.randint(-32767,32767 )
|
|
||||||
sql += str
|
|
||||||
for j in range(1000,1500):
|
|
||||||
str = "'%s', " % random.randint(-127,127)
|
|
||||||
sql += str
|
|
||||||
for j in range(1500,2000):
|
|
||||||
str = "'%s', " % random.randint(-922337203685477580700,922337203685477580700)
|
|
||||||
sql += str
|
|
||||||
for j in range(2000,2500):
|
|
||||||
str = "'%s', " % random.randint(-92233720368547758070,92233720368547758070)
|
|
||||||
sql += str
|
|
||||||
for j in range(2500,3000):
|
|
||||||
str = "'%s', " % random.choice(['true','false'])
|
|
||||||
sql += str
|
|
||||||
for j in range(3000,3500):
|
|
||||||
str = "'%s', " % random.randint(-9223372036854775807,9223372036854775807)
|
|
||||||
sql += str
|
|
||||||
for j in range(3500,3800):
|
|
||||||
str = "'%s', " % self.get_random_string(4)
|
|
||||||
sql += str
|
|
||||||
for j in range(3800,4090):
|
|
||||||
str = "'%s', " % self.get_random_string(10)
|
|
||||||
sql += str
|
|
||||||
for j in range(4090,4094):
|
|
||||||
str = "%s, " % (self.ts + j)
|
|
||||||
sql += str
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.execute(sql % (self.ts + i))
|
|
||||||
time.sleep(1)
|
|
||||||
tdSql.query("select count(*) from regular_table_4")
|
|
||||||
tdSql.checkData(0, 0, self.num)
|
|
||||||
tdSql.query("select * from regular_table_4")
|
|
||||||
tdSql.checkRows(self.num)
|
|
||||||
tdSql.checkCols(4096)
|
|
||||||
tdLog.info("end ,now new one")
|
|
||||||
|
|
||||||
#insert null value
|
|
||||||
tdLog.info('test insert null value')
|
|
||||||
for i in range(self.num):
|
|
||||||
sql = "insert into regular_table_4 values(%d, "
|
|
||||||
for j in range(2500):
|
|
||||||
str = "'%s', " % random.choice(['NULL' ,'NULL' ,'NULL' ,1 , 10 ,100 ,-100 ,-10, 88 ,66 ,'NULL' ,'NULL' ,'NULL' ])
|
|
||||||
sql += str
|
|
||||||
for j in range(2500,3000):
|
|
||||||
str = "'%s', " % random.choice(['true' ,'false'])
|
|
||||||
sql += str
|
|
||||||
for j in range(3000,3500):
|
|
||||||
str = "'%s', " % random.randint(-9223372036854775807,9223372036854775807)
|
|
||||||
sql += str
|
|
||||||
for j in range(3500,3800):
|
|
||||||
str = "'%s', " % self.get_random_string(4)
|
|
||||||
sql += str
|
|
||||||
for j in range(3800,4090):
|
|
||||||
str = "'%s', " % self.get_random_string(10)
|
|
||||||
sql += str
|
|
||||||
for j in range(4090,4094):
|
|
||||||
str = "%s, " % (self.ts + j)
|
|
||||||
sql += str
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.execute(sql % (self.ts + i + 10000))
|
|
||||||
time.sleep(1)
|
|
||||||
tdSql.query("select count(*) from regular_table_4")
|
|
||||||
tdSql.checkData(0, 0, 2*self.num)
|
|
||||||
tdSql.query("select * from regular_table_4")
|
|
||||||
tdSql.checkRows(2*self.num)
|
|
||||||
tdSql.checkCols(4096)
|
|
||||||
|
|
||||||
#insert in order
|
|
||||||
tdLog.info('test insert in order')
|
|
||||||
for i in range(self.num):
|
|
||||||
sql = "insert into regular_table_4 (ts,int_2,int_22,int_169,smallint_537,smallint_607,tinyint_1030,tinyint_1491,double_1629,double_1808,float_2075,col4095) values(%d, "
|
|
||||||
for j in range(10):
|
|
||||||
str = "'%s', " % random.randint(0,100)
|
|
||||||
sql += str
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.execute(sql % (self.ts + i + 1000))
|
|
||||||
time.sleep(1)
|
|
||||||
tdSql.query("select count(*) from regular_table_4")
|
|
||||||
tdSql.checkData(0, 0, 3*self.num)
|
|
||||||
tdSql.query("select * from regular_table_4")
|
|
||||||
tdSql.checkRows(3*self.num)
|
|
||||||
tdSql.checkCols(4096)
|
|
||||||
|
|
||||||
#insert out of order
|
|
||||||
tdLog.info('test insert out of order')
|
|
||||||
for i in range(self.num):
|
|
||||||
sql = "insert into regular_table_4 (ts,int_169,float_2075,int_369,tinyint_1491,tinyint_1030,float_2360,smallint_537,double_1808,double_1608,double_1629,col4095) values(%d, "
|
|
||||||
for j in range(10):
|
|
||||||
str = "'%s', " % random.randint(0,100)
|
|
||||||
sql += str
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.execute(sql % (self.ts + i + 2000))
|
|
||||||
time.sleep(1)
|
|
||||||
tdSql.query("select count(*) from regular_table_4")
|
|
||||||
tdSql.checkData(0, 0, 4*self.num)
|
|
||||||
tdSql.query("select * from regular_table_4")
|
|
||||||
tdSql.checkRows(4*self.num)
|
|
||||||
tdSql.checkCols(4096)
|
|
||||||
|
|
||||||
#define TSDB_MAX_BYTES_PER_ROW 49151[old:1024 && 16384]
|
|
||||||
#ts:8\int:4\smallint:2\bigint:8\bool:1\float:4\tinyint:1\nchar:4*()+2[offset]\binary:1*()+2[offset]
|
|
||||||
tdLog.info('test regular_table max bytes per row 49151')
|
|
||||||
sql = "create table regular_table_5(ts timestamp, "
|
|
||||||
for i in range(500):
|
|
||||||
sql += "int_%d int, " % (i + 1)
|
|
||||||
for i in range(500,1000):
|
|
||||||
sql += "smallint_%d smallint, " % (i + 1)
|
|
||||||
for i in range(1000,1500):
|
|
||||||
sql += "tinyint_%d tinyint, " % (i + 1)
|
|
||||||
for i in range(1500,2000):
|
|
||||||
sql += "double_%d double, " % (i + 1)
|
|
||||||
for i in range(2000,2500):
|
|
||||||
sql += "float_%d float, " % (i + 1)
|
|
||||||
for i in range(2500,3000):
|
|
||||||
sql += "bool_%d bool, " % (i + 1)
|
|
||||||
for i in range(3000,3500):
|
|
||||||
sql += "bigint_%d bigint, " % (i + 1)
|
|
||||||
for i in range(3500,3800):
|
|
||||||
sql += "nchar_%d nchar(20), " % (i + 1)
|
|
||||||
for i in range(3800,4090):
|
|
||||||
sql += "binary_%d binary(34), " % (i + 1)
|
|
||||||
for i in range(4090,4094):
|
|
||||||
sql += "timestamp_%d timestamp, " % (i + 1)
|
|
||||||
sql += "col4095 binary(69))"
|
|
||||||
tdSql.execute(sql)
|
|
||||||
tdSql.query("select * from regular_table_5")
|
|
||||||
tdSql.checkCols(4096)
|
|
||||||
# TD-5324
|
|
||||||
sql = "alter table regular_table_5 modify column col4095 binary(70); "
|
|
||||||
tdSql.error(sql)
|
|
||||||
|
|
||||||
# drop and add
|
|
||||||
sql = "alter table regular_table_5 drop column col4095; "
|
|
||||||
tdSql.execute(sql)
|
|
||||||
sql = "select * from regular_table_5; "
|
|
||||||
tdSql.query(sql)
|
|
||||||
tdSql.checkCols(4095)
|
|
||||||
sql = "alter table regular_table_5 add column col4095 binary(70); "
|
|
||||||
tdSql.error(sql)
|
|
||||||
sql = "alter table regular_table_5 add column col4095 binary(69); "
|
|
||||||
tdSql.execute(sql)
|
|
||||||
sql = "select * from regular_table_5; "
|
|
||||||
tdSql.query(sql)
|
|
||||||
tdSql.checkCols(4096)
|
|
||||||
|
|
||||||
#out TSDB_MAX_BYTES_PER_ROW 49151
|
|
||||||
tdLog.info('test regular_table max bytes per row out 49151')
|
|
||||||
sql = "create table regular_table_6(ts timestamp, "
|
|
||||||
for i in range(500):
|
|
||||||
sql += "int_%d int, " % (i + 1)
|
|
||||||
for i in range(500,1000):
|
|
||||||
sql += "smallint_%d smallint, " % (i + 1)
|
|
||||||
for i in range(1000,1500):
|
|
||||||
sql += "tinyint_%d tinyint, " % (i + 1)
|
|
||||||
for i in range(1500,2000):
|
|
||||||
sql += "double_%d double, " % (i + 1)
|
|
||||||
for i in range(2000,2500):
|
|
||||||
sql += "float_%d float, " % (i + 1)
|
|
||||||
for i in range(2500,3000):
|
|
||||||
sql += "bool_%d bool, " % (i + 1)
|
|
||||||
for i in range(3000,3500):
|
|
||||||
sql += "bigint_%d bigint, " % (i + 1)
|
|
||||||
for i in range(3500,3800):
|
|
||||||
sql += "nchar_%d nchar(20), " % (i + 1)
|
|
||||||
for i in range(3800,4090):
|
|
||||||
sql += "binary_%d binary(34), " % (i + 1)
|
|
||||||
for i in range(4090,4094):
|
|
||||||
sql += "timestamp_%d timestamp, " % (i + 1)
|
|
||||||
sql += "col4095 binary(70))"
|
|
||||||
tdLog.info(len(sql))
|
|
||||||
tdSql.error(sql)
|
|
||||||
|
|
||||||
|
|
||||||
print("==============step4, super table , 1 ts + 4090 cols + 4 tags ==============")
|
|
||||||
startTime = time.time()
|
|
||||||
sql = "create stable stable_1(ts timestamp, "
|
|
||||||
for i in range(4090):
|
|
||||||
sql += "col%d int, " % (i + 1)
|
|
||||||
sql += "col4091 binary(22))"
|
|
||||||
sql += " tags (loc nchar(10),tag_1 int,tag_2 int,tag_3 int) "
|
|
||||||
tdLog.info(len(sql))
|
|
||||||
tdSql.execute(sql)
|
|
||||||
sql = '''create table table_0 using stable_1
|
|
||||||
tags('table_0' , '1' , '2' , '3' );'''
|
|
||||||
tdSql.execute(sql)
|
|
||||||
|
|
||||||
for i in range(self.num):
|
|
||||||
sql = "insert into table_0 values(%d, "
|
|
||||||
for j in range(4090):
|
|
||||||
str = "'%s', " % random.randint(0,1000)
|
|
||||||
sql += str
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.execute(sql % (self.ts + i))
|
|
||||||
time.sleep(1)
|
|
||||||
tdSql.query("select count(*) from table_0")
|
|
||||||
tdSql.checkData(0, 0, self.num)
|
|
||||||
tdSql.query("select * from table_0")
|
|
||||||
tdSql.checkRows(self.num)
|
|
||||||
tdSql.checkCols(4092)
|
|
||||||
|
|
||||||
sql = '''create table table_1 using stable_1
|
|
||||||
tags('table_1' , '1' , '2' , '3' );'''
|
|
||||||
tdSql.execute(sql)
|
|
||||||
|
|
||||||
for i in range(self.num):
|
|
||||||
sql = "insert into table_1 values(%d, "
|
|
||||||
for j in range(2080):
|
|
||||||
sql += "'%d', " % random.randint(0,1000)
|
|
||||||
for j in range(2080,4080):
|
|
||||||
sql += "'%s', " % 'NULL'
|
|
||||||
for j in range(4080,4090):
|
|
||||||
sql += "'%s', " % random.randint(0,10000)
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.execute(sql % (self.ts + i))
|
|
||||||
time.sleep(1)
|
|
||||||
tdSql.query("select count(*) from table_1")
|
|
||||||
tdSql.checkData(0, 0, self.num)
|
|
||||||
tdSql.query("select * from table_1")
|
|
||||||
tdSql.checkRows(self.num)
|
|
||||||
tdSql.checkCols(4092)
|
|
||||||
|
|
||||||
endTime = time.time()
|
|
||||||
print("total time %ds" % (endTime - startTime))
|
|
||||||
|
|
||||||
#insert in order
|
|
||||||
tdLog.info('test insert in order')
|
|
||||||
for i in range(self.num):
|
|
||||||
sql = "insert into table_1 (ts,col1,col2,col3,col4,col5,col6,col7,col8,col9,col10,col4091) values(%d, "
|
|
||||||
for j in range(10):
|
|
||||||
str = "'%s', " % random.randint(0,1000)
|
|
||||||
sql += str
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.execute(sql % (self.ts + i + 1000))
|
|
||||||
time.sleep(1)
|
|
||||||
tdSql.query("select count(*) from table_1")
|
|
||||||
tdSql.checkData(0, 0, 2*self.num)
|
|
||||||
tdSql.query("select * from table_1")
|
|
||||||
tdSql.checkRows(2*self.num)
|
|
||||||
tdSql.checkCols(4092)
|
|
||||||
|
|
||||||
#insert out of order
|
|
||||||
tdLog.info('test insert out of order')
|
|
||||||
for i in range(self.num):
|
|
||||||
sql = "insert into table_1 (ts,col123,col2213,col331,col41,col523,col236,col71,col813,col912,col1320,col4091) values(%d, "
|
|
||||||
for j in range(10):
|
|
||||||
str = "'%s', " % random.randint(0,1000)
|
|
||||||
sql += str
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.execute(sql % (self.ts + i + 2000))
|
|
||||||
time.sleep(1)
|
|
||||||
tdSql.query("select count(*) from table_1")
|
|
||||||
tdSql.checkData(0, 0, 3*self.num)
|
|
||||||
tdSql.query("select * from table_1")
|
|
||||||
tdSql.checkRows(3*self.num)
|
|
||||||
tdSql.checkCols(4092)
|
|
||||||
|
|
||||||
print("==============step5,stable table , mix data type==============")
|
|
||||||
sql = "create stable stable_3(ts timestamp, "
|
|
||||||
for i in range(500):
|
|
||||||
sql += "int_%d int, " % (i + 1)
|
|
||||||
for i in range(500,1000):
|
|
||||||
sql += "smallint_%d smallint, " % (i + 1)
|
|
||||||
for i in range(1000,1500):
|
|
||||||
sql += "tinyint_%d tinyint, " % (i + 1)
|
|
||||||
for i in range(1500,2000):
|
|
||||||
sql += "double_%d double, " % (i + 1)
|
|
||||||
for i in range(2000,2500):
|
|
||||||
sql += "float_%d float, " % (i + 1)
|
|
||||||
for i in range(2500,3000):
|
|
||||||
sql += "bool_%d bool, " % (i + 1)
|
|
||||||
for i in range(3000,3500):
|
|
||||||
sql += "bigint_%d bigint, " % (i + 1)
|
|
||||||
for i in range(3500,3800):
|
|
||||||
sql += "nchar_%d nchar(4), " % (i + 1)
|
|
||||||
for i in range(3800,4090):
|
|
||||||
sql += "binary_%d binary(10), " % (i + 1)
|
|
||||||
sql += "col4091 binary(22))"
|
|
||||||
sql += " tags (loc nchar(10),tag_1 int,tag_2 int,tag_3 int) "
|
|
||||||
tdLog.info(len(sql))
|
|
||||||
tdSql.execute(sql)
|
|
||||||
sql = '''create table table_30 using stable_3
|
|
||||||
tags('table_30' , '1' , '2' , '3' );'''
|
|
||||||
tdSql.execute(sql)
|
|
||||||
|
|
||||||
for i in range(self.num):
|
|
||||||
sql = "insert into table_30 values(%d, "
|
|
||||||
for j in range(500):
|
|
||||||
str = "'%s', " % random.randint(-2147483647,2147483647)
|
|
||||||
sql += str
|
|
||||||
for j in range(500,1000):
|
|
||||||
str = "'%s', " % random.randint(-32767,32767 )
|
|
||||||
sql += str
|
|
||||||
for j in range(1000,1500):
|
|
||||||
str = "'%s', " % random.randint(-127,127)
|
|
||||||
sql += str
|
|
||||||
for j in range(1500,2000):
|
|
||||||
str = "'%s', " % random.randint(-922337203685477580700,922337203685477580700)
|
|
||||||
sql += str
|
|
||||||
for j in range(2000,2500):
|
|
||||||
str = "'%s', " % random.randint(-92233720368547758070,92233720368547758070)
|
|
||||||
sql += str
|
|
||||||
for j in range(2500,3000):
|
|
||||||
str = "'%s', " % random.choice(['true','false'])
|
|
||||||
sql += str
|
|
||||||
for j in range(3000,3500):
|
|
||||||
str = "'%s', " % random.randint(-9223372036854775807,9223372036854775807)
|
|
||||||
sql += str
|
|
||||||
for j in range(3500,3800):
|
|
||||||
str = "'%s', " % self.get_random_string(4)
|
|
||||||
sql += str
|
|
||||||
for j in range(3800,4090):
|
|
||||||
str = "'%s', " % self.get_random_string(10)
|
|
||||||
sql += str
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.execute(sql % (self.ts + i))
|
|
||||||
time.sleep(1)
|
|
||||||
tdSql.query("select count(*) from table_30")
|
|
||||||
tdSql.checkData(0, 0, self.num)
|
|
||||||
tdSql.query("select * from table_30")
|
|
||||||
tdSql.checkRows(self.num)
|
|
||||||
tdSql.checkCols(4092)
|
|
||||||
|
|
||||||
#insert null value
|
|
||||||
tdLog.info('test insert null value')
|
|
||||||
sql = '''create table table_31 using stable_3
|
|
||||||
tags('table_31' , '1' , '2' , '3' );'''
|
|
||||||
tdSql.execute(sql)
|
|
||||||
|
|
||||||
for i in range(self.num):
|
|
||||||
sql = "insert into table_31 values(%d, "
|
|
||||||
for j in range(2500):
|
|
||||||
str = "'%s', " % random.choice(['NULL' ,'NULL' ,'NULL' ,1 , 10 ,100 ,-100 ,-10, 88 ,66 ,'NULL' ,'NULL' ,'NULL' ])
|
|
||||||
sql += str
|
|
||||||
for j in range(2500,3000):
|
|
||||||
str = "'%s', " % random.choice(['true' ,'false'])
|
|
||||||
sql += str
|
|
||||||
for j in range(3000,3500):
|
|
||||||
str = "'%s', " % random.randint(-9223372036854775807,9223372036854775807)
|
|
||||||
sql += str
|
|
||||||
for j in range(3500,3800):
|
|
||||||
str = "'%s', " % self.get_random_string(4)
|
|
||||||
sql += str
|
|
||||||
for j in range(3800,4090):
|
|
||||||
str = "'%s', " % self.get_random_string(10)
|
|
||||||
sql += str
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.execute(sql % (self.ts + i))
|
|
||||||
time.sleep(1)
|
|
||||||
tdSql.query("select count(*) from table_31")
|
|
||||||
tdSql.checkData(0, 0, self.num)
|
|
||||||
tdSql.query("select * from table_31")
|
|
||||||
tdSql.checkRows(self.num)
|
|
||||||
tdSql.checkCols(4092)
|
|
||||||
|
|
||||||
#insert in order
|
|
||||||
tdLog.info('test insert in order')
|
|
||||||
for i in range(self.num):
|
|
||||||
sql = "insert into table_31 (ts,int_2,int_22,int_169,smallint_537,smallint_607,tinyint_1030,tinyint_1491,double_1629,double_1808,float_2075,col4091) values(%d, "
|
|
||||||
for j in range(10):
|
|
||||||
str = "'%s', " % random.randint(0,100)
|
|
||||||
sql += str
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.execute(sql % (self.ts + i + 1000))
|
|
||||||
time.sleep(1)
|
|
||||||
tdSql.query("select count(*) from table_31")
|
|
||||||
tdSql.checkData(0, 0, 2*self.num)
|
|
||||||
tdSql.query("select * from table_31")
|
|
||||||
tdSql.checkRows(2*self.num)
|
|
||||||
tdSql.checkCols(4092)
|
|
||||||
|
|
||||||
#insert out of order
|
|
||||||
tdLog.info('test insert out of order')
|
|
||||||
for i in range(self.num):
|
|
||||||
sql = "insert into table_31 (ts,int_169,float_2075,int_369,tinyint_1491,tinyint_1030,float_2360,smallint_537,double_1808,double_1608,double_1629,col4091) values(%d, "
|
|
||||||
for j in range(10):
|
|
||||||
str = "'%s', " % random.randint(0,100)
|
|
||||||
sql += str
|
|
||||||
sql += "'%s')" % self.get_random_string(22)
|
|
||||||
tdSql.execute(sql % (self.ts + i + 2000))
|
|
||||||
time.sleep(1)
|
|
||||||
tdSql.query("select count(*) from table_31")
|
|
||||||
tdSql.checkData(0, 0, 3*self.num)
|
|
||||||
tdSql.query("select * from table_31")
|
|
||||||
tdSql.checkRows(3*self.num)
|
|
||||||
tdSql.checkCols(4092)
|
|
||||||
|
|
||||||
#define TSDB_MAX_BYTES_PER_ROW 49151 TSDB_MAX_TAGS_LEN 16384
|
|
||||||
#ts:8\int:4\smallint:2\bigint:8\bool:1\float:4\tinyint:1\nchar:4*()+2[offset]\binary:1*()+2[offset]
|
|
||||||
tdLog.info('test super table max bytes per row 49151')
|
|
||||||
sql = "create table stable_4(ts timestamp, "
|
|
||||||
for i in range(500):
|
|
||||||
sql += "int_%d int, " % (i + 1)
|
|
||||||
for i in range(500,1000):
|
|
||||||
sql += "smallint_%d smallint, " % (i + 1)
|
|
||||||
for i in range(1000,1500):
|
|
||||||
sql += "tinyint_%d tinyint, " % (i + 1)
|
|
||||||
for i in range(1500,2000):
|
|
||||||
sql += "double_%d double, " % (i + 1)
|
|
||||||
for i in range(2000,2500):
|
|
||||||
sql += "float_%d float, " % (i + 1)
|
|
||||||
for i in range(2500,3000):
|
|
||||||
sql += "bool_%d bool, " % (i + 1)
|
|
||||||
for i in range(3000,3500):
|
|
||||||
sql += "bigint_%d bigint, " % (i + 1)
|
|
||||||
for i in range(3500,3800):
|
|
||||||
sql += "nchar_%d nchar(20), " % (i + 1)
|
|
||||||
for i in range(3800,4090):
|
|
||||||
sql += "binary_%d binary(34), " % (i + 1)
|
|
||||||
sql += "col4091 binary(101))"
|
|
||||||
sql += " tags (loc nchar(10),tag_1 int,tag_2 int,tag_3 int) "
|
|
||||||
tdSql.execute(sql)
|
|
||||||
sql = '''create table table_40 using stable_4
|
|
||||||
tags('table_40' , '1' , '2' , '3' );'''
|
|
||||||
tdSql.execute(sql)
|
|
||||||
tdSql.query("select * from table_40")
|
|
||||||
tdSql.checkCols(4092)
|
|
||||||
tdSql.query("describe table_40")
|
|
||||||
tdSql.checkRows(4096)
|
|
||||||
|
|
||||||
tdLog.info('test super table drop and add column or tag')
|
|
||||||
sql = "alter stable stable_4 drop column col4091; "
|
|
||||||
tdSql.execute(sql)
|
|
||||||
sql = "select * from stable_4; "
|
|
||||||
tdSql.query(sql)
|
|
||||||
tdSql.checkCols(4095)
|
|
||||||
sql = "alter table stable_4 add column col4091 binary(102); "
|
|
||||||
tdSql.error(sql)
|
|
||||||
sql = "alter table stable_4 add column col4091 binary(101); "
|
|
||||||
tdSql.execute(sql)
|
|
||||||
sql = "select * from stable_4; "
|
|
||||||
tdSql.query(sql)
|
|
||||||
tdSql.checkCols(4096)
|
|
||||||
|
|
||||||
sql = "alter stable stable_4 drop tag tag_1; "
|
|
||||||
tdSql.execute(sql)
|
|
||||||
sql = "select * from stable_4; "
|
|
||||||
tdSql.query(sql)
|
|
||||||
tdSql.checkCols(4095)
|
|
||||||
sql = "alter table stable_4 add tag tag_1 int; "
|
|
||||||
tdSql.execute(sql)
|
|
||||||
sql = "select * from stable_4; "
|
|
||||||
tdSql.query(sql)
|
|
||||||
tdSql.checkCols(4096)
|
|
||||||
sql = "alter table stable_4 add tag loc1 nchar(10); "
|
|
||||||
tdSql.error(sql)
|
|
||||||
|
|
||||||
tdLog.info('test super table max bytes per row 49151')
|
|
||||||
sql = "create table stable_5(ts timestamp, "
|
|
||||||
for i in range(500):
|
|
||||||
sql += "int_%d int, " % (i + 1)
|
|
||||||
for i in range(500,1000):
|
|
||||||
sql += "smallint_%d smallint, " % (i + 1)
|
|
||||||
for i in range(1000,1500):
|
|
||||||
sql += "tinyint_%d tinyint, " % (i + 1)
|
|
||||||
for i in range(1500,2000):
|
|
||||||
sql += "double_%d double, " % (i + 1)
|
|
||||||
for i in range(2000,2500):
|
|
||||||
sql += "float_%d float, " % (i + 1)
|
|
||||||
for i in range(2500,3000):
|
|
||||||
sql += "bool_%d bool, " % (i + 1)
|
|
||||||
for i in range(3000,3500):
|
|
||||||
sql += "bigint_%d bigint, " % (i + 1)
|
|
||||||
for i in range(3500,3800):
|
|
||||||
sql += "nchar_%d nchar(20), " % (i + 1)
|
|
||||||
for i in range(3800,4090):
|
|
||||||
sql += "binary_%d binary(34), " % (i + 1)
|
|
||||||
sql += "col4091 binary(102))"
|
|
||||||
sql += " tags (loc nchar(10),tag_1 int,tag_2 int,tag_3 int) "
|
|
||||||
tdSql.error(sql)
|
|
||||||
|
|
||||||
print("==============step6, super table error col ==============")
|
|
||||||
tdLog.info('test exceeds row num')
|
|
||||||
# column + tag > 4096
|
|
||||||
sql = "create stable stable_2(ts timestamp, "
|
|
||||||
for i in range(4091):
|
|
||||||
sql += "col%d int, " % (i + 1)
|
|
||||||
sql += "col4092 binary(22))"
|
|
||||||
sql += " tags (loc nchar(10),tag_1 int,tag_2 int,tag_3 int) "
|
|
||||||
tdLog.info(len(sql))
|
|
||||||
tdSql.error(sql)
|
|
||||||
|
|
||||||
# column + tag > 4096
|
|
||||||
sql = "create stable stable_2(ts timestamp, "
|
|
||||||
for i in range(4090):
|
|
||||||
sql += "col%d int, " % (i + 1)
|
|
||||||
sql += "col4091 binary(22))"
|
|
||||||
sql += " tags (loc nchar(10),tag_1 int,tag_2 int,tag_3 int,tag_4 int) "
|
|
||||||
tdLog.info(len(sql))
|
|
||||||
tdSql.error(sql)
|
|
||||||
|
|
||||||
# alter column + tag > 4096
|
|
||||||
sql = "alter table stable_1 add column max int; "
|
|
||||||
tdSql.error(sql)
|
|
||||||
# TD-5322
|
|
||||||
sql = "alter table stable_1 add tag max int; "
|
|
||||||
tdSql.error(sql)
|
|
||||||
# TD-5324
|
|
||||||
sql = "alter table stable_4 modify column col4091 binary(102); "
|
|
||||||
tdSql.error(sql)
|
|
||||||
sql = "alter table stable_4 modify tag loc nchar(20); "
|
|
||||||
tdSql.query("select * from table_40")
|
|
||||||
tdSql.checkCols(4092)
|
|
||||||
tdSql.query("describe table_40")
|
|
||||||
tdSql.checkRows(4096)
|
|
||||||
|
|
||||||
os.system("rm -rf tools/taosdemoAllTest/TD-5213/insert4096columns_not_use_taosdemo.py.sql")
|
|
||||||
|
|
||||||
|
|
||||||
def stop(self):
|
|
||||||
tdSql.close()
|
|
||||||
tdLog.success("%s successfully executed" % __file__)
|
|
||||||
|
|
||||||
|
|
||||||
tdCases.addWindows(__file__, TDTestCase())
|
|
||||||
tdCases.addLinux(__file__, TDTestCase())
|
|
File diff suppressed because one or more lines are too long
|
@ -1,137 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 10,
|
|
||||||
"create_table_thread_count": 10,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"num_of_records_per_req": 1,
|
|
||||||
"max_sql_len": 102400000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "json",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb_old",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "stb_old_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 5,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./tools/taosdemoAllTest/TD-5213/insertSigcolumnsNum4096.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT","count":1000}, {"type": "BINARY", "len": 16, "count":20}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":1}]
|
|
||||||
},{
|
|
||||||
"name": "stb_new",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "stb_new_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 5,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./tools/taosdemoAllTest/sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT","count":4000}, {"type": "BINARY", "len": 16, "count":90}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":3}]
|
|
||||||
},{
|
|
||||||
"name": "stb_mix",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "stb_mix_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 5,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./tools/taosdemoAllTest/sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT","count":500},{"type": "SMALLINT","count":500},{"type": "TINYINT","count":500},{"type": "DOUBLE","count":500},{"type": "FLOAT","count":500},{"type": "BOOL","count":500},{"type": "BIGINT","count":500},{"type": "NCHAR","len": 20,"count":300},{"type": "BINARY","len": 34,"count":290},{"type": "BINARY","len": 101,"count":1}],
|
|
||||||
"tags": [{"type": "INT", "count":3}, {"type": "NCHAR", "len": 10, "count":1}]
|
|
||||||
},{
|
|
||||||
"name": "stb_excel",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "stb_excel_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 5,
|
|
||||||
"data_source": "sample",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./tools/taosdemoAllTest/TD-5213/insertSigcolumnsNum4096.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT","count":500},{"type": "SMALLINT","count":500},{"type": "SMALLINT","count":500},{"type": "DOUBLE","count":500},{"type": "FLOAT","count":500},{"type": "BOOL","count":500},{"type": "BIGINT","count":500},{"type": "NCHAR","len": 19,"count":300},{"type": "BINARY","len": 34,"count":290},{"type": "BINARY","len": 101,"count":1}],
|
|
||||||
"tags": [{"type": "INT", "count":3}, {"type": "NCHAR", "len": 10, "count":1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,176 +0,0 @@
|
||||||
###################################################################
|
|
||||||
# Copyright (c) 2016 by TAOS Technologies, Inc.
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# This file is proprietary and confidential to TAOS Technologies.
|
|
||||||
# No part of this file may be reproduced, stored, transmitted,
|
|
||||||
# disclosed or used in any form or by any means other than as
|
|
||||||
# expressly provided by the written permission from Jianhui Tao
|
|
||||||
#
|
|
||||||
###################################################################
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
import time
|
|
||||||
from util.log import *
|
|
||||||
from util.cases import *
|
|
||||||
from util.sql import *
|
|
||||||
from util.dnodes import *
|
|
||||||
|
|
||||||
|
|
||||||
class TDTestCase:
|
|
||||||
def init(self, conn, logSql):
|
|
||||||
tdLog.debug("start to execute %s" % __file__)
|
|
||||||
tdSql.init(conn.cursor(), logSql)
|
|
||||||
|
|
||||||
def getBuildPath(self):
|
|
||||||
selfPath = os.path.dirname(os.path.realpath(__file__))
|
|
||||||
|
|
||||||
if ("community" in selfPath):
|
|
||||||
projPath = selfPath[:selfPath.find("community")]
|
|
||||||
else:
|
|
||||||
projPath = selfPath[:selfPath.find("tests")]
|
|
||||||
|
|
||||||
for root, dirs, files in os.walk(projPath):
|
|
||||||
if ("taosd" in files):
|
|
||||||
rootRealPath = os.path.dirname(os.path.realpath(root))
|
|
||||||
if ("packaging" not in rootRealPath):
|
|
||||||
buildPath = root[:len(root)-len("/build/bin")]
|
|
||||||
break
|
|
||||||
return buildPath
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
buildPath = self.getBuildPath()
|
|
||||||
if (buildPath == ""):
|
|
||||||
tdLog.exit("taosd not found!")
|
|
||||||
else:
|
|
||||||
tdLog.info("taosd found in %s" % buildPath)
|
|
||||||
binPath = buildPath+ "/build/bin/"
|
|
||||||
|
|
||||||
#-N:regular table -d:database name -t:table num -n:rows num per table -l:col num -y:force
|
|
||||||
#regular old && new
|
|
||||||
startTime = time.time()
|
|
||||||
os.system("%staosdemo -N -d regular_old -t 1 -n 10 -l 1023 -y" % binPath)
|
|
||||||
tdSql.execute("use regular_old")
|
|
||||||
tdSql.query("show tables;")
|
|
||||||
tdSql.checkRows(1)
|
|
||||||
tdSql.query("select * from d0;")
|
|
||||||
tdSql.checkCols(1024)
|
|
||||||
tdSql.query("describe d0;")
|
|
||||||
tdSql.checkRows(1024)
|
|
||||||
|
|
||||||
os.system("%staosdemo -N -d regular_new -t 1 -n 10 -l 4095 -y" % binPath)
|
|
||||||
tdSql.execute("use regular_new")
|
|
||||||
tdSql.query("show tables;")
|
|
||||||
tdSql.checkRows(1)
|
|
||||||
tdSql.query("select * from d0;")
|
|
||||||
tdSql.checkCols(4096)
|
|
||||||
tdSql.query("describe d0;")
|
|
||||||
tdSql.checkRows(4096)
|
|
||||||
|
|
||||||
#super table -d:database name -t:table num -n:rows num per table -l:col num -y:force
|
|
||||||
os.system("%staosdemo -d super_old -t 1 -n 10 -l 1021 -y" % binPath)
|
|
||||||
tdSql.execute("use super_old")
|
|
||||||
tdSql.query("show tables;")
|
|
||||||
tdSql.checkRows(1)
|
|
||||||
tdSql.query("select * from meters;")
|
|
||||||
tdSql.checkCols(1024)
|
|
||||||
tdSql.query("select * from d0;")
|
|
||||||
tdSql.checkCols(1022)
|
|
||||||
tdSql.query("describe meters;")
|
|
||||||
tdSql.checkRows(1024)
|
|
||||||
tdSql.query("describe d0;")
|
|
||||||
tdSql.checkRows(1024)
|
|
||||||
|
|
||||||
os.system("%staosdemo -d super_new -t 1 -n 10 -l 4093 -y" % binPath)
|
|
||||||
tdSql.execute("use super_new")
|
|
||||||
tdSql.query("show tables;")
|
|
||||||
tdSql.checkRows(1)
|
|
||||||
tdSql.query("select * from meters;")
|
|
||||||
tdSql.checkCols(4096)
|
|
||||||
tdSql.query("select * from d0;")
|
|
||||||
tdSql.checkCols(4094)
|
|
||||||
tdSql.query("describe meters;")
|
|
||||||
tdSql.checkRows(4096)
|
|
||||||
tdSql.query("describe d0;")
|
|
||||||
tdSql.checkRows(4096)
|
|
||||||
tdSql.execute("create table stb_new1_1 using meters tags(1,2)")
|
|
||||||
tdSql.query("select * from stb_new1_1")
|
|
||||||
tdSql.checkCols(4094)
|
|
||||||
tdSql.query("describe stb_new1_1;")
|
|
||||||
tdSql.checkRows(4096)
|
|
||||||
|
|
||||||
# insert: create one or mutiple tables per sql and insert multiple rows per sql
|
|
||||||
# test case for https://jira.taosdata.com:18080/browse/TD-5213
|
|
||||||
os.system("%staosdemo -f tools/taosdemoAllTest/TD-5213/insertSigcolumnsNum4096.json -y " % binPath)
|
|
||||||
tdSql.execute("use json")
|
|
||||||
tdSql.query("select count (tbname) from stb_old")
|
|
||||||
tdSql.checkData(0, 0, 1)
|
|
||||||
|
|
||||||
tdSql.query("select * from stb_old")
|
|
||||||
tdSql.checkRows(10)
|
|
||||||
tdSql.checkCols(1024)
|
|
||||||
|
|
||||||
tdSql.query("select count (tbname) from stb_new")
|
|
||||||
tdSql.checkData(0, 0, 1)
|
|
||||||
|
|
||||||
tdSql.query("select * from stb_new")
|
|
||||||
tdSql.checkRows(10)
|
|
||||||
tdSql.checkCols(4096)
|
|
||||||
tdSql.query("describe stb_new;")
|
|
||||||
tdSql.checkRows(4096)
|
|
||||||
tdSql.query("select * from stb_new_0")
|
|
||||||
tdSql.checkRows(10)
|
|
||||||
tdSql.checkCols(4091)
|
|
||||||
tdSql.query("describe stb_new_0;")
|
|
||||||
tdSql.checkRows(4096)
|
|
||||||
tdSql.execute("create table stb_new1_1 using stb_new tags(1,2,3,4,5)")
|
|
||||||
tdSql.query("select * from stb_new1_1")
|
|
||||||
tdSql.checkCols(4091)
|
|
||||||
tdSql.query("describe stb_new1_1;")
|
|
||||||
tdSql.checkRows(4096)
|
|
||||||
|
|
||||||
tdSql.query("select count (tbname) from stb_mix")
|
|
||||||
tdSql.checkData(0, 0, 1)
|
|
||||||
|
|
||||||
tdSql.query("select * from stb_mix")
|
|
||||||
tdSql.checkRows(10)
|
|
||||||
tdSql.checkCols(4096)
|
|
||||||
tdSql.query("describe stb_mix;")
|
|
||||||
tdSql.checkRows(4096)
|
|
||||||
tdSql.query("select * from stb_mix_0")
|
|
||||||
tdSql.checkRows(10)
|
|
||||||
tdSql.checkCols(4092)
|
|
||||||
tdSql.query("describe stb_mix_0;")
|
|
||||||
tdSql.checkRows(4096)
|
|
||||||
|
|
||||||
tdSql.query("select count (tbname) from stb_excel")
|
|
||||||
tdSql.checkData(0, 0, 1)
|
|
||||||
|
|
||||||
tdSql.query("select * from stb_excel")
|
|
||||||
tdSql.checkRows(10)
|
|
||||||
tdSql.checkCols(4096)
|
|
||||||
tdSql.query("describe stb_excel;")
|
|
||||||
tdSql.checkRows(4096)
|
|
||||||
tdSql.query("select * from stb_excel_0")
|
|
||||||
tdSql.checkRows(10)
|
|
||||||
tdSql.checkCols(4092)
|
|
||||||
tdSql.query("describe stb_excel_0;")
|
|
||||||
tdSql.checkRows(4096)
|
|
||||||
endTime = time.time()
|
|
||||||
print("total time %ds" % (endTime - startTime))
|
|
||||||
|
|
||||||
|
|
||||||
os.system("rm -rf tools/taosdemoAllTest/TD-5213/insertSigcolumnsNum4096.py.sql")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def stop(self):
|
|
||||||
tdSql.close()
|
|
||||||
tdLog.success("%s successfully executed" % __file__)
|
|
||||||
|
|
||||||
|
|
||||||
tdCases.addWindows(__file__, TDTestCase())
|
|
||||||
tdCases.addLinux(__file__, TDTestCase())
|
|
|
@ -1,43 +0,0 @@
|
||||||
from datetime import datetime
|
|
||||||
import time
|
|
||||||
import os
|
|
||||||
|
|
||||||
# class FileSeparaSpaceConvertcomma:
|
|
||||||
# def __init__(self):
|
|
||||||
# self.inputfile = ""
|
|
||||||
# self.oputfile = ""
|
|
||||||
# self.affectedRows = 0
|
|
||||||
|
|
||||||
# def ConvertFile(self, inputfile,):
|
|
||||||
|
|
||||||
os.system("awk -v OFS=',' '{$1=$1;print$0}' ./all_query_res0.txt > ./new_query_res0.txt")
|
|
||||||
with open('./new_query_res0.txt','r+') as f0:
|
|
||||||
contents = f0.readlines()
|
|
||||||
if os.path.exists('./test_query_res0.txt'):
|
|
||||||
os.system("rm -rf ./test_query_res0.txt")
|
|
||||||
for i in range(len(contents)):
|
|
||||||
content = contents[i].rstrip('\n')
|
|
||||||
stimestamp = content.split(',')[0]
|
|
||||||
timestamp = int(stimestamp)
|
|
||||||
d = datetime.fromtimestamp(timestamp/1000)
|
|
||||||
str0 = d.strftime("%Y-%m-%d %H:%M:%S.%f")[:-3]
|
|
||||||
ts = "'"+str0+"'"
|
|
||||||
str1 = "'"+content.split(',')[1]+"'"
|
|
||||||
str2 = "'"+content.split(',')[2]+"'"
|
|
||||||
content = ts + "," + str1 + "," + str2 + "," + content.split(',',3)[3]
|
|
||||||
contents[i] = content + "\n"
|
|
||||||
with open('./test_query_res0.txt','a') as fi:
|
|
||||||
fi.write(contents[i])
|
|
||||||
|
|
||||||
os.system("rm -rf ./new_query_res0.txt")
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# timestamp = 1604160000099
|
|
||||||
# d = datetime.fromtimestamp(timestamp/1000)
|
|
||||||
# str1 = d.strftime("%Y-%m-%d %H:%M:%S.%f")
|
|
||||||
# print(str1[:-3])
|
|
|
@ -1,88 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"num_of_records_per_req": 1,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1000,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 1,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 100,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":1}, {"type": "BINARY", "len": 16, "count":1}, {"type": "BINARY", "len": 32, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":1}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1000,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 200,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":1}, {"type": "BINARY", "len": 16, "count":1}, {"type": "BINARY", "len": 32, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,88 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"num_of_records_per_req": 1000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10000,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":1}, {"type": "BINARY", "len": 16, "count":1}, {"type": "BINARY", "len": 32, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":1}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 20,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20000,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":1}, {"type": "BINARY", "len": 16, "count":1}, {"type": "BINARY", "len": 32, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,88 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file":"./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"num_of_records_per_req": 1000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 1,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 10,
|
|
||||||
"disorder_range": 100,
|
|
||||||
"timestamp_step": 1000,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count":1,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 1,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 100,
|
|
||||||
"disorder_range": 1,
|
|
||||||
"timestamp_step": 1000,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":10}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,181 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 100,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "no",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 3650,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"auto_create_table": "123",
|
|
||||||
"childtable_count": 20,
|
|
||||||
"childtable_prefix": "NN123_",
|
|
||||||
"batch_create_tbl_num": 100,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 5,
|
|
||||||
"childtable_limit": 40,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10,
|
|
||||||
"start_timestamp": "now",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}],
|
|
||||||
"tags": [{"type": "TINYINT"}]
|
|
||||||
},{
|
|
||||||
"name": "stb",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"childtable_count": 20,
|
|
||||||
"childtable_prefix": "NNN_",
|
|
||||||
"batch_create_tbl_num": 100,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 5,
|
|
||||||
"childtable_limit": 40,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10,
|
|
||||||
"start_timestamp": "now",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}],
|
|
||||||
"tags": [{"type": "TINYINT"}]
|
|
||||||
},{
|
|
||||||
"name": "stb",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"auto_create_table": "yes",
|
|
||||||
"childtable_count": 20,
|
|
||||||
"childtable_prefix": "NNY_",
|
|
||||||
"batch_create_tbl_num": 100,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 5,
|
|
||||||
"childtable_limit": 40,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10,
|
|
||||||
"start_timestamp": "now",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}],
|
|
||||||
"tags": [{"type": "TINYINT"}]
|
|
||||||
},{
|
|
||||||
"name": "stb",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"auto_create_table": "123",
|
|
||||||
"childtable_count": 20,
|
|
||||||
"childtable_prefix": "NY123_",
|
|
||||||
"batch_create_tbl_num": 100,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 5,
|
|
||||||
"childtable_limit": 40,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10,
|
|
||||||
"start_timestamp": "now",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}],
|
|
||||||
"tags": [{"type": "TINYINT"}]
|
|
||||||
},{
|
|
||||||
"name": "stb",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"childtable_count": 20,
|
|
||||||
"childtable_prefix": "NYN_",
|
|
||||||
"batch_create_tbl_num": 100,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 5,
|
|
||||||
"childtable_limit": 40,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10,
|
|
||||||
"start_timestamp": "now",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}],
|
|
||||||
"tags": [{"type": "TINYINT"}]
|
|
||||||
},{
|
|
||||||
"name": "stb",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"auto_create_table": "yes",
|
|
||||||
"childtable_count": 20,
|
|
||||||
"childtable_prefix": "NYY_",
|
|
||||||
"batch_create_tbl_num": 100,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 5,
|
|
||||||
"childtable_limit": 40,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10,
|
|
||||||
"start_timestamp": "now",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}],
|
|
||||||
"tags": [{"type": "TINYINT"}]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,181 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 100,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 3650,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"auto_create_table": "123",
|
|
||||||
"childtable_count": 20,
|
|
||||||
"childtable_prefix": "YN123_",
|
|
||||||
"batch_create_tbl_num": 100,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 5,
|
|
||||||
"childtable_limit": 40,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10,
|
|
||||||
"start_timestamp": "now",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}],
|
|
||||||
"tags": [{"type": "TINYINT"}]
|
|
||||||
},{
|
|
||||||
"name": "stb",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"childtable_count": 20,
|
|
||||||
"childtable_prefix": "YNN_",
|
|
||||||
"batch_create_tbl_num": 100,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 5,
|
|
||||||
"childtable_limit": 40,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10,
|
|
||||||
"start_timestamp": "now",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}],
|
|
||||||
"tags": [{"type": "TINYINT"}]
|
|
||||||
},{
|
|
||||||
"name": "stb",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"auto_create_table": "yes",
|
|
||||||
"childtable_count": 20,
|
|
||||||
"childtable_prefix": "YNY_",
|
|
||||||
"batch_create_tbl_num": 100,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 5,
|
|
||||||
"childtable_limit": 40,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10,
|
|
||||||
"start_timestamp": "now",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}],
|
|
||||||
"tags": [{"type": "TINYINT"}]
|
|
||||||
},{
|
|
||||||
"name": "stb",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"auto_create_table": "123",
|
|
||||||
"childtable_count": 20,
|
|
||||||
"childtable_prefix": "YY123_",
|
|
||||||
"batch_create_tbl_num": 100,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 5,
|
|
||||||
"childtable_limit": 40,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10,
|
|
||||||
"start_timestamp": "now",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}],
|
|
||||||
"tags": [{"type": "TINYINT"}]
|
|
||||||
},{
|
|
||||||
"name": "stb",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"childtable_count": 20,
|
|
||||||
"childtable_prefix": "YYN_",
|
|
||||||
"batch_create_tbl_num": 100,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 5,
|
|
||||||
"childtable_limit": 40,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10,
|
|
||||||
"start_timestamp": "now",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}],
|
|
||||||
"tags": [{"type": "TINYINT"}]
|
|
||||||
},{
|
|
||||||
"name": "stb",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"auto_create_table": "yes",
|
|
||||||
"childtable_count": 20,
|
|
||||||
"childtable_prefix": "YYY_",
|
|
||||||
"batch_create_tbl_num": 100,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 5,
|
|
||||||
"childtable_limit": 40,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10,
|
|
||||||
"start_timestamp": "now",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}],
|
|
||||||
"tags": [{"type": "TINYINT"}]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,88 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"num_of_records_per_req": "-asdf",
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10000,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":-4,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":10}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 20,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": "asdf",
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20000,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":10}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,62 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 1000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 150,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 151,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":10}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,88 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 100,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"num_of_records_per_req": 2000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20000,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 1000,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":1}, {"type": "BINARY", "len": 16, "count":1}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20000,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 1000,
|
|
||||||
"insert_interval": 2000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":1}, {"type": "BINARY", "len": 16, "count":1}, {"type": "BINARY", "len": 32, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,166 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"num_of_records_per_req": 3000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"update": 1
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"childtable_count": 5,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":1}, {"type": "BINARY", "len": 16, "count":1}, {"type": "BINARY", "len": 32, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 6,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb2",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 7,
|
|
||||||
"childtable_prefix": "stb02_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": 4,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb3",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 8,
|
|
||||||
"childtable_prefix": "stb03_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": 2,
|
|
||||||
"childtable_offset": 7,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb4",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 8,
|
|
||||||
"childtable_prefix": "stb04_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset": 7,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,166 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"num_of_records_per_req": 3000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "no",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"update": 1
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"childtable_count": 5,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-12-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 6,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-12-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb2",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 7,
|
|
||||||
"childtable_prefix": "stb02_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": 4,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-12-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb3",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 8,
|
|
||||||
"childtable_prefix": "stb03_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": 2,
|
|
||||||
"childtable_offset": 7,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-12-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb4",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 8,
|
|
||||||
"childtable_prefix": "stb04_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 30,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset": 7,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-12-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,62 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"num_of_records_per_req": 3000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "dbno",
|
|
||||||
"drop": "no",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"update": 1
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 5,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "yes",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,166 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"num_of_records_per_req": 3000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "no",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"childtable_count": 5,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-11-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"childtable_count": 6,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-11-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb2",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"childtable_count": 7,
|
|
||||||
"childtable_prefix": "stb02_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": 4,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-11-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb3",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"childtable_count": 8,
|
|
||||||
"childtable_prefix": "stb03_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": 2,
|
|
||||||
"childtable_offset":7,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-11-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb4",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"childtable_count": 8,
|
|
||||||
"childtable_prefix": "stb04_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset": 7,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-11-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,166 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"num_of_records_per_req": 3000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"update": 1
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"childtable_count": 5,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 6,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb2",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 7,
|
|
||||||
"childtable_prefix": "stb02_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": 4,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb3",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 8,
|
|
||||||
"childtable_prefix": "stb03_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": 2,
|
|
||||||
"childtable_offset": 7,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb4",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 8,
|
|
||||||
"childtable_prefix": "stb04_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset": 7,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,88 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file":"./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"num_of_records_per_req": 1000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "dbtest123",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "sample",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./tools/taosdemoAllTest/sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT", "count":3}, {"type": "DOUBLE", "count":3}, {"type": "BINARY", "len": 16, "count":1}, {"type": "BINARY", "len": 32, "count":1}, {"type": "BOOL"}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count":2,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "./tools/taosdemoAllTest/tags.csv",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":10}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":3}, {"type": "BINARY", "len": 16, "count":2}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,88 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file":"./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"num_of_records_per_req": 1000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":10}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count":20,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10,
|
|
||||||
"start_timestamp": "2020-11-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":10}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,166 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"num_of_records_per_req": 10240000000,
|
|
||||||
"max_sql_len": 10240000000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 1,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "BINARY", "len": 16374, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":12}, {"type": "BINARY", "len": 16, "count":2}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 12,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 1,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "BINARY", "len": 16370, "count":1},{"type": "INT"}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb3",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "stb03_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 12,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 1,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "BINARY", "len": 16371, "count":3},{"type": "INT","count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb2",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "stb02_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 12,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 1,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "BINARY", "len": 16375, "count":1},{"type": "INT"}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb4",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "stb04_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 12,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 1,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "BINARY", "len": 16371, "count":3},{"type": "INT","count":6},{"type": "TINYINT"}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,88 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"num_of_records_per_req": 10,
|
|
||||||
"max_sql_len": 10240000000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 0,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 1,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "BINARY", "len": 1, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":1}, {"type": "BINARY", "len": 16, "count":2}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 12,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 2,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "BINARY", "len": 1, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,88 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"num_of_records_per_req": 10,
|
|
||||||
"max_sql_len": 10240000000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": -1,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 1,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "BINARY", "len": 1, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":1}, {"type": "BINARY", "len": 16, "count":2}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 12,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 2,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "BINARY", "len": 1, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,62 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"num_of_records_per_req": 1000,
|
|
||||||
"max_sql_len": 10240000000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 1000,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":1004}, {"type": "BINARY", "len": 5, "count":3075}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":7}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,62 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10000,
|
|
||||||
"num_of_records_per_req": 10000,
|
|
||||||
"max_sql_len": 10240000000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 1000,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":1005}, {"type": "BINARY", "len": 5, "count":3075}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":7}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,62 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"num_of_records_per_req": 100,
|
|
||||||
"max_sql_len": 10240000000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 1000,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":0}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":7}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,62 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"num_of_records_per_req": 1000,
|
|
||||||
"max_sql_len": 10240000000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 1001,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 1000,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":1004}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":7}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,86 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 50000,
|
|
||||||
"num_of_records_per_req": 50000,
|
|
||||||
"max_sql_len": 1025000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 3650,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 100,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows":50000,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1025000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2012-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "TINYINT", "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":1}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 100,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows":50000,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"interlace_rows": 32767,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1025000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2012-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "TINYINT", "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,88 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"num_of_records_per_req": 0,
|
|
||||||
"max_sql_len": 10240000000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 1,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "BINARY", "len": 1, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":1}, {"type": "BINARY", "len": 16, "count":2}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 2,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 12,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 2,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "BINARY", "len": 1, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,88 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"num_of_records_per_req": -1,
|
|
||||||
"max_sql_len": 10240000000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 1,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "BINARY", "len": 1, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":1}, {"type": "BINARY", "len": 16, "count":2}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 2,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 12,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 2,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "BINARY", "len": 1, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,88 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 100,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "rest",
|
|
||||||
"insert_rows": 10,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":1}, {"type": "BINARY", "len": 16, "count":1}, {"type": "BINARY", "len": 32, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":1}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 20,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":1}, {"type": "BINARY", "len": 16, "count":1}, {"type": "BINARY", "len": 32, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,62 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"num_of_records_per_req": 100,
|
|
||||||
"max_sql_len": 10240000000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 1000,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "DOUBLE", "count":4096}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":7}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,62 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"num_of_records_per_req": 1000000,
|
|
||||||
"max_sql_len": 1024000000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db1",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 1000,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 10000,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":1}, {"type": "BIGINT", "count":1}, {"type": "float", "count":1}, {"type": "double", "count":1}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":127}, {"type": "BINARY", "len": 16, "count":2}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,65 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "localhost",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"databases": [
|
|
||||||
{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "blf",
|
|
||||||
"drop": "yes"
|
|
||||||
},
|
|
||||||
"super_tables": [
|
|
||||||
{
|
|
||||||
"name": "p_0_topics",
|
|
||||||
"child_table_exists": "no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "p_0_topics_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 525600,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 1000,
|
|
||||||
"max_sql_len": 1048576,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 60000,
|
|
||||||
"start_timestamp": "2019-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [
|
|
||||||
{
|
|
||||||
"type": "INT",
|
|
||||||
"count": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "FLOAT",
|
|
||||||
"count": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "BINARY",
|
|
||||||
"len": 12,
|
|
||||||
"count": 1
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
{
|
|
||||||
"type": "BINARY",
|
|
||||||
"len": 12,
|
|
||||||
"count": 10
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,60 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 100,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 3650,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 500,
|
|
||||||
"childtable_prefix": "stb_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10000,
|
|
||||||
"childtable_limit": 10,
|
|
||||||
"childtable_offset":100,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 10,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,60 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 32766,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "no",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
|
|
||||||
"blocks": 3,
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 3650,
|
|
||||||
"minRows": 1000,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 500,
|
|
||||||
"childtable_prefix": "stb_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "sample",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10000,
|
|
||||||
"childtable_limit": 10,
|
|
||||||
"childtable_offset":100,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2019-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./tools/taosdemoAllTest/sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT", "count":3}, {"type": "DOUBLE", "count":3}, {"type": "BINARY", "len": 16, "count":1}, {"type": "BINARY", "len": 32, "count":1}, {"type": "BOOL"}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,60 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 32766,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "no",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 3650,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"childtable_count": 500,
|
|
||||||
"childtable_prefix": "stb_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 100000,
|
|
||||||
"childtable_limit": 500,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "now",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,60 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 32766,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
"days": 1,
|
|
||||||
"cache": 4,
|
|
||||||
"blocks": 3,
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 10,
|
|
||||||
"minRows": 1000,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "stb_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 864000,
|
|
||||||
"childtable_limit": 1,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1000,
|
|
||||||
"start_timestamp": "2020-10-11 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./tools/taosdemoAllTest/sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "BINARY", "len": 5120, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,60 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 32766,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "no",
|
|
||||||
"replica": 1,
|
|
||||||
"days": 1,
|
|
||||||
"cache": 4,
|
|
||||||
"blocks": 3,
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 10,
|
|
||||||
"minRows": 1000,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "stb_",
|
|
||||||
"auto_create_table": "yes",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 432000,
|
|
||||||
"childtable_limit": 1,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1000,
|
|
||||||
"start_timestamp": "2020-10-16 00:00:00.500",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./tools/taosdemoAllTest/sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "BINARY", "len": 5120, "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,72 +0,0 @@
|
||||||
###################################################################
|
|
||||||
# Copyright (c) 2016 by TAOS Technologies, Inc.
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# This file is proprietary and confidential to TAOS Technologies.
|
|
||||||
# No part of this file may be reproduced, stored, transmitted,
|
|
||||||
# disclosed or used in any form or by any means other than as
|
|
||||||
# expressly provided by the written permission from Jianhui Tao
|
|
||||||
#
|
|
||||||
###################################################################
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
from util.log import *
|
|
||||||
from util.cases import *
|
|
||||||
from util.sql import *
|
|
||||||
from util.dnodes import *
|
|
||||||
|
|
||||||
|
|
||||||
class TDTestCase:
|
|
||||||
def init(self, conn, logSql):
|
|
||||||
tdLog.debug("start to execute %s" % __file__)
|
|
||||||
tdSql.init(conn.cursor(), logSql)
|
|
||||||
|
|
||||||
def getBuildPath(self):
|
|
||||||
selfPath = os.path.dirname(os.path.realpath(__file__))
|
|
||||||
|
|
||||||
if ("community" in selfPath):
|
|
||||||
projPath = selfPath[:selfPath.find("community")]
|
|
||||||
else:
|
|
||||||
projPath = selfPath[:selfPath.find("tests")]
|
|
||||||
|
|
||||||
for root, dirs, files in os.walk(projPath):
|
|
||||||
if ("taosd" in files):
|
|
||||||
rootRealPath = os.path.dirname(os.path.realpath(root))
|
|
||||||
if ("packaging" not in rootRealPath):
|
|
||||||
buildPath = root[:len(root)-len("/build/bin")]
|
|
||||||
break
|
|
||||||
return buildPath
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
buildPath = self.getBuildPath()
|
|
||||||
if (buildPath == ""):
|
|
||||||
tdLog.exit("taosd not found!")
|
|
||||||
else:
|
|
||||||
tdLog.info("taosd found in %s" % buildPath)
|
|
||||||
binPath = buildPath+ "/build/bin/"
|
|
||||||
|
|
||||||
# insert: drop and child_table_exists combination test
|
|
||||||
# insert: using parament "childtable_offset and childtable_limit" to control table'offset point and offset
|
|
||||||
os.system("%staosdemo -f tools/taosdemoAllTest/moredemo-offset-newdb.json" % binPath)
|
|
||||||
os.system("%staosdemo -f tools/taosdemoAllTest/moredemo-offset-limit1.json & " % binPath)
|
|
||||||
os.system("%staosdemo -f tools/taosdemoAllTest/moredemo-offset-limit94.json & " % binPath)
|
|
||||||
os.system("%staosdemo -f tools/taosdemoAllTest/moredemo-offset-limit5.json & " % binPath)
|
|
||||||
sleep(15)
|
|
||||||
tdSql.execute("use db")
|
|
||||||
tdSql.query("select count(*) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 1000000)
|
|
||||||
|
|
||||||
os.system("rm -rf ./insert_res.txt")
|
|
||||||
os.system("rm -rf tools/taosdemoAllTest/moredemo-insert-offset.py.sql")
|
|
||||||
|
|
||||||
|
|
||||||
def stop(self):
|
|
||||||
tdSql.close()
|
|
||||||
tdLog.success("%s successfully executed" % __file__)
|
|
||||||
|
|
||||||
|
|
||||||
tdCases.addWindows(__file__, TDTestCase())
|
|
||||||
tdCases.addLinux(__file__, TDTestCase())
|
|
|
@ -1,62 +0,0 @@
|
||||||
|
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"num_of_records_per_req": 3000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "no",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10000,
|
|
||||||
"childtable_limit": 1,
|
|
||||||
"childtable_offset": 99,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-11-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,62 +0,0 @@
|
||||||
|
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"num_of_records_per_req": 3000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "no",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10000,
|
|
||||||
"childtable_limit": 5,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-11-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,62 +0,0 @@
|
||||||
|
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"num_of_records_per_req": 3000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "no",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"yes",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10000,
|
|
||||||
"childtable_limit": 94,
|
|
||||||
"childtable_offset": 5,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-11-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,61 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"num_of_records_per_req": 3000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 0,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-11-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,100 +0,0 @@
|
||||||
8.855,"binary_str0" ,1626870128248246976
|
|
||||||
8.75,"binary_str1" ,1626870128249060032
|
|
||||||
5.44,"binary_str2" ,1626870128249067968
|
|
||||||
8.45,"binary_str3" ,1626870128249072064
|
|
||||||
4.07,"binary_str4" ,1626870128249075904
|
|
||||||
6.97,"binary_str5" ,1626870128249078976
|
|
||||||
6.86,"binary_str6" ,1626870128249082048
|
|
||||||
1.585,"binary_str7" ,1626870128249085120
|
|
||||||
1.4,"binary_str8" ,1626870128249087936
|
|
||||||
5.135,"binary_str9" ,1626870128249092032
|
|
||||||
3.15,"binary_str10" ,1626870128249095104
|
|
||||||
1.765,"binary_str11" ,1626870128249097920
|
|
||||||
7.71,"binary_str12" ,1626870128249100992
|
|
||||||
3.91,"binary_str13" ,1626870128249104064
|
|
||||||
5.615,"binary_str14" ,1626870128249106880
|
|
||||||
9.495,"binary_str15" ,1626870128249109952
|
|
||||||
3.825,"binary_str16" ,1626870128249113024
|
|
||||||
1.94,"binary_str17" ,1626870128249117120
|
|
||||||
5.385,"binary_str18" ,1626870128249119936
|
|
||||||
7.075,"binary_str19" ,1626870128249123008
|
|
||||||
5.715,"binary_str20" ,1626870128249126080
|
|
||||||
1.83,"binary_str21" ,1626870128249128896
|
|
||||||
6.365,"binary_str22" ,1626870128249131968
|
|
||||||
6.55,"binary_str23" ,1626870128249135040
|
|
||||||
6.315,"binary_str24" ,1626870128249138112
|
|
||||||
3.82,"binary_str25" ,1626870128249140928
|
|
||||||
2.455,"binary_str26" ,1626870128249145024
|
|
||||||
7.795,"binary_str27" ,1626870128249148096
|
|
||||||
2.47,"binary_str28" ,1626870128249150912
|
|
||||||
1.37,"binary_str29" ,1626870128249155008
|
|
||||||
5.39,"binary_str30" ,1626870128249158080
|
|
||||||
5.13,"binary_str31" ,1626870128249160896
|
|
||||||
4.09,"binary_str32" ,1626870128249163968
|
|
||||||
5.855,"binary_str33" ,1626870128249167040
|
|
||||||
0.17,"binary_str34" ,1626870128249170112
|
|
||||||
1.955,"binary_str35" ,1626870128249173952
|
|
||||||
0.585,"binary_str36" ,1626870128249178048
|
|
||||||
0.33,"binary_str37" ,1626870128249181120
|
|
||||||
7.925,"binary_str38" ,1626870128249183936
|
|
||||||
9.685,"binary_str39" ,1626870128249187008
|
|
||||||
2.6,"binary_str40" ,1626870128249191104
|
|
||||||
5.705,"binary_str41" ,1626870128249193920
|
|
||||||
3.965,"binary_str42" ,1626870128249196992
|
|
||||||
4.43,"binary_str43" ,1626870128249200064
|
|
||||||
8.73,"binary_str44" ,1626870128249202880
|
|
||||||
3.105,"binary_str45" ,1626870128249205952
|
|
||||||
9.39,"binary_str46" ,1626870128249209024
|
|
||||||
2.825,"binary_str47" ,1626870128249212096
|
|
||||||
9.675,"binary_str48" ,1626870128249214912
|
|
||||||
9.99,"binary_str49" ,1626870128249217984
|
|
||||||
4.51,"binary_str50" ,1626870128249221056
|
|
||||||
4.94,"binary_str51" ,1626870128249223872
|
|
||||||
7.72,"binary_str52" ,1626870128249226944
|
|
||||||
4.135,"binary_str53" ,1626870128249231040
|
|
||||||
2.325,"binary_str54" ,1626870128249234112
|
|
||||||
4.585,"binary_str55" ,1626870128249236928
|
|
||||||
8.76,"binary_str56" ,1626870128249240000
|
|
||||||
4.715,"binary_str57" ,1626870128249243072
|
|
||||||
0.56,"binary_str58" ,1626870128249245888
|
|
||||||
5.35,"binary_str59" ,1626870128249249984
|
|
||||||
5.075,"binary_str60" ,1626870128249253056
|
|
||||||
6.665,"binary_str61" ,1626870128249256128
|
|
||||||
7.13,"binary_str62" ,1626870128249258944
|
|
||||||
2.775,"binary_str63" ,1626870128249262016
|
|
||||||
5.775,"binary_str64" ,1626870128249265088
|
|
||||||
1.62,"binary_str65" ,1626870128249267904
|
|
||||||
1.625,"binary_str66" ,1626870128249270976
|
|
||||||
8.15,"binary_str67" ,1626870128249274048
|
|
||||||
0.75,"binary_str68" ,1626870128249277120
|
|
||||||
3.265,"binary_str69" ,1626870128249280960
|
|
||||||
8.585,"binary_str70" ,1626870128249284032
|
|
||||||
1.88,"binary_str71" ,1626870128249287104
|
|
||||||
8.44,"binary_str72" ,1626870128249289920
|
|
||||||
5.12,"binary_str73" ,1626870128249295040
|
|
||||||
2.58,"binary_str74" ,1626870128249298112
|
|
||||||
9.42,"binary_str75" ,1626870128249300928
|
|
||||||
1.765,"binary_str76" ,1626870128249304000
|
|
||||||
2.66,"binary_str77" ,1626870128249308096
|
|
||||||
1.405,"binary_str78" ,1626870128249310912
|
|
||||||
5.595,"binary_str79" ,1626870128249315008
|
|
||||||
2.28,"binary_str80" ,1626870128249318080
|
|
||||||
9.24,"binary_str81" ,1626870128249320896
|
|
||||||
9.03,"binary_str82" ,1626870128249323968
|
|
||||||
6.055,"binary_str83" ,1626870128249327040
|
|
||||||
1.74,"binary_str84" ,1626870128249330112
|
|
||||||
5.77,"binary_str85" ,1626870128249332928
|
|
||||||
1.97,"binary_str86" ,1626870128249336000
|
|
||||||
0.3,"binary_str87" ,1626870128249339072
|
|
||||||
7.145,"binary_str88" ,1626870128249342912
|
|
||||||
0.88,"binary_str89" ,1626870128249345984
|
|
||||||
8.025,"binary_str90" ,1626870128249349056
|
|
||||||
4.81,"binary_str91" ,1626870128249351872
|
|
||||||
0.725,"binary_str92" ,1626870128249355968
|
|
||||||
3.85,"binary_str93" ,1626870128249359040
|
|
||||||
9.455,"binary_str94" ,1626870128249362112
|
|
||||||
2.265,"binary_str95" ,1626870128249364928
|
|
||||||
3.985,"binary_str96" ,1626870128249368000
|
|
||||||
9.375,"binary_str97" ,1626870128249371072
|
|
||||||
0.2,"binary_str98" ,1626870128249373888
|
|
||||||
6.95,"binary_str99" ,1626870128249377984
|
|
Can't render this file because it contains an unexpected character in line 1 and column 19.
|
|
@ -1,100 +0,0 @@
|
||||||
"string0",7,8.615
|
|
||||||
"string1",4,9.895
|
|
||||||
"string2",3,2.92
|
|
||||||
"string3",3,5.62
|
|
||||||
"string4",7,1.615
|
|
||||||
"string5",6,1.45
|
|
||||||
"string6",5,7.48
|
|
||||||
"string7",7,3.01
|
|
||||||
"string8",5,4.76
|
|
||||||
"string9",10,7.09
|
|
||||||
"string10",2,8.38
|
|
||||||
"string11",7,8.65
|
|
||||||
"string12",5,5.025
|
|
||||||
"string13",10,5.765
|
|
||||||
"string14",2,4.57
|
|
||||||
"string15",2,1.03
|
|
||||||
"string16",7,6.98
|
|
||||||
"string17",10,0.23
|
|
||||||
"string18",7,5.815
|
|
||||||
"string19",1,2.37
|
|
||||||
"string20",10,8.865
|
|
||||||
"string21",3,1.235
|
|
||||||
"string22",2,8.62
|
|
||||||
"string23",9,1.045
|
|
||||||
"string24",8,4.34
|
|
||||||
"string25",1,5.455
|
|
||||||
"string26",2,4.475
|
|
||||||
"string27",1,6.95
|
|
||||||
"string28",2,3.39
|
|
||||||
"string29",3,6.79
|
|
||||||
"string30",7,9.735
|
|
||||||
"string31",1,9.79
|
|
||||||
"string32",10,9.955
|
|
||||||
"string33",1,5.095
|
|
||||||
"string34",3,3.86
|
|
||||||
"string35",9,5.105
|
|
||||||
"string36",10,4.22
|
|
||||||
"string37",1,2.78
|
|
||||||
"string38",9,6.345
|
|
||||||
"string39",1,0.975
|
|
||||||
"string40",5,6.16
|
|
||||||
"string41",4,7.735
|
|
||||||
"string42",5,6.6
|
|
||||||
"string43",8,2.845
|
|
||||||
"string44",1,0.655
|
|
||||||
"string45",3,2.995
|
|
||||||
"string46",9,3.6
|
|
||||||
"string47",8,3.47
|
|
||||||
"string48",3,7.98
|
|
||||||
"string49",6,2.225
|
|
||||||
"string50",9,5.44
|
|
||||||
"string51",4,6.335
|
|
||||||
"string52",3,2.955
|
|
||||||
"string53",1,0.565
|
|
||||||
"string54",6,5.575
|
|
||||||
"string55",6,9.905
|
|
||||||
"string56",9,6.025
|
|
||||||
"string57",8,0.94
|
|
||||||
"string58",10,0.15
|
|
||||||
"string59",8,1.555
|
|
||||||
"string60",4,2.28
|
|
||||||
"string61",2,8.29
|
|
||||||
"string62",9,6.22
|
|
||||||
"string63",6,3.35
|
|
||||||
"string64",10,6.7
|
|
||||||
"string65",3,9.345
|
|
||||||
"string66",7,9.815
|
|
||||||
"string67",1,5.365
|
|
||||||
"string68",10,3.81
|
|
||||||
"string69",1,6.405
|
|
||||||
"string70",8,2.715
|
|
||||||
"string71",3,8.58
|
|
||||||
"string72",8,6.34
|
|
||||||
"string73",2,7.49
|
|
||||||
"string74",4,8.64
|
|
||||||
"string75",3,8.995
|
|
||||||
"string76",7,3.465
|
|
||||||
"string77",1,7.64
|
|
||||||
"string78",6,3.65
|
|
||||||
"string79",6,1.4
|
|
||||||
"string80",6,5.875
|
|
||||||
"string81",2,1.22
|
|
||||||
"string82",5,7.87
|
|
||||||
"string83",9,8.41
|
|
||||||
"string84",9,8.9
|
|
||||||
"string85",9,3.89
|
|
||||||
"string86",2,5.0
|
|
||||||
"string87",2,4.495
|
|
||||||
"string88",4,2.835
|
|
||||||
"string89",3,5.895
|
|
||||||
"string90",7,8.41
|
|
||||||
"string91",5,5.125
|
|
||||||
"string92",7,9.165
|
|
||||||
"string93",5,8.315
|
|
||||||
"string94",10,7.485
|
|
||||||
"string95",7,4.635
|
|
||||||
"string96",2,6.015
|
|
||||||
"string97",8,0.595
|
|
||||||
"string98",3,8.79
|
|
||||||
"string99",4,1.72
|
|
|
|
@ -1,37 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "query",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"databases": "db",
|
|
||||||
"query_times": 3,
|
|
||||||
"specified_table_query": {
|
|
||||||
"query_interval": 0,
|
|
||||||
"concurrent": 1,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_0",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_99 ",
|
|
||||||
"result": "./query_res1.txt"
|
|
||||||
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
"super_table_query": {
|
|
||||||
"stblname": "stb1",
|
|
||||||
"query_interval":0,
|
|
||||||
"threads": 0,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(ts) from xxxx",
|
|
||||||
"result": "./query_res2.txt"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "query",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"databases": "db",
|
|
||||||
"query_times": 3,
|
|
||||||
"specified_table_query": {
|
|
||||||
"query_interval": 0,
|
|
||||||
"concurrent": 1,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_0",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_99 ",
|
|
||||||
"result": "./query_res1.txt"
|
|
||||||
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
"super_table_query": {
|
|
||||||
"stblname": "stb1",
|
|
||||||
"query_interval":0,
|
|
||||||
"threads": -1,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(ts) from xxxx",
|
|
||||||
"result": "./query_res2.txt"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,62 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 100,
|
|
||||||
"num_of_records_per_req": 1000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
"cache": 50,
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 100,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 20,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 150000,
|
|
||||||
"childtable_limit": -1,
|
|
||||||
"childtable_offset":0,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"interlace_rows": 1000,
|
|
||||||
"insert_interval":0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-10-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":10}, {"type": "BINARY", "len": 16, "count":3}, {"type": "BINARY", "len": 32, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,88 +0,0 @@
|
||||||
###################################################################
|
|
||||||
# Copyright (c) 2016 by TAOS Technologies, Inc.
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# This file is proprietary and confidential to TAOS Technologies.
|
|
||||||
# No part of this file may be reproduced, stored, transmitted,
|
|
||||||
# disclosed or used in any form or by any means other than as
|
|
||||||
# expressly provided by the written permission from Jianhui Tao
|
|
||||||
#
|
|
||||||
###################################################################
|
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
import subprocess
|
|
||||||
import time
|
|
||||||
from util.log import *
|
|
||||||
from util.cases import *
|
|
||||||
from util.sql import *
|
|
||||||
from util.dnodes import *
|
|
||||||
|
|
||||||
|
|
||||||
class TDTestCase:
|
|
||||||
def init(self, conn, logSql):
|
|
||||||
tdLog.debug("start to execute %s" % __file__)
|
|
||||||
tdSql.init(conn.cursor(), logSql)
|
|
||||||
|
|
||||||
def getBuildPath(self):
|
|
||||||
selfPath = os.path.dirname(os.path.realpath(__file__))
|
|
||||||
|
|
||||||
if ("community" in selfPath):
|
|
||||||
projPath = selfPath[:selfPath.find("community")]
|
|
||||||
else:
|
|
||||||
projPath = selfPath[:selfPath.find("tests")]
|
|
||||||
|
|
||||||
for root, dirs, files in os.walk(projPath):
|
|
||||||
if ("taosd" in files):
|
|
||||||
rootRealPath = os.path.dirname(os.path.realpath(root))
|
|
||||||
if ("packaging" not in rootRealPath):
|
|
||||||
buildPath = root[:len(root)-len("/build/bin")]
|
|
||||||
break
|
|
||||||
return buildPath
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
tdSql.prepare()
|
|
||||||
buildPath = self.getBuildPath()
|
|
||||||
if (buildPath == ""):
|
|
||||||
tdLog.exit("taosd not found!")
|
|
||||||
else:
|
|
||||||
tdLog.info("taosd found in %s" % buildPath)
|
|
||||||
binPath = buildPath+ "/build/bin/"
|
|
||||||
|
|
||||||
# # insert 1000w rows in stb0
|
|
||||||
os.system("%staosdemo -f tools/taosdemoAllTest/query-interrupt.json -y " % binPath)
|
|
||||||
tdSql.execute("use db")
|
|
||||||
tdSql.query("select count (tbname) from stb0")
|
|
||||||
tdSql.checkData(0, 0,60)
|
|
||||||
tdSql.query("select count(*) from stb0")
|
|
||||||
tdSql.checkData(0, 0, 6000000)
|
|
||||||
os.system('%staosdemo -f tools/taosdemoAllTest/queryall.json -y & ' % binPath)
|
|
||||||
time.sleep(2)
|
|
||||||
query_pid = int(subprocess.getstatusoutput('ps aux|grep "taosdemoAllTest/queryall.json" |grep -v "grep"|awk \'{print $2}\'')[1])
|
|
||||||
taosd_cpu_load_1 = float(subprocess.getstatusoutput('top -n 1 -b -p $(ps aux|grep "bin/taosd -c"|grep -v "grep" |awk \'{print $2}\')|awk \'END{print}\' |awk \'{print $9}\'')[1])
|
|
||||||
if taosd_cpu_load_1 > 10.0 :
|
|
||||||
os.system("kill -9 %d" % query_pid)
|
|
||||||
time.sleep(5)
|
|
||||||
taosd_cpu_load_2 = float(subprocess.getstatusoutput('top -n 1 -b -p $(ps aux|grep "bin/taosd -c"|grep -v "grep" |awk \'{print $2}\')|awk \'END{print}\' |awk \'{print $9}\'')[1])
|
|
||||||
if taosd_cpu_load_2 < 10.0 :
|
|
||||||
suc_kill = 60
|
|
||||||
else:
|
|
||||||
suc_kill = 10
|
|
||||||
print("taosd_cpu_load is higher than 10%")
|
|
||||||
else:
|
|
||||||
suc_kill = 20
|
|
||||||
print("taosd_cpu_load is still less than 10%")
|
|
||||||
tdSql.query("select count (tbname) from stb0")
|
|
||||||
tdSql.checkData(0, 0, "%d" % suc_kill)
|
|
||||||
os.system("rm -rf querySystemInfo*")
|
|
||||||
os.system("rm -rf insert_res.txt")
|
|
||||||
|
|
||||||
def stop(self):
|
|
||||||
tdSql.close()
|
|
||||||
tdLog.success("%s successfully executed" % __file__)
|
|
||||||
|
|
||||||
|
|
||||||
tdCases.addWindows(__file__, TDTestCase())
|
|
||||||
tdCases.addLinux(__file__, TDTestCase())
|
|
|
@ -1,37 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "query",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"databases": "db",
|
|
||||||
"query_times":3,
|
|
||||||
"specified_table_query": {
|
|
||||||
"query_interval": 0,
|
|
||||||
"concurrent": 0,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_0",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_99 ",
|
|
||||||
"result": "./query_res1.txt"
|
|
||||||
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
"super_table_query": {
|
|
||||||
"stblname": "stb1",
|
|
||||||
"query_interval":0,
|
|
||||||
"threads": 1,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(ts) from xxxx",
|
|
||||||
"result": "./query_res2.txt"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "query",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"databases": "db",
|
|
||||||
"query_times":3,
|
|
||||||
"specified_table_query": {
|
|
||||||
"query_interval": 0,
|
|
||||||
"concurrent": -1,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_0",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_99 ",
|
|
||||||
"result": "./query_res1.txt"
|
|
||||||
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
"super_table_query": {
|
|
||||||
"stblname": "stb1",
|
|
||||||
"query_interval":0,
|
|
||||||
"threads": 1,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(ts) from xxxx",
|
|
||||||
"result": "./query_res2.txt"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,86 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"num_of_records_per_req": 3000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 100,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-11-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "BINARY", "len": 1, "count":1}, {"type": "BINARY", "len": 3, "count":1}, {"type": "INT"}, {"type": "DOUBLE", "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 10,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 200,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"interlace_rows": 0 ,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-11-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 1, "count":3}, {"type": "BINARY", "len": 2, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,86 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 4,
|
|
||||||
"create_table_thread_count": 4,
|
|
||||||
"result_file": "./insert_res.txt",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"insert_interval": 0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"num_of_records_per_req": 3000,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"databases": [{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "db",
|
|
||||||
"drop": "yes",
|
|
||||||
"replica": 1,
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"precision": "ms",
|
|
||||||
"keep": 365,
|
|
||||||
"minRows": 100,
|
|
||||||
"maxRows": 4096,
|
|
||||||
"comp":2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "stb0",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 2,
|
|
||||||
"childtable_prefix": "stb00_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 10,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-11-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "BINARY", "len": 1, "count":1}, {"type": "BINARY", "len": 3, "count":1}, {"type": "INT"}, {"type": "DOUBLE", "count":1}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stb1",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 2,
|
|
||||||
"childtable_prefix": "stb01_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 10,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rows": 5,
|
|
||||||
"childtable_limit": 0,
|
|
||||||
"childtable_offset": 0,
|
|
||||||
"interlace_rows": 0 ,
|
|
||||||
"insert_interval": 0,
|
|
||||||
"max_sql_len": 1024000,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1,
|
|
||||||
"start_timestamp": "2020-11-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "./sample.csv",
|
|
||||||
"tags_file": "",
|
|
||||||
"columns": [{"type": "INT"}, {"type": "DOUBLE", "count":6}, {"type": "BINARY", "len": 1, "count":3}, {"type": "BINARY", "len": 2, "count":6}],
|
|
||||||
"tags": [{"type": "TINYINT", "count":2}, {"type": "BINARY", "len": 16, "count":5}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "query",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"databases": "db",
|
|
||||||
"query_times": 1,
|
|
||||||
"specified_table_query": {
|
|
||||||
"query_interval": 10000,
|
|
||||||
"concurrent": 4,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_0",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_99 ",
|
|
||||||
"result": "./query_res1.txt"
|
|
||||||
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
"super_table_query": {
|
|
||||||
"stblname": "stb1",
|
|
||||||
"query_interval":20000,
|
|
||||||
"threads": 4,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(ts) from xxxx",
|
|
||||||
"result": "./query_res2.txt"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,38 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "query",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"databases": "db",
|
|
||||||
"query_times": 2,
|
|
||||||
"query_mode": "rest",
|
|
||||||
"specified_table_query": {
|
|
||||||
"query_interval": 1,
|
|
||||||
"concurrent": 3,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from db.stb0 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select count(*) from db.stb00_1",
|
|
||||||
"result": "./query_res1.txt"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"super_table_query": {
|
|
||||||
"stblname": "stb1",
|
|
||||||
"query_interval": 1,
|
|
||||||
"threads": 3,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(ts) from xxxx",
|
|
||||||
"result": "./query_res2.txt"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,429 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "query",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"databases": "db",
|
|
||||||
"query_times": 2,
|
|
||||||
"specified_table_query": {
|
|
||||||
"query_interval": 1,
|
|
||||||
"concurrent": 3,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_0",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_1",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_2",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_3",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_4",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_5",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_6",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_7",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_8",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_9",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_10 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_11 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_12 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_13 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_14 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_15 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_16 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_17 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_18 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_19 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_20 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_21 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_22 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_23 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_24 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_25 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_26 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_27 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_28 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_29 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_30 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_31 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_32 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_33 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_34 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_35 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_36 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_37 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_38 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_39 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_40 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_41 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_42 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_43 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_44 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_45 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_46 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_47 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_48 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_49 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_50 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_51 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_52 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_53 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_54 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_55 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_56 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_57 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_58 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_59 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_60",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_61",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_62",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_63",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_64",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_65",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_66",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_67",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_68",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_69",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_70 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_71 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_72 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_73 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_74 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_75 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_76 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_77 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_78 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_79 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_80 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_81 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_82 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_83 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_84 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_85 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_86 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_87 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_88 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_89 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_90 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_91 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_92 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_93 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_94 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_95 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_96 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_97 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_98 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_99 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
"super_table_query": {
|
|
||||||
"stblname": "stb1",
|
|
||||||
"query_interval": 1,
|
|
||||||
"threads": 3,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(ts) from xxxx",
|
|
||||||
"result": "./query_res2.txt"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,419 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "query",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"databases": "db",
|
|
||||||
"query_times": 3,
|
|
||||||
"super_table_query": {
|
|
||||||
"stblname": "stb0",
|
|
||||||
"query_interval": 10000,
|
|
||||||
"concurrent": 9,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select * from xxxx ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "query",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"databases": "db",
|
|
||||||
"query_times": 2,
|
|
||||||
"query_mode": "taosc",
|
|
||||||
"specified_table_query": {
|
|
||||||
"query_interval": 1,
|
|
||||||
"concurrent": 3,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb0 ",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select count(*) from stb00_1",
|
|
||||||
"result": "./query_res1.txt"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"super_table_query": {
|
|
||||||
"stblname": "stb1",
|
|
||||||
"query_interval": 1,
|
|
||||||
"threads": 3,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(ts) from xxxx",
|
|
||||||
"result": "./query_res2.txt"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "query",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"databases": "db",
|
|
||||||
"query_times": 0,
|
|
||||||
"specified_table_query": {
|
|
||||||
"query_interval": 0,
|
|
||||||
"concurrent": 1,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_0",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_99 ",
|
|
||||||
"result": "./query_res1.txt"
|
|
||||||
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
"super_table_query": {
|
|
||||||
"stblname": "stb1",
|
|
||||||
"query_interval":0,
|
|
||||||
"threads": 1,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(ts) from xxxx",
|
|
||||||
"result": "./query_res2.txt"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "query",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"databases": "db",
|
|
||||||
"query_times": -1,
|
|
||||||
"specified_table_query": {
|
|
||||||
"query_interval": 0,
|
|
||||||
"concurrent": 1,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_0",
|
|
||||||
"result": "./query_res0.txt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"sql": "select last_row(*) from stb00_99 ",
|
|
||||||
"result": "./query_res1.txt"
|
|
||||||
|
|
||||||
}]
|
|
||||||
},
|
|
||||||
"super_table_query": {
|
|
||||||
"stblname": "stb1",
|
|
||||||
"query_interval":0,
|
|
||||||
"threads": 1,
|
|
||||||
"sqls": [
|
|
||||||
{
|
|
||||||
"sql": "select last_row(ts) from xxxx",
|
|
||||||
"result": "./query_res2.txt"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"filetype":"query",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "127.0.0.1",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"databases": "db",
|
|
||||||
"specified_table_query":
|
|
||||||
{"query_interval":1, "concurrent":1,
|
|
||||||
"sqls": [{"sql": "select * from stb0", "result": ""}]
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
1,-1,2147483647,0,2247483647.1,-12.2,'12ac,;\[uer]','23ac,;\[uer23423]123123','true'
|
|
||||||
0,-1,2147483647,0,2247483647.1,-12.2,'12ac,;\[uer]','23ac,;\[uer23423]123123','true'
|
|
||||||
0,-1,2147483647,0,2247483647.1,-12.2,'12ac,;\[uer]','23ac,;\[uer23423]123123','false'
|
|
|
|
@ -1,45 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "192.168.1.103",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 10,
|
|
||||||
"create_table_thread_count": 1,
|
|
||||||
"result_file": "1174.out",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"num_of_records_per_req": 51,
|
|
||||||
"databases": [
|
|
||||||
{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "gdse",
|
|
||||||
"drop": "yes"
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "model_1174",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "model_1174_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 0,
|
|
||||||
"data_source": "sample",
|
|
||||||
"insert_mode": "stmt",
|
|
||||||
"insert_rate": 0,
|
|
||||||
"insert_rows": 2592000,
|
|
||||||
"interlace_rows": 1,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"number_of_tbl_in_one_sql": 0,
|
|
||||||
"max_sql_len": 1048576,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1000,
|
|
||||||
"start_timestamp": "2021-05-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "tools/taosdemoAllTest/1174.csv",
|
|
||||||
"tags_file": "tools/taosdemoAllTest/1174-tag.csv",
|
|
||||||
"columns": [{"type": "FLOAT", "count": 109}, {"type": "INT", "count": 4}, {"type": "FLOAT", "count": 8}, {"type": "INT", "count": 1}, {"type": "FLOAT", "count": 5}, {"type": "INT", "count": 47}, {"type": "BOOL", "count": 103}, {"type": "INT", "count": 2}, {"type": "TIMESTAMP", "count": 3}, {"type": "BOOL", "count": 28}, {"type": "INT", "count": 3}, {"type": "FLOAT", "count": 6}, {"type": "INT", "count": 1}, {"type": "FLOAT", "count": 7}, {"type": "BOOL", "count": 7}, {"type": "FLOAT", "count": 2}, {"type": "INT", "count": 3}, {"type": "FLOAT", "count": 3}, {"type": "INT", "count": 3}, {"type": "BOOL", "count": 1}],
|
|
||||||
"tags": [{"type": "INT", "count": 1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,45 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "192.168.1.103",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 10,
|
|
||||||
"create_table_thread_count": 1,
|
|
||||||
"result_file": "1174.out",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"num_of_records_per_req": 51,
|
|
||||||
"databases": [
|
|
||||||
{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "gdse",
|
|
||||||
"drop": "yes"
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "model_1174",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "model_1174_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 0,
|
|
||||||
"data_source": "sample",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rate": 0,
|
|
||||||
"insert_rows": 2592000,
|
|
||||||
"interlace_rows": 1,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"number_of_tbl_in_one_sql": 0,
|
|
||||||
"max_sql_len": 1048576,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1000,
|
|
||||||
"start_timestamp": "2021-05-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "tools/taosdemoAllTest/1174.csv",
|
|
||||||
"tags_file": "tools/taosdemoAllTest/1174-tag.csv",
|
|
||||||
"columns": [{"type": "FLOAT", "count": 109}, {"type": "INT", "count": 4}, {"type": "FLOAT", "count": 8}, {"type": "INT", "count": 1}, {"type": "FLOAT", "count": 5}, {"type": "INT", "count": 47}, {"type": "BOOL", "count": 103}, {"type": "INT", "count": 2}, {"type": "TIMESTAMP", "count": 3}, {"type": "BOOL", "count": 28}, {"type": "INT", "count": 3}, {"type": "FLOAT", "count": 6}, {"type": "INT", "count": 1}, {"type": "FLOAT", "count": 7}, {"type": "BOOL", "count": 7}, {"type": "FLOAT", "count": 2}, {"type": "INT", "count": 3}, {"type": "FLOAT", "count": 3}, {"type": "INT", "count": 3}, {"type": "BOOL", "count": 1}],
|
|
||||||
"tags": [{"type": "INT", "count": 1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,45 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "192.168.1.103",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 10,
|
|
||||||
"create_table_thread_count": 1,
|
|
||||||
"result_file": "1174.out",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"num_of_records_per_req": 51,
|
|
||||||
"databases": [
|
|
||||||
{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "gdse",
|
|
||||||
"drop": "yes"
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "model_1174",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "model_1174_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 0,
|
|
||||||
"data_source": "rand",
|
|
||||||
"insert_mode": "stmt",
|
|
||||||
"insert_rate": 0,
|
|
||||||
"insert_rows": 259200,
|
|
||||||
"interlace_rows": 1,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"number_of_tbl_in_one_sql": 0,
|
|
||||||
"max_sql_len": 1048576,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1000,
|
|
||||||
"start_timestamp": "2021-05-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "tools/taosdemoAllTest/1174.csv",
|
|
||||||
"tags_file": "tools/taosdemoAllTest/1174-tag.csv",
|
|
||||||
"columns": [{"type": "FLOAT", "count": 109}, {"type": "INT", "count": 4}, {"type": "FLOAT", "count": 8}, {"type": "INT", "count": 1}, {"type": "FLOAT", "count": 5}, {"type": "INT", "count": 47}, {"type": "BOOL", "count": 103}, {"type": "INT", "count": 2}, {"type": "TIMESTAMP", "count": 3}, {"type": "BOOL", "count": 28}, {"type": "INT", "count": 3}, {"type": "FLOAT", "count": 6}, {"type": "INT", "count": 1}, {"type": "FLOAT", "count": 7}, {"type": "BOOL", "count": 7}, {"type": "FLOAT", "count": 2}, {"type": "INT", "count": 3}, {"type": "FLOAT", "count": 3}, {"type": "INT", "count": 3}, {"type": "BOOL", "count": 1}],
|
|
||||||
"tags": [{"type": "INT", "count": 1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,45 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "192.168.1.103",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 10,
|
|
||||||
"create_table_thread_count": 1,
|
|
||||||
"result_file": "1174.out",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"num_of_records_per_req": 51,
|
|
||||||
"databases": [
|
|
||||||
{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "gdse",
|
|
||||||
"drop": "yes"
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "model_1174",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "model_1174_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 0,
|
|
||||||
"data_source": "sample",
|
|
||||||
"insert_mode": "stmt",
|
|
||||||
"insert_rate": 0,
|
|
||||||
"insert_rows": 259200,
|
|
||||||
"interlace_rows": 1,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"number_of_tbl_in_one_sql": 0,
|
|
||||||
"max_sql_len": 1048576,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1000,
|
|
||||||
"start_timestamp": "2021-05-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "tools/taosdemoAllTest/1174.csv",
|
|
||||||
"tags_file": "tools/taosdemoAllTest/1174-tag.csv",
|
|
||||||
"columns": [{"type": "FLOAT", "count": 109}, {"type": "INT", "count": 4}, {"type": "FLOAT", "count": 8}, {"type": "INT", "count": 1}, {"type": "FLOAT", "count": 5}, {"type": "INT", "count": 47}, {"type": "BOOL", "count": 103}, {"type": "INT", "count": 2}, {"type": "TIMESTAMP", "count": 3}, {"type": "BOOL", "count": 28}, {"type": "INT", "count": 3}, {"type": "FLOAT", "count": 6}, {"type": "INT", "count": 1}, {"type": "FLOAT", "count": 7}, {"type": "BOOL", "count": 7}, {"type": "FLOAT", "count": 2}, {"type": "INT", "count": 3}, {"type": "FLOAT", "count": 3}, {"type": "INT", "count": 3}, {"type": "BOOL", "count": 1}],
|
|
||||||
"tags": [{"type": "INT", "count": 1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
|
@ -1,45 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "insert",
|
|
||||||
"cfgdir": "/etc/taos",
|
|
||||||
"host": "192.168.1.103",
|
|
||||||
"port": 6030,
|
|
||||||
"user": "root",
|
|
||||||
"password": "taosdata",
|
|
||||||
"thread_count": 10,
|
|
||||||
"create_table_thread_count": 1,
|
|
||||||
"result_file": "1174.out",
|
|
||||||
"confirm_parameter_prompt": "no",
|
|
||||||
"num_of_records_per_req": 51,
|
|
||||||
"databases": [
|
|
||||||
{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "gdse",
|
|
||||||
"drop": "yes"
|
|
||||||
},
|
|
||||||
"super_tables": [{
|
|
||||||
"name": "model_1174",
|
|
||||||
"child_table_exists":"no",
|
|
||||||
"childtable_count": 1,
|
|
||||||
"childtable_prefix": "model_1174_",
|
|
||||||
"auto_create_table": "no",
|
|
||||||
"batch_create_tbl_num": 0,
|
|
||||||
"data_source": "sample",
|
|
||||||
"insert_mode": "taosc",
|
|
||||||
"insert_rate": 0,
|
|
||||||
"insert_rows": 259200,
|
|
||||||
"interlace_rows": 1,
|
|
||||||
"multi_thread_write_one_tbl": "no",
|
|
||||||
"number_of_tbl_in_one_sql": 0,
|
|
||||||
"max_sql_len": 1048576,
|
|
||||||
"disorder_ratio": 0,
|
|
||||||
"disorder_range": 1000,
|
|
||||||
"timestamp_step": 1000,
|
|
||||||
"start_timestamp": "2021-05-01 00:00:00.000",
|
|
||||||
"sample_format": "csv",
|
|
||||||
"sample_file": "tools/taosdemoAllTest/1174.csv",
|
|
||||||
"tags_file": "tools/taosdemoAllTest/1174-tag.csv",
|
|
||||||
"columns": [{"type": "FLOAT", "count": 109}, {"type": "INT", "count": 4}, {"type": "FLOAT", "count": 8}, {"type": "INT", "count": 1}, {"type": "FLOAT", "count": 5}, {"type": "INT", "count": 47}, {"type": "BOOL", "count": 103}, {"type": "INT", "count": 2}, {"type": "TIMESTAMP", "count": 3}, {"type": "BOOL", "count": 28}, {"type": "INT", "count": 3}, {"type": "FLOAT", "count": 6}, {"type": "INT", "count": 1}, {"type": "FLOAT", "count": 7}, {"type": "BOOL", "count": 7}, {"type": "FLOAT", "count": 2}, {"type": "INT", "count": 3}, {"type": "FLOAT", "count": 3}, {"type": "INT", "count": 3}, {"type": "BOOL", "count": 1}],
|
|
||||||
"tags": [{"type": "INT", "count": 1}]
|
|
||||||
}]
|
|
||||||
}]
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue