fix: add queryBugs.py
This commit is contained in:
parent
b9bc65d37f
commit
26f2868468
|
@ -0,0 +1,67 @@
|
|||
###################################################################
|
||||
# Copyright (c) 2016 by TAOS Technologies, Inc.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This file is proprietary and confidential to TAOS Technologies.
|
||||
# No part of this file may be reproduced, stored, transmitted,
|
||||
# disclosed or used in any form or by any means other than as
|
||||
# expressly provided by the written permission from Jianhui Tao
|
||||
#
|
||||
###################################################################
|
||||
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
import time
|
||||
import random
|
||||
|
||||
import taos
|
||||
import frame
|
||||
import frame.etool
|
||||
|
||||
|
||||
from frame.log import *
|
||||
from frame.cases import *
|
||||
from frame.sql import *
|
||||
from frame.caseBase import *
|
||||
from frame import *
|
||||
|
||||
|
||||
class TDTestCase(TBase):
|
||||
|
||||
# fix
|
||||
def FIX_TD_30686(self):
|
||||
tdLog.info("check bug TD_30686 ...\n")
|
||||
sqls = [
|
||||
"create database db",
|
||||
"create table db.st(ts timestamp, age int) tags(area tinyint);",
|
||||
"insert into db.t1 using db.st tags(100) values('2024-01-01 10:00:01', 1);",
|
||||
"insert into db.t2 using db.st tags(110) values('2024-01-01 10:00:02', 2);",
|
||||
"insert into db.t3 using db.st tags(3) values('2024-01-01 10:00:03', 3);"
|
||||
]
|
||||
tdSql.executes(sqls)
|
||||
|
||||
sql = "select * from db.st where area < 139 order by ts;"
|
||||
results = [
|
||||
["2024-01-01 10:00:01", 1, 100],
|
||||
["2024-01-01 10:00:02", 2, 110],
|
||||
["2024-01-01 10:00:03", 3, 3]
|
||||
]
|
||||
tdSql.checkDataMem(sql, results)
|
||||
|
||||
# run
|
||||
def run(self):
|
||||
tdLog.debug(f"start to excute {__file__}")
|
||||
|
||||
# TD BUGS
|
||||
self.FIX_TD_30686()
|
||||
|
||||
# TS BUGS
|
||||
|
||||
|
||||
tdLog.success(f"{__file__} successfully executed")
|
||||
|
||||
|
||||
|
||||
tdCases.addLinux(__file__, TDTestCase())
|
||||
tdCases.addWindows(__file__, TDTestCase())
|
|
@ -32,6 +32,7 @@
|
|||
,,y,army,./pytest.sh python3 ./test.py -f storage/oneStageComp.py -N 3 -L 3 -D 1
|
||||
,,y,army,./pytest.sh python3 ./test.py -f storage/compressBasic.py -N 3
|
||||
,,y,army,./pytest.sh python3 ./test.py -f grant/grantBugs.py -N 3
|
||||
,,y,army,./pytest.sh python3 ./test.py -f query/queryBugs.py -N 3
|
||||
|
||||
#
|
||||
# system test
|
||||
|
|
Loading…
Reference in New Issue