Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
0dc8baed
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0dc8baed
编写于
5月 30, 2023
作者:
G
Ganlin Zhao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add test cases
上级
1009c809
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
1148 addition
and
1 deletion
+1148
-1
tests/system-test/2-query/interp.py
tests/system-test/2-query/interp.py
+1148
-1
未找到文件。
tests/system-test/2-query/interp.py
浏览文件 @
0dc8baed
...
@@ -32,6 +32,12 @@ class TDTestCase:
...
@@ -32,6 +32,12 @@ class TDTestCase:
ctbname3_null
=
"ctb3_null"
ctbname3_null
=
"ctb3_null"
stbname_null
=
"stb_null"
stbname_null
=
"stb_null"
tbname_single
=
"tb_single"
ctbname1_single
=
"ctb1_single"
ctbname2_single
=
"ctb2_single"
ctbname3_single
=
"ctb3_single"
stbname_single
=
"stb_single"
tdSql
.
prepare
()
tdSql
.
prepare
()
tdLog
.
printNoPrefix
(
"==========step1:create table"
)
tdLog
.
printNoPrefix
(
"==========step1:create table"
)
...
@@ -4020,7 +4026,7 @@ class TDTestCase:
...
@@ -4020,7 +4026,7 @@ class TDTestCase:
tdLog
.
printNoPrefix
(
"======step 15: test interp pseudo columns"
)
tdLog
.
printNoPrefix
(
"======step 15: test interp pseudo columns"
)
tdSql
.
error
(
f
"select _irowts, c6 from
{
dbname
}
.
{
tbname
}
"
)
tdSql
.
error
(
f
"select _irowts, c6 from
{
dbname
}
.
{
tbname
}
"
)
tdLog
.
printNoPrefix
(
"======step 1
5
: test interp in nested query"
)
tdLog
.
printNoPrefix
(
"======step 1
6
: test interp in nested query"
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from (select * from
{
dbname
}
.
{
stbname
}
) range('2020-02-01 00:00:00', '2020-02-01 00:00:14') every(1s) fill(null)"
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from (select * from
{
dbname
}
.
{
stbname
}
) range('2020-02-01 00:00:00', '2020-02-01 00:00:14') every(1s) fill(null)"
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from (select * from
{
dbname
}
.
{
ctbname1
}
) range('2020-02-01 00:00:00', '2020-02-01 00:00:14') every(1s) fill(null)"
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from (select * from
{
dbname
}
.
{
ctbname1
}
) range('2020-02-01 00:00:00', '2020-02-01 00:00:14') every(1s) fill(null)"
)
...
@@ -4038,6 +4044,1147 @@ class TDTestCase:
...
@@ -4038,6 +4044,1147 @@ class TDTestCase:
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from (select
{
ctbname1
}
.ts,
{
ctbname1
}
.c0 from
{
dbname
}
.
{
ctbname1
}
,
{
dbname
}
.
{
ctbname2
}
where
{
ctbname1
}
.ts =
{
ctbname2
}
.ts) range('2020-02-01 00:00:00', '2020-02-01 00:00:14') every(1s) fill(null)"
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from (select
{
ctbname1
}
.ts,
{
ctbname1
}
.c0 from
{
dbname
}
.
{
ctbname1
}
,
{
dbname
}
.
{
ctbname2
}
where
{
ctbname1
}
.ts =
{
ctbname2
}
.ts) range('2020-02-01 00:00:00', '2020-02-01 00:00:14') every(1s) fill(null)"
)
tdLog
.
printNoPrefix
(
"======step 17: test interp single point"
)
tdSql
.
execute
(
f
'''create table if not exists
{
dbname
}
.
{
tbname_single
}
(ts timestamp, c0 int)
'''
)
tdSql
.
execute
(
f
"insert into
{
dbname
}
.
{
tbname_single
}
values ('2020-02-01 00:00:01', 1)"
)
tdSql
.
execute
(
f
"insert into
{
dbname
}
.
{
tbname_single
}
values ('2020-02-01 00:00:03', 3)"
)
tdSql
.
execute
(
f
"insert into
{
dbname
}
.
{
tbname_single
}
values ('2020-02-01 00:00:05', 5)"
)
tdSql
.
execute
(
f
'''create table if not exists
{
dbname
}
.
{
stbname_single
}
(ts timestamp, c0 int, c1 float, c2 bool) tags (t0 int)
'''
)
tdSql
.
execute
(
f
'''create table if not exists
{
dbname
}
.
{
ctbname1_single
}
using
{
dbname
}
.
{
stbname_single
}
tags(1)
'''
)
tdSql
.
execute
(
f
'''create table if not exists
{
dbname
}
.
{
ctbname2_single
}
using
{
dbname
}
.
{
stbname_single
}
tags(2)
'''
)
tdSql
.
execute
(
f
'''create table if not exists
{
dbname
}
.
{
ctbname3_single
}
using
{
dbname
}
.
{
stbname_single
}
tags(3)
'''
)
tdSql
.
execute
(
f
"insert into
{
dbname
}
.
{
ctbname1_single
}
values ('2020-02-01 00:00:01', 1, 1.0, true)"
)
tdSql
.
execute
(
f
"insert into
{
dbname
}
.
{
ctbname2_single
}
values ('2020-02-01 00:00:03', 3, 3.0, false)"
)
tdSql
.
execute
(
f
"insert into
{
dbname
}
.
{
ctbname3_single
}
values ('2020-02-01 00:00:05', 5, 5.0, true)"
)
# normal table
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:00', '2020-02-01 00:00:00') every(1s) fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:00') fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:01', '2020-02-01 00:00:01') every(1s) fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:01') fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:02', '2020-02-01 00:00:02') every(1s) fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:02') fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:03', '2020-02-01 00:00:03') every(1s) fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:03') fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:04', '2020-02-01 00:00:04') every(1s) fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:04') fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:05', '2020-02-01 00:00:05') every(1s) fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:05') fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:06', '2020-02-01 00:00:06') every(1s) fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:06') fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:00', '2020-02-01 00:00:00') every(1s) fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:00') fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:01', '2020-02-01 00:00:01') every(1s) fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:01') fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:02', '2020-02-01 00:00:02') every(1s) fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:02') fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:03', '2020-02-01 00:00:03') every(1s) fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:03') fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:04', '2020-02-01 00:00:04') every(1s) fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:04') fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:05', '2020-02-01 00:00:05') every(1s) fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:05') fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:06', '2020-02-01 00:00:06') every(1s) fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:06') fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:00', '2020-02-01 00:00:00') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:00') fill(prev)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:01', '2020-02-01 00:00:01') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:01') fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:02', '2020-02-01 00:00:02') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:02') fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:03', '2020-02-01 00:00:03') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:03') fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:04', '2020-02-01 00:00:04') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:04') fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:05', '2020-02-01 00:00:05') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:05') fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:06', '2020-02-01 00:00:06') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:06') fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:00', '2020-02-01 00:00:00') every(1s) fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:00') fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:01', '2020-02-01 00:00:01') every(1s) fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:01') fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:02', '2020-02-01 00:00:02') every(1s) fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:02') fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:03', '2020-02-01 00:00:03') every(1s) fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:03') fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:04', '2020-02-01 00:00:04') every(1s) fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:04') fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:05', '2020-02-01 00:00:05') every(1s) fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:05') fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:06', '2020-02-01 00:00:06') every(1s) fill(next)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:06') fill(next)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:00', '2020-02-01 00:00:00') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:00') fill(linear)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:01', '2020-02-01 00:00:01') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:01') fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:02', '2020-02-01 00:00:02') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
2
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:02') fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
2
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:03', '2020-02-01 00:00:03') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:03') fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:04', '2020-02-01 00:00:04') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
4
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:04') fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
4
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:05', '2020-02-01 00:00:05') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:05') fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:06', '2020-02-01 00:00:06') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
tbname_single
}
range('2020-02-01 00:00:06') fill(linear)"
)
tdSql
.
checkRows
(
0
)
#super table
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:00', '2020-02-01 00:00:00') every(1s) fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:00') fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:01', '2020-02-01 00:00:01') every(1s) fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:01') fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:02', '2020-02-01 00:00:02') every(1s) fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:02') fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:03', '2020-02-01 00:00:03') every(1s) fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:03') fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:04', '2020-02-01 00:00:04') every(1s) fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:04') fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:05', '2020-02-01 00:00:05') every(1s) fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:05') fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:06', '2020-02-01 00:00:06') every(1s) fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:06') fill(null)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:00', '2020-02-01 00:00:00') every(1s) fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:00') fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:01', '2020-02-01 00:00:01') every(1s) fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:01') fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:02', '2020-02-01 00:00:02') every(1s) fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:02') fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:03', '2020-02-01 00:00:03') every(1s) fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:03') fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:04', '2020-02-01 00:00:04') every(1s) fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:04') fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:05', '2020-02-01 00:00:05') every(1s) fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:05') fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:06', '2020-02-01 00:00:06') every(1s) fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:06') fill(value, 0)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:00', '2020-02-01 00:00:00') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:00') fill(prev)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:01', '2020-02-01 00:00:01') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:01') fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:02', '2020-02-01 00:00:02') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:02') fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:03', '2020-02-01 00:00:03') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:03') fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:04', '2020-02-01 00:00:04') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:04') fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:05', '2020-02-01 00:00:05') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:05') fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:06', '2020-02-01 00:00:06') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:06') fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:00', '2020-02-01 00:00:00') every(1s) fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:00') fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:01', '2020-02-01 00:00:01') every(1s) fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:01') fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:02', '2020-02-01 00:00:02') every(1s) fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:02') fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:03', '2020-02-01 00:00:03') every(1s) fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:03') fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:04', '2020-02-01 00:00:04') every(1s) fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:04') fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:05', '2020-02-01 00:00:05') every(1s) fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:05') fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:06', '2020-02-01 00:00:06') every(1s) fill(next)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:06') fill(next)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:00', '2020-02-01 00:00:00') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:00') fill(linear)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:01', '2020-02-01 00:00:01') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:01') fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:02', '2020-02-01 00:00:02') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
2
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:02') fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
2
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:03', '2020-02-01 00:00:03') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:03') fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:04', '2020-02-01 00:00:04') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
4
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:04') fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
4
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:05', '2020-02-01 00:00:05') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:05') fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:06', '2020-02-01 00:00:06') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
range('2020-02-01 00:00:06') fill(linear)"
)
tdSql
.
checkRows
(
0
)
# partition by tbname
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:00', '2020-02-01 00:00:00') every(1s) fill(null)"
)
tdSql
.
checkRows
(
3
)
for
i
in
range
(
3
):
tdSql
.
checkData
(
i
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
i
,
1
,
True
)
tdSql
.
checkData
(
i
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:00') fill(null)"
)
tdSql
.
checkRows
(
3
)
for
i
in
range
(
3
):
tdSql
.
checkData
(
i
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
i
,
1
,
True
)
tdSql
.
checkData
(
i
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:01', '2020-02-01 00:00:01') every(1s) fill(null)"
)
tdSql
.
checkRows
(
3
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
for
i
in
range
(
1
,
3
):
tdSql
.
checkData
(
i
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
i
,
1
,
True
)
tdSql
.
checkData
(
i
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:01') fill(null)"
)
tdSql
.
checkRows
(
3
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
for
i
in
range
(
1
,
3
):
tdSql
.
checkData
(
i
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
i
,
1
,
True
)
tdSql
.
checkData
(
i
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:02', '2020-02-01 00:00:02') every(1s) fill(null)"
)
tdSql
.
checkRows
(
3
)
for
i
in
range
(
3
):
tdSql
.
checkData
(
i
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
i
,
1
,
True
)
tdSql
.
checkData
(
i
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:02') fill(null)"
)
tdSql
.
checkRows
(
3
)
for
i
in
range
(
3
):
tdSql
.
checkData
(
i
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
i
,
1
,
True
)
tdSql
.
checkData
(
i
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:06', '2020-02-01 00:00:06') every(1s) fill(null)"
)
tdSql
.
checkRows
(
3
)
for
i
in
range
(
3
):
tdSql
.
checkData
(
i
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
i
,
1
,
True
)
tdSql
.
checkData
(
i
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:06') fill(null)"
)
tdSql
.
checkRows
(
3
)
for
i
in
range
(
3
):
tdSql
.
checkData
(
i
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
i
,
1
,
True
)
tdSql
.
checkData
(
i
,
2
,
None
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:00', '2020-02-01 00:00:00') every(1s) fill(value,0)"
)
tdSql
.
checkRows
(
3
)
for
i
in
range
(
3
):
tdSql
.
checkData
(
i
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
i
,
1
,
True
)
tdSql
.
checkData
(
i
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:00') fill(value,0)"
)
tdSql
.
checkRows
(
3
)
for
i
in
range
(
3
):
tdSql
.
checkData
(
i
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
i
,
1
,
True
)
tdSql
.
checkData
(
i
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:01', '2020-02-01 00:00:01') every(1s) fill(value,0)"
)
tdSql
.
checkRows
(
3
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
for
i
in
range
(
1
,
3
):
tdSql
.
checkData
(
i
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
i
,
1
,
True
)
tdSql
.
checkData
(
i
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:01') fill(value,0)"
)
tdSql
.
checkRows
(
3
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
for
i
in
range
(
1
,
3
):
tdSql
.
checkData
(
i
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
i
,
1
,
True
)
tdSql
.
checkData
(
i
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:02', '2020-02-01 00:00:02') every(1s) fill(value,0)"
)
tdSql
.
checkRows
(
3
)
for
i
in
range
(
3
):
tdSql
.
checkData
(
i
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
i
,
1
,
True
)
tdSql
.
checkData
(
i
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:02') fill(value,0)"
)
tdSql
.
checkRows
(
3
)
for
i
in
range
(
3
):
tdSql
.
checkData
(
i
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
i
,
1
,
True
)
tdSql
.
checkData
(
i
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:06', '2020-02-01 00:00:06') every(1s) fill(value,0)"
)
tdSql
.
checkRows
(
3
)
for
i
in
range
(
3
):
tdSql
.
checkData
(
i
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
i
,
1
,
True
)
tdSql
.
checkData
(
i
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:06') fill(value,0)"
)
tdSql
.
checkRows
(
3
)
for
i
in
range
(
3
):
tdSql
.
checkData
(
i
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
i
,
1
,
True
)
tdSql
.
checkData
(
i
,
2
,
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:00', '2020-02-01 00:00:00') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:00') fill(prev)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:01', '2020-02-01 00:00:01') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:01') fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:02', '2020-02-01 00:00:02') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:02') fill(prev)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:03', '2020-02-01 00:00:03') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
checkData
(
1
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
1
,
1
,
False
)
tdSql
.
checkData
(
1
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:03') fill(prev)"
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
checkData
(
1
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
1
,
1
,
False
)
tdSql
.
checkData
(
1
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:04', '2020-02-01 00:00:04') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
checkData
(
1
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
1
,
1
,
True
)
tdSql
.
checkData
(
1
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:04') fill(prev)"
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
checkData
(
1
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
1
,
1
,
True
)
tdSql
.
checkData
(
1
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:05', '2020-02-01 00:00:05') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
3
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
checkData
(
1
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
1
,
1
,
True
)
tdSql
.
checkData
(
1
,
2
,
3
)
tdSql
.
checkData
(
2
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
2
,
1
,
False
)
tdSql
.
checkData
(
2
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:05') fill(prev)"
)
tdSql
.
checkRows
(
3
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
checkData
(
1
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
1
,
1
,
True
)
tdSql
.
checkData
(
1
,
2
,
3
)
tdSql
.
checkData
(
2
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
2
,
1
,
False
)
tdSql
.
checkData
(
2
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:06', '2020-02-01 00:00:06') every(1s) fill(prev)"
)
tdSql
.
checkRows
(
3
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
checkData
(
1
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
1
,
1
,
True
)
tdSql
.
checkData
(
1
,
2
,
3
)
tdSql
.
checkData
(
2
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
2
,
1
,
True
)
tdSql
.
checkData
(
2
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:06') fill(prev)"
)
tdSql
.
checkRows
(
3
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
checkData
(
1
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
1
,
1
,
True
)
tdSql
.
checkData
(
1
,
2
,
3
)
tdSql
.
checkData
(
2
,
0
,
'2020-02-01 00:00:06.000'
)
tdSql
.
checkData
(
2
,
1
,
True
)
tdSql
.
checkData
(
2
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:06', '2020-02-01 00:00:06') every(1s) fill(next)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:06') fill(next)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:05', '2020-02-01 00:00:05') every(1s) fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:05') fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:04', '2020-02-01 00:00:04') every(1s) fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:04') fill(next)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:04.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:03', '2020-02-01 00:00:03') every(1s) fill(next)"
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
checkData
(
1
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
1
,
1
,
True
)
tdSql
.
checkData
(
1
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:03') fill(next)"
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
checkData
(
1
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
1
,
1
,
True
)
tdSql
.
checkData
(
1
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:02', '2020-02-01 00:00:02') every(1s) fill(next)"
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
checkData
(
1
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
1
,
1
,
True
)
tdSql
.
checkData
(
1
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:02') fill(next)"
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
checkData
(
1
,
0
,
'2020-02-01 00:00:02.000'
)
tdSql
.
checkData
(
1
,
1
,
True
)
tdSql
.
checkData
(
1
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:01', '2020-02-01 00:00:01') every(1s) fill(next)"
)
tdSql
.
checkRows
(
3
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
checkData
(
1
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
1
,
1
,
True
)
tdSql
.
checkData
(
1
,
2
,
3
)
tdSql
.
checkData
(
2
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
2
,
1
,
True
)
tdSql
.
checkData
(
2
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:01') fill(next)"
)
tdSql
.
checkRows
(
3
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
checkData
(
1
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
1
,
1
,
True
)
tdSql
.
checkData
(
1
,
2
,
3
)
tdSql
.
checkData
(
2
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
2
,
1
,
True
)
tdSql
.
checkData
(
2
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:00', '2020-02-01 00:00:00') every(1s) fill(next)"
)
tdSql
.
checkRows
(
3
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
checkData
(
1
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
1
,
1
,
True
)
tdSql
.
checkData
(
1
,
2
,
3
)
tdSql
.
checkData
(
2
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
2
,
1
,
True
)
tdSql
.
checkData
(
2
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:00') fill(next)"
)
tdSql
.
checkRows
(
3
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
0
,
1
,
True
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
checkData
(
1
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
1
,
1
,
True
)
tdSql
.
checkData
(
1
,
2
,
3
)
tdSql
.
checkData
(
2
,
0
,
'2020-02-01 00:00:00.000'
)
tdSql
.
checkData
(
2
,
1
,
True
)
tdSql
.
checkData
(
2
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:00') fill(linear)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:01', '2020-02-01 00:00:01') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:01') fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:01.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
1
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:02', '2020-02-01 00:00:02') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:02') fill(linear)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:03', '2020-02-01 00:00:03') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:03') fill(linear)"
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:03.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
3
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:04', '2020-02-01 00:00:04') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:04') fill(linear)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:05', '2020-02-01 00:00:05') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:05') fill(linear)"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkData
(
0
,
0
,
'2020-02-01 00:00:05.000'
)
tdSql
.
checkData
(
0
,
1
,
False
)
tdSql
.
checkData
(
0
,
2
,
5
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:06', '2020-02-01 00:00:06') every(1s) fill(linear)"
)
tdSql
.
checkRows
(
0
)
tdSql
.
query
(
f
"select _irowts, _isfilled, interp(c0) from
{
dbname
}
.
{
stbname_single
}
partition by tbname range('2020-02-01 00:00:06') fill(linear)"
)
tdSql
.
checkRows
(
0
)
def
stop
(
self
):
def
stop
(
self
):
tdSql
.
close
()
tdSql
.
close
()
tdLog
.
success
(
f
"
{
__file__
}
successfully executed"
)
tdLog
.
success
(
f
"
{
__file__
}
successfully executed"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录