Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
fdfb7b58
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
fdfb7b58
编写于
4月 27, 2021
作者:
H
Haojun Liao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[td-225] merge develop
上级
dc95f7b8
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
55 addition
and
54 deletion
+55
-54
src/query/inc/qExecutor.h
src/query/inc/qExecutor.h
+1
-1
src/query/src/qExecutor.c
src/query/src/qExecutor.c
+2
-1
src/query/src/queryMain.c
src/query/src/queryMain.c
+1
-1
tests/script/general/parser/testSuite.sim
tests/script/general/parser/testSuite.sim
+51
-51
未找到文件。
src/query/inc/qExecutor.h
浏览文件 @
fdfb7b58
...
@@ -541,7 +541,7 @@ int32_t createIndirectQueryFuncExprFromMsg(SQueryTableMsg *pQueryMsg, int32_t nu
...
@@ -541,7 +541,7 @@ int32_t createIndirectQueryFuncExprFromMsg(SQueryTableMsg *pQueryMsg, int32_t nu
SSqlGroupbyExpr
*
createGroupbyExprFromMsg
(
SQueryTableMsg
*
pQueryMsg
,
SColIndex
*
pColIndex
,
int32_t
*
code
);
SSqlGroupbyExpr
*
createGroupbyExprFromMsg
(
SQueryTableMsg
*
pQueryMsg
,
SColIndex
*
pColIndex
,
int32_t
*
code
);
SQInfo
*
createQInfoImpl
(
SQueryTableMsg
*
pQueryMsg
,
SSqlGroupbyExpr
*
pGroupbyExpr
,
SExprInfo
*
pExprs
,
SQInfo
*
createQInfoImpl
(
SQueryTableMsg
*
pQueryMsg
,
SSqlGroupbyExpr
*
pGroupbyExpr
,
SExprInfo
*
pExprs
,
SExprInfo
*
pSecExprs
,
STableGroupInfo
*
pTableGroupInfo
,
SColumnInfo
*
pTagCols
,
bool
stableQuery
,
char
*
sql
,
uint64_t
*
qId
,
SUdfInfo
*
pUdfInfo
);
SExprInfo
*
pSecExprs
,
STableGroupInfo
*
pTableGroupInfo
,
SColumnInfo
*
pTagCols
,
bool
stableQuery
,
char
*
sql
,
uint64_t
*
qId
,
int32_t
vgId
,
SUdfInfo
*
pUdfInfo
);
int32_t
initQInfo
(
STsBufInfo
*
pTsBufInfo
,
void
*
tsdb
,
void
*
sourceOptr
,
SQInfo
*
pQInfo
,
SQueryParam
*
param
,
char
*
start
,
int32_t
initQInfo
(
STsBufInfo
*
pTsBufInfo
,
void
*
tsdb
,
void
*
sourceOptr
,
SQInfo
*
pQInfo
,
SQueryParam
*
param
,
char
*
start
,
int32_t
prevResultLen
,
void
*
merger
);
int32_t
prevResultLen
,
void
*
merger
);
...
...
src/query/src/qExecutor.c
浏览文件 @
fdfb7b58
...
@@ -7034,7 +7034,7 @@ FORCE_INLINE bool checkQIdEqual(void *qHandle, uint64_t qId) {
...
@@ -7034,7 +7034,7 @@ FORCE_INLINE bool checkQIdEqual(void *qHandle, uint64_t qId) {
SQInfo
*
createQInfoImpl
(
SQueryTableMsg
*
pQueryMsg
,
SSqlGroupbyExpr
*
pGroupbyExpr
,
SExprInfo
*
pExprs
,
SQInfo
*
createQInfoImpl
(
SQueryTableMsg
*
pQueryMsg
,
SSqlGroupbyExpr
*
pGroupbyExpr
,
SExprInfo
*
pExprs
,
SExprInfo
*
pSecExprs
,
STableGroupInfo
*
pTableGroupInfo
,
SColumnInfo
*
pTagCols
,
bool
stableQuery
,
SExprInfo
*
pSecExprs
,
STableGroupInfo
*
pTableGroupInfo
,
SColumnInfo
*
pTagCols
,
bool
stableQuery
,
char
*
sql
,
uint64_t
*
qId
,
SUdfInfo
*
pUdfInfo
)
{
char
*
sql
,
uint64_t
*
qId
,
int32_t
vgId
,
SUdfInfo
*
pUdfInfo
)
{
int16_t
numOfCols
=
pQueryMsg
->
numOfCols
;
int16_t
numOfCols
=
pQueryMsg
->
numOfCols
;
int16_t
numOfOutput
=
pQueryMsg
->
numOfOutput
;
int16_t
numOfOutput
=
pQueryMsg
->
numOfOutput
;
...
@@ -7070,6 +7070,7 @@ SQInfo* createQInfoImpl(SQueryTableMsg* pQueryMsg, SSqlGroupbyExpr* pGroupbyExpr
...
@@ -7070,6 +7070,7 @@ SQInfo* createQInfoImpl(SQueryTableMsg* pQueryMsg, SSqlGroupbyExpr* pGroupbyExpr
pQueryAttr
->
prjInfo
.
vgroupLimit
=
pQueryMsg
->
vgroupLimit
;
pQueryAttr
->
prjInfo
.
vgroupLimit
=
pQueryMsg
->
vgroupLimit
;
pQueryAttr
->
prjInfo
.
ts
=
(
pQueryMsg
->
order
==
TSDB_ORDER_ASC
)
?
INT64_MIN
:
INT64_MAX
;
pQueryAttr
->
prjInfo
.
ts
=
(
pQueryMsg
->
order
==
TSDB_ORDER_ASC
)
?
INT64_MIN
:
INT64_MAX
;
pQueryAttr
->
sw
=
pQueryMsg
->
sw
;
pQueryAttr
->
sw
=
pQueryMsg
->
sw
;
pQueryAttr
->
vgId
=
vgId
;
pQueryAttr
->
stableQuery
=
pQueryMsg
->
stableQuery
;
pQueryAttr
->
stableQuery
=
pQueryMsg
->
stableQuery
;
pQueryAttr
->
topBotQuery
=
pQueryMsg
->
topBotQuery
;
pQueryAttr
->
topBotQuery
=
pQueryMsg
->
topBotQuery
;
...
...
src/query/src/queryMain.c
浏览文件 @
fdfb7b58
...
@@ -162,7 +162,7 @@ int32_t qCreateQueryInfo(void* tsdb, int32_t vgId, SQueryTableMsg* pQueryMsg, qi
...
@@ -162,7 +162,7 @@ int32_t qCreateQueryInfo(void* tsdb, int32_t vgId, SQueryTableMsg* pQueryMsg, qi
assert
(
pQueryMsg
->
stableQuery
==
isSTableQuery
);
assert
(
pQueryMsg
->
stableQuery
==
isSTableQuery
);
(
*
pQInfo
)
=
createQInfoImpl
(
pQueryMsg
,
param
.
pGroupbyExpr
,
param
.
pExprs
,
param
.
pSecExprs
,
&
tableGroupInfo
,
(
*
pQInfo
)
=
createQInfoImpl
(
pQueryMsg
,
param
.
pGroupbyExpr
,
param
.
pExprs
,
param
.
pSecExprs
,
&
tableGroupInfo
,
param
.
pTagColumnInfo
,
vgId
,
param
.
sql
,
q
Id
,
param
.
pUdfInfo
);
param
.
pTagColumnInfo
,
isSTableQuery
,
param
.
sql
,
qId
,
vg
Id
,
param
.
pUdfInfo
);
if
((
*
pQInfo
)
==
NULL
)
{
if
((
*
pQInfo
)
==
NULL
)
{
code
=
TSDB_CODE_QRY_OUT_OF_MEMORY
;
code
=
TSDB_CODE_QRY_OUT_OF_MEMORY
;
...
...
tests/script/general/parser/testSuite.sim
浏览文件 @
fdfb7b58
#
run general/parser/alter.sim
run general/parser/alter.sim
#
run general/parser/alter1.sim
run general/parser/alter1.sim
#
run general/parser/alter_stable.sim
run general/parser/alter_stable.sim
#
run general/parser/auto_create_tb.sim
run general/parser/auto_create_tb.sim
#
run general/parser/auto_create_tb_drop_tb.sim
run general/parser/auto_create_tb_drop_tb.sim
#
run general/parser/col_arithmetic_operation.sim
run general/parser/col_arithmetic_operation.sim
#
run general/parser/columnValue.sim
run general/parser/columnValue.sim
#
run general/parser/commit.sim
run general/parser/commit.sim
#
run general/parser/create_db.sim
run general/parser/create_db.sim
#
run general/parser/create_mt.sim
run general/parser/create_mt.sim
#
run general/parser/create_tb.sim
run general/parser/create_tb.sim
#
run general/parser/dbtbnameValidate.sim
run general/parser/dbtbnameValidate.sim
#
run general/parser/fill.sim
run general/parser/fill.sim
#
run general/parser/fill_stb.sim
run general/parser/fill_stb.sim
#
#
run general/parser/fill_us.sim #
#run general/parser/fill_us.sim #
#
run general/parser/first_last.sim
run general/parser/first_last.sim
#
run general/parser/import_commit1.sim
run general/parser/import_commit1.sim
#
run general/parser/import_commit2.sim
run general/parser/import_commit2.sim
#
run general/parser/import_commit3.sim
run general/parser/import_commit3.sim
#
run general/parser/import_file.sim
run general/parser/import_file.sim
#
run general/parser/insert_tb.sim
run general/parser/insert_tb.sim
#
run general/parser/tags_dynamically_specifiy.sim
run general/parser/tags_dynamically_specifiy.sim
#
run general/parser/interp.sim
run general/parser/interp.sim
#
run general/parser/lastrow.sim
run general/parser/lastrow.sim
#
run general/parser/limit.sim
run general/parser/limit.sim
#
run general/parser/limit1.sim
run general/parser/limit1.sim
#
run general/parser/limit1_tblocks100.sim
run general/parser/limit1_tblocks100.sim
#
run general/parser/limit2.sim
run general/parser/limit2.sim
#
run general/parser/mixed_blocks.sim
run general/parser/mixed_blocks.sim
#
run general/parser/nchar.sim
run general/parser/nchar.sim
#
run general/parser/null_char.sim
run general/parser/null_char.sim
#
run general/parser/selectResNum.sim
run general/parser/selectResNum.sim
#
run general/parser/select_across_vnodes.sim
run general/parser/select_across_vnodes.sim
#
run general/parser/select_from_cache_disk.sim
run general/parser/select_from_cache_disk.sim
#
run general/parser/set_tag_vals.sim
run general/parser/set_tag_vals.sim
#
run general/parser/single_row_in_tb.sim
run general/parser/single_row_in_tb.sim
#
run general/parser/slimit.sim
run general/parser/slimit.sim
#
run general/parser/slimit1.sim
run general/parser/slimit1.sim
#
run general/parser/slimit_alter_tags.sim
run general/parser/slimit_alter_tags.sim
#
run general/parser/tbnameIn.sim
run general/parser/tbnameIn.sim
#
run general/parser/join.sim
run general/parser/join.sim
#
run general/parser/join_multivnode.sim
run general/parser/join_multivnode.sim
#
run general/parser/join_manyblocks.sim
run general/parser/join_manyblocks.sim
#
run general/parser/projection_limit_offset.sim
run general/parser/projection_limit_offset.sim
#
run general/parser/select_with_tags.sim
run general/parser/select_with_tags.sim
#
run general/parser/select_distinct_tag.sim
run general/parser/select_distinct_tag.sim
#
run general/parser/groupby.sim
run general/parser/groupby.sim
#
run general/parser/tags_filter.sim
run general/parser/tags_filter.sim
#
run general/parser/topbot.sim
run general/parser/topbot.sim
#
run general/parser/union.sim
run general/parser/union.sim
#
run general/parser/constCol.sim
run general/parser/constCol.sim
run general/parser/where.sim
run general/parser/where.sim
run general/parser/timestamp.sim
run general/parser/timestamp.sim
run general/parser/sliding.sim
run general/parser/sliding.sim
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录