update case

This commit is contained in:
wenzhouwww@live.cn 2022-06-01 10:20:56 +08:00
parent 6e43da8cf5
commit 635d3b2921
1 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,3 @@
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:
"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:
"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:
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:
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:
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()