test: add insert stable data and to_char\to_timestamp cases

This commit is contained in:
“happyguoxy” 2023-11-15 19:22:57 +08:00
parent 668a9506d4
commit 12a819c24f
1 changed files with 9 additions and 9 deletions

View File

@ -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>>'/home/stable_1.csv';"
sql2 = "select tbname,ts,q_int,q_binary from nested.stable_null_data >>/home/stable_null_data.csv;"
sql3 = "select tbname,ts,q_int,q_binary from nested.stable_null_childtable >>/home/stable_null_childtable.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;"
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 '/home/stable_1.csv'\
nested.stable_null_data(tbname,ts,q_int,q_binary) file '/home/stable_null_data.csv'\
nested.stable_null_childtable(tbname,ts,q_int,q_binary) file '/home/stable_null_childtable.csv';")
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"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 '/home/stable_1.csv';")
tdSql.query(f"insert into nested.stable_null_data(tbname,ts,q_int,q_binary) file '/home/stable_null_data.csv';")
tdSql.query(f"insert into nested.stable_null_childtable(tbname,ts,q_int,q_binary) file '/home/stable_null_childtable.csv';")
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"select tbname,count(*) from nested.stable_1 group by tbname order by tbname;")
tdSql.checkRows(3)