Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
c0f749dc
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看板
提交
c0f749dc
编写于
2月 18, 2022
作者:
wmmhello
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix interal cordump in unique
上级
1834c703
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
5 deletion
+6
-5
src/client/src/tscSQLParser.c
src/client/src/tscSQLParser.c
+4
-4
src/query/src/qExecutor.c
src/query/src/qExecutor.c
+1
-1
src/query/src/qUtil.c
src/query/src/qUtil.c
+1
-0
未找到文件。
src/client/src/tscSQLParser.c
浏览文件 @
c0f749dc
...
...
@@ -1113,7 +1113,7 @@ static int32_t addPrimaryTsColumnForTimeWindowQuery(SQueryInfo* pQueryInfo, SSql
static
int32_t
checkInvalidExprForTimeWindow
(
SSqlCmd
*
pCmd
,
SQueryInfo
*
pQueryInfo
)
{
const
char
*
msg1
=
"invalid query expression"
;
const
char
*
msg2
=
"top/bottom query does not support order by value in time window query"
;
//
const char* msg3 = "unique function does not supportted in time window query";
const
char
*
msg3
=
"unique function does not supportted in time window query"
;
/*
* invalid sql:
...
...
@@ -1126,7 +1126,7 @@ static int32_t checkInvalidExprForTimeWindow(SSqlCmd* pCmd, SQueryInfo* pQueryIn
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg1
);
}
if
(
pExpr
->
base
.
functionId
==
TSDB_FUNC_UNIQUE
)
{
//
return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), msg3);
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg3
);
}
}
...
...
@@ -8384,7 +8384,7 @@ int32_t doFunctionsCompatibleCheck(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, char*
const
char
*
msg4
=
"retrieve tags not compatible with group by or interval query"
;
const
char
*
msg5
=
"functions can not be mixed up"
;
const
char
*
msg6
=
"TWA/Diff/Derivative/Irate/CSum/MAvg/Elapsed only support group by tbname"
;
//
const char* msg7 = "unique function does not supportted in state window query";
const
char
*
msg7
=
"unique function does not supportted in state window query"
;
// only retrieve tags, group by is not supportted
if
(
tscQueryTags
(
pQueryInfo
))
{
...
...
@@ -8465,7 +8465,7 @@ int32_t doFunctionsCompatibleCheck(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, char*
}
if
(
pQueryInfo
->
stateWindow
&&
f
==
TSDB_FUNC_UNIQUE
){
//
return invalidOperationMsg(msg, msg7);
return
invalidOperationMsg
(
msg
,
msg7
);
}
if
(
IS_MULTIOUTPUT
(
aAggs
[
f
].
status
)
&&
f
!=
TSDB_FUNC_TOP
&&
f
!=
TSDB_FUNC_BOTTOM
&&
f
!=
TSDB_FUNC_DIFF
&&
...
...
src/query/src/qExecutor.c
浏览文件 @
c0f749dc
...
...
@@ -3189,7 +3189,7 @@ int32_t loadDataBlockOnDemand(SQueryRuntimeEnv* pRuntimeEnv, STableScanInfo* pTa
if
((
*
status
)
!=
BLK_DATA_ALL_NEEDED
)
{
// the pCtx[i] result is belonged to previous time window since the outputBuf has not been set yet,
// the filter result may be incorrect. So in case of interval query, we need to set the correct time output buffer
if
(
QUERY_IS_INTERVAL_QUERY
(
pQueryAttr
)
&&
(
!
pQueryAttr
->
pointInterpQuery
))
{
if
(
QUERY_IS_INTERVAL_QUERY
(
pQueryAttr
)
&&
(
!
pQueryAttr
->
pointInterpQuery
)
&&
(
!
pQueryAttr
->
uniqueQuery
)
)
{
SResultRow
*
pResult
=
NULL
;
bool
masterScan
=
IS_MASTER_SCAN
(
pRuntimeEnv
);
...
...
src/query/src/qUtil.c
浏览文件 @
c0f749dc
...
...
@@ -90,6 +90,7 @@ void cleanupResultRowInfo(SResultRowInfo *pResultRowInfo) {
tfree
(
pResultRowInfo
->
pResult
[
i
]
->
key
);
if
(
pResultRowInfo
->
pResult
[
i
]
->
uniqueHash
){
taosHashCleanup
(
pResultRowInfo
->
pResult
[
i
]
->
uniqueHash
);
pResultRowInfo
->
pResult
[
i
]
->
uniqueHash
=
NULL
;
}
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录