Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
91378294
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1185
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看板
提交
91378294
编写于
12月 02, 2019
作者:
S
slguan
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' into feature/slguan
上级
0517feb1
4335a334
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
31 addition
and
10 deletion
+31
-10
documentation/webdocs/markdowndocs/TAOS SQL-ch.md
documentation/webdocs/markdowndocs/TAOS SQL-ch.md
+1
-0
packaging/release.sh
packaging/release.sh
+3
-3
packaging/tools/install.sh
packaging/tools/install.sh
+2
-2
packaging/tools/release_note
packaging/tools/release_note
+11
-0
src/inc/tsdb.h
src/inc/tsdb.h
+4
-1
src/rpc/src/tudp.c
src/rpc/src/tudp.c
+1
-0
src/system/detail/src/vnodeImport.c
src/system/detail/src/vnodeImport.c
+7
-2
src/util/src/version.c
src/util/src/version.c
+2
-2
未找到文件。
documentation/webdocs/markdowndocs/TAOS SQL-ch.md
浏览文件 @
91378294
...
@@ -18,6 +18,7 @@ TDengine提供类似SQL语法,用户可以在TDengine Shell中使用SQL语句
...
@@ -18,6 +18,7 @@ TDengine提供类似SQL语法,用户可以在TDengine Shell中使用SQL语句
-
插入记录时,如果时间戳为0,插入数据时使用服务器当前时间
-
插入记录时,如果时间戳为0,插入数据时使用服务器当前时间
-
Epoch Time: 时间戳也可以是一个长整数,表示从1970-01-01 08:00:00.000开始的毫秒数
-
Epoch Time: 时间戳也可以是一个长整数,表示从1970-01-01 08:00:00.000开始的毫秒数
-
时间可以加减,比如 now-2h,表明查询时刻向前推2个小时(最近2小时)。数字后面的时间单位:a(毫秒), s(秒), m(分), h(小时), d(天),w(周), n(月), y(年)。比如select
*
from t1 where ts > now-2w and ts <= now-1w, 表示查询两周前整整一周的数据
-
时间可以加减,比如 now-2h,表明查询时刻向前推2个小时(最近2小时)。数字后面的时间单位:a(毫秒), s(秒), m(分), h(小时), d(天),w(周), n(月), y(年)。比如select
*
from t1 where ts > now-2w and ts <= now-1w, 表示查询两周前整整一周的数据
-
TDengine暂不支持时间窗口按照自然年和自然月切分。Where条件中的时间窗口单位的换算关系如下:interval(1y) 等效于 interval(365d), interval(1n) 等效于 interval(30d), interval(1w) 等效于 interval(7d)
TDengine缺省的时间戳是毫秒精度,但通过修改配置参数enableMicrosecond就可支持微秒。
TDengine缺省的时间戳是毫秒精度,但通过修改配置参数enableMicrosecond就可支持微秒。
...
...
packaging/release.sh
浏览文件 @
91378294
...
@@ -123,11 +123,11 @@ cd ${compile_dir}
...
@@ -123,11 +123,11 @@ cd ${compile_dir}
# arm only support lite ver
# arm only support lite ver
if
[
-z
"
$armver
"
]
;
then
if
[
-z
"
$armver
"
]
;
then
cmake
${
top_dir
}
/
../
cmake ../
elif
[
"
$armver
"
==
"arm64"
]
;
then
elif
[
"
$armver
"
==
"arm64"
]
;
then
cmake
${
top_dir
}
/../
-DVERSION
=
lite
-DARMVER
=
arm64
cmake
../
-DARMVER
=
arm64
elif
[
"
$armver
"
==
"arm32"
]
;
then
elif
[
"
$armver
"
==
"arm32"
]
;
then
cmake
${
top_dir
}
/../
-DVERSION
=
lite
-DARMVER
=
arm32
cmake
../
-DARMVER
=
arm32
else
else
echo
"input parameter error!!!"
echo
"input parameter error!!!"
return
return
...
...
packaging/tools/install.sh
浏览文件 @
91378294
...
@@ -313,9 +313,9 @@ vercomp () {
...
@@ -313,9 +313,9 @@ vercomp () {
function
is_version_compatible
()
{
function
is_version_compatible
()
{
curr_version
=
$(
${
bin_dir
}
/taosd
-V
|
cut
-d
' '
-f
2
)
curr_version
=
$(
${
bin_dir
}
/taosd
-V
|
head
-1
|
cut
-d
' '
-f
2
)
min_compatible_version
=
$(
${
script_dir
}
/bin/taosd
-V
|
cut
-d
' '
-f
4
)
min_compatible_version
=
$(
${
script_dir
}
/bin/taosd
-V
|
head
-1
|
cut
-d
' '
-f
4
)
vercomp
$curr_version
$min_compatible_version
vercomp
$curr_version
$min_compatible_version
case
$?
in
case
$?
in
...
...
packaging/tools/release_note
浏览文件 @
91378294
taos-1.6.4.0 (Release on 2019-12-01)
Bug fixed:
1.Look for possible causes of file corruption and fix them
2.Encapsulate memory allocation functions to reduce the possibility of crashes
3.Increase Arm64 compilation options
4.Remove most of the warnings in the code
5.Provide a variety of connector usage documents
6.Network connection can be selected in udp and tcp
7.Allow the maximum number of Tags to be 32
8.Bugs reported by the user
taos-1.5.2.6 (Release on 2019-05-13)
taos-1.5.2.6 (Release on 2019-05-13)
Bug fixed:
Bug fixed:
- Nchar strings sometimes were wrongly truncated on Window
- Nchar strings sometimes were wrongly truncated on Window
...
...
src/inc/tsdb.h
浏览文件 @
91378294
...
@@ -147,7 +147,10 @@ extern "C" {
...
@@ -147,7 +147,10 @@ extern "C" {
#define TSDB_MAX_MGMT_IPS (TSDB_MAX_MPEERS+1)
#define TSDB_MAX_MGMT_IPS (TSDB_MAX_MPEERS+1)
#define TSDB_REPLICA_MIN_NUM 1
#define TSDB_REPLICA_MIN_NUM 1
#define TSDB_REPLICA_MAX_NUM 3
/*
* this is defined in CMakeList.txt
*/
//#define TSDB_REPLICA_MAX_NUM 3
#define TSDB_TBNAME_COLUMN_INDEX (-1)
#define TSDB_TBNAME_COLUMN_INDEX (-1)
#define TSDB_MULTI_METERMETA_MAX_NUM 100000 // maximum batch size allowed to load metermeta
#define TSDB_MULTI_METERMETA_MAX_NUM 100000 // maximum batch size allowed to load metermeta
...
...
src/rpc/src/tudp.c
浏览文件 @
91378294
...
@@ -377,6 +377,7 @@ void *taosTransferDataViaTcp(void *argv) {
...
@@ -377,6 +377,7 @@ void *taosTransferDataViaTcp(void *argv) {
pThead
->
tcp
=
1
;
pThead
->
tcp
=
1
;
pThead
->
msgType
=
(
char
)(
pHeader
->
msgType
-
1
);
pThead
->
msgType
=
(
char
)(
pHeader
->
msgType
-
1
);
pThead
->
msgLen
=
(
int32_t
)
htonl
(
sizeof
(
STaosHeader
));
pThead
->
msgLen
=
(
int32_t
)
htonl
(
sizeof
(
STaosHeader
));
uint32_t
id
=
pThead
->
sourceId
;
pThead
->
sourceId
=
pThead
->
destId
;
pThead
->
destId
=
id
;
pMonitor
->
ip
=
pTransfer
->
ip
;
pMonitor
->
ip
=
pTransfer
->
ip
;
pMonitor
->
port
=
pTransfer
->
port
;
pMonitor
->
port
=
pTransfer
->
port
;
pMonitor
->
pSet
=
pSet
;
pMonitor
->
pSet
=
pSet
;
...
...
src/system/detail/src/vnodeImport.c
浏览文件 @
91378294
...
@@ -466,8 +466,6 @@ static int vnodeLoadNeededBlockData(SMeterObj *pObj, SImportHandle *pHandle, int
...
@@ -466,8 +466,6 @@ static int vnodeLoadNeededBlockData(SMeterObj *pObj, SImportHandle *pHandle, int
SCompBlock
*
pBlock
=
pHandle
->
pBlocks
+
blockId
;
SCompBlock
*
pBlock
=
pHandle
->
pBlocks
+
blockId
;
*
code
=
TSDB_CODE_SUCCESS
;
*
code
=
TSDB_CODE_SUCCESS
;
assert
(
pBlock
->
sversion
==
pObj
->
sversion
);
SVnodeObj
*
pVnode
=
vnodeList
+
pObj
->
vnode
;
SVnodeObj
*
pVnode
=
vnodeList
+
pObj
->
vnode
;
int
dfd
=
pBlock
->
last
?
pVnode
->
lfd
:
pVnode
->
dfd
;
int
dfd
=
pBlock
->
last
?
pVnode
->
lfd
:
pVnode
->
dfd
;
...
@@ -989,6 +987,13 @@ static int vnodeMergeDataIntoFile(SImportInfo *pImport, const char *payload, int
...
@@ -989,6 +987,13 @@ static int vnodeMergeDataIntoFile(SImportInfo *pImport, const char *payload, int
}
}
}
}
int
aslot
=
MIN
(
blockIter
.
slot
,
importHandle
.
compInfo
.
numOfBlocks
-
1
);
int64_t
sversion
=
importHandle
.
pBlocks
[
aslot
].
sversion
;
if
(
sversion
!=
pObj
->
sversion
)
{
code
=
TSDB_CODE_OTHERS
;
goto
_error_merge
;
}
// Open the new .t file if not opened yet.
// Open the new .t file if not opened yet.
if
(
pVnode
->
nfd
<=
0
)
{
if
(
pVnode
->
nfd
<=
0
)
{
if
(
vnodeOpenTempFilesForImport
(
&
importHandle
,
pObj
,
fid
)
<
0
)
{
if
(
vnodeOpenTempFilesForImport
(
&
importHandle
,
pObj
,
fid
)
<
0
)
{
...
...
src/util/src/version.c
浏览文件 @
91378294
char
version
[
64
]
=
"1.6.4.0"
;
char
version
[
64
]
=
"1.6.4.0"
;
char
compatible_version
[
64
]
=
"1.6.1.0"
;
char
compatible_version
[
64
]
=
"1.6.1.0"
;
char
gitinfo
[
128
]
=
"
b6e308866e315483915f4c42a2717547ed0b9d36
"
;
char
gitinfo
[
128
]
=
"
6d27c11e3b23ae69366df366a6517853648c41f7
"
;
char
buildinfo
[
512
]
=
"Built by ubuntu at 2019-1
1-26 21:56
"
;
char
buildinfo
[
512
]
=
"Built by ubuntu at 2019-1
2-01 12:27
"
;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录