From 4b210bd479277af077a12ea64bae40c68fb6da4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chappyguoxy=E2=80=9D?= <“happy_guoxy@163.com”> Date: Wed, 15 Nov 2023 20:12:12 +0800 Subject: [PATCH] test: add insert stable data and to_char\to_timestamp cases --- .../system-test/2-query/nestedQueryInterval.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/system-test/2-query/nestedQueryInterval.py b/tests/system-test/2-query/nestedQueryInterval.py index 83c48ee8dc..4f6b5acae1 100644 --- a/tests/system-test/2-query/nestedQueryInterval.py +++ b/tests/system-test/2-query/nestedQueryInterval.py @@ -1449,9 +1449,9 @@ class TDTestCase: tdSql.checkData(0, 0, 1); #test csv - sql1 = "select tbname,ts,q_int,q_binary from nested.stable_1 group by tbname>>'/stable_1.csv';" - sql2 = "select tbname,ts,q_int,q_binary from nested.stable_null_data >>/stable_null_data.csv;" - sql3 = "select tbname,ts,q_int,q_binary from nested.stable_null_childtable >>/stable_null_childtable.csv;" + sql1 = "select tbname,ts,q_int,q_binary from nested.stable_1 group by tbname>>'/home/TDinternal/community/tests/system-test/2-query/stable_1.csv';" + sql2 = "select tbname,ts,q_int,q_binary from nested.stable_null_data >>/home/TDinternal/community/tests/system-test/2-query/stable_null_data.csv;" + sql3 = "select tbname,ts,q_int,q_binary from nested.stable_null_childtable >>/home/TDinternal/community/tests/system-test/2-query/stable_null_childtable.csv;" os.system("taos -s '%s'" %sql1) os.system("taos -s '%s'" %sql2) @@ -1460,9 +1460,9 @@ class TDTestCase: tdSql.query(f"delete from nested.stable_1;") tdSql.query(f"delete from nested.stable_null_data;") tdSql.query(f"delete from nested.stable_null_childtable;") - tdSql.query(f"insert into nested.stable_1(tbname,ts,q_int,q_binary) file '/stable_1.csv'\ - nested.stable_null_data(tbname,ts,q_int,q_binary) file '/stable_null_data.csv'\ - nested.stable_null_childtable(tbname,ts,q_int,q_binary) file '/stable_null_childtable.csv';") + tdSql.query(f"insert into nested.stable_1(tbname,ts,q_int,q_binary) file '/home/TDinternal/community/tests/system-test/2-query/stable_1.csv'\ + nested.stable_null_data(tbname,ts,q_int,q_binary) file '/home/TDinternal/community/tests/system-test/2-query/stable_null_data.csv'\ + nested.stable_null_childtable(tbname,ts,q_int,q_binary) file '/home/TDinternal/community/tests/system-test/2-query/stable_null_childtable.csv';") tdSql.query(f"select tbname,count(*) from nested.stable_1 group by tbname order by tbname;") tdSql.checkRows(3) @@ -1496,9 +1496,9 @@ class TDTestCase: tdSql.query(f"delete from nested.stable_1;") tdSql.query(f"delete from nested.stable_null_data;") tdSql.query(f"delete from nested.stable_null_childtable;") - tdSql.query(f"insert into nested.stable_1(tbname,ts,q_int,q_binary) file '/stable_1.csv';") - tdSql.query(f"insert into nested.stable_null_data(tbname,ts,q_int,q_binary) file '/stable_null_data.csv';") - tdSql.query(f"insert into nested.stable_null_childtable(tbname,ts,q_int,q_binary) file '/stable_null_childtable.csv';") + tdSql.query(f"insert into nested.stable_1(tbname,ts,q_int,q_binary) file '/home/TDinternal/community/tests/system-test/2-queryle_1.csv';") + tdSql.query(f"insert into nested.stable_null_data(tbname,ts,q_int,q_binary) file '/home/TDinternal/community/tests/system-test/2-queryle_null_data.csv';") + tdSql.query(f"insert into nested.stable_null_childtable(tbname,ts,q_int,q_binary) file '/home/TDinternal/community/tests/system-test/2-queryle_null_childtable.csv';") tdSql.query(f"select tbname,count(*) from nested.stable_1 group by tbname order by tbname;") tdSql.checkRows(3)