diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 9ec4a19950..26361b53ec 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -246,7 +246,8 @@ static bool checkComment(SAstCreateContext* pCxt, const SToken* pCommentToken, b return TSDB_CODE_SUCCESS == pCxt->errCode; } -static bool checkTsmaName(SAstCreateContext* pCxt, const SToken* pTsmaToken) { +static bool checkTsmaName(SAstCreateContext* pCxt, SToken* pTsmaToken) { + trimEscape(pTsmaToken); if (NULL == pTsmaToken) { pCxt->errCode = TSDB_CODE_PAR_SYNTAX_ERROR; } else if (pTsmaToken->n >= TSDB_TABLE_NAME_LEN - strlen(TSMA_RES_STB_POSTFIX)) { diff --git a/tests/system-test/2-query/tsma.py b/tests/system-test/2-query/tsma.py index 565f5560ff..fe4acf6721 100644 --- a/tests/system-test/2-query/tsma.py +++ b/tests/system-test/2-query/tsma.py @@ -9,7 +9,7 @@ from util.dnodes import * from util.common import * # from tmqCommon import * -ROUND = 2000 +ROUND = 1000 class TSMA: def __init__(self):