From 1035636d09d618f097e2727fd5f5fe0449230d57 Mon Sep 17 00:00:00 2001 From: cpwu Date: Wed, 25 Aug 2021 13:57:44 +0800 Subject: [PATCH] fix the distinct case --- tests/pytest/functions/queryTestCases.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/pytest/functions/queryTestCases.py b/tests/pytest/functions/queryTestCases.py index 84e1c36990..a4e62e3725 100644 --- a/tests/pytest/functions/queryTestCases.py +++ b/tests/pytest/functions/queryTestCases.py @@ -739,10 +739,8 @@ class TDTestCase: tdSql.checkRows(tbnum*3) tdSql.query(f"select distinct c1 c2, c2 c3 from t1 where c1 <{tbnum}") tdSql.checkRows(3) - tdSql.query("select distinct c1, c2 from stb1 order by ts") - tdSql.checkRows(tbnum*3+1) - tdSql.query("select distinct c1, c2 from t1 order by ts") - tdSql.checkRows(4) + tdSql.error("select distinct c1, c2 from stb1 order by ts") + tdSql.error("select distinct c1, c2 from t1 order by ts") 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, max(c2) from stb1 ") -- GitLab