Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
846d66dc
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
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看板
提交
846d66dc
编写于
8月 11, 2022
作者:
C
cpwu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add case
上级
f0c2f1a6
变更
4
展开全部
显示空白变更内容
内联
并排
Showing
4 changed file
with
553 addition
and
586 deletion
+553
-586
tests/system-test/2-query/json_tag.py
tests/system-test/2-query/json_tag.py
+296
-316
tests/system-test/2-query/json_tag_large_tables.py
tests/system-test/2-query/json_tag_large_tables.py
+11
-12
tests/system-test/2-query/last_row.py
tests/system-test/2-query/last_row.py
+242
-254
tests/system-test/fulltest.sh
tests/system-test/fulltest.sh
+4
-4
未找到文件。
tests/system-test/2-query/json_tag.py
浏览文件 @
846d66dc
此差异已折叠。
点击以展开。
tests/system-test/2-query/json_tag_large_tables.py
浏览文件 @
846d66dc
...
@@ -35,7 +35,7 @@ class TDTestCase:
...
@@ -35,7 +35,7 @@ class TDTestCase:
self
.
testcaseFilename
=
os
.
path
.
split
(
__file__
)[
-
1
]
self
.
testcaseFilename
=
os
.
path
.
split
(
__file__
)[
-
1
]
# os.system("rm -rf %s/%s.sql" % (self.testcasePath,self.testcaseFilename))
# os.system("rm -rf %s/%s.sql" % (self.testcasePath,self.testcaseFilename))
tdLog
.
debug
(
"start to execute %s"
%
__file__
)
tdLog
.
debug
(
"start to execute %s"
%
__file__
)
tdSql
.
init
(
conn
.
cursor
(),
Tru
e
)
tdSql
.
init
(
conn
.
cursor
(),
Fals
e
)
def
run
(
self
):
def
run
(
self
):
# tdSql.prepare()
# tdSql.prepare()
...
@@ -47,20 +47,20 @@ class TDTestCase:
...
@@ -47,20 +47,20 @@ class TDTestCase:
i
=
0
i
=
0
# add 100000 table
# add 100000 table
tdSql
.
execute
(
"create table if not exists jsons1(ts timestamp, dataInt int, dataBool bool, dataStr nchar(50), dataStrBin binary(150)) tags(jtag json)"
)
tdSql
.
execute
(
"create table if not exists jsons1(ts timestamp, dataInt int, dataBool bool, dataStr nchar(50), dataStrBin binary(150)) tags(jtag json)"
)
while
i
<=
10
0000
:
while
i
<=
100000
:
sql
=
"""insert into jsons1_{%d} using jsons1 tags('{"tag1":{%d}}') values(1591060618000, 1, false, 'json1', '你是') (1591060608000, 23, true, '等等', 'json')"""
%
(
i
,
i
)
sql
=
"""insert into jsons1_{%d} using jsons1 tags('{"tag1":{%d}}') values(1591060618000, 1, false, 'json1', '你是') (1591060608000, 23, true, '等等', 'json')"""
%
(
i
,
i
)
tdSql
.
execute
(
sql
)
tdSql
.
execute
(
sql
)
i
=
i
+
1
i
=
i
+
1
//
do
query
#
do query
i
=
0
i
=
0
while
i
<=
10
0000
:
while
i
<=
100000
:
sql
=
"""select count(*) from jsons1 where jtag->'tag1' = %d"""
%
(
i
)
sql
=
"""select count(*) from jsons1 where jtag->'tag1' = %d"""
%
(
i
)
tdSql
.
query
(
sql
)
tdSql
.
query
(
sql
)
if
1
!=
tdSql
.
getRows
():
if
1
!=
tdSql
.
getRows
():
print
(
"err: %s"
%
(
sql
))
print
(
"err: %s"
%
(
sql
))
while
i
<=
10000000
while
i
<=
10000000
:
sql
=
"""insert into jsons1_{%d} using jsons1 tags('{"tag1":{%d}}') values(1591060618000, 1, false, 'json1', '你是') (1591060608000, 23, true, '等等', 'json')"""
%
(
i
,
i
)
sql
=
"""insert into jsons1_{%d} using jsons1 tags('{"tag1":{%d}}') values(1591060618000, 1, false, 'json1', '你是') (1591060608000, 23, true, '等等', 'json')"""
%
(
i
,
i
)
tdSql
.
execute
(
sql
)
tdSql
.
execute
(
sql
)
i
=
i
+
1
i
=
i
+
1
...
@@ -704,4 +704,3 @@ class TDTestCase:
...
@@ -704,4 +704,3 @@ class TDTestCase:
tdCases
.
addWindows
(
__file__
,
TDTestCase
())
tdCases
.
addWindows
(
__file__
,
TDTestCase
())
tdCases
.
addLinux
(
__file__
,
TDTestCase
())
tdCases
.
addLinux
(
__file__
,
TDTestCase
())
tests/system-test/2-query/last_row.py
浏览文件 @
846d66dc
此差异已折叠。
点击以展开。
tests/system-test/fulltest.sh
浏览文件 @
846d66dc
...
@@ -110,13 +110,14 @@ python3 ./test.py -f 2-query/histogram.py
...
@@ -110,13 +110,14 @@ python3 ./test.py -f 2-query/histogram.py
python3 ./test.py
-f
2-query/histogram.py
-R
python3 ./test.py
-f
2-query/histogram.py
-R
python3 ./test.py
-f
2-query/hyperloglog.py
python3 ./test.py
-f
2-query/hyperloglog.py
python3 ./test.py
-f
2-query/hyperloglog.py
-R
python3 ./test.py
-f
2-query/hyperloglog.py
-R
python3 ./test.py
-f
2-query/interp.py
python3 ./test.py
-f
2-query/interp.py
-R
python3 ./test.py
-f
2-query/irate.py
python3 ./test.py
-f
2-query/irate.py
# python3 ./test.py -f 2-query/irate.py -R
# python3 ./test.py -f 2-query/irate.py -R
python3 ./test.py
-f
2-query/join.py
python3 ./test.py
-f
2-query/join.py
python3 ./test.py
-f
2-query/join.py
-R
python3 ./test.py
-f
2-query/join.py
-R
python3 ./test.py
-f
2-query/last_row.py
python3 ./test.py
-f
2-query/interp.py
python3 ./test.py
-f
2-query/last_row.py
-R
python3 ./test.py
-f
2-query/interp.py
-R
...
@@ -178,7 +179,6 @@ python3 ./test.py -f 2-query/ttl_comment.py
...
@@ -178,7 +179,6 @@ python3 ./test.py -f 2-query/ttl_comment.py
python3 ./test.py
-f
2-query/twa.py
python3 ./test.py
-f
2-query/twa.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
2-query/max_partition.py
python3 ./test.py
-f
2-query/last_row.py
python3 ./test.py
-f
2-query/tsbsQuery.py
python3 ./test.py
-f
2-query/tsbsQuery.py
python3 ./test.py
-f
6-cluster/5dnode1mnode.py
python3 ./test.py
-f
6-cluster/5dnode1mnode.py
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录