Skip to content

Commit 84936e6

Browse files
committed
feat: [TS-6100] Forbid _qstart/_qend/_qduration in stream calc query.
1 parent 08d221a commit 84936e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/libs/parser/src/parTranslater.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3642,6 +3642,10 @@ static int32_t rewriteClientPseudoColumnFunc(STranslateContext* pCxt, SNode** pN
36423642
pCxt->currClause <= SQL_CLAUSE_WHERE) {
36433643
return generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_PAR_NOT_ALLOWED_FUNC, "Illegal pseudo column");
36443644
}
3645+
if (pCxt->createStreamCalc) {
3646+
return generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_PAR_STREAM_NOT_ALLOWED_FUNC,
3647+
"%s is not support in stream calc query", ((SFunctionNode*)*pNode)->functionName);
3648+
}
36453649
switch (((SFunctionNode*)*pNode)->funcType) {
36463650
case FUNCTION_TYPE_QSTART:
36473651
return rewriteQstartFunc(pCxt, pNode);

0 commit comments

Comments
 (0)