fix case
This commit is contained in:
parent
a0059d61d5
commit
97094b29cf
|
@ -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:
|
||||||
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:
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def __tb_liast(self):
|
def __tb_list(self):
|
||||||
return [
|
return [
|
||||||
"ct1",
|
"ct1",
|
||||||
"ct4",
|
"ct4",
|
||||||
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue