Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
46baeefe
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1184
Star
22015
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
46baeefe
编写于
6月 07, 2023
作者:
G
Ganlin Zhao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix test cases
上级
c612d945
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
98 addition
and
94 deletion
+98
-94
tests/system-test/2-query/interp.py
tests/system-test/2-query/interp.py
+98
-94
未找到文件。
tests/system-test/2-query/interp.py
浏览文件 @
46baeefe
...
@@ -1809,47 +1809,10 @@ class TDTestCase:
...
@@ -1809,47 +1809,10 @@ class TDTestCase:
tdSql
.
checkData
(
60
,
1
,
60
)
#
tdSql
.
checkData
(
60
,
1
,
60
)
#
# test fill value
# test fill value
tdSql
.
query
(
f
"select
interp(c0),interp(c1) from
{
dbname
}
.
{
tbname1
}
range('2020-02-02 00:00:00', '2020-02-02 00:01:00') every(1s) fill(value, 123
)"
)
tdSql
.
query
(
f
"select
_irowts, interp(c0), _irowts, interp(c1), _irowts from
{
dbname
}
.
{
tbname1
}
range('2020-02-02 00:00:00', '2020-02-02 00:01:00') every(1s) fill(value, 123, 456
)"
)
tdSql
.
checkRows
(
61
)
tdSql
.
checkRows
(
61
)
tdSql
.
checkCols
(
2
)
tdSql
.
checkCols
(
5
)
tdSql
.
checkData
(
0
,
0
,
0
)
#
tdSql
.
checkData
(
0
,
1
,
0
)
#
tdSql
.
checkData
(
1
,
0
,
123
)
tdSql
.
checkData
(
4
,
0
,
123
)
tdSql
.
checkData
(
5
,
0
,
None
)
#
tdSql
.
checkData
(
6
,
0
,
123
)
tdSql
.
checkData
(
9
,
0
,
123
)
tdSql
.
checkData
(
10
,
0
,
10
)
#
tdSql
.
checkData
(
11
,
0
,
123
)
tdSql
.
checkData
(
14
,
0
,
123
)
tdSql
.
checkData
(
15
,
0
,
None
)
#
tdSql
.
checkData
(
16
,
0
,
123
)
tdSql
.
checkData
(
19
,
0
,
123
)
tdSql
.
checkData
(
20
,
0
,
20
)
#
tdSql
.
checkData
(
21
,
0
,
123
)
tdSql
.
checkData
(
24
,
0
,
123
)
tdSql
.
checkData
(
25
,
0
,
None
)
#
tdSql
.
checkData
(
26
,
0
,
123
)
tdSql
.
checkData
(
29
,
0
,
123
)
tdSql
.
checkData
(
30
,
0
,
30
)
#
tdSql
.
checkData
(
31
,
0
,
123
)
tdSql
.
checkData
(
34
,
0
,
123
)
tdSql
.
checkData
(
35
,
0
,
35
)
#
tdSql
.
checkData
(
36
,
0
,
123
)
tdSql
.
checkData
(
39
,
0
,
123
)
tdSql
.
checkData
(
40
,
0
,
40
)
#
tdSql
.
checkData
(
41
,
0
,
123
)
tdSql
.
checkData
(
44
,
0
,
123
)
tdSql
.
checkData
(
45
,
0
,
None
)
#
tdSql
.
checkData
(
46
,
0
,
123
)
tdSql
.
checkData
(
49
,
0
,
123
)
tdSql
.
checkData
(
50
,
0
,
50
)
#
tdSql
.
checkData
(
51
,
0
,
123
)
tdSql
.
checkData
(
54
,
0
,
123
)
tdSql
.
checkData
(
55
,
0
,
None
)
#
tdSql
.
checkData
(
59
,
0
,
123
)
tdSql
.
checkData
(
60
,
0
,
55
)
#
tdSql
.
checkData
(
0
,
1
,
None
)
#
tdSql
.
checkData
(
1
,
1
,
123
)
tdSql
.
checkData
(
1
,
1
,
123
)
tdSql
.
checkData
(
4
,
1
,
123
)
tdSql
.
checkData
(
4
,
1
,
123
)
tdSql
.
checkData
(
5
,
1
,
None
)
#
tdSql
.
checkData
(
5
,
1
,
None
)
#
...
@@ -1861,7 +1824,7 @@ class TDTestCase:
...
@@ -1861,7 +1824,7 @@ class TDTestCase:
tdSql
.
checkData
(
15
,
1
,
None
)
#
tdSql
.
checkData
(
15
,
1
,
None
)
#
tdSql
.
checkData
(
16
,
1
,
123
)
tdSql
.
checkData
(
16
,
1
,
123
)
tdSql
.
checkData
(
19
,
1
,
123
)
tdSql
.
checkData
(
19
,
1
,
123
)
tdSql
.
checkData
(
20
,
1
,
None
)
#
tdSql
.
checkData
(
20
,
1
,
20
)
#
tdSql
.
checkData
(
21
,
1
,
123
)
tdSql
.
checkData
(
21
,
1
,
123
)
tdSql
.
checkData
(
24
,
1
,
123
)
tdSql
.
checkData
(
24
,
1
,
123
)
tdSql
.
checkData
(
25
,
1
,
None
)
#
tdSql
.
checkData
(
25
,
1
,
None
)
#
...
@@ -1870,64 +1833,64 @@ class TDTestCase:
...
@@ -1870,64 +1833,64 @@ class TDTestCase:
tdSql
.
checkData
(
30
,
1
,
30
)
#
tdSql
.
checkData
(
30
,
1
,
30
)
#
tdSql
.
checkData
(
31
,
1
,
123
)
tdSql
.
checkData
(
31
,
1
,
123
)
tdSql
.
checkData
(
34
,
1
,
123
)
tdSql
.
checkData
(
34
,
1
,
123
)
tdSql
.
checkData
(
35
,
1
,
None
)
#
tdSql
.
checkData
(
35
,
1
,
35
)
#
tdSql
.
checkData
(
36
,
1
,
123
)
tdSql
.
checkData
(
36
,
1
,
123
)
tdSql
.
checkData
(
39
,
1
,
123
)
tdSql
.
checkData
(
39
,
1
,
123
)
tdSql
.
checkData
(
40
,
1
,
40
)
#
tdSql
.
checkData
(
40
,
1
,
40
)
#
tdSql
.
checkData
(
41
,
1
,
123
)
tdSql
.
checkData
(
41
,
1
,
123
)
tdSql
.
checkData
(
44
,
1
,
123
)
tdSql
.
checkData
(
44
,
1
,
123
)
tdSql
.
checkData
(
45
,
1
,
45
)
#
tdSql
.
checkData
(
45
,
1
,
None
)
#
tdSql
.
checkData
(
46
,
1
,
123
)
tdSql
.
checkData
(
46
,
1
,
123
)
tdSql
.
checkData
(
49
,
1
,
123
)
tdSql
.
checkData
(
49
,
1
,
123
)
tdSql
.
checkData
(
50
,
1
,
None
)
#
tdSql
.
checkData
(
50
,
1
,
50
)
#
tdSql
.
checkData
(
51
,
1
,
123
)
tdSql
.
checkData
(
51
,
1
,
123
)
tdSql
.
checkData
(
54
,
1
,
123
)
tdSql
.
checkData
(
54
,
1
,
123
)
tdSql
.
checkData
(
55
,
1
,
None
)
#
tdSql
.
checkData
(
55
,
1
,
None
)
#
tdSql
.
checkData
(
56
,
1
,
123
)
tdSql
.
checkData
(
59
,
1
,
123
)
tdSql
.
checkData
(
59
,
1
,
123
)
tdSql
.
checkData
(
60
,
1
,
60
)
#
tdSql
.
checkData
(
60
,
1
,
55
)
#
tdSql
.
query
(
f
"select interp(c0),interp(c1) from
{
dbname
}
.
{
tbname1
}
range('2020-02-02 00:00:00', '2020-02-02 00:01:00') every(1s) fill(value, 123 + 123)"
)
tdSql
.
checkData
(
0
,
3
,
None
)
#
tdSql
.
checkData
(
1
,
3
,
456
)
tdSql
.
checkData
(
4
,
3
,
456
)
tdSql
.
checkData
(
5
,
3
,
None
)
#
tdSql
.
checkData
(
6
,
3
,
456
)
tdSql
.
checkData
(
9
,
3
,
456
)
tdSql
.
checkData
(
10
,
3
,
10
)
#
tdSql
.
checkData
(
11
,
3
,
456
)
tdSql
.
checkData
(
14
,
3
,
456
)
tdSql
.
checkData
(
15
,
3
,
None
)
#
tdSql
.
checkData
(
16
,
3
,
456
)
tdSql
.
checkData
(
19
,
3
,
456
)
tdSql
.
checkData
(
20
,
3
,
None
)
#
tdSql
.
checkData
(
21
,
3
,
456
)
tdSql
.
checkData
(
24
,
3
,
456
)
tdSql
.
checkData
(
25
,
3
,
None
)
#
tdSql
.
checkData
(
26
,
3
,
456
)
tdSql
.
checkData
(
29
,
3
,
456
)
tdSql
.
checkData
(
30
,
3
,
30
)
#
tdSql
.
checkData
(
31
,
3
,
456
)
tdSql
.
checkData
(
34
,
3
,
456
)
tdSql
.
checkData
(
35
,
3
,
None
)
#
tdSql
.
checkData
(
36
,
3
,
456
)
tdSql
.
checkData
(
39
,
3
,
456
)
tdSql
.
checkData
(
40
,
3
,
40
)
#
tdSql
.
checkData
(
41
,
3
,
456
)
tdSql
.
checkData
(
44
,
3
,
456
)
tdSql
.
checkData
(
45
,
3
,
45
)
#
tdSql
.
checkData
(
46
,
3
,
456
)
tdSql
.
checkData
(
49
,
3
,
456
)
tdSql
.
checkData
(
50
,
3
,
None
)
#
tdSql
.
checkData
(
51
,
3
,
456
)
tdSql
.
checkData
(
54
,
3
,
456
)
tdSql
.
checkData
(
55
,
3
,
None
)
#
tdSql
.
checkData
(
56
,
3
,
456
)
tdSql
.
checkData
(
59
,
3
,
456
)
tdSql
.
checkData
(
60
,
3
,
60
)
#
tdSql
.
query
(
f
"select _isfilled, interp(c0), _isfilled, interp(c1), _isfilled from
{
dbname
}
.
{
tbname1
}
range('2020-02-02 00:00:00', '2020-02-02 00:01:00') every(1s) fill(value, 123 + 123, 234 + 234)"
)
tdSql
.
checkRows
(
61
)
tdSql
.
checkRows
(
61
)
tdSql
.
checkCols
(
2
)
tdSql
.
checkCols
(
5
)
tdSql
.
checkData
(
0
,
0
,
0
)
#
tdSql
.
checkData
(
0
,
1
,
0
)
#
tdSql
.
checkData
(
1
,
0
,
246
)
tdSql
.
checkData
(
4
,
0
,
246
)
tdSql
.
checkData
(
5
,
0
,
None
)
#
tdSql
.
checkData
(
6
,
0
,
246
)
tdSql
.
checkData
(
9
,
0
,
246
)
tdSql
.
checkData
(
10
,
0
,
10
)
#
tdSql
.
checkData
(
11
,
0
,
246
)
tdSql
.
checkData
(
14
,
0
,
246
)
tdSql
.
checkData
(
15
,
0
,
None
)
#
tdSql
.
checkData
(
16
,
0
,
246
)
tdSql
.
checkData
(
19
,
0
,
246
)
tdSql
.
checkData
(
20
,
0
,
20
)
#
tdSql
.
checkData
(
21
,
0
,
246
)
tdSql
.
checkData
(
24
,
0
,
246
)
tdSql
.
checkData
(
25
,
0
,
None
)
#
tdSql
.
checkData
(
26
,
0
,
246
)
tdSql
.
checkData
(
29
,
0
,
246
)
tdSql
.
checkData
(
30
,
0
,
30
)
#
tdSql
.
checkData
(
31
,
0
,
246
)
tdSql
.
checkData
(
34
,
0
,
246
)
tdSql
.
checkData
(
35
,
0
,
35
)
#
tdSql
.
checkData
(
36
,
0
,
246
)
tdSql
.
checkData
(
39
,
0
,
246
)
tdSql
.
checkData
(
40
,
0
,
40
)
#
tdSql
.
checkData
(
41
,
0
,
246
)
tdSql
.
checkData
(
44
,
0
,
246
)
tdSql
.
checkData
(
45
,
0
,
None
)
#
tdSql
.
checkData
(
46
,
0
,
246
)
tdSql
.
checkData
(
49
,
0
,
246
)
tdSql
.
checkData
(
50
,
0
,
50
)
#
tdSql
.
checkData
(
51
,
0
,
246
)
tdSql
.
checkData
(
54
,
0
,
246
)
tdSql
.
checkData
(
55
,
0
,
None
)
#
tdSql
.
checkData
(
59
,
0
,
246
)
tdSql
.
checkData
(
60
,
0
,
55
)
#
tdSql
.
checkData
(
0
,
1
,
None
)
#
tdSql
.
checkData
(
1
,
1
,
246
)
tdSql
.
checkData
(
1
,
1
,
246
)
tdSql
.
checkData
(
4
,
1
,
246
)
tdSql
.
checkData
(
4
,
1
,
246
)
tdSql
.
checkData
(
5
,
1
,
None
)
#
tdSql
.
checkData
(
5
,
1
,
None
)
#
...
@@ -1939,7 +1902,7 @@ class TDTestCase:
...
@@ -1939,7 +1902,7 @@ class TDTestCase:
tdSql
.
checkData
(
15
,
1
,
None
)
#
tdSql
.
checkData
(
15
,
1
,
None
)
#
tdSql
.
checkData
(
16
,
1
,
246
)
tdSql
.
checkData
(
16
,
1
,
246
)
tdSql
.
checkData
(
19
,
1
,
246
)
tdSql
.
checkData
(
19
,
1
,
246
)
tdSql
.
checkData
(
20
,
1
,
None
)
#
tdSql
.
checkData
(
20
,
1
,
20
)
#
tdSql
.
checkData
(
21
,
1
,
246
)
tdSql
.
checkData
(
21
,
1
,
246
)
tdSql
.
checkData
(
24
,
1
,
246
)
tdSql
.
checkData
(
24
,
1
,
246
)
tdSql
.
checkData
(
25
,
1
,
None
)
#
tdSql
.
checkData
(
25
,
1
,
None
)
#
...
@@ -1948,22 +1911,59 @@ class TDTestCase:
...
@@ -1948,22 +1911,59 @@ class TDTestCase:
tdSql
.
checkData
(
30
,
1
,
30
)
#
tdSql
.
checkData
(
30
,
1
,
30
)
#
tdSql
.
checkData
(
31
,
1
,
246
)
tdSql
.
checkData
(
31
,
1
,
246
)
tdSql
.
checkData
(
34
,
1
,
246
)
tdSql
.
checkData
(
34
,
1
,
246
)
tdSql
.
checkData
(
35
,
1
,
None
)
#
tdSql
.
checkData
(
35
,
1
,
35
)
#
tdSql
.
checkData
(
36
,
1
,
246
)
tdSql
.
checkData
(
36
,
1
,
246
)
tdSql
.
checkData
(
39
,
1
,
246
)
tdSql
.
checkData
(
39
,
1
,
246
)
tdSql
.
checkData
(
40
,
1
,
40
)
#
tdSql
.
checkData
(
40
,
1
,
40
)
#
tdSql
.
checkData
(
41
,
1
,
246
)
tdSql
.
checkData
(
41
,
1
,
246
)
tdSql
.
checkData
(
44
,
1
,
246
)
tdSql
.
checkData
(
44
,
1
,
246
)
tdSql
.
checkData
(
45
,
1
,
45
)
#
tdSql
.
checkData
(
45
,
1
,
None
)
#
tdSql
.
checkData
(
46
,
1
,
246
)
tdSql
.
checkData
(
46
,
1
,
246
)
tdSql
.
checkData
(
49
,
1
,
246
)
tdSql
.
checkData
(
49
,
1
,
246
)
tdSql
.
checkData
(
50
,
1
,
None
)
#
tdSql
.
checkData
(
50
,
1
,
50
)
#
tdSql
.
checkData
(
51
,
1
,
246
)
tdSql
.
checkData
(
51
,
1
,
246
)
tdSql
.
checkData
(
54
,
1
,
246
)
tdSql
.
checkData
(
54
,
1
,
246
)
tdSql
.
checkData
(
55
,
1
,
None
)
#
tdSql
.
checkData
(
55
,
1
,
None
)
#
tdSql
.
checkData
(
56
,
1
,
246
)
tdSql
.
checkData
(
59
,
1
,
246
)
tdSql
.
checkData
(
59
,
1
,
246
)
tdSql
.
checkData
(
60
,
1
,
60
)
#
tdSql
.
checkData
(
60
,
1
,
55
)
#
tdSql
.
checkData
(
0
,
3
,
None
)
#
tdSql
.
checkData
(
1
,
3
,
468
)
tdSql
.
checkData
(
4
,
3
,
468
)
tdSql
.
checkData
(
5
,
3
,
None
)
#
tdSql
.
checkData
(
6
,
3
,
468
)
tdSql
.
checkData
(
9
,
3
,
468
)
tdSql
.
checkData
(
10
,
3
,
10
)
#
tdSql
.
checkData
(
11
,
3
,
468
)
tdSql
.
checkData
(
14
,
3
,
468
)
tdSql
.
checkData
(
15
,
3
,
None
)
#
tdSql
.
checkData
(
16
,
3
,
468
)
tdSql
.
checkData
(
19
,
3
,
468
)
tdSql
.
checkData
(
20
,
3
,
None
)
#
tdSql
.
checkData
(
21
,
3
,
468
)
tdSql
.
checkData
(
24
,
3
,
468
)
tdSql
.
checkData
(
25
,
3
,
None
)
#
tdSql
.
checkData
(
26
,
3
,
468
)
tdSql
.
checkData
(
29
,
3
,
468
)
tdSql
.
checkData
(
30
,
3
,
30
)
#
tdSql
.
checkData
(
31
,
3
,
468
)
tdSql
.
checkData
(
34
,
3
,
468
)
tdSql
.
checkData
(
35
,
3
,
None
)
#
tdSql
.
checkData
(
36
,
3
,
468
)
tdSql
.
checkData
(
39
,
3
,
468
)
tdSql
.
checkData
(
40
,
3
,
40
)
#
tdSql
.
checkData
(
41
,
3
,
468
)
tdSql
.
checkData
(
44
,
3
,
468
)
tdSql
.
checkData
(
45
,
3
,
45
)
#
tdSql
.
checkData
(
46
,
3
,
468
)
tdSql
.
checkData
(
49
,
3
,
468
)
tdSql
.
checkData
(
50
,
3
,
None
)
#
tdSql
.
checkData
(
51
,
3
,
468
)
tdSql
.
checkData
(
54
,
3
,
468
)
tdSql
.
checkData
(
55
,
3
,
None
)
#
tdSql
.
checkData
(
56
,
3
,
468
)
tdSql
.
checkData
(
59
,
3
,
468
)
tdSql
.
checkData
(
60
,
3
,
60
)
#
# test fill prev
# test fill prev
tdSql
.
query
(
f
"select interp(c0),interp(c1) from
{
dbname
}
.
{
tbname1
}
range('2020-02-02 00:00:00', '2020-02-02 00:01:00') every(1s) fill(prev)"
)
tdSql
.
query
(
f
"select interp(c0),interp(c1) from
{
dbname
}
.
{
tbname1
}
range('2020-02-02 00:00:00', '2020-02-02 00:01:00') every(1s) fill(prev)"
)
...
@@ -2138,7 +2138,7 @@ class TDTestCase:
...
@@ -2138,7 +2138,7 @@ class TDTestCase:
tdSql
.
checkData
(
3
,
i
,
None
)
tdSql
.
checkData
(
3
,
i
,
None
)
tdSql
.
checkData
(
4
,
i
,
None
)
tdSql
.
checkData
(
4
,
i
,
None
)
tdSql
.
query
(
f
"select interp(c0),interp(c1),interp(c2),interp(c3) from
{
dbname
}
.
{
tbname
}
range('2020-02-09 00:00:05', '2020-02-13 00:00:05') every(1d) fill(value, 1)"
)
tdSql
.
query
(
f
"select interp(c0),interp(c1),interp(c2),interp(c3) from
{
dbname
}
.
{
tbname
}
range('2020-02-09 00:00:05', '2020-02-13 00:00:05') every(1d) fill(value, 1
, 1, 1, 1
)"
)
tdSql
.
checkRows
(
5
)
tdSql
.
checkRows
(
5
)
tdSql
.
checkCols
(
4
)
tdSql
.
checkCols
(
4
)
...
@@ -2564,6 +2564,10 @@ class TDTestCase:
...
@@ -2564,6 +2564,10 @@ class TDTestCase:
tdSql
.
error
(
f
"select interp(c0) from
{
dbname
}
.
{
tbname
}
where _isfilled = true range('2020-02-10 00:00:05', '2020-02-15 00:00:05') every(1d) fill(null)"
)
tdSql
.
error
(
f
"select interp(c0) from
{
dbname
}
.
{
tbname
}
where _isfilled = true range('2020-02-10 00:00:05', '2020-02-15 00:00:05') every(1d) fill(null)"
)
tdSql
.
error
(
f
"select interp(c0) from
{
dbname
}
.
{
tbname
}
where _irowts > 0 range('2020-02-10 00:00:05', '2020-02-15 00:00:05') every(1d) fill(null)"
)
tdSql
.
error
(
f
"select interp(c0) from
{
dbname
}
.
{
tbname
}
where _irowts > 0 range('2020-02-10 00:00:05', '2020-02-15 00:00:05') every(1d) fill(null)"
)
# fill value number mismatch
tdSql
.
error
(
f
"select interp(c0) from
{
dbname
}
.
{
tbname
}
range('2020-02-10 00:00:05', '2020-02-15 00:00:05') every(1d) fill(value, 1, 2)"
)
tdSql
.
error
(
f
"select interp(c0), interp(c1) from
{
dbname
}
.
{
tbname
}
range('2020-02-10 00:00:05', '2020-02-15 00:00:05') every(1d) fill(value, 1)"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录