提交 5db74213 编写于 作者: “happyguoxy”

test: refine query cases

上级 4de9f965
...@@ -851,6 +851,7 @@ class TDTestCase: ...@@ -851,6 +851,7 @@ class TDTestCase:
tdLog.info("========mark==%s==="% mark); tdLog.info("========mark==%s==="% mark);
try: try:
tdSql.query(sql,queryTimes=1) tdSql.query(sql,queryTimes=1)
self.explain_sql(sql)
except: except:
tdLog.info("sql is not support :=====%s; " %sql) tdLog.info("sql is not support :=====%s; " %sql)
tdSql.error(sql) tdSql.error(sql)
...@@ -4995,9 +4996,7 @@ class TDTestCase: ...@@ -4995,9 +4996,7 @@ class TDTestCase:
sql += "%s ;" % random.choice(self.limit_u_where) sql += "%s ;" % random.choice(self.limit_u_where)
tdLog.info(sql) tdLog.info(sql)
tdLog.info(len(sql)) tdLog.info(len(sql))
tdSql.query(sql) self.data_check(sql,mark='15-2')
self.cur1.execute(sql)
self.explain_sql(sql)
tdSql.query("select 15-2.2 from stable_1;") tdSql.query("select 15-2.2 from stable_1;")
for i in range(self.fornum): for i in range(self.fornum):
...@@ -5013,9 +5012,7 @@ class TDTestCase: ...@@ -5013,9 +5012,7 @@ class TDTestCase:
sql += "%s ;" % random.choice(self.limit_u_where) sql += "%s ;" % random.choice(self.limit_u_where)
tdLog.info(sql) tdLog.info(sql)
tdLog.info(len(sql)) tdLog.info(len(sql))
tdSql.query(sql) self.data_check(sql,mark='15-2.2')
self.cur1.execute(sql)
self.explain_sql(sql)
self.restartDnodes() self.restartDnodes()
tdSql.query("select 15-3 from stable_1;") tdSql.query("select 15-3 from stable_1;")
...@@ -5033,9 +5030,7 @@ class TDTestCase: ...@@ -5033,9 +5030,7 @@ class TDTestCase:
sql += "%s " % random.choice(self.limit_where) sql += "%s " % random.choice(self.limit_where)
tdLog.info(sql) tdLog.info(sql)
tdLog.info(len(sql)) tdLog.info(len(sql))
tdSql.query(sql) self.data_check(sql,mark='15-3')
self.cur1.execute(sql)
self.explain_sql(sql)
tdSql.query("select 15-4 from stable_1;") tdSql.query("select 15-4 from stable_1;")
for i in range(self.fornum): for i in range(self.fornum):
...@@ -5052,9 +5047,7 @@ class TDTestCase: ...@@ -5052,9 +5047,7 @@ class TDTestCase:
sql += "%s " % random.choice(self.limit_u_where) sql += "%s " % random.choice(self.limit_u_where)
tdLog.info(sql) tdLog.info(sql)
tdLog.info(len(sql)) tdLog.info(len(sql))
tdSql.query(sql) self.data_check(sql,mark='15-4')
self.cur1.execute(sql)
self.explain_sql(sql)
tdSql.query("select 15-4.2 from stable_1;") tdSql.query("select 15-4.2 from stable_1;")
for i in range(self.fornum): for i in range(self.fornum):
...@@ -5087,8 +5080,7 @@ class TDTestCase: ...@@ -5087,8 +5080,7 @@ class TDTestCase:
tdLog.info(sql) tdLog.info(sql)
tdLog.info(len(sql)) tdLog.info(len(sql))
tdSql.query(sql) tdSql.query(sql)
self.cur1.execute(sql) self.data_check(sql,mark='15-5')
self.explain_sql(sql)
#16 select * from (select calc_aggregate_regulars as agg from regular_table where <\>\in\and\or order by limit offset ) #16 select * from (select calc_aggregate_regulars as agg from regular_table where <\>\in\and\or order by limit offset )
#self.dropandcreateDB_random("%s" %db, 1) #self.dropandcreateDB_random("%s" %db, 1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册