Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
5cfd2145
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看板
未验证
提交
5cfd2145
编写于
12月 09, 2019
作者:
S
slguan
提交者:
GitHub
12月 09, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' into feature/slguan
上级
5ef54236
5b8b9391
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
12 deletion
+12
-12
src/util/src/tcompression.c
src/util/src/tcompression.c
+8
-8
src/util/src/ttokenizer.c
src/util/src/ttokenizer.c
+4
-4
未找到文件。
src/util/src/tcompression.c
浏览文件 @
5cfd2145
...
...
@@ -355,16 +355,16 @@ int tsCompressINTImp(const char *const input, const int nelements, char *const o
tmp_bit
=
(
LONG_BYTES
*
BITS_PER_BYTE
)
-
BUILDIN_CLZL
(
zigzag_value
);
}
if
(
elems
+
1
<=
selector_to_elems
[(
uint8_t
)
selector
]
&&
elems
+
1
<=
selector_to_elems
[(
uint8_t
)
bit_to_selector
[(
uint8_t
)
tmp_bit
]
])
{
if
(
elems
+
1
<=
selector_to_elems
[(
int
)
selector
]
&&
elems
+
1
<=
selector_to_elems
[(
int
)(
bit_to_selector
[(
int
)
tmp_bit
])
])
{
// If can hold another one.
selector
=
selector
>
bit_to_selector
[(
uint8_t
)
tmp_bit
]
?
selector
:
bit_to_selector
[(
uint8_
t
)
tmp_bit
];
selector
=
selector
>
bit_to_selector
[(
int
)
tmp_bit
]
?
selector
:
bit_to_selector
[(
in
t
)
tmp_bit
];
elems
++
;
bit
=
bit_per_integer
[(
uint8_
t
)
selector
];
bit
=
bit_per_integer
[(
in
t
)
selector
];
}
else
{
// if cannot hold another one.
while
(
elems
<
selector_to_elems
[(
uint8_
t
)
selector
])
selector
++
;
elems
=
selector_to_elems
[(
uint8_
t
)
selector
];
bit
=
bit_per_integer
[(
uint8_
t
)
selector
];
while
(
elems
<
selector_to_elems
[(
in
t
)
selector
])
selector
++
;
elems
=
selector_to_elems
[(
in
t
)
selector
];
bit
=
bit_per_integer
[(
in
t
)
selector
];
break
;
}
prev_value_tmp
=
curr_value
;
...
...
@@ -455,8 +455,8 @@ int tsDecompressINTImp(const char *const input, const int nelements, char *const
memcpy
(
&
w
,
ip
,
LONG_BYTES
);
char
selector
=
(
char
)(
w
&
INT64MASK
(
4
));
// selector = 4
char
bit
=
bit_per_integer
[(
uint8_
t
)
selector
];
// bit = 3
int
elems
=
selector_to_elems
[(
uint8_
t
)
selector
];
char
bit
=
bit_per_integer
[(
in
t
)
selector
];
// bit = 3
int
elems
=
selector_to_elems
[(
in
t
)
selector
];
for
(
int
i
=
0
;
i
<
elems
;
i
++
)
{
uint64_t
zigzag_value
;
...
...
src/util/src/ttokenizer.c
浏览文件 @
5cfd2145
...
...
@@ -510,7 +510,7 @@ uint32_t tSQLGetToken(char* z, uint32_t* tokenType) {
if
((
z
[
i
]
==
'a'
||
z
[
i
]
==
's'
||
z
[
i
]
==
'm'
||
z
[
i
]
==
'h'
||
z
[
i
]
==
'd'
||
z
[
i
]
==
'n'
||
z
[
i
]
==
'y'
||
z
[
i
]
==
'w'
||
z
[
i
]
==
'A'
||
z
[
i
]
==
'S'
||
z
[
i
]
==
'M'
||
z
[
i
]
==
'H'
||
z
[
i
]
==
'D'
||
z
[
i
]
==
'N'
||
z
[
i
]
==
'Y'
||
z
[
i
]
==
'W'
)
&&
(
isIdChar
[(
uint8_t
)
z
[
i
+
1
]
]
==
0
))
{
(
isIdChar
[(
int
)(
z
[
i
+
1
])
]
==
0
))
{
*
tokenType
=
TK_VARIABLE
;
i
+=
1
;
return
i
;
...
...
@@ -551,7 +551,7 @@ uint32_t tSQLGetToken(char* z, uint32_t* tokenType) {
case
't'
:
case
'F'
:
case
'f'
:
{
for
(
i
=
1
;
((
z
[
i
]
&
0x80
)
==
0
)
&&
isIdChar
[(
uint8_t
)
z
[
i
]
];
i
++
)
{
for
(
i
=
1
;
((
z
[
i
]
&
0x80
)
==
0
)
&&
isIdChar
[(
int
)(
z
[
i
])
];
i
++
)
{
}
if
((
i
==
4
&&
strncasecmp
(
z
,
"true"
,
4
)
==
0
)
||
(
i
==
5
&&
strncasecmp
(
z
,
"false"
,
5
)
==
0
))
{
...
...
@@ -560,10 +560,10 @@ uint32_t tSQLGetToken(char* z, uint32_t* tokenType) {
}
}
default:
{
if
(((
*
z
&
0x80
)
!=
0
)
||
!
isIdChar
[(
uint8_
t
)(
*
z
)])
{
if
(((
*
z
&
0x80
)
!=
0
)
||
!
isIdChar
[(
in
t
)(
*
z
)])
{
break
;
}
for
(
i
=
1
;
((
z
[
i
]
&
0x80
)
==
0
)
&&
isIdChar
[(
uint8_t
)
z
[
i
]
];
i
++
)
{
for
(
i
=
1
;
((
z
[
i
]
&
0x80
)
==
0
)
&&
isIdChar
[(
int
)(
z
[
i
])
];
i
++
)
{
}
*
tokenType
=
tSQLKeywordCode
(
z
,
i
);
return
i
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录