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
|
# check count always return value
|
||||||
sql = f"select count(*) from {self.db}.ta"
|
sql = f"select count(*) from {self.db}.ta"
|
||||||
tdSql.waitedQuery(sql, 0, 2)
|
tdSql.query()
|
||||||
|
tdSql.checkRows(0) # countAlwaysReturnValue is false
|
||||||
|
|
||||||
# run
|
# run
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|
|
@ -132,8 +132,9 @@ class TBase:
|
||||||
tdSql.checkAgg(sql, self.childtable_count)
|
tdSql.checkAgg(sql, self.childtable_count)
|
||||||
|
|
||||||
# check step
|
# check step
|
||||||
sql = f"select count(*) from (select diff(ts) as dif from {self.stb} partition by tbname) where dif != {self.timestamp_step}"
|
sql = f"select * from (select diff(ts) as dif from {self.stb} partition by tbname) where dif != {self.timestamp_step}"
|
||||||
tdSql.checkAgg(sql, 0)
|
tdSql.query(sql)
|
||||||
|
tdSql.checkRows(0)
|
||||||
|
|
||||||
# save agg result
|
# save agg result
|
||||||
def snapshotAgg(self):
|
def snapshotAgg(self):
|
||||||
|
|
Loading…
Reference in New Issue