fix: countAlways return is 0
This commit is contained in:
parent
6eb79ea8ee
commit
318293edf1
|
@ -72,8 +72,8 @@ class TDTestCase(TBase):
|
|||
|
||||
# check count always return value
|
||||
sql = f"select count(*) from {self.db}.ta"
|
||||
tdSql.waitedQuery(sql, 0, 2)
|
||||
|
||||
tdSql.query()
|
||||
tdSql.checkRows(0) # countAlwaysReturnValue is false
|
||||
|
||||
# run
|
||||
def run(self):
|
||||
|
|
|
@ -132,8 +132,9 @@ class TBase:
|
|||
tdSql.checkAgg(sql, self.childtable_count)
|
||||
|
||||
# check step
|
||||
sql = f"select count(*) from (select diff(ts) as dif from {self.stb} partition by tbname) where dif != {self.timestamp_step}"
|
||||
tdSql.checkAgg(sql, 0)
|
||||
sql = f"select * from (select diff(ts) as dif from {self.stb} partition by tbname) where dif != {self.timestamp_step}"
|
||||
tdSql.query(sql)
|
||||
tdSql.checkRows(0)
|
||||
|
||||
# save agg result
|
||||
def snapshotAgg(self):
|
||||
|
|
Loading…
Reference in New Issue