未验证 提交 74abd016 编写于 作者: H Hui Li 提交者: GitHub

Merge pull request #20817 from taosdata/test/main/TD-22157

test:add testcase of childtale_from_to
...@@ -61,9 +61,9 @@ class TDTestCase: ...@@ -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()
......
...@@ -15,13 +15,18 @@ ...@@ -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"}]
}] }]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册