From bd932b3e773f86c23dfd6bd798ed5c227f7fac5f Mon Sep 17 00:00:00 2001 From: cpwu Date: Fri, 22 Apr 2022 19:27:17 +0800 Subject: [PATCH] fix case --- tests/system-test/2-query/sum.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/system-test/2-query/sum.py b/tests/system-test/2-query/sum.py index b23c942e40..85559ba5dd 100644 --- a/tests/system-test/2-query/sum.py +++ b/tests/system-test/2-query/sum.py @@ -61,23 +61,23 @@ class TDTestCase: tdSql.prepare() tdLog.printNoPrefix("==========step1:create table") - tdSql.execute( - f'''create table stb1( + create_stb_sql = f'''create table stb1( ts timestamp, {INT_COL} int, {BINT_COL} bigint, {SINT_COL} smallint, {TINT_COL} tinyint, - {FLOAT_COL} float, {DOUBLE_COL} double, {BOOL_COL} bool, - {BINARY_COL} binary(16), {NCHAR_COL} nchar(32), {TS_COL} timestamp) - tags (t1 int) + {FLOAT_COL} float, {DOUBLE_COL} double, {BOOL_COL} bool, + {BINARY_COL} binary(16), {NCHAR_COL} nchar(32), {TS_COL} timestamp + ) tags (t1 int) ''' - ) - tdSql.execute( - ''' - create table t1( + create_ntb_sql = f'''create table stb1( ts timestamp, {INT_COL} int, {BINT_COL} bigint, {SINT_COL} smallint, {TINT_COL} tinyint, - {FLOAT_COL} float, {DOUBLE_COL} double, {BOOL_COL} bool, - {BINARY_COL} binary(16), {NCHAR_COL} nchar(32), {TS_COL} timestamp + {FLOAT_COL} float, {DOUBLE_COL} double, {BOOL_COL} bool, + {BINARY_COL} binary(16), {NCHAR_COL} nchar(32), {TS_COL} timestamp ) ''' - ) + print(create_stb_sql) + print(create_ntb_sql) + tdSql.execute(create_stb_sql) + tdSql.execute(create_ntb_sql) + for i in range(4): tdSql.execute(f'create table ct{i+1} using stb1 tags ( {i+1} )')