Merge pull request #7578 from taosdata/hotfix/TD-6317

[TD-6317]<fix> fix test case
This commit is contained in:
dapan1121 2021-08-25 18:01:13 +08:00 committed by GitHub
commit 3cdde17a00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -697,10 +697,10 @@ class TDTestCase:
tdSql.checkRows(tbnum*3) tdSql.checkRows(tbnum*3)
tdSql.query(f"select distinct c1 c2, c2 c3 from t1 where c1 <{tbnum}") tdSql.query(f"select distinct c1 c2, c2 c3 from t1 where c1 <{tbnum}")
tdSql.checkRows(3) tdSql.checkRows(3)
tdSql.query("select distinct c1, c2 from stb1 order by ts") tdSql.error("select distinct c1, c2 from stb1 order by ts")
tdSql.checkRows(tbnum*3+1) #tdSql.checkRows(tbnum*3+1)
tdSql.query("select distinct c1, c2 from t1 order by ts") tdSql.error("select distinct c1, c2 from t1 order by ts")
tdSql.checkRows(4) #tdSql.checkRows(4)
tdSql.error("select distinct c1, ts from stb1 group by c2") tdSql.error("select distinct c1, ts from stb1 group by c2")
tdSql.error("select distinct c1, ts from t1 group by c2") tdSql.error("select distinct c1, ts from t1 group by c2")
tdSql.error("select distinct c1, max(c2) from stb1 ") tdSql.error("select distinct c1, max(c2) from stb1 ")