fix: fix case passed
This commit is contained in:
parent
d51e651c17
commit
c5f5aca4ce
|
@ -35,8 +35,8 @@
|
||||||
"start_timestamp":"now-12d",
|
"start_timestamp":"now-12d",
|
||||||
"columns": [
|
"columns": [
|
||||||
{ "type": "bool", "name": "bc"},
|
{ "type": "bool", "name": "bc"},
|
||||||
{ "type": "float", "name": "fc", "min": 100, "min": 100},
|
{ "type": "float", "name": "fc", "min": 100, "max": 100},
|
||||||
{ "type": "double", "name": "dc", "min": 200, "min": 200},
|
{ "type": "double", "name": "dc", "min": 200, "max": 200},
|
||||||
{ "type": "tinyint", "name": "ti"},
|
{ "type": "tinyint", "name": "ti"},
|
||||||
{ "type": "smallint", "name": "si" },
|
{ "type": "smallint", "name": "si" },
|
||||||
{ "type": "int", "name": "ic" },
|
{ "type": "int", "name": "ic" },
|
||||||
|
|
|
@ -53,10 +53,12 @@ class TDTestCase(TBase):
|
||||||
tdSql.execute(sql)
|
tdSql.execute(sql)
|
||||||
|
|
||||||
def checkFloatDouble(self):
|
def checkFloatDouble(self):
|
||||||
sql = f"select count(*) from {self.db}.{self.stb} where fc!=100"
|
sql = f"select * from {self.db}.{self.stb} where fc!=100"
|
||||||
tdSql.checkFirstValue(sql, 0)
|
tdSql.query(sql)
|
||||||
|
tdSql.checkRows(0)
|
||||||
sql = f"select count(*) from {self.db}.{self.stb} where dc!=200"
|
sql = f"select count(*) from {self.db}.{self.stb} where dc!=200"
|
||||||
tdSql.checkFirstValue(sql, 0)
|
tdSql.query(sql)
|
||||||
|
tdSql.checkRows(0)
|
||||||
sql = f"select avg(fc) from {self.db}.{self.stb}"
|
sql = f"select avg(fc) from {self.db}.{self.stb}"
|
||||||
tdSql.checkFirstValue(sql, 100)
|
tdSql.checkFirstValue(sql, 100)
|
||||||
sql = f"select avg(dc) from {self.db}.{self.stb}"
|
sql = f"select avg(dc) from {self.db}.{self.stb}"
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
"stt_trigger": 1,
|
"stt_trigger": 1,
|
||||||
"wal_level": 2,
|
"wal_level": 2,
|
||||||
"WAL_FSYNC_PERIOD": 3300,
|
"WAL_FSYNC_PERIOD": 3300,
|
||||||
"cachemode": "last_value",
|
"cachemodel": "'last_value'",
|
||||||
"TABLE_PREFIX":1,
|
"TABLE_PREFIX":1,
|
||||||
"comp": 1
|
"comp": 1
|
||||||
},
|
},
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
"childtable_prefix": "d",
|
"childtable_prefix": "d",
|
||||||
"insert_mode": "taosc",
|
"insert_mode": "taosc",
|
||||||
"timestamp_step": 1000,
|
"timestamp_step": 1000,
|
||||||
"start_timestamp":"2023-01-01 00:00:00",
|
"start_timestamp":"now-360d",
|
||||||
"columns": [
|
"columns": [
|
||||||
{ "type": "bool", "name": "bc","max": 1,"min": 1},
|
{ "type": "bool", "name": "bc","max": 1,"min": 1},
|
||||||
{ "type": "float", "name": "fc" ,"max": 101,"min": 101},
|
{ "type": "float", "name": "fc" ,"max": 101,"min": 101},
|
||||||
|
|
|
@ -53,26 +53,37 @@ class TDTestCase(TBase):
|
||||||
# check all columns correct
|
# check all columns correct
|
||||||
cnt = self.insert_rows * self.childtable_count
|
cnt = self.insert_rows * self.childtable_count
|
||||||
sql = "select * from stb where bc!=1"
|
sql = "select * from stb where bc!=1"
|
||||||
|
tdSql.query(sql)
|
||||||
tdSql.checkRows(0)
|
tdSql.checkRows(0)
|
||||||
sql = "select * from stb where fc=101"
|
sql = "select * from stb where fc=101"
|
||||||
|
tdSql.query(sql)
|
||||||
tdSql.checkRows(cnt)
|
tdSql.checkRows(cnt)
|
||||||
sql = "select * from stb where dc!=102"
|
sql = "select * from stb where dc!=102"
|
||||||
|
tdSql.query(sql)
|
||||||
tdSql.checkRows(0)
|
tdSql.checkRows(0)
|
||||||
sql = "select * from stb where ti!=103"
|
sql = "select * from stb where ti!=103"
|
||||||
|
tdSql.query(sql)
|
||||||
tdSql.checkRows(0)
|
tdSql.checkRows(0)
|
||||||
sql = "select * from stb where si!=104"
|
sql = "select * from stb where si!=104"
|
||||||
|
tdSql.query(sql)
|
||||||
tdSql.checkRows(0)
|
tdSql.checkRows(0)
|
||||||
sql = "select * from stb where ic!=105"
|
sql = "select * from stb where ic!=105"
|
||||||
|
tdSql.query(sql)
|
||||||
tdSql.checkRows(0)
|
tdSql.checkRows(0)
|
||||||
sql = "select * from stb where b!i=106"
|
sql = "select * from stb where b!i=106"
|
||||||
|
tdSql.query(sql)
|
||||||
tdSql.checkRows(0)
|
tdSql.checkRows(0)
|
||||||
sql = "select * from stb where uti!=107"
|
sql = "select * from stb where uti!=107"
|
||||||
|
tdSql.query(sql)
|
||||||
tdSql.checkRows(0)
|
tdSql.checkRows(0)
|
||||||
sql = "select * from stb where usi!=108"
|
sql = "select * from stb where usi!=108"
|
||||||
|
tdSql.query(sql)
|
||||||
tdSql.checkRows(0)
|
tdSql.checkRows(0)
|
||||||
sql = "select * from stb where ui!=109"
|
sql = "select * from stb where ui!=109"
|
||||||
|
tdSql.query(sql)
|
||||||
tdSql.checkRows(0)
|
tdSql.checkRows(0)
|
||||||
sql = "select * from stb where ubi!=110"
|
sql = "select * from stb where ubi!=110"
|
||||||
|
tdSql.query(sql)
|
||||||
tdSql.checkRows(0)
|
tdSql.checkRows(0)
|
||||||
|
|
||||||
def insertNull(self):
|
def insertNull(self):
|
||||||
|
|
Loading…
Reference in New Issue