Merge pull request #20693 from taosdata/test/TS-3018
test: refine query cases
This commit is contained in:
commit
321d4a87d9
|
@ -14,8 +14,9 @@
|
|||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/nestedQuery_math.py -Q 2
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/nestedQuery_time.py -Q 2
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/nestedQuery.py -Q 2
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/columnLenUpdated.py -Q 2
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/columnLenUpdated.py -Q 3
|
||||
#,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/columnLenUpdated.py
|
||||
#,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/columnLenUpdated.py -Q 2
|
||||
#,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/columnLenUpdated.py -Q 3
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/nestedQuery.py -Q 3
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/nestedQuery_str.py -Q 3
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/nestedQuery_math.py -Q 3
|
||||
|
@ -24,7 +25,7 @@
|
|||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/nestedQuery_str.py -Q 4
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/nestedQuery_math.py -Q 4
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/nestedQuery_time.py -Q 4
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/columnLenUpdated.py -Q 4
|
||||
#,,y,system-test,./pytest.sh python3 ./test.py -f 2-query/columnLenUpdated.py -Q 4
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmqShow.py
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmqDropStb.py
|
||||
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/subscribeStb0.py
|
||||
|
|
|
@ -147,9 +147,9 @@ class TDTestCase:
|
|||
tdSql.checkData(1, 1, '55555')
|
||||
|
||||
|
||||
tdSql.query("create table stb (ts timestamp, f1 int) tags (tg1 binary(2))")
|
||||
tdSql.query("create table stb (ts timestamp, f1 int, f2 binary(2)) tags (tg1 binary(2))")
|
||||
tdSql.query("create table tb1 using stb tags('bb')")
|
||||
tdSql.query("insert into tb1 values (now, 2)")
|
||||
tdSql.query("insert into tb1 values (now, 2,'22')")
|
||||
tdSql.query("select count(*) from stb group by tg1")
|
||||
tdSql.checkData(0, 0, 1)
|
||||
|
||||
|
@ -163,13 +163,23 @@ class TDTestCase:
|
|||
if retCode != "TAOS_OK":
|
||||
tdLog.exit("taos -s fail")
|
||||
|
||||
keyDict['s'] = "\"insert into db1.tb2 values (now, 2)\""
|
||||
keyDict['s'] = "\"insert into db1.tb2 values (now, 2,'22')\""
|
||||
retCode = taos_command(buildPath, "s", keyDict['s'], "Insert OK", '')
|
||||
if retCode != "TAOS_OK":
|
||||
tdLog.exit("taos -s fail")
|
||||
|
||||
keyDict['s'] = "\"alter table db1.stb modify column f2 binary(5) \""
|
||||
retCode = taos_command(buildPath, "s", keyDict['s'], "Query OK", '')
|
||||
if retCode != "TAOS_OK":
|
||||
tdLog.exit("taos -s fail")
|
||||
|
||||
keyDict['s'] = "\"insert into db1.tb2 values (now, 3,'55555')\""
|
||||
retCode = taos_command(buildPath, "s", keyDict['s'], "Insert OK", '')
|
||||
if retCode != "TAOS_OK":
|
||||
tdLog.exit("taos -s fail")
|
||||
|
||||
tdSql.query("select count(*) from stb group by tg1")
|
||||
tdSql.checkData(0, 0, 1)
|
||||
tdSql.checkData(0, 0, 2)
|
||||
tdSql.checkData(1, 0, 1)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue