diff --git a/tests/pytest/functions/function_count_last_stab.py b/tests/pytest/functions/function_count_last_stab.py index 1d777c6bd314941036f542c7d0e9063e590fa7dd..37e9319ba8c2a46131f946b6cd3f809467199032 100644 --- a/tests/pytest/functions/function_count_last_stab.py +++ b/tests/pytest/functions/function_count_last_stab.py @@ -42,19 +42,19 @@ class TDTestCase: % (self.ts + i, i + 1, 1, i + 1, i + 1, i + 0.1, i + 0.1, i % 2, i + 1, i + 1, i + 1, i + 1, i + 1, i + 1)) tdSql.query("select count(*),last(*) from stest group by col1") - tdSql.checkRows(10) + tdSql.checkRows(11) tdSql.checkData(0, 0, 1) - tdSql.checkData(1, 2, 2) + tdSql.checkData(1, 2, 1) tdSql.checkData(1, 3, 1) tdSql.query("select count(*),last(*) from stest group by col2") - tdSql.checkRows(1) - tdSql.checkData(0, 0, 10) - tdSql.checkData(0, 2, 10) - tdSql.checkData(0, 3, 1) + tdSql.checkRows(2) + tdSql.checkData(0, 0, 1) + tdSql.checkData(0, 2, None); + tdSql.checkData(0, 3, None) tdSql.query("select count(*),last(ts,stest.*) from stest group by col1") - tdSql.checkRows(10) + tdSql.checkRows(11) tdSql.checkData(0, 0, 1) tdSql.checkData(0, 2, "2018-09-17 09:00:00") tdSql.checkData(1, 4, 1)