Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
18755a14
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
提交
18755a14
编写于
1月 18, 2020
作者:
H
hjxilinx
浏览文件
操作
浏览文件
下载
差异文件
merge from develop
上级
556fb54d
d566ed98
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
35 addition
and
21 deletion
+35
-21
documentation/webdocs/markdowndocs/Connector.md
documentation/webdocs/markdowndocs/Connector.md
+1
-1
documentation/webdocs/markdowndocs/connector-ch.md
documentation/webdocs/markdowndocs/connector-ch.md
+1
-1
packaging/tools/install.sh
packaging/tools/install.sh
+8
-7
packaging/tools/make_install.sh
packaging/tools/make_install.sh
+3
-3
src/client/src/tscSQLParser.c
src/client/src/tscSQLParser.c
+4
-4
src/kit/taosdump/taosdump.c
src/kit/taosdump/taosdump.c
+14
-3
src/system/detail/src/vnodeShell.c
src/system/detail/src/vnodeShell.c
+4
-2
未找到文件。
documentation/webdocs/markdowndocs/Connector.md
浏览文件 @
18755a14
...
...
@@ -583,7 +583,7 @@ data = c1.fetchall()
numOfRows
=
c1
.
rowcount
numOfCols
=
len
(
c1
.
description
)
for
irow
in
range
(
numOfRows
):
print
(
"Row%d: ts=%s, temperature=%d, humidity=%f"
%
(
irow
,
data
[
irow
][
0
],
data
[
irow
][
1
],
data
[
irow
][
2
])
print
(
"Row%d: ts=%s, temperature=%d, humidity=%f"
%
(
irow
,
data
[
irow
][
0
],
data
[
irow
][
1
],
data
[
irow
][
2
])
)
# use the cursor as an iterator to retrieve all returned results
c1
.
execute
(
'select * from tb'
)
...
...
documentation/webdocs/markdowndocs/connector-ch.md
浏览文件 @
18755a14
...
...
@@ -579,7 +579,7 @@ data = c1.fetchall()
numOfRows
=
c1
.
rowcount
numOfCols
=
len
(
c1
.
description
)
for
irow
in
range
(
numOfRows
):
print
(
"Row%d: ts=%s, temperature=%d, humidity=%f"
%
(
irow
,
data
[
irow
][
0
],
data
[
irow
][
1
],
data
[
irow
][
2
])
print
(
"Row%d: ts=%s, temperature=%d, humidity=%f"
%
(
irow
,
data
[
irow
][
0
],
data
[
irow
][
1
],
data
[
irow
][
2
])
)
# 直接使用cursor 循环拉取查询结果
c1
.
execute
(
'select * from tb'
)
...
...
packaging/tools/install.sh
浏览文件 @
18755a14
...
...
@@ -78,23 +78,24 @@ osinfo=$(cat /etc/os-release | grep "NAME" | cut -d '"' -f2)
#echo "osinfo: ${osinfo}"
os_type
=
0
if
echo
$osinfo
|
grep
-qwi
"ubuntu"
;
then
echo
"
t
his is ubuntu system"
echo
"
T
his is ubuntu system"
os_type
=
1
elif
echo
$osinfo
|
grep
-qwi
"debian"
;
then
echo
"
t
his is debian system"
echo
"
T
his is debian system"
os_type
=
1
elif
echo
$osinfo
|
grep
-qwi
"Kylin"
;
then
echo
"
t
his is Kylin system"
echo
"
T
his is Kylin system"
os_type
=
1
elif
echo
$osinfo
|
grep
-qwi
"centos"
;
then
echo
"
t
his is centos system"
echo
"
T
his is centos system"
os_type
=
2
elif
echo
$osinfo
|
grep
-qwi
"fedora"
;
then
echo
"
t
his is fedora system"
echo
"
T
his is fedora system"
os_type
=
2
else
echo
"this is other linux system"
os_type
=
0
echo
"
${
osinfo
}
: This is an officially unverified linux system, If there are any problems with the installation and operation, "
echo
"please feel free to contact taosdata.com for support."
os_type
=
1
fi
function
kill_taosd
()
{
...
...
packaging/tools/make_install.sh
浏览文件 @
18755a14
...
...
@@ -105,10 +105,10 @@ if [ "$osType" != "Darwin" ]; then
echo
"this is fedora system"
os_type
=
2
else
echo
"this is other linux system"
os_type
=
0
echo
"
${
osinfo
}
: This is an officially unverified linux system, If there are any problems with the installation and operation, "
echo
"please feel free to contact taosdata.com for support."
os_type
=
1
fi
fi
function
kill_taosd
()
{
...
...
src/client/src/tscSQLParser.c
浏览文件 @
18755a14
...
...
@@ -613,7 +613,7 @@ int32_t parseIntervalClause(SQueryInfo* pQueryInfo, SQuerySQL* pQuerySql) {
/*
* check invalid SQL:
* select count(tbname)/count(tag1)/count(tag2) from super_table_name interval(1d);
*/
*/
for
(
int32_t
i
=
0
;
i
<
pQueryInfo
->
fieldsInfo
.
numOfOutputCols
;
++
i
)
{
SSqlExpr
*
pExpr
=
tscSqlExprGet
(
pQueryInfo
,
i
);
if
(
pExpr
->
functionId
==
TSDB_FUNC_COUNT
&&
TSDB_COL_IS_TAG
(
pExpr
->
colInfo
.
flag
))
{
...
...
@@ -624,7 +624,7 @@ int32_t parseIntervalClause(SQueryInfo* pQueryInfo, SQuerySQL* pQuerySql) {
/*
* check invalid SQL:
* select tbname, tags_fields from super_table_name interval(1s)
*/
*/
if
(
tscQueryMetricTags
(
pQueryInfo
)
&&
pQueryInfo
->
nAggTimeInterval
>
0
)
{
return
invalidSqlErrMsg
(
pQueryInfo
->
msg
,
msg1
);
}
...
...
@@ -2888,8 +2888,8 @@ static int32_t validateSQLExpr(tSQLExpr* pExpr, SQueryInfo* pQueryInfo, SColumnL
return
TSDB_CODE_INVALID_SQL
;
}
// if column is timestamp, bool, binary, nchar, not support arithmetic, so return invalid sql
SMeterMeta
*
pMeterMeta
=
tscGetMeterMetaInfoFromQueryInfo
(
pQueryInfo
,
index
.
tableIndex
)
->
pMeterMeta
;
// if column is timestamp, bool, binary, nchar, not support arithmetic, so return invalid sql
SMeterMeta
*
pMeterMeta
=
tscGetMeterMetaInfoFromQueryInfo
(
pQueryInfo
,
index
.
tableIndex
)
->
pMeterMeta
;
SSchema
*
pSchema
=
tsGetSchema
(
pMeterMeta
)
+
index
.
columnIndex
;
if
((
pSchema
->
type
==
TSDB_DATA_TYPE_TIMESTAMP
)
||
(
pSchema
->
type
==
TSDB_DATA_TYPE_BOOL
)
||
(
pSchema
->
type
==
TSDB_DATA_TYPE_BINARY
)
||
(
pSchema
->
type
==
TSDB_DATA_TYPE_NCHAR
)){
...
...
src/kit/taosdump/taosdump.c
浏览文件 @
18755a14
...
...
@@ -797,7 +797,10 @@ int32_t taosDumpTable(char *table, char *metric, struct arguments *arguments, FI
if
(
metric
!=
NULL
&&
metric
[
0
]
!=
'\0'
)
{
// dump metric definition
count
=
taosGetTableDes
(
metric
,
tableDes
);
if
(
count
<
0
)
return
-
1
;
if
(
count
<
0
)
{
free
(
tableDes
);
return
-
1
;
}
taosDumpCreateTableClause
(
tableDes
,
count
,
arguments
,
fp
);
...
...
@@ -805,18 +808,26 @@ int32_t taosDumpTable(char *table, char *metric, struct arguments *arguments, FI
count
=
taosGetTableDes
(
table
,
tableDes
);
if
(
count
<
0
)
return
-
1
;
if
(
count
<
0
)
{
free
(
tableDes
);
return
-
1
;
}
taosDumpCreateMTableClause
(
tableDes
,
metric
,
count
,
arguments
,
fp
);
}
else
{
// dump table definition
count
=
taosGetTableDes
(
table
,
tableDes
);
if
(
count
<
0
)
return
-
1
;
if
(
count
<
0
)
{
free
(
tableDes
);
return
-
1
;
}
taosDumpCreateTableClause
(
tableDes
,
count
,
arguments
,
fp
);
}
free
(
tableDes
);
return
taosDumpTableData
(
fp
,
table
,
arguments
);
}
...
...
src/system/detail/src/vnodeShell.c
浏览文件 @
18755a14
...
...
@@ -215,7 +215,7 @@ void vnodeCloseShellVnode(int vnode) {
if
(
shellList
[
vnode
]
==
NULL
)
return
;
for
(
int
i
=
0
;
i
<
vnodeList
[
vnode
].
cfg
.
maxSessions
;
++
i
)
{
vnode
FreeQInfo
(
shellList
[
vnode
][
i
].
qhandle
,
tru
e
);
vnode
DecRefCount
(
shellList
[
vnode
][
i
].
qhandl
e
);
}
int32_t
*
v
=
malloc
(
sizeof
(
int32_t
));
...
...
@@ -369,8 +369,10 @@ int vnodeProcessQueryRequest(char *pMsg, int msgLen, SShellObj *pObj) {
if
(
pObj
->
qhandle
)
{
dTrace
(
"QInfo:%p %s free qhandle"
,
pObj
->
qhandle
,
__FUNCTION__
);
v
nodeFreeQInfo
(
pObj
->
qhandle
,
true
)
;
v
oid
*
qHandle
=
pObj
->
qhandle
;
pObj
->
qhandle
=
NULL
;
vnodeDecRefCount
(
qHandle
);
}
if
(
QUERY_IS_STABLE_QUERY
(
pQueryMsg
->
queryType
))
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录