test: add insert stable data and to_char\to_timestamp cases
This commit is contained in:
parent
6f5c819443
commit
e10f6ebf85
|
@ -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>>'/tmp/stable_1.csv';"
|
||||
sql2 = "select tbname,ts,q_int,q_binary from nested.stable_null_data >>/tmp/stable_null_data.csv;"
|
||||
sql3 = "select tbname,ts,q_int,q_binary from nested.stable_null_childtable >>/tmp/stable_null_childtable.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;"
|
||||
|
||||
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 '/tmp/stable_1.csv'\
|
||||
nested.stable_null_data(tbname,ts,q_int,q_binary) file '/tmp/stable_null_data.csv'\
|
||||
nested.stable_null_childtable(tbname,ts,q_int,q_binary) file '/tmp/stable_null_childtable.csv';")
|
||||
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"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 '/tmp/stable_1.csv';")
|
||||
tdSql.query(f"insert into nested.stable_null_data(tbname,ts,q_int,q_binary) file '/tmp/stable_null_data.csv';")
|
||||
tdSql.query(f"insert into nested.stable_null_childtable(tbname,ts,q_int,q_binary) file '/tmp/stable_null_childtable.csv';")
|
||||
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"select tbname,count(*) from nested.stable_1 group by tbname order by tbname;")
|
||||
tdSql.checkRows(3)
|
||||
|
|
Loading…
Reference in New Issue