From cb21c7b42d94419afb63c4ee79b52d9cb221af6c Mon Sep 17 00:00:00 2001 From: cpwu Date: Thu, 26 May 2022 13:19:44 +0800 Subject: [PATCH] fix case --- tests/system-test/2-query/hyperloglog.py | 16 ++++++++-------- tests/system-test/2-query/join.py | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/system-test/2-query/hyperloglog.py b/tests/system-test/2-query/hyperloglog.py index 31b2f8b7d4..3b8c575b55 100644 --- a/tests/system-test/2-query/hyperloglog.py +++ b/tests/system-test/2-query/hyperloglog.py @@ -57,9 +57,9 @@ class TDTestCase: f"sqrt( {tbname}.{num_col} )", f"tan( {tbname}.{num_col} )", 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: query_condition.extend( ( @@ -199,13 +199,13 @@ class TDTestCase: tdSql.query(sqls[i]) def __test_current(self): - tdSql.query("select spread(ts) from ct1") - tdSql.checkRows(1) - tdSql.query("select spread(c1) from ct2") - tdSql.checkRows(1) - tdSql.query("select spread(c1) from ct4 group by c1") + tdSql.query("select hyperloglog(ts) from ct1") + tdSql.checkRows(self.rows) + tdSql.query("select hyperloglog(c1) from ct2") + tdSql.checkRows(self.rows + 2) + tdSql.query("select hyperloglog(c1) from ct4 group by c1") tdSql.checkRows(self.rows + 3) - tdSql.query("select spread(c1) from ct4 group by c7") + tdSql.query("select hyperloglog(c1) from ct4 group by c7") tdSql.checkRows(3) tdSql.query("select spread(ct2.c1) from ct4 join ct2 on ct4.ts=ct2.ts") tdSql.checkRows(1) diff --git a/tests/system-test/2-query/join.py b/tests/system-test/2-query/join.py index cf41ef140b..fc86cf5937 100644 --- a/tests/system-test/2-query/join.py +++ b/tests/system-test/2-query/join.py @@ -36,7 +36,7 @@ class TDTestCase: query_condition.extend( ( f"{tbname}.{char_col}", - f"upper( {tbname}.{char_col} )", + # f"upper( {tbname}.{char_col} )", ) ) query_condition.extend( f"cast( {tbname}.{un_char_col} as binary(16) ) " for un_char_col in NUM_COL) @@ -106,11 +106,11 @@ class TDTestCase: @property def __join_tblist(self): return [ - ["ct1", "ct2"], + # ["ct1", "ct2"], ["ct1", "ct4"], ["ct1", "t1"], ["ct2", "ct4"], - ["ct2", "t1"], + # ["ct2", "t1"], ["ct4", "t1"], # ["ct1", "ct2", "ct4"], # ["ct1", "ct2", "t1"],