Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
edf8ea2f
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1185
Star
22015
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
edf8ea2f
编写于
7月 12, 2022
作者:
W
wenzhouwww
提交者:
GitHub
7月 12, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #14702 from taosdata/test/count_partition
test: add test case for count about partition by and interval
上级
c2748ffd
877ac548
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
373 addition
and
2 deletion
+373
-2
tests/system-test/2-query/count_partition.py
tests/system-test/2-query/count_partition.py
+176
-0
tests/system-test/2-query/max_partition.py
tests/system-test/2-query/max_partition.py
+189
-0
tests/system-test/fulltest.sh
tests/system-test/fulltest.sh
+8
-2
未找到文件。
tests/system-test/2-query/count_partition.py
0 → 100644
浏览文件 @
edf8ea2f
# author : wenzhouwww
from
util.log
import
*
from
util.sql
import
*
from
util.cases
import
*
class
TDTestCase
:
def
init
(
self
,
conn
,
logSql
):
tdLog
.
debug
(
"start to execute %s"
%
__file__
)
tdSql
.
init
(
conn
.
cursor
())
self
.
row_nums
=
10
self
.
tb_nums
=
10
self
.
ts
=
1537146000000
def
prepare_datas
(
self
,
stb_name
,
tb_nums
,
row_nums
):
tdSql
.
execute
(
" use db "
)
tdSql
.
execute
(
f
" create stable
{
stb_name
}
(ts timestamp , c1 int , c2 bigint , c3 float , c4 double , c5 smallint , c6 tinyint , c7 bool , c8 binary(36) , c9 nchar(36) , uc1 int unsigned,
\
uc2 bigint unsigned ,uc3 smallint unsigned , uc4 tinyint unsigned ) tags(t1 timestamp , t2 int , t3 bigint , t4 float , t5 double , t6 smallint , t7 tinyint , t8 bool , t9 binary(36)
\
, t10 nchar(36) , t11 int unsigned , t12 bigint unsigned ,t13 smallint unsigned , t14 tinyint unsigned ) "
)
for
i
in
range
(
tb_nums
):
tbname
=
f
"sub_
{
stb_name
}
_
{
i
}
"
ts
=
self
.
ts
+
i
*
10000
tdSql
.
execute
(
f
"create table
{
tbname
}
using
{
stb_name
}
tags (
{
ts
}
,
{
i
}
,
{
i
}
*10 ,
{
i
}
*1.0,
{
i
}
*1.0 , 1 , 2, 'true', 'binary_
{
i
}
' ,'nchar_
{
i
}
',
{
i
}
,
{
i
}
,10,20 )"
)
for
row
in
range
(
row_nums
):
ts
=
self
.
ts
+
row
*
1000
tdSql
.
execute
(
f
"insert into
{
tbname
}
values(
{
ts
}
,
{
row
}
,
{
row
}
,
{
row
}
,
{
row
}
, 1 , 2 , 'true' , 'binary_
{
row
}
' , 'nchar_
{
row
}
' ,
{
row
}
,
{
row
}
, 1 ,2 )"
)
for
null
in
range
(
5
):
ts
=
self
.
ts
+
row_nums
*
1000
+
null
*
1000
tdSql
.
execute
(
f
"insert into
{
tbname
}
values(
{
ts
}
, NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL )"
)
def
basic_query
(
self
):
tdSql
.
query
(
"select count(*) from stb"
)
tdSql
.
checkData
(
0
,
0
,(
self
.
row_nums
+
5
)
*
self
.
tb_nums
)
tdSql
.
query
(
"select count(c1) from stb"
)
tdSql
.
checkData
(
0
,
0
,(
self
.
row_nums
)
*
self
.
tb_nums
)
tdSql
.
query
(
" select tbname , count(*) from stb partition by tbname "
)
tdSql
.
checkRows
(
self
.
tb_nums
)
tdSql
.
query
(
" select count(c1) from stb group by t1 order by t1 "
)
tdSql
.
checkRows
(
self
.
tb_nums
)
tdSql
.
error
(
" select count(c1) from stb group by c1 order by t1 "
)
tdSql
.
error
(
" select count(t1) from stb group by c1 order by t1 "
)
tdSql
.
query
(
" select count(c1) from stb group by tbname order by tbname "
)
tdSql
.
checkRows
(
self
.
tb_nums
)
# bug need fix
# tdSql.query(" select count(t1) from stb group by t2 order by t2 ")
# tdSql.checkRows(self.tb_nums)
tdSql
.
query
(
" select count(c1) from stb group by c1 order by c1 "
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
query
(
" select c1 , count(c1) from stb group by c1 order by c1 "
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
query
(
"select count(c1) from stb group by abs(c1) order by abs(c1)"
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
query
(
"select abs(c1+c3), count(c1+c3) from stb group by abs(c1+c3) order by abs(c1+c3)"
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
query
(
"select count(c1+c3)+max(c2) ,abs(c1) from stb group by abs(c1) order by abs(c1)"
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
error
(
"select count(c1+c3)+max(c2) ,abs(c1) ,abs(t1) from stb group by abs(c1) order by abs(t1)+c2"
)
tdSql
.
error
(
"select count(c1+c3)+max(c2) ,abs(c1) from stb group by abs(c1) order by abs(c1)+c2"
)
tdSql
.
query
(
"select abs(c1+c3)+abs(c2) , count(c1+c3)+count(c2) from stb group by abs(c1+c3)+abs(c2) order by abs(c1+c3)+abs(c2)"
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
query
(
"select count(c1) , count(t2) from stb where abs(c1+t2)=1 partition by tbname"
)
tdSql
.
checkRows
(
2
)
tdSql
.
query
(
"select count(c1) from stb where abs(c1+t2)=1 partition by tbname"
)
tdSql
.
checkRows
(
2
)
tdSql
.
query
(
"select tbname , count(c1) from stb partition by tbname order by tbname"
)
tdSql
.
checkRows
(
self
.
tb_nums
)
tdSql
.
checkData
(
0
,
1
,
self
.
row_nums
)
tdSql
.
error
(
"select tbname , count(c1) from stb partition by t1 order by t1"
)
tdSql
.
error
(
"select tbname , count(t1) from stb partition by t1 order by t1"
)
tdSql
.
error
(
"select tbname , count(t1) from stb partition by t2 order by t2"
)
# # bug need fix
# tdSql.query("select t2 , count(t1) from stb partition by t2 order by t2")
# tdSql.checkRows(self.tb_nums)
tdSql
.
query
(
"select tbname , count(c1) from stb partition by tbname order by tbname"
)
tdSql
.
checkRows
(
self
.
tb_nums
)
tdSql
.
checkData
(
0
,
1
,
self
.
row_nums
)
tdSql
.
error
(
"select tbname , count(c1) from stb partition by t2 order by t2"
)
tdSql
.
query
(
"select c2, count(c1) from stb partition by c2 order by c2 desc"
)
tdSql
.
checkRows
(
self
.
tb_nums
+
1
)
tdSql
.
checkData
(
0
,
1
,
self
.
tb_nums
)
tdSql
.
error
(
"select tbname , count(c1) from stb partition by c1 order by c2"
)
tdSql
.
query
(
"select tbname , abs(t2) from stb partition by c2 order by t2"
)
tdSql
.
checkRows
(
self
.
tb_nums
*
(
self
.
row_nums
+
5
))
tdSql
.
query
(
"select count(c1) , count(t2) from stb partition by c2 "
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
checkData
(
0
,
1
,
self
.
row_nums
)
tdSql
.
query
(
"select count(c1) , count(t2) ,c2 from stb partition by c2 order by c2"
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
query
(
"select count(c1) , count(t1) ,max(c2) ,tbname from stb partition by tbname order by tbname"
)
tdSql
.
checkRows
(
self
.
tb_nums
)
tdSql
.
checkCols
(
4
)
tdSql
.
query
(
"select count(c1) , count(t2) ,t1 from stb partition by t1 order by t1"
)
tdSql
.
checkRows
(
self
.
tb_nums
)
tdSql
.
checkData
(
0
,
0
,
self
.
row_nums
)
# bug need fix
# tdSql.query("select count(c1) , count(t1) ,abs(c1) from stb partition by abs(c1) order by abs(c1)")
# tdSql.checkRows(self.row_nums+1)
tdSql
.
query
(
"select count(ceil(c2)) , count(floor(t2)) ,count(floor(c2)) from stb partition by abs(c2) order by abs(c2)"
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
query
(
"select count(ceil(c1-2)) , count(floor(t2+1)) ,max(c2-c1) from stb partition by abs(floor(c1)) order by abs(floor(c1))"
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
# interval
tdSql
.
query
(
"select count(c1) from stb interval(2s) sliding(1s)"
)
# bug need fix
tdSql
.
query
(
'select max(c1) from stb where ts>="2022-07-06 16:00:00.000 " and ts < "2022-07-06 17:00:00.000 " interval(50s) sliding(30s) fill(NULL)'
)
tdSql
.
query
(
" select tbname , count(c1) from stb partition by tbname interval(10s) slimit 5 soffset 1 "
)
tdSql
.
query
(
"select tbname , count(c1) from stb partition by tbname interval(10s)"
)
tdSql
.
query
(
"select tbname , count(c1) from sub_stb_1 partition by tbname interval(10s)"
)
tdSql
.
checkData
(
0
,
0
,
'sub_stb_1'
)
tdSql
.
checkData
(
0
,
1
,
self
.
row_nums
)
# tdSql.query(" select tbname , count(c1) from stb partition by tbname order by tbname slimit 5 soffset 0 ")
# tdSql.checkRows(5)
# tdSql.query(" select tbname , count(c1) from stb partition by tbname order by tbname slimit 5 soffset 1 ")
# tdSql.checkRows(5)
tdSql
.
query
(
" select tbname , count(c1) from sub_stb_1 partition by tbname interval(10s) sliding(5s) "
)
tdSql
.
query
(
f
'select max(c1) from stb where ts>=
{
self
.
ts
}
and ts <
{
self
.
ts
}
+10000 partition by tbname interval(50s) sliding(30s)'
)
tdSql
.
query
(
f
'select max(c1) from stb where ts>=
{
self
.
ts
}
and ts <
{
self
.
ts
}
+10000 interval(50s) sliding(30s)'
)
tdSql
.
query
(
f
'select tbname , count(c1) from stb where ts>=
{
self
.
ts
}
and ts <
{
self
.
ts
}
+10000 partition by tbname interval(50s) sliding(30s)'
)
def
run
(
self
):
tdSql
.
prepare
()
self
.
prepare_datas
(
"stb"
,
self
.
tb_nums
,
self
.
row_nums
)
self
.
basic_query
()
# # coverage case for taosd crash about bug fix
tdSql
.
query
(
" select sum(c1) from stb where t2+10 >1 "
)
tdSql
.
query
(
" select count(c1),count(t1) from stb where -t2<1 "
)
tdSql
.
query
(
" select tbname ,max(ceil(c1)) from stb group by tbname "
)
tdSql
.
query
(
" select avg(abs(c1)) , tbname from stb group by tbname "
)
tdSql
.
query
(
" select t1,c1 from stb where abs(t2+c1)=1 "
)
def
stop
(
self
):
tdSql
.
close
()
tdLog
.
success
(
"%s successfully executed"
%
__file__
)
tdCases
.
addWindows
(
__file__
,
TDTestCase
())
tdCases
.
addLinux
(
__file__
,
TDTestCase
())
\ No newline at end of file
tests/system-test/2-query/max_partition.py
0 → 100644
浏览文件 @
edf8ea2f
# author : wenzhouwww
from
util.log
import
*
from
util.sql
import
*
from
util.cases
import
*
class
TDTestCase
:
def
init
(
self
,
conn
,
logSql
):
tdLog
.
debug
(
"start to execute %s"
%
__file__
)
tdSql
.
init
(
conn
.
cursor
())
self
.
row_nums
=
10
self
.
tb_nums
=
10
self
.
ts
=
1537146000000
def
prepare_datas
(
self
,
stb_name
,
tb_nums
,
row_nums
):
tdSql
.
execute
(
" use db "
)
tdSql
.
execute
(
f
" create stable
{
stb_name
}
(ts timestamp , c1 int , c2 bigint , c3 float , c4 double , c5 smallint , c6 tinyint , c7 bool , c8 binary(36) , c9 nchar(36) , uc1 int unsigned,
\
uc2 bigint unsigned ,uc3 smallint unsigned , uc4 tinyint unsigned ) tags(t1 timestamp , t2 int , t3 bigint , t4 float , t5 double , t6 smallint , t7 tinyint , t8 bool , t9 binary(36)
\
, t10 nchar(36) , t11 int unsigned , t12 bigint unsigned ,t13 smallint unsigned , t14 tinyint unsigned ) "
)
for
i
in
range
(
tb_nums
):
tbname
=
f
"sub_
{
stb_name
}
_
{
i
}
"
ts
=
self
.
ts
+
i
*
10000
tdSql
.
execute
(
f
"create table
{
tbname
}
using
{
stb_name
}
tags (
{
ts
}
,
{
i
}
,
{
i
}
*10 ,
{
i
}
*1.0,
{
i
}
*1.0 , 1 , 2, 'true', 'binary_
{
i
}
' ,'nchar_
{
i
}
',
{
i
}
,
{
i
}
,10,20 )"
)
for
row
in
range
(
row_nums
):
ts
=
self
.
ts
+
row
*
1000
tdSql
.
execute
(
f
"insert into
{
tbname
}
values(
{
ts
}
,
{
row
}
,
{
row
}
,
{
row
}
,
{
row
}
, 1 , 2 , 'true' , 'binary_
{
row
}
' , 'nchar_
{
row
}
' ,
{
row
}
,
{
row
}
, 1 ,2 )"
)
for
null
in
range
(
5
):
ts
=
self
.
ts
+
row_nums
*
1000
+
null
*
1000
tdSql
.
execute
(
f
"insert into
{
tbname
}
values(
{
ts
}
, NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL )"
)
def
basic_query
(
self
):
tdSql
.
query
(
"select count(*) from stb"
)
tdSql
.
checkData
(
0
,
0
,(
self
.
row_nums
+
5
)
*
self
.
tb_nums
)
tdSql
.
query
(
"select max(c1) from stb"
)
tdSql
.
checkData
(
0
,
0
,(
self
.
row_nums
-
1
))
tdSql
.
query
(
" select tbname , max(c1) from stb partition by tbname "
)
tdSql
.
checkRows
(
self
.
tb_nums
)
tdSql
.
query
(
" select max(c1) from stb group by t1 order by t1 "
)
tdSql
.
checkRows
(
self
.
tb_nums
)
tdSql
.
query
(
" select max(c1) from stb group by c1 order by t1 "
)
tdSql
.
query
(
" select max(t2) from stb group by c1 order by t1 "
)
tdSql
.
query
(
" select max(c1) from stb group by tbname order by tbname "
)
tdSql
.
checkRows
(
self
.
tb_nums
)
# bug need fix
# tdSql.query(" select max(t1) from stb group by t2 order by t2 ")
# tdSql.checkRows(self.tb_nums)
tdSql
.
query
(
" select max(c1) from stb group by c1 order by c1 "
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
query
(
" select c1 , max(c1) from stb group by c1 order by c1 "
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
# support selective functions
tdSql
.
query
(
" select c1 ,c2 ,c3 , max(c1) ,c4 ,c5 ,t11 from stb group by c1 order by c1 desc "
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
query
(
" select c1, tbname , max(c1) ,c4 ,c5 ,t11 from stb group by c1 order by c1 desc "
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
# bug need fix
# tdSql.query(" select tbname , max(c1) from sub_stb_1 where c1 is null group by c1 order by c1 desc ")
# tdSql.checkRows(1)
# tdSql.checkData(0,0,"sub_stb_1")
tdSql
.
query
(
"select max(c1) ,c2 ,t2,tbname from stb group by abs(c1) order by abs(c1)"
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
query
(
"select abs(c1+c3), count(c1+c3) ,max(c1+t2) from stb group by abs(c1+c3) order by abs(c1+c3)"
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
query
(
"select max(c1+c3)+min(c2) ,abs(c1) from stb group by abs(c1) order by abs(c1)"
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
error
(
"select count(c1+c3)+max(c2) ,abs(c1) ,abs(t1) from stb group by abs(c1) order by abs(t1)+c2"
)
tdSql
.
error
(
"select count(c1+c3)+max(c2) ,abs(c1) from stb group by abs(c1) order by abs(c1)+c2"
)
tdSql
.
query
(
"select abs(c1+c3)+abs(c2) , count(c1+c3)+max(c2) from stb group by abs(c1+c3)+abs(c2) order by abs(c1+c3)+abs(c2)"
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
query
(
" select max(c1) , max(t2) from stb where abs(c1+t2)=1 partition by tbname "
)
tdSql
.
checkRows
(
2
)
tdSql
.
query
(
" select max(c1) from stb where abs(c1+t2)=1 partition by tbname "
)
tdSql
.
checkRows
(
2
)
tdSql
.
query
(
" select tbname , max(c1) from stb partition by tbname order by tbname "
)
tdSql
.
checkRows
(
self
.
tb_nums
)
tdSql
.
checkData
(
0
,
1
,
self
.
row_nums
-
1
)
tdSql
.
query
(
"select tbname , max(c2) from stb partition by t1 order by t1"
)
tdSql
.
query
(
"select tbname , max(t2) from stb partition by t1 order by t1"
)
tdSql
.
query
(
"select tbname , max(t2) from stb partition by t2 order by t2"
)
# # bug need fix
# tdSql.query("select t2 , max(t2) from stb partition by t2 order by t2")
# tdSql.checkRows(self.tb_nums)
tdSql
.
query
(
"select tbname , max(c1) from stb partition by tbname order by tbname"
)
tdSql
.
checkRows
(
self
.
tb_nums
)
tdSql
.
checkData
(
0
,
1
,
self
.
row_nums
-
1
)
tdSql
.
query
(
"select tbname , max(c1) from stb partition by t2 order by t2"
)
tdSql
.
query
(
"select c2, max(c1) from stb partition by c2 order by c2 desc"
)
tdSql
.
checkRows
(
self
.
tb_nums
+
1
)
tdSql
.
checkData
(
0
,
1
,
self
.
row_nums
-
1
)
tdSql
.
query
(
"select tbname , max(c1) from stb partition by c1 order by c2"
)
tdSql
.
query
(
"select tbname , abs(t2) from stb partition by c2 order by t2"
)
tdSql
.
checkRows
(
self
.
tb_nums
*
(
self
.
row_nums
+
5
))
tdSql
.
query
(
"select max(c1) , count(t2) from stb partition by c2 "
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
checkData
(
0
,
1
,
self
.
row_nums
)
tdSql
.
query
(
"select count(c1) , max(t2) ,c2 from stb partition by c2 order by c2"
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
query
(
"select count(c1) , count(t1) ,max(c2) ,tbname from stb partition by tbname order by tbname"
)
tdSql
.
checkRows
(
self
.
tb_nums
)
tdSql
.
checkCols
(
4
)
tdSql
.
query
(
"select count(c1) , max(t2) ,t1 from stb partition by t1 order by t1"
)
tdSql
.
checkRows
(
self
.
tb_nums
)
tdSql
.
checkData
(
0
,
0
,
self
.
row_nums
)
# bug need fix
# tdSql.query("select count(c1) , max(t1) ,abs(c1) from stb partition by abs(c1) order by abs(c1)")
# tdSql.checkRows(self.row_nums+1)
tdSql
.
query
(
"select max(ceil(c2)) , max(floor(t2)) ,max(floor(c2)) from stb partition by abs(c2) order by abs(c2)"
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
tdSql
.
query
(
"select max(ceil(c1-2)) , max(floor(t2+1)) ,max(c2-c1) from stb partition by abs(floor(c1)) order by abs(floor(c1))"
)
tdSql
.
checkRows
(
self
.
row_nums
+
1
)
# interval
tdSql
.
query
(
"select max(c1) from stb interval(2s) sliding(1s)"
)
# bug need fix
tdSql
.
query
(
'select max(c1) from stb where ts>="2022-07-06 16:00:00.000 " and ts < "2022-07-06 17:00:00.000 " interval(50s) sliding(30s) fill(NULL)'
)
tdSql
.
query
(
" select tbname , count(c1) from stb partition by tbname interval(10s) slimit 5 soffset 1 "
)
tdSql
.
query
(
"select tbname , max(c1) from stb partition by tbname interval(10s)"
)
tdSql
.
checkRows
(
self
.
row_nums
*
2
)
tdSql
.
query
(
"select tbname , count(c1) from sub_stb_1 partition by tbname interval(10s)"
)
tdSql
.
checkData
(
0
,
0
,
'sub_stb_1'
)
tdSql
.
checkData
(
0
,
1
,
self
.
row_nums
)
# bug need fix
# tdSql.query(" select tbname , max(c1) from stb partition by tbname order by tbname slimit 5 soffset 0 ")
# tdSql.checkRows(5)
# tdSql.query(" select tbname , max(c1) from stb partition by tbname order by tbname slimit 5 soffset 1 ")
# tdSql.checkRows(5)
tdSql
.
query
(
" select tbname , max(c1) from sub_stb_1 partition by tbname interval(10s) sliding(5s) "
)
tdSql
.
query
(
f
'select max(c1) from stb where ts>=
{
self
.
ts
}
and ts <
{
self
.
ts
}
+1000 interval(50s) sliding(30s)'
)
tdSql
.
query
(
f
'select tbname , max(c1) from stb where ts>=
{
self
.
ts
}
and ts <
{
self
.
ts
}
+1000 interval(50s) sliding(30s)'
)
def
run
(
self
):
tdSql
.
prepare
()
self
.
prepare_datas
(
"stb"
,
self
.
tb_nums
,
self
.
row_nums
)
self
.
basic_query
()
# # coverage case for taosd crash about bug fix
tdSql
.
query
(
" select sum(c1) from stb where t2+10 >1 "
)
tdSql
.
query
(
" select count(c1),count(t1) from stb where -t2<1 "
)
tdSql
.
query
(
" select tbname ,max(ceil(c1)) from stb group by tbname "
)
tdSql
.
query
(
" select avg(abs(c1)) , tbname from stb group by tbname "
)
tdSql
.
query
(
" select t1,c1 from stb where abs(t2+c1)=1 "
)
def
stop
(
self
):
tdSql
.
close
()
tdLog
.
success
(
"%s successfully executed"
%
__file__
)
tdCases
.
addWindows
(
__file__
,
TDTestCase
())
tdCases
.
addLinux
(
__file__
,
TDTestCase
())
\ No newline at end of file
tests/system-test/fulltest.sh
浏览文件 @
edf8ea2f
...
...
@@ -118,9 +118,11 @@ python3 ./test.py -f 2-query/distribute_agg_stddev.py
python3 ./test.py
-f
2-query/twa.py
python3 ./test.py
-f
2-query/irate.py
python3 ./test.py
-f
2-query/and_or_for_byte.py
python3 ./test.py
-f
2-query/count_partition.py
python3 ./test.py
-f
2-query/function_null.py
#python3 ./test.py -f 2-query/queryQnode.py
python3 ./test.py
-f
2-query/queryQnode.py
python3 ./test.py
-f
2-query/max_partition.py
python3 ./test.py
-f
6-cluster/5dnode1mnode.py
#BUG python3 ./test.py -f 6-cluster/5dnode2mnode.py -N 5 -M 3
...
...
@@ -263,6 +265,8 @@ python3 ./test.py -f 2-query/distribute_agg_stddev.py -Q 2
python3 ./test.py
-f
2-query/twa.py
-Q
2
python3 ./test.py
-f
2-query/irate.py
-Q
2
python3 ./test.py
-f
2-query/function_null.py
-Q
2
python3 ./test.py
-f
2-query/count_partition.py
-Q
2
python3 ./test.py
-f
2-query/max_partition.py
-Q
2
#------------querPolicy 3-----------
...
...
@@ -348,3 +352,5 @@ python3 ./test.py -f 2-query/distribute_agg_stddev.py -Q 3
python3 ./test.py
-f
2-query/twa.py
-Q
3
python3 ./test.py
-f
2-query/irate.py
-Q
3
python3 ./test.py
-f
2-query/function_null.py
-Q
3
python3 ./test.py
-f
2-query/count_partition.py
-Q
3
python3 ./test.py
-f
2-query/max_partition.py
-Q
3
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录