test: add test case of tsma
This commit is contained in:
parent
dc03c91814
commit
58ef5dae19
|
@ -692,7 +692,7 @@ class TDTestCase:
|
|||
self.prepare_data()
|
||||
self.create_udf_function()
|
||||
self.basic_udf_query()
|
||||
# self.unexpected_create()
|
||||
self.unexpected_create()
|
||||
|
||||
|
||||
def stop(self):
|
||||
|
|
|
@ -1314,7 +1314,7 @@ class TDTestCase:
|
|||
self.create_tsma('tsma1', 'nsdb', 'meters', ['avg(c1)', 'avg(c2)'], '5m')
|
||||
# Invalid tsma interval, 1ms ~ 1h is allowed
|
||||
tdSql.error(
|
||||
'create tsma nsdb.tsma2 on nsdb.meters function(avg(c1), avg(c2)) interval(2h)', -2147471097)
|
||||
'create tsma tsma2 on nsdb.meters function(avg(c1), avg(c2)) interval(2h)', -2147471097)
|
||||
tdSql.error(
|
||||
'create tsma tsma2 on nsdb.meters function(avg(c1), avg(c2)) interval(3601s)', -2147471097)
|
||||
tdSql.error(
|
||||
|
|
Loading…
Reference in New Issue