Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
2fb0af81
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看板
提交
2fb0af81
编写于
2月 24, 2022
作者:
X
Xiaoyu Wang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
merge 3.0
上级
dafe0dae
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
17 addition
and
17 deletion
+17
-17
source/libs/scalar/src/filter.c
source/libs/scalar/src/filter.c
+1
-1
source/libs/scalar/src/scalar.c
source/libs/scalar/src/scalar.c
+1
-1
source/libs/scalar/test/filter/filterTests.cpp
source/libs/scalar/test/filter/filterTests.cpp
+9
-9
source/libs/scalar/test/scalar/scalarTests.cpp
source/libs/scalar/test/scalar/scalarTests.cpp
+6
-6
未找到文件。
source/libs/scalar/src/filter.c
浏览文件 @
2fb0af81
...
...
@@ -3487,7 +3487,7 @@ EDealRes fltReviseRewriter(SNode** pNode, void* pContext) {
return
DEAL_RES_CONTINUE
;
}
if
(
QUERY_NODE_VALUE
==
nodeType
(
*
pNode
)
||
QUERY_NODE_NODE_LIST
==
nodeType
(
*
pNode
)
||
QUERY_NODE_COLUMN
_REF
==
nodeType
(
*
pNode
))
{
if
(
QUERY_NODE_VALUE
==
nodeType
(
*
pNode
)
||
QUERY_NODE_NODE_LIST
==
nodeType
(
*
pNode
)
||
QUERY_NODE_COLUMN
==
nodeType
(
*
pNode
))
{
return
DEAL_RES_CONTINUE
;
}
...
...
source/libs/scalar/src/scalar.c
浏览文件 @
2fb0af81
...
...
@@ -601,7 +601,7 @@ EDealRes sclWalkOperator(SNode* pNode, void* pContext) {
EDealRes
sclCalcWalker
(
SNode
*
pNode
,
void
*
pContext
)
{
if
(
QUERY_NODE_VALUE
==
nodeType
(
pNode
)
||
QUERY_NODE_NODE_LIST
==
nodeType
(
pNode
)
||
QUERY_NODE_COLUMN
_REF
==
nodeType
(
pNode
))
{
if
(
QUERY_NODE_VALUE
==
nodeType
(
pNode
)
||
QUERY_NODE_NODE_LIST
==
nodeType
(
pNode
)
||
QUERY_NODE_COLUMN
==
nodeType
(
pNode
))
{
return
DEAL_RES_CONTINUE
;
}
...
...
source/libs/scalar/test/filter/filterTests.cpp
浏览文件 @
2fb0af81
...
...
@@ -76,15 +76,15 @@ void flttMakeValueNode(SNode **pNode, int32_t dataType, void *value) {
}
void
flttMakeColRefNode
(
SNode
**
pNode
,
SSDataBlock
**
block
,
int32_t
dataType
,
int32_t
dataBytes
,
int32_t
rowNum
,
void
*
value
)
{
SNode
*
node
=
nodesMakeNode
(
QUERY_NODE_COLUMN
_REF
);
SColumn
RefNode
*
rnode
=
(
SColumnRef
Node
*
)
node
;
rnode
->
data
Type
.
type
=
dataType
;
rnode
->
data
Type
.
bytes
=
dataBytes
;
SNode
*
node
=
nodesMakeNode
(
QUERY_NODE_COLUMN
);
SColumn
Node
*
rnode
=
(
SColumn
Node
*
)
node
;
rnode
->
node
.
res
Type
.
type
=
dataType
;
rnode
->
node
.
res
Type
.
bytes
=
dataBytes
;
rnode
->
tupleId
=
0
;
if
(
NULL
==
block
)
{
rnode
->
slotId
=
2
;
rnode
->
col
umn
Id
=
55
;
rnode
->
colId
=
55
;
*
pNode
=
(
SNode
*
)
rnode
;
return
;
...
...
@@ -120,7 +120,7 @@ void flttMakeColRefNode(SNode **pNode, SSDataBlock **block, int32_t dataType, in
taosArrayPush
(
res
->
pDataBlock
,
&
idata
);
rnode
->
slotId
=
2
;
rnode
->
col
umn
Id
=
55
;
rnode
->
colId
=
55
;
*
block
=
res
;
}
else
{
...
...
@@ -137,7 +137,7 @@ void flttMakeColRefNode(SNode **pNode, SSDataBlock **block, int32_t dataType, in
res
->
info
.
numOfCols
++
;
rnode
->
slotId
=
idx
;
rnode
->
col
umn
Id
=
55
+
idx
;
rnode
->
colId
=
55
+
idx
;
}
*
pNode
=
(
SNode
*
)
rnode
;
...
...
@@ -259,7 +259,7 @@ TEST(columnTest, smallint_column_greater_double_value) {
ASSERT_EQ
(
code
,
0
);
SColumnDataAgg
stat
=
{
0
};
stat
.
colId
=
((
SColumn
RefNode
*
)
pLeft
)
->
column
Id
;
stat
.
colId
=
((
SColumn
Node
*
)
pLeft
)
->
col
Id
;
stat
.
max
=
10
;
stat
.
min
=
5
;
stat
.
numOfNull
=
0
;
...
...
@@ -310,7 +310,7 @@ TEST(columnTest, int_column_greater_smallint_value) {
ASSERT_EQ
(
code
,
0
);
SColumnDataAgg
stat
=
{
0
};
stat
.
colId
=
((
SColumn
RefNode
*
)
pLeft
)
->
column
Id
;
stat
.
colId
=
((
SColumn
Node
*
)
pLeft
)
->
col
Id
;
stat
.
max
=
10
;
stat
.
min
=
5
;
stat
.
numOfNull
=
0
;
...
...
source/libs/scalar/test/scalar/scalarTests.cpp
浏览文件 @
2fb0af81
...
...
@@ -75,10 +75,10 @@ void scltMakeValueNode(SNode **pNode, int32_t dataType, void *value) {
}
void
scltMakeColRefNode
(
SNode
**
pNode
,
SSDataBlock
**
block
,
int32_t
dataType
,
int32_t
dataBytes
,
int32_t
rowNum
,
void
*
value
)
{
SNode
*
node
=
nodesMakeNode
(
QUERY_NODE_COLUMN
_REF
);
SColumn
RefNode
*
rnode
=
(
SColumnRef
Node
*
)
node
;
rnode
->
data
Type
.
type
=
dataType
;
rnode
->
data
Type
.
bytes
=
dataBytes
;
SNode
*
node
=
nodesMakeNode
(
QUERY_NODE_COLUMN
);
SColumn
Node
*
rnode
=
(
SColumn
Node
*
)
node
;
rnode
->
node
.
res
Type
.
type
=
dataType
;
rnode
->
node
.
res
Type
.
bytes
=
dataBytes
;
rnode
->
tupleId
=
0
;
if
(
NULL
==
*
block
)
{
...
...
@@ -111,7 +111,7 @@ void scltMakeColRefNode(SNode **pNode, SSDataBlock **block, int32_t dataType, in
taosArrayPush
(
res
->
pDataBlock
,
&
idata
);
rnode
->
slotId
=
2
;
rnode
->
col
umn
Id
=
55
;
rnode
->
colId
=
55
;
*
block
=
res
;
}
else
{
...
...
@@ -126,7 +126,7 @@ void scltMakeColRefNode(SNode **pNode, SSDataBlock **block, int32_t dataType, in
taosArrayPush
(
res
->
pDataBlock
,
&
idata
);
rnode
->
slotId
=
idx
;
rnode
->
col
umn
Id
=
55
+
idx
;
rnode
->
colId
=
55
+
idx
;
}
*
pNode
=
(
SNode
*
)
rnode
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录