提交 97094b29 编写于 作者: C cpwu

fix case

上级 a0059d61
...@@ -57,9 +57,9 @@ class TDTestCase: ...@@ -57,9 +57,9 @@ class TDTestCase:
f"sqrt( {tbname}.{num_col} )", f"sqrt( {tbname}.{num_col} )",
f"tan( {tbname}.{num_col} )", f"tan( {tbname}.{num_col} )",
f"cast( {tbname}.{num_col} as timestamp)", f"cast( {tbname}.{num_col} as timestamp)",
( f"{num_col} + {any_col}" for any_col in ALL_COL )
) )
) )
[ query_condition.append(f"{num_col} + {any_col}") for any_col in ALL_COL ]
for char_col in CHAR_COL: for char_col in CHAR_COL:
query_condition.extend( query_condition.extend(
( (
...@@ -98,7 +98,6 @@ class TDTestCase: ...@@ -98,7 +98,6 @@ class TDTestCase:
elif query_conditon.startswith("min"): elif query_conditon.startswith("min"):
query_conditon = query_conditon[4:-1] query_conditon = query_conditon[4:-1]
if query_conditon: if query_conditon:
return f" where {query_conditon} is not null" return f" where {query_conditon} is not null"
if col in NUM_COL: if col in NUM_COL:
...@@ -131,7 +130,7 @@ class TDTestCase: ...@@ -131,7 +130,7 @@ class TDTestCase:
@property @property
def __tb_liast(self): def __tb_list(self):
return [ return [
"ct1", "ct1",
"ct4", "ct4",
...@@ -140,7 +139,7 @@ class TDTestCase: ...@@ -140,7 +139,7 @@ class TDTestCase:
def sql_list(self): def sql_list(self):
sqls = [] sqls = []
__no_join_tblist = self.__tb_liast __no_join_tblist = self.__tb_list
for tb in __no_join_tblist: for tb in __no_join_tblist:
select_claus_list = self.__query_condition(tb) select_claus_list = self.__query_condition(tb)
for select_claus in select_claus_list: for select_claus in select_claus_list:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册