test:add testcase of childtale_from_to

This commit is contained in:
chenhaoran 2023-04-07 18:24:06 +08:00
parent dac59f16f4
commit f6f4e81333
2 changed files with 8 additions and 3 deletions

View File

@ -61,9 +61,9 @@ class TDTestCase:
os.system("%s" % cmd) os.system("%s" % cmd)
tdSql.execute("reset query cache") tdSql.execute("reset query cache")
tdSql.query("show db.tables") tdSql.query("show db.tables")
tdSql.checkRows(10) tdSql.checkRows(8)
tdSql.query("select count(*) from db.stb") tdSql.query("select count(*) from db.stb")
tdSql.checkData(0, 0, 100) tdSql.checkData(0, 0, 80)
def stop(self): def stop(self):
tdSql.close() tdSql.close()

View File

@ -15,13 +15,18 @@
"num_of_records_per_req": 10, "num_of_records_per_req": 10,
"databases": [{ "databases": [{
"dbinfo": { "dbinfo": {
"name": "db" "name": "db",
"drop": "yes"
}, },
"super_tables": [{ "super_tables": [{
"child_table_exists":"no",
"name": "stb", "name": "stb",
"childtable_prefix": "stb_", "childtable_prefix": "stb_",
"childtable_count": 10, "childtable_count": 10,
"insert_rows": 10, "insert_rows": 10,
"childtable_from": 1,
"childtable_to": 9,
"columns": [{"type": "INT"}], "columns": [{"type": "INT"}],
"tags": [{"type": "INT"}] "tags": [{"type": "INT"}]
}] }]