test: add csv test config file
This commit is contained in:
parent
31376ba714
commit
77a4b818fb
|
@ -0,0 +1,172 @@
|
||||||
|
{
|
||||||
|
"filetype": "csvfile",
|
||||||
|
"output_path": "./csv/",
|
||||||
|
"databases": [
|
||||||
|
{
|
||||||
|
"dbinfo": {
|
||||||
|
"name": "csvdb",
|
||||||
|
"precision": "ms"
|
||||||
|
},
|
||||||
|
"super_tables": [
|
||||||
|
{
|
||||||
|
"name": "interlace-normal",
|
||||||
|
"childtable_count": 1010,
|
||||||
|
"insert_rows": 1000,
|
||||||
|
"interlace_rows": 1,
|
||||||
|
"childtable_prefix": "d",
|
||||||
|
"timestamp_step": 1000000,
|
||||||
|
"start_timestamp":1700000000000,
|
||||||
|
"childtable_from": 1000,
|
||||||
|
"childtable_to": 1010,
|
||||||
|
"csv_file_prefix": "data",
|
||||||
|
"csv_output_header": "true",
|
||||||
|
"csv_tbname_alias": "device_id",
|
||||||
|
"csv_compress_level": "none",
|
||||||
|
"columns": [
|
||||||
|
{ "type": "bool", "name": "bc"},
|
||||||
|
{ "type": "float", "name": "fc", "min": 1},
|
||||||
|
{ "type": "double", "name": "dc", "min":10, "max":10},
|
||||||
|
{ "type": "tinyint", "name": "ti"},
|
||||||
|
{ "type": "smallint", "name": "si"},
|
||||||
|
{ "type": "int", "name": "ic", "fillNull":"false"},
|
||||||
|
{ "type": "bigint", "name": "bi"},
|
||||||
|
{ "type": "utinyint", "name": "uti"},
|
||||||
|
{ "type": "usmallint", "name": "usi", "min":100, "max":120},
|
||||||
|
{ "type": "uint", "name": "ui"},
|
||||||
|
{ "type": "ubigint", "name": "ubi"},
|
||||||
|
{ "type": "binary", "name": "bin", "len": 16},
|
||||||
|
{ "type": "nchar", "name": "nch", "len": 16}
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
{"type": "tinyint", "name": "groupid","max": 10,"min": 1},
|
||||||
|
{"type": "binary", "name": "location", "len": 16,
|
||||||
|
"values": ["San Francisco", "Los Angles", "San Diego",
|
||||||
|
"San Jose", "Palo Alto", "Campbell", "Mountain View",
|
||||||
|
"Sunnyvale", "Santa Clara", "Cupertino"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "interlace-timeslice",
|
||||||
|
"childtable_count": 1010,
|
||||||
|
"insert_rows": 1000,
|
||||||
|
"interlace_rows": 1,
|
||||||
|
"childtable_prefix": "d",
|
||||||
|
"timestamp_step": 1000000,
|
||||||
|
"start_timestamp":1700000000000,
|
||||||
|
"childtable_from": 1000,
|
||||||
|
"childtable_to": 1010,
|
||||||
|
"csv_file_prefix": "data",
|
||||||
|
"csv_ts_format": "%Y%m%d",
|
||||||
|
"csv_ts_interval": "1d",
|
||||||
|
"csv_output_header": "true",
|
||||||
|
"csv_tbname_alias": "device_id",
|
||||||
|
"csv_compress_level": "none",
|
||||||
|
"columns": [
|
||||||
|
{ "type": "bool", "name": "bc"},
|
||||||
|
{ "type": "float", "name": "fc", "min": 1},
|
||||||
|
{ "type": "double", "name": "dc", "min":10, "max":10},
|
||||||
|
{ "type": "tinyint", "name": "ti"},
|
||||||
|
{ "type": "smallint", "name": "si"},
|
||||||
|
{ "type": "int", "name": "ic", "fillNull":"false"},
|
||||||
|
{ "type": "bigint", "name": "bi"},
|
||||||
|
{ "type": "utinyint", "name": "uti"},
|
||||||
|
{ "type": "usmallint", "name": "usi", "min":100, "max":120},
|
||||||
|
{ "type": "uint", "name": "ui"},
|
||||||
|
{ "type": "ubigint", "name": "ubi"},
|
||||||
|
{ "type": "binary", "name": "bin", "len": 16},
|
||||||
|
{ "type": "nchar", "name": "nch", "len": 16}
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
{"type": "tinyint", "name": "groupid","max": 10,"min": 1},
|
||||||
|
{"type": "binary", "name": "location", "len": 16,
|
||||||
|
"values": ["San Francisco", "Los Angles", "San Diego",
|
||||||
|
"San Jose", "Palo Alto", "Campbell", "Mountain View",
|
||||||
|
"Sunnyvale", "Santa Clara", "Cupertino"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "batch-normal",
|
||||||
|
"childtable_count": 1010,
|
||||||
|
"insert_rows": 1000,
|
||||||
|
"interlace_rows": 0,
|
||||||
|
"thread_count": 8,
|
||||||
|
"childtable_prefix": "d",
|
||||||
|
"timestamp_step": 1000000,
|
||||||
|
"start_timestamp":1700000000000,
|
||||||
|
"childtable_from": 1000,
|
||||||
|
"childtable_to": 1010,
|
||||||
|
"csv_file_prefix": "data",
|
||||||
|
"csv_output_header": "true",
|
||||||
|
"csv_tbname_alias": "device_id",
|
||||||
|
"csv_compress_level": "none",
|
||||||
|
"columns": [
|
||||||
|
{ "type": "bool", "name": "bc"},
|
||||||
|
{ "type": "float", "name": "fc", "min": 1},
|
||||||
|
{ "type": "double", "name": "dc", "min":10, "max":10},
|
||||||
|
{ "type": "tinyint", "name": "ti"},
|
||||||
|
{ "type": "smallint", "name": "si"},
|
||||||
|
{ "type": "int", "name": "ic", "fillNull":"false"},
|
||||||
|
{ "type": "bigint", "name": "bi"},
|
||||||
|
{ "type": "utinyint", "name": "uti"},
|
||||||
|
{ "type": "usmallint", "name": "usi", "min":100, "max":120},
|
||||||
|
{ "type": "uint", "name": "ui"},
|
||||||
|
{ "type": "ubigint", "name": "ubi"},
|
||||||
|
{ "type": "binary", "name": "bin", "len": 16},
|
||||||
|
{ "type": "nchar", "name": "nch", "len": 16}
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
{"type": "tinyint", "name": "groupid","max": 10,"min": 1},
|
||||||
|
{"type": "binary", "name": "location", "len": 16,
|
||||||
|
"values": ["San Francisco", "Los Angles", "San Diego",
|
||||||
|
"San Jose", "Palo Alto", "Campbell", "Mountain View",
|
||||||
|
"Sunnyvale", "Santa Clara", "Cupertino"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "batch-timeslice",
|
||||||
|
"childtable_count": 1010,
|
||||||
|
"insert_rows": 1000,
|
||||||
|
"interlace_rows": 0,
|
||||||
|
"thread_count": 8,
|
||||||
|
"childtable_prefix": "d",
|
||||||
|
"timestamp_step": 1000000,
|
||||||
|
"start_timestamp":1700000000000,
|
||||||
|
"childtable_from": 1000,
|
||||||
|
"childtable_to": 1010,
|
||||||
|
"csv_file_prefix": "data",
|
||||||
|
"csv_ts_format": "%Y%m%d",
|
||||||
|
"csv_ts_interval": "1d",
|
||||||
|
"csv_output_header": "true",
|
||||||
|
"csv_tbname_alias": "device_id",
|
||||||
|
"csv_compress_level": "none",
|
||||||
|
"columns": [
|
||||||
|
{ "type": "bool", "name": "bc"},
|
||||||
|
{ "type": "float", "name": "fc", "min": 1},
|
||||||
|
{ "type": "double", "name": "dc", "min":10, "max":10},
|
||||||
|
{ "type": "tinyint", "name": "ti"},
|
||||||
|
{ "type": "smallint", "name": "si"},
|
||||||
|
{ "type": "int", "name": "ic", "fillNull":"false"},
|
||||||
|
{ "type": "bigint", "name": "bi"},
|
||||||
|
{ "type": "utinyint", "name": "uti"},
|
||||||
|
{ "type": "usmallint", "name": "usi", "min":100, "max":120},
|
||||||
|
{ "type": "uint", "name": "ui"},
|
||||||
|
{ "type": "ubigint", "name": "ubi"},
|
||||||
|
{ "type": "binary", "name": "bin", "len": 16},
|
||||||
|
{ "type": "nchar", "name": "nch", "len": 16}
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
{"type": "tinyint", "name": "groupid","max": 10,"min": 1},
|
||||||
|
{"type": "binary", "name": "location", "len": 16,
|
||||||
|
"values": ["San Francisco", "Los Angles", "San Diego",
|
||||||
|
"San Jose", "Palo Alto", "Campbell", "Mountain View",
|
||||||
|
"Sunnyvale", "Santa Clara", "Cupertino"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -1,78 +0,0 @@
|
||||||
{
|
|
||||||
"filetype": "csvfile",
|
|
||||||
"csvPath": "./csv/",
|
|
||||||
"num_of_records_per_req": 10000,
|
|
||||||
"databases": [
|
|
||||||
{
|
|
||||||
"dbinfo": {
|
|
||||||
"name": "csvdb"
|
|
||||||
},
|
|
||||||
"super_tables": [
|
|
||||||
{
|
|
||||||
"name": "batchTable",
|
|
||||||
"childtable_count": 5,
|
|
||||||
"insert_rows": 100,
|
|
||||||
"interlace_rows": 0,
|
|
||||||
"childtable_prefix": "d",
|
|
||||||
"timestamp_step": 10,
|
|
||||||
"start_timestamp":1600000000000,
|
|
||||||
"columns": [
|
|
||||||
{ "type": "bool", "name": "bc"},
|
|
||||||
{ "type": "float", "name": "fc", "min": 1},
|
|
||||||
{ "type": "double", "name": "dc", "min":10, "max":10},
|
|
||||||
{ "type": "tinyint", "name": "ti"},
|
|
||||||
{ "type": "smallint", "name": "si"},
|
|
||||||
{ "type": "int", "name": "ic", "fillNull":"false"},
|
|
||||||
{ "type": "bigint", "name": "bi"},
|
|
||||||
{ "type": "utinyint", "name": "uti"},
|
|
||||||
{ "type": "usmallint", "name": "usi", "min":100, "max":120},
|
|
||||||
{ "type": "uint", "name": "ui"},
|
|
||||||
{ "type": "ubigint", "name": "ubi"},
|
|
||||||
{ "type": "binary", "name": "bin", "len": 16},
|
|
||||||
{ "type": "nchar", "name": "nch", "len": 16}
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
{"type": "tinyint", "name": "groupid","max": 10,"min": 1},
|
|
||||||
{"type": "binary", "name": "location", "len": 16,
|
|
||||||
"values": ["San Francisco", "Los Angles", "San Diego",
|
|
||||||
"San Jose", "Palo Alto", "Campbell", "Mountain View",
|
|
||||||
"Sunnyvale", "Santa Clara", "Cupertino"]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "interlaceTable",
|
|
||||||
"childtable_count": 5,
|
|
||||||
"insert_rows": 100,
|
|
||||||
"interlace_rows": 10,
|
|
||||||
"childtable_prefix": "d",
|
|
||||||
"timestamp_step": 1000,
|
|
||||||
"start_timestamp":1700000000000,
|
|
||||||
"columns": [
|
|
||||||
{ "type": "bool", "name": "bc"},
|
|
||||||
{ "type": "float", "name": "fc", "min":16},
|
|
||||||
{ "type": "double", "name": "dc", "min":16},
|
|
||||||
{ "type": "tinyint", "name": "ti"},
|
|
||||||
{ "type": "smallint", "name": "si"},
|
|
||||||
{ "type": "int", "name": "ic", "fillNull":"false"},
|
|
||||||
{ "type": "bigint", "name": "bi"},
|
|
||||||
{ "type": "utinyint", "name": "uti"},
|
|
||||||
{ "type": "usmallint", "name": "usi"},
|
|
||||||
{ "type": "uint", "name": "ui"},
|
|
||||||
{ "type": "ubigint", "name": "ubi"},
|
|
||||||
{ "type": "binary", "name": "bin", "len": 32},
|
|
||||||
{ "type": "nchar", "name": "nch", "len": 64}
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
{"type": "tinyint", "name": "groupid","max": 10,"min": 1},
|
|
||||||
{"type": "binary", "name": "location", "len": 16,
|
|
||||||
"values": ["San Francisco", "Los Angles", "San Diego",
|
|
||||||
"San Jose", "Palo Alto", "Campbell", "Mountain View",
|
|
||||||
"Sunnyvale", "Santa Clara", "Cupertino"]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
Reference in New Issue