Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
de5a7f46
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
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看板
提交
de5a7f46
编写于
11月 18, 2021
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/develop' into feature/d8
上级
22826284
f00cf118
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
44 addition
and
5 deletion
+44
-5
src/kit/taosdemo/src/demoJsonOpt.c
src/kit/taosdemo/src/demoJsonOpt.c
+1
-0
src/kit/taosdemo/src/demoUtil.c
src/kit/taosdemo/src/demoUtil.c
+2
-1
src/query/src/qFilter.c
src/query/src/qFilter.c
+0
-1
tests/pytest/insert/basic.py
tests/pytest/insert/basic.py
+5
-0
tests/pytest/query/query.py
tests/pytest/query/query.py
+36
-3
未找到文件。
src/kit/taosdemo/src/demoJsonOpt.c
浏览文件 @
de5a7f46
...
...
@@ -854,6 +854,7 @@ int getMetaFromInsertJsonFile(cJSON *root) {
g_Dbs
.
db
[
i
].
superTbls
[
j
].
iface
=
STMT_IFACE
;
}
else
if
(
0
==
strcasecmp
(
stbIface
->
valuestring
,
"sml"
))
{
g_Dbs
.
db
[
i
].
superTbls
[
j
].
iface
=
SML_IFACE
;
g_args
.
iface
=
SML_IFACE
;
}
else
{
errorPrint
(
"failed to read json, insert_mode %s not recognized
\n
"
,
...
...
src/kit/taosdemo/src/demoUtil.c
浏览文件 @
de5a7f46
...
...
@@ -204,13 +204,14 @@ int getChildNameOfSuperTableWithLimitAndOffset(TAOS *taos, char *dbName,
int64_t
childTblCount
=
(
limit
<
0
)
?
DEFAULT_CHILDTABLES
:
limit
;
int64_t
count
=
0
;
char
*
childTblName
=
*
childTblNameOfSuperTbl
;
char
*
pTblName
=
childTblName
;
if
(
childTblName
==
NULL
)
{
childTblName
=
(
char
*
)
calloc
(
1
,
childTblCount
*
TSDB_TABLE_NAME_LEN
);
if
(
childTblName
==
NULL
)
{
errorPrint
(
"%s"
,
"failed to allocate memory
\n
"
);
}
}
char
*
pTblName
=
childTblName
;
snprintf
(
limitBuf
,
100
,
" limit %"
PRId64
" offset %"
PRIu64
""
,
limit
,
offset
);
...
...
src/query/src/qFilter.c
浏览文件 @
de5a7f46
...
...
@@ -2354,7 +2354,6 @@ int32_t filterMergeGroups(SFilterInfo *info, SFilterGroupCtx** gRes, int32_t *gR
}
cStart
=
i
;
cEnd
=
i
;
cColNum
=
gRes
[
i
]
->
colNum
;
}
...
...
tests/pytest/insert/basic.py
浏览文件 @
de5a7f46
...
...
@@ -45,6 +45,11 @@ class TDTestCase:
# test case for https://jira.taosdata.com:18080/browse/TD-3716:
tdSql
.
error
(
"insert into tb(now, 1)"
)
# test case for TD-10717
tdSql
.
error
(
"insert into tb values(now,1),,(now+1s,1)"
)
tdSql
.
execute
(
"insert into tb values(now+2s,1),(now+3s,1),(now+4s,1)"
)
tdSql
.
query
(
"select * from tb"
)
tdSql
.
checkRows
(
insertRows
+
4
+
3
)
def
stop
(
self
):
tdSql
.
close
()
...
...
tests/pytest/query/query.py
浏览文件 @
de5a7f46
...
...
@@ -31,13 +31,42 @@ class TDTestCase:
tdSql
.
execute
(
"create database bug6387 "
)
tdSql
.
execute
(
"use bug6387 "
)
tdSql
.
execute
(
"create table test(ts timestamp, c1 int) tags(t1 int)"
)
prefix
=
"insert into "
sql
=
""
for
i
in
range
(
5000
):
sql
=
"insert into
t%d using test tags(1) values "
%
i
temp
=
"
t%d using test tags(1) values "
%
i
for
j
in
range
(
21
):
sql
=
sql
+
"(now+%ds,%d)"
%
(
j
,
j
)
tdSql
.
execute
(
sql
)
temp
=
temp
+
"(now+%ds,%d)"
%
(
j
,
j
)
sql
=
sql
+
temp
if
i
%
1000
==
0
:
tdSql
.
execute
(
prefix
+
sql
)
sql
=
""
tdSql
.
query
(
"select count(*) from test interval(1s) group by tbname"
)
tdSql
.
checkData
(
0
,
1
,
1
)
def
escape_ascii
(
self
):
tdSql
.
execute
(
'drop database if exists db'
)
tdSql
.
execute
(
'create database db'
)
tdSql
.
execute
(
'use db'
)
tdSql
.
execute
(
"create table car (ts timestamp, s int) tags(j int)"
)
for
i
in
range
(
32
,
127
):
if
i
==
96
:
continue
#`
sql
=
'create table `是否出现%s` using car tags(%d)'
%
(
chr
(
i
),
i
)
tdSql
.
execute
(
sql
)
for
i
in
range
(
32
,
65
):
sql
=
'select tbname from car where tbname like "是否出现\%s"'
%
chr
(
i
)
tdSql
.
query
(
sql
)
if
i
==
37
:
continue
# " `
tdSql
.
checkRows
(
1
)
for
i
in
range
(
91
,
97
):
sql
=
'select tbname from car where tbname like "是否出现\%s"'
%
chr
(
i
)
tdSql
.
query
(
sql
)
if
i
==
96
:
continue
# `
tdSql
.
checkRows
(
1
)
for
i
in
range
(
123
,
127
):
sql
=
'select tbname from car where tbname like "是否出现\%s"'
%
chr
(
i
)
tdSql
.
query
(
sql
)
tdSql
.
checkRows
(
1
)
def
run
(
self
):
tdSql
.
prepare
()
...
...
@@ -165,6 +194,10 @@ class TDTestCase:
tdSql
.
query
(
"show create table t1"
)
tdSql
.
checkRows
(
1
)
#TS-636
tdLog
.
info
(
"case for TS-636"
)
self
.
escape_ascii
()
def
stop
(
self
):
tdSql
.
close
()
tdLog
.
success
(
"%s successfully executed"
%
__file__
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录