提交 1d014841 编写于 作者: “happyguoxy”

test: rowlength64k

上级 0099e1d9
......@@ -63,10 +63,7 @@ class TDTestCase:
stable_sql = "select * from db.%s where loc match '[a-z]'" %stable_name
tdSql.query(stable_sql)
def run(self):
tdSql.prepare()
startTime_all = time.time()
def run_8(self):
print("==============step8,stable table , mix data type==============")
sql = "create stable db.stable_16(ts timestamp, "
......@@ -183,6 +180,8 @@ class TDTestCase:
self.ins_query()
def run_9(self):
print("==============step9,stable table , mix data type==============")
sql = "create stable db.stable_26(ts timestamp, "
sql += "col4090 int ,"
......@@ -298,6 +297,9 @@ class TDTestCase:
self.ins_query()
def run_1(self):
print("==============step1, regular table, 1 ts + 4094 cols + 1 binary==============")
startTime = time.time()
sql = "create table db.regular_table_1(ts timestamp, "
......@@ -360,6 +362,7 @@ class TDTestCase:
self.ins_query()
def run_2(self):
print("==============step2,regular table error col or value==============")
tdLog.info('test regular table exceeds row num')
......@@ -395,6 +398,9 @@ class TDTestCase:
self.ins_query()
def run_3(self):
print("==============step3,regular table , mix data type==============")
startTime = time.time()
sql = "create table db.regular_table_3(ts timestamp, "
......@@ -640,6 +646,7 @@ class TDTestCase:
self.ins_query()
def run_4(self):
print("==============step4, super table , 1 ts + 4090 cols + 4 tags ==============")
startTime = time.time()
......@@ -728,6 +735,8 @@ class TDTestCase:
self.ins_query()
def run_5(self):
print("==============step5,stable table , mix data type==============")
sql = "create stable db.stable_3(ts timestamp, "
for i in range(500):
......@@ -950,6 +959,9 @@ class TDTestCase:
self.ins_query()
def run_6(self):
print("==============step6,stable table , mix data type==============")
sql = "create stable db.stable_6(ts timestamp, "
for i in range(500):
......@@ -1209,6 +1221,9 @@ class TDTestCase:
sql += " tags (loc binary(16371),tag_1 int,tag_2 int,tag_3 int) "
tdSql.error(sql)
def run_7(self):
print("==============step7, super table error col ==============")
tdLog.info('test exceeds row num')
# column + tag > 4096
......@@ -1248,6 +1263,21 @@ class TDTestCase:
self.ins_query()
def run(self):
tdSql.prepare()
startTime_all = time.time()
self.run_8()
self.run_9()
self.run_1()
self.run_2()
# self.run_3()
# self.run_4()
# self.run_5()
# self.run_6()
# self.run_7()
endTime_all = time.time()
print("total time %ds" % (endTime_all - startTime_all))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册