From d390ad7a8e80568831bc207aaf21d313512c9b91 Mon Sep 17 00:00:00 2001 From: Ping Xiao Date: Mon, 5 Jul 2021 18:27:32 +0800 Subject: [PATCH] [TD-4983]: add test case for interval boundry --- tests/pytest/dbmgmt/nanoSecondCheck.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/pytest/dbmgmt/nanoSecondCheck.py b/tests/pytest/dbmgmt/nanoSecondCheck.py index 27050a2213..a5e9adacee 100644 --- a/tests/pytest/dbmgmt/nanoSecondCheck.py +++ b/tests/pytest/dbmgmt/nanoSecondCheck.py @@ -99,6 +99,15 @@ class TDTestCase: tdSql.query('select avg(speed) from tb interval(100000000b)') tdSql.checkRows(4) + tdSql.error('select avg(speed) from tb interval(1b);') + tdSql.error('select avg(speed) from tb interval(999b);') + + tdSql.query('select avg(speed) from tb interval(1000b);') + tdSql.checkRows(5) + + tdSql.query('select avg(speed) from tb interval(1u);') + tdSql.checkRows(5) + tdSql.query('select avg(speed) from tb interval(100000000b) sliding (100000000b);') tdSql.checkRows(4) -- GitLab