[TS-5437] test(query): add CI test cases

This commit is contained in:
qevolg 2024-09-19 23:36:52 +08:00
parent 7cdedb1f8d
commit 2d5c3a190f
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
from frame.log import *
from frame.cases import *
from frame.sql import *
from frame.caseBase import *
from frame import *
from frame.autogen import *
"""
TS-5437: https://jira.taosdata.com:18080/browse/TS-5437
No coredump occurs when querying metadata.
"""
class TDTestCase(TBase):
def run(self):
tdSql.prepare("test")
tdSql.execute("create table t1(ts timestamp, a int, b int, c int, d double);")
tdSql.query("select * from information_schema.ins_tables where create_time < now;")
tdCases.addLinux(__file__, TDTestCase())
tdCases.addWindows(__file__, TDTestCase())