From e92623967de98480c1d2c26ed7d8118af5dfcbc0 Mon Sep 17 00:00:00 2001 From: cpwu Date: Sat, 28 May 2022 20:00:55 +0800 Subject: [PATCH] fix case --- tests/system-test/2-query/explain.py | 30 +++++++++++++++------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/tests/system-test/2-query/explain.py b/tests/system-test/2-query/explain.py index b452da0a35..9694498eb5 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!@#$%^&*():'>