提交 635d3b29 编写于 作者: W wenzhouwww@live.cn

update case

上级 6e43da8c
from math import floor
from random import randint, random from random import randint, random
from numpy import equal from numpy import equal
import taos import taos
...@@ -80,7 +79,7 @@ class TDTestCase: ...@@ -80,7 +79,7 @@ class TDTestCase:
"select tail(c1 ,c2 ) from t1", "select tail(c1 ,c2 ) from t1",
"select tail(c1 ,NULL) from t1", "select tail(c1 ,NULL) from t1",
"select tail(,) from t1;", "select tail(,) from t1;",
"select tail(floor(c1) ab from t1)", "select tail(tail(c1) ab from t1)",
"select tail(c1) as int from t1", "select tail(c1) as int from t1",
"select tail('c1') from t1", "select tail('c1') from t1",
"select tail(NULL) from t1", "select tail(NULL) from t1",
...@@ -104,7 +103,7 @@ class TDTestCase: ...@@ -104,7 +103,7 @@ class TDTestCase:
"select tail(c1 ,c2 ) from stb1 partition by tbname", "select tail(c1 ,c2 ) from stb1 partition by tbname",
"select tail(c1 ,NULL) from stb1 partition by tbname", "select tail(c1 ,NULL) from stb1 partition by tbname",
"select tail(,) from stb1 partition by tbname;", "select tail(,) from stb1 partition by tbname;",
"select tail(floor(c1) ab from stb1 partition by tbname)", "select tail(tail(c1) ab from stb1 partition by tbname)",
"select tail(c1) as int from stb1 partition by tbname", "select tail(c1) as int from stb1 partition by tbname",
"select tail('c1') from stb1 partition by tbname", "select tail('c1') from stb1 partition by tbname",
"select tail(NULL) from stb1 partition by tbname", "select tail(NULL) from stb1 partition by tbname",
...@@ -194,6 +193,7 @@ class TDTestCase: ...@@ -194,6 +193,7 @@ class TDTestCase:
tail_result = tdSql.queryResult tail_result = tdSql.queryResult
tdSql.query(equal_sql) tdSql.query(equal_sql)
print(equal_sql)
equal_result = tdSql.queryResult equal_result = tdSql.queryResult
...@@ -233,6 +233,9 @@ class TDTestCase: ...@@ -233,6 +233,9 @@ class TDTestCase:
col_lists_rows = tdSql.queryResult col_lists_rows = tdSql.queryResult
col_lists = [] col_lists = []
for col_name in col_lists_rows: for col_name in col_lists_rows:
if col_name[0] =="ts":
continue
col_lists.append(col_name[0]) col_lists.append(col_name[0])
for col in col_lists: for col in col_lists:
...@@ -419,11 +422,11 @@ class TDTestCase: ...@@ -419,11 +422,11 @@ class TDTestCase:
self.support_types() self.support_types()
tdLog.printNoPrefix("==========step4: floor basic query ============") tdLog.printNoPrefix("==========step4: tail basic query ============")
self.basic_tail_function() self.basic_tail_function()
tdLog.printNoPrefix("==========step5: floor boundary query ============") tdLog.printNoPrefix("==========step5: tail boundary query ============")
self.check_boundary_values() self.check_boundary_values()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册