# TSIM: sql select * from %s where ts < 1605045600000 + 240001
tdLog.info('select * from %s where ts < now + 4m'%mt)
tdLog.info('select * from %s where ts < 1605045600000 + 240001'%mt)
tdSql.query('select * from %s where ts < now + 4m'%mt)
tdSql.query('select * from %s where ts < 1605045600000 + 240001'%mt)
# TSIM: if $rows != 50 then
# TSIM: if $rows != 50 then
tdLog.info('tdSql.checkRow(50)')
tdLog.info('tdSql.checkRow(50)')
tdSql.checkRows(50)
tdSql.checkRows(50)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m
# TSIM: sql select * from %s where ts > 1605045600000 + 240001
tdLog.info('select * from %s where ts > now + 4m'%mt)
tdLog.info('select * from %s where ts > 1605045600000 + 240001'%mt)
tdSql.query('select * from %s where ts > now + 4m'%mt)
tdSql.query('select * from %s where ts > 1605045600000 + 240001'%mt)
# TSIM: if $rows != 150 then
# TSIM: if $rows != 150 then
tdLog.info('tdSql.checkRow(150)')
tdLog.info('tdSql.checkRow(150)')
tdSql.checkRows(150)
tdSql.checkRows(150)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts = now + 4m
# TSIM: sql select * from %s where ts = 1605045600000 + 240001
tdLog.info('select * from %s where ts = now + 4m'%mt)
tdLog.info('select * from %s where ts = 1605045600000 + 240001'%mt)
tdSql.query('select * from %s where ts = now + 4m'%mt)
tdSql.query('select * from %s where ts = 1605045600000 + 240001'%mt)
# TSIM: if $rows != 0 then
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(0)')
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001'%
mt)
mt)
tdLog.info('tdSql.checkRow(10)')
tdLog.info('tdSql.checkRow(10)')
tdSql.checkRows(10)
tdSql.checkRows(10)
...
@@ -267,91 +267,91 @@ class TDTestCase:
...
@@ -267,91 +267,91 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step6
# TSIM: print =============== step6
tdLog.info('=============== step6')
tdLog.info('=============== step6')
# TSIM: sql select * from %s where ts > now + 4m and tgcol1 = true
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol1 = true
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 = true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 = true'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 = true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 = true'%
mt)
mt)
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol1 <> true
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> true
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 <> true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> true'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 <> true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> true'%
mt)
mt)
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol1 = false
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol1 = false
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol1 = false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 = false'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol1 = false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 = false'%
mt)
mt)
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol1 <> false
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> false
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol1 <> false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> false'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol1 <> false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> false'%
mt)
mt)
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol1 = false
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = false
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol1 = false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = false'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol1 = false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = false'%
mt)
mt)
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol1 <> false
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> false
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol1 <> false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> false'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol1 <> false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> false'%
mt)
mt)
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol1 <> false
# tgcol1 <> false
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol1 <> false'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol1 <> false'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol1 <> false'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol1 <> false'%
mt)
mt)
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol1 <> false
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> false
# and ts < now + 5m
# and ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 <> false and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> false and ts < 1605045600000 + 300001'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 <> false and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> false and ts < 1605045600000 + 300001'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -361,84 +361,84 @@ class TDTestCase:
...
@@ -361,84 +361,84 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step7
# TSIM: print =============== step7
tdLog.info('=============== step7')
tdLog.info('=============== step7')
# TSIM: sql select * from %s where ts > now + 4m and tgcol2 = 1
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1
tdLog.info('select * from %s where ts > now + 4m and tgcol2 = 1'%mt)
tdLog.info('select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1'%mt)
tdSql.query('select * from %s where ts > now + 4m and tgcol2 = 1'%mt)
tdSql.query('select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1'%mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol2 <> 1
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1
tdLog.info('select * from %s where ts > now + 4m and tgcol2 <> 1'%mt)
tdLog.info('select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol2 = 0
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0
tdLog.info('select * from %s where ts < now + 4m and tgcol2 = 0'%mt)
tdLog.info('select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0'%mt)
tdSql.query('select * from %s where ts < now + 4m and tgcol2 = 0'%mt)
tdSql.query('select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0'%mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol2 <> 0
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0
tdLog.info('select * from %s where ts < now + 4m and tgcol2 <> 0'%mt)
tdLog.info('select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol2 = 0
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0
tdLog.info('select * from %s where ts <= now + 4m and tgcol2 = 0'%mt)
tdLog.info('select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol2 <> 0
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol2 <> 0
# tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol2 <> 0 and ts
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts
# < now + 5m
# < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -448,84 +448,84 @@ class TDTestCase:
...
@@ -448,84 +448,84 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step8
# TSIM: print =============== step8
tdLog.info('=============== step8')
tdLog.info('=============== step8')
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 = 1
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1
tdLog.info('select * from %s where ts > now + 4m and tgcol3 = 1'%mt)
tdLog.info('select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1'%mt)
tdSql.query('select * from %s where ts > now + 4m and tgcol3 = 1'%mt)
tdSql.query('select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1'%mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 <> 1
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1
tdLog.info('select * from %s where ts > now + 4m and tgcol3 <> 1'%mt)
tdLog.info('select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol3 = 0
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0
tdLog.info('select * from %s where ts < now + 4m and tgcol3 = 0'%mt)
tdLog.info('select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0'%mt)
tdSql.query('select * from %s where ts < now + 4m and tgcol3 = 0'%mt)
tdSql.query('select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0'%mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol3 <> 0
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0
tdLog.info('select * from %s where ts < now + 4m and tgcol3 <> 0'%mt)
tdLog.info('select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol3 = 0
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0
tdLog.info('select * from %s where ts <= now + 4m and tgcol3 = 0'%mt)
tdLog.info('select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol3 <> 0
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol3 <> 0
# tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 <> 0 and ts
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts
# < now + 5m
# < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -535,104 +535,104 @@ class TDTestCase:
...
@@ -535,104 +535,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step9
# TSIM: print =============== step9
tdLog.info('=============== step9')
tdLog.info('=============== step9')
# TSIM: sql select * from %s where ts > now + 4m and tgcol2 = 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1 and
# tgcol1 = true
# tgcol1 = true
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 = 1 and tgcol1 = true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1 and tgcol1 = true'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 = 1 and tgcol1 = true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1 and tgcol1 = true'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol2 <> 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1 and
# tgcol1 <> true
# tgcol1 <> true
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 1 and tgcol1 <> true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1 and tgcol1 <> true'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 1 and tgcol1 <> true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1 and tgcol1 <> true'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol2 = 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0 and
# tgcol1 = false
# tgcol1 = false
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 = 0 and tgcol1 = false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0 and tgcol1 = false'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 = 0 and tgcol1 = false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0 and tgcol1 = false'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol2 <> 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0 and
# tgcol1 <> false
# tgcol1 <> false
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 <> 0 and tgcol1 <> false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0 and tgcol1 <> false'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 <> 0 and tgcol1 <> false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0 and tgcol1 <> false'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol2 = 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0 and
# tgcol1 = false
# tgcol1 = false
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 = 0 and tgcol1 = false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0 and tgcol1 = false'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 = 0 and tgcol1 = false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0 and tgcol1 = false'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol2 <> 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0 and
# tgcol1 <> false
# tgcol1 <> false
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 <> 0 and tgcol1 <> false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0 and tgcol1 <> false'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 <> 0 and tgcol1 <> false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0 and tgcol1 <> false'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol2 <> 0 and tgcol1 <> false
# tgcol2 <> 0 and tgcol1 <> false
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0 and tgcol1 <> false'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol1 <> false'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0 and tgcol1 <> false'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol1 <> false'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol2 <> 0 and ts
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts
# < now + 5m and ts < now + 5m and tgcol1 <> false
# < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> false
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m and ts < now + 5m and tgcol1 <> false'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> false'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m and ts < now + 5m and tgcol1 <> false'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> false'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -642,104 +642,104 @@ class TDTestCase:
...
@@ -642,104 +642,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step10
# TSIM: print =============== step10
tdLog.info('=============== step10')
tdLog.info('=============== step10')
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 = 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and
# tgcol1 = true
# tgcol1 = true
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol1 = true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol1 = true'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol1 = true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol1 = true'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 <> 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and
# tgcol1 <> true
# tgcol1 <> true
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol1 <> true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol1 <> true'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol1 <> true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol1 <> true'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol3 = 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol1 = false
# tgcol1 = false
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol1 = false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol1 = false'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol1 = false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol1 = false'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol1 <> false
# tgcol1 <> false
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol1 <> false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol1 <> false'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol1 <> false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol1 <> false'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol3 = 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol1 = false
# tgcol1 = false
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol1 = false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol1 = false'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol1 = false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol1 = false'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol1 <> false
# tgcol1 <> false
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol1 <> false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol1 <> false'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol1 <> false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol1 <> false'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol3 <> 0 and tgcol1 <> false
# tgcol3 <> 0 and tgcol1 <> false
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol1 <> false'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol1 <> false'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol1 <> false'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol1 <> false'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 <> 0 and ts
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts
# < now + 5m and ts < now + 5m and tgcol1 <> false
# < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> false
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol1 <> false'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> false'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol1 <> false'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> false'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -749,104 +749,104 @@ class TDTestCase:
...
@@ -749,104 +749,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step11
# TSIM: print =============== step11
tdLog.info('=============== step11')
tdLog.info('=============== step11')
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 = 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and
# tgcol2 = 1
# tgcol2 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol2 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol2 = 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol2 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol2 = 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 <> 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and
# tgcol2 <> 1
# tgcol2 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol2 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol2 <> 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol2 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol2 <> 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol3 = 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol2 = 0
# tgcol2 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol2 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol2 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol2 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol2 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol2 <> 0
# tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol2 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol2 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol3 = 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol2 = 0
# tgcol2 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol2 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol2 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol2 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol2 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol2 <> 0
# tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol2 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol2 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol3 <> 0 and tgcol2 <> 0
# tgcol3 <> 0 and tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol2 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol2 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 <> 0 and ts
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts
# < now + 5m and ts < now + 5m and tgcol2 <> 0
# < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -856,104 +856,104 @@ class TDTestCase:
...
@@ -856,104 +856,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step12
# TSIM: print =============== step12
tdLog.info('=============== step12')
tdLog.info('=============== step12')
# TSIM: sql select * from %s where ts > now + 4m and tgcol1 = 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol1 = 1 and
# tgcol2 = 1 and tgcol3 = 1
# tgcol2 = 1 and tgcol3 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol1 <> 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 1 and
# tgcol2 <> 1 and tgcol3 <> 1
# tgcol2 <> 1 and tgcol3 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol1 = 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol1 = 0 and
# tgcol2 = 0 and tgcol3 = 0
# tgcol2 = 0 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol1 <> 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0
# tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol1 = 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = 0 and
# tgcol2 = 0 and tgcol3 = 0
# tgcol2 = 0 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol1 <> 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0
# tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0
# tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol1 <> 0 and ts
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 0 and ts
# < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0
# < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0'%
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and
# tgcol1 = true and tgcol2 = 1
# tgcol1 = true and tgcol2 = 1
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = true and tgcol2 = 1'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = true and tgcol2 = 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = true and tgcol2 = 1'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = true and tgcol2 = 1'%
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and
# tgcol1 = true and tgcol2 = 1 and tgcol3 = 1
# tgcol1 = true and tgcol2 = 1 and tgcol3 = 1
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = true and tgcol2 = 1 and tgcol3 = 1'%mt)
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = true and tgcol2 = 1 and tgcol3 = 1'%mt)
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = true and tgcol2 = 1 and tgcol3 = 1'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = true and tgcol2 = 1 and tgcol3 = 1'%
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001
# group by tgcol2
# group by tgcol2
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol2'%
mt)
mt)
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol2'%
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and
# tgcol1 = true group by tgcol2
# tgcol1 = true group by tgcol2
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = true group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = true group by tgcol2'%
mt)
mt)
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = true group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = true group by tgcol2'%
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and
# tgcol1 = true and tgcol2 = 1 group by tgcol2
# tgcol1 = true and tgcol2 = 1 group by tgcol2
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = true and tgcol2 = 1 group by tgcol2'%mt)
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = true and tgcol2 = 1 group by tgcol2'%mt)
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = true and tgcol2 = 1 group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = true and tgcol2 = 1 group by tgcol2'%
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and
# tgcol1 = true and tgcol2 = 1 and tgcol3 = 1 group by tgcol2
# tgcol1 = true and tgcol2 = 1 and tgcol3 = 1 group by tgcol2
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = true and tgcol2 = 1 and tgcol3 = 1 group by tgcol2'%mt)
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = true and tgcol2 = 1 and tgcol3 = 1 group by tgcol2'%mt)
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = true and tgcol2 = 1 and tgcol3 = 1 group by tgcol2'%mt)
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = true and tgcol2 = 1 and tgcol3 = 1 group by tgcol2'%mt)
# TSIM: sql select * from %s where ts < 1605045600000 + 240001
tdLog.info('select * from %s where ts < now + 4m'%mt)
tdLog.info('select * from %s where ts < 1605045600000 + 240001'%mt)
tdSql.query('select * from %s where ts < now + 4m'%mt)
tdSql.query('select * from %s where ts < 1605045600000 + 240001'%mt)
# TSIM: if $rows != 50 then
# TSIM: if $rows != 50 then
tdLog.info('tdSql.checkRow(50)')
tdLog.info('tdSql.checkRow(50)')
tdSql.checkRows(50)
tdSql.checkRows(50)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m
# TSIM: sql select * from %s where ts > 1605045600000 + 240001
tdLog.info('select * from %s where ts > now + 4m'%mt)
tdLog.info('select * from %s where ts > 1605045600000 + 240001'%mt)
tdSql.query('select * from %s where ts > now + 4m'%mt)
tdSql.query('select * from %s where ts > 1605045600000 + 240001'%mt)
# TSIM: if $rows != 150 then
# TSIM: if $rows != 150 then
tdLog.info('tdSql.checkRow(150)')
tdLog.info('tdSql.checkRow(150)')
tdSql.checkRows(150)
tdSql.checkRows(150)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts = now + 4m
# TSIM: sql select * from %s where ts = 1605045600000 + 240001
tdLog.info('select * from %s where ts = now + 4m'%mt)
tdLog.info('select * from %s where ts = 1605045600000 + 240001'%mt)
tdSql.query('select * from %s where ts = now + 4m'%mt)
tdSql.query('select * from %s where ts = 1605045600000 + 240001'%mt)
# TSIM: if $rows != 0 then
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(0)')
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001'%
mt)
mt)
# TSIM: if $rows != 10 then
# TSIM: if $rows != 10 then
tdLog.info('tdSql.checkRow(10)')
tdLog.info('tdSql.checkRow(10)')
...
@@ -322,84 +321,84 @@ class TDTestCase:
...
@@ -322,84 +321,84 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step7
# TSIM: print =============== step7
tdLog.info('=============== step7')
tdLog.info('=============== step7')
# TSIM: sql select * from %s where ts > now + 4m and tgcol1 = 1
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol1 = 1
tdLog.info('select * from %s where ts > now + 4m and tgcol1 = 1'%mt)
tdLog.info('select * from %s where ts > 1605045600000 + 240001 and tgcol1 = 1'%mt)
tdSql.query('select * from %s where ts > now + 4m and tgcol1 = 1'%mt)
tdSql.query('select * from %s where ts > 1605045600000 + 240001 and tgcol1 = 1'%mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol1 <> 1
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 1
tdLog.info('select * from %s where ts > now + 4m and tgcol1 <> 1'%mt)
tdLog.info('select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 1'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol1 = 0
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol1 = 0
tdLog.info('select * from %s where ts < now + 4m and tgcol1 = 0'%mt)
tdLog.info('select * from %s where ts < 1605045600000 + 240001 and tgcol1 = 0'%mt)
tdSql.query('select * from %s where ts < now + 4m and tgcol1 = 0'%mt)
tdSql.query('select * from %s where ts < 1605045600000 + 240001 and tgcol1 = 0'%mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol1 <> 0
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> 0
tdLog.info('select * from %s where ts < now + 4m and tgcol1 <> 0'%mt)
tdLog.info('select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> 0'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol1 = 0
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = 0
tdLog.info('select * from %s where ts <= now + 4m and tgcol1 = 0'%mt)
tdLog.info('select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = 0'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol1 <> 0
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol1 <> 0
# tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol1 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol1 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol1 <> 0 and ts
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 0 and ts
# < now + 5m
# < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 0 and ts < 1605045600000 + 300001'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 0 and ts < 1605045600000 + 300001'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -409,84 +408,84 @@ class TDTestCase:
...
@@ -409,84 +408,84 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step8
# TSIM: print =============== step8
tdLog.info('=============== step8')
tdLog.info('=============== step8')
# TSIM: sql select * from %s where ts > now + 4m and tgcol2 = 1
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1
tdLog.info('select * from %s where ts > now + 4m and tgcol2 = 1'%mt)
tdLog.info('select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1'%mt)
tdSql.query('select * from %s where ts > now + 4m and tgcol2 = 1'%mt)
tdSql.query('select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1'%mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol2 <> 1
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1
tdLog.info('select * from %s where ts > now + 4m and tgcol2 <> 1'%mt)
tdLog.info('select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol2 = 0
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0
tdLog.info('select * from %s where ts < now + 4m and tgcol2 = 0'%mt)
tdLog.info('select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0'%mt)
tdSql.query('select * from %s where ts < now + 4m and tgcol2 = 0'%mt)
tdSql.query('select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0'%mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol2 <> 0
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0
tdLog.info('select * from %s where ts < now + 4m and tgcol2 <> 0'%mt)
tdLog.info('select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol2 = 0
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0
tdLog.info('select * from %s where ts <= now + 4m and tgcol2 = 0'%mt)
tdLog.info('select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol2 <> 0
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol2 <> 0
# tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol2 <> 0 and ts
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts
# < now + 5m
# < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -496,84 +495,84 @@ class TDTestCase:
...
@@ -496,84 +495,84 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step9
# TSIM: print =============== step9
tdLog.info('=============== step9')
tdLog.info('=============== step9')
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 = 1
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1
tdLog.info('select * from %s where ts > now + 4m and tgcol3 = 1'%mt)
tdLog.info('select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1'%mt)
tdSql.query('select * from %s where ts > now + 4m and tgcol3 = 1'%mt)
tdSql.query('select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1'%mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 <> 1
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1
tdLog.info('select * from %s where ts > now + 4m and tgcol3 <> 1'%mt)
tdLog.info('select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol3 = 0
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0
tdLog.info('select * from %s where ts < now + 4m and tgcol3 = 0'%mt)
tdLog.info('select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0'%mt)
tdSql.query('select * from %s where ts < now + 4m and tgcol3 = 0'%mt)
tdSql.query('select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0'%mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol3 <> 0
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0
tdLog.info('select * from %s where ts < now + 4m and tgcol3 <> 0'%mt)
tdLog.info('select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol3 = 0
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0
tdLog.info('select * from %s where ts <= now + 4m and tgcol3 = 0'%mt)
tdLog.info('select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol3 <> 0
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol3 <> 0
# tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 <> 0 and ts
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts
# < now + 5m
# < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -583,84 +582,84 @@ class TDTestCase:
...
@@ -583,84 +582,84 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step10
# TSIM: print =============== step10
tdLog.info('=============== step10')
tdLog.info('=============== step10')
# TSIM: sql select * from %s where ts > now + 4m and tgcol4 = 1
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1
tdLog.info('select * from %s where ts > now + 4m and tgcol4 = 1'%mt)
tdLog.info('select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1'%mt)
tdSql.query('select * from %s where ts > now + 4m and tgcol4 = 1'%mt)
tdSql.query('select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1'%mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol4 <> 1
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1
tdLog.info('select * from %s where ts > now + 4m and tgcol4 <> 1'%mt)
tdLog.info('select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol4 = 0
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0
tdLog.info('select * from %s where ts < now + 4m and tgcol4 = 0'%mt)
tdLog.info('select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0'%mt)
tdSql.query('select * from %s where ts < now + 4m and tgcol4 = 0'%mt)
tdSql.query('select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0'%mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol4 <> 0
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0
tdLog.info('select * from %s where ts < now + 4m and tgcol4 <> 0'%mt)
tdLog.info('select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol4 = 0
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0
tdLog.info('select * from %s where ts <= now + 4m and tgcol4 = 0'%mt)
tdLog.info('select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0'%mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol4 <> 0
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol4 <> 0
# tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol4 <> 0 and ts
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts
# < now + 5m
# < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -670,104 +669,104 @@ class TDTestCase:
...
@@ -670,104 +669,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step11
# TSIM: print =============== step11
tdLog.info('=============== step11')
tdLog.info('=============== step11')
# TSIM: sql select * from %s where ts > now + 4m and tgcol2 = 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1 and
# tgcol1 = 1
# tgcol1 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 = 1 and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1 and tgcol1 = 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 = 1 and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1 and tgcol1 = 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol2 <> 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1 and
# tgcol1 <> 1
# tgcol1 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 1 and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1 and tgcol1 <> 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 1 and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1 and tgcol1 <> 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol2 = 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0 and
# tgcol1 = 0
# tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 = 0 and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0 and tgcol1 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 = 0 and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0 and tgcol1 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol2 <> 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0 and
# tgcol1 <> 0
# tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0 and tgcol1 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0 and tgcol1 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol2 = 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0 and
# tgcol1 = 0
# tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 = 0 and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0 and tgcol1 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 = 0 and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0 and tgcol1 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol2 <> 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0 and
# tgcol1 <> 0
# tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0 and tgcol1 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0 and tgcol1 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol2 <> 0 and tgcol1 <> 0
# tgcol2 <> 0 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol1 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol1 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol2 <> 0 and ts
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts
# < now + 5m and ts < now + 5m and tgcol1 <> 0
# < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m and ts < now + 5m and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m and ts < now + 5m and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -777,104 +776,104 @@ class TDTestCase:
...
@@ -777,104 +776,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step12
# TSIM: print =============== step12
tdLog.info('=============== step12')
tdLog.info('=============== step12')
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 = 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and
# tgcol1 = 1
# tgcol1 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol1 = 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol1 = 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 <> 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and
# tgcol1 <> 1
# tgcol1 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol1 <> 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol1 <> 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol3 = 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol1 = 0
# tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol1 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol1 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol1 <> 0
# tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol1 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol1 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol3 = 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol1 = 0
# tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol1 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol1 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol1 <> 0
# tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol1 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol1 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol3 <> 0 and tgcol1 <> 0
# tgcol3 <> 0 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol1 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol1 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 <> 0 and ts
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts
# < now + 5m and ts < now + 5m and tgcol1 <> 0
# < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -884,104 +883,104 @@ class TDTestCase:
...
@@ -884,104 +883,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step13
# TSIM: print =============== step13
tdLog.info('=============== step13')
tdLog.info('=============== step13')
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 = 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and
# tgcol2 = 1
# tgcol2 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol2 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol2 = 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol2 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol2 = 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 <> 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and
# tgcol2 <> 1
# tgcol2 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol2 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol2 <> 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol2 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol2 <> 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol3 = 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol2 = 0
# tgcol2 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol2 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol2 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol2 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol2 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol2 <> 0
# tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol2 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol2 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol3 = 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol2 = 0
# tgcol2 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol2 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol2 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol2 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol2 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol2 <> 0
# tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol2 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol2 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol3 <> 0 and tgcol2 <> 0
# tgcol3 <> 0 and tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol2 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol2 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 <> 0 and ts
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts
# < now + 5m and ts < now + 5m and tgcol2 <> 0
# < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -991,104 +990,104 @@ class TDTestCase:
...
@@ -991,104 +990,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step14
# TSIM: print =============== step14
tdLog.info('=============== step14')
tdLog.info('=============== step14')
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 = 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and
# tgcol4 = 1
# tgcol4 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol4 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol4 = 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol4 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol4 = 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 <> 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and
# tgcol4 <> 1
# tgcol4 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol4 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol4 <> 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol4 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol4 <> 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol3 = 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol4 = 0
# tgcol4 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol4 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol4 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol4 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol4 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol4 <> 0
# tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol4 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol4 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol3 = 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol4 = 0
# tgcol4 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol4 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol4 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol4 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol4 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol4 <> 0
# tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol4 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol4 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol3 <> 0 and tgcol4 <> 0
# tgcol3 <> 0 and tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol4 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol4 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol3 <> 0 and ts
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts
# < now + 5m and ts < now + 5m and tgcol4 <> 0
# < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol4 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol4 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1098,104 +1097,104 @@ class TDTestCase:
...
@@ -1098,104 +1097,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step15
# TSIM: print =============== step15
tdLog.info('=============== step15')
tdLog.info('=============== step15')
# TSIM: sql select * from %s where ts > now + 4m and tgcol1 = 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol1 = 1 and
# tgcol2 = 1 and tgcol3 = 1
# tgcol2 = 1 and tgcol3 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol1 <> 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 1 and
# tgcol2 <> 1 and tgcol3 <> 1
# tgcol2 <> 1 and tgcol3 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol1 = 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol1 = 0 and
# tgcol2 = 0 and tgcol3 = 0
# tgcol2 = 0 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol1 <> 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0
# tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol1 = 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = 0 and
# tgcol2 = 0 and tgcol3 = 0
# tgcol2 = 0 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol1 <> 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0
# tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0
# tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol1 <> 0 and ts
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 0 and ts
# < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0
# < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1205,104 +1204,104 @@ class TDTestCase:
...
@@ -1205,104 +1204,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step16
# TSIM: print =============== step16
tdLog.info('=============== step16')
tdLog.info('=============== step16')
# TSIM: sql select * from %s where ts > now + 4m and tgcol4 = 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and
# tgcol2 = 1 and tgcol3 = 1
# tgcol2 = 1 and tgcol3 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol4 <> 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and
# tgcol2 <> 1 and tgcol3 <> 1
# tgcol2 <> 1 and tgcol3 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol4 = 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0
# tgcol2 = 0 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0
# tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol4 = 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0
# tgcol2 = 0 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0
# tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol4 <> 0 and ts
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts
# < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0
# < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1312,105 +1311,105 @@ class TDTestCase:
...
@@ -1312,105 +1311,105 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step17
# TSIM: print =============== step17
tdLog.info('=============== step17')
tdLog.info('=============== step17')
# TSIM: sql select * from %s where ts > now + 4m and tgcol4 = 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and
# tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1
# tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol4 <> 1 and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and
# tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1
# tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1'%
mt)
mt)
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol4 = 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts < now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol4 = 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts <= now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
mt)
mt)
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
mt)
mt)
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from %s where ts > now + 4m and tgcol4 <> 0 and ts
# TSIM: sql select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts
# < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and
# < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and
# tgcol1 <> 0
# tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
mt)
mt)
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and
# tgcol1 = 1 and tgcol2 = 1
# tgcol1 = 1 and tgcol2 = 1
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1'%
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and
# tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1
# tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
mt)
mt)
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and
# tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1
# tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1'%mt)
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1'%mt)
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1'%mt)
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1'%mt)
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001
# group by tgcol2
# group by tgcol2
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol2'%
mt)
mt)
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol2'%
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and
# tgcol1 = 1 group by tgcol2
# tgcol1 = 1 group by tgcol2
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 group by tgcol2'%
mt)
mt)
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 group by tgcol2'%
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and
# tgcol1 = 1 and tgcol2 = 1 group by tgcol2
# tgcol1 = 1 and tgcol2 = 1 group by tgcol2
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 group by tgcol2'%mt)
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 group by tgcol2'%mt)
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 group by tgcol2'%
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and
# tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2
# tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2'%mt)
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2'%mt)
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2'%mt)
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2'%mt)
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and
# max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and
# tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by
# tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by
# tgcol2
# tgcol2
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by tgcol2'%mt)
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by tgcol2'%mt)
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by tgcol2'%mt)
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by tgcol2'%mt)
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001
tdLog.info('select * from %s where ts < now + 4m'%(mt))
tdLog.info('select * from %s where ts < 1605045600000 + 240001'%(mt))
tdSql.query('select * from %s where ts < now + 4m'%(mt))
tdSql.query('select * from %s where ts < 1605045600000 + 240001'%(mt))
# TSIM: if $rows != 50 then
# TSIM: if $rows != 50 then
tdLog.info('tdSql.checkRow(50)')
tdLog.info('tdSql.checkRow(50)')
tdSql.checkRows(50)
tdSql.checkRows(50)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001
tdLog.info('select * from %s where ts > now + 4m'%(mt))
tdLog.info('select * from %s where ts > 1605045600000 + 240001'%(mt))
tdSql.query('select * from %s where ts > now + 4m'%(mt))
tdSql.query('select * from %s where ts > 1605045600000 + 240001'%(mt))
# TSIM: if $rows != 150 then
# TSIM: if $rows != 150 then
tdLog.info('tdSql.checkRow(150)')
tdLog.info('tdSql.checkRow(150)')
tdSql.checkRows(150)
tdSql.checkRows(150)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts = now + 4m
# TSIM: sql select * from $mt where ts = 1605045600000 + 240001
tdLog.info('select * from %s where ts = now + 4m'%(mt))
tdLog.info('select * from %s where ts = 1605045600000 + 240001'%(mt))
tdSql.query('select * from %s where ts = now + 4m'%(mt))
tdSql.query('select * from %s where ts = 1605045600000 + 240001'%(mt))
# TSIM: if $rows != 0 then
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(0)')
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 10 then
# TSIM: if $rows != 10 then
tdLog.info('tdSql.checkRow(10)')
tdLog.info('tdSql.checkRow(10)')
...
@@ -377,98 +375,98 @@ class TDTestCase:
...
@@ -377,98 +375,98 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step8
# TSIM: print =============== step8
tdLog.info('=============== step8')
tdLog.info('=============== step8')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol1 = 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol1 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol1 <> 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol1 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol1 = 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol1 <> 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol1 = 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol1 <> 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol1 <> 0
# tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol1 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol1 <> 0 and
# ts < now + 5m
# ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -478,98 +476,98 @@ class TDTestCase:
...
@@ -478,98 +476,98 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step9
# TSIM: print =============== step9
tdLog.info('=============== step9')
tdLog.info('=============== step9')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 = 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 = 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 <> 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 = 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 <> 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol2 <> 0
# tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> 0 and
# ts < now + 5m
# ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -579,98 +577,98 @@ class TDTestCase:
...
@@ -579,98 +577,98 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step10
# TSIM: print =============== step10
tdLog.info('=============== step10')
tdLog.info('=============== step10')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 = 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 <> 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol3 = 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol3 <> 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol3 = 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol3 <> 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol3 <> 0
# tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 <> 0 and
# ts < now + 5m
# ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -680,98 +678,98 @@ class TDTestCase:
...
@@ -680,98 +678,98 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step11
# TSIM: print =============== step11
tdLog.info('=============== step11')
tdLog.info('=============== step11')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 = 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 = 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 <> 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 = 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 <> 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol4 <> 0
# tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 0 and
# ts < now + 5m
# ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -781,98 +779,98 @@ class TDTestCase:
...
@@ -781,98 +779,98 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step12
# TSIM: print =============== step12
tdLog.info('=============== step12')
tdLog.info('=============== step12')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol5 = 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol5 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol5 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol5 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol5 <> 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol5 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol5 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol5 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol5 = 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol5 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol5 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol5 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol5 <> 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol5 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol5 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol5 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol5 = 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol5 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol5 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol5 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol5 <> 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol5 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol5 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol5 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol5 <> 0
# tgcol5 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol5 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol5 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol5 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol5 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol5 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol5 <> 0 and
# ts < now + 5m
# ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol5 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol5 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -882,104 +880,104 @@ class TDTestCase:
...
@@ -882,104 +880,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step13
# TSIM: print =============== step13
tdLog.info('=============== step13')
tdLog.info('=============== step13')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 = 1 and
# tgcol1 = 1
# tgcol1 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 = 1 and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1 and tgcol1 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 = 1 and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1 and tgcol1 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> 1 and
# tgcol1 <> 1
# tgcol1 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 1 and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1 and tgcol1 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 1 and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1 and tgcol1 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 = 0 and
# tgcol1 = 0
# tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 = 0 and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0 and tgcol1 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 = 0 and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0 and tgcol1 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 <> 0 and
# tgcol1 <> 0
# tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 = 0 and
# tgcol1 = 0
# tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 = 0 and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0 and tgcol1 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 = 0 and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0 and tgcol1 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 <> 0 and
# tgcol1 <> 0
# tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol2 <> 0 and tgcol1 <> 0
# tgcol2 <> 0 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol1 <> 0
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m and ts < now + 5m and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m and ts < now + 5m and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -989,104 +987,104 @@ class TDTestCase:
...
@@ -989,104 +987,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step14
# TSIM: print =============== step14
tdLog.info('=============== step14')
tdLog.info('=============== step14')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 = 1 and
# tgcol2 = 1
# tgcol2 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol2 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol2 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol2 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol2 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 <> 1 and
# tgcol2 <> 1
# tgcol2 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol2 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol2 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol2 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol2 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol3 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol2 = 0
# tgcol2 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol2 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol2 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol2 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol2 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol2 <> 0
# tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol2 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol2 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol3 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol2 = 0
# tgcol2 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol2 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol2 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol2 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol2 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol2 <> 0
# tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol2 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol2 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol3 <> 0 and tgcol2 <> 0
# tgcol3 <> 0 and tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol2 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol2 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol2 <> 0
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1096,104 +1094,104 @@ class TDTestCase:
...
@@ -1096,104 +1094,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step15
# TSIM: print =============== step15
tdLog.info('=============== step15')
tdLog.info('=============== step15')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 = 1 and
# tgcol4 = 1
# tgcol4 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol4 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol4 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol4 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol4 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 <> 1 and
# tgcol4 <> 1
# tgcol4 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol4 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol4 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol4 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol4 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol3 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol4 = 0
# tgcol4 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol4 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol4 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol4 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol4 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol4 <> 0
# tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol3 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol4 = 0
# tgcol4 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol4 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol4 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol4 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol4 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol4 <> 0
# tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol3 <> 0 and tgcol4 <> 0
# tgcol3 <> 0 and tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol4 <> 0
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1203,104 +1201,104 @@ class TDTestCase:
...
@@ -1203,104 +1201,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step16
# TSIM: print =============== step16
tdLog.info('=============== step16')
tdLog.info('=============== step16')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol5 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol5 = 1 and
# tgcol4 = 1
# tgcol4 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol5 = 1 and tgcol4 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 = 1 and tgcol4 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol5 = 1 and tgcol4 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 = 1 and tgcol4 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol5 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol5 <> 1 and
# tgcol4 <> 1
# tgcol4 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol5 <> 1 and tgcol4 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 1 and tgcol4 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol5 <> 1 and tgcol4 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 1 and tgcol4 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol5 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol5 = 0 and
# tgcol4 = 0
# tgcol4 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol5 = 0 and tgcol4 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 = 0 and tgcol4 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol5 = 0 and tgcol4 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 = 0 and tgcol4 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol5 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol5 <> 0 and
# tgcol4 <> 0
# tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol5 <> 0 and tgcol4 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol5 <> 0 and tgcol4 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol5 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol5 = 0 and
# tgcol4 = 0
# tgcol4 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol5 = 0 and tgcol4 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 = 0 and tgcol4 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol5 = 0 and tgcol4 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 = 0 and tgcol4 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol5 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol5 <> 0 and
# tgcol4 <> 0
# tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol5 <> 0 and tgcol4 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol5 <> 0 and tgcol4 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol5 <> 0 and tgcol4 <> 0
# tgcol5 <> 0 and tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol5 <> 0 and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol5 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol5 <> 0 and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol5 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol5 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol5 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol4 <> 0
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol5 <> 0 and ts < now + 5m and ts < now + 5m and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol5 <> 0 and ts < now + 5m and ts < now + 5m and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1310,104 +1308,104 @@ class TDTestCase:
...
@@ -1310,104 +1308,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step17
# TSIM: print =============== step17
tdLog.info('=============== step17')
tdLog.info('=============== step17')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol1 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol1 = 1 and
# tgcol2 = 1 and tgcol3 = 1
# tgcol2 = 1 and tgcol3 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol1 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol1 <> 1 and
# tgcol2 <> 1 and tgcol3 <> 1
# tgcol2 <> 1 and tgcol3 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol1 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol1 = 0 and
# tgcol2 = 0 and tgcol3 = 0
# tgcol2 = 0 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol1 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol1 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0
# tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol1 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol1 = 0 and
# tgcol2 = 0 and tgcol3 = 0
# tgcol2 = 0 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol1 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol1 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0
# tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0
# tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol1 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol1 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1417,104 +1415,104 @@ class TDTestCase:
...
@@ -1417,104 +1415,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step18
# TSIM: print =============== step18
tdLog.info('=============== step18')
tdLog.info('=============== step18')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 = 1 and
# tgcol2 = 1 and tgcol3 = 1
# tgcol2 = 1 and tgcol3 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 1 and
# tgcol2 <> 1 and tgcol3 <> 1
# tgcol2 <> 1 and tgcol3 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0
# tgcol2 = 0 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0
# tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0
# tgcol2 = 0 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0
# tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1524,105 +1522,105 @@ class TDTestCase:
...
@@ -1524,105 +1522,105 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step19
# TSIM: print =============== step19
tdLog.info('=============== step19')
tdLog.info('=============== step19')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 = 1 and
# tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1
# tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 1 and
# tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1
# tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and
# tgcol1 <> 0
# tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1632,106 +1630,106 @@ class TDTestCase:
...
@@ -1632,106 +1630,106 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step20
# TSIM: print =============== step20
tdLog.info('=============== step20')
tdLog.info('=============== step20')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 = 1 and
# tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1
# tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 1 and
# tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1
# tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and
# tgcol5 <> 0
# tgcol5 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and
# tgcol1 <> 0 and tgcol5 <> 0
# tgcol1 <> 0 and tgcol5 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1
# and tgcol1 = 1 and tgcol2 = 1
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1'%(mt))
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1'%(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and
# tgcol5 = 1
# tgcol5 = 1
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1'%(mt))
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1'%(mt))
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1'%(mt))
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1'%(mt))
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol2
# group by tgcol2
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol2'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol2'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 group by tgcol2
# and tgcol1 = 1 group by tgcol2
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 group by tgcol2'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 group by tgcol2'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1 group by tgcol2
# and tgcol1 = 1 and tgcol2 = 1 group by tgcol2
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 group by tgcol2'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 group by tgcol2'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2'%(mt))
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2'%(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by
# tgcol2
# tgcol2
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by tgcol2'%(mt))
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by tgcol2'%(mt))
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by tgcol2'%(mt))
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by tgcol2'%(mt))
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and
# tgcol5 = 1 group by tgcol2
# tgcol5 = 1 group by tgcol2
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1 group by tgcol2'%(mt))
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1 group by tgcol2'%(mt))
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1 group by tgcol2'%(mt))
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1 group by tgcol2'%(mt))
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001
tdLog.info('select * from %s where ts < now + 4m'%(mt))
tdLog.info('select * from %s where ts < 1605045600000 + 240001'%(mt))
tdSql.query('select * from %s where ts < now + 4m'%(mt))
tdSql.query('select * from %s where ts < 1605045600000 + 240001'%(mt))
# TSIM: if $rows != 50 then
# TSIM: if $rows != 50 then
tdLog.info('tdSql.checkRow(50)')
tdLog.info('tdSql.checkRow(50)')
tdSql.checkRows(50)
tdSql.checkRows(50)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001
tdLog.info('select * from %s where ts > now + 4m'%(mt))
tdLog.info('select * from %s where ts > 1605045600000 + 240001'%(mt))
tdSql.query('select * from %s where ts > now + 4m'%(mt))
tdSql.query('select * from %s where ts > 1605045600000 + 240001'%(mt))
# TSIM: if $rows != 150 then
# TSIM: if $rows != 150 then
tdLog.info('tdSql.checkRow(150)')
tdLog.info('tdSql.checkRow(150)')
tdSql.checkRows(150)
tdSql.checkRows(150)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts = now + 4m
# TSIM: sql select * from $mt where ts = 1605045600000 + 240001
tdLog.info('select * from %s where ts = now + 4m'%(mt))
tdLog.info('select * from %s where ts = 1605045600000 + 240001'%(mt))
tdSql.query('select * from %s where ts = now + 4m'%(mt))
tdSql.query('select * from %s where ts = 1605045600000 + 240001'%(mt))
# TSIM: if $rows != 0 then
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(0)')
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 10 then
# TSIM: if $rows != 10 then
tdLog.info('tdSql.checkRow(10)')
tdLog.info('tdSql.checkRow(10)')
...
@@ -417,98 +415,98 @@ class TDTestCase:
...
@@ -417,98 +415,98 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step9
# TSIM: print =============== step9
tdLog.info('=============== step9')
tdLog.info('=============== step9')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol1 = 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol1 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol1 <> 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol1 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol1 = 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol1 <> 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol1 = 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol1 <> 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol1 <> 0
# tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol1 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol1 <> 0 and
# ts < now + 5m
# ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -518,98 +516,98 @@ class TDTestCase:
...
@@ -518,98 +516,98 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step10
# TSIM: print =============== step10
tdLog.info('=============== step10')
tdLog.info('=============== step10')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 = 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 = 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 <> 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 = 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 <> 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol2 <> 0
# tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> 0 and
# ts < now + 5m
# ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -619,98 +617,98 @@ class TDTestCase:
...
@@ -619,98 +617,98 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step11
# TSIM: print =============== step11
tdLog.info('=============== step11')
tdLog.info('=============== step11')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 = 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 <> 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol3 = 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol3 <> 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol3 = 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol3 <> 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol3 <> 0
# tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 <> 0 and
# ts < now + 5m
# ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -720,98 +718,98 @@ class TDTestCase:
...
@@ -720,98 +718,98 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step12
# TSIM: print =============== step12
tdLog.info('=============== step12')
tdLog.info('=============== step12')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 = 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 = 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 <> 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 = 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 <> 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol4 <> 0
# tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 0 and
# ts < now + 5m
# ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -821,98 +819,98 @@ class TDTestCase:
...
@@ -821,98 +819,98 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step13
# TSIM: print =============== step13
tdLog.info('=============== step13')
tdLog.info('=============== step13')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol5 = 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol5 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol5 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol5 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol5 <> 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol5 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol5 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol5 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol5 = 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol5 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol5 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol5 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol5 <> 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol5 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol5 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol5 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol5 = 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol5 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol5 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol5 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol5 <> 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol5 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol5 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol5 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol5 <> 0
# tgcol5 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol5 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol5 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol5 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol5 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol5 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol5 <> 0 and
# ts < now + 5m
# ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol5 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol5 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -922,98 +920,98 @@ class TDTestCase:
...
@@ -922,98 +920,98 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step14
# TSIM: print =============== step14
tdLog.info('=============== step14')
tdLog.info('=============== step14')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol6 = 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol6 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol6 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol6 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol6 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol6 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol6 <> 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol6 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol6 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol6 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol6 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol6 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol6 = 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol6 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol6 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol6 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol6 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol6 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol6 <> 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol6 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol6 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol6 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol6 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol6 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol6 = 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol6 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol6 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol6 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol6 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol6 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol6 <> 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol6 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol6 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol6 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol6 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol6 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol6 <> 0
# tgcol6 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol6 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol6 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol6 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol6 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol6 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol6 <> 0 and
# ts < now + 5m
# ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol6 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol6 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol6 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol6 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1023,104 +1021,104 @@ class TDTestCase:
...
@@ -1023,104 +1021,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step15
# TSIM: print =============== step15
tdLog.info('=============== step15')
tdLog.info('=============== step15')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 = 1 and
# tgcol1 = 1
# tgcol1 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 = 1 and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1 and tgcol1 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 = 1 and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1 and tgcol1 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> 1 and
# tgcol1 <> 1
# tgcol1 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 1 and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1 and tgcol1 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 1 and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1 and tgcol1 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 = 0 and
# tgcol1 = 0
# tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 = 0 and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0 and tgcol1 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 = 0 and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0 and tgcol1 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 <> 0 and
# tgcol1 <> 0
# tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 = 0 and
# tgcol1 = 0
# tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 = 0 and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0 and tgcol1 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 = 0 and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0 and tgcol1 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 <> 0 and
# tgcol1 <> 0
# tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol2 <> 0 and tgcol1 <> 0
# tgcol2 <> 0 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol1 <> 0
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m and ts < now + 5m and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m and ts < now + 5m and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1130,104 +1128,104 @@ class TDTestCase:
...
@@ -1130,104 +1128,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step16
# TSIM: print =============== step16
tdLog.info('=============== step16')
tdLog.info('=============== step16')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 = 1 and
# tgcol2 = 1
# tgcol2 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol2 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol2 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol2 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol2 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 <> 1 and
# tgcol2 <> 1
# tgcol2 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol2 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol2 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol2 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol2 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol3 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol2 = 0
# tgcol2 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol2 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol2 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol2 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol2 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol2 <> 0
# tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol2 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol2 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol3 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol2 = 0
# tgcol2 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol2 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol2 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol2 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol2 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol2 <> 0
# tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol2 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol2 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol3 <> 0 and tgcol2 <> 0
# tgcol3 <> 0 and tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol2 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol2 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol2 <> 0
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1237,104 +1235,104 @@ class TDTestCase:
...
@@ -1237,104 +1235,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step17
# TSIM: print =============== step17
tdLog.info('=============== step17')
tdLog.info('=============== step17')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 = 1 and
# tgcol4 = 1
# tgcol4 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol4 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol4 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 = 1 and tgcol4 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 = 1 and tgcol4 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 <> 1 and
# tgcol4 <> 1
# tgcol4 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol4 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol4 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 1 and tgcol4 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 1 and tgcol4 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol3 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol4 = 0
# tgcol4 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol4 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol4 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 = 0 and tgcol4 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 = 0 and tgcol4 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol4 <> 0
# tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol3 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol3 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol3 = 0 and
# tgcol4 = 0
# tgcol4 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol4 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol4 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 = 0 and tgcol4 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 = 0 and tgcol4 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and
# tgcol4 <> 0
# tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol3 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol3 <> 0 and tgcol4 <> 0
# tgcol3 <> 0 and tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol3 <> 0 and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol3 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol3 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol3 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol4 <> 0
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol3 <> 0 and ts < now + 5m and ts < now + 5m and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol3 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1344,104 +1342,104 @@ class TDTestCase:
...
@@ -1344,104 +1342,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step18
# TSIM: print =============== step18
tdLog.info('=============== step18')
tdLog.info('=============== step18')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol5 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol5 = 1 and
# tgcol4 = 1
# tgcol4 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol5 = 1 and tgcol4 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 = 1 and tgcol4 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol5 = 1 and tgcol4 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 = 1 and tgcol4 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol5 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol5 <> 1 and
# tgcol4 <> 1
# tgcol4 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol5 <> 1 and tgcol4 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 1 and tgcol4 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol5 <> 1 and tgcol4 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 1 and tgcol4 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol5 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol5 = 0 and
# tgcol4 = 0
# tgcol4 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol5 = 0 and tgcol4 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 = 0 and tgcol4 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol5 = 0 and tgcol4 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 = 0 and tgcol4 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol5 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol5 <> 0 and
# tgcol4 <> 0
# tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol5 <> 0 and tgcol4 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol5 <> 0 and tgcol4 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol5 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol5 = 0 and
# tgcol4 = 0
# tgcol4 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol5 = 0 and tgcol4 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 = 0 and tgcol4 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol5 = 0 and tgcol4 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 = 0 and tgcol4 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol5 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol5 <> 0 and
# tgcol4 <> 0
# tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol5 <> 0 and tgcol4 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol5 <> 0 and tgcol4 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol5 <> 0 and tgcol4 <> 0
# tgcol5 <> 0 and tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol5 <> 0 and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol5 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol5 <> 0 and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol5 <> 0 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol5 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol5 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol4 <> 0
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol4 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol5 <> 0 and ts < now + 5m and ts < now + 5m and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol4 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol5 <> 0 and ts < now + 5m and ts < now + 5m and tgcol4 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol4 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1451,104 +1449,104 @@ class TDTestCase:
...
@@ -1451,104 +1449,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step19
# TSIM: print =============== step19
tdLog.info('=============== step19')
tdLog.info('=============== step19')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol5 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol5 = 1 and
# tgcol6 = 1
# tgcol6 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol5 = 1 and tgcol6 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 = 1 and tgcol6 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol5 = 1 and tgcol6 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 = 1 and tgcol6 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol5 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol5 <> 1 and
# tgcol6 <> 1
# tgcol6 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol5 <> 1 and tgcol6 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 1 and tgcol6 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol5 <> 1 and tgcol6 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 1 and tgcol6 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol5 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol5 = 0 and
# tgcol6 = 0
# tgcol6 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol5 = 0 and tgcol6 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 = 0 and tgcol6 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol5 = 0 and tgcol6 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 = 0 and tgcol6 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol5 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol5 <> 0 and
# tgcol6 <> 0
# tgcol6 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol5 <> 0 and tgcol6 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 <> 0 and tgcol6 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol5 <> 0 and tgcol6 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol5 <> 0 and tgcol6 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol5 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol5 = 0 and
# tgcol6 = 0
# tgcol6 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol5 = 0 and tgcol6 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 = 0 and tgcol6 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol5 = 0 and tgcol6 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 = 0 and tgcol6 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol5 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol5 <> 0 and
# tgcol6 <> 0
# tgcol6 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol5 <> 0 and tgcol6 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 <> 0 and tgcol6 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol5 <> 0 and tgcol6 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol5 <> 0 and tgcol6 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol5 <> 0 and tgcol6 <> 0
# tgcol5 <> 0 and tgcol6 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol5 <> 0 and tgcol6 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol5 <> 0 and tgcol6 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol5 <> 0 and tgcol6 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol5 <> 0 and tgcol6 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol5 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol5 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol6 <> 0
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol6 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol5 <> 0 and ts < now + 5m and ts < now + 5m and tgcol6 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol6 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol5 <> 0 and ts < now + 5m and ts < now + 5m and tgcol6 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol5 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol6 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1558,104 +1556,104 @@ class TDTestCase:
...
@@ -1558,104 +1556,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step20
# TSIM: print =============== step20
tdLog.info('=============== step20')
tdLog.info('=============== step20')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol1 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol1 = 1 and
# tgcol2 = 1 and tgcol3 = 1
# tgcol2 = 1 and tgcol3 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol1 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol1 <> 1 and
# tgcol2 <> 1 and tgcol3 <> 1
# tgcol2 <> 1 and tgcol3 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol1 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol1 = 0 and
# tgcol2 = 0 and tgcol3 = 0
# tgcol2 = 0 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol1 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol1 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0
# tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol1 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol1 = 0 and
# tgcol2 = 0 and tgcol3 = 0
# tgcol2 = 0 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 = 0 and tgcol2 = 0 and tgcol3 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol1 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol1 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0
# tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0
# tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol1 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol1 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol1 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol1 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol1 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol1 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1665,104 +1663,104 @@ class TDTestCase:
...
@@ -1665,104 +1663,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step21
# TSIM: print =============== step21
tdLog.info('=============== step21')
tdLog.info('=============== step21')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 = 1 and
# tgcol2 = 1 and tgcol3 = 1
# tgcol2 = 1 and tgcol3 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 1 and
# tgcol2 <> 1 and tgcol3 <> 1
# tgcol2 <> 1 and tgcol3 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0
# tgcol2 = 0 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0
# tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0
# tgcol2 = 0 and tgcol3 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0
# tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1772,105 +1770,105 @@ class TDTestCase:
...
@@ -1772,105 +1770,105 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step22
# TSIM: print =============== step22
tdLog.info('=============== step22')
tdLog.info('=============== step22')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 = 1 and
# tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1
# tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 1 and
# tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1
# tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and
# tgcol1 <> 0
# tgcol1 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1880,106 +1878,106 @@ class TDTestCase:
...
@@ -1880,106 +1878,106 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step23
# TSIM: print =============== step23
tdLog.info('=============== step23')
tdLog.info('=============== step23')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 = 1 and
# tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1
# tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 1 and
# tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1
# tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and
# tgcol5 <> 0
# tgcol5 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and
# tgcol1 <> 0 and tgcol5 <> 0
# tgcol1 <> 0 and tgcol5 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -1989,112 +1987,112 @@ class TDTestCase:
...
@@ -1989,112 +1987,112 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step24
# TSIM: print =============== step24
tdLog.info('=============== step24')
tdLog.info('=============== step24')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 = 1 and
# tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1 and tgcol6 =
# tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1 and tgcol6 =
# 1
# 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1 and tgcol6 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1 and tgcol6 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1 and tgcol6 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol1 = 1 and tgcol5 = 1 and tgcol6 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 1 and
# tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1 and
# tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1 and
# tgcol6 <> 1
# tgcol6 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1 and tgcol6 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1 and tgcol6 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1 and tgcol6 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 1 and tgcol2 <> 1 and tgcol3 <> 1 and tgcol1 <> 1 and tgcol5 <> 1 and tgcol6 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0 and tgcol6 =
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0 and tgcol6 =
# 0
# 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0 and tgcol6 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0 and tgcol6 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0 and tgcol6 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0 and tgcol6 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and
# tgcol6 <> 0
# tgcol6 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 = 0 and
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0 and tgcol6 =
# tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0 and tgcol6 =
# 0
# 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0 and tgcol6 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0 and tgcol6 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0 and tgcol6 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 = 0 and tgcol2 = 0 and tgcol3 = 0 and tgcol1 = 0 and tgcol5 = 0 and tgcol6 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and
# tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and
# tgcol6 <> 0
# tgcol6 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and
# tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and
# tgcol5 <> 0 and tgcol6 <> 0
# tgcol5 <> 0 and tgcol6 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol4 <> 0 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol4 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol4 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and
# tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0
# tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol4 <> 0 and ts < now + 5m and ts < now + 5m and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol4 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol3 <> 0 and tgcol1 <> 0 and tgcol5 <> 0 and tgcol6 <> 0'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1
# and tgcol1 = 1 and tgcol2 = 1
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1'%(mt))
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1'%(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and
# tgcol5 = 1
# tgcol5 = 1
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1'%(mt))
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1'%(mt))
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1'%(mt))
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1'%(mt))
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and
# tgcol5 = 1 and tgcol6 = 1
# tgcol5 = 1 and tgcol6 = 1
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1 and tgcol6 = 1'%(mt))
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1 and tgcol6 = 1'%(mt))
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1 and tgcol6 = 1'%(mt))
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1 and tgcol6 = 1'%(mt))
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol2
# group by tgcol2
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol2'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol2'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 group by tgcol2
# and tgcol1 = 1 group by tgcol2
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 group by tgcol2'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 group by tgcol2'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1 group by tgcol2
# and tgcol1 = 1 and tgcol2 = 1 group by tgcol2
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 group by tgcol2'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 group by tgcol2'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2'%(mt))
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2'%(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 group by tgcol2'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by
# tgcol2
# tgcol2
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by tgcol2'%(mt))
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by tgcol2'%(mt))
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by tgcol2'%(mt))
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 group by tgcol2'%(mt))
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and
# tgcol5 = 1 group by tgcol2
# tgcol5 = 1 group by tgcol2
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1 group by tgcol2'%(mt))
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1 group by tgcol2'%(mt))
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1 group by tgcol2'%(mt))
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1 group by tgcol2'%(mt))
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and
# and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and
# tgcol5 = 1 and tgcol6 = 1 group by tgcol2
# tgcol5 = 1 and tgcol6 = 1 group by tgcol2
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1 and tgcol6 = 1 group by tgcol2'%(mt))
tdLog.info('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1 and tgcol6 = 1 group by tgcol2'%(mt))
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1 and tgcol6 = 1 group by tgcol2'%(mt))
tdSql.query('select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 and tgcol1 = 1 and tgcol2 = 1 and tgcol3 = 1 and tgcol4 = 1 and tgcol5 = 1 and tgcol6 = 1 group by tgcol2'%(mt))
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol
# group by tgcol
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol
# group by tgcol
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001
tdLog.info('select * from %s where ts < now + 4m'%(mt))
tdLog.info('select * from %s where ts < 1605045600000 + 240001'%(mt))
tdSql.query('select * from %s where ts < now + 4m'%(mt))
tdSql.query('select * from %s where ts < 1605045600000 + 240001'%(mt))
# TSIM: if $rows != 50 then
# TSIM: if $rows != 50 then
tdLog.info('tdSql.checkRow(50)')
tdLog.info('tdSql.checkRow(50)')
tdSql.checkRows(50)
tdSql.checkRows(50)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001
tdLog.info('select * from %s where ts > now + 4m'%(mt))
tdLog.info('select * from %s where ts > 1605045600000 + 240001'%(mt))
tdSql.query('select * from %s where ts > now + 4m'%(mt))
tdSql.query('select * from %s where ts > 1605045600000 + 240001'%(mt))
# TSIM: if $rows != 150 then
# TSIM: if $rows != 150 then
tdLog.info('tdSql.checkRow(150)')
tdLog.info('tdSql.checkRow(150)')
tdSql.checkRows(150)
tdSql.checkRows(150)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts = now + 4m
# TSIM: sql select * from $mt where ts = 1605045600000 + 240001
tdLog.info('select * from %s where ts = now + 4m'%(mt))
tdLog.info('select * from %s where ts = 1605045600000 + 240001'%(mt))
tdSql.query('select * from %s where ts = now + 4m'%(mt))
tdSql.query('select * from %s where ts = 1605045600000 + 240001'%(mt))
# TSIM: if $rows != 0 then
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(0)')
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 10 then
# TSIM: if $rows != 10 then
tdLog.info('tdSql.checkRow(10)')
tdLog.info('tdSql.checkRow(10)')
...
@@ -269,98 +267,98 @@ class TDTestCase:
...
@@ -269,98 +267,98 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step5
# TSIM: print =============== step5
tdLog.info('=============== step5')
tdLog.info('=============== step5')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol = '1'
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol = '1'
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol = "1"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol = "1"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol = "1"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol = "1"'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol <> '1'
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol <> '1'
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol <> "1"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol <> "1"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol <> "1"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol <> "1"'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol = '0'
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol = '0'
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol = "0"'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol = "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol = "0"'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol = "0"'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol <> '0'
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol <> '0'
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol <> "0"'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol <> "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol <> "0"'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol <> "0"'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol = '0'
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol = '0'
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol = "0"'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol = "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol = "0"'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol = "0"'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol <> '0'
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol <> '0'
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol <> "0"'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol <> "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol <> "0"'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol <> "0"'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol <> '0'
# tgcol <> '0'
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol <> "0"'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol <> "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol <> "0"'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol <> "0"'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol <> '0' and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol <> '0' and
# ts < now + 5m
# ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol <> "0" and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol <> "0" and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol <> "0" and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol <> "0" and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -370,98 +368,98 @@ class TDTestCase:
...
@@ -370,98 +368,98 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step6
# TSIM: print =============== step6
tdLog.info('=============== step6')
tdLog.info('=============== step6')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 = '1'
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 = '1'
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 = "1"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = "1"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 = "1"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = "1"'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> '1'
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> '1'
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> "1"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> "1"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> "1"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> "1"'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 = '0'
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 = '0'
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 = "0"'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 = "0"'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = "0"'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 <> '0'
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 <> '0'
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 <> "0"'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 <> "0"'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> "0"'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 = '0'
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 = '0'
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 = "0"'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 = "0"'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = "0"'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 <> '0'
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 <> '0'
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 <> "0"'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 <> "0"'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> "0"'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol2 <> '0'
# tgcol2 <> '0'
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> "0"'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> "0"'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> "0"'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> '0' and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> '0' and
# ts < now + 5m
# ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> "0" and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> "0" and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> "0" and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> "0" and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -471,104 +469,104 @@ class TDTestCase:
...
@@ -471,104 +469,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step7
# TSIM: print =============== step7
tdLog.info('=============== step7')
tdLog.info('=============== step7')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 = '1' and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 = '1' and
# tgcol = '1'
# tgcol = '1'
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 = "1" and tgcol = "1"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = "1" and tgcol = "1"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 = "1" and tgcol = "1"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = "1" and tgcol = "1"'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> '1' and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> '1' and
# tgcol <> '1'
# tgcol <> '1'
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> "1" and tgcol <> "1"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> "1" and tgcol <> "1"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> "1" and tgcol <> "1"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> "1" and tgcol <> "1"'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 = '0' and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 = '0' and
# tgcol = '0'
# tgcol = '0'
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 = "0" and tgcol = "0"'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = "0" and tgcol = "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 = "0" and tgcol = "0"'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = "0" and tgcol = "0"'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 <> '0' and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 <> '0' and
# tgcol <> '0'
# tgcol <> '0'
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 <> "0" and tgcol <> "0"'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> "0" and tgcol <> "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 <> "0" and tgcol <> "0"'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> "0" and tgcol <> "0"'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 = '0' and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 = '0' and
# tgcol = '0'
# tgcol = '0'
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 = "0" and tgcol = "0"'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = "0" and tgcol = "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 = "0" and tgcol = "0"'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = "0" and tgcol = "0"'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 <> '0'
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 <> '0'
# and tgcol <> '0'
# and tgcol <> '0'
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 <> "0" and tgcol <> "0"'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> "0" and tgcol <> "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 <> "0" and tgcol <> "0"'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> "0" and tgcol <> "0"'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol2 <> '0' and tgcol <> '0'
# tgcol2 <> '0' and tgcol <> '0'
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> "0" and tgcol <> "0"'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> "0" and tgcol <> "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> "0" and tgcol <> "0"'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> "0" and tgcol <> "0"'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> '0' and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> '0' and
# ts < now + 5m and ts < now + 5m and tgcol <> '0'
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol <> '0'
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> "0" and ts < now + 5m and ts < now + 5m and tgcol <> "0"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> "0" and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol <> "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> "0" and ts < now + 5m and ts < now + 5m and tgcol <> "0"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> "0" and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol <> "0"'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol
# group by tgcol
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol
# group by tgcol
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001
tdLog.info('select * from %s where ts < now + 4m'%(mt))
tdLog.info('select * from %s where ts < 1605045600000 + 240001'%(mt))
tdSql.query('select * from %s where ts < now + 4m'%(mt))
tdSql.query('select * from %s where ts < 1605045600000 + 240001'%(mt))
# TSIM: if $rows != 50 then
# TSIM: if $rows != 50 then
tdLog.info('tdSql.checkRow(50)')
tdLog.info('tdSql.checkRow(50)')
tdSql.checkRows(50)
tdSql.checkRows(50)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001
tdLog.info('select * from %s where ts > now + 4m'%(mt))
tdLog.info('select * from %s where ts > 1605045600000 + 240001'%(mt))
tdSql.query('select * from %s where ts > now + 4m'%(mt))
tdSql.query('select * from %s where ts > 1605045600000 + 240001'%(mt))
# TSIM: if $rows != 150 then
# TSIM: if $rows != 150 then
tdLog.info('tdSql.checkRow(150)')
tdLog.info('tdSql.checkRow(150)')
tdSql.checkRows(150)
tdSql.checkRows(150)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts = now + 4m
# TSIM: sql select * from $mt where ts = 1605045600000 + 240001
tdLog.info('select * from %s where ts = now + 4m'%(mt))
tdLog.info('select * from %s where ts = 1605045600000 + 240001'%(mt))
tdSql.query('select * from %s where ts = now + 4m'%(mt))
tdSql.query('select * from %s where ts = 1605045600000 + 240001'%(mt))
# TSIM: if $rows != 0 then
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(0)')
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 10 then
# TSIM: if $rows != 10 then
tdLog.info('tdSql.checkRow(10)')
tdLog.info('tdSql.checkRow(10)')
...
@@ -263,98 +261,98 @@ class TDTestCase:
...
@@ -263,98 +261,98 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step5
# TSIM: print =============== step5
tdLog.info('=============== step5')
tdLog.info('=============== step5')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol = true
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol = true
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol = true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol = true'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol = true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol = true'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol <> true
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol <> true
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol <> true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol <> true'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol <> true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol <> true'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol = false
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol = false
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol = false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol = false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol = false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol = false'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol <> false
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol <> false
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol <> false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol <> false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol <> false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol <> false'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol = false
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol = false
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol = false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol = false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol = false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol = false'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol <> false
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol <> false
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol <> false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol <> false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol <> false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol <> false'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol <> false
# tgcol <> false
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol <> false'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol <> false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol <> false'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol <> false'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol <> false
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol <> false
# and ts < now + 5m
# and ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol <> false and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol <> false and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol <> false and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol <> false and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -364,98 +362,98 @@ class TDTestCase:
...
@@ -364,98 +362,98 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step6
# TSIM: print =============== step6
tdLog.info('=============== step6')
tdLog.info('=============== step6')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 = '1'
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 = '1'
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 = "1"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = "1"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 = "1"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = "1"'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> '1'
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> '1'
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> "1"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> "1"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> "1"'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> "1"'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 = '0'
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 = '0'
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 = "0"'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 = "0"'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = "0"'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 <> '0'
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 <> '0'
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 <> "0"'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 <> "0"'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> "0"'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 = '0'
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 = '0'
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 = "0"'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 = "0"'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = "0"'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 <> '0'
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 <> '0'
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 <> "0"'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 <> "0"'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> "0"'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol2 <> '0'
# tgcol2 <> '0'
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> "0"'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> "0"'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> "0"'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> "0"'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> '0' and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> '0' and
# ts < now + 5m
# ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> "0" and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> "0" and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> "0" and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> "0" and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -465,104 +463,104 @@ class TDTestCase:
...
@@ -465,104 +463,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step7
# TSIM: print =============== step7
tdLog.info('=============== step7')
tdLog.info('=============== step7')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 = '1' and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 = '1' and
# tgcol = true
# tgcol = true
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 = "1" and tgcol = true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = "1" and tgcol = true'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 = "1" and tgcol = true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = "1" and tgcol = true'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> '1' and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> '1' and
# tgcol <> true
# tgcol <> true
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> "1" and tgcol <> true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> "1" and tgcol <> true'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> "1" and tgcol <> true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> "1" and tgcol <> true'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 = '0' and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 = '0' and
# tgcol = false
# tgcol = false
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 = "0" and tgcol = false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = "0" and tgcol = false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 = "0" and tgcol = false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = "0" and tgcol = false'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 <> '0' and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 <> '0' and
# tgcol <> false
# tgcol <> false
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 <> "0" and tgcol <> false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> "0" and tgcol <> false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 <> "0" and tgcol <> false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> "0" and tgcol <> false'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 = '0' and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 = '0' and
# tgcol = false
# tgcol = false
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 = "0" and tgcol = false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = "0" and tgcol = false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 = "0" and tgcol = false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = "0" and tgcol = false'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 <> '0'
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 <> '0'
# and tgcol <> false
# and tgcol <> false
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 <> "0" and tgcol <> false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> "0" and tgcol <> false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 <> "0" and tgcol <> false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> "0" and tgcol <> false'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol2 <> '0' and tgcol <> false
# tgcol2 <> '0' and tgcol <> false
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> "0" and tgcol <> false'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> "0" and tgcol <> false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> "0" and tgcol <> false'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> "0" and tgcol <> false'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> '0' and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> '0' and
# ts < now + 5m and ts < now + 5m and tgcol <> false
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol <> false
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> "0" and ts < now + 5m and ts < now + 5m and tgcol <> false'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> "0" and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol <> false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> "0" and ts < now + 5m and ts < now + 5m and tgcol <> false'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> "0" and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol <> false'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol
# group by tgcol
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001
tdLog.info('select * from %s where ts < now + 4m'%(mt))
tdLog.info('select * from %s where ts < 1605045600000 + 240001'%(mt))
tdSql.query('select * from %s where ts < now + 4m'%(mt))
tdSql.query('select * from %s where ts < 1605045600000 + 240001'%(mt))
# TSIM: if $rows != 50 then
# TSIM: if $rows != 50 then
tdLog.info('tdSql.checkRow(50)')
tdLog.info('tdSql.checkRow(50)')
tdSql.checkRows(50)
tdSql.checkRows(50)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001
tdLog.info('select * from %s where ts > now + 4m'%(mt))
tdLog.info('select * from %s where ts > 1605045600000 + 240001'%(mt))
tdSql.query('select * from %s where ts > now + 4m'%(mt))
tdSql.query('select * from %s where ts > 1605045600000 + 240001'%(mt))
# TSIM: if $rows != 150 then
# TSIM: if $rows != 150 then
tdLog.info('tdSql.checkRow(150)')
tdLog.info('tdSql.checkRow(150)')
tdSql.checkRows(150)
tdSql.checkRows(150)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts = now + 4m
# TSIM: sql select * from $mt where ts = 1605045600000 + 240001
tdLog.info('select * from %s where ts = now + 4m'%(mt))
tdLog.info('select * from %s where ts = 1605045600000 + 240001'%(mt))
tdSql.query('select * from %s where ts = now + 4m'%(mt))
tdSql.query('select * from %s where ts = 1605045600000 + 240001'%(mt))
# TSIM: if $rows != 0 then
# TSIM: if $rows != 0 then
tdLog.info('tdSql.checkRow(0)')
tdLog.info('tdSql.checkRow(0)')
tdSql.checkRows(0)
tdSql.checkRows(0)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 10 then
# TSIM: if $rows != 10 then
tdLog.info('tdSql.checkRow(10)')
tdLog.info('tdSql.checkRow(10)')
...
@@ -295,98 +293,98 @@ class TDTestCase:
...
@@ -295,98 +293,98 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step5
# TSIM: print =============== step5
tdLog.info('=============== step5')
tdLog.info('=============== step5')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol = true
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol = true
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol = true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol = true'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol = true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol = true'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol <> true
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol <> true
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol <> true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol <> true'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol <> true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol <> true'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol = false
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol = false
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol = false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol = false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol = false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol = false'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol <> false
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol <> false
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol <> false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol <> false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol <> false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol <> false'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol = false
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol = false
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol = false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol = false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol = false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol = false'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol <> false
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol <> false
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol <> false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol <> false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol <> false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol <> false'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol <> false
# tgcol <> false
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol <> false'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol <> false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol <> false'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol <> false'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol <> false
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol <> false
# and ts < now + 5m
# and ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol <> false and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol <> false and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol <> false and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol <> false and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -396,98 +394,98 @@ class TDTestCase:
...
@@ -396,98 +394,98 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step6
# TSIM: print =============== step6
tdLog.info('=============== step6')
tdLog.info('=============== step6')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 = 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 = 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 = 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> 1
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> 1
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 1'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 = 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 = 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 <> 0
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 <> 0'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 = 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 = 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 = 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 <> 0
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 <> 0'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol2 <> 0
# tgcol2 <> 0
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> 0 and
# ts < now + 5m
# ts < 1605045600000 + 300001
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
...
@@ -497,104 +495,104 @@ class TDTestCase:
...
@@ -497,104 +495,104 @@ class TDTestCase:
# TSIM:
# TSIM:
# TSIM: print =============== step7
# TSIM: print =============== step7
tdLog.info('=============== step7')
tdLog.info('=============== step7')
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 = 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 = 1 and
# tgcol = true
# tgcol = true
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 = 1 and tgcol = true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1 and tgcol = true'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 = 1 and tgcol = true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 = 1 and tgcol = true'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> 1 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> 1 and
# tgcol <> true
# tgcol <> true
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 1 and tgcol <> true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1 and tgcol <> true'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 1 and tgcol <> true'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 1 and tgcol <> true'%
(mt))
(mt))
# TSIM: if $rows != 75 then
# TSIM: if $rows != 75 then
tdLog.info('tdSql.checkRow(75)')
tdLog.info('tdSql.checkRow(75)')
tdSql.checkRows(75)
tdSql.checkRows(75)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 = 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 = 0 and
# tgcol = false
# tgcol = false
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 = 0 and tgcol = false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0 and tgcol = false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 = 0 and tgcol = false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 = 0 and tgcol = false'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts < now + 4m and tgcol2 <> 0 and
# TSIM: sql select * from $mt where ts < 1605045600000 + 240001 and tgcol2 <> 0 and
# tgcol <> false
# tgcol <> false
tdLog.info(
tdLog.info(
'select * from %s where ts < now + 4m and tgcol2 <> 0 and tgcol <> false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0 and tgcol <> false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts < now + 4m and tgcol2 <> 0 and tgcol <> false'%
'select * from %s where ts < 1605045600000 + 240001 and tgcol2 <> 0 and tgcol <> false'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 = 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 = 0 and
# tgcol = false
# tgcol = false
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 = 0 and tgcol = false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0 and tgcol = false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 = 0 and tgcol = false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 = 0 and tgcol = false'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts <= now + 4m and tgcol2 <> 0 and
# TSIM: sql select * from $mt where ts <= 1605045600000 + 240001 and tgcol2 <> 0 and
# tgcol <> false
# tgcol <> false
tdLog.info(
tdLog.info(
'select * from %s where ts <= now + 4m and tgcol2 <> 0 and tgcol <> false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0 and tgcol <> false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts <= now + 4m and tgcol2 <> 0 and tgcol <> false'%
'select * from %s where ts <= 1605045600000 + 240001 and tgcol2 <> 0 and tgcol <> false'%
(mt))
(mt))
# TSIM: if $rows != 25 then
# TSIM: if $rows != 25 then
tdLog.info('tdSql.checkRow(25)')
tdLog.info('tdSql.checkRow(25)')
tdSql.checkRows(25)
tdSql.checkRows(25)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and ts < now + 5m and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and
# tgcol2 <> 0 and tgcol <> false
# tgcol2 <> 0 and tgcol <> false
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0 and tgcol <> false'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol <> false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and ts < now + 5m and tgcol2 <> 0 and tgcol <> false'%
'select * from %s where ts > 1605045600000 + 240001 and ts < 1605045600000 + 300001 and tgcol2 <> 0 and tgcol <> false'%
(mt))
(mt))
# TSIM: if $rows != 5 then
# TSIM: if $rows != 5 then
tdLog.info('tdSql.checkRow(5)')
tdLog.info('tdSql.checkRow(5)')
tdSql.checkRows(5)
tdSql.checkRows(5)
# TSIM: return -1
# TSIM: return -1
# TSIM: endi
# TSIM: endi
# TSIM: sql select * from $mt where ts > now + 4m and tgcol2 <> 0 and
# TSIM: sql select * from $mt where ts > 1605045600000 + 240001 and tgcol2 <> 0 and
# ts < now + 5m and ts < now + 5m and tgcol <> false
# ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol <> false
tdLog.info(
tdLog.info(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m and ts < now + 5m and tgcol <> false'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol <> false'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select * from %s where ts > now + 4m and tgcol2 <> 0 and ts < now + 5m and ts < now + 5m and tgcol <> false'%
'select * from %s where ts > 1605045600000 + 240001 and tgcol2 <> 0 and ts < 1605045600000 + 300001 and ts < 1605045600000 + 300001 and tgcol <> false'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol
# group by tgcol
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol
# group by tgcol
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol
# group by tgcol
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol
# group by tgcol
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol
# group by tgcol
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol
# group by tgcol
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol
# group by tgcol
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol
# group by tgcol
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol
# group by tgcol
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol
# group by tgcol
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol
# group by tgcol
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
# max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1605045600000 + 240001
# group by tgcol
# group by tgcol
tdLog.info(
tdLog.info(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%
(mt))
(mt))
tdSql.query(
tdSql.query(
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < now + 4m group by tgcol'%
'select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from %s where ts < 1605045600000 + 240001 group by tgcol'%