diff --git a/tests/system-test/2-query/explain.py b/tests/system-test/2-query/explain.py index b452da0a355f0731f8f0e07afd66bb2da86b6761..9694498eb560b3dd3f7a05f0c89dabc912d94a24 100644 --- a/tests/system-test/2-query/explain.py +++ b/tests/system-test/2-query/explain.py @@ -33,11 +33,10 @@ class TDTestCase: tdSql.init(conn.cursor()) def __query_condition(self,tbname): - query_condition = [f"cast({col} as bigint)" for col in ALL_COL] + query_condition = [f"{tbname}.{col}" for col in ALL_COL] for num_col in NUM_COL: query_condition.extend( ( - f"{tbname}.{num_col}", f"abs( {tbname}.{num_col} )", f"acos( {tbname}.{num_col} )", f"asin( {tbname}.{num_col} )", @@ -63,18 +62,19 @@ class TDTestCase: for char_col in CHAR_COL: query_condition.extend( ( - f"count({tbname}.{char_col})", f"sum(cast({tbname}.{char_col}) as bigint)", f"max(cast({tbname}.{char_col}) as bigint)", f"min(cast({tbname}.{char_col}) as bigint)", f"avg(cast({tbname}.{char_col}) as bigint)", ) ) - # query_condition.extend( - # ( - # 1010, - # ) - # ) + query_condition.extend( + ( + 1010, + ''' "test1234!@#$%^&*():'>