diff --git a/tests/system-test/2-query/Now.py b/tests/system-test/2-query/Now.py index c9b0406700..21ff1f4e06 100644 --- a/tests/system-test/2-query/Now.py +++ b/tests/system-test/2-query/Now.py @@ -104,11 +104,11 @@ class TDTestCase: ## TD-25540 tdSql.execute(f'create database db1') tdSql.execute(f'use db1') - tdSql.execute(f"create table tb (ts timestamp, c0 int)") + tdSql.execute(f"create table db1.tb (ts timestamp, c0 int)") tdSql.execute(f'insert into db1.tb values(now + 1h, 1)') for func in {"NOW", "NOW()", "TODAY()", "1", "'1970-01-01 00:00:00'"}: - tdSql.query(f"SELECT _wstart, count(*) FROM (SELECT ts, LAST(c0) FROM tb WHERE ts > {func}) interval(1d);") + tdSql.query(f"SELECT _wstart, count(*) FROM (SELECT ts, LAST(c0) FROM db1.tb WHERE ts > {func}) interval(1d);") tdSql.checkRows(1)