diff --git a/tests/army/community/cluster/snapshot.json b/tests/army/community/cluster/snapshot.json index f664278a72..4855c23260 100644 --- a/tests/army/community/cluster/snapshot.json +++ b/tests/army/community/cluster/snapshot.json @@ -35,8 +35,8 @@ "start_timestamp":"now-12d", "columns": [ { "type": "bool", "name": "bc"}, - { "type": "float", "name": "fc", "min": 100, "min": 100}, - { "type": "double", "name": "dc", "min": 200, "min": 200}, + { "type": "float", "name": "fc", "min": 100, "max": 100}, + { "type": "double", "name": "dc", "min": 200, "max": 200}, { "type": "tinyint", "name": "ti"}, { "type": "smallint", "name": "si" }, { "type": "int", "name": "ic" }, diff --git a/tests/army/community/cluster/snapshot.py b/tests/army/community/cluster/snapshot.py index 6fd2218344..b4c4d3c4c8 100644 --- a/tests/army/community/cluster/snapshot.py +++ b/tests/army/community/cluster/snapshot.py @@ -53,10 +53,12 @@ class TDTestCase(TBase): tdSql.execute(sql) def checkFloatDouble(self): - sql = f"select count(*) from {self.db}.{self.stb} where fc!=100" - tdSql.checkFirstValue(sql, 0) + sql = f"select * from {self.db}.{self.stb} where fc!=100" + tdSql.query(sql) + tdSql.checkRows(0) 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}" tdSql.checkFirstValue(sql, 100) sql = f"select avg(dc) from {self.db}.{self.stb}" diff --git a/tests/army/community/storage/oneStageComp.json b/tests/army/community/storage/oneStageComp.json index 12fa51db83..f64fda3824 100644 --- a/tests/army/community/storage/oneStageComp.json +++ b/tests/army/community/storage/oneStageComp.json @@ -24,7 +24,7 @@ "stt_trigger": 1, "wal_level": 2, "WAL_FSYNC_PERIOD": 3300, - "cachemode": "last_value", + "cachemodel": "'last_value'", "TABLE_PREFIX":1, "comp": 1 }, @@ -37,7 +37,7 @@ "childtable_prefix": "d", "insert_mode": "taosc", "timestamp_step": 1000, - "start_timestamp":"2023-01-01 00:00:00", + "start_timestamp":"now-360d", "columns": [ { "type": "bool", "name": "bc","max": 1,"min": 1}, { "type": "float", "name": "fc" ,"max": 101,"min": 101}, diff --git a/tests/army/community/storage/oneStageComp.py b/tests/army/community/storage/oneStageComp.py index f3718bc716..35a7717449 100644 --- a/tests/army/community/storage/oneStageComp.py +++ b/tests/army/community/storage/oneStageComp.py @@ -53,26 +53,37 @@ class TDTestCase(TBase): # check all columns correct cnt = self.insert_rows * self.childtable_count sql = "select * from stb where bc!=1" + tdSql.query(sql) tdSql.checkRows(0) sql = "select * from stb where fc=101" + tdSql.query(sql) tdSql.checkRows(cnt) sql = "select * from stb where dc!=102" + tdSql.query(sql) tdSql.checkRows(0) sql = "select * from stb where ti!=103" + tdSql.query(sql) tdSql.checkRows(0) sql = "select * from stb where si!=104" + tdSql.query(sql) tdSql.checkRows(0) sql = "select * from stb where ic!=105" + tdSql.query(sql) tdSql.checkRows(0) sql = "select * from stb where b!i=106" + tdSql.query(sql) tdSql.checkRows(0) sql = "select * from stb where uti!=107" + tdSql.query(sql) tdSql.checkRows(0) sql = "select * from stb where usi!=108" + tdSql.query(sql) tdSql.checkRows(0) sql = "select * from stb where ui!=109" + tdSql.query(sql) tdSql.checkRows(0) sql = "select * from stb where ubi!=110" + tdSql.query(sql) tdSql.checkRows(0) def insertNull(self):