From 91d6734b342dac68b908258e5b76080c76965f40 Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Wed, 16 Aug 2023 14:28:39 +0800 Subject: [PATCH] fix: join condition push down issue --- include/common/ttokendef.h | 163 +- include/libs/nodes/plannodes.h | 2 + include/libs/nodes/querynodes.h | 1 - source/libs/executor/inc/executorInt.h | 2 +- .../libs/executor/src/dynqueryctrloperator.c | 2 +- source/libs/executor/src/groupcacheoperator.c | 42 +- source/libs/executor/src/mergejoinoperator.c | 12 +- source/libs/nodes/src/nodesCloneFuncs.c | 23 + source/libs/nodes/src/nodesUtilFuncs.c | 2 +- source/libs/parser/inc/parAst.h | 2 +- source/libs/parser/inc/sql.y | 4 +- source/libs/parser/src/parAstCreater.c | 120 +- source/libs/parser/src/parTokenizer.c | 9 +- source/libs/parser/src/sql.c | 5325 ++++++++--------- source/libs/planner/inc/planInt.h | 3 + source/libs/planner/src/planLogicCreater.c | 40 +- source/libs/planner/src/planOptimizer.c | 67 +- source/libs/planner/src/planUtil.c | 40 + tests/script/tsim/parser/join_multitables.sim | 26 +- 19 files changed, 3047 insertions(+), 2838 deletions(-) diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 9c89d122d7..ac5200d604 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -276,87 +276,85 @@ #define TK_JOIN 258 #define TK_INNER 259 #define TK_SELECT 260 -#define TK_NO_BATCH_SCAN 261 -#define TK_BATCH_SCAN 262 -#define TK_NK_HINT_BEGIN 263 -#define TK_NK_HINT_END 264 -#define TK_DISTINCT 265 -#define TK_WHERE 266 -#define TK_PARTITION 267 -#define TK_BY 268 -#define TK_SESSION 269 -#define TK_STATE_WINDOW 270 -#define TK_EVENT_WINDOW 271 -#define TK_SLIDING 272 -#define TK_FILL 273 -#define TK_VALUE 274 -#define TK_VALUE_F 275 -#define TK_NONE 276 -#define TK_PREV 277 -#define TK_NULL_F 278 -#define TK_LINEAR 279 -#define TK_NEXT 280 -#define TK_HAVING 281 -#define TK_RANGE 282 -#define TK_EVERY 283 -#define TK_ORDER 284 -#define TK_SLIMIT 285 -#define TK_SOFFSET 286 -#define TK_LIMIT 287 -#define TK_OFFSET 288 -#define TK_ASC 289 -#define TK_NULLS 290 -#define TK_ABORT 291 -#define TK_AFTER 292 -#define TK_ATTACH 293 -#define TK_BEFORE 294 -#define TK_BEGIN 295 -#define TK_BITAND 296 -#define TK_BITNOT 297 -#define TK_BITOR 298 -#define TK_BLOCKS 299 -#define TK_CHANGE 300 -#define TK_COMMA 301 -#define TK_CONCAT 302 -#define TK_CONFLICT 303 -#define TK_COPY 304 -#define TK_DEFERRED 305 -#define TK_DELIMITERS 306 -#define TK_DETACH 307 -#define TK_DIVIDE 308 -#define TK_DOT 309 -#define TK_EACH 310 -#define TK_FAIL 311 -#define TK_FILE 312 -#define TK_FOR 313 -#define TK_GLOB 314 -#define TK_ID 315 -#define TK_IMMEDIATE 316 -#define TK_IMPORT 317 -#define TK_INITIALLY 318 -#define TK_INSTEAD 319 -#define TK_ISNULL 320 -#define TK_KEY 321 -#define TK_MODULES 322 -#define TK_NK_BITNOT 323 -#define TK_NK_SEMI 324 -#define TK_NOTNULL 325 -#define TK_OF 326 -#define TK_PLUS 327 -#define TK_PRIVILEGE 328 -#define TK_RAISE 329 -#define TK_RESTRICT 330 -#define TK_ROW 331 -#define TK_SEMI 332 -#define TK_STAR 333 -#define TK_STATEMENT 334 -#define TK_STRICT 335 -#define TK_STRING 336 -#define TK_TIMES 337 -#define TK_VALUES 338 -#define TK_VARIABLE 339 -#define TK_VIEW 340 -#define TK_WAL 341 +#define TK_NK_HINT 261 +#define TK_DISTINCT 262 +#define TK_WHERE 263 +#define TK_PARTITION 264 +#define TK_BY 265 +#define TK_SESSION 266 +#define TK_STATE_WINDOW 267 +#define TK_EVENT_WINDOW 268 +#define TK_SLIDING 269 +#define TK_FILL 270 +#define TK_VALUE 271 +#define TK_VALUE_F 272 +#define TK_NONE 273 +#define TK_PREV 274 +#define TK_NULL_F 275 +#define TK_LINEAR 276 +#define TK_NEXT 277 +#define TK_HAVING 278 +#define TK_RANGE 279 +#define TK_EVERY 280 +#define TK_ORDER 281 +#define TK_SLIMIT 282 +#define TK_SOFFSET 283 +#define TK_LIMIT 284 +#define TK_OFFSET 285 +#define TK_ASC 286 +#define TK_NULLS 287 +#define TK_ABORT 288 +#define TK_AFTER 289 +#define TK_ATTACH 290 +#define TK_BEFORE 291 +#define TK_BEGIN 292 +#define TK_BITAND 293 +#define TK_BITNOT 294 +#define TK_BITOR 295 +#define TK_BLOCKS 296 +#define TK_CHANGE 297 +#define TK_COMMA 298 +#define TK_CONCAT 299 +#define TK_CONFLICT 300 +#define TK_COPY 301 +#define TK_DEFERRED 302 +#define TK_DELIMITERS 303 +#define TK_DETACH 304 +#define TK_DIVIDE 305 +#define TK_DOT 306 +#define TK_EACH 307 +#define TK_FAIL 308 +#define TK_FILE 309 +#define TK_FOR 310 +#define TK_GLOB 311 +#define TK_ID 312 +#define TK_IMMEDIATE 313 +#define TK_IMPORT 314 +#define TK_INITIALLY 315 +#define TK_INSTEAD 316 +#define TK_ISNULL 317 +#define TK_KEY 318 +#define TK_MODULES 319 +#define TK_NK_BITNOT 320 +#define TK_NK_SEMI 321 +#define TK_NOTNULL 322 +#define TK_OF 323 +#define TK_PLUS 324 +#define TK_PRIVILEGE 325 +#define TK_RAISE 326 +#define TK_RESTRICT 327 +#define TK_ROW 328 +#define TK_SEMI 329 +#define TK_STAR 330 +#define TK_STATEMENT 331 +#define TK_STRICT 332 +#define TK_STRING 333 +#define TK_TIMES 334 +#define TK_VALUES 335 +#define TK_VARIABLE 336 +#define TK_VIEW 337 +#define TK_WAL 338 + #define TK_NK_SPACE 600 @@ -365,6 +363,9 @@ #define TK_NK_HEX 603 // hex number 0x123 #define TK_NK_OCT 604 // oct number #define TK_NK_BIN 605 // bin format data 0b111 +#define TK_BATCH_SCAN 606 +#define TK_NO_BATCH_SCAN 607 + #define TK_NK_NIL 65535 diff --git a/include/libs/nodes/plannodes.h b/include/libs/nodes/plannodes.h index d4058767bb..a5b17539e6 100644 --- a/include/libs/nodes/plannodes.h +++ b/include/libs/nodes/plannodes.h @@ -43,10 +43,12 @@ typedef enum EGroupAction { typedef struct SLogicNode { ENodeType type; bool dynamicOp; + bool stmtRoot; SNodeList* pTargets; // SColumnNode SNode* pConditions; SNodeList* pChildren; struct SLogicNode* pParent; + SNodeList* pHint; int32_t optimizedFlag; uint8_t precision; SNode* pLimit; diff --git a/include/libs/nodes/querynodes.h b/include/libs/nodes/querynodes.h index 48224e540b..3f6dbf4a2a 100644 --- a/include/libs/nodes/querynodes.h +++ b/include/libs/nodes/querynodes.h @@ -124,7 +124,6 @@ typedef enum EHintOption { typedef struct SHintNode { ENodeType type; EHintOption option; - char* literal; void* value; } SHintNode; diff --git a/source/libs/executor/inc/executorInt.h b/source/libs/executor/inc/executorInt.h index 85d64e0716..08b0392d1a 100644 --- a/source/libs/executor/inc/executorInt.h +++ b/source/libs/executor/inc/executorInt.h @@ -162,7 +162,7 @@ typedef struct SLimitInfo { } SLimitInfo; typedef struct SSortMergeJoinOperatorParam { - int32_t initDownstreamNum; + bool initDownstream; } SSortMergeJoinOperatorParam; typedef struct SExchangeOperatorBasicParam { diff --git a/source/libs/executor/src/dynqueryctrloperator.c b/source/libs/executor/src/dynqueryctrloperator.c index 4fcf2024b0..11ff084ead 100755 --- a/source/libs/executor/src/dynqueryctrloperator.c +++ b/source/libs/executor/src/dynqueryctrloperator.c @@ -306,7 +306,7 @@ static int32_t buildMergeJoinOperatorParam(SOperatorParam** ppRes, bool initPara return TSDB_CODE_OUT_OF_MEMORY; } - pJoin->initDownstreamNum = initParam ? 2 : 0; + pJoin->initDownstream = initParam; (*ppRes)->opType = QUERY_NODE_PHYSICAL_PLAN_MERGE_JOIN; (*ppRes)->value = pJoin; diff --git a/source/libs/executor/src/groupcacheoperator.c b/source/libs/executor/src/groupcacheoperator.c index 2243768dc0..ffb3a913d3 100755 --- a/source/libs/executor/src/groupcacheoperator.c +++ b/source/libs/executor/src/groupcacheoperator.c @@ -143,11 +143,32 @@ static void destroyGroupCacheDownstreamCtx(SGroupCacheOperatorInfo* pGrpCacheOpe taosMemoryFree(pGrpCacheOperator->pDownstreams); } + +void blockDataDeepCleanup(SSDataBlock* pDataBlock) { + size_t numOfCols = taosArrayGetSize(pDataBlock->pDataBlock); + for (int32_t i = 0; i < numOfCols; ++i) { + SColumnInfoData* p = taosArrayGet(pDataBlock->pDataBlock, i); + taosMemoryFreeClear(p->pData); + if (IS_VAR_DATA_TYPE(p->info.type)) { + taosMemoryFreeClear(p->varmeta.offset); + p->varmeta.length = 0; + p->varmeta.allocLen = 0; + } else { + taosMemoryFreeClear(p->nullbitmap); + } + } + pDataBlock->info.capacity = 0; + pDataBlock->info.rows = 0; +} + + + static void destroySGcBlkCacheInfo(SGcBlkCacheInfo* pBlkCache) { taosHashCleanup(pBlkCache->pDirtyBlk); void* p = NULL; while (p = taosHashIterate(pBlkCache->pReadBlk, p)) { + blockDataDeepCleanup(*(SSDataBlock**)p); freeGcBlockInList(p); } @@ -432,25 +453,6 @@ void blockDataDeepClear(SSDataBlock* pDataBlock) { pDataBlock->info.rows = 0; } - -void blockDataDeepCleanup(SSDataBlock* pDataBlock) { - size_t numOfCols = taosArrayGetSize(pDataBlock->pDataBlock); - for (int32_t i = 0; i < numOfCols; ++i) { - SColumnInfoData* p = taosArrayGet(pDataBlock->pDataBlock, i); - taosMemoryFreeClear(p->pData); - if (IS_VAR_DATA_TYPE(p->info.type)) { - taosMemoryFreeClear(p->varmeta.offset); - p->varmeta.length = 0; - p->varmeta.allocLen = 0; - } else { - taosMemoryFreeClear(p->nullbitmap); - } - } - pDataBlock->info.capacity = 0; - pDataBlock->info.rows = 0; -} - - static int32_t buildGroupCacheBaseBlock(SSDataBlock** ppDst, SSDataBlock* pSrc) { *ppDst = taosMemoryMalloc(sizeof(*pSrc)); if (NULL == *ppDst) { @@ -708,7 +710,7 @@ static int32_t addFileRefTableNum(SGcFileCacheCtx* pFileCtx, int32_t fileId, int SGroupCacheFileInfo newFile = {0}; newFile.groupNum = 1; taosHashPut(pFileCtx->pCacheFile, &fileId, sizeof(fileId), &newFile, sizeof(newFile)); - pTmp = &newFile; + pTmp = taosHashGet(pFileCtx->pCacheFile, &fileId, sizeof(fileId)); } else { pTmp->groupNum++; } diff --git a/source/libs/executor/src/mergejoinoperator.c b/source/libs/executor/src/mergejoinoperator.c index 8e3e740b48..1b286f9bdd 100644 --- a/source/libs/executor/src/mergejoinoperator.c +++ b/source/libs/executor/src/mergejoinoperator.c @@ -43,6 +43,7 @@ typedef struct SMJoinOperatorInfo { SSDataBlock* pRes; int32_t joinType; int32_t inputOrder; + bool downstreamInitDone[2]; bool downstreamFetchDone[2]; int16_t downstreamResBlkId[2]; @@ -671,6 +672,7 @@ static bool mergeJoinGetNextTimestamp(SOperatorInfo* pOperator, int64_t* pLeftTs if (pJoinInfo->pLeft == NULL || pJoinInfo->leftPos >= pJoinInfo->pLeft->info.rows) { if (!pJoinInfo->downstreamFetchDone[0]) { pJoinInfo->pLeft = getNextBlockFromDownstreamRemain(pOperator, 0); + pJoinInfo->downstreamInitDone[0] = true; pJoinInfo->leftPos = 0; qError("merge join left got block, rows:%" PRId64, pJoinInfo->pLeft ? pJoinInfo->pLeft->info.rows : 0); @@ -679,9 +681,8 @@ static bool mergeJoinGetNextTimestamp(SOperatorInfo* pOperator, int64_t* pLeftTs } if (pJoinInfo->pLeft == NULL) { - if (pOperator->pOperatorGetParam && ((SSortMergeJoinOperatorParam*)pOperator->pOperatorGetParam->value)->initDownstreamNum > 0) { + if (pOperator->pOperatorGetParam && ((SSortMergeJoinOperatorParam*)pOperator->pOperatorGetParam->value)->initDownstream && !pJoinInfo->downstreamInitDone[1]) { leftEmpty = true; - ((SSortMergeJoinOperatorParam*)pOperator->pOperatorGetParam->value)->initDownstreamNum--; } else { setMergeJoinDone(pOperator); return false; @@ -692,10 +693,7 @@ static bool mergeJoinGetNextTimestamp(SOperatorInfo* pOperator, int64_t* pLeftTs if (pJoinInfo->pRight == NULL || pJoinInfo->rightPos >= pJoinInfo->pRight->info.rows) { if (!pJoinInfo->downstreamFetchDone[1]) { pJoinInfo->pRight = getNextBlockFromDownstreamRemain(pOperator, 1); - - if (pOperator->pOperatorGetParam && ((SSortMergeJoinOperatorParam*)pOperator->pOperatorGetParam->value)->initDownstreamNum > 0) { - ((SSortMergeJoinOperatorParam*)pOperator->pOperatorGetParam->value)->initDownstreamNum--; - } + pJoinInfo->downstreamInitDone[1] = true; pJoinInfo->rightPos = 0; qError("merge join right got block, rows:%" PRId64, pJoinInfo->pRight ? pJoinInfo->pRight->info.rows : 0); @@ -783,6 +781,8 @@ void resetMergeJoinOperator(struct SOperatorInfo* pOperator) { pJoinInfo->rightPos = 0; pJoinInfo->downstreamFetchDone[0] = false; pJoinInfo->downstreamFetchDone[1] = false; + pJoinInfo->downstreamInitDone[0] = false; + pJoinInfo->downstreamInitDone[1] = false; pJoinInfo->resRows = 0; pOperator->status = OP_OPENED; } diff --git a/source/libs/nodes/src/nodesCloneFuncs.c b/source/libs/nodes/src/nodesCloneFuncs.c index 1ade4fce67..2ab9121912 100644 --- a/source/libs/nodes/src/nodesCloneFuncs.c +++ b/source/libs/nodes/src/nodesCloneFuncs.c @@ -348,6 +348,24 @@ static int32_t caseWhenNodeCopy(const SCaseWhenNode* pSrc, SCaseWhenNode* pDst) return TSDB_CODE_SUCCESS; } +static int32_t copyHintValue(const SHintNode* pSrc, SHintNode* pDst) { + if (NULL == pSrc->value) { + pDst->value = NULL; + return TSDB_CODE_SUCCESS; + } + switch (pSrc->option) { + default: + break; + } + return TSDB_CODE_SUCCESS; +} + +static int32_t hintNodeCopy(const SHintNode* pSrc, SHintNode* pDst) { + COPY_SCALAR_FIELD(type); + COPY_SCALAR_FIELD(option); + return copyHintValue(pSrc, pDst); +} + static int32_t logicNodeCopy(const SLogicNode* pSrc, SLogicNode* pDst) { CLONE_NODE_LIST_FIELD(pTargets); CLONE_NODE_FIELD(pConditions); @@ -363,6 +381,7 @@ static int32_t logicNodeCopy(const SLogicNode* pSrc, SLogicNode* pDst) { COPY_SCALAR_FIELD(outputTsOrder); COPY_SCALAR_FIELD(dynamicOp); COPY_SCALAR_FIELD(forceCreateNonBlockingOptr); + CLONE_NODE_LIST_FIELD(pHint); return TSDB_CODE_SUCCESS; } @@ -703,6 +722,7 @@ static int32_t selectStmtCopy(const SSelectStmt* pSrc, SSelectStmt* pDst) { COPY_SCALAR_FIELD(timeLineResMode); COPY_SCALAR_FIELD(hasAggFuncs); COPY_SCALAR_FIELD(hasRepeatScanFuncs); + CLONE_NODE_LIST_FIELD(pHint); return TSDB_CODE_SUCCESS; } @@ -791,6 +811,9 @@ SNode* nodesCloneNode(const SNode* pNode) { case QUERY_NODE_CASE_WHEN: code = caseWhenNodeCopy((const SCaseWhenNode*)pNode, (SCaseWhenNode*)pDst); break; + case QUERY_NODE_HINT: + code = hintNodeCopy((const SHintNode*)pNode, (SHintNode*)pDst); + break; case QUERY_NODE_SELECT_STMT: code = selectStmtCopy((const SSelectStmt*)pNode, (SSelectStmt*)pDst); break; diff --git a/source/libs/nodes/src/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c index 3f6d039821..83bf9099ef 100644 --- a/source/libs/nodes/src/nodesUtilFuncs.c +++ b/source/libs/nodes/src/nodesUtilFuncs.c @@ -610,6 +610,7 @@ static void destroyLogicNode(SLogicNode* pNode) { nodesDestroyList(pNode->pChildren); nodesDestroyNode(pNode->pLimit); nodesDestroyNode(pNode->pSlimit); + nodesDestroyList(pNode->pHint); } static void destroyPhysiNode(SPhysiNode* pNode) { @@ -827,7 +828,6 @@ void nodesDestroyNode(SNode* pNode) { } case QUERY_NODE_HINT: { SHintNode* pHint = (SHintNode*)pNode; - taosMemoryFreeClear(pHint->literal); destroyHintValue(pHint->option, pHint->value); break; } diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index 458b9861c1..c1a92e19da 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -101,7 +101,7 @@ SNodeList* addNodeToList(SAstCreateContext* pCxt, SNodeList* pList, SNode* pNode SNode* createColumnNode(SAstCreateContext* pCxt, SToken* pTableAlias, SToken* pColumnName); SNode* createValueNode(SAstCreateContext* pCxt, int32_t dataType, const SToken* pLiteral); -SNode* createHintNode(SAstCreateContext* pCxt, EHintOption option, const SToken* pLiteral); +SNodeList* createHintNodeList(SAstCreateContext* pCxt, const SToken* pLiteral); SNode* createIdentifierValueNode(SAstCreateContext* pCxt, SToken* pLiteral); SNode* createDurationValueNode(SAstCreateContext* pCxt, const SToken* pLiteral); SNode* createDefaultDatabaseCondValue(SAstCreateContext* pCxt); diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 9867cb25cf..a458fc3a0e 100755 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -1025,8 +1025,8 @@ query_specification(A) ::= %type hint_list { SNodeList* } %destructor hint_list { nodesDestroyList($$); } -hint_list(A) ::= . { createHintNodeList(pCxt, NULL); } -hint_list(A) ::= NK_HINT(B). { createHintNodeList(pCxt, &B); } +hint_list(A) ::= . { A = createHintNodeList(pCxt, NULL); } +hint_list(A) ::= NK_HINT(B). { A = createHintNodeList(pCxt, &B); } %type set_quantifier_opt { bool } %destructor set_quantifier_opt { } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 7bf2db8fab..e5c2b0708f 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -348,15 +348,121 @@ SNode* createValueNode(SAstCreateContext* pCxt, int32_t dataType, const SToken* return (SNode*)val; } -SNode* createHintNode(SAstCreateContext* pCxt, EHintOption option, const SToken* pLiteral) { - CHECK_PARSER_STATUS(pCxt); +bool addHintNodeToList(SAstCreateContext* pCxt, SNodeList** ppHintList, EHintOption opt, SToken* paramList, int32_t paramNum) { + void* value = NULL; + switch (opt) { + case HINT_BATCH_SCAN: + case HINT_NO_BATCH_SCAN: { + if (paramNum > 0) { + return true; + } + break; + } + default: + return true; + } + SHintNode* hint = (SHintNode*)nodesMakeNode(QUERY_NODE_HINT); CHECK_OUT_OF_MEM(hint); - hint->option = option; - hint->literal = strndup(pLiteral->z, pLiteral->n); - trimString(pLiteral->z, pLiteral->n, hint->literal, pLiteral->n); - CHECK_OUT_OF_MEM(hint->literal); - return (SNode*)hint; + hint->option = opt; + hint->value = value; + + if (NULL == *ppHintList) { + *ppHintList = nodesMakeList(); + CHECK_OUT_OF_MEM(*ppHintList); + } + + pCxt->errCode = nodesListStrictAppend(*ppHintList, (SNode*)hint); + if (pCxt->errCode) { + return true; + } + + return false; +} + +SNodeList* createHintNodeList(SAstCreateContext* pCxt, const SToken* pLiteral) { + CHECK_PARSER_STATUS(pCxt); + if (NULL == pLiteral || pLiteral->n <= 5) { + return NULL; + } + SNodeList* pHintList = NULL; + char* hint = strndup(pLiteral->z + 3, pLiteral->n - 5); + int32_t i = 0; + bool quit = false; + bool inParamList = false; + bool lastComma = false; + EHintOption opt = 0; + int32_t paramNum = 0; + SToken paramList[10]; + while (!quit) { + SToken t0 = {0}; + if (hint[i] == 0) { + break; + } + t0.n = tGetToken(&hint[i], &t0.type); + t0.z = hint + i; + i += t0.n; + + switch (t0.type) { + case TK_BATCH_SCAN: + lastComma = false; + if (0 != opt || inParamList) { + quit = true; + break; + } + opt = HINT_BATCH_SCAN; + break; + case TK_NO_BATCH_SCAN: + lastComma = false; + if (0 != opt || inParamList) { + quit = true; + break; + } + opt = HINT_NO_BATCH_SCAN; + break; + case TK_NK_LP: + lastComma = false; + if (0 == opt || inParamList) { + quit = true; + } + inParamList = true; + break; + case TK_NK_RP: + lastComma = false; + if (0 == opt || !inParamList) { + quit = true; + } else { + quit = addHintNodeToList(pCxt, &pHintList, opt, paramList, paramNum); + inParamList = false; + paramNum = 0; + opt = 0; + } + break; + case TK_NK_ID: + lastComma = false; + if (0 == opt || !inParamList) { + quit = true; + } else { + paramList[paramNum++] = t0; + } + break; + case TK_NK_COMMA: + if (lastComma) { + quit = true; + } + lastComma = true; + break; + case TK_NK_SPACE: + break; + default: + lastComma = false; + quit = true; + break; + } + } + + taosMemoryFree(hint); + return pHintList; } SNode* createIdentifierValueNode(SAstCreateContext* pCxt, SToken* pLiteral) { diff --git a/source/libs/parser/src/parTokenizer.c b/source/libs/parser/src/parTokenizer.c index acd65a7ad6..2d3c309610 100644 --- a/source/libs/parser/src/parTokenizer.c +++ b/source/libs/parser/src/parTokenizer.c @@ -392,10 +392,6 @@ uint32_t tGetToken(const char* z, uint32_t* tokenId) { return 1; } case '*': { - if (z[1] == '/') { - *tokenId = TK_NK_HINT_END; - return 2; - } *tokenId = TK_NK_STAR; return 1; } @@ -406,13 +402,12 @@ uint32_t tGetToken(const char* z, uint32_t* tokenId) { } bool isHint = false; if (z[2] == '+') { - *tokenId = TK_NK_HINT_BEGIN; - return 3; + isHint = true; } for (i = 3; z[i] && (z[i] != '/' || z[i - 1] != '*'); i++) { } if (z[i]) i++; - *tokenId = TK_NK_COMMENT; + *tokenId = isHint ? TK_NK_HINT : TK_NK_COMMENT; return i; } case '%': { diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index 331d4a541f..7f5cefd003 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -104,27 +104,27 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 494 +#define YYNOCODE 489 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - SNode* yy28; - SDataType yy32; - EJoinType yy152; - SNodeList* yy236; - EFillMode yy322; - SAlterOption yy481; - int64_t yy701; - EOrder yy734; - bool yy793; - STokenPair yy833; - int8_t yy847; - SToken yy889; - EOperatorType yy896; - ENullOrder yy945; - int32_t yy956; + SAlterOption yy23; + EJoinType yy24; + EOrder yy44; + bool yy83; + SNodeList* yy88; + int64_t yy159; + STokenPair yy303; + SDataType yy394; + ENullOrder yy409; + EOperatorType yy464; + EFillMode yy498; + SNode* yy698; + int32_t yy724; + SToken yy731; + int8_t yy821; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -140,18 +140,18 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 807 -#define YYNRULE 607 -#define YYNRULE_WITH_ACTION 607 -#define YYNTOKEN 342 -#define YY_MAX_SHIFT 806 -#define YY_MIN_SHIFTREDUCE 1192 -#define YY_MAX_SHIFTREDUCE 1798 -#define YY_ERROR_ACTION 1799 -#define YY_ACCEPT_ACTION 1800 -#define YY_NO_ACTION 1801 -#define YY_MIN_REDUCE 1802 -#define YY_MAX_REDUCE 2408 +#define YYNSTATE 801 +#define YYNRULE 602 +#define YYNRULE_WITH_ACTION 602 +#define YYNTOKEN 339 +#define YY_MAX_SHIFT 800 +#define YY_MIN_SHIFTREDUCE 1182 +#define YY_MAX_SHIFTREDUCE 1783 +#define YY_ERROR_ACTION 1784 +#define YY_ACCEPT_ACTION 1785 +#define YY_NO_ACTION 1786 +#define YY_MIN_REDUCE 1787 +#define YY_MAX_REDUCE 2388 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -218,809 +218,821 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (2787) +#define YY_ACTTAB_COUNT (2847) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 2212, 1968, 2190, 2101, 450, 697, 1979, 38, 309, 449, - /* 10 */ 714, 2173, 48, 46, 1725, 397, 2198, 1825, 2098, 684, - /* 20 */ 404, 1592, 1567, 41, 40, 135, 2194, 47, 45, 44, - /* 30 */ 43, 42, 577, 1648, 1338, 1565, 41, 40, 2230, 542, - /* 40 */ 47, 45, 44, 43, 42, 539, 2190, 1337, 1595, 696, - /* 50 */ 2180, 633, 713, 696, 2379, 1800, 9, 2190, 633, 2212, - /* 60 */ 1970, 2379, 1643, 696, 2196, 401, 66, 2180, 19, 677, - /* 70 */ 2194, 2199, 2385, 190, 707, 1573, 1592, 2380, 663, 2385, - /* 80 */ 190, 2194, 169, 364, 2380, 663, 2211, 1250, 2247, 1249, - /* 90 */ 1920, 171, 2213, 717, 2215, 2216, 712, 2230, 707, 407, - /* 100 */ 803, 1593, 183, 15, 2384, 697, 1979, 164, 2196, 2180, - /* 110 */ 183, 713, 509, 682, 386, 1981, 48, 46, 707, 2196, - /* 120 */ 1251, 1594, 2030, 2085, 404, 135, 1567, 1677, 419, 707, - /* 130 */ 372, 2084, 582, 418, 638, 2344, 51, 1648, 223, 1565, - /* 140 */ 1650, 1651, 540, 456, 1845, 2211, 51, 2247, 674, 145, - /* 150 */ 112, 2213, 717, 2215, 2216, 712, 554, 707, 2101, 62, - /* 160 */ 2026, 2027, 187, 62, 2300, 62, 1643, 52, 400, 2296, - /* 170 */ 1623, 1633, 19, 2099, 684, 633, 1649, 1652, 2379, 1573, - /* 180 */ 674, 145, 192, 657, 1678, 1803, 537, 534, 351, 538, - /* 190 */ 1838, 1568, 2333, 1566, 1955, 532, 2385, 190, 528, 524, - /* 200 */ 268, 2380, 663, 752, 803, 1788, 125, 15, 2212, 124, - /* 210 */ 123, 122, 121, 120, 119, 118, 117, 116, 714, 1233, - /* 220 */ 1679, 1418, 1419, 1571, 1572, 1591, 1622, 1625, 1626, 1627, - /* 230 */ 1628, 1629, 1630, 1631, 1632, 709, 705, 1641, 1642, 1644, - /* 240 */ 1645, 1646, 1647, 2, 1650, 1651, 2230, 47, 45, 44, - /* 250 */ 43, 42, 288, 2308, 673, 2383, 136, 672, 2180, 2379, - /* 260 */ 713, 752, 37, 402, 1672, 1673, 1674, 1675, 1676, 1680, - /* 270 */ 1681, 1682, 1683, 290, 1623, 1633, 1711, 661, 190, 62, - /* 280 */ 1649, 1652, 2380, 663, 189, 2308, 2309, 254, 143, 2313, - /* 290 */ 1250, 253, 1249, 291, 2211, 1568, 2247, 1566, 35, 112, - /* 300 */ 2213, 717, 2215, 2216, 712, 140, 707, 1592, 1684, 148, - /* 310 */ 683, 152, 2271, 2300, 2032, 2212, 291, 400, 2296, 12, - /* 320 */ 291, 385, 291, 1251, 291, 677, 618, 1571, 1572, 2030, - /* 330 */ 1622, 1625, 1626, 1627, 1628, 1629, 1630, 1631, 1632, 709, - /* 340 */ 705, 1641, 1642, 1644, 1645, 1646, 1647, 2, 12, 48, - /* 350 */ 46, 632, 93, 2230, 2032, 359, 1573, 404, 384, 1567, - /* 360 */ 611, 394, 552, 1383, 2094, 2180, 448, 713, 447, 2030, - /* 370 */ 1648, 409, 1565, 545, 2025, 2027, 538, 1838, 1374, 742, - /* 380 */ 741, 740, 1378, 739, 1380, 1381, 738, 735, 209, 1389, - /* 390 */ 732, 1391, 1392, 729, 726, 723, 674, 145, 446, 1643, - /* 400 */ 90, 2211, 652, 2247, 1225, 19, 112, 2213, 717, 2215, - /* 410 */ 2216, 712, 1573, 707, 595, 594, 593, 374, 187, 743, - /* 420 */ 2300, 585, 141, 589, 400, 2296, 1974, 588, 86, 2212, - /* 430 */ 266, 85, 587, 592, 380, 379, 291, 803, 586, 714, - /* 440 */ 15, 1847, 170, 1227, 1814, 1230, 1231, 186, 2334, 2163, - /* 450 */ 674, 145, 656, 48, 46, 1653, 225, 1476, 1477, 2019, - /* 460 */ 540, 404, 1845, 1567, 41, 40, 762, 2230, 47, 45, - /* 470 */ 44, 43, 42, 94, 1648, 60, 1565, 1650, 1651, 2180, - /* 480 */ 2230, 713, 630, 125, 460, 2080, 124, 123, 122, 121, - /* 490 */ 120, 119, 118, 117, 116, 74, 658, 653, 646, 2212, - /* 500 */ 191, 2308, 2309, 1643, 143, 2313, 1729, 1623, 1633, 714, - /* 510 */ 398, 2341, 1592, 1649, 1652, 2211, 1573, 2247, 167, 438, - /* 520 */ 112, 2213, 717, 2215, 2216, 712, 1981, 707, 1568, 1964, - /* 530 */ 1566, 204, 2399, 2032, 2300, 655, 665, 2230, 400, 2296, - /* 540 */ 399, 803, 697, 1979, 49, 84, 440, 436, 2030, 2180, - /* 550 */ 155, 713, 1881, 676, 188, 2308, 2309, 255, 143, 2313, - /* 560 */ 1571, 1572, 195, 1622, 1625, 1626, 1627, 1628, 1629, 1630, - /* 570 */ 1631, 1632, 709, 705, 1641, 1642, 1644, 1645, 1646, 1647, - /* 580 */ 2, 1650, 1651, 697, 1979, 2211, 2174, 2247, 14, 13, - /* 590 */ 112, 2213, 717, 2215, 2216, 712, 1753, 707, 413, 412, - /* 600 */ 697, 1979, 2399, 56, 2300, 12, 2212, 10, 400, 2296, - /* 610 */ 55, 1623, 1633, 1824, 466, 2080, 714, 1649, 1652, 1658, - /* 620 */ 454, 1574, 595, 594, 593, 1592, 500, 1538, 1539, 585, - /* 630 */ 141, 589, 1568, 633, 1566, 588, 2379, 697, 1979, 1795, - /* 640 */ 587, 592, 380, 379, 2230, 264, 586, 649, 648, 1751, - /* 650 */ 1752, 1754, 1755, 1756, 2385, 190, 2180, 455, 713, 2380, - /* 660 */ 663, 207, 1624, 2180, 1571, 1572, 433, 1622, 1625, 1626, - /* 670 */ 1627, 1628, 1629, 1630, 1631, 1632, 709, 705, 1641, 1642, - /* 680 */ 1644, 1645, 1646, 1647, 2, 48, 46, 214, 213, 493, - /* 690 */ 2080, 1691, 2211, 404, 2247, 1567, 1802, 112, 2213, 717, - /* 700 */ 2215, 2216, 712, 1966, 707, 699, 1648, 2272, 1565, 2275, - /* 710 */ 499, 2300, 1962, 239, 1593, 400, 2296, 2315, 1253, 1254, - /* 720 */ 134, 133, 132, 131, 130, 129, 128, 127, 126, 174, - /* 730 */ 2063, 2212, 377, 697, 1979, 1643, 212, 571, 567, 563, - /* 740 */ 559, 714, 238, 2312, 683, 1794, 637, 635, 1573, 1719, - /* 750 */ 41, 40, 1823, 468, 47, 45, 44, 43, 42, 41, - /* 760 */ 40, 1822, 407, 47, 45, 44, 43, 42, 90, 2230, - /* 770 */ 167, 697, 1979, 803, 1576, 1624, 49, 2032, 1981, 1577, - /* 780 */ 609, 2180, 91, 713, 408, 236, 30, 697, 1979, 48, - /* 790 */ 46, 483, 2030, 607, 1975, 605, 681, 404, 2094, 1567, - /* 800 */ 410, 378, 2180, 376, 375, 2315, 579, 484, 167, 1921, - /* 810 */ 1648, 2180, 1565, 1650, 1651, 147, 1981, 2211, 2271, 2247, - /* 820 */ 683, 1594, 113, 2213, 717, 2215, 2216, 712, 581, 707, - /* 830 */ 600, 2311, 580, 1815, 1493, 1494, 2300, 300, 301, 1643, - /* 840 */ 2299, 2296, 299, 1623, 1633, 610, 1765, 697, 1979, 1649, - /* 850 */ 1652, 1983, 1573, 235, 229, 1764, 697, 1979, 2032, 252, - /* 860 */ 234, 550, 573, 572, 1568, 370, 1566, 553, 1342, 109, - /* 870 */ 1492, 1495, 692, 2030, 2094, 603, 1976, 803, 1722, 227, - /* 880 */ 15, 1341, 597, 2212, 1821, 701, 146, 2272, 251, 478, - /* 890 */ 575, 574, 616, 714, 1971, 2354, 1571, 1572, 477, 1622, - /* 900 */ 1625, 1626, 1627, 1628, 1629, 1630, 1631, 1632, 709, 705, - /* 910 */ 1641, 1642, 1644, 1645, 1646, 1647, 2, 1650, 1651, 41, - /* 920 */ 40, 2230, 1820, 47, 45, 44, 43, 42, 70, 697, - /* 930 */ 1979, 69, 1579, 2180, 2180, 713, 2315, 662, 2145, 633, - /* 940 */ 2379, 1819, 2379, 44, 43, 42, 511, 1623, 1633, 257, - /* 950 */ 591, 590, 2032, 1649, 1652, 1327, 2326, 178, 661, 190, - /* 960 */ 2385, 190, 2310, 2380, 663, 2380, 663, 2031, 1568, 2211, - /* 970 */ 1566, 2247, 2180, 290, 112, 2213, 717, 2215, 2216, 712, - /* 980 */ 285, 707, 1595, 1818, 637, 635, 2399, 256, 2300, 1817, - /* 990 */ 1816, 2180, 400, 2296, 1956, 1329, 103, 1813, 1812, 669, - /* 1000 */ 1571, 1572, 1878, 1622, 1625, 1626, 1627, 1628, 1629, 1630, - /* 1010 */ 1631, 1632, 709, 705, 1641, 1642, 1644, 1645, 1646, 1647, - /* 1020 */ 2, 1972, 355, 168, 1590, 697, 1979, 1811, 330, 697, - /* 1030 */ 1979, 491, 2384, 2180, 507, 2379, 1592, 506, 261, 2180, - /* 1040 */ 2180, 744, 327, 73, 2023, 265, 72, 2180, 2180, 680, - /* 1050 */ 1810, 708, 1809, 474, 2383, 508, 2347, 352, 2380, 2382, - /* 1060 */ 476, 750, 157, 156, 747, 746, 745, 154, 221, 519, - /* 1070 */ 517, 514, 780, 779, 778, 777, 416, 2180, 776, 775, - /* 1080 */ 149, 770, 769, 768, 767, 766, 765, 764, 159, 760, - /* 1090 */ 759, 758, 415, 414, 755, 754, 753, 177, 176, 167, - /* 1100 */ 2180, 581, 2180, 774, 772, 580, 373, 1982, 62, 748, - /* 1110 */ 749, 1595, 2023, 2023, 323, 41, 40, 2009, 462, 47, - /* 1120 */ 45, 44, 43, 42, 650, 697, 1979, 750, 157, 156, - /* 1130 */ 747, 746, 745, 154, 205, 763, 41, 40, 1941, 1721, - /* 1140 */ 47, 45, 44, 43, 42, 411, 2384, 111, 504, 2379, - /* 1150 */ 139, 498, 497, 496, 495, 490, 489, 488, 487, 486, - /* 1160 */ 482, 481, 480, 479, 354, 471, 470, 469, 2383, 464, - /* 1170 */ 463, 371, 2380, 2381, 662, 1230, 1231, 2379, 1808, 697, - /* 1180 */ 1979, 1807, 413, 412, 697, 1979, 1624, 1806, 81, 80, - /* 1190 */ 453, 666, 1581, 202, 1805, 661, 190, 2166, 2212, 304, - /* 1200 */ 2380, 663, 155, 1648, 694, 1574, 445, 443, 714, 457, - /* 1210 */ 644, 1741, 1957, 697, 1979, 697, 1979, 353, 2320, 1711, - /* 1220 */ 434, 1567, 458, 432, 428, 424, 421, 446, 2180, 2212, - /* 1230 */ 704, 2180, 1643, 695, 1565, 310, 2230, 2180, 54, 714, - /* 1240 */ 3, 2372, 155, 670, 2180, 1573, 426, 83, 2180, 137, - /* 1250 */ 713, 244, 246, 583, 242, 245, 150, 248, 584, 2212, - /* 1260 */ 247, 250, 1533, 267, 249, 291, 1865, 2230, 1575, 714, - /* 1270 */ 703, 2319, 279, 50, 1573, 1325, 1856, 1797, 1798, 2180, - /* 1280 */ 1323, 713, 1854, 613, 2211, 612, 2247, 1919, 596, 112, - /* 1290 */ 2213, 717, 2215, 2216, 712, 1918, 707, 2230, 598, 803, - /* 1300 */ 166, 2399, 1536, 2300, 601, 50, 108, 400, 2296, 2180, - /* 1310 */ 2327, 713, 272, 14, 13, 2211, 105, 2247, 2231, 2201, - /* 1320 */ 112, 2213, 717, 2215, 2216, 712, 756, 707, 155, 50, - /* 1330 */ 34, 297, 2399, 1750, 2300, 71, 41, 40, 400, 2296, - /* 1340 */ 47, 45, 44, 43, 42, 2211, 2212, 2247, 1303, 757, - /* 1350 */ 112, 2213, 717, 2215, 2216, 712, 714, 707, 1954, 64, - /* 1360 */ 153, 1582, 2399, 1577, 2300, 1749, 2212, 36, 400, 2296, - /* 1370 */ 155, 1301, 274, 41, 40, 2203, 714, 47, 45, 44, - /* 1380 */ 43, 42, 417, 50, 2230, 1669, 50, 721, 679, 1490, - /* 1390 */ 1568, 302, 1566, 1585, 1587, 689, 2180, 387, 713, 1839, - /* 1400 */ 2089, 2020, 1844, 153, 2230, 2337, 705, 1641, 1642, 1644, - /* 1410 */ 1645, 1646, 1647, 675, 284, 2212, 2180, 155, 713, 1685, - /* 1420 */ 306, 138, 1571, 1572, 153, 714, 1578, 287, 1284, 1848, - /* 1430 */ 1368, 1, 2211, 667, 2247, 2212, 420, 112, 2213, 717, - /* 1440 */ 2215, 2216, 712, 1634, 707, 714, 322, 1396, 5, 2273, - /* 1450 */ 425, 2300, 2211, 2230, 2247, 400, 2296, 112, 2213, 717, - /* 1460 */ 2215, 2216, 712, 1400, 707, 2180, 368, 713, 1285, 700, - /* 1470 */ 1598, 2300, 197, 2230, 442, 400, 2296, 1407, 198, 798, - /* 1480 */ 441, 1405, 444, 200, 158, 2180, 1514, 713, 1591, 317, - /* 1490 */ 459, 750, 157, 156, 747, 746, 745, 154, 211, 461, - /* 1500 */ 1595, 2211, 678, 2247, 2212, 2090, 113, 2213, 717, 2215, - /* 1510 */ 2216, 712, 465, 707, 711, 467, 502, 472, 1590, 485, - /* 1520 */ 2300, 715, 492, 2247, 702, 2296, 113, 2213, 717, 2215, - /* 1530 */ 2216, 712, 2082, 707, 494, 512, 2212, 215, 501, 503, - /* 1540 */ 2300, 513, 2230, 510, 363, 2296, 714, 216, 516, 633, - /* 1550 */ 515, 1596, 2379, 4, 2180, 218, 713, 535, 518, 536, - /* 1560 */ 520, 543, 544, 226, 1593, 546, 547, 1597, 1599, 2212, - /* 1570 */ 2385, 190, 228, 548, 2230, 2380, 663, 549, 231, 714, - /* 1580 */ 555, 551, 233, 88, 89, 237, 2180, 2154, 713, 576, - /* 1590 */ 2211, 358, 2247, 114, 615, 345, 2213, 717, 2215, 2216, - /* 1600 */ 712, 710, 707, 698, 2265, 617, 578, 2230, 2151, 92, - /* 1610 */ 1969, 241, 151, 1965, 243, 160, 2212, 161, 1967, 2180, - /* 1620 */ 1963, 713, 2211, 258, 2247, 621, 714, 172, 2213, 717, - /* 1630 */ 2215, 2216, 712, 162, 707, 2212, 163, 620, 2150, 262, - /* 1640 */ 1521, 318, 622, 625, 641, 714, 628, 651, 687, 2353, - /* 1650 */ 647, 270, 2352, 2338, 2230, 2211, 2348, 2247, 390, 260, - /* 1660 */ 113, 2213, 717, 2215, 2216, 712, 2180, 707, 713, 626, - /* 1670 */ 627, 8, 654, 2230, 2300, 273, 660, 2322, 388, 2297, - /* 1680 */ 642, 664, 2400, 639, 640, 2180, 283, 713, 391, 668, - /* 1690 */ 671, 1711, 144, 1594, 142, 2316, 2212, 180, 1600, 292, - /* 1700 */ 2402, 98, 2211, 2095, 2247, 685, 714, 171, 2213, 717, - /* 1710 */ 2215, 2216, 712, 319, 707, 2212, 686, 2109, 2108, 2107, - /* 1720 */ 396, 2211, 100, 2247, 175, 714, 346, 2213, 717, 2215, - /* 1730 */ 2216, 712, 278, 707, 2230, 280, 690, 281, 282, 389, - /* 1740 */ 320, 193, 691, 2378, 102, 286, 2180, 321, 713, 1980, - /* 1750 */ 61, 2345, 2281, 2230, 104, 2024, 719, 313, 1942, 324, - /* 1760 */ 799, 800, 2212, 53, 360, 2180, 802, 713, 361, 333, - /* 1770 */ 326, 348, 714, 328, 2172, 2171, 347, 337, 2170, 78, - /* 1780 */ 2167, 422, 2211, 2212, 2247, 423, 1558, 346, 2213, 717, - /* 1790 */ 2215, 2216, 712, 714, 707, 1559, 196, 427, 2165, 429, - /* 1800 */ 2230, 2211, 430, 2247, 431, 2164, 339, 2213, 717, 2215, - /* 1810 */ 2216, 712, 2180, 707, 713, 369, 2162, 435, 2161, 437, - /* 1820 */ 2160, 2230, 439, 1549, 2141, 199, 395, 79, 201, 1517, - /* 1830 */ 1516, 2122, 2121, 2180, 2140, 713, 2120, 451, 452, 2119, - /* 1840 */ 2118, 2073, 1467, 2072, 2069, 2068, 203, 2067, 2211, 2212, - /* 1850 */ 2247, 82, 659, 172, 2213, 717, 2215, 2216, 712, 711, - /* 1860 */ 707, 2066, 2071, 2070, 206, 2065, 2064, 2062, 2061, 2211, - /* 1870 */ 2060, 2247, 2212, 208, 346, 2213, 717, 2215, 2216, 712, - /* 1880 */ 2059, 707, 714, 473, 475, 2075, 2058, 2230, 2057, 2056, - /* 1890 */ 2055, 2054, 2053, 2052, 2051, 2050, 2049, 2048, 2047, 2180, - /* 1900 */ 2046, 713, 2045, 2044, 210, 2043, 87, 2042, 2401, 2041, - /* 1910 */ 2230, 2040, 2074, 2039, 2038, 403, 2037, 2036, 2035, 505, - /* 1920 */ 2034, 1469, 2180, 2033, 713, 356, 1339, 357, 1343, 1884, - /* 1930 */ 1883, 217, 1882, 219, 220, 2211, 2212, 2247, 1232, 619, - /* 1940 */ 345, 2213, 717, 2215, 2216, 712, 714, 707, 1880, 2266, - /* 1950 */ 1335, 1877, 1876, 1869, 521, 1858, 525, 806, 2211, 522, - /* 1960 */ 2247, 523, 529, 346, 2213, 717, 2215, 2216, 712, 533, - /* 1970 */ 707, 316, 527, 2212, 2230, 526, 531, 530, 1834, 405, - /* 1980 */ 76, 1833, 222, 714, 2139, 2129, 2180, 182, 713, 184, - /* 1990 */ 2200, 185, 2117, 541, 224, 796, 792, 788, 784, 77, - /* 2000 */ 314, 230, 2116, 2212, 232, 2093, 1958, 1879, 1277, 1875, - /* 2010 */ 556, 2230, 557, 714, 1873, 558, 561, 560, 562, 1871, - /* 2020 */ 565, 564, 2211, 2180, 2247, 713, 1868, 346, 2213, 717, - /* 2030 */ 2215, 2216, 712, 566, 707, 568, 570, 569, 1853, 1851, - /* 2040 */ 110, 2230, 1852, 307, 1850, 1830, 1960, 63, 1412, 1411, - /* 2050 */ 2212, 1959, 240, 2180, 771, 713, 1326, 1324, 1322, 614, - /* 2060 */ 714, 2247, 773, 1321, 341, 2213, 717, 2215, 2216, 712, - /* 2070 */ 1320, 707, 2212, 1866, 1313, 1319, 693, 381, 1318, 1857, - /* 2080 */ 382, 599, 714, 1315, 1314, 1312, 1855, 383, 2230, 2211, - /* 2090 */ 2384, 2247, 602, 1829, 331, 2213, 717, 2215, 2216, 712, - /* 2100 */ 2180, 707, 713, 604, 1828, 606, 1827, 608, 115, 1543, - /* 2110 */ 2230, 294, 1547, 1545, 29, 1542, 2138, 1523, 293, 57, - /* 2120 */ 67, 1525, 2180, 1527, 713, 2128, 2115, 623, 2114, 624, - /* 2130 */ 65, 6, 634, 263, 643, 1714, 2211, 259, 2247, 2212, - /* 2140 */ 1502, 329, 2213, 717, 2215, 2216, 712, 20, 707, 714, - /* 2150 */ 165, 629, 2212, 645, 21, 1501, 7, 1713, 2211, 636, - /* 2160 */ 2247, 22, 714, 332, 2213, 717, 2215, 2216, 712, 631, - /* 2170 */ 707, 1767, 2212, 271, 31, 269, 17, 2230, 276, 1748, - /* 2180 */ 1740, 33, 714, 277, 173, 2201, 24, 275, 1782, 2180, - /* 2190 */ 2230, 713, 32, 1781, 95, 392, 1787, 1786, 1788, 23, - /* 2200 */ 1785, 2212, 2180, 393, 713, 2113, 1708, 59, 289, 2092, - /* 2210 */ 2230, 714, 97, 1707, 96, 25, 179, 18, 295, 58, - /* 2220 */ 2091, 298, 2180, 296, 713, 2211, 1746, 2247, 99, 308, - /* 2230 */ 338, 2213, 717, 2215, 2216, 712, 303, 707, 2211, 2230, - /* 2240 */ 2247, 26, 68, 342, 2213, 717, 2215, 2216, 712, 101, - /* 2250 */ 707, 2180, 1660, 713, 105, 1659, 1583, 11, 2211, 1670, - /* 2260 */ 2247, 13, 2250, 334, 2213, 717, 2215, 2216, 712, 706, - /* 2270 */ 707, 688, 181, 305, 1638, 194, 1636, 39, 1615, 1635, - /* 2280 */ 16, 2212, 27, 720, 1607, 716, 28, 2211, 1397, 2247, - /* 2290 */ 718, 714, 343, 2213, 717, 2215, 2216, 712, 406, 707, - /* 2300 */ 1394, 722, 724, 2212, 725, 727, 1393, 728, 730, 733, - /* 2310 */ 1390, 731, 736, 714, 2212, 1384, 734, 1388, 1382, 2230, - /* 2320 */ 737, 106, 311, 1406, 714, 1387, 107, 75, 1386, 1402, - /* 2330 */ 1275, 2180, 2212, 713, 751, 1385, 1307, 1306, 1305, 1304, - /* 2340 */ 1302, 2230, 714, 1300, 1299, 1298, 1333, 761, 1296, 1295, - /* 2350 */ 312, 1294, 2230, 2180, 1293, 713, 1292, 1291, 1290, 1330, - /* 2360 */ 1328, 1287, 1286, 1283, 2180, 1282, 713, 2211, 1281, 2247, - /* 2370 */ 2230, 1280, 335, 2213, 717, 2215, 2216, 712, 1874, 707, - /* 2380 */ 781, 783, 2180, 782, 713, 1872, 785, 786, 787, 2211, - /* 2390 */ 1870, 2247, 789, 790, 344, 2213, 717, 2215, 2216, 712, - /* 2400 */ 2211, 707, 2247, 791, 1867, 336, 2213, 717, 2215, 2216, - /* 2410 */ 712, 2212, 707, 795, 793, 794, 1849, 797, 2211, 1222, - /* 2420 */ 2247, 714, 2212, 349, 2213, 717, 2215, 2216, 712, 1826, - /* 2430 */ 707, 315, 714, 801, 804, 2212, 1569, 325, 805, 1801, - /* 2440 */ 1801, 1801, 1801, 1801, 1801, 714, 2212, 1801, 1801, 2230, - /* 2450 */ 1801, 1801, 1801, 1801, 1801, 1801, 714, 1801, 1801, 1801, - /* 2460 */ 2230, 2180, 1801, 713, 1801, 1801, 1801, 1801, 1801, 1801, - /* 2470 */ 1801, 1801, 2180, 2230, 713, 1801, 1801, 1801, 1801, 1801, - /* 2480 */ 1801, 1801, 1801, 1801, 2230, 2180, 1801, 713, 1801, 1801, - /* 2490 */ 1801, 1801, 1801, 1801, 1801, 1801, 2180, 2211, 713, 2247, - /* 2500 */ 1801, 1801, 350, 2213, 717, 2215, 2216, 712, 2211, 707, - /* 2510 */ 2247, 1801, 2212, 2224, 2213, 717, 2215, 2216, 712, 1801, - /* 2520 */ 707, 2211, 714, 2247, 1801, 1801, 2223, 2213, 717, 2215, - /* 2530 */ 2216, 712, 2211, 707, 2247, 2212, 1801, 2222, 2213, 717, - /* 2540 */ 2215, 2216, 712, 1801, 707, 714, 1801, 1801, 1801, 1801, - /* 2550 */ 2230, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, - /* 2560 */ 1801, 1801, 2180, 1801, 713, 1801, 1801, 1801, 1801, 1801, - /* 2570 */ 1801, 1801, 1801, 2230, 1801, 1801, 1801, 1801, 1801, 1801, - /* 2580 */ 1801, 1801, 1801, 1801, 2212, 2180, 1801, 713, 1801, 1801, - /* 2590 */ 1801, 1801, 1801, 1801, 714, 1801, 1801, 1801, 2211, 2212, - /* 2600 */ 2247, 1801, 1801, 365, 2213, 717, 2215, 2216, 712, 714, - /* 2610 */ 707, 1801, 1801, 1801, 2212, 1801, 1801, 1801, 1801, 1801, - /* 2620 */ 1801, 2211, 2230, 2247, 714, 1801, 366, 2213, 717, 2215, - /* 2630 */ 2216, 712, 1801, 707, 2180, 1801, 713, 2230, 1801, 1801, - /* 2640 */ 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 2180, - /* 2650 */ 1801, 713, 2230, 1801, 1801, 1801, 1801, 1801, 1801, 1801, - /* 2660 */ 1801, 1801, 1801, 1801, 2180, 1801, 713, 1801, 1801, 1801, - /* 2670 */ 2211, 1801, 2247, 1801, 1801, 362, 2213, 717, 2215, 2216, - /* 2680 */ 712, 1801, 707, 1801, 1801, 2211, 1801, 2247, 2212, 1801, - /* 2690 */ 367, 2213, 717, 2215, 2216, 712, 1801, 707, 714, 1801, - /* 2700 */ 715, 1801, 2247, 1801, 1801, 341, 2213, 717, 2215, 2216, - /* 2710 */ 712, 1801, 707, 1801, 1801, 1801, 1801, 1801, 1801, 1801, - /* 2720 */ 1801, 1801, 1801, 1801, 1801, 1801, 2230, 1801, 1801, 1801, - /* 2730 */ 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 2180, 1801, - /* 2740 */ 713, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, - /* 2750 */ 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, - /* 2760 */ 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, 1801, - /* 2770 */ 1801, 1801, 1801, 1801, 2211, 1801, 2247, 1801, 1801, 340, - /* 2780 */ 2213, 717, 2215, 2216, 712, 1801, 707, + /* 0 */ 2197, 535, 2175, 221, 536, 1823, 448, 538, 90, 1830, + /* 10 */ 708, 447, 48, 46, 1710, 454, 2183, 169, 2175, 1799, + /* 20 */ 402, 690, 1557, 41, 40, 372, 2179, 47, 45, 44, + /* 30 */ 43, 42, 1955, 1638, 1959, 1555, 38, 307, 2215, 2086, + /* 40 */ 41, 40, 2179, 2175, 47, 45, 44, 43, 42, 1810, + /* 50 */ 2165, 395, 707, 631, 2083, 678, 2359, 2184, 184, 2197, + /* 60 */ 349, 650, 1633, 2158, 2181, 399, 690, 2179, 19, 671, + /* 70 */ 2004, 396, 2365, 188, 701, 1563, 30, 2360, 657, 166, + /* 80 */ 2181, 1215, 656, 362, 1582, 2359, 2196, 1966, 2232, 2215, + /* 90 */ 701, 170, 2198, 711, 2200, 2201, 706, 2215, 701, 2165, + /* 100 */ 797, 655, 188, 15, 51, 2181, 2360, 657, 223, 2165, + /* 110 */ 631, 707, 538, 2359, 1830, 701, 48, 46, 2364, 540, + /* 120 */ 1217, 2359, 1220, 1221, 402, 537, 1557, 1667, 1809, 2365, + /* 130 */ 188, 1942, 632, 2324, 2360, 657, 1750, 1638, 2363, 1555, + /* 140 */ 1640, 1641, 2360, 2362, 649, 2196, 2048, 2232, 532, 51, + /* 150 */ 112, 2198, 711, 2200, 2201, 706, 530, 701, 2363, 526, + /* 160 */ 522, 1240, 185, 1239, 2285, 405, 1633, 62, 398, 2281, + /* 170 */ 1613, 1623, 19, 163, 66, 149, 1639, 1642, 2165, 1563, + /* 180 */ 384, 1966, 190, 543, 1668, 1788, 536, 1823, 2015, 660, + /* 190 */ 2313, 1558, 125, 1556, 1241, 124, 123, 122, 121, 120, + /* 200 */ 119, 118, 117, 116, 797, 2086, 125, 15, 2197, 124, + /* 210 */ 123, 122, 121, 120, 119, 118, 117, 116, 708, 1317, + /* 220 */ 2084, 678, 103, 1561, 1562, 1787, 1612, 1615, 1616, 1617, + /* 230 */ 1618, 1619, 1620, 1621, 1622, 703, 699, 1631, 1632, 1634, + /* 240 */ 1635, 1636, 1637, 2, 1640, 1641, 2215, 1957, 1583, 134, + /* 250 */ 133, 132, 131, 130, 129, 128, 127, 126, 2165, 1319, + /* 260 */ 707, 289, 37, 400, 1662, 1663, 1664, 1665, 1666, 1670, + /* 270 */ 1671, 1672, 1673, 62, 1613, 1623, 1328, 181, 41, 40, + /* 280 */ 1639, 1642, 47, 45, 44, 43, 42, 1223, 407, 1327, + /* 290 */ 1585, 2010, 2012, 1581, 2196, 1558, 2232, 1556, 2070, 112, + /* 300 */ 2198, 711, 2200, 2201, 706, 476, 701, 62, 168, 147, + /* 310 */ 677, 151, 2256, 2285, 475, 2197, 1905, 398, 2281, 47, + /* 320 */ 45, 44, 43, 42, 289, 671, 146, 1561, 1562, 2256, + /* 330 */ 1612, 1615, 1616, 1617, 1618, 1619, 1620, 1621, 1622, 703, + /* 340 */ 699, 1631, 1632, 1634, 1635, 1636, 1637, 2, 12, 48, + /* 350 */ 46, 1582, 646, 2215, 507, 458, 2065, 402, 166, 1557, + /* 360 */ 1941, 1373, 550, 1582, 2079, 2165, 1967, 707, 1408, 1409, + /* 370 */ 1638, 1240, 1555, 1239, 411, 410, 1364, 736, 735, 734, + /* 380 */ 1368, 733, 1370, 1371, 732, 729, 140, 1379, 726, 1381, + /* 390 */ 1382, 723, 720, 717, 446, 1940, 445, 1564, 498, 1633, + /* 400 */ 690, 2196, 202, 2232, 1241, 19, 112, 2198, 711, 2200, + /* 410 */ 2201, 706, 1563, 701, 593, 592, 591, 12, 185, 10, + /* 420 */ 2285, 583, 141, 587, 398, 2281, 444, 586, 661, 2197, + /* 430 */ 289, 1584, 585, 590, 378, 377, 659, 797, 584, 708, + /* 440 */ 15, 109, 266, 652, 647, 640, 2314, 676, 2364, 181, + /* 450 */ 2017, 2359, 677, 48, 46, 1643, 2017, 368, 145, 212, + /* 460 */ 211, 402, 746, 1557, 289, 2015, 1956, 2215, 2363, 370, + /* 470 */ 2069, 2016, 2360, 2361, 1638, 552, 1555, 1640, 1641, 2165, + /* 480 */ 62, 707, 497, 41, 40, 691, 1964, 47, 45, 44, + /* 490 */ 43, 42, 651, 744, 156, 155, 741, 740, 739, 153, + /* 500 */ 2197, 1466, 1467, 1633, 675, 193, 2079, 1613, 1623, 436, + /* 510 */ 708, 746, 1832, 1639, 1642, 2196, 1563, 2232, 668, 144, + /* 520 */ 113, 2198, 711, 2200, 2201, 706, 616, 701, 1558, 656, + /* 530 */ 1556, 52, 2359, 693, 2285, 2257, 438, 434, 2215, 2282, + /* 540 */ 1563, 797, 691, 1964, 49, 14, 13, 2197, 655, 188, + /* 550 */ 2165, 737, 707, 2360, 657, 1567, 1808, 708, 2300, 2321, + /* 560 */ 1561, 1562, 56, 1612, 1615, 1616, 1617, 1618, 1619, 1620, + /* 570 */ 1621, 1622, 703, 699, 1631, 1632, 1634, 1635, 1636, 1637, + /* 580 */ 2, 1640, 1641, 288, 2297, 2215, 2196, 607, 2232, 464, + /* 590 */ 2065, 112, 2198, 711, 2200, 2201, 706, 2165, 701, 707, + /* 600 */ 605, 598, 603, 2379, 207, 2285, 2165, 491, 2065, 398, + /* 610 */ 2281, 1613, 1623, 2017, 1785, 579, 608, 1639, 1642, 578, + /* 620 */ 383, 670, 186, 2293, 2294, 2300, 142, 2298, 2015, 54, + /* 630 */ 250, 3, 1558, 2196, 1556, 2232, 205, 289, 112, 2198, + /* 640 */ 711, 2200, 2201, 706, 86, 701, 601, 85, 1681, 677, + /* 650 */ 2379, 2296, 2285, 595, 210, 1714, 398, 2281, 1780, 249, + /* 660 */ 1648, 1582, 2186, 1738, 1561, 1562, 1582, 1612, 1615, 1616, + /* 670 */ 1617, 1618, 1619, 1620, 1621, 1622, 703, 699, 1631, 1632, + /* 680 */ 1634, 1635, 1636, 1637, 2, 48, 46, 417, 289, 691, + /* 690 */ 1964, 154, 416, 402, 1332, 1557, 2159, 2011, 2012, 70, + /* 700 */ 2197, 686, 69, 2079, 630, 1807, 1638, 1331, 1555, 452, + /* 710 */ 708, 643, 642, 1736, 1737, 1739, 1740, 1741, 2188, 41, + /* 720 */ 40, 2017, 9, 47, 45, 44, 43, 42, 392, 691, + /* 730 */ 1964, 2197, 2017, 2130, 631, 1633, 2015, 2359, 2215, 397, + /* 740 */ 695, 708, 2257, 631, 691, 1964, 2359, 2015, 1563, 135, + /* 750 */ 2165, 55, 707, 2365, 188, 2165, 575, 738, 2360, 657, + /* 760 */ 2008, 1779, 2365, 188, 135, 691, 1964, 2360, 657, 2215, + /* 770 */ 12, 580, 509, 797, 298, 299, 49, 253, 1274, 297, + /* 780 */ 1585, 2165, 254, 707, 1866, 453, 2196, 1939, 2232, 48, + /* 790 */ 46, 170, 2198, 711, 2200, 2201, 706, 402, 701, 1557, + /* 800 */ 41, 40, 2151, 1806, 47, 45, 44, 43, 42, 1583, + /* 810 */ 1638, 1614, 1555, 1640, 1641, 1749, 1614, 2196, 1275, 2232, + /* 820 */ 1243, 1244, 113, 2198, 711, 2200, 2201, 706, 60, 701, + /* 830 */ 668, 144, 2300, 2325, 154, 628, 2285, 691, 1964, 1633, + /* 840 */ 2284, 2281, 1805, 1613, 1623, 691, 1964, 1528, 1529, 1639, + /* 850 */ 1642, 424, 1563, 2165, 593, 592, 591, 466, 2295, 691, + /* 860 */ 1964, 583, 141, 587, 1558, 481, 1556, 586, 405, 44, + /* 870 */ 43, 42, 585, 590, 378, 377, 166, 797, 584, 482, + /* 880 */ 15, 2197, 41, 40, 1966, 756, 47, 45, 44, 43, + /* 890 */ 42, 708, 2165, 2334, 1523, 1804, 1561, 1562, 1953, 1612, + /* 900 */ 1615, 1616, 1617, 1618, 1619, 1620, 1621, 1622, 703, 699, + /* 910 */ 1631, 1632, 1634, 1635, 1636, 1637, 2, 1640, 1641, 2215, + /* 920 */ 744, 156, 155, 741, 740, 739, 153, 571, 570, 1483, + /* 930 */ 1484, 2165, 203, 707, 286, 2293, 667, 1803, 136, 666, + /* 940 */ 1949, 2359, 1701, 668, 144, 2165, 455, 1613, 1623, 1802, + /* 950 */ 1951, 691, 1964, 1639, 1642, 573, 572, 655, 188, 456, + /* 960 */ 691, 1964, 2360, 657, 165, 1482, 1485, 2196, 1558, 2232, + /* 970 */ 1556, 551, 112, 2198, 711, 2200, 2201, 706, 1726, 701, + /* 980 */ 1961, 1585, 34, 1707, 2379, 1947, 2285, 2165, 41, 40, + /* 990 */ 398, 2281, 47, 45, 44, 43, 42, 1220, 1221, 2165, + /* 1000 */ 1561, 1562, 1863, 1612, 1615, 1616, 1617, 1618, 1619, 1620, + /* 1010 */ 1621, 1622, 703, 699, 1631, 1632, 1634, 1635, 1636, 1637, + /* 1020 */ 2, 262, 353, 167, 1580, 691, 1964, 1801, 328, 589, + /* 1030 */ 588, 489, 668, 144, 505, 90, 252, 504, 742, 1669, + /* 1040 */ 251, 2008, 325, 73, 1968, 255, 72, 187, 2293, 2294, + /* 1050 */ 1798, 142, 2298, 472, 83, 506, 137, 350, 41, 40, + /* 1060 */ 474, 1960, 47, 45, 44, 43, 42, 259, 219, 517, + /* 1070 */ 515, 512, 774, 773, 772, 771, 414, 2165, 770, 769, + /* 1080 */ 148, 764, 763, 762, 761, 760, 759, 758, 158, 754, + /* 1090 */ 753, 752, 413, 412, 749, 748, 747, 176, 175, 1797, + /* 1100 */ 2165, 93, 691, 1964, 357, 237, 371, 382, 62, 609, + /* 1110 */ 768, 766, 702, 375, 1582, 691, 1964, 35, 460, 691, + /* 1120 */ 1964, 173, 263, 691, 1964, 691, 1964, 1674, 614, 569, + /* 1130 */ 565, 561, 557, 265, 236, 674, 189, 2293, 2294, 302, + /* 1140 */ 142, 2298, 2148, 688, 1906, 689, 581, 111, 502, 2165, + /* 1150 */ 1800, 496, 495, 494, 493, 488, 487, 486, 485, 484, + /* 1160 */ 480, 479, 478, 477, 352, 469, 468, 467, 1315, 462, + /* 1170 */ 461, 369, 1796, 321, 91, 631, 1994, 234, 2359, 1795, + /* 1180 */ 2305, 1701, 376, 1557, 374, 373, 283, 577, 81, 80, + /* 1190 */ 451, 2364, 2197, 200, 2365, 188, 1555, 74, 1794, 2360, + /* 1200 */ 657, 663, 708, 2017, 638, 1566, 443, 441, 1584, 579, + /* 1210 */ 406, 691, 1964, 578, 691, 1964, 743, 351, 2015, 2008, + /* 1220 */ 432, 582, 2165, 430, 426, 422, 419, 444, 1850, 2165, + /* 1230 */ 2215, 308, 1793, 2327, 409, 757, 1563, 242, 1926, 2197, + /* 1240 */ 240, 1706, 2165, 1313, 707, 233, 227, 84, 2165, 708, + /* 1250 */ 594, 2352, 232, 548, 698, 244, 36, 246, 243, 1841, + /* 1260 */ 245, 797, 41, 40, 1614, 289, 47, 45, 44, 43, + /* 1270 */ 42, 225, 248, 1792, 1839, 247, 1791, 2215, 2196, 1790, + /* 1280 */ 2232, 596, 2165, 112, 2198, 711, 2200, 2201, 706, 2165, + /* 1290 */ 701, 707, 1773, 411, 410, 2379, 599, 2285, 611, 1565, + /* 1300 */ 610, 398, 2281, 1571, 744, 156, 155, 741, 740, 739, + /* 1310 */ 153, 154, 2197, 50, 1638, 264, 1564, 50, 750, 270, + /* 1320 */ 672, 644, 708, 2165, 2304, 2196, 2165, 2232, 154, 2165, + /* 1330 */ 112, 2198, 711, 2200, 2201, 706, 277, 701, 1782, 1783, + /* 1340 */ 1293, 50, 2379, 1633, 2285, 2197, 14, 13, 398, 2281, + /* 1350 */ 2215, 295, 1558, 408, 1556, 708, 1563, 1904, 94, 431, + /* 1360 */ 288, 166, 2165, 1569, 707, 71, 108, 631, 152, 1966, + /* 1370 */ 2359, 1526, 154, 1735, 64, 50, 105, 1734, 139, 272, + /* 1380 */ 751, 697, 1903, 2215, 1561, 1562, 2365, 188, 673, 2216, + /* 1390 */ 415, 2360, 657, 50, 1833, 2165, 715, 707, 2196, 385, + /* 1400 */ 2232, 1480, 1291, 112, 2198, 711, 2200, 2201, 706, 1659, + /* 1410 */ 701, 300, 2074, 152, 1824, 2379, 154, 2285, 138, 152, + /* 1420 */ 1829, 398, 2281, 2005, 2317, 683, 669, 285, 304, 282, + /* 1430 */ 1, 2196, 1358, 2232, 1675, 1624, 112, 2198, 711, 2200, + /* 1440 */ 2201, 706, 664, 701, 792, 5, 418, 423, 2260, 2197, + /* 1450 */ 2285, 1588, 440, 320, 398, 2281, 1386, 1568, 366, 708, + /* 1460 */ 196, 439, 442, 195, 198, 1504, 315, 1581, 457, 209, + /* 1470 */ 459, 1585, 1572, 1390, 1567, 2075, 1397, 463, 1395, 157, + /* 1480 */ 465, 500, 470, 1580, 490, 483, 2067, 2215, 492, 499, + /* 1490 */ 501, 510, 511, 514, 508, 214, 2197, 513, 216, 2165, + /* 1500 */ 213, 707, 516, 518, 1575, 1577, 708, 1586, 533, 4, + /* 1510 */ 534, 541, 544, 224, 542, 1583, 545, 699, 1631, 1632, + /* 1520 */ 1634, 1635, 1636, 1637, 1587, 546, 1589, 547, 226, 229, + /* 1530 */ 549, 553, 2139, 231, 2215, 2196, 88, 2232, 89, 235, + /* 1540 */ 112, 2198, 711, 2200, 2201, 706, 2165, 701, 707, 574, + /* 1550 */ 114, 356, 2258, 613, 2285, 576, 92, 619, 398, 2281, + /* 1560 */ 2197, 1954, 615, 239, 1950, 241, 2136, 159, 316, 160, + /* 1570 */ 708, 1952, 1948, 161, 162, 256, 618, 620, 258, 150, + /* 1580 */ 260, 1511, 2196, 626, 2232, 2197, 645, 112, 2198, 711, + /* 1590 */ 2200, 2201, 706, 2135, 701, 708, 623, 8, 2215, 694, + /* 1600 */ 276, 2285, 2318, 635, 681, 398, 2281, 2333, 625, 624, + /* 1610 */ 2165, 2328, 707, 268, 2332, 641, 388, 271, 648, 654, + /* 1620 */ 636, 2307, 633, 2215, 389, 634, 281, 279, 174, 2382, + /* 1630 */ 1701, 278, 665, 662, 2197, 2165, 1584, 707, 143, 1704, + /* 1640 */ 178, 290, 1590, 98, 705, 2080, 2196, 2301, 2232, 317, + /* 1650 */ 679, 113, 2198, 711, 2200, 2201, 706, 680, 701, 318, + /* 1660 */ 191, 685, 280, 2094, 2093, 2285, 684, 100, 102, 696, + /* 1670 */ 2281, 709, 2215, 2232, 2092, 319, 113, 2198, 711, 2200, + /* 1680 */ 2201, 706, 394, 701, 2165, 2358, 707, 61, 1965, 2266, + /* 1690 */ 2285, 104, 713, 284, 361, 2281, 2009, 1927, 2197, 311, + /* 1700 */ 793, 322, 794, 796, 53, 326, 358, 331, 708, 359, + /* 1710 */ 2157, 2156, 346, 345, 324, 2155, 335, 78, 2152, 420, + /* 1720 */ 2196, 421, 2232, 1548, 617, 343, 2198, 711, 2200, 2201, + /* 1730 */ 706, 704, 701, 692, 2250, 1549, 2215, 194, 425, 2150, + /* 1740 */ 427, 428, 800, 429, 2149, 367, 2147, 433, 2165, 2146, + /* 1750 */ 707, 435, 2145, 1539, 437, 2126, 314, 197, 2125, 199, + /* 1760 */ 2197, 79, 1507, 1506, 2107, 2106, 2105, 449, 450, 2104, + /* 1770 */ 708, 2103, 180, 1457, 2058, 2057, 2054, 201, 2053, 82, + /* 1780 */ 790, 786, 782, 778, 2196, 312, 2232, 2052, 2051, 171, + /* 1790 */ 2198, 711, 2200, 2201, 706, 2056, 701, 2197, 2215, 2055, + /* 1800 */ 204, 2050, 2049, 386, 2047, 2046, 2045, 708, 206, 2044, + /* 1810 */ 2165, 473, 707, 1459, 471, 2060, 2043, 2042, 2041, 2040, + /* 1820 */ 2039, 2038, 2037, 2036, 2035, 110, 2034, 2033, 305, 2032, + /* 1830 */ 2031, 2030, 2029, 208, 2028, 2215, 87, 2027, 2026, 2025, + /* 1840 */ 387, 658, 2380, 2059, 2024, 2023, 2196, 2165, 2232, 707, + /* 1850 */ 2022, 344, 2198, 711, 2200, 2201, 706, 2021, 701, 2020, + /* 1860 */ 2197, 687, 1329, 503, 2019, 2018, 1869, 1868, 1333, 215, + /* 1870 */ 708, 1325, 217, 354, 1867, 1865, 355, 2197, 1862, 1861, + /* 1880 */ 521, 525, 519, 2196, 523, 2232, 1854, 708, 344, 2198, + /* 1890 */ 711, 2200, 2201, 706, 529, 701, 292, 218, 2215, 1843, + /* 1900 */ 520, 524, 528, 291, 527, 531, 1819, 76, 2185, 1222, + /* 1910 */ 2165, 1818, 707, 220, 2124, 2215, 182, 222, 2114, 77, + /* 1920 */ 183, 2102, 257, 539, 228, 230, 2101, 2165, 2078, 707, + /* 1930 */ 1943, 1864, 1267, 1860, 1858, 554, 555, 556, 558, 559, + /* 1940 */ 560, 1856, 562, 563, 564, 1853, 2196, 566, 2232, 2197, + /* 1950 */ 1838, 337, 2198, 711, 2200, 2201, 706, 567, 701, 708, + /* 1960 */ 1836, 568, 1837, 2196, 1835, 2232, 2197, 1815, 171, 2198, + /* 1970 */ 711, 2200, 2201, 706, 1945, 701, 705, 1402, 1401, 1944, + /* 1980 */ 765, 1316, 1314, 1312, 1311, 1851, 1310, 2215, 1309, 1308, + /* 1990 */ 1305, 1303, 393, 63, 238, 653, 2197, 379, 1304, 2165, + /* 2000 */ 1302, 707, 767, 1842, 2215, 380, 708, 1840, 597, 381, + /* 2010 */ 1814, 600, 1813, 2197, 606, 602, 2165, 604, 707, 1812, + /* 2020 */ 115, 2381, 29, 708, 1533, 1535, 1532, 1537, 2123, 1513, + /* 2030 */ 57, 1517, 67, 1515, 2215, 2196, 2113, 2232, 621, 401, + /* 2040 */ 344, 2198, 711, 2200, 2201, 706, 2165, 701, 707, 2100, + /* 2050 */ 164, 2215, 2196, 2099, 2232, 622, 403, 343, 2198, 711, + /* 2060 */ 2200, 2201, 706, 2165, 701, 707, 2251, 261, 1492, 627, + /* 2070 */ 629, 2364, 1752, 20, 1491, 2197, 17, 269, 6, 7, + /* 2080 */ 639, 31, 2196, 21, 2232, 708, 22, 344, 2198, 711, + /* 2090 */ 2200, 2201, 706, 2197, 701, 274, 267, 637, 172, 2196, + /* 2100 */ 273, 2232, 1733, 708, 344, 2198, 711, 2200, 2201, 706, + /* 2110 */ 1725, 701, 32, 2215, 275, 33, 2186, 1772, 95, 23, + /* 2120 */ 65, 1773, 24, 1767, 2197, 2165, 1766, 707, 390, 1698, + /* 2130 */ 1771, 2215, 1770, 391, 708, 2098, 1697, 287, 2077, 177, + /* 2140 */ 2197, 96, 97, 2165, 59, 707, 293, 18, 25, 296, + /* 2150 */ 708, 2076, 294, 105, 1731, 2197, 306, 301, 68, 682, + /* 2160 */ 99, 612, 2215, 2232, 101, 708, 339, 2198, 711, 2200, + /* 2170 */ 2201, 706, 303, 701, 2165, 58, 707, 26, 2215, 2196, + /* 2180 */ 1650, 2232, 11, 1649, 329, 2198, 711, 2200, 2201, 706, + /* 2190 */ 2165, 701, 707, 2215, 13, 1573, 179, 192, 1605, 2235, + /* 2200 */ 712, 714, 404, 718, 2197, 2165, 1628, 707, 700, 1660, + /* 2210 */ 2196, 1626, 2232, 39, 708, 327, 2198, 711, 2200, 2201, + /* 2220 */ 706, 16, 701, 1625, 1597, 27, 2196, 710, 2232, 28, + /* 2230 */ 2197, 330, 2198, 711, 2200, 2201, 706, 716, 701, 719, + /* 2240 */ 708, 2196, 2215, 2232, 1387, 1384, 336, 2198, 711, 2200, + /* 2250 */ 2201, 706, 1383, 701, 2165, 2197, 707, 721, 722, 724, + /* 2260 */ 1380, 725, 727, 1374, 728, 708, 1372, 730, 2215, 1378, + /* 2270 */ 1377, 1376, 731, 106, 309, 107, 1396, 1375, 75, 1392, + /* 2280 */ 2165, 1265, 707, 745, 1297, 1296, 1295, 1294, 1292, 1290, + /* 2290 */ 2196, 1289, 2232, 2215, 1288, 340, 2198, 711, 2200, 2201, + /* 2300 */ 706, 1323, 701, 755, 310, 2165, 1286, 707, 1285, 1284, + /* 2310 */ 1283, 1282, 1281, 1280, 1320, 1318, 2196, 1277, 2232, 2197, + /* 2320 */ 1276, 332, 2198, 711, 2200, 2201, 706, 1273, 701, 708, + /* 2330 */ 2197, 1272, 1271, 1270, 1859, 775, 776, 1857, 777, 779, + /* 2340 */ 708, 2196, 781, 2232, 780, 1855, 341, 2198, 711, 2200, + /* 2350 */ 2201, 706, 785, 701, 783, 784, 2197, 2215, 1852, 787, + /* 2360 */ 788, 789, 1834, 791, 1212, 1811, 708, 795, 2215, 2165, + /* 2370 */ 313, 707, 1559, 323, 798, 799, 1786, 1786, 1786, 1786, + /* 2380 */ 2165, 1786, 707, 1786, 1786, 1786, 1786, 1786, 1786, 2197, + /* 2390 */ 1786, 1786, 1786, 1786, 2215, 1786, 1786, 1786, 1786, 708, + /* 2400 */ 1786, 1786, 1786, 1786, 1786, 2196, 2165, 2232, 707, 1786, + /* 2410 */ 333, 2198, 711, 2200, 2201, 706, 2196, 701, 2232, 1786, + /* 2420 */ 1786, 342, 2198, 711, 2200, 2201, 706, 2215, 701, 1786, + /* 2430 */ 1786, 1786, 1786, 1786, 1786, 1786, 2197, 1786, 1786, 2165, + /* 2440 */ 1786, 707, 2196, 1786, 2232, 1786, 708, 334, 2198, 711, + /* 2450 */ 2200, 2201, 706, 1786, 701, 1786, 2197, 1786, 1786, 1786, + /* 2460 */ 1786, 1786, 1786, 1786, 1786, 1786, 708, 1786, 1786, 1786, + /* 2470 */ 1786, 1786, 1786, 1786, 2215, 2196, 1786, 2232, 1786, 1786, + /* 2480 */ 347, 2198, 711, 2200, 2201, 706, 2165, 701, 707, 1786, + /* 2490 */ 1786, 1786, 1786, 1786, 2215, 1786, 1786, 1786, 1786, 1786, + /* 2500 */ 1786, 1786, 1786, 1786, 1786, 2197, 2165, 1786, 707, 1786, + /* 2510 */ 1786, 1786, 1786, 1786, 1786, 708, 1786, 1786, 1786, 1786, + /* 2520 */ 1786, 1786, 2196, 1786, 2232, 1786, 1786, 348, 2198, 711, + /* 2530 */ 2200, 2201, 706, 1786, 701, 2197, 1786, 1786, 1786, 1786, + /* 2540 */ 1786, 1786, 2196, 2215, 2232, 708, 1786, 2209, 2198, 711, + /* 2550 */ 2200, 2201, 706, 1786, 701, 2165, 1786, 707, 1786, 1786, + /* 2560 */ 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, + /* 2570 */ 1786, 1786, 1786, 2215, 1786, 1786, 1786, 1786, 1786, 1786, + /* 2580 */ 1786, 1786, 1786, 1786, 2197, 2165, 1786, 707, 1786, 1786, + /* 2590 */ 1786, 2196, 1786, 2232, 708, 1786, 2208, 2198, 711, 2200, + /* 2600 */ 2201, 706, 1786, 701, 1786, 1786, 1786, 1786, 2197, 1786, + /* 2610 */ 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 708, 1786, + /* 2620 */ 1786, 2196, 2215, 2232, 1786, 1786, 2207, 2198, 711, 2200, + /* 2630 */ 2201, 706, 1786, 701, 2165, 2197, 707, 1786, 1786, 1786, + /* 2640 */ 1786, 1786, 1786, 1786, 1786, 708, 2215, 1786, 1786, 1786, + /* 2650 */ 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 2165, 2197, + /* 2660 */ 707, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 708, + /* 2670 */ 2196, 1786, 2232, 2215, 1786, 363, 2198, 711, 2200, 2201, + /* 2680 */ 706, 1786, 701, 1786, 1786, 2165, 1786, 707, 1786, 1786, + /* 2690 */ 1786, 1786, 1786, 1786, 2196, 1786, 2232, 2215, 1786, 364, + /* 2700 */ 2198, 711, 2200, 2201, 706, 1786, 701, 1786, 1786, 2165, + /* 2710 */ 1786, 707, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, + /* 2720 */ 1786, 2196, 1786, 2232, 1786, 2197, 360, 2198, 711, 2200, + /* 2730 */ 2201, 706, 1786, 701, 1786, 708, 1786, 1786, 1786, 1786, + /* 2740 */ 1786, 1786, 1786, 1786, 1786, 2196, 1786, 2232, 2197, 1786, + /* 2750 */ 365, 2198, 711, 2200, 2201, 706, 1786, 701, 708, 1786, + /* 2760 */ 1786, 1786, 1786, 2215, 1786, 1786, 1786, 1786, 1786, 1786, + /* 2770 */ 1786, 1786, 1786, 1786, 1786, 2165, 1786, 707, 1786, 1786, + /* 2780 */ 1786, 1786, 1786, 1786, 1786, 1786, 2215, 1786, 1786, 1786, + /* 2790 */ 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 2165, 1786, + /* 2800 */ 707, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, + /* 2810 */ 1786, 709, 1786, 2232, 1786, 1786, 339, 2198, 711, 2200, + /* 2820 */ 2201, 706, 1786, 701, 1786, 1786, 1786, 1786, 1786, 1786, + /* 2830 */ 1786, 1786, 1786, 1786, 2196, 1786, 2232, 1786, 1786, 338, + /* 2840 */ 2198, 711, 2200, 2201, 706, 1786, 701, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 345, 384, 371, 397, 415, 354, 355, 451, 452, 420, - /* 10 */ 355, 415, 12, 13, 14, 409, 385, 345, 412, 413, - /* 20 */ 20, 20, 22, 8, 9, 374, 395, 12, 13, 14, - /* 30 */ 15, 16, 381, 33, 22, 35, 8, 9, 383, 14, - /* 40 */ 12, 13, 14, 15, 16, 20, 371, 35, 20, 20, - /* 50 */ 395, 462, 397, 20, 465, 342, 39, 371, 462, 345, - /* 60 */ 385, 465, 62, 20, 433, 434, 4, 395, 68, 355, - /* 70 */ 395, 385, 483, 484, 443, 75, 20, 488, 489, 483, - /* 80 */ 484, 395, 364, 68, 488, 489, 431, 20, 433, 22, - /* 90 */ 372, 436, 437, 438, 439, 440, 441, 383, 443, 375, - /* 100 */ 100, 20, 383, 103, 3, 354, 355, 383, 433, 395, - /* 110 */ 383, 397, 100, 20, 390, 391, 12, 13, 443, 433, - /* 120 */ 53, 20, 398, 404, 20, 374, 22, 112, 415, 443, - /* 130 */ 403, 404, 381, 420, 479, 480, 103, 33, 350, 35, - /* 140 */ 140, 141, 354, 354, 356, 431, 103, 433, 354, 355, - /* 150 */ 436, 437, 438, 439, 440, 441, 67, 443, 397, 103, - /* 160 */ 396, 397, 448, 103, 450, 103, 62, 103, 454, 455, - /* 170 */ 170, 171, 68, 412, 413, 462, 176, 177, 465, 75, - /* 180 */ 354, 355, 468, 20, 169, 0, 349, 49, 399, 352, - /* 190 */ 353, 191, 478, 193, 0, 57, 483, 484, 60, 61, - /* 200 */ 172, 488, 489, 67, 100, 104, 21, 103, 345, 24, - /* 210 */ 25, 26, 27, 28, 29, 30, 31, 32, 355, 14, - /* 220 */ 169, 140, 141, 223, 224, 20, 226, 227, 228, 229, + /* 0 */ 342, 346, 368, 347, 349, 350, 412, 351, 360, 353, + /* 10 */ 352, 417, 12, 13, 14, 351, 382, 341, 368, 343, + /* 20 */ 20, 20, 22, 8, 9, 377, 392, 12, 13, 14, + /* 30 */ 15, 16, 382, 33, 386, 35, 448, 449, 380, 394, + /* 40 */ 8, 9, 392, 368, 12, 13, 14, 15, 16, 342, + /* 50 */ 392, 406, 394, 459, 409, 410, 462, 382, 379, 342, + /* 60 */ 396, 352, 62, 412, 430, 431, 20, 392, 68, 352, + /* 70 */ 391, 372, 478, 479, 440, 75, 44, 483, 484, 380, + /* 80 */ 430, 4, 459, 68, 20, 462, 428, 388, 430, 380, + /* 90 */ 440, 433, 434, 435, 436, 437, 438, 380, 440, 392, + /* 100 */ 100, 478, 479, 103, 103, 430, 483, 484, 347, 392, + /* 110 */ 459, 394, 351, 462, 353, 440, 12, 13, 459, 14, + /* 120 */ 43, 462, 45, 46, 20, 20, 22, 112, 342, 478, + /* 130 */ 479, 0, 474, 475, 483, 484, 104, 33, 479, 35, + /* 140 */ 140, 141, 483, 484, 435, 428, 0, 430, 49, 103, + /* 150 */ 433, 434, 435, 436, 437, 438, 57, 440, 3, 60, + /* 160 */ 61, 20, 445, 22, 447, 372, 62, 103, 451, 452, + /* 170 */ 170, 171, 68, 380, 4, 44, 176, 177, 392, 75, + /* 180 */ 387, 388, 465, 346, 169, 0, 349, 350, 395, 44, + /* 190 */ 473, 191, 21, 193, 53, 24, 25, 26, 27, 28, + /* 200 */ 29, 30, 31, 32, 100, 394, 21, 103, 342, 24, + /* 210 */ 25, 26, 27, 28, 29, 30, 31, 32, 352, 35, + /* 220 */ 409, 410, 358, 223, 224, 0, 226, 227, 228, 229, /* 230 */ 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, - /* 240 */ 240, 241, 242, 243, 140, 141, 383, 12, 13, 14, - /* 250 */ 15, 16, 458, 459, 460, 3, 462, 463, 395, 465, - /* 260 */ 397, 67, 247, 248, 249, 250, 251, 252, 253, 254, - /* 270 */ 255, 256, 257, 172, 170, 171, 259, 483, 484, 103, - /* 280 */ 176, 177, 488, 489, 458, 459, 460, 135, 462, 463, - /* 290 */ 20, 139, 22, 260, 431, 191, 433, 193, 247, 436, - /* 300 */ 437, 438, 439, 440, 441, 35, 443, 20, 257, 446, - /* 310 */ 354, 448, 449, 450, 383, 345, 260, 454, 455, 244, - /* 320 */ 260, 390, 260, 53, 260, 355, 114, 223, 224, 398, + /* 240 */ 240, 241, 242, 243, 140, 141, 380, 383, 20, 24, + /* 250 */ 25, 26, 27, 28, 29, 30, 31, 32, 392, 75, + /* 260 */ 394, 260, 247, 248, 249, 250, 251, 252, 253, 254, + /* 270 */ 255, 256, 257, 103, 170, 171, 22, 380, 8, 9, + /* 280 */ 176, 177, 12, 13, 14, 15, 16, 14, 390, 35, + /* 290 */ 20, 393, 394, 20, 428, 191, 430, 193, 401, 433, + /* 300 */ 434, 435, 436, 437, 438, 159, 440, 103, 361, 443, + /* 310 */ 351, 445, 446, 447, 168, 342, 369, 451, 452, 12, + /* 320 */ 13, 14, 15, 16, 260, 352, 443, 223, 224, 446, /* 330 */ 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, /* 340 */ 236, 237, 238, 239, 240, 241, 242, 243, 244, 12, - /* 350 */ 13, 48, 200, 383, 383, 203, 75, 20, 206, 22, - /* 360 */ 208, 390, 406, 100, 408, 395, 190, 397, 192, 398, - /* 370 */ 33, 393, 35, 349, 396, 397, 352, 353, 115, 116, - /* 380 */ 117, 118, 119, 120, 121, 122, 123, 124, 62, 126, - /* 390 */ 127, 128, 129, 130, 131, 132, 354, 355, 222, 62, - /* 400 */ 363, 431, 175, 433, 4, 68, 436, 437, 438, 439, - /* 410 */ 440, 441, 75, 443, 70, 71, 72, 380, 448, 114, - /* 420 */ 450, 77, 78, 79, 454, 455, 389, 83, 102, 345, - /* 430 */ 62, 105, 88, 89, 90, 91, 260, 100, 94, 355, - /* 440 */ 103, 357, 344, 43, 346, 45, 46, 382, 478, 0, - /* 450 */ 354, 355, 355, 12, 13, 14, 350, 170, 171, 394, - /* 460 */ 354, 20, 356, 22, 8, 9, 75, 383, 12, 13, - /* 470 */ 14, 15, 16, 105, 33, 172, 35, 140, 141, 395, - /* 480 */ 383, 397, 179, 21, 354, 355, 24, 25, 26, 27, - /* 490 */ 28, 29, 30, 31, 32, 114, 269, 270, 271, 345, - /* 500 */ 458, 459, 460, 62, 462, 463, 14, 170, 171, 355, - /* 510 */ 375, 357, 20, 176, 177, 431, 75, 433, 383, 186, - /* 520 */ 436, 437, 438, 439, 440, 441, 391, 443, 191, 384, - /* 530 */ 193, 401, 448, 383, 450, 438, 284, 383, 454, 455, - /* 540 */ 390, 100, 354, 355, 103, 164, 213, 214, 398, 395, - /* 550 */ 44, 397, 0, 457, 458, 459, 460, 134, 462, 463, - /* 560 */ 223, 224, 374, 226, 227, 228, 229, 230, 231, 232, + /* 350 */ 13, 20, 175, 380, 100, 351, 352, 20, 380, 22, + /* 360 */ 0, 100, 403, 20, 405, 392, 388, 394, 140, 141, + /* 370 */ 33, 20, 35, 22, 12, 13, 115, 116, 117, 118, + /* 380 */ 119, 120, 121, 122, 123, 124, 35, 126, 127, 128, + /* 390 */ 129, 130, 131, 132, 190, 0, 192, 35, 84, 62, + /* 400 */ 20, 428, 398, 430, 53, 68, 433, 434, 435, 436, + /* 410 */ 437, 438, 75, 440, 70, 71, 72, 244, 445, 246, + /* 420 */ 447, 77, 78, 79, 451, 452, 222, 83, 283, 342, + /* 430 */ 260, 20, 88, 89, 90, 91, 281, 100, 94, 352, + /* 440 */ 103, 358, 172, 266, 267, 268, 473, 20, 459, 380, + /* 450 */ 380, 462, 351, 12, 13, 14, 380, 387, 375, 145, + /* 460 */ 146, 20, 67, 22, 260, 395, 383, 380, 479, 400, + /* 470 */ 401, 395, 483, 484, 33, 67, 35, 140, 141, 392, + /* 480 */ 103, 394, 168, 8, 9, 351, 352, 12, 13, 14, + /* 490 */ 15, 16, 20, 133, 134, 135, 136, 137, 138, 139, + /* 500 */ 342, 170, 171, 62, 403, 371, 405, 170, 171, 186, + /* 510 */ 352, 67, 354, 176, 177, 428, 75, 430, 351, 352, + /* 520 */ 433, 434, 435, 436, 437, 438, 114, 440, 191, 459, + /* 530 */ 193, 103, 462, 444, 447, 446, 213, 214, 380, 452, + /* 540 */ 75, 100, 351, 352, 103, 1, 2, 342, 478, 479, + /* 550 */ 392, 114, 394, 483, 484, 193, 342, 352, 432, 354, + /* 560 */ 223, 224, 371, 226, 227, 228, 229, 230, 231, 232, /* 570 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, - /* 580 */ 243, 140, 141, 354, 355, 431, 415, 433, 1, 2, - /* 590 */ 436, 437, 438, 439, 440, 441, 223, 443, 12, 13, - /* 600 */ 354, 355, 448, 374, 450, 244, 345, 246, 454, 455, - /* 610 */ 104, 170, 171, 345, 354, 355, 355, 176, 177, 14, - /* 620 */ 374, 35, 70, 71, 72, 20, 84, 204, 205, 77, - /* 630 */ 78, 79, 191, 462, 193, 83, 465, 354, 355, 183, - /* 640 */ 88, 89, 90, 91, 383, 421, 94, 274, 275, 276, - /* 650 */ 277, 278, 279, 280, 483, 484, 395, 374, 397, 488, - /* 660 */ 489, 401, 170, 395, 223, 224, 217, 226, 227, 228, + /* 580 */ 243, 140, 141, 172, 458, 380, 428, 21, 430, 351, + /* 590 */ 352, 433, 434, 435, 436, 437, 438, 392, 440, 394, + /* 600 */ 34, 4, 36, 445, 62, 447, 392, 351, 352, 451, + /* 610 */ 452, 170, 171, 380, 339, 133, 19, 176, 177, 137, + /* 620 */ 387, 454, 455, 456, 457, 432, 459, 460, 395, 42, + /* 630 */ 33, 44, 191, 428, 193, 430, 398, 260, 433, 434, + /* 640 */ 435, 436, 437, 438, 102, 440, 49, 105, 104, 351, + /* 650 */ 445, 458, 447, 56, 398, 14, 451, 452, 183, 62, + /* 660 */ 14, 20, 47, 223, 223, 224, 20, 226, 227, 228, /* 670 */ 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, - /* 680 */ 239, 240, 241, 242, 243, 12, 13, 145, 146, 354, - /* 690 */ 355, 104, 431, 20, 433, 22, 0, 436, 437, 438, - /* 700 */ 439, 440, 441, 384, 443, 447, 33, 449, 35, 448, - /* 710 */ 168, 450, 384, 33, 20, 454, 455, 435, 54, 55, - /* 720 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 49, - /* 730 */ 0, 345, 37, 354, 355, 62, 401, 57, 58, 59, - /* 740 */ 60, 355, 62, 461, 354, 289, 261, 262, 75, 264, - /* 750 */ 8, 9, 345, 374, 12, 13, 14, 15, 16, 8, - /* 760 */ 9, 345, 375, 12, 13, 14, 15, 16, 363, 383, - /* 770 */ 383, 354, 355, 100, 35, 170, 103, 383, 391, 193, - /* 780 */ 21, 395, 102, 397, 390, 105, 44, 354, 355, 12, - /* 790 */ 13, 374, 398, 34, 389, 36, 406, 20, 408, 22, - /* 800 */ 375, 106, 395, 108, 109, 435, 111, 374, 383, 372, - /* 810 */ 33, 395, 35, 140, 141, 446, 391, 431, 449, 433, - /* 820 */ 354, 20, 436, 437, 438, 439, 440, 441, 133, 443, - /* 830 */ 4, 461, 137, 346, 140, 141, 450, 134, 135, 62, - /* 840 */ 454, 455, 139, 170, 171, 19, 104, 354, 355, 176, - /* 850 */ 177, 384, 75, 173, 174, 104, 354, 355, 383, 33, - /* 860 */ 180, 181, 359, 360, 191, 390, 193, 374, 22, 361, - /* 870 */ 176, 177, 406, 398, 408, 49, 374, 100, 4, 199, - /* 880 */ 103, 35, 56, 345, 345, 447, 378, 449, 62, 159, - /* 890 */ 359, 360, 415, 355, 386, 357, 223, 224, 168, 226, + /* 680 */ 239, 240, 241, 242, 243, 12, 13, 412, 260, 351, + /* 690 */ 352, 44, 417, 20, 22, 22, 412, 393, 394, 102, + /* 700 */ 342, 403, 105, 405, 48, 342, 33, 35, 35, 371, + /* 710 */ 352, 271, 272, 273, 274, 275, 276, 277, 103, 8, + /* 720 */ 9, 380, 39, 12, 13, 14, 15, 16, 387, 351, + /* 730 */ 352, 342, 380, 376, 459, 62, 395, 462, 380, 387, + /* 740 */ 444, 352, 446, 459, 351, 352, 462, 395, 75, 371, + /* 750 */ 392, 104, 394, 478, 479, 392, 378, 389, 483, 484, + /* 760 */ 392, 286, 478, 479, 371, 351, 352, 483, 484, 380, + /* 770 */ 244, 378, 100, 100, 134, 135, 103, 134, 35, 139, + /* 780 */ 20, 392, 425, 394, 0, 371, 428, 0, 430, 12, + /* 790 */ 13, 433, 434, 435, 436, 437, 438, 20, 440, 22, + /* 800 */ 8, 9, 0, 342, 12, 13, 14, 15, 16, 20, + /* 810 */ 33, 170, 35, 140, 141, 104, 170, 428, 75, 430, + /* 820 */ 54, 55, 433, 434, 435, 436, 437, 438, 172, 440, + /* 830 */ 351, 352, 432, 475, 44, 179, 447, 351, 352, 62, + /* 840 */ 451, 452, 342, 170, 171, 351, 352, 204, 205, 176, + /* 850 */ 177, 49, 75, 392, 70, 71, 72, 371, 458, 351, + /* 860 */ 352, 77, 78, 79, 191, 371, 193, 83, 372, 14, + /* 870 */ 15, 16, 88, 89, 90, 91, 380, 100, 94, 371, + /* 880 */ 103, 342, 8, 9, 388, 75, 12, 13, 14, 15, + /* 890 */ 16, 352, 392, 354, 104, 342, 223, 224, 381, 226, /* 900 */ 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, - /* 910 */ 237, 238, 239, 240, 241, 242, 243, 140, 141, 8, - /* 920 */ 9, 383, 345, 12, 13, 14, 15, 16, 102, 354, - /* 930 */ 355, 105, 193, 395, 395, 397, 435, 462, 379, 462, - /* 940 */ 465, 345, 465, 14, 15, 16, 100, 170, 171, 374, - /* 950 */ 368, 369, 383, 176, 177, 35, 476, 477, 483, 484, - /* 960 */ 483, 484, 461, 488, 489, 488, 489, 398, 191, 431, - /* 970 */ 193, 433, 395, 172, 436, 437, 438, 439, 440, 441, - /* 980 */ 492, 443, 20, 345, 261, 262, 448, 428, 450, 345, - /* 990 */ 345, 395, 454, 455, 0, 75, 361, 345, 345, 44, + /* 910 */ 237, 238, 239, 240, 241, 242, 243, 140, 141, 380, + /* 920 */ 133, 134, 135, 136, 137, 138, 139, 356, 357, 140, + /* 930 */ 141, 392, 172, 394, 455, 456, 457, 342, 459, 460, + /* 940 */ 381, 462, 259, 351, 352, 392, 22, 170, 171, 342, + /* 950 */ 381, 351, 352, 176, 177, 356, 357, 478, 479, 35, + /* 960 */ 351, 352, 483, 484, 172, 176, 177, 428, 191, 430, + /* 970 */ 193, 371, 433, 434, 435, 436, 437, 438, 104, 440, + /* 980 */ 371, 20, 2, 4, 445, 381, 447, 392, 8, 9, + /* 990 */ 451, 452, 12, 13, 14, 15, 16, 45, 46, 392, /* 1000 */ 223, 224, 0, 226, 227, 228, 229, 230, 231, 232, /* 1010 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, - /* 1020 */ 243, 386, 18, 18, 20, 354, 355, 345, 23, 354, - /* 1030 */ 355, 27, 462, 395, 30, 465, 20, 33, 384, 395, - /* 1040 */ 395, 392, 37, 38, 395, 374, 41, 395, 395, 374, - /* 1050 */ 345, 384, 345, 49, 484, 51, 405, 52, 488, 489, - /* 1060 */ 56, 133, 134, 135, 136, 137, 138, 139, 63, 64, - /* 1070 */ 65, 66, 70, 71, 72, 73, 74, 395, 76, 77, + /* 1020 */ 243, 418, 18, 18, 20, 351, 352, 342, 23, 365, + /* 1030 */ 366, 27, 351, 352, 30, 360, 135, 33, 389, 169, + /* 1040 */ 139, 392, 37, 38, 381, 371, 41, 455, 456, 457, + /* 1050 */ 342, 459, 460, 49, 42, 51, 44, 52, 8, 9, + /* 1060 */ 56, 386, 12, 13, 14, 15, 16, 381, 63, 64, + /* 1070 */ 65, 66, 70, 71, 72, 73, 74, 392, 76, 77, /* 1080 */ 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, - /* 1090 */ 88, 89, 90, 91, 92, 93, 94, 95, 96, 383, - /* 1100 */ 395, 133, 395, 368, 369, 137, 102, 391, 103, 392, - /* 1110 */ 392, 20, 395, 395, 376, 8, 9, 379, 114, 12, - /* 1120 */ 13, 14, 15, 16, 481, 354, 355, 133, 134, 135, - /* 1130 */ 136, 137, 138, 139, 172, 370, 8, 9, 373, 265, - /* 1140 */ 12, 13, 14, 15, 16, 374, 462, 142, 144, 465, - /* 1150 */ 358, 147, 148, 149, 150, 151, 152, 153, 154, 155, - /* 1160 */ 156, 157, 158, 159, 160, 161, 162, 163, 484, 165, - /* 1170 */ 166, 167, 488, 489, 462, 45, 46, 465, 345, 354, - /* 1180 */ 355, 345, 12, 13, 354, 355, 170, 345, 183, 184, - /* 1190 */ 185, 44, 22, 188, 345, 483, 484, 0, 345, 374, - /* 1200 */ 488, 489, 44, 33, 374, 35, 201, 202, 355, 22, - /* 1210 */ 357, 104, 0, 354, 355, 354, 355, 212, 258, 259, - /* 1220 */ 215, 22, 35, 218, 219, 220, 221, 222, 395, 345, - /* 1230 */ 68, 395, 62, 374, 35, 374, 383, 395, 42, 355, - /* 1240 */ 44, 357, 44, 288, 395, 75, 49, 42, 395, 44, - /* 1250 */ 397, 107, 107, 13, 110, 110, 44, 107, 13, 345, - /* 1260 */ 110, 107, 104, 172, 110, 260, 0, 383, 35, 355, - /* 1270 */ 100, 357, 473, 44, 75, 35, 0, 140, 141, 395, - /* 1280 */ 35, 397, 0, 207, 431, 209, 433, 371, 22, 436, - /* 1290 */ 437, 438, 439, 440, 441, 371, 443, 383, 22, 100, - /* 1300 */ 172, 448, 104, 450, 22, 44, 103, 454, 455, 395, - /* 1310 */ 476, 397, 44, 1, 2, 431, 113, 433, 383, 47, - /* 1320 */ 436, 437, 438, 439, 440, 441, 13, 443, 44, 44, - /* 1330 */ 2, 44, 448, 104, 450, 44, 8, 9, 454, 455, - /* 1340 */ 12, 13, 14, 15, 16, 431, 345, 433, 35, 13, - /* 1350 */ 436, 437, 438, 439, 440, 441, 355, 443, 0, 44, - /* 1360 */ 44, 191, 448, 193, 450, 104, 345, 2, 454, 455, - /* 1370 */ 44, 35, 104, 8, 9, 103, 355, 12, 13, 14, - /* 1380 */ 15, 16, 358, 44, 383, 223, 44, 44, 104, 104, - /* 1390 */ 191, 104, 193, 223, 224, 104, 395, 414, 397, 353, - /* 1400 */ 405, 394, 355, 44, 383, 405, 236, 237, 238, 239, - /* 1410 */ 240, 241, 242, 464, 456, 345, 395, 44, 397, 104, - /* 1420 */ 104, 44, 223, 224, 44, 355, 193, 485, 35, 0, - /* 1430 */ 104, 467, 431, 286, 433, 345, 416, 436, 437, 438, - /* 1440 */ 439, 440, 441, 104, 443, 355, 104, 104, 266, 448, - /* 1450 */ 49, 450, 431, 383, 433, 454, 455, 436, 437, 438, - /* 1460 */ 439, 440, 441, 104, 443, 395, 432, 397, 75, 448, - /* 1470 */ 20, 450, 430, 383, 425, 454, 455, 104, 363, 50, - /* 1480 */ 206, 104, 425, 363, 104, 395, 189, 397, 20, 418, - /* 1490 */ 355, 133, 134, 135, 136, 137, 138, 139, 42, 402, - /* 1500 */ 20, 431, 415, 433, 345, 405, 436, 437, 438, 439, - /* 1510 */ 440, 441, 355, 443, 355, 402, 169, 400, 20, 354, - /* 1520 */ 450, 431, 355, 433, 454, 455, 436, 437, 438, 439, - /* 1530 */ 440, 441, 354, 443, 402, 101, 345, 366, 400, 400, - /* 1540 */ 450, 367, 383, 99, 454, 455, 355, 354, 365, 462, - /* 1550 */ 98, 20, 465, 48, 395, 354, 397, 347, 354, 351, - /* 1560 */ 354, 347, 351, 363, 20, 425, 397, 20, 20, 345, - /* 1570 */ 483, 484, 363, 356, 383, 488, 489, 417, 363, 355, - /* 1580 */ 354, 356, 363, 363, 363, 363, 395, 395, 397, 347, - /* 1590 */ 431, 347, 433, 354, 210, 436, 437, 438, 439, 440, - /* 1600 */ 441, 442, 443, 444, 445, 429, 383, 383, 395, 103, - /* 1610 */ 383, 383, 427, 383, 383, 383, 345, 383, 383, 395, - /* 1620 */ 383, 397, 431, 361, 433, 197, 355, 436, 437, 438, - /* 1630 */ 439, 440, 441, 383, 443, 345, 383, 196, 395, 361, - /* 1640 */ 195, 425, 424, 397, 395, 355, 354, 273, 272, 472, - /* 1650 */ 395, 410, 472, 405, 383, 431, 405, 433, 395, 423, - /* 1660 */ 436, 437, 438, 439, 440, 441, 395, 443, 397, 422, - /* 1670 */ 416, 281, 395, 383, 450, 410, 182, 475, 388, 455, - /* 1680 */ 283, 490, 491, 267, 282, 395, 416, 397, 290, 285, - /* 1690 */ 287, 259, 355, 20, 263, 435, 345, 356, 20, 361, - /* 1700 */ 493, 361, 431, 408, 433, 395, 355, 436, 437, 438, - /* 1710 */ 439, 440, 441, 410, 443, 345, 395, 395, 395, 395, - /* 1720 */ 395, 431, 361, 433, 472, 355, 436, 437, 438, 439, - /* 1730 */ 440, 441, 474, 443, 383, 471, 174, 470, 469, 388, - /* 1740 */ 410, 466, 407, 487, 361, 486, 395, 379, 397, 355, - /* 1750 */ 103, 480, 453, 383, 103, 395, 387, 361, 373, 354, - /* 1760 */ 36, 348, 345, 419, 411, 395, 347, 397, 411, 377, - /* 1770 */ 362, 426, 355, 343, 0, 0, 377, 377, 0, 42, - /* 1780 */ 0, 35, 431, 345, 433, 216, 35, 436, 437, 438, - /* 1790 */ 439, 440, 441, 355, 443, 35, 35, 216, 0, 35, - /* 1800 */ 383, 431, 35, 433, 216, 0, 436, 437, 438, 439, - /* 1810 */ 440, 441, 395, 443, 397, 216, 0, 35, 0, 22, - /* 1820 */ 0, 383, 35, 211, 0, 199, 388, 200, 199, 193, - /* 1830 */ 191, 0, 0, 395, 0, 397, 0, 187, 186, 0, - /* 1840 */ 0, 0, 47, 0, 0, 0, 47, 0, 431, 345, - /* 1850 */ 433, 42, 482, 436, 437, 438, 439, 440, 441, 355, - /* 1860 */ 443, 0, 0, 0, 47, 0, 0, 0, 0, 431, - /* 1870 */ 0, 433, 345, 159, 436, 437, 438, 439, 440, 441, - /* 1880 */ 0, 443, 355, 35, 159, 0, 0, 383, 0, 0, - /* 1890 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 395, - /* 1900 */ 0, 397, 0, 0, 47, 0, 42, 0, 491, 0, - /* 1910 */ 383, 0, 0, 0, 0, 388, 0, 0, 0, 143, - /* 1920 */ 0, 22, 395, 0, 397, 48, 22, 48, 22, 0, - /* 1930 */ 0, 62, 0, 62, 62, 431, 345, 433, 14, 1, - /* 1940 */ 436, 437, 438, 439, 440, 441, 355, 443, 0, 445, - /* 1950 */ 35, 0, 0, 0, 35, 0, 35, 19, 431, 49, - /* 1960 */ 433, 39, 35, 436, 437, 438, 439, 440, 441, 35, - /* 1970 */ 443, 33, 39, 345, 383, 49, 39, 49, 0, 388, - /* 1980 */ 39, 0, 42, 355, 0, 0, 395, 49, 397, 44, - /* 1990 */ 47, 47, 0, 47, 40, 57, 58, 59, 60, 39, - /* 2000 */ 62, 39, 0, 345, 182, 0, 0, 0, 69, 0, - /* 2010 */ 35, 383, 49, 355, 0, 39, 49, 35, 39, 0, - /* 2020 */ 49, 35, 431, 395, 433, 397, 0, 436, 437, 438, - /* 2030 */ 439, 440, 441, 39, 443, 35, 39, 49, 0, 0, - /* 2040 */ 102, 383, 0, 105, 0, 0, 0, 112, 35, 22, - /* 2050 */ 345, 0, 110, 395, 44, 397, 35, 35, 35, 431, - /* 2060 */ 355, 433, 44, 35, 436, 437, 438, 439, 440, 441, - /* 2070 */ 35, 443, 345, 0, 22, 35, 138, 22, 35, 0, - /* 2080 */ 22, 51, 355, 35, 35, 35, 0, 22, 383, 431, - /* 2090 */ 3, 433, 35, 0, 436, 437, 438, 439, 440, 441, - /* 2100 */ 395, 443, 397, 35, 0, 35, 0, 22, 20, 35, - /* 2110 */ 383, 173, 104, 35, 103, 35, 0, 35, 180, 172, - /* 2120 */ 103, 22, 395, 198, 397, 0, 0, 22, 0, 172, - /* 2130 */ 3, 48, 103, 174, 101, 104, 431, 199, 433, 345, - /* 2140 */ 172, 436, 437, 438, 439, 440, 441, 44, 443, 355, - /* 2150 */ 194, 178, 345, 99, 44, 172, 48, 104, 431, 103, - /* 2160 */ 433, 44, 355, 436, 437, 438, 439, 440, 441, 178, - /* 2170 */ 443, 104, 345, 104, 103, 103, 268, 383, 44, 104, - /* 2180 */ 104, 44, 355, 47, 103, 47, 44, 103, 35, 395, - /* 2190 */ 383, 397, 103, 35, 103, 35, 104, 35, 104, 268, - /* 2200 */ 35, 345, 395, 35, 397, 0, 104, 44, 47, 0, - /* 2210 */ 383, 355, 39, 104, 103, 103, 47, 268, 47, 258, - /* 2220 */ 0, 103, 395, 104, 397, 431, 104, 433, 39, 47, - /* 2230 */ 436, 437, 438, 439, 440, 441, 103, 443, 431, 383, - /* 2240 */ 433, 44, 103, 436, 437, 438, 439, 440, 441, 103, - /* 2250 */ 443, 395, 101, 397, 113, 101, 22, 245, 431, 223, - /* 2260 */ 433, 2, 103, 436, 437, 438, 439, 440, 441, 103, - /* 2270 */ 443, 175, 47, 173, 104, 47, 104, 103, 22, 104, - /* 2280 */ 103, 345, 103, 35, 104, 225, 103, 431, 104, 433, - /* 2290 */ 114, 355, 436, 437, 438, 439, 440, 441, 35, 443, - /* 2300 */ 104, 103, 35, 345, 103, 35, 104, 103, 35, 35, - /* 2310 */ 104, 103, 35, 355, 345, 104, 103, 125, 104, 383, - /* 2320 */ 103, 103, 44, 35, 355, 125, 103, 103, 125, 22, - /* 2330 */ 69, 395, 345, 397, 68, 125, 35, 35, 35, 35, - /* 2340 */ 35, 383, 355, 35, 35, 35, 75, 97, 35, 35, - /* 2350 */ 44, 35, 383, 395, 22, 397, 35, 35, 35, 75, - /* 2360 */ 35, 35, 35, 35, 395, 35, 397, 431, 22, 433, - /* 2370 */ 383, 35, 436, 437, 438, 439, 440, 441, 0, 443, - /* 2380 */ 35, 39, 395, 49, 397, 0, 35, 49, 39, 431, - /* 2390 */ 0, 433, 35, 49, 436, 437, 438, 439, 440, 441, - /* 2400 */ 431, 443, 433, 39, 0, 436, 437, 438, 439, 440, - /* 2410 */ 441, 345, 443, 39, 35, 49, 0, 35, 431, 35, - /* 2420 */ 433, 355, 345, 436, 437, 438, 439, 440, 441, 0, - /* 2430 */ 443, 22, 355, 21, 21, 345, 22, 22, 20, 494, - /* 2440 */ 494, 494, 494, 494, 494, 355, 345, 494, 494, 383, - /* 2450 */ 494, 494, 494, 494, 494, 494, 355, 494, 494, 494, - /* 2460 */ 383, 395, 494, 397, 494, 494, 494, 494, 494, 494, - /* 2470 */ 494, 494, 395, 383, 397, 494, 494, 494, 494, 494, - /* 2480 */ 494, 494, 494, 494, 383, 395, 494, 397, 494, 494, - /* 2490 */ 494, 494, 494, 494, 494, 494, 395, 431, 397, 433, - /* 2500 */ 494, 494, 436, 437, 438, 439, 440, 441, 431, 443, - /* 2510 */ 433, 494, 345, 436, 437, 438, 439, 440, 441, 494, - /* 2520 */ 443, 431, 355, 433, 494, 494, 436, 437, 438, 439, - /* 2530 */ 440, 441, 431, 443, 433, 345, 494, 436, 437, 438, - /* 2540 */ 439, 440, 441, 494, 443, 355, 494, 494, 494, 494, - /* 2550 */ 383, 494, 494, 494, 494, 494, 494, 494, 494, 494, - /* 2560 */ 494, 494, 395, 494, 397, 494, 494, 494, 494, 494, - /* 2570 */ 494, 494, 494, 383, 494, 494, 494, 494, 494, 494, - /* 2580 */ 494, 494, 494, 494, 345, 395, 494, 397, 494, 494, - /* 2590 */ 494, 494, 494, 494, 355, 494, 494, 494, 431, 345, - /* 2600 */ 433, 494, 494, 436, 437, 438, 439, 440, 441, 355, - /* 2610 */ 443, 494, 494, 494, 345, 494, 494, 494, 494, 494, - /* 2620 */ 494, 431, 383, 433, 355, 494, 436, 437, 438, 439, - /* 2630 */ 440, 441, 494, 443, 395, 494, 397, 383, 494, 494, - /* 2640 */ 494, 494, 494, 494, 494, 494, 494, 494, 494, 395, - /* 2650 */ 494, 397, 383, 494, 494, 494, 494, 494, 494, 494, - /* 2660 */ 494, 494, 494, 494, 395, 494, 397, 494, 494, 494, - /* 2670 */ 431, 494, 433, 494, 494, 436, 437, 438, 439, 440, - /* 2680 */ 441, 494, 443, 494, 494, 431, 494, 433, 345, 494, - /* 2690 */ 436, 437, 438, 439, 440, 441, 494, 443, 355, 494, - /* 2700 */ 431, 494, 433, 494, 494, 436, 437, 438, 439, 440, - /* 2710 */ 441, 494, 443, 494, 494, 494, 494, 494, 494, 494, - /* 2720 */ 494, 494, 494, 494, 494, 494, 383, 494, 494, 494, - /* 2730 */ 494, 494, 494, 494, 494, 494, 494, 494, 395, 494, - /* 2740 */ 397, 494, 494, 494, 494, 494, 494, 494, 494, 494, - /* 2750 */ 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, - /* 2760 */ 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, - /* 2770 */ 494, 494, 494, 494, 431, 494, 433, 494, 494, 436, - /* 2780 */ 437, 438, 439, 440, 441, 494, 443, 342, 342, 342, - /* 2790 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2800 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2810 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2820 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2830 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2840 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2850 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2860 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2870 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2880 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2890 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2900 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2910 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2920 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2930 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2940 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2950 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2960 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2970 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2980 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 2990 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 3000 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 3010 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 3020 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 3030 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 3040 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 3050 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 3060 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 3070 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 3080 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 3090 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 3100 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 3110 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, - /* 3120 */ 342, 342, 342, 342, 342, 342, 342, 342, 342, + /* 1090 */ 88, 89, 90, 91, 92, 93, 94, 95, 96, 342, + /* 1100 */ 392, 200, 351, 352, 203, 33, 102, 206, 103, 208, + /* 1110 */ 365, 366, 381, 37, 20, 351, 352, 247, 114, 351, + /* 1120 */ 352, 49, 371, 351, 352, 351, 352, 257, 412, 57, + /* 1130 */ 58, 59, 60, 172, 62, 371, 455, 456, 457, 371, + /* 1140 */ 459, 460, 0, 371, 369, 371, 13, 142, 144, 392, + /* 1150 */ 343, 147, 148, 149, 150, 151, 152, 153, 154, 155, + /* 1160 */ 156, 157, 158, 159, 160, 161, 162, 163, 35, 165, + /* 1170 */ 166, 167, 342, 373, 102, 459, 376, 105, 462, 342, + /* 1180 */ 258, 259, 106, 22, 108, 109, 487, 111, 183, 184, + /* 1190 */ 185, 3, 342, 188, 478, 479, 35, 114, 342, 483, + /* 1200 */ 484, 44, 352, 380, 354, 35, 201, 202, 20, 133, + /* 1210 */ 387, 351, 352, 137, 351, 352, 389, 212, 395, 392, + /* 1220 */ 215, 13, 392, 218, 219, 220, 221, 222, 0, 392, + /* 1230 */ 380, 371, 342, 402, 371, 367, 75, 107, 370, 342, + /* 1240 */ 110, 262, 392, 35, 394, 173, 174, 164, 392, 352, + /* 1250 */ 22, 354, 180, 181, 68, 107, 2, 107, 110, 0, + /* 1260 */ 110, 100, 8, 9, 170, 260, 12, 13, 14, 15, + /* 1270 */ 16, 199, 107, 342, 0, 110, 342, 380, 428, 342, + /* 1280 */ 430, 22, 392, 433, 434, 435, 436, 437, 438, 392, + /* 1290 */ 440, 394, 104, 12, 13, 445, 22, 447, 207, 35, + /* 1300 */ 209, 451, 452, 22, 133, 134, 135, 136, 137, 138, + /* 1310 */ 139, 44, 342, 44, 33, 62, 35, 44, 13, 44, + /* 1320 */ 412, 476, 352, 392, 354, 428, 392, 430, 44, 392, + /* 1330 */ 433, 434, 435, 436, 437, 438, 470, 440, 140, 141, + /* 1340 */ 35, 44, 445, 62, 447, 342, 1, 2, 451, 452, + /* 1350 */ 380, 44, 191, 372, 193, 352, 75, 368, 105, 217, + /* 1360 */ 172, 380, 392, 193, 394, 44, 103, 459, 44, 388, + /* 1370 */ 462, 104, 44, 104, 44, 44, 113, 104, 355, 104, + /* 1380 */ 13, 100, 368, 380, 223, 224, 478, 479, 104, 380, + /* 1390 */ 355, 483, 484, 44, 0, 392, 44, 394, 428, 411, + /* 1400 */ 430, 104, 35, 433, 434, 435, 436, 437, 438, 223, + /* 1410 */ 440, 104, 402, 44, 350, 445, 44, 447, 44, 44, + /* 1420 */ 352, 451, 452, 391, 402, 104, 461, 480, 104, 453, + /* 1430 */ 464, 428, 104, 430, 104, 104, 433, 434, 435, 436, + /* 1440 */ 437, 438, 285, 440, 50, 263, 413, 49, 445, 342, + /* 1450 */ 447, 20, 422, 104, 451, 452, 104, 193, 429, 352, + /* 1460 */ 360, 206, 422, 427, 360, 189, 415, 20, 352, 42, + /* 1470 */ 399, 20, 191, 104, 193, 402, 104, 352, 104, 104, + /* 1480 */ 399, 169, 397, 20, 352, 351, 351, 380, 399, 397, + /* 1490 */ 397, 101, 364, 362, 99, 351, 342, 98, 351, 392, + /* 1500 */ 363, 394, 351, 351, 223, 224, 352, 20, 344, 48, + /* 1510 */ 348, 344, 422, 360, 348, 20, 394, 236, 237, 238, + /* 1520 */ 239, 240, 241, 242, 20, 353, 20, 414, 360, 360, + /* 1530 */ 353, 351, 392, 360, 380, 428, 360, 430, 360, 360, + /* 1540 */ 433, 434, 435, 436, 437, 438, 392, 440, 394, 344, + /* 1550 */ 351, 344, 445, 210, 447, 380, 103, 197, 451, 452, + /* 1560 */ 342, 380, 426, 380, 380, 380, 392, 380, 422, 380, + /* 1570 */ 352, 380, 380, 380, 380, 358, 196, 421, 420, 424, + /* 1580 */ 358, 195, 428, 351, 430, 342, 270, 433, 434, 435, + /* 1590 */ 436, 437, 438, 392, 440, 352, 394, 278, 380, 445, + /* 1600 */ 471, 447, 402, 392, 269, 451, 452, 469, 413, 419, + /* 1610 */ 392, 402, 394, 407, 469, 392, 392, 407, 392, 182, + /* 1620 */ 280, 472, 264, 380, 287, 279, 413, 467, 469, 488, + /* 1630 */ 259, 468, 284, 282, 342, 392, 20, 394, 352, 261, + /* 1640 */ 353, 358, 20, 358, 352, 405, 428, 432, 430, 407, + /* 1650 */ 392, 433, 434, 435, 436, 437, 438, 392, 440, 407, + /* 1660 */ 463, 404, 466, 392, 392, 447, 174, 358, 358, 451, + /* 1670 */ 452, 428, 380, 430, 392, 376, 433, 434, 435, 436, + /* 1680 */ 437, 438, 392, 440, 392, 482, 394, 103, 352, 450, + /* 1690 */ 447, 103, 384, 481, 451, 452, 392, 370, 342, 358, + /* 1700 */ 36, 351, 345, 344, 416, 340, 408, 374, 352, 408, + /* 1710 */ 0, 0, 423, 374, 359, 0, 374, 42, 0, 35, + /* 1720 */ 428, 216, 430, 35, 1, 433, 434, 435, 436, 437, + /* 1730 */ 438, 439, 440, 441, 442, 35, 380, 35, 216, 0, + /* 1740 */ 35, 35, 19, 216, 0, 216, 0, 35, 392, 0, + /* 1750 */ 394, 22, 0, 211, 35, 0, 33, 199, 0, 199, + /* 1760 */ 342, 200, 193, 191, 0, 0, 0, 187, 186, 0, + /* 1770 */ 352, 0, 49, 47, 0, 0, 0, 47, 0, 42, + /* 1780 */ 57, 58, 59, 60, 428, 62, 430, 0, 0, 433, + /* 1790 */ 434, 435, 436, 437, 438, 0, 440, 342, 380, 0, + /* 1800 */ 47, 0, 0, 385, 0, 0, 0, 352, 159, 0, + /* 1810 */ 392, 159, 394, 22, 35, 0, 0, 0, 0, 0, + /* 1820 */ 0, 0, 0, 0, 0, 102, 0, 0, 105, 0, + /* 1830 */ 0, 0, 0, 47, 0, 380, 42, 0, 0, 0, + /* 1840 */ 385, 485, 486, 0, 0, 0, 428, 392, 430, 394, + /* 1850 */ 0, 433, 434, 435, 436, 437, 438, 0, 440, 0, + /* 1860 */ 342, 138, 22, 143, 0, 0, 0, 0, 22, 62, + /* 1870 */ 352, 35, 62, 48, 0, 0, 48, 342, 0, 0, + /* 1880 */ 39, 39, 35, 428, 35, 430, 0, 352, 433, 434, + /* 1890 */ 435, 436, 437, 438, 39, 440, 173, 62, 380, 0, + /* 1900 */ 49, 49, 49, 180, 35, 35, 0, 39, 47, 14, + /* 1910 */ 392, 0, 394, 42, 0, 380, 44, 40, 0, 39, + /* 1920 */ 47, 0, 199, 47, 39, 182, 0, 392, 0, 394, + /* 1930 */ 0, 0, 69, 0, 0, 35, 49, 39, 35, 49, + /* 1940 */ 39, 0, 35, 49, 39, 0, 428, 35, 430, 342, + /* 1950 */ 0, 433, 434, 435, 436, 437, 438, 49, 440, 352, + /* 1960 */ 0, 39, 0, 428, 0, 430, 342, 0, 433, 434, + /* 1970 */ 435, 436, 437, 438, 0, 440, 352, 35, 22, 0, + /* 1980 */ 44, 35, 35, 35, 35, 0, 35, 380, 35, 35, + /* 1990 */ 35, 22, 385, 112, 110, 477, 342, 22, 35, 392, + /* 2000 */ 35, 394, 44, 0, 380, 22, 352, 0, 51, 22, + /* 2010 */ 0, 35, 0, 342, 22, 35, 392, 35, 394, 0, + /* 2020 */ 20, 486, 103, 352, 35, 35, 35, 104, 0, 35, + /* 2030 */ 172, 198, 103, 22, 380, 428, 0, 430, 22, 385, + /* 2040 */ 433, 434, 435, 436, 437, 438, 392, 440, 394, 0, + /* 2050 */ 194, 380, 428, 0, 430, 172, 385, 433, 434, 435, + /* 2060 */ 436, 437, 438, 392, 440, 394, 442, 174, 172, 178, + /* 2070 */ 178, 3, 104, 44, 172, 342, 265, 104, 48, 48, + /* 2080 */ 99, 103, 428, 44, 430, 352, 44, 433, 434, 435, + /* 2090 */ 436, 437, 438, 342, 440, 44, 103, 101, 103, 428, + /* 2100 */ 103, 430, 104, 352, 433, 434, 435, 436, 437, 438, + /* 2110 */ 104, 440, 103, 380, 47, 44, 47, 104, 103, 265, + /* 2120 */ 3, 104, 44, 35, 342, 392, 35, 394, 35, 104, + /* 2130 */ 35, 380, 35, 35, 352, 0, 104, 47, 0, 47, + /* 2140 */ 342, 103, 39, 392, 44, 394, 47, 265, 103, 103, + /* 2150 */ 352, 0, 104, 113, 104, 342, 47, 103, 103, 175, + /* 2160 */ 39, 428, 380, 430, 103, 352, 433, 434, 435, 436, + /* 2170 */ 437, 438, 173, 440, 392, 258, 394, 44, 380, 428, + /* 2180 */ 101, 430, 245, 101, 433, 434, 435, 436, 437, 438, + /* 2190 */ 392, 440, 394, 380, 2, 22, 47, 47, 22, 103, + /* 2200 */ 114, 35, 35, 35, 342, 392, 104, 394, 103, 223, + /* 2210 */ 428, 104, 430, 103, 352, 433, 434, 435, 436, 437, + /* 2220 */ 438, 103, 440, 104, 104, 103, 428, 225, 430, 103, + /* 2230 */ 342, 433, 434, 435, 436, 437, 438, 103, 440, 103, + /* 2240 */ 352, 428, 380, 430, 104, 104, 433, 434, 435, 436, + /* 2250 */ 437, 438, 104, 440, 392, 342, 394, 35, 103, 35, + /* 2260 */ 104, 103, 35, 104, 103, 352, 104, 35, 380, 125, + /* 2270 */ 125, 125, 103, 103, 44, 103, 35, 125, 103, 22, + /* 2280 */ 392, 69, 394, 68, 35, 35, 35, 35, 35, 35, + /* 2290 */ 428, 35, 430, 380, 35, 433, 434, 435, 436, 437, + /* 2300 */ 438, 75, 440, 97, 44, 392, 35, 394, 35, 35, + /* 2310 */ 22, 35, 35, 35, 75, 35, 428, 35, 430, 342, + /* 2320 */ 35, 433, 434, 435, 436, 437, 438, 35, 440, 352, + /* 2330 */ 342, 35, 22, 35, 0, 35, 49, 0, 39, 35, + /* 2340 */ 352, 428, 39, 430, 49, 0, 433, 434, 435, 436, + /* 2350 */ 437, 438, 39, 440, 35, 49, 342, 380, 0, 35, + /* 2360 */ 49, 39, 0, 35, 35, 0, 352, 21, 380, 392, + /* 2370 */ 22, 394, 22, 22, 21, 20, 489, 489, 489, 489, + /* 2380 */ 392, 489, 394, 489, 489, 489, 489, 489, 489, 342, + /* 2390 */ 489, 489, 489, 489, 380, 489, 489, 489, 489, 352, + /* 2400 */ 489, 489, 489, 489, 489, 428, 392, 430, 394, 489, + /* 2410 */ 433, 434, 435, 436, 437, 438, 428, 440, 430, 489, + /* 2420 */ 489, 433, 434, 435, 436, 437, 438, 380, 440, 489, + /* 2430 */ 489, 489, 489, 489, 489, 489, 342, 489, 489, 392, + /* 2440 */ 489, 394, 428, 489, 430, 489, 352, 433, 434, 435, + /* 2450 */ 436, 437, 438, 489, 440, 489, 342, 489, 489, 489, + /* 2460 */ 489, 489, 489, 489, 489, 489, 352, 489, 489, 489, + /* 2470 */ 489, 489, 489, 489, 380, 428, 489, 430, 489, 489, + /* 2480 */ 433, 434, 435, 436, 437, 438, 392, 440, 394, 489, + /* 2490 */ 489, 489, 489, 489, 380, 489, 489, 489, 489, 489, + /* 2500 */ 489, 489, 489, 489, 489, 342, 392, 489, 394, 489, + /* 2510 */ 489, 489, 489, 489, 489, 352, 489, 489, 489, 489, + /* 2520 */ 489, 489, 428, 489, 430, 489, 489, 433, 434, 435, + /* 2530 */ 436, 437, 438, 489, 440, 342, 489, 489, 489, 489, + /* 2540 */ 489, 489, 428, 380, 430, 352, 489, 433, 434, 435, + /* 2550 */ 436, 437, 438, 489, 440, 392, 489, 394, 489, 489, + /* 2560 */ 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, + /* 2570 */ 489, 489, 489, 380, 489, 489, 489, 489, 489, 489, + /* 2580 */ 489, 489, 489, 489, 342, 392, 489, 394, 489, 489, + /* 2590 */ 489, 428, 489, 430, 352, 489, 433, 434, 435, 436, + /* 2600 */ 437, 438, 489, 440, 489, 489, 489, 489, 342, 489, + /* 2610 */ 489, 489, 489, 489, 489, 489, 489, 489, 352, 489, + /* 2620 */ 489, 428, 380, 430, 489, 489, 433, 434, 435, 436, + /* 2630 */ 437, 438, 489, 440, 392, 342, 394, 489, 489, 489, + /* 2640 */ 489, 489, 489, 489, 489, 352, 380, 489, 489, 489, + /* 2650 */ 489, 489, 489, 489, 489, 489, 489, 489, 392, 342, + /* 2660 */ 394, 489, 489, 489, 489, 489, 489, 489, 489, 352, + /* 2670 */ 428, 489, 430, 380, 489, 433, 434, 435, 436, 437, + /* 2680 */ 438, 489, 440, 489, 489, 392, 489, 394, 489, 489, + /* 2690 */ 489, 489, 489, 489, 428, 489, 430, 380, 489, 433, + /* 2700 */ 434, 435, 436, 437, 438, 489, 440, 489, 489, 392, + /* 2710 */ 489, 394, 489, 489, 489, 489, 489, 489, 489, 489, + /* 2720 */ 489, 428, 489, 430, 489, 342, 433, 434, 435, 436, + /* 2730 */ 437, 438, 489, 440, 489, 352, 489, 489, 489, 489, + /* 2740 */ 489, 489, 489, 489, 489, 428, 489, 430, 342, 489, + /* 2750 */ 433, 434, 435, 436, 437, 438, 489, 440, 352, 489, + /* 2760 */ 489, 489, 489, 380, 489, 489, 489, 489, 489, 489, + /* 2770 */ 489, 489, 489, 489, 489, 392, 489, 394, 489, 489, + /* 2780 */ 489, 489, 489, 489, 489, 489, 380, 489, 489, 489, + /* 2790 */ 489, 489, 489, 489, 489, 489, 489, 489, 392, 489, + /* 2800 */ 394, 489, 489, 489, 489, 489, 489, 489, 489, 489, + /* 2810 */ 489, 428, 489, 430, 489, 489, 433, 434, 435, 436, + /* 2820 */ 437, 438, 489, 440, 489, 489, 489, 489, 489, 489, + /* 2830 */ 489, 489, 489, 489, 428, 489, 430, 489, 489, 433, + /* 2840 */ 434, 435, 436, 437, 438, 489, 440, 339, 339, 339, + /* 2850 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 2860 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 2870 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 2880 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 2890 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 2900 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 2910 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 2920 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 2930 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 2940 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 2950 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 2960 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 2970 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 2980 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 2990 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3000 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3010 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3020 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3030 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3040 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3050 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3060 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3070 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3080 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3090 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3100 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3110 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3120 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3130 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3140 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3150 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3160 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3170 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, + /* 3180 */ 339, 339, 339, 339, 339, 339, }; -#define YY_SHIFT_COUNT (806) +#define YY_SHIFT_COUNT (800) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (2429) +#define YY_SHIFT_MAX (2365) static const unsigned short int yy_shift_ofst[] = { /* 0 */ 1005, 0, 104, 0, 337, 337, 337, 337, 337, 337, /* 10 */ 337, 337, 337, 337, 337, 337, 441, 673, 673, 777, /* 20 */ 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, /* 30 */ 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, /* 40 */ 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, - /* 50 */ 673, 33, 56, 176, 43, 60, 64, 60, 43, 43, - /* 60 */ 60, 1170, 60, 1170, 1170, 62, 60, 1, 694, 29, - /* 70 */ 29, 694, 400, 400, 287, 81, 25, 25, 29, 29, - /* 80 */ 29, 29, 29, 29, 29, 29, 29, 29, 93, 29, - /* 90 */ 29, 89, 1, 29, 29, 163, 1, 29, 93, 29, - /* 100 */ 93, 1, 29, 29, 1, 29, 1, 1, 1, 29, - /* 110 */ 136, 1004, 15, 15, 344, 462, 1199, 1199, 1199, 1199, - /* 120 */ 1199, 1199, 1199, 1199, 1199, 1199, 1199, 1199, 1199, 1199, - /* 130 */ 1199, 1199, 1199, 1199, 1199, 695, 101, 287, 81, 664, - /* 140 */ 664, 920, 723, 801, 801, 801, 194, 361, 361, 920, - /* 150 */ 89, 212, 75, 1, 281, 1, 281, 281, 305, 391, - /* 160 */ 263, 263, 263, 263, 263, 263, 263, 263, 1938, 552, - /* 170 */ 185, 28, 456, 373, 270, 227, 586, 586, 485, 492, - /* 180 */ 303, 605, 67, 962, 1130, 205, 968, 1091, 960, 17, - /* 190 */ 252, 960, 1196, 874, 1016, 1182, 1401, 1450, 1274, 89, - /* 200 */ 1450, 89, 1297, 1468, 1456, 1480, 1468, 1456, 1347, 1498, - /* 210 */ 1468, 1498, 1456, 1347, 1347, 1434, 1444, 1498, 1452, 1498, - /* 220 */ 1498, 1498, 1531, 1505, 1531, 1505, 1450, 89, 1544, 89, - /* 230 */ 1547, 1548, 89, 1547, 89, 89, 89, 1498, 89, 1531, - /* 240 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - /* 250 */ 1, 1498, 1531, 281, 281, 281, 1384, 1506, 1450, 136, - /* 260 */ 1428, 1441, 1544, 136, 1445, 1182, 1498, 1480, 1480, 281, - /* 270 */ 1374, 1376, 281, 1374, 1376, 281, 281, 1, 1390, 1494, - /* 280 */ 1374, 1397, 1402, 1416, 1182, 1398, 1403, 1404, 1432, 1468, - /* 290 */ 1673, 1431, 1547, 136, 136, 1678, 1376, 281, 281, 281, - /* 300 */ 281, 281, 1376, 281, 1562, 136, 305, 136, 1468, 1647, - /* 310 */ 1651, 281, 391, 1498, 136, 1724, 1531, 2787, 2787, 2787, - /* 320 */ 2787, 2787, 2787, 2787, 2787, 2787, 1002, 680, 696, 742, - /* 330 */ 826, 751, 1107, 994, 1328, 1365, 1128, 1358, 911, 911, - /* 340 */ 911, 911, 911, 911, 911, 911, 911, 928, 152, 235, - /* 350 */ 235, 542, 138, 333, 730, 326, 12, 846, 759, 423, - /* 360 */ 703, 703, 929, 587, 51, 929, 929, 929, 1197, 449, - /* 370 */ 506, 1187, 1205, 381, 1212, 1144, 1145, 1150, 1154, 1240, - /* 380 */ 1245, 1266, 1276, 1282, 1076, 1158, 1198, 368, 1229, 1261, - /* 390 */ 1268, 1137, 1147, 955, 1284, 1285, 1287, 1291, 1316, 1326, - /* 400 */ 1312, 1315, 1162, 1339, 1272, 1342, 1343, 1359, 1373, 1377, - /* 410 */ 1380, 1203, 739, 1233, 1313, 1336, 1393, 1429, 1774, 1775, - /* 420 */ 1778, 1737, 1780, 1746, 1569, 1751, 1760, 1761, 1581, 1798, - /* 430 */ 1764, 1767, 1588, 1805, 1599, 1816, 1782, 1818, 1797, 1820, - /* 440 */ 1787, 1612, 1824, 1626, 1834, 1629, 1627, 1636, 1639, 1831, - /* 450 */ 1832, 1836, 1650, 1652, 1839, 1840, 1795, 1841, 1843, 1844, - /* 460 */ 1799, 1845, 1809, 1847, 1861, 1862, 1817, 1863, 1865, 1866, - /* 470 */ 1867, 1868, 1870, 1714, 1848, 1880, 1725, 1885, 1886, 1888, - /* 480 */ 1889, 1890, 1891, 1892, 1893, 1894, 1895, 1896, 1897, 1898, - /* 490 */ 1900, 1902, 1903, 1857, 1905, 1864, 1907, 1909, 1911, 1912, - /* 500 */ 1913, 1914, 1899, 1916, 1917, 1918, 1776, 1920, 1923, 1904, - /* 510 */ 1877, 1906, 1879, 1929, 1869, 1915, 1930, 1871, 1932, 1872, - /* 520 */ 1948, 1951, 1919, 1910, 1922, 1952, 1921, 1926, 1933, 1953, - /* 530 */ 1927, 1928, 1937, 1955, 1934, 1978, 1940, 1941, 1945, 1943, - /* 540 */ 1944, 1924, 1946, 1981, 1954, 1960, 1984, 1985, 1992, 1962, - /* 550 */ 1822, 2002, 2005, 2006, 1939, 2007, 2009, 1975, 1963, 1976, - /* 560 */ 2014, 1982, 1967, 1979, 2019, 1986, 1971, 1994, 2026, 2000, - /* 570 */ 1988, 1997, 2038, 2039, 2042, 2044, 2045, 2046, 1935, 1942, - /* 580 */ 2013, 2027, 2051, 2021, 2022, 2023, 2028, 2035, 2040, 2043, - /* 590 */ 2010, 2018, 2048, 2049, 2052, 2050, 2073, 2055, 2079, 2058, - /* 600 */ 2030, 2086, 2065, 2057, 2093, 2068, 2104, 2070, 2106, 2085, - /* 610 */ 2088, 2074, 2078, 2080, 2008, 2011, 2116, 1947, 2017, 1925, - /* 620 */ 2082, 2099, 2125, 1956, 2105, 1957, 1959, 2126, 2128, 1968, - /* 630 */ 1973, 1983, 1991, 2087, 2031, 2029, 2053, 2056, 2103, 1908, - /* 640 */ 2071, 2067, 2072, 2083, 2033, 2108, 2054, 2069, 2110, 2117, - /* 650 */ 2075, 2081, 2084, 2089, 2076, 2134, 2136, 2138, 2091, 2137, - /* 660 */ 1931, 2092, 2094, 2127, 2142, 1949, 2153, 2158, 2160, 2162, - /* 670 */ 2165, 2168, 2102, 2109, 2161, 1961, 2163, 2169, 2205, 2209, - /* 680 */ 2111, 2173, 1943, 2171, 2112, 2119, 2122, 2118, 2133, 2096, - /* 690 */ 2139, 2220, 2189, 2100, 2146, 2141, 1943, 2182, 2197, 2151, - /* 700 */ 2012, 2154, 2259, 2234, 2036, 2159, 2170, 2166, 2172, 2174, - /* 710 */ 2175, 2225, 2177, 2179, 2228, 2180, 2256, 2060, 2183, 2176, - /* 720 */ 2184, 2248, 2263, 2198, 2196, 2267, 2201, 2202, 2270, 2204, - /* 730 */ 2206, 2273, 2208, 2211, 2274, 2213, 2214, 2277, 2217, 2192, - /* 740 */ 2200, 2203, 2210, 2218, 2278, 2223, 2288, 2224, 2278, 2278, - /* 750 */ 2307, 2261, 2266, 2301, 2302, 2303, 2304, 2305, 2308, 2309, - /* 760 */ 2310, 2271, 2250, 2306, 2313, 2314, 2316, 2332, 2321, 2322, - /* 770 */ 2323, 2284, 2010, 2325, 2018, 2326, 2327, 2328, 2330, 2346, - /* 780 */ 2336, 2378, 2345, 2334, 2342, 2385, 2351, 2338, 2349, 2390, - /* 790 */ 2357, 2344, 2364, 2404, 2379, 2366, 2374, 2416, 2382, 2384, - /* 800 */ 2429, 2409, 2412, 2414, 2415, 2413, 2418, + /* 50 */ 673, 1, 64, 204, 46, 377, 428, 377, 46, 46, + /* 60 */ 377, 1281, 377, 1281, 1281, 170, 377, 343, 789, 380, + /* 70 */ 380, 789, 77, 77, 331, 228, 105, 105, 380, 380, + /* 80 */ 380, 380, 380, 380, 380, 380, 380, 380, 427, 380, + /* 90 */ 380, 408, 343, 380, 380, 472, 343, 380, 427, 380, + /* 100 */ 427, 343, 380, 380, 343, 380, 343, 343, 343, 380, + /* 110 */ 444, 1004, 15, 15, 344, 171, 1161, 1161, 1161, 1161, + /* 120 */ 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, 1161, + /* 130 */ 1161, 1161, 1161, 1161, 1161, 1076, 1188, 331, 228, 766, + /* 140 */ 766, 184, 411, 411, 411, 395, 173, 173, 184, 408, + /* 150 */ 412, 526, 343, 465, 343, 465, 465, 437, 810, 261, + /* 160 */ 261, 261, 261, 261, 261, 261, 261, 1723, 784, 185, + /* 170 */ 270, 475, 440, 351, 177, 362, 362, 641, 656, 646, + /* 180 */ 141, 760, 952, 273, 482, 961, 922, 683, 155, 922, + /* 190 */ 587, 979, 1094, 1182, 1398, 1431, 1255, 408, 1431, 408, + /* 200 */ 1276, 1447, 1427, 1451, 1447, 1427, 1312, 1463, 1447, 1463, + /* 210 */ 1427, 1312, 1312, 1390, 1395, 1463, 1399, 1463, 1463, 1463, + /* 220 */ 1487, 1461, 1487, 1461, 1431, 408, 1495, 408, 1504, 1506, + /* 230 */ 408, 1504, 408, 408, 408, 1463, 408, 1487, 343, 343, + /* 240 */ 343, 343, 343, 343, 343, 343, 343, 343, 343, 1463, + /* 250 */ 1487, 465, 465, 465, 1343, 1453, 1431, 444, 1360, 1380, + /* 260 */ 1495, 444, 1386, 1182, 1463, 1451, 1451, 465, 1316, 1335, + /* 270 */ 465, 1316, 1335, 465, 465, 343, 1319, 1437, 1316, 1340, + /* 280 */ 1346, 1358, 1182, 1337, 1348, 1351, 1371, 1447, 1616, 1378, + /* 290 */ 1504, 444, 444, 1622, 1335, 465, 465, 465, 465, 465, + /* 300 */ 1335, 465, 1492, 444, 437, 444, 1447, 1584, 1588, 465, + /* 310 */ 810, 1463, 444, 1664, 1487, 2847, 2847, 2847, 2847, 2847, + /* 320 */ 2847, 2847, 2847, 2847, 1002, 1072, 225, 32, 597, 711, + /* 330 */ 874, 360, 980, 1254, 792, 787, 1050, 1050, 1050, 1050, + /* 340 */ 1050, 1050, 1050, 1050, 1050, 1171, 901, 307, 307, 314, + /* 350 */ 99, 323, 146, 542, 254, 672, 566, 643, 640, 640, + /* 360 */ 855, 544, 870, 855, 855, 855, 802, 1142, 647, 924, + /* 370 */ 1012, 1083, 131, 1130, 1148, 1150, 1165, 1133, 1208, 1228, + /* 380 */ 1259, 1274, 1091, 790, 1267, 1253, 1269, 1273, 1275, 1198, + /* 390 */ 145, 1157, 1284, 1297, 1307, 1321, 1324, 1328, 1345, 1330, + /* 400 */ 1186, 1331, 615, 1349, 1352, 1369, 1372, 1374, 1375, 1263, + /* 410 */ 1170, 1264, 1305, 1367, 743, 1394, 1710, 1711, 1715, 1675, + /* 420 */ 1718, 1684, 1505, 1688, 1700, 1702, 1522, 1739, 1705, 1706, + /* 430 */ 1527, 1744, 1529, 1746, 1712, 1749, 1729, 1752, 1719, 1542, + /* 440 */ 1755, 1558, 1758, 1560, 1561, 1569, 1572, 1764, 1765, 1766, + /* 450 */ 1580, 1582, 1769, 1771, 1726, 1774, 1775, 1776, 1730, 1778, + /* 460 */ 1737, 1787, 1788, 1795, 1753, 1799, 1801, 1802, 1804, 1805, + /* 470 */ 1806, 1649, 1779, 1809, 1652, 1815, 1816, 1817, 1818, 1819, + /* 480 */ 1820, 1821, 1822, 1823, 1824, 1826, 1827, 1829, 1830, 1831, + /* 490 */ 1832, 1786, 1834, 1794, 1837, 1838, 1839, 1843, 1844, 1845, + /* 500 */ 1791, 1850, 1857, 1859, 1720, 1864, 1865, 1840, 1825, 1846, + /* 510 */ 1828, 1866, 1807, 1836, 1867, 1810, 1874, 1835, 1875, 1878, + /* 520 */ 1847, 1851, 1841, 1879, 1849, 1852, 1842, 1886, 1869, 1853, + /* 530 */ 1855, 1899, 1870, 1906, 1871, 1868, 1872, 1861, 1873, 1895, + /* 540 */ 1876, 1911, 1877, 1880, 1914, 1918, 1921, 1885, 1743, 1926, + /* 550 */ 1928, 1930, 1863, 1931, 1933, 1900, 1887, 1898, 1934, 1903, + /* 560 */ 1890, 1901, 1941, 1907, 1894, 1905, 1945, 1912, 1908, 1922, + /* 570 */ 1950, 1960, 1962, 1964, 1967, 1974, 1881, 1884, 1942, 1956, + /* 580 */ 1979, 1946, 1947, 1948, 1949, 1951, 1953, 1954, 1936, 1958, + /* 590 */ 1955, 1963, 1969, 1965, 1985, 1975, 2003, 1983, 1957, 2007, + /* 600 */ 1987, 1976, 2010, 1980, 2012, 1982, 2019, 1992, 2000, 1989, + /* 610 */ 1990, 1991, 1923, 1919, 2028, 1858, 1929, 1833, 1994, 2011, + /* 620 */ 2036, 1856, 2016, 1883, 1893, 2049, 2053, 1896, 1891, 1902, + /* 630 */ 1892, 2068, 2029, 1811, 1978, 1968, 1993, 2030, 1996, 2031, + /* 640 */ 1981, 1973, 2039, 2042, 1998, 1995, 1997, 2009, 2006, 2051, + /* 650 */ 2067, 2069, 2015, 2071, 1854, 2013, 2017, 2117, 2078, 1882, + /* 660 */ 2088, 2091, 2093, 2095, 2097, 2098, 2025, 2032, 2090, 1917, + /* 670 */ 2100, 2092, 2135, 2138, 2038, 2103, 1861, 2099, 2045, 2048, + /* 680 */ 2050, 2046, 2054, 1984, 2055, 2151, 2121, 1999, 2061, 2040, + /* 690 */ 1861, 2109, 2133, 2079, 1937, 2082, 2192, 2173, 1986, 2096, + /* 700 */ 2102, 2105, 2107, 2110, 2119, 2149, 2118, 2122, 2150, 2120, + /* 710 */ 2176, 2002, 2126, 2086, 2140, 2166, 2167, 2134, 2141, 2168, + /* 720 */ 2136, 2148, 2222, 2155, 2156, 2224, 2158, 2159, 2227, 2161, + /* 730 */ 2162, 2232, 2169, 2144, 2145, 2146, 2152, 2170, 2230, 2172, + /* 740 */ 2241, 2175, 2230, 2230, 2257, 2212, 2215, 2249, 2250, 2251, + /* 750 */ 2252, 2253, 2254, 2256, 2259, 2226, 2206, 2260, 2271, 2273, + /* 760 */ 2274, 2288, 2276, 2277, 2278, 2239, 1936, 2280, 1958, 2282, + /* 770 */ 2285, 2292, 2296, 2310, 2298, 2334, 2300, 2287, 2299, 2337, + /* 780 */ 2304, 2295, 2303, 2345, 2319, 2306, 2313, 2358, 2324, 2311, + /* 790 */ 2322, 2362, 2328, 2329, 2365, 2348, 2346, 2350, 2351, 2353, + /* 800 */ 2355, }; -#define YY_REDUCE_COUNT (325) -#define YY_REDUCE_MIN (-444) -#define YY_REDUCE_MAX (2343) +#define YY_REDUCE_COUNT (323) +#define YY_REDUCE_MIN (-412) +#define YY_REDUCE_MAX (2406) static const short yy_reduce_ofst[] = { - /* 0 */ -287, -286, -137, -30, 84, 154, 538, 853, 884, 914, - /* 10 */ 261, 1001, 1021, 386, 1070, 1090, 1159, -345, 1191, 1224, - /* 20 */ 1271, 1290, 1351, 1370, 1417, 1438, 1504, 1527, 1591, 1628, - /* 30 */ 1658, 1705, 1727, 1794, 1807, 1827, 1856, 1936, 1958, 1969, - /* 40 */ 1987, 2066, 2077, 2090, 2101, 2167, 2190, 2239, 2254, 2269, - /* 50 */ 2343, -206, 475, -411, 96, -404, 171, 477, -174, 42, - /* 60 */ 1087, -369, 712, -325, -314, 570, 684, -276, -394, -349, - /* 70 */ -249, -239, -163, 24, -273, -22, -212, 106, 188, 229, - /* 80 */ 246, 283, 130, 260, 379, 417, 433, 335, -44, 493, - /* 90 */ 502, 37, -69, 575, 671, 97, -29, 675, 390, 825, - /* 100 */ 466, 135, 830, 859, 150, 861, 387, 394, 425, 771, - /* 110 */ 508, -211, -444, -444, -282, 98, -328, 268, 407, 416, - /* 120 */ 539, 577, 596, 638, 644, 645, 652, 653, 682, 705, - /* 130 */ 707, 833, 836, 842, 849, 65, 282, -281, -236, 503, - /* 140 */ 531, 582, 480, 282, 370, 501, 635, 258, 438, 735, - /* 150 */ 405, 559, 369, 716, 649, 569, 717, 718, 738, 765, - /* 160 */ -383, 145, 319, 328, 467, 654, 667, 467, 224, 437, - /* 170 */ 487, 651, 488, 643, 792, 799, 916, 924, 834, 935, - /* 180 */ 983, 935, 1024, 995, 1046, 1047, 1007, 1000, 949, 949, - /* 190 */ 942, 949, 958, 964, 935, 1020, 1034, 1049, 1042, 1115, - /* 200 */ 1057, 1120, 1071, 1135, 1097, 1100, 1157, 1113, 1117, 1165, - /* 210 */ 1167, 1178, 1132, 1138, 1139, 1174, 1171, 1193, 1183, 1201, - /* 220 */ 1204, 1206, 1210, 1208, 1214, 1211, 1140, 1200, 1169, 1209, - /* 230 */ 1217, 1160, 1215, 1225, 1219, 1220, 1221, 1226, 1222, 1242, - /* 240 */ 1223, 1227, 1228, 1230, 1231, 1232, 1234, 1235, 1237, 1250, - /* 250 */ 1253, 1239, 1244, 1192, 1213, 1243, 1176, 1185, 1216, 1262, - /* 260 */ 1218, 1236, 1246, 1278, 1247, 1254, 1292, 1248, 1251, 1249, - /* 270 */ 1177, 1241, 1255, 1180, 1265, 1263, 1277, 935, 1202, 1258, - /* 280 */ 1252, 1264, 1267, 1269, 1270, 1207, 1256, 1259, 949, 1337, - /* 290 */ 1260, 1275, 1341, 1338, 1340, 1295, 1303, 1310, 1321, 1322, - /* 300 */ 1323, 1324, 1330, 1325, 1335, 1361, 1368, 1383, 1394, 1299, - /* 310 */ 1369, 1360, 1385, 1405, 1396, 1413, 1419, 1344, 1345, 1353, - /* 320 */ 1357, 1392, 1399, 1400, 1408, 1430, + /* 0 */ 275, -283, -134, -27, 158, 205, 539, 850, 897, 970, + /* 10 */ 1003, 1107, 1154, 389, 1218, 1243, 1292, -342, 1356, 87, + /* 20 */ 358, 1418, 1455, 1518, 1535, 1607, 1624, 1654, 1671, 1733, + /* 30 */ 1751, 1782, 1798, 1813, 1862, 1888, 1913, 1977, 1988, 2014, + /* 40 */ 2047, 2094, 2114, 2163, 2193, 2242, 2266, 2293, 2317, 2383, + /* 50 */ 2406, 479, 70, -406, 167, -349, 284, 716, 592, 681, + /* 60 */ 908, -366, -377, -350, -325, -341, -11, -207, -355, 378, + /* 70 */ 393, -189, -345, -163, 69, -102, -344, -239, 134, 191, + /* 80 */ 338, 414, 4, 238, 486, 494, 508, 256, -41, 600, + /* 90 */ 609, -352, 233, 674, 751, -291, 341, 764, 101, 768, + /* 100 */ 298, -301, 772, 774, 352, 860, 496, 823, 981, 863, + /* 110 */ 83, -336, -412, -412, -53, -324, -293, -214, 214, 363, + /* 120 */ 461, 500, 553, 595, 607, 685, 708, 757, 830, 837, + /* 130 */ 856, 890, 931, 934, 937, -321, 126, -103, 304, 571, + /* 140 */ 599, 664, 126, 193, 400, -136, 89, 296, 745, 675, + /* 150 */ 357, -117, -22, 368, 76, 649, 827, 800, 868, 517, + /* 160 */ 559, 569, 604, 663, 686, 731, 663, 603, 775, 807, + /* 170 */ 831, 699, 845, 1023, 866, 989, 1014, 1009, 988, 1009, + /* 180 */ 1035, 1010, 1064, 1068, 1032, 1022, 965, 965, 947, 965, + /* 190 */ 976, 966, 1009, 1033, 1029, 1030, 1036, 1100, 1040, 1104, + /* 200 */ 1051, 1116, 1071, 1073, 1125, 1081, 1085, 1134, 1132, 1135, + /* 210 */ 1089, 1092, 1093, 1128, 1137, 1144, 1131, 1147, 1151, 1152, + /* 220 */ 1164, 1162, 1167, 1166, 1090, 1153, 1122, 1168, 1172, 1113, + /* 230 */ 1169, 1177, 1173, 1176, 1178, 1180, 1179, 1205, 1175, 1181, + /* 240 */ 1183, 1184, 1185, 1187, 1189, 1191, 1192, 1193, 1194, 1199, + /* 250 */ 1207, 1140, 1174, 1201, 1136, 1155, 1146, 1217, 1156, 1158, + /* 260 */ 1202, 1222, 1190, 1195, 1232, 1200, 1209, 1211, 1138, 1206, + /* 270 */ 1223, 1145, 1210, 1224, 1226, 1009, 1149, 1129, 1159, 1163, + /* 280 */ 1160, 1196, 1213, 1141, 1203, 1212, 965, 1286, 1215, 1197, + /* 290 */ 1287, 1283, 1285, 1240, 1242, 1258, 1265, 1271, 1272, 1282, + /* 300 */ 1252, 1290, 1257, 1309, 1299, 1310, 1336, 1239, 1308, 1304, + /* 310 */ 1327, 1350, 1341, 1357, 1359, 1288, 1289, 1298, 1301, 1333, + /* 320 */ 1339, 1342, 1355, 1365, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 10 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 20 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 30 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 40 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 50 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 60 */ 2110, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 70 */ 1799, 1799, 1799, 1799, 2083, 1799, 1799, 1799, 1799, 1799, - /* 80 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 90 */ 1799, 1888, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 100 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 110 */ 1886, 2076, 2302, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 120 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 130 */ 1799, 1799, 1799, 1799, 1799, 1799, 2314, 1799, 1799, 1862, - /* 140 */ 1862, 1799, 2325, 2314, 2314, 2314, 1886, 2274, 2274, 1799, - /* 150 */ 1888, 2144, 1799, 1799, 1799, 1799, 1799, 1799, 2008, 1799, - /* 160 */ 1799, 1799, 1799, 1799, 2032, 1799, 1799, 1799, 2136, 1799, - /* 170 */ 1799, 2346, 2403, 1799, 1799, 2349, 1799, 1799, 1799, 1799, - /* 180 */ 1799, 1799, 1799, 2088, 1799, 1799, 1961, 2336, 2306, 2320, - /* 190 */ 2387, 2307, 2304, 2330, 1799, 2340, 1799, 1799, 2158, 1888, - /* 200 */ 1799, 1888, 2123, 1799, 2081, 1799, 1799, 2081, 2078, 1799, - /* 210 */ 1799, 1799, 2081, 2078, 2078, 1950, 1946, 1799, 1944, 1799, - /* 220 */ 1799, 1799, 1799, 1846, 1799, 1846, 1799, 1888, 1799, 1888, - /* 230 */ 1799, 1799, 1888, 1799, 1888, 1888, 1888, 1799, 1888, 1799, - /* 240 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 250 */ 1799, 1799, 1799, 1799, 1799, 1799, 2156, 2142, 1799, 1886, - /* 260 */ 2134, 2132, 1799, 1886, 2130, 2340, 1799, 1799, 1799, 1799, - /* 270 */ 2357, 2355, 1799, 2357, 2355, 1799, 1799, 1799, 2371, 2367, - /* 280 */ 2357, 2376, 2373, 2342, 2340, 2406, 2393, 2389, 2320, 1799, - /* 290 */ 1799, 2328, 1799, 1886, 1886, 1799, 2355, 1799, 1799, 1799, - /* 300 */ 1799, 1799, 2355, 1799, 1799, 1886, 1799, 1886, 1799, 1799, - /* 310 */ 1977, 1799, 1799, 1799, 1886, 1831, 1799, 2125, 2147, 2106, - /* 320 */ 2106, 2011, 2011, 2011, 1889, 1804, 1799, 1799, 1799, 1799, - /* 330 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 2370, 2369, - /* 340 */ 2229, 1799, 2278, 2277, 2276, 2267, 2228, 1973, 1799, 2227, - /* 350 */ 2226, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 360 */ 2097, 2096, 2220, 1799, 1799, 2221, 2219, 2218, 1799, 1799, - /* 370 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 380 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 390 */ 1799, 1799, 2390, 2394, 1799, 1799, 1799, 1799, 1799, 1799, - /* 400 */ 2303, 1799, 1799, 1799, 2202, 1799, 1799, 1799, 1799, 1799, - /* 410 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 420 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 430 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 440 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 450 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 460 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 470 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 480 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 490 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 500 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 510 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 520 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 530 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1836, 2207, - /* 540 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 550 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 560 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 570 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 580 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 590 */ 1927, 1926, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 600 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 610 */ 1799, 1799, 1799, 1799, 2211, 1799, 1799, 1799, 1799, 1799, - /* 620 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 630 */ 1799, 1799, 1799, 2386, 1799, 1799, 1799, 1799, 2343, 1799, - /* 640 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 650 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 2202, 1799, 2368, - /* 660 */ 1799, 1799, 2384, 1799, 2388, 1799, 1799, 1799, 1799, 1799, - /* 670 */ 1799, 1799, 2313, 2309, 1799, 1799, 2305, 1799, 1799, 1799, - /* 680 */ 1799, 1799, 2210, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 690 */ 1799, 1799, 1799, 1799, 1799, 1799, 2201, 1799, 2264, 1799, - /* 700 */ 1799, 1799, 2298, 1799, 1799, 2249, 1799, 1799, 1799, 1799, - /* 710 */ 1799, 1799, 1799, 1799, 1799, 2211, 1799, 2214, 1799, 1799, - /* 720 */ 1799, 1799, 1799, 2005, 1799, 1799, 1799, 1799, 1799, 1799, - /* 730 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1989, - /* 740 */ 1987, 1986, 1985, 1799, 2018, 1799, 1799, 1799, 2014, 2013, - /* 750 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 760 */ 1799, 1799, 1799, 1907, 1799, 1799, 1799, 1799, 1799, 1799, - /* 770 */ 1799, 1799, 1899, 1799, 1898, 1799, 1799, 1799, 1799, 1799, - /* 780 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 790 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, 1799, - /* 800 */ 1799, 1799, 1799, 1799, 1799, 1799, 1799, + /* 0 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 10 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 20 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 30 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 40 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 50 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 60 */ 2095, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 70 */ 1784, 1784, 1784, 1784, 2068, 1784, 1784, 1784, 1784, 1784, + /* 80 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 90 */ 1784, 1873, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 100 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 110 */ 1871, 2061, 2287, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 120 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 130 */ 1784, 1784, 1784, 1784, 1784, 1784, 2299, 1784, 1784, 1847, + /* 140 */ 1847, 1784, 2299, 2299, 2299, 1871, 2259, 2259, 1784, 1873, + /* 150 */ 2129, 1784, 1784, 1784, 1784, 1784, 1784, 1993, 1784, 1784, + /* 160 */ 1784, 1784, 1784, 2017, 1784, 1784, 1784, 2121, 1784, 1784, + /* 170 */ 2326, 2383, 1784, 1784, 2329, 1784, 1784, 1784, 1784, 1784, + /* 180 */ 1784, 2073, 1784, 1784, 1946, 2316, 2291, 2305, 2367, 2292, + /* 190 */ 2289, 2310, 1784, 2320, 1784, 1784, 2143, 1873, 1784, 1873, + /* 200 */ 2108, 1784, 2066, 1784, 1784, 2066, 2063, 1784, 1784, 1784, + /* 210 */ 2066, 2063, 2063, 1935, 1931, 1784, 1929, 1784, 1784, 1784, + /* 220 */ 1784, 1831, 1784, 1831, 1784, 1873, 1784, 1873, 1784, 1784, + /* 230 */ 1873, 1784, 1873, 1873, 1873, 1784, 1873, 1784, 1784, 1784, + /* 240 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 250 */ 1784, 1784, 1784, 1784, 2141, 2127, 1784, 1871, 2119, 2117, + /* 260 */ 1784, 1871, 2115, 2320, 1784, 1784, 1784, 1784, 2337, 2335, + /* 270 */ 1784, 2337, 2335, 1784, 1784, 1784, 2351, 2347, 2337, 2356, + /* 280 */ 2353, 2322, 2320, 2386, 2373, 2369, 2305, 1784, 1784, 2308, + /* 290 */ 1784, 1871, 1871, 1784, 2335, 1784, 1784, 1784, 1784, 1784, + /* 300 */ 2335, 1784, 1784, 1871, 1784, 1871, 1784, 1784, 1962, 1784, + /* 310 */ 1784, 1784, 1871, 1816, 1784, 2110, 2132, 2091, 2091, 1996, + /* 320 */ 1996, 1996, 1874, 1789, 1784, 1784, 1784, 1784, 1784, 1784, + /* 330 */ 1784, 1784, 1784, 1784, 1784, 1784, 2350, 2349, 2214, 1784, + /* 340 */ 2263, 2262, 2261, 2252, 2213, 1958, 1784, 2212, 2211, 1784, + /* 350 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 2082, 2081, + /* 360 */ 2205, 1784, 1784, 2206, 2204, 2203, 1784, 1784, 1784, 1784, + /* 370 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 380 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 390 */ 2370, 2374, 1784, 1784, 1784, 1784, 1784, 1784, 2288, 1784, + /* 400 */ 1784, 1784, 2187, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 410 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 420 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 430 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 440 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 450 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 460 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 470 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 480 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 490 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 500 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 510 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 520 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 530 */ 1784, 1784, 1784, 1784, 1784, 1784, 1821, 2192, 1784, 1784, + /* 540 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 550 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 560 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 570 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 580 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1912, 1911, + /* 590 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 600 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 610 */ 1784, 1784, 2196, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 620 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 630 */ 1784, 2366, 2323, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 640 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 650 */ 1784, 2187, 1784, 2348, 1784, 1784, 2364, 1784, 2368, 1784, + /* 660 */ 1784, 1784, 1784, 1784, 1784, 1784, 2298, 2294, 1784, 1784, + /* 670 */ 2290, 1784, 1784, 1784, 1784, 1784, 2195, 1784, 1784, 1784, + /* 680 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 690 */ 2186, 1784, 2249, 1784, 1784, 1784, 2283, 1784, 1784, 2234, + /* 700 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 2196, + /* 710 */ 1784, 2199, 1784, 1784, 1784, 1784, 1784, 1990, 1784, 1784, + /* 720 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 730 */ 1784, 1784, 1784, 1974, 1972, 1971, 1970, 1784, 2003, 1784, + /* 740 */ 1784, 1784, 1999, 1998, 1784, 1784, 1784, 1784, 1784, 1784, + /* 750 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1892, 1784, 1784, + /* 760 */ 1784, 1784, 1784, 1784, 1784, 1784, 1884, 1784, 1883, 1784, + /* 770 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 780 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 790 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, + /* 800 */ 1784, }; /********** End of lemon-generated parsing tables *****************************/ @@ -1141,7 +1153,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* MAX_SPEED => nothing */ 0, /* START => nothing */ 0, /* TIMESTAMP => nothing */ - 291, /* END => ABORT */ + 288, /* END => ABORT */ 0, /* TABLE => nothing */ 0, /* NK_LP => nothing */ 0, /* NK_RP => nothing */ @@ -1301,10 +1313,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* JOIN => nothing */ 0, /* INNER => nothing */ 0, /* SELECT => nothing */ - 0, /* NO_BATCH_SCAN => nothing */ - 0, /* BATCH_SCAN => nothing */ - 0, /* NK_HINT_BEGIN => nothing */ - 0, /* NK_HINT_END => nothing */ + 0, /* NK_HINT => nothing */ 0, /* DISTINCT => nothing */ 0, /* WHERE => nothing */ 0, /* PARTITION => nothing */ @@ -1332,56 +1341,56 @@ static const YYCODETYPE yyFallback[] = { 0, /* ASC => nothing */ 0, /* NULLS => nothing */ 0, /* ABORT => nothing */ - 291, /* AFTER => ABORT */ - 291, /* ATTACH => ABORT */ - 291, /* BEFORE => ABORT */ - 291, /* BEGIN => ABORT */ - 291, /* BITAND => ABORT */ - 291, /* BITNOT => ABORT */ - 291, /* BITOR => ABORT */ - 291, /* BLOCKS => ABORT */ - 291, /* CHANGE => ABORT */ - 291, /* COMMA => ABORT */ - 291, /* CONCAT => ABORT */ - 291, /* CONFLICT => ABORT */ - 291, /* COPY => ABORT */ - 291, /* DEFERRED => ABORT */ - 291, /* DELIMITERS => ABORT */ - 291, /* DETACH => ABORT */ - 291, /* DIVIDE => ABORT */ - 291, /* DOT => ABORT */ - 291, /* EACH => ABORT */ - 291, /* FAIL => ABORT */ - 291, /* FILE => ABORT */ - 291, /* FOR => ABORT */ - 291, /* GLOB => ABORT */ - 291, /* ID => ABORT */ - 291, /* IMMEDIATE => ABORT */ - 291, /* IMPORT => ABORT */ - 291, /* INITIALLY => ABORT */ - 291, /* INSTEAD => ABORT */ - 291, /* ISNULL => ABORT */ - 291, /* KEY => ABORT */ - 291, /* MODULES => ABORT */ - 291, /* NK_BITNOT => ABORT */ - 291, /* NK_SEMI => ABORT */ - 291, /* NOTNULL => ABORT */ - 291, /* OF => ABORT */ - 291, /* PLUS => ABORT */ - 291, /* PRIVILEGE => ABORT */ - 291, /* RAISE => ABORT */ - 291, /* RESTRICT => ABORT */ - 291, /* ROW => ABORT */ - 291, /* SEMI => ABORT */ - 291, /* STAR => ABORT */ - 291, /* STATEMENT => ABORT */ - 291, /* STRICT => ABORT */ - 291, /* STRING => ABORT */ - 291, /* TIMES => ABORT */ - 291, /* VALUES => ABORT */ - 291, /* VARIABLE => ABORT */ - 291, /* VIEW => ABORT */ - 291, /* WAL => ABORT */ + 288, /* AFTER => ABORT */ + 288, /* ATTACH => ABORT */ + 288, /* BEFORE => ABORT */ + 288, /* BEGIN => ABORT */ + 288, /* BITAND => ABORT */ + 288, /* BITNOT => ABORT */ + 288, /* BITOR => ABORT */ + 288, /* BLOCKS => ABORT */ + 288, /* CHANGE => ABORT */ + 288, /* COMMA => ABORT */ + 288, /* CONCAT => ABORT */ + 288, /* CONFLICT => ABORT */ + 288, /* COPY => ABORT */ + 288, /* DEFERRED => ABORT */ + 288, /* DELIMITERS => ABORT */ + 288, /* DETACH => ABORT */ + 288, /* DIVIDE => ABORT */ + 288, /* DOT => ABORT */ + 288, /* EACH => ABORT */ + 288, /* FAIL => ABORT */ + 288, /* FILE => ABORT */ + 288, /* FOR => ABORT */ + 288, /* GLOB => ABORT */ + 288, /* ID => ABORT */ + 288, /* IMMEDIATE => ABORT */ + 288, /* IMPORT => ABORT */ + 288, /* INITIALLY => ABORT */ + 288, /* INSTEAD => ABORT */ + 288, /* ISNULL => ABORT */ + 288, /* KEY => ABORT */ + 288, /* MODULES => ABORT */ + 288, /* NK_BITNOT => ABORT */ + 288, /* NK_SEMI => ABORT */ + 288, /* NOTNULL => ABORT */ + 288, /* OF => ABORT */ + 288, /* PLUS => ABORT */ + 288, /* PRIVILEGE => ABORT */ + 288, /* RAISE => ABORT */ + 288, /* RESTRICT => ABORT */ + 288, /* ROW => ABORT */ + 288, /* SEMI => ABORT */ + 288, /* STAR => ABORT */ + 288, /* STATEMENT => ABORT */ + 288, /* STRICT => ABORT */ + 288, /* STRING => ABORT */ + 288, /* TIMES => ABORT */ + 288, /* VALUES => ABORT */ + 288, /* VARIABLE => ABORT */ + 288, /* VIEW => ABORT */ + 288, /* WAL => ABORT */ }; #endif /* YYFALLBACK */ @@ -1730,239 +1739,234 @@ static const char *const yyTokenName[] = { /* 258 */ "JOIN", /* 259 */ "INNER", /* 260 */ "SELECT", - /* 261 */ "NO_BATCH_SCAN", - /* 262 */ "BATCH_SCAN", - /* 263 */ "NK_HINT_BEGIN", - /* 264 */ "NK_HINT_END", - /* 265 */ "DISTINCT", - /* 266 */ "WHERE", - /* 267 */ "PARTITION", - /* 268 */ "BY", - /* 269 */ "SESSION", - /* 270 */ "STATE_WINDOW", - /* 271 */ "EVENT_WINDOW", - /* 272 */ "SLIDING", - /* 273 */ "FILL", - /* 274 */ "VALUE", - /* 275 */ "VALUE_F", - /* 276 */ "NONE", - /* 277 */ "PREV", - /* 278 */ "NULL_F", - /* 279 */ "LINEAR", - /* 280 */ "NEXT", - /* 281 */ "HAVING", - /* 282 */ "RANGE", - /* 283 */ "EVERY", - /* 284 */ "ORDER", - /* 285 */ "SLIMIT", - /* 286 */ "SOFFSET", - /* 287 */ "LIMIT", - /* 288 */ "OFFSET", - /* 289 */ "ASC", - /* 290 */ "NULLS", - /* 291 */ "ABORT", - /* 292 */ "AFTER", - /* 293 */ "ATTACH", - /* 294 */ "BEFORE", - /* 295 */ "BEGIN", - /* 296 */ "BITAND", - /* 297 */ "BITNOT", - /* 298 */ "BITOR", - /* 299 */ "BLOCKS", - /* 300 */ "CHANGE", - /* 301 */ "COMMA", - /* 302 */ "CONCAT", - /* 303 */ "CONFLICT", - /* 304 */ "COPY", - /* 305 */ "DEFERRED", - /* 306 */ "DELIMITERS", - /* 307 */ "DETACH", - /* 308 */ "DIVIDE", - /* 309 */ "DOT", - /* 310 */ "EACH", - /* 311 */ "FAIL", - /* 312 */ "FILE", - /* 313 */ "FOR", - /* 314 */ "GLOB", - /* 315 */ "ID", - /* 316 */ "IMMEDIATE", - /* 317 */ "IMPORT", - /* 318 */ "INITIALLY", - /* 319 */ "INSTEAD", - /* 320 */ "ISNULL", - /* 321 */ "KEY", - /* 322 */ "MODULES", - /* 323 */ "NK_BITNOT", - /* 324 */ "NK_SEMI", - /* 325 */ "NOTNULL", - /* 326 */ "OF", - /* 327 */ "PLUS", - /* 328 */ "PRIVILEGE", - /* 329 */ "RAISE", - /* 330 */ "RESTRICT", - /* 331 */ "ROW", - /* 332 */ "SEMI", - /* 333 */ "STAR", - /* 334 */ "STATEMENT", - /* 335 */ "STRICT", - /* 336 */ "STRING", - /* 337 */ "TIMES", - /* 338 */ "VALUES", - /* 339 */ "VARIABLE", - /* 340 */ "VIEW", - /* 341 */ "WAL", - /* 342 */ "cmd", - /* 343 */ "account_options", - /* 344 */ "alter_account_options", - /* 345 */ "literal", - /* 346 */ "alter_account_option", - /* 347 */ "user_name", - /* 348 */ "sysinfo_opt", - /* 349 */ "privileges", - /* 350 */ "priv_level", - /* 351 */ "with_opt", - /* 352 */ "priv_type_list", - /* 353 */ "priv_type", - /* 354 */ "db_name", - /* 355 */ "table_name", - /* 356 */ "topic_name", - /* 357 */ "search_condition", - /* 358 */ "dnode_endpoint", - /* 359 */ "force_opt", - /* 360 */ "unsafe_opt", - /* 361 */ "not_exists_opt", - /* 362 */ "db_options", - /* 363 */ "exists_opt", - /* 364 */ "alter_db_options", - /* 365 */ "speed_opt", - /* 366 */ "start_opt", - /* 367 */ "end_opt", - /* 368 */ "integer_list", - /* 369 */ "variable_list", - /* 370 */ "retention_list", - /* 371 */ "signed", - /* 372 */ "alter_db_option", - /* 373 */ "retention", - /* 374 */ "full_table_name", - /* 375 */ "column_def_list", - /* 376 */ "tags_def_opt", - /* 377 */ "table_options", - /* 378 */ "multi_create_clause", - /* 379 */ "tags_def", - /* 380 */ "multi_drop_clause", - /* 381 */ "alter_table_clause", - /* 382 */ "alter_table_options", - /* 383 */ "column_name", - /* 384 */ "type_name", - /* 385 */ "signed_literal", - /* 386 */ "create_subtable_clause", - /* 387 */ "specific_cols_opt", - /* 388 */ "expression_list", - /* 389 */ "drop_table_clause", - /* 390 */ "col_name_list", - /* 391 */ "column_def", - /* 392 */ "duration_list", - /* 393 */ "rollup_func_list", - /* 394 */ "alter_table_option", - /* 395 */ "duration_literal", - /* 396 */ "rollup_func_name", - /* 397 */ "function_name", - /* 398 */ "col_name", - /* 399 */ "db_name_cond_opt", - /* 400 */ "like_pattern_opt", - /* 401 */ "table_name_cond", - /* 402 */ "from_db_opt", - /* 403 */ "tag_list_opt", - /* 404 */ "tag_item", - /* 405 */ "column_alias", - /* 406 */ "full_index_name", - /* 407 */ "index_options", - /* 408 */ "index_name", - /* 409 */ "func_list", - /* 410 */ "sliding_opt", - /* 411 */ "sma_stream_opt", - /* 412 */ "func", - /* 413 */ "sma_func_name", - /* 414 */ "with_meta", - /* 415 */ "query_or_subquery", - /* 416 */ "where_clause_opt", - /* 417 */ "cgroup_name", - /* 418 */ "analyze_opt", - /* 419 */ "explain_options", - /* 420 */ "insert_query", - /* 421 */ "or_replace_opt", - /* 422 */ "agg_func_opt", - /* 423 */ "bufsize_opt", - /* 424 */ "language_opt", - /* 425 */ "stream_name", - /* 426 */ "stream_options", - /* 427 */ "col_list_opt", - /* 428 */ "tag_def_or_ref_opt", - /* 429 */ "subtable_opt", - /* 430 */ "ignore_opt", - /* 431 */ "expression", - /* 432 */ "dnode_list", - /* 433 */ "literal_func", - /* 434 */ "literal_list", - /* 435 */ "table_alias", - /* 436 */ "expr_or_subquery", - /* 437 */ "pseudo_column", - /* 438 */ "column_reference", - /* 439 */ "function_expression", - /* 440 */ "case_when_expression", - /* 441 */ "star_func", - /* 442 */ "star_func_para_list", - /* 443 */ "noarg_func", - /* 444 */ "other_para_list", - /* 445 */ "star_func_para", - /* 446 */ "when_then_list", - /* 447 */ "case_when_else_opt", - /* 448 */ "common_expression", - /* 449 */ "when_then_expr", - /* 450 */ "predicate", - /* 451 */ "compare_op", - /* 452 */ "in_op", - /* 453 */ "in_predicate_value", - /* 454 */ "boolean_value_expression", - /* 455 */ "boolean_primary", - /* 456 */ "from_clause_opt", - /* 457 */ "table_reference_list", - /* 458 */ "table_reference", - /* 459 */ "table_primary", - /* 460 */ "joined_table", - /* 461 */ "alias_opt", - /* 462 */ "subquery", - /* 463 */ "parenthesized_joined_table", - /* 464 */ "join_type", - /* 465 */ "query_specification", - /* 466 */ "hint_list", - /* 467 */ "set_quantifier_opt", - /* 468 */ "select_list", - /* 469 */ "partition_by_clause_opt", - /* 470 */ "range_opt", - /* 471 */ "every_opt", - /* 472 */ "fill_opt", - /* 473 */ "twindow_clause_opt", - /* 474 */ "group_by_clause_opt", - /* 475 */ "having_clause_opt", - /* 476 */ "hint_opt", - /* 477 */ "hint_opt_list", - /* 478 */ "select_item", - /* 479 */ "partition_list", - /* 480 */ "partition_item", - /* 481 */ "fill_mode", - /* 482 */ "group_by_list", - /* 483 */ "query_expression", - /* 484 */ "query_simple", - /* 485 */ "order_by_clause_opt", - /* 486 */ "slimit_clause_opt", - /* 487 */ "limit_clause_opt", - /* 488 */ "union_query_expression", - /* 489 */ "query_simple_or_subquery", - /* 490 */ "sort_specification_list", - /* 491 */ "sort_specification", - /* 492 */ "ordering_specification_opt", - /* 493 */ "null_ordering_opt", + /* 261 */ "NK_HINT", + /* 262 */ "DISTINCT", + /* 263 */ "WHERE", + /* 264 */ "PARTITION", + /* 265 */ "BY", + /* 266 */ "SESSION", + /* 267 */ "STATE_WINDOW", + /* 268 */ "EVENT_WINDOW", + /* 269 */ "SLIDING", + /* 270 */ "FILL", + /* 271 */ "VALUE", + /* 272 */ "VALUE_F", + /* 273 */ "NONE", + /* 274 */ "PREV", + /* 275 */ "NULL_F", + /* 276 */ "LINEAR", + /* 277 */ "NEXT", + /* 278 */ "HAVING", + /* 279 */ "RANGE", + /* 280 */ "EVERY", + /* 281 */ "ORDER", + /* 282 */ "SLIMIT", + /* 283 */ "SOFFSET", + /* 284 */ "LIMIT", + /* 285 */ "OFFSET", + /* 286 */ "ASC", + /* 287 */ "NULLS", + /* 288 */ "ABORT", + /* 289 */ "AFTER", + /* 290 */ "ATTACH", + /* 291 */ "BEFORE", + /* 292 */ "BEGIN", + /* 293 */ "BITAND", + /* 294 */ "BITNOT", + /* 295 */ "BITOR", + /* 296 */ "BLOCKS", + /* 297 */ "CHANGE", + /* 298 */ "COMMA", + /* 299 */ "CONCAT", + /* 300 */ "CONFLICT", + /* 301 */ "COPY", + /* 302 */ "DEFERRED", + /* 303 */ "DELIMITERS", + /* 304 */ "DETACH", + /* 305 */ "DIVIDE", + /* 306 */ "DOT", + /* 307 */ "EACH", + /* 308 */ "FAIL", + /* 309 */ "FILE", + /* 310 */ "FOR", + /* 311 */ "GLOB", + /* 312 */ "ID", + /* 313 */ "IMMEDIATE", + /* 314 */ "IMPORT", + /* 315 */ "INITIALLY", + /* 316 */ "INSTEAD", + /* 317 */ "ISNULL", + /* 318 */ "KEY", + /* 319 */ "MODULES", + /* 320 */ "NK_BITNOT", + /* 321 */ "NK_SEMI", + /* 322 */ "NOTNULL", + /* 323 */ "OF", + /* 324 */ "PLUS", + /* 325 */ "PRIVILEGE", + /* 326 */ "RAISE", + /* 327 */ "RESTRICT", + /* 328 */ "ROW", + /* 329 */ "SEMI", + /* 330 */ "STAR", + /* 331 */ "STATEMENT", + /* 332 */ "STRICT", + /* 333 */ "STRING", + /* 334 */ "TIMES", + /* 335 */ "VALUES", + /* 336 */ "VARIABLE", + /* 337 */ "VIEW", + /* 338 */ "WAL", + /* 339 */ "cmd", + /* 340 */ "account_options", + /* 341 */ "alter_account_options", + /* 342 */ "literal", + /* 343 */ "alter_account_option", + /* 344 */ "user_name", + /* 345 */ "sysinfo_opt", + /* 346 */ "privileges", + /* 347 */ "priv_level", + /* 348 */ "with_opt", + /* 349 */ "priv_type_list", + /* 350 */ "priv_type", + /* 351 */ "db_name", + /* 352 */ "table_name", + /* 353 */ "topic_name", + /* 354 */ "search_condition", + /* 355 */ "dnode_endpoint", + /* 356 */ "force_opt", + /* 357 */ "unsafe_opt", + /* 358 */ "not_exists_opt", + /* 359 */ "db_options", + /* 360 */ "exists_opt", + /* 361 */ "alter_db_options", + /* 362 */ "speed_opt", + /* 363 */ "start_opt", + /* 364 */ "end_opt", + /* 365 */ "integer_list", + /* 366 */ "variable_list", + /* 367 */ "retention_list", + /* 368 */ "signed", + /* 369 */ "alter_db_option", + /* 370 */ "retention", + /* 371 */ "full_table_name", + /* 372 */ "column_def_list", + /* 373 */ "tags_def_opt", + /* 374 */ "table_options", + /* 375 */ "multi_create_clause", + /* 376 */ "tags_def", + /* 377 */ "multi_drop_clause", + /* 378 */ "alter_table_clause", + /* 379 */ "alter_table_options", + /* 380 */ "column_name", + /* 381 */ "type_name", + /* 382 */ "signed_literal", + /* 383 */ "create_subtable_clause", + /* 384 */ "specific_cols_opt", + /* 385 */ "expression_list", + /* 386 */ "drop_table_clause", + /* 387 */ "col_name_list", + /* 388 */ "column_def", + /* 389 */ "duration_list", + /* 390 */ "rollup_func_list", + /* 391 */ "alter_table_option", + /* 392 */ "duration_literal", + /* 393 */ "rollup_func_name", + /* 394 */ "function_name", + /* 395 */ "col_name", + /* 396 */ "db_name_cond_opt", + /* 397 */ "like_pattern_opt", + /* 398 */ "table_name_cond", + /* 399 */ "from_db_opt", + /* 400 */ "tag_list_opt", + /* 401 */ "tag_item", + /* 402 */ "column_alias", + /* 403 */ "full_index_name", + /* 404 */ "index_options", + /* 405 */ "index_name", + /* 406 */ "func_list", + /* 407 */ "sliding_opt", + /* 408 */ "sma_stream_opt", + /* 409 */ "func", + /* 410 */ "sma_func_name", + /* 411 */ "with_meta", + /* 412 */ "query_or_subquery", + /* 413 */ "where_clause_opt", + /* 414 */ "cgroup_name", + /* 415 */ "analyze_opt", + /* 416 */ "explain_options", + /* 417 */ "insert_query", + /* 418 */ "or_replace_opt", + /* 419 */ "agg_func_opt", + /* 420 */ "bufsize_opt", + /* 421 */ "language_opt", + /* 422 */ "stream_name", + /* 423 */ "stream_options", + /* 424 */ "col_list_opt", + /* 425 */ "tag_def_or_ref_opt", + /* 426 */ "subtable_opt", + /* 427 */ "ignore_opt", + /* 428 */ "expression", + /* 429 */ "dnode_list", + /* 430 */ "literal_func", + /* 431 */ "literal_list", + /* 432 */ "table_alias", + /* 433 */ "expr_or_subquery", + /* 434 */ "pseudo_column", + /* 435 */ "column_reference", + /* 436 */ "function_expression", + /* 437 */ "case_when_expression", + /* 438 */ "star_func", + /* 439 */ "star_func_para_list", + /* 440 */ "noarg_func", + /* 441 */ "other_para_list", + /* 442 */ "star_func_para", + /* 443 */ "when_then_list", + /* 444 */ "case_when_else_opt", + /* 445 */ "common_expression", + /* 446 */ "when_then_expr", + /* 447 */ "predicate", + /* 448 */ "compare_op", + /* 449 */ "in_op", + /* 450 */ "in_predicate_value", + /* 451 */ "boolean_value_expression", + /* 452 */ "boolean_primary", + /* 453 */ "from_clause_opt", + /* 454 */ "table_reference_list", + /* 455 */ "table_reference", + /* 456 */ "table_primary", + /* 457 */ "joined_table", + /* 458 */ "alias_opt", + /* 459 */ "subquery", + /* 460 */ "parenthesized_joined_table", + /* 461 */ "join_type", + /* 462 */ "query_specification", + /* 463 */ "hint_list", + /* 464 */ "set_quantifier_opt", + /* 465 */ "select_list", + /* 466 */ "partition_by_clause_opt", + /* 467 */ "range_opt", + /* 468 */ "every_opt", + /* 469 */ "fill_opt", + /* 470 */ "twindow_clause_opt", + /* 471 */ "group_by_clause_opt", + /* 472 */ "having_clause_opt", + /* 473 */ "select_item", + /* 474 */ "partition_list", + /* 475 */ "partition_item", + /* 476 */ "fill_mode", + /* 477 */ "group_by_list", + /* 478 */ "query_expression", + /* 479 */ "query_simple", + /* 480 */ "order_by_clause_opt", + /* 481 */ "slimit_clause_opt", + /* 482 */ "limit_clause_opt", + /* 483 */ "union_query_expression", + /* 484 */ "query_simple_or_subquery", + /* 485 */ "sort_specification_list", + /* 486 */ "sort_specification", + /* 487 */ "ordering_specification_opt", + /* 488 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -2491,92 +2495,87 @@ static const char *const yyRuleName[] = { /* 518 */ "join_type ::=", /* 519 */ "join_type ::= INNER", /* 520 */ "query_specification ::= SELECT hint_list set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt", - /* 521 */ "hint_opt ::= NO_BATCH_SCAN NK_LP NK_RP", - /* 522 */ "hint_opt ::= BATCH_SCAN NK_LP NK_RP", - /* 523 */ "hint_opt_list ::=", - /* 524 */ "hint_opt_list ::= hint_opt", - /* 525 */ "hint_opt_list ::= hint_opt_list hint_opt", - /* 526 */ "hint_list ::=", - /* 527 */ "hint_list ::= NK_HINT_BEGIN hint_opt_list NK_HINT_END", - /* 528 */ "set_quantifier_opt ::=", - /* 529 */ "set_quantifier_opt ::= DISTINCT", - /* 530 */ "set_quantifier_opt ::= ALL", - /* 531 */ "select_list ::= select_item", - /* 532 */ "select_list ::= select_list NK_COMMA select_item", - /* 533 */ "select_item ::= NK_STAR", - /* 534 */ "select_item ::= common_expression", - /* 535 */ "select_item ::= common_expression column_alias", - /* 536 */ "select_item ::= common_expression AS column_alias", - /* 537 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 538 */ "where_clause_opt ::=", - /* 539 */ "where_clause_opt ::= WHERE search_condition", - /* 540 */ "partition_by_clause_opt ::=", - /* 541 */ "partition_by_clause_opt ::= PARTITION BY partition_list", - /* 542 */ "partition_list ::= partition_item", - /* 543 */ "partition_list ::= partition_list NK_COMMA partition_item", - /* 544 */ "partition_item ::= expr_or_subquery", - /* 545 */ "partition_item ::= expr_or_subquery column_alias", - /* 546 */ "partition_item ::= expr_or_subquery AS column_alias", - /* 547 */ "twindow_clause_opt ::=", - /* 548 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 549 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", - /* 550 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 551 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 552 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", - /* 553 */ "sliding_opt ::=", - /* 554 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 555 */ "fill_opt ::=", - /* 556 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 557 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", - /* 558 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", - /* 559 */ "fill_mode ::= NONE", - /* 560 */ "fill_mode ::= PREV", - /* 561 */ "fill_mode ::= NULL", - /* 562 */ "fill_mode ::= NULL_F", - /* 563 */ "fill_mode ::= LINEAR", - /* 564 */ "fill_mode ::= NEXT", - /* 565 */ "group_by_clause_opt ::=", - /* 566 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 567 */ "group_by_list ::= expr_or_subquery", - /* 568 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", - /* 569 */ "having_clause_opt ::=", - /* 570 */ "having_clause_opt ::= HAVING search_condition", - /* 571 */ "range_opt ::=", - /* 572 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", - /* 573 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", - /* 574 */ "every_opt ::=", - /* 575 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", - /* 576 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 577 */ "query_simple ::= query_specification", - /* 578 */ "query_simple ::= union_query_expression", - /* 579 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", - /* 580 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", - /* 581 */ "query_simple_or_subquery ::= query_simple", - /* 582 */ "query_simple_or_subquery ::= subquery", - /* 583 */ "query_or_subquery ::= query_expression", - /* 584 */ "query_or_subquery ::= subquery", - /* 585 */ "order_by_clause_opt ::=", - /* 586 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 587 */ "slimit_clause_opt ::=", - /* 588 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 589 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 590 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 591 */ "limit_clause_opt ::=", - /* 592 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 593 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 594 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 595 */ "subquery ::= NK_LP query_expression NK_RP", - /* 596 */ "subquery ::= NK_LP subquery NK_RP", - /* 597 */ "search_condition ::= common_expression", - /* 598 */ "sort_specification_list ::= sort_specification", - /* 599 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 600 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", - /* 601 */ "ordering_specification_opt ::=", - /* 602 */ "ordering_specification_opt ::= ASC", - /* 603 */ "ordering_specification_opt ::= DESC", - /* 604 */ "null_ordering_opt ::=", - /* 605 */ "null_ordering_opt ::= NULLS FIRST", - /* 606 */ "null_ordering_opt ::= NULLS LAST", + /* 521 */ "hint_list ::=", + /* 522 */ "hint_list ::= NK_HINT", + /* 523 */ "set_quantifier_opt ::=", + /* 524 */ "set_quantifier_opt ::= DISTINCT", + /* 525 */ "set_quantifier_opt ::= ALL", + /* 526 */ "select_list ::= select_item", + /* 527 */ "select_list ::= select_list NK_COMMA select_item", + /* 528 */ "select_item ::= NK_STAR", + /* 529 */ "select_item ::= common_expression", + /* 530 */ "select_item ::= common_expression column_alias", + /* 531 */ "select_item ::= common_expression AS column_alias", + /* 532 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 533 */ "where_clause_opt ::=", + /* 534 */ "where_clause_opt ::= WHERE search_condition", + /* 535 */ "partition_by_clause_opt ::=", + /* 536 */ "partition_by_clause_opt ::= PARTITION BY partition_list", + /* 537 */ "partition_list ::= partition_item", + /* 538 */ "partition_list ::= partition_list NK_COMMA partition_item", + /* 539 */ "partition_item ::= expr_or_subquery", + /* 540 */ "partition_item ::= expr_or_subquery column_alias", + /* 541 */ "partition_item ::= expr_or_subquery AS column_alias", + /* 542 */ "twindow_clause_opt ::=", + /* 543 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 544 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", + /* 545 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 546 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 547 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", + /* 548 */ "sliding_opt ::=", + /* 549 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 550 */ "fill_opt ::=", + /* 551 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 552 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", + /* 553 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", + /* 554 */ "fill_mode ::= NONE", + /* 555 */ "fill_mode ::= PREV", + /* 556 */ "fill_mode ::= NULL", + /* 557 */ "fill_mode ::= NULL_F", + /* 558 */ "fill_mode ::= LINEAR", + /* 559 */ "fill_mode ::= NEXT", + /* 560 */ "group_by_clause_opt ::=", + /* 561 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 562 */ "group_by_list ::= expr_or_subquery", + /* 563 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", + /* 564 */ "having_clause_opt ::=", + /* 565 */ "having_clause_opt ::= HAVING search_condition", + /* 566 */ "range_opt ::=", + /* 567 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", + /* 568 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", + /* 569 */ "every_opt ::=", + /* 570 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", + /* 571 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 572 */ "query_simple ::= query_specification", + /* 573 */ "query_simple ::= union_query_expression", + /* 574 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", + /* 575 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", + /* 576 */ "query_simple_or_subquery ::= query_simple", + /* 577 */ "query_simple_or_subquery ::= subquery", + /* 578 */ "query_or_subquery ::= query_expression", + /* 579 */ "query_or_subquery ::= subquery", + /* 580 */ "order_by_clause_opt ::=", + /* 581 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 582 */ "slimit_clause_opt ::=", + /* 583 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 584 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 585 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 586 */ "limit_clause_opt ::=", + /* 587 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 588 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 589 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 590 */ "subquery ::= NK_LP query_expression NK_RP", + /* 591 */ "subquery ::= NK_LP subquery NK_RP", + /* 592 */ "search_condition ::= common_expression", + /* 593 */ "sort_specification_list ::= sort_specification", + /* 594 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 595 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", + /* 596 */ "ordering_specification_opt ::=", + /* 597 */ "ordering_specification_opt ::= ASC", + /* 598 */ "ordering_specification_opt ::= DESC", + /* 599 */ "null_ordering_opt ::=", + /* 600 */ "null_ordering_opt ::= NULLS FIRST", + /* 601 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -2703,214 +2702,212 @@ static void yy_destructor( */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ - case 342: /* cmd */ - case 345: /* literal */ - case 351: /* with_opt */ - case 357: /* search_condition */ - case 362: /* db_options */ - case 364: /* alter_db_options */ - case 366: /* start_opt */ - case 367: /* end_opt */ - case 371: /* signed */ - case 373: /* retention */ - case 374: /* full_table_name */ - case 377: /* table_options */ - case 381: /* alter_table_clause */ - case 382: /* alter_table_options */ - case 385: /* signed_literal */ - case 386: /* create_subtable_clause */ - case 389: /* drop_table_clause */ - case 391: /* column_def */ - case 395: /* duration_literal */ - case 396: /* rollup_func_name */ - case 398: /* col_name */ - case 399: /* db_name_cond_opt */ - case 400: /* like_pattern_opt */ - case 401: /* table_name_cond */ - case 402: /* from_db_opt */ - case 404: /* tag_item */ - case 406: /* full_index_name */ - case 407: /* index_options */ - case 410: /* sliding_opt */ - case 411: /* sma_stream_opt */ - case 412: /* func */ - case 415: /* query_or_subquery */ - case 416: /* where_clause_opt */ - case 419: /* explain_options */ - case 420: /* insert_query */ - case 426: /* stream_options */ - case 429: /* subtable_opt */ - case 431: /* expression */ - case 433: /* literal_func */ - case 436: /* expr_or_subquery */ - case 437: /* pseudo_column */ - case 438: /* column_reference */ - case 439: /* function_expression */ - case 440: /* case_when_expression */ - case 445: /* star_func_para */ - case 447: /* case_when_else_opt */ - case 448: /* common_expression */ - case 449: /* when_then_expr */ - case 450: /* predicate */ - case 453: /* in_predicate_value */ - case 454: /* boolean_value_expression */ - case 455: /* boolean_primary */ - case 456: /* from_clause_opt */ - case 457: /* table_reference_list */ - case 458: /* table_reference */ - case 459: /* table_primary */ - case 460: /* joined_table */ - case 462: /* subquery */ - case 463: /* parenthesized_joined_table */ - case 465: /* query_specification */ - case 470: /* range_opt */ - case 471: /* every_opt */ - case 472: /* fill_opt */ - case 473: /* twindow_clause_opt */ - case 475: /* having_clause_opt */ - case 476: /* hint_opt */ - case 478: /* select_item */ - case 480: /* partition_item */ - case 483: /* query_expression */ - case 484: /* query_simple */ - case 486: /* slimit_clause_opt */ - case 487: /* limit_clause_opt */ - case 488: /* union_query_expression */ - case 489: /* query_simple_or_subquery */ - case 491: /* sort_specification */ + case 339: /* cmd */ + case 342: /* literal */ + case 348: /* with_opt */ + case 354: /* search_condition */ + case 359: /* db_options */ + case 361: /* alter_db_options */ + case 363: /* start_opt */ + case 364: /* end_opt */ + case 368: /* signed */ + case 370: /* retention */ + case 371: /* full_table_name */ + case 374: /* table_options */ + case 378: /* alter_table_clause */ + case 379: /* alter_table_options */ + case 382: /* signed_literal */ + case 383: /* create_subtable_clause */ + case 386: /* drop_table_clause */ + case 388: /* column_def */ + case 392: /* duration_literal */ + case 393: /* rollup_func_name */ + case 395: /* col_name */ + case 396: /* db_name_cond_opt */ + case 397: /* like_pattern_opt */ + case 398: /* table_name_cond */ + case 399: /* from_db_opt */ + case 401: /* tag_item */ + case 403: /* full_index_name */ + case 404: /* index_options */ + case 407: /* sliding_opt */ + case 408: /* sma_stream_opt */ + case 409: /* func */ + case 412: /* query_or_subquery */ + case 413: /* where_clause_opt */ + case 416: /* explain_options */ + case 417: /* insert_query */ + case 423: /* stream_options */ + case 426: /* subtable_opt */ + case 428: /* expression */ + case 430: /* literal_func */ + case 433: /* expr_or_subquery */ + case 434: /* pseudo_column */ + case 435: /* column_reference */ + case 436: /* function_expression */ + case 437: /* case_when_expression */ + case 442: /* star_func_para */ + case 444: /* case_when_else_opt */ + case 445: /* common_expression */ + case 446: /* when_then_expr */ + case 447: /* predicate */ + case 450: /* in_predicate_value */ + case 451: /* boolean_value_expression */ + case 452: /* boolean_primary */ + case 453: /* from_clause_opt */ + case 454: /* table_reference_list */ + case 455: /* table_reference */ + case 456: /* table_primary */ + case 457: /* joined_table */ + case 459: /* subquery */ + case 460: /* parenthesized_joined_table */ + case 462: /* query_specification */ + case 467: /* range_opt */ + case 468: /* every_opt */ + case 469: /* fill_opt */ + case 470: /* twindow_clause_opt */ + case 472: /* having_clause_opt */ + case 473: /* select_item */ + case 475: /* partition_item */ + case 478: /* query_expression */ + case 479: /* query_simple */ + case 481: /* slimit_clause_opt */ + case 482: /* limit_clause_opt */ + case 483: /* union_query_expression */ + case 484: /* query_simple_or_subquery */ + case 486: /* sort_specification */ { - nodesDestroyNode((yypminor->yy28)); + nodesDestroyNode((yypminor->yy698)); } break; - case 343: /* account_options */ - case 344: /* alter_account_options */ - case 346: /* alter_account_option */ - case 365: /* speed_opt */ - case 414: /* with_meta */ - case 423: /* bufsize_opt */ + case 340: /* account_options */ + case 341: /* alter_account_options */ + case 343: /* alter_account_option */ + case 362: /* speed_opt */ + case 411: /* with_meta */ + case 420: /* bufsize_opt */ { } break; - case 347: /* user_name */ - case 354: /* db_name */ - case 355: /* table_name */ - case 356: /* topic_name */ - case 358: /* dnode_endpoint */ - case 383: /* column_name */ - case 397: /* function_name */ - case 405: /* column_alias */ - case 408: /* index_name */ - case 413: /* sma_func_name */ - case 417: /* cgroup_name */ - case 424: /* language_opt */ - case 425: /* stream_name */ - case 435: /* table_alias */ - case 441: /* star_func */ - case 443: /* noarg_func */ - case 461: /* alias_opt */ + case 344: /* user_name */ + case 351: /* db_name */ + case 352: /* table_name */ + case 353: /* topic_name */ + case 355: /* dnode_endpoint */ + case 380: /* column_name */ + case 394: /* function_name */ + case 402: /* column_alias */ + case 405: /* index_name */ + case 410: /* sma_func_name */ + case 414: /* cgroup_name */ + case 421: /* language_opt */ + case 422: /* stream_name */ + case 432: /* table_alias */ + case 438: /* star_func */ + case 440: /* noarg_func */ + case 458: /* alias_opt */ { } break; - case 348: /* sysinfo_opt */ + case 345: /* sysinfo_opt */ { } break; - case 349: /* privileges */ - case 352: /* priv_type_list */ - case 353: /* priv_type */ + case 346: /* privileges */ + case 349: /* priv_type_list */ + case 350: /* priv_type */ { } break; - case 350: /* priv_level */ + case 347: /* priv_level */ { } break; - case 359: /* force_opt */ - case 360: /* unsafe_opt */ - case 361: /* not_exists_opt */ - case 363: /* exists_opt */ - case 418: /* analyze_opt */ - case 421: /* or_replace_opt */ - case 422: /* agg_func_opt */ - case 430: /* ignore_opt */ - case 467: /* set_quantifier_opt */ + case 356: /* force_opt */ + case 357: /* unsafe_opt */ + case 358: /* not_exists_opt */ + case 360: /* exists_opt */ + case 415: /* analyze_opt */ + case 418: /* or_replace_opt */ + case 419: /* agg_func_opt */ + case 427: /* ignore_opt */ + case 464: /* set_quantifier_opt */ { } break; - case 368: /* integer_list */ - case 369: /* variable_list */ - case 370: /* retention_list */ - case 375: /* column_def_list */ - case 376: /* tags_def_opt */ - case 378: /* multi_create_clause */ - case 379: /* tags_def */ - case 380: /* multi_drop_clause */ - case 387: /* specific_cols_opt */ - case 388: /* expression_list */ - case 390: /* col_name_list */ - case 392: /* duration_list */ - case 393: /* rollup_func_list */ - case 403: /* tag_list_opt */ - case 409: /* func_list */ - case 427: /* col_list_opt */ - case 428: /* tag_def_or_ref_opt */ - case 432: /* dnode_list */ - case 434: /* literal_list */ - case 442: /* star_func_para_list */ - case 444: /* other_para_list */ - case 446: /* when_then_list */ - case 466: /* hint_list */ - case 468: /* select_list */ - case 469: /* partition_by_clause_opt */ - case 474: /* group_by_clause_opt */ - case 477: /* hint_opt_list */ - case 479: /* partition_list */ - case 482: /* group_by_list */ - case 485: /* order_by_clause_opt */ - case 490: /* sort_specification_list */ + case 365: /* integer_list */ + case 366: /* variable_list */ + case 367: /* retention_list */ + case 372: /* column_def_list */ + case 373: /* tags_def_opt */ + case 375: /* multi_create_clause */ + case 376: /* tags_def */ + case 377: /* multi_drop_clause */ + case 384: /* specific_cols_opt */ + case 385: /* expression_list */ + case 387: /* col_name_list */ + case 389: /* duration_list */ + case 390: /* rollup_func_list */ + case 400: /* tag_list_opt */ + case 406: /* func_list */ + case 424: /* col_list_opt */ + case 425: /* tag_def_or_ref_opt */ + case 429: /* dnode_list */ + case 431: /* literal_list */ + case 439: /* star_func_para_list */ + case 441: /* other_para_list */ + case 443: /* when_then_list */ + case 463: /* hint_list */ + case 465: /* select_list */ + case 466: /* partition_by_clause_opt */ + case 471: /* group_by_clause_opt */ + case 474: /* partition_list */ + case 477: /* group_by_list */ + case 480: /* order_by_clause_opt */ + case 485: /* sort_specification_list */ { - nodesDestroyList((yypminor->yy236)); + nodesDestroyList((yypminor->yy88)); } break; - case 372: /* alter_db_option */ - case 394: /* alter_table_option */ + case 369: /* alter_db_option */ + case 391: /* alter_table_option */ { } break; - case 384: /* type_name */ + case 381: /* type_name */ { } break; - case 451: /* compare_op */ - case 452: /* in_op */ + case 448: /* compare_op */ + case 449: /* in_op */ { } break; - case 464: /* join_type */ + case 461: /* join_type */ { } break; - case 481: /* fill_mode */ + case 476: /* fill_mode */ { } break; - case 492: /* ordering_specification_opt */ + case 487: /* ordering_specification_opt */ { } break; - case 493: /* null_ordering_opt */ + case 488: /* null_ordering_opt */ { } @@ -3201,613 +3198,608 @@ static void yy_shift( /* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side ** of that rule */ static const YYCODETYPE yyRuleInfoLhs[] = { - 342, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ - 342, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ - 343, /* (2) account_options ::= */ - 343, /* (3) account_options ::= account_options PPS literal */ - 343, /* (4) account_options ::= account_options TSERIES literal */ - 343, /* (5) account_options ::= account_options STORAGE literal */ - 343, /* (6) account_options ::= account_options STREAMS literal */ - 343, /* (7) account_options ::= account_options QTIME literal */ - 343, /* (8) account_options ::= account_options DBS literal */ - 343, /* (9) account_options ::= account_options USERS literal */ - 343, /* (10) account_options ::= account_options CONNS literal */ - 343, /* (11) account_options ::= account_options STATE literal */ - 344, /* (12) alter_account_options ::= alter_account_option */ - 344, /* (13) alter_account_options ::= alter_account_options alter_account_option */ - 346, /* (14) alter_account_option ::= PASS literal */ - 346, /* (15) alter_account_option ::= PPS literal */ - 346, /* (16) alter_account_option ::= TSERIES literal */ - 346, /* (17) alter_account_option ::= STORAGE literal */ - 346, /* (18) alter_account_option ::= STREAMS literal */ - 346, /* (19) alter_account_option ::= QTIME literal */ - 346, /* (20) alter_account_option ::= DBS literal */ - 346, /* (21) alter_account_option ::= USERS literal */ - 346, /* (22) alter_account_option ::= CONNS literal */ - 346, /* (23) alter_account_option ::= STATE literal */ - 342, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ - 342, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ - 342, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ - 342, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ - 342, /* (28) cmd ::= DROP USER user_name */ - 348, /* (29) sysinfo_opt ::= */ - 348, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */ - 342, /* (31) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ - 342, /* (32) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ - 349, /* (33) privileges ::= ALL */ - 349, /* (34) privileges ::= priv_type_list */ - 349, /* (35) privileges ::= SUBSCRIBE */ - 352, /* (36) priv_type_list ::= priv_type */ - 352, /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */ - 353, /* (38) priv_type ::= READ */ - 353, /* (39) priv_type ::= WRITE */ - 350, /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */ - 350, /* (41) priv_level ::= db_name NK_DOT NK_STAR */ - 350, /* (42) priv_level ::= db_name NK_DOT table_name */ - 350, /* (43) priv_level ::= topic_name */ - 351, /* (44) with_opt ::= */ - 351, /* (45) with_opt ::= WITH search_condition */ - 342, /* (46) cmd ::= CREATE DNODE dnode_endpoint */ - 342, /* (47) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ - 342, /* (48) cmd ::= DROP DNODE NK_INTEGER force_opt */ - 342, /* (49) cmd ::= DROP DNODE dnode_endpoint force_opt */ - 342, /* (50) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ - 342, /* (51) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ - 342, /* (52) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ - 342, /* (53) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ - 342, /* (54) cmd ::= ALTER ALL DNODES NK_STRING */ - 342, /* (55) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ - 342, /* (56) cmd ::= RESTORE DNODE NK_INTEGER */ - 358, /* (57) dnode_endpoint ::= NK_STRING */ - 358, /* (58) dnode_endpoint ::= NK_ID */ - 358, /* (59) dnode_endpoint ::= NK_IPTOKEN */ - 359, /* (60) force_opt ::= */ - 359, /* (61) force_opt ::= FORCE */ - 360, /* (62) unsafe_opt ::= UNSAFE */ - 342, /* (63) cmd ::= ALTER LOCAL NK_STRING */ - 342, /* (64) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - 342, /* (65) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - 342, /* (66) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - 342, /* (67) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ - 342, /* (68) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ - 342, /* (69) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ - 342, /* (70) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ - 342, /* (71) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ - 342, /* (72) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ - 342, /* (73) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ - 342, /* (74) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ - 342, /* (75) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ - 342, /* (76) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - 342, /* (77) cmd ::= DROP DATABASE exists_opt db_name */ - 342, /* (78) cmd ::= USE db_name */ - 342, /* (79) cmd ::= ALTER DATABASE db_name alter_db_options */ - 342, /* (80) cmd ::= FLUSH DATABASE db_name */ - 342, /* (81) cmd ::= TRIM DATABASE db_name speed_opt */ - 342, /* (82) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ - 361, /* (83) not_exists_opt ::= IF NOT EXISTS */ - 361, /* (84) not_exists_opt ::= */ - 363, /* (85) exists_opt ::= IF EXISTS */ - 363, /* (86) exists_opt ::= */ - 362, /* (87) db_options ::= */ - 362, /* (88) db_options ::= db_options BUFFER NK_INTEGER */ - 362, /* (89) db_options ::= db_options CACHEMODEL NK_STRING */ - 362, /* (90) db_options ::= db_options CACHESIZE NK_INTEGER */ - 362, /* (91) db_options ::= db_options COMP NK_INTEGER */ - 362, /* (92) db_options ::= db_options DURATION NK_INTEGER */ - 362, /* (93) db_options ::= db_options DURATION NK_VARIABLE */ - 362, /* (94) db_options ::= db_options MAXROWS NK_INTEGER */ - 362, /* (95) db_options ::= db_options MINROWS NK_INTEGER */ - 362, /* (96) db_options ::= db_options KEEP integer_list */ - 362, /* (97) db_options ::= db_options KEEP variable_list */ - 362, /* (98) db_options ::= db_options PAGES NK_INTEGER */ - 362, /* (99) db_options ::= db_options PAGESIZE NK_INTEGER */ - 362, /* (100) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ - 362, /* (101) db_options ::= db_options PRECISION NK_STRING */ - 362, /* (102) db_options ::= db_options REPLICA NK_INTEGER */ - 362, /* (103) db_options ::= db_options VGROUPS NK_INTEGER */ - 362, /* (104) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - 362, /* (105) db_options ::= db_options RETENTIONS retention_list */ - 362, /* (106) db_options ::= db_options SCHEMALESS NK_INTEGER */ - 362, /* (107) db_options ::= db_options WAL_LEVEL NK_INTEGER */ - 362, /* (108) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ - 362, /* (109) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ - 362, /* (110) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ - 362, /* (111) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ - 362, /* (112) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ - 362, /* (113) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ - 362, /* (114) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ - 362, /* (115) db_options ::= db_options STT_TRIGGER NK_INTEGER */ - 362, /* (116) db_options ::= db_options TABLE_PREFIX signed */ - 362, /* (117) db_options ::= db_options TABLE_SUFFIX signed */ - 364, /* (118) alter_db_options ::= alter_db_option */ - 364, /* (119) alter_db_options ::= alter_db_options alter_db_option */ - 372, /* (120) alter_db_option ::= BUFFER NK_INTEGER */ - 372, /* (121) alter_db_option ::= CACHEMODEL NK_STRING */ - 372, /* (122) alter_db_option ::= CACHESIZE NK_INTEGER */ - 372, /* (123) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ - 372, /* (124) alter_db_option ::= KEEP integer_list */ - 372, /* (125) alter_db_option ::= KEEP variable_list */ - 372, /* (126) alter_db_option ::= PAGES NK_INTEGER */ - 372, /* (127) alter_db_option ::= REPLICA NK_INTEGER */ - 372, /* (128) alter_db_option ::= WAL_LEVEL NK_INTEGER */ - 372, /* (129) alter_db_option ::= STT_TRIGGER NK_INTEGER */ - 372, /* (130) alter_db_option ::= MINROWS NK_INTEGER */ - 372, /* (131) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ - 372, /* (132) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ - 372, /* (133) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ - 372, /* (134) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ - 368, /* (135) integer_list ::= NK_INTEGER */ - 368, /* (136) integer_list ::= integer_list NK_COMMA NK_INTEGER */ - 369, /* (137) variable_list ::= NK_VARIABLE */ - 369, /* (138) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ - 370, /* (139) retention_list ::= retention */ - 370, /* (140) retention_list ::= retention_list NK_COMMA retention */ - 373, /* (141) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ - 365, /* (142) speed_opt ::= */ - 365, /* (143) speed_opt ::= MAX_SPEED NK_INTEGER */ - 366, /* (144) start_opt ::= */ - 366, /* (145) start_opt ::= START WITH NK_INTEGER */ - 366, /* (146) start_opt ::= START WITH NK_STRING */ - 366, /* (147) start_opt ::= START WITH TIMESTAMP NK_STRING */ - 367, /* (148) end_opt ::= */ - 367, /* (149) end_opt ::= END WITH NK_INTEGER */ - 367, /* (150) end_opt ::= END WITH NK_STRING */ - 367, /* (151) end_opt ::= END WITH TIMESTAMP NK_STRING */ - 342, /* (152) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - 342, /* (153) cmd ::= CREATE TABLE multi_create_clause */ - 342, /* (154) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - 342, /* (155) cmd ::= DROP TABLE multi_drop_clause */ - 342, /* (156) cmd ::= DROP STABLE exists_opt full_table_name */ - 342, /* (157) cmd ::= ALTER TABLE alter_table_clause */ - 342, /* (158) cmd ::= ALTER STABLE alter_table_clause */ - 381, /* (159) alter_table_clause ::= full_table_name alter_table_options */ - 381, /* (160) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - 381, /* (161) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - 381, /* (162) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - 381, /* (163) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - 381, /* (164) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - 381, /* (165) alter_table_clause ::= full_table_name DROP TAG column_name */ - 381, /* (166) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - 381, /* (167) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - 381, /* (168) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ - 378, /* (169) multi_create_clause ::= create_subtable_clause */ - 378, /* (170) multi_create_clause ::= multi_create_clause create_subtable_clause */ - 386, /* (171) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ - 380, /* (172) multi_drop_clause ::= drop_table_clause */ - 380, /* (173) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ - 389, /* (174) drop_table_clause ::= exists_opt full_table_name */ - 387, /* (175) specific_cols_opt ::= */ - 387, /* (176) specific_cols_opt ::= NK_LP col_name_list NK_RP */ - 374, /* (177) full_table_name ::= table_name */ - 374, /* (178) full_table_name ::= db_name NK_DOT table_name */ - 375, /* (179) column_def_list ::= column_def */ - 375, /* (180) column_def_list ::= column_def_list NK_COMMA column_def */ - 391, /* (181) column_def ::= column_name type_name */ - 384, /* (182) type_name ::= BOOL */ - 384, /* (183) type_name ::= TINYINT */ - 384, /* (184) type_name ::= SMALLINT */ - 384, /* (185) type_name ::= INT */ - 384, /* (186) type_name ::= INTEGER */ - 384, /* (187) type_name ::= BIGINT */ - 384, /* (188) type_name ::= FLOAT */ - 384, /* (189) type_name ::= DOUBLE */ - 384, /* (190) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - 384, /* (191) type_name ::= TIMESTAMP */ - 384, /* (192) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - 384, /* (193) type_name ::= TINYINT UNSIGNED */ - 384, /* (194) type_name ::= SMALLINT UNSIGNED */ - 384, /* (195) type_name ::= INT UNSIGNED */ - 384, /* (196) type_name ::= BIGINT UNSIGNED */ - 384, /* (197) type_name ::= JSON */ - 384, /* (198) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - 384, /* (199) type_name ::= MEDIUMBLOB */ - 384, /* (200) type_name ::= BLOB */ - 384, /* (201) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - 384, /* (202) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ - 384, /* (203) type_name ::= DECIMAL */ - 384, /* (204) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - 384, /* (205) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 376, /* (206) tags_def_opt ::= */ - 376, /* (207) tags_def_opt ::= tags_def */ - 379, /* (208) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - 377, /* (209) table_options ::= */ - 377, /* (210) table_options ::= table_options COMMENT NK_STRING */ - 377, /* (211) table_options ::= table_options MAX_DELAY duration_list */ - 377, /* (212) table_options ::= table_options WATERMARK duration_list */ - 377, /* (213) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ - 377, /* (214) table_options ::= table_options TTL NK_INTEGER */ - 377, /* (215) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - 377, /* (216) table_options ::= table_options DELETE_MARK duration_list */ - 382, /* (217) alter_table_options ::= alter_table_option */ - 382, /* (218) alter_table_options ::= alter_table_options alter_table_option */ - 394, /* (219) alter_table_option ::= COMMENT NK_STRING */ - 394, /* (220) alter_table_option ::= TTL NK_INTEGER */ - 392, /* (221) duration_list ::= duration_literal */ - 392, /* (222) duration_list ::= duration_list NK_COMMA duration_literal */ - 393, /* (223) rollup_func_list ::= rollup_func_name */ - 393, /* (224) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - 396, /* (225) rollup_func_name ::= function_name */ - 396, /* (226) rollup_func_name ::= FIRST */ - 396, /* (227) rollup_func_name ::= LAST */ - 390, /* (228) col_name_list ::= col_name */ - 390, /* (229) col_name_list ::= col_name_list NK_COMMA col_name */ - 398, /* (230) col_name ::= column_name */ - 342, /* (231) cmd ::= SHOW DNODES */ - 342, /* (232) cmd ::= SHOW USERS */ - 342, /* (233) cmd ::= SHOW USER PRIVILEGES */ - 342, /* (234) cmd ::= SHOW DATABASES */ - 342, /* (235) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - 342, /* (236) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - 342, /* (237) cmd ::= SHOW db_name_cond_opt VGROUPS */ - 342, /* (238) cmd ::= SHOW MNODES */ - 342, /* (239) cmd ::= SHOW QNODES */ - 342, /* (240) cmd ::= SHOW FUNCTIONS */ - 342, /* (241) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - 342, /* (242) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ - 342, /* (243) cmd ::= SHOW STREAMS */ - 342, /* (244) cmd ::= SHOW ACCOUNTS */ - 342, /* (245) cmd ::= SHOW APPS */ - 342, /* (246) cmd ::= SHOW CONNECTIONS */ - 342, /* (247) cmd ::= SHOW LICENCES */ - 342, /* (248) cmd ::= SHOW GRANTS */ - 342, /* (249) cmd ::= SHOW CREATE DATABASE db_name */ - 342, /* (250) cmd ::= SHOW CREATE TABLE full_table_name */ - 342, /* (251) cmd ::= SHOW CREATE STABLE full_table_name */ - 342, /* (252) cmd ::= SHOW QUERIES */ - 342, /* (253) cmd ::= SHOW SCORES */ - 342, /* (254) cmd ::= SHOW TOPICS */ - 342, /* (255) cmd ::= SHOW VARIABLES */ - 342, /* (256) cmd ::= SHOW CLUSTER VARIABLES */ - 342, /* (257) cmd ::= SHOW LOCAL VARIABLES */ - 342, /* (258) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ - 342, /* (259) cmd ::= SHOW BNODES */ - 342, /* (260) cmd ::= SHOW SNODES */ - 342, /* (261) cmd ::= SHOW CLUSTER */ - 342, /* (262) cmd ::= SHOW TRANSACTIONS */ - 342, /* (263) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ - 342, /* (264) cmd ::= SHOW CONSUMERS */ - 342, /* (265) cmd ::= SHOW SUBSCRIPTIONS */ - 342, /* (266) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ - 342, /* (267) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ - 342, /* (268) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ - 342, /* (269) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ - 342, /* (270) cmd ::= SHOW VNODES NK_INTEGER */ - 342, /* (271) cmd ::= SHOW VNODES NK_STRING */ - 342, /* (272) cmd ::= SHOW db_name_cond_opt ALIVE */ - 342, /* (273) cmd ::= SHOW CLUSTER ALIVE */ - 399, /* (274) db_name_cond_opt ::= */ - 399, /* (275) db_name_cond_opt ::= db_name NK_DOT */ - 400, /* (276) like_pattern_opt ::= */ - 400, /* (277) like_pattern_opt ::= LIKE NK_STRING */ - 401, /* (278) table_name_cond ::= table_name */ - 402, /* (279) from_db_opt ::= */ - 402, /* (280) from_db_opt ::= FROM db_name */ - 403, /* (281) tag_list_opt ::= */ - 403, /* (282) tag_list_opt ::= tag_item */ - 403, /* (283) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ - 404, /* (284) tag_item ::= TBNAME */ - 404, /* (285) tag_item ::= QTAGS */ - 404, /* (286) tag_item ::= column_name */ - 404, /* (287) tag_item ::= column_name column_alias */ - 404, /* (288) tag_item ::= column_name AS column_alias */ - 342, /* (289) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */ - 342, /* (290) cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */ - 342, /* (291) cmd ::= DROP INDEX exists_opt full_index_name */ - 406, /* (292) full_index_name ::= index_name */ - 406, /* (293) full_index_name ::= db_name NK_DOT index_name */ - 407, /* (294) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ - 407, /* (295) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ - 409, /* (296) func_list ::= func */ - 409, /* (297) func_list ::= func_list NK_COMMA func */ - 412, /* (298) func ::= sma_func_name NK_LP expression_list NK_RP */ - 413, /* (299) sma_func_name ::= function_name */ - 413, /* (300) sma_func_name ::= COUNT */ - 413, /* (301) sma_func_name ::= FIRST */ - 413, /* (302) sma_func_name ::= LAST */ - 413, /* (303) sma_func_name ::= LAST_ROW */ - 411, /* (304) sma_stream_opt ::= */ - 411, /* (305) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ - 411, /* (306) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ - 411, /* (307) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ - 414, /* (308) with_meta ::= AS */ - 414, /* (309) with_meta ::= WITH META AS */ - 414, /* (310) with_meta ::= ONLY META AS */ - 342, /* (311) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ - 342, /* (312) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ - 342, /* (313) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ - 342, /* (314) cmd ::= DROP TOPIC exists_opt topic_name */ - 342, /* (315) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - 342, /* (316) cmd ::= DESC full_table_name */ - 342, /* (317) cmd ::= DESCRIBE full_table_name */ - 342, /* (318) cmd ::= RESET QUERY CACHE */ - 342, /* (319) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - 342, /* (320) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ - 418, /* (321) analyze_opt ::= */ - 418, /* (322) analyze_opt ::= ANALYZE */ - 419, /* (323) explain_options ::= */ - 419, /* (324) explain_options ::= explain_options VERBOSE NK_BOOL */ - 419, /* (325) explain_options ::= explain_options RATIO NK_FLOAT */ - 342, /* (326) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ - 342, /* (327) cmd ::= DROP FUNCTION exists_opt function_name */ - 422, /* (328) agg_func_opt ::= */ - 422, /* (329) agg_func_opt ::= AGGREGATE */ - 423, /* (330) bufsize_opt ::= */ - 423, /* (331) bufsize_opt ::= BUFSIZE NK_INTEGER */ - 424, /* (332) language_opt ::= */ - 424, /* (333) language_opt ::= LANGUAGE NK_STRING */ - 421, /* (334) or_replace_opt ::= */ - 421, /* (335) or_replace_opt ::= OR REPLACE */ - 342, /* (336) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ - 342, /* (337) cmd ::= DROP STREAM exists_opt stream_name */ - 342, /* (338) cmd ::= PAUSE STREAM exists_opt stream_name */ - 342, /* (339) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ - 427, /* (340) col_list_opt ::= */ - 427, /* (341) col_list_opt ::= NK_LP col_name_list NK_RP */ - 428, /* (342) tag_def_or_ref_opt ::= */ - 428, /* (343) tag_def_or_ref_opt ::= tags_def */ - 428, /* (344) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ - 426, /* (345) stream_options ::= */ - 426, /* (346) stream_options ::= stream_options TRIGGER AT_ONCE */ - 426, /* (347) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - 426, /* (348) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - 426, /* (349) stream_options ::= stream_options WATERMARK duration_literal */ - 426, /* (350) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ - 426, /* (351) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ - 426, /* (352) stream_options ::= stream_options DELETE_MARK duration_literal */ - 426, /* (353) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ - 429, /* (354) subtable_opt ::= */ - 429, /* (355) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - 430, /* (356) ignore_opt ::= */ - 430, /* (357) ignore_opt ::= IGNORE UNTREATED */ - 342, /* (358) cmd ::= KILL CONNECTION NK_INTEGER */ - 342, /* (359) cmd ::= KILL QUERY NK_STRING */ - 342, /* (360) cmd ::= KILL TRANSACTION NK_INTEGER */ - 342, /* (361) cmd ::= BALANCE VGROUP */ - 342, /* (362) cmd ::= BALANCE VGROUP LEADER */ - 342, /* (363) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - 342, /* (364) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - 342, /* (365) cmd ::= SPLIT VGROUP NK_INTEGER */ - 432, /* (366) dnode_list ::= DNODE NK_INTEGER */ - 432, /* (367) dnode_list ::= dnode_list DNODE NK_INTEGER */ - 342, /* (368) cmd ::= DELETE FROM full_table_name where_clause_opt */ - 342, /* (369) cmd ::= query_or_subquery */ - 342, /* (370) cmd ::= insert_query */ - 420, /* (371) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ - 420, /* (372) insert_query ::= INSERT INTO full_table_name query_or_subquery */ - 345, /* (373) literal ::= NK_INTEGER */ - 345, /* (374) literal ::= NK_FLOAT */ - 345, /* (375) literal ::= NK_STRING */ - 345, /* (376) literal ::= NK_BOOL */ - 345, /* (377) literal ::= TIMESTAMP NK_STRING */ - 345, /* (378) literal ::= duration_literal */ - 345, /* (379) literal ::= NULL */ - 345, /* (380) literal ::= NK_QUESTION */ - 395, /* (381) duration_literal ::= NK_VARIABLE */ - 371, /* (382) signed ::= NK_INTEGER */ - 371, /* (383) signed ::= NK_PLUS NK_INTEGER */ - 371, /* (384) signed ::= NK_MINUS NK_INTEGER */ - 371, /* (385) signed ::= NK_FLOAT */ - 371, /* (386) signed ::= NK_PLUS NK_FLOAT */ - 371, /* (387) signed ::= NK_MINUS NK_FLOAT */ - 385, /* (388) signed_literal ::= signed */ - 385, /* (389) signed_literal ::= NK_STRING */ - 385, /* (390) signed_literal ::= NK_BOOL */ - 385, /* (391) signed_literal ::= TIMESTAMP NK_STRING */ - 385, /* (392) signed_literal ::= duration_literal */ - 385, /* (393) signed_literal ::= NULL */ - 385, /* (394) signed_literal ::= literal_func */ - 385, /* (395) signed_literal ::= NK_QUESTION */ - 434, /* (396) literal_list ::= signed_literal */ - 434, /* (397) literal_list ::= literal_list NK_COMMA signed_literal */ - 354, /* (398) db_name ::= NK_ID */ - 355, /* (399) table_name ::= NK_ID */ - 383, /* (400) column_name ::= NK_ID */ - 397, /* (401) function_name ::= NK_ID */ - 435, /* (402) table_alias ::= NK_ID */ - 405, /* (403) column_alias ::= NK_ID */ - 347, /* (404) user_name ::= NK_ID */ - 356, /* (405) topic_name ::= NK_ID */ - 425, /* (406) stream_name ::= NK_ID */ - 417, /* (407) cgroup_name ::= NK_ID */ - 408, /* (408) index_name ::= NK_ID */ - 436, /* (409) expr_or_subquery ::= expression */ - 431, /* (410) expression ::= literal */ - 431, /* (411) expression ::= pseudo_column */ - 431, /* (412) expression ::= column_reference */ - 431, /* (413) expression ::= function_expression */ - 431, /* (414) expression ::= case_when_expression */ - 431, /* (415) expression ::= NK_LP expression NK_RP */ - 431, /* (416) expression ::= NK_PLUS expr_or_subquery */ - 431, /* (417) expression ::= NK_MINUS expr_or_subquery */ - 431, /* (418) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ - 431, /* (419) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ - 431, /* (420) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ - 431, /* (421) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ - 431, /* (422) expression ::= expr_or_subquery NK_REM expr_or_subquery */ - 431, /* (423) expression ::= column_reference NK_ARROW NK_STRING */ - 431, /* (424) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ - 431, /* (425) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ - 388, /* (426) expression_list ::= expr_or_subquery */ - 388, /* (427) expression_list ::= expression_list NK_COMMA expr_or_subquery */ - 438, /* (428) column_reference ::= column_name */ - 438, /* (429) column_reference ::= table_name NK_DOT column_name */ - 437, /* (430) pseudo_column ::= ROWTS */ - 437, /* (431) pseudo_column ::= TBNAME */ - 437, /* (432) pseudo_column ::= table_name NK_DOT TBNAME */ - 437, /* (433) pseudo_column ::= QSTART */ - 437, /* (434) pseudo_column ::= QEND */ - 437, /* (435) pseudo_column ::= QDURATION */ - 437, /* (436) pseudo_column ::= WSTART */ - 437, /* (437) pseudo_column ::= WEND */ - 437, /* (438) pseudo_column ::= WDURATION */ - 437, /* (439) pseudo_column ::= IROWTS */ - 437, /* (440) pseudo_column ::= ISFILLED */ - 437, /* (441) pseudo_column ::= QTAGS */ - 439, /* (442) function_expression ::= function_name NK_LP expression_list NK_RP */ - 439, /* (443) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - 439, /* (444) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ - 439, /* (445) function_expression ::= literal_func */ - 433, /* (446) literal_func ::= noarg_func NK_LP NK_RP */ - 433, /* (447) literal_func ::= NOW */ - 443, /* (448) noarg_func ::= NOW */ - 443, /* (449) noarg_func ::= TODAY */ - 443, /* (450) noarg_func ::= TIMEZONE */ - 443, /* (451) noarg_func ::= DATABASE */ - 443, /* (452) noarg_func ::= CLIENT_VERSION */ - 443, /* (453) noarg_func ::= SERVER_VERSION */ - 443, /* (454) noarg_func ::= SERVER_STATUS */ - 443, /* (455) noarg_func ::= CURRENT_USER */ - 443, /* (456) noarg_func ::= USER */ - 441, /* (457) star_func ::= COUNT */ - 441, /* (458) star_func ::= FIRST */ - 441, /* (459) star_func ::= LAST */ - 441, /* (460) star_func ::= LAST_ROW */ - 442, /* (461) star_func_para_list ::= NK_STAR */ - 442, /* (462) star_func_para_list ::= other_para_list */ - 444, /* (463) other_para_list ::= star_func_para */ - 444, /* (464) other_para_list ::= other_para_list NK_COMMA star_func_para */ - 445, /* (465) star_func_para ::= expr_or_subquery */ - 445, /* (466) star_func_para ::= table_name NK_DOT NK_STAR */ - 440, /* (467) case_when_expression ::= CASE when_then_list case_when_else_opt END */ - 440, /* (468) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ - 446, /* (469) when_then_list ::= when_then_expr */ - 446, /* (470) when_then_list ::= when_then_list when_then_expr */ - 449, /* (471) when_then_expr ::= WHEN common_expression THEN common_expression */ - 447, /* (472) case_when_else_opt ::= */ - 447, /* (473) case_when_else_opt ::= ELSE common_expression */ - 450, /* (474) predicate ::= expr_or_subquery compare_op expr_or_subquery */ - 450, /* (475) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ - 450, /* (476) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ - 450, /* (477) predicate ::= expr_or_subquery IS NULL */ - 450, /* (478) predicate ::= expr_or_subquery IS NOT NULL */ - 450, /* (479) predicate ::= expr_or_subquery in_op in_predicate_value */ - 451, /* (480) compare_op ::= NK_LT */ - 451, /* (481) compare_op ::= NK_GT */ - 451, /* (482) compare_op ::= NK_LE */ - 451, /* (483) compare_op ::= NK_GE */ - 451, /* (484) compare_op ::= NK_NE */ - 451, /* (485) compare_op ::= NK_EQ */ - 451, /* (486) compare_op ::= LIKE */ - 451, /* (487) compare_op ::= NOT LIKE */ - 451, /* (488) compare_op ::= MATCH */ - 451, /* (489) compare_op ::= NMATCH */ - 451, /* (490) compare_op ::= CONTAINS */ - 452, /* (491) in_op ::= IN */ - 452, /* (492) in_op ::= NOT IN */ - 453, /* (493) in_predicate_value ::= NK_LP literal_list NK_RP */ - 454, /* (494) boolean_value_expression ::= boolean_primary */ - 454, /* (495) boolean_value_expression ::= NOT boolean_primary */ - 454, /* (496) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - 454, /* (497) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - 455, /* (498) boolean_primary ::= predicate */ - 455, /* (499) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - 448, /* (500) common_expression ::= expr_or_subquery */ - 448, /* (501) common_expression ::= boolean_value_expression */ - 456, /* (502) from_clause_opt ::= */ - 456, /* (503) from_clause_opt ::= FROM table_reference_list */ - 457, /* (504) table_reference_list ::= table_reference */ - 457, /* (505) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - 458, /* (506) table_reference ::= table_primary */ - 458, /* (507) table_reference ::= joined_table */ - 459, /* (508) table_primary ::= table_name alias_opt */ - 459, /* (509) table_primary ::= db_name NK_DOT table_name alias_opt */ - 459, /* (510) table_primary ::= subquery alias_opt */ - 459, /* (511) table_primary ::= parenthesized_joined_table */ - 461, /* (512) alias_opt ::= */ - 461, /* (513) alias_opt ::= table_alias */ - 461, /* (514) alias_opt ::= AS table_alias */ - 463, /* (515) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - 463, /* (516) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - 460, /* (517) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - 464, /* (518) join_type ::= */ - 464, /* (519) join_type ::= INNER */ - 465, /* (520) query_specification ::= SELECT hint_list set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - 476, /* (521) hint_opt ::= NO_BATCH_SCAN NK_LP NK_RP */ - 476, /* (522) hint_opt ::= BATCH_SCAN NK_LP NK_RP */ - 477, /* (523) hint_opt_list ::= */ - 477, /* (524) hint_opt_list ::= hint_opt */ - 477, /* (525) hint_opt_list ::= hint_opt_list hint_opt */ - 466, /* (526) hint_list ::= */ - 466, /* (527) hint_list ::= NK_HINT_BEGIN hint_opt_list NK_HINT_END */ - 467, /* (528) set_quantifier_opt ::= */ - 467, /* (529) set_quantifier_opt ::= DISTINCT */ - 467, /* (530) set_quantifier_opt ::= ALL */ - 468, /* (531) select_list ::= select_item */ - 468, /* (532) select_list ::= select_list NK_COMMA select_item */ - 478, /* (533) select_item ::= NK_STAR */ - 478, /* (534) select_item ::= common_expression */ - 478, /* (535) select_item ::= common_expression column_alias */ - 478, /* (536) select_item ::= common_expression AS column_alias */ - 478, /* (537) select_item ::= table_name NK_DOT NK_STAR */ - 416, /* (538) where_clause_opt ::= */ - 416, /* (539) where_clause_opt ::= WHERE search_condition */ - 469, /* (540) partition_by_clause_opt ::= */ - 469, /* (541) partition_by_clause_opt ::= PARTITION BY partition_list */ - 479, /* (542) partition_list ::= partition_item */ - 479, /* (543) partition_list ::= partition_list NK_COMMA partition_item */ - 480, /* (544) partition_item ::= expr_or_subquery */ - 480, /* (545) partition_item ::= expr_or_subquery column_alias */ - 480, /* (546) partition_item ::= expr_or_subquery AS column_alias */ - 473, /* (547) twindow_clause_opt ::= */ - 473, /* (548) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - 473, /* (549) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ - 473, /* (550) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - 473, /* (551) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - 473, /* (552) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ - 410, /* (553) sliding_opt ::= */ - 410, /* (554) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - 472, /* (555) fill_opt ::= */ - 472, /* (556) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - 472, /* (557) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ - 472, /* (558) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ - 481, /* (559) fill_mode ::= NONE */ - 481, /* (560) fill_mode ::= PREV */ - 481, /* (561) fill_mode ::= NULL */ - 481, /* (562) fill_mode ::= NULL_F */ - 481, /* (563) fill_mode ::= LINEAR */ - 481, /* (564) fill_mode ::= NEXT */ - 474, /* (565) group_by_clause_opt ::= */ - 474, /* (566) group_by_clause_opt ::= GROUP BY group_by_list */ - 482, /* (567) group_by_list ::= expr_or_subquery */ - 482, /* (568) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ - 475, /* (569) having_clause_opt ::= */ - 475, /* (570) having_clause_opt ::= HAVING search_condition */ - 470, /* (571) range_opt ::= */ - 470, /* (572) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ - 470, /* (573) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ - 471, /* (574) every_opt ::= */ - 471, /* (575) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - 483, /* (576) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ - 484, /* (577) query_simple ::= query_specification */ - 484, /* (578) query_simple ::= union_query_expression */ - 488, /* (579) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ - 488, /* (580) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ - 489, /* (581) query_simple_or_subquery ::= query_simple */ - 489, /* (582) query_simple_or_subquery ::= subquery */ - 415, /* (583) query_or_subquery ::= query_expression */ - 415, /* (584) query_or_subquery ::= subquery */ - 485, /* (585) order_by_clause_opt ::= */ - 485, /* (586) order_by_clause_opt ::= ORDER BY sort_specification_list */ - 486, /* (587) slimit_clause_opt ::= */ - 486, /* (588) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - 486, /* (589) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - 486, /* (590) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 487, /* (591) limit_clause_opt ::= */ - 487, /* (592) limit_clause_opt ::= LIMIT NK_INTEGER */ - 487, /* (593) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - 487, /* (594) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 462, /* (595) subquery ::= NK_LP query_expression NK_RP */ - 462, /* (596) subquery ::= NK_LP subquery NK_RP */ - 357, /* (597) search_condition ::= common_expression */ - 490, /* (598) sort_specification_list ::= sort_specification */ - 490, /* (599) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - 491, /* (600) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ - 492, /* (601) ordering_specification_opt ::= */ - 492, /* (602) ordering_specification_opt ::= ASC */ - 492, /* (603) ordering_specification_opt ::= DESC */ - 493, /* (604) null_ordering_opt ::= */ - 493, /* (605) null_ordering_opt ::= NULLS FIRST */ - 493, /* (606) null_ordering_opt ::= NULLS LAST */ + 339, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ + 339, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ + 340, /* (2) account_options ::= */ + 340, /* (3) account_options ::= account_options PPS literal */ + 340, /* (4) account_options ::= account_options TSERIES literal */ + 340, /* (5) account_options ::= account_options STORAGE literal */ + 340, /* (6) account_options ::= account_options STREAMS literal */ + 340, /* (7) account_options ::= account_options QTIME literal */ + 340, /* (8) account_options ::= account_options DBS literal */ + 340, /* (9) account_options ::= account_options USERS literal */ + 340, /* (10) account_options ::= account_options CONNS literal */ + 340, /* (11) account_options ::= account_options STATE literal */ + 341, /* (12) alter_account_options ::= alter_account_option */ + 341, /* (13) alter_account_options ::= alter_account_options alter_account_option */ + 343, /* (14) alter_account_option ::= PASS literal */ + 343, /* (15) alter_account_option ::= PPS literal */ + 343, /* (16) alter_account_option ::= TSERIES literal */ + 343, /* (17) alter_account_option ::= STORAGE literal */ + 343, /* (18) alter_account_option ::= STREAMS literal */ + 343, /* (19) alter_account_option ::= QTIME literal */ + 343, /* (20) alter_account_option ::= DBS literal */ + 343, /* (21) alter_account_option ::= USERS literal */ + 343, /* (22) alter_account_option ::= CONNS literal */ + 343, /* (23) alter_account_option ::= STATE literal */ + 339, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ + 339, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ + 339, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ + 339, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ + 339, /* (28) cmd ::= DROP USER user_name */ + 345, /* (29) sysinfo_opt ::= */ + 345, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */ + 339, /* (31) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ + 339, /* (32) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ + 346, /* (33) privileges ::= ALL */ + 346, /* (34) privileges ::= priv_type_list */ + 346, /* (35) privileges ::= SUBSCRIBE */ + 349, /* (36) priv_type_list ::= priv_type */ + 349, /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */ + 350, /* (38) priv_type ::= READ */ + 350, /* (39) priv_type ::= WRITE */ + 347, /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */ + 347, /* (41) priv_level ::= db_name NK_DOT NK_STAR */ + 347, /* (42) priv_level ::= db_name NK_DOT table_name */ + 347, /* (43) priv_level ::= topic_name */ + 348, /* (44) with_opt ::= */ + 348, /* (45) with_opt ::= WITH search_condition */ + 339, /* (46) cmd ::= CREATE DNODE dnode_endpoint */ + 339, /* (47) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ + 339, /* (48) cmd ::= DROP DNODE NK_INTEGER force_opt */ + 339, /* (49) cmd ::= DROP DNODE dnode_endpoint force_opt */ + 339, /* (50) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ + 339, /* (51) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ + 339, /* (52) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + 339, /* (53) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + 339, /* (54) cmd ::= ALTER ALL DNODES NK_STRING */ + 339, /* (55) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + 339, /* (56) cmd ::= RESTORE DNODE NK_INTEGER */ + 355, /* (57) dnode_endpoint ::= NK_STRING */ + 355, /* (58) dnode_endpoint ::= NK_ID */ + 355, /* (59) dnode_endpoint ::= NK_IPTOKEN */ + 356, /* (60) force_opt ::= */ + 356, /* (61) force_opt ::= FORCE */ + 357, /* (62) unsafe_opt ::= UNSAFE */ + 339, /* (63) cmd ::= ALTER LOCAL NK_STRING */ + 339, /* (64) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + 339, /* (65) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + 339, /* (66) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + 339, /* (67) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ + 339, /* (68) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + 339, /* (69) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + 339, /* (70) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + 339, /* (71) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + 339, /* (72) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + 339, /* (73) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + 339, /* (74) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ + 339, /* (75) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ + 339, /* (76) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + 339, /* (77) cmd ::= DROP DATABASE exists_opt db_name */ + 339, /* (78) cmd ::= USE db_name */ + 339, /* (79) cmd ::= ALTER DATABASE db_name alter_db_options */ + 339, /* (80) cmd ::= FLUSH DATABASE db_name */ + 339, /* (81) cmd ::= TRIM DATABASE db_name speed_opt */ + 339, /* (82) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ + 358, /* (83) not_exists_opt ::= IF NOT EXISTS */ + 358, /* (84) not_exists_opt ::= */ + 360, /* (85) exists_opt ::= IF EXISTS */ + 360, /* (86) exists_opt ::= */ + 359, /* (87) db_options ::= */ + 359, /* (88) db_options ::= db_options BUFFER NK_INTEGER */ + 359, /* (89) db_options ::= db_options CACHEMODEL NK_STRING */ + 359, /* (90) db_options ::= db_options CACHESIZE NK_INTEGER */ + 359, /* (91) db_options ::= db_options COMP NK_INTEGER */ + 359, /* (92) db_options ::= db_options DURATION NK_INTEGER */ + 359, /* (93) db_options ::= db_options DURATION NK_VARIABLE */ + 359, /* (94) db_options ::= db_options MAXROWS NK_INTEGER */ + 359, /* (95) db_options ::= db_options MINROWS NK_INTEGER */ + 359, /* (96) db_options ::= db_options KEEP integer_list */ + 359, /* (97) db_options ::= db_options KEEP variable_list */ + 359, /* (98) db_options ::= db_options PAGES NK_INTEGER */ + 359, /* (99) db_options ::= db_options PAGESIZE NK_INTEGER */ + 359, /* (100) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ + 359, /* (101) db_options ::= db_options PRECISION NK_STRING */ + 359, /* (102) db_options ::= db_options REPLICA NK_INTEGER */ + 359, /* (103) db_options ::= db_options VGROUPS NK_INTEGER */ + 359, /* (104) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + 359, /* (105) db_options ::= db_options RETENTIONS retention_list */ + 359, /* (106) db_options ::= db_options SCHEMALESS NK_INTEGER */ + 359, /* (107) db_options ::= db_options WAL_LEVEL NK_INTEGER */ + 359, /* (108) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ + 359, /* (109) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ + 359, /* (110) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ + 359, /* (111) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ + 359, /* (112) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ + 359, /* (113) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ + 359, /* (114) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ + 359, /* (115) db_options ::= db_options STT_TRIGGER NK_INTEGER */ + 359, /* (116) db_options ::= db_options TABLE_PREFIX signed */ + 359, /* (117) db_options ::= db_options TABLE_SUFFIX signed */ + 361, /* (118) alter_db_options ::= alter_db_option */ + 361, /* (119) alter_db_options ::= alter_db_options alter_db_option */ + 369, /* (120) alter_db_option ::= BUFFER NK_INTEGER */ + 369, /* (121) alter_db_option ::= CACHEMODEL NK_STRING */ + 369, /* (122) alter_db_option ::= CACHESIZE NK_INTEGER */ + 369, /* (123) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ + 369, /* (124) alter_db_option ::= KEEP integer_list */ + 369, /* (125) alter_db_option ::= KEEP variable_list */ + 369, /* (126) alter_db_option ::= PAGES NK_INTEGER */ + 369, /* (127) alter_db_option ::= REPLICA NK_INTEGER */ + 369, /* (128) alter_db_option ::= WAL_LEVEL NK_INTEGER */ + 369, /* (129) alter_db_option ::= STT_TRIGGER NK_INTEGER */ + 369, /* (130) alter_db_option ::= MINROWS NK_INTEGER */ + 369, /* (131) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ + 369, /* (132) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ + 369, /* (133) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ + 369, /* (134) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ + 365, /* (135) integer_list ::= NK_INTEGER */ + 365, /* (136) integer_list ::= integer_list NK_COMMA NK_INTEGER */ + 366, /* (137) variable_list ::= NK_VARIABLE */ + 366, /* (138) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + 367, /* (139) retention_list ::= retention */ + 367, /* (140) retention_list ::= retention_list NK_COMMA retention */ + 370, /* (141) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + 362, /* (142) speed_opt ::= */ + 362, /* (143) speed_opt ::= MAX_SPEED NK_INTEGER */ + 363, /* (144) start_opt ::= */ + 363, /* (145) start_opt ::= START WITH NK_INTEGER */ + 363, /* (146) start_opt ::= START WITH NK_STRING */ + 363, /* (147) start_opt ::= START WITH TIMESTAMP NK_STRING */ + 364, /* (148) end_opt ::= */ + 364, /* (149) end_opt ::= END WITH NK_INTEGER */ + 364, /* (150) end_opt ::= END WITH NK_STRING */ + 364, /* (151) end_opt ::= END WITH TIMESTAMP NK_STRING */ + 339, /* (152) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + 339, /* (153) cmd ::= CREATE TABLE multi_create_clause */ + 339, /* (154) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + 339, /* (155) cmd ::= DROP TABLE multi_drop_clause */ + 339, /* (156) cmd ::= DROP STABLE exists_opt full_table_name */ + 339, /* (157) cmd ::= ALTER TABLE alter_table_clause */ + 339, /* (158) cmd ::= ALTER STABLE alter_table_clause */ + 378, /* (159) alter_table_clause ::= full_table_name alter_table_options */ + 378, /* (160) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + 378, /* (161) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + 378, /* (162) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + 378, /* (163) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + 378, /* (164) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + 378, /* (165) alter_table_clause ::= full_table_name DROP TAG column_name */ + 378, /* (166) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + 378, /* (167) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + 378, /* (168) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ + 375, /* (169) multi_create_clause ::= create_subtable_clause */ + 375, /* (170) multi_create_clause ::= multi_create_clause create_subtable_clause */ + 383, /* (171) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ + 377, /* (172) multi_drop_clause ::= drop_table_clause */ + 377, /* (173) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ + 386, /* (174) drop_table_clause ::= exists_opt full_table_name */ + 384, /* (175) specific_cols_opt ::= */ + 384, /* (176) specific_cols_opt ::= NK_LP col_name_list NK_RP */ + 371, /* (177) full_table_name ::= table_name */ + 371, /* (178) full_table_name ::= db_name NK_DOT table_name */ + 372, /* (179) column_def_list ::= column_def */ + 372, /* (180) column_def_list ::= column_def_list NK_COMMA column_def */ + 388, /* (181) column_def ::= column_name type_name */ + 381, /* (182) type_name ::= BOOL */ + 381, /* (183) type_name ::= TINYINT */ + 381, /* (184) type_name ::= SMALLINT */ + 381, /* (185) type_name ::= INT */ + 381, /* (186) type_name ::= INTEGER */ + 381, /* (187) type_name ::= BIGINT */ + 381, /* (188) type_name ::= FLOAT */ + 381, /* (189) type_name ::= DOUBLE */ + 381, /* (190) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + 381, /* (191) type_name ::= TIMESTAMP */ + 381, /* (192) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + 381, /* (193) type_name ::= TINYINT UNSIGNED */ + 381, /* (194) type_name ::= SMALLINT UNSIGNED */ + 381, /* (195) type_name ::= INT UNSIGNED */ + 381, /* (196) type_name ::= BIGINT UNSIGNED */ + 381, /* (197) type_name ::= JSON */ + 381, /* (198) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + 381, /* (199) type_name ::= MEDIUMBLOB */ + 381, /* (200) type_name ::= BLOB */ + 381, /* (201) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + 381, /* (202) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ + 381, /* (203) type_name ::= DECIMAL */ + 381, /* (204) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + 381, /* (205) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + 373, /* (206) tags_def_opt ::= */ + 373, /* (207) tags_def_opt ::= tags_def */ + 376, /* (208) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + 374, /* (209) table_options ::= */ + 374, /* (210) table_options ::= table_options COMMENT NK_STRING */ + 374, /* (211) table_options ::= table_options MAX_DELAY duration_list */ + 374, /* (212) table_options ::= table_options WATERMARK duration_list */ + 374, /* (213) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + 374, /* (214) table_options ::= table_options TTL NK_INTEGER */ + 374, /* (215) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + 374, /* (216) table_options ::= table_options DELETE_MARK duration_list */ + 379, /* (217) alter_table_options ::= alter_table_option */ + 379, /* (218) alter_table_options ::= alter_table_options alter_table_option */ + 391, /* (219) alter_table_option ::= COMMENT NK_STRING */ + 391, /* (220) alter_table_option ::= TTL NK_INTEGER */ + 389, /* (221) duration_list ::= duration_literal */ + 389, /* (222) duration_list ::= duration_list NK_COMMA duration_literal */ + 390, /* (223) rollup_func_list ::= rollup_func_name */ + 390, /* (224) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + 393, /* (225) rollup_func_name ::= function_name */ + 393, /* (226) rollup_func_name ::= FIRST */ + 393, /* (227) rollup_func_name ::= LAST */ + 387, /* (228) col_name_list ::= col_name */ + 387, /* (229) col_name_list ::= col_name_list NK_COMMA col_name */ + 395, /* (230) col_name ::= column_name */ + 339, /* (231) cmd ::= SHOW DNODES */ + 339, /* (232) cmd ::= SHOW USERS */ + 339, /* (233) cmd ::= SHOW USER PRIVILEGES */ + 339, /* (234) cmd ::= SHOW DATABASES */ + 339, /* (235) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + 339, /* (236) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + 339, /* (237) cmd ::= SHOW db_name_cond_opt VGROUPS */ + 339, /* (238) cmd ::= SHOW MNODES */ + 339, /* (239) cmd ::= SHOW QNODES */ + 339, /* (240) cmd ::= SHOW FUNCTIONS */ + 339, /* (241) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + 339, /* (242) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ + 339, /* (243) cmd ::= SHOW STREAMS */ + 339, /* (244) cmd ::= SHOW ACCOUNTS */ + 339, /* (245) cmd ::= SHOW APPS */ + 339, /* (246) cmd ::= SHOW CONNECTIONS */ + 339, /* (247) cmd ::= SHOW LICENCES */ + 339, /* (248) cmd ::= SHOW GRANTS */ + 339, /* (249) cmd ::= SHOW CREATE DATABASE db_name */ + 339, /* (250) cmd ::= SHOW CREATE TABLE full_table_name */ + 339, /* (251) cmd ::= SHOW CREATE STABLE full_table_name */ + 339, /* (252) cmd ::= SHOW QUERIES */ + 339, /* (253) cmd ::= SHOW SCORES */ + 339, /* (254) cmd ::= SHOW TOPICS */ + 339, /* (255) cmd ::= SHOW VARIABLES */ + 339, /* (256) cmd ::= SHOW CLUSTER VARIABLES */ + 339, /* (257) cmd ::= SHOW LOCAL VARIABLES */ + 339, /* (258) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ + 339, /* (259) cmd ::= SHOW BNODES */ + 339, /* (260) cmd ::= SHOW SNODES */ + 339, /* (261) cmd ::= SHOW CLUSTER */ + 339, /* (262) cmd ::= SHOW TRANSACTIONS */ + 339, /* (263) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + 339, /* (264) cmd ::= SHOW CONSUMERS */ + 339, /* (265) cmd ::= SHOW SUBSCRIPTIONS */ + 339, /* (266) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ + 339, /* (267) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ + 339, /* (268) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ + 339, /* (269) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ + 339, /* (270) cmd ::= SHOW VNODES NK_INTEGER */ + 339, /* (271) cmd ::= SHOW VNODES NK_STRING */ + 339, /* (272) cmd ::= SHOW db_name_cond_opt ALIVE */ + 339, /* (273) cmd ::= SHOW CLUSTER ALIVE */ + 396, /* (274) db_name_cond_opt ::= */ + 396, /* (275) db_name_cond_opt ::= db_name NK_DOT */ + 397, /* (276) like_pattern_opt ::= */ + 397, /* (277) like_pattern_opt ::= LIKE NK_STRING */ + 398, /* (278) table_name_cond ::= table_name */ + 399, /* (279) from_db_opt ::= */ + 399, /* (280) from_db_opt ::= FROM db_name */ + 400, /* (281) tag_list_opt ::= */ + 400, /* (282) tag_list_opt ::= tag_item */ + 400, /* (283) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ + 401, /* (284) tag_item ::= TBNAME */ + 401, /* (285) tag_item ::= QTAGS */ + 401, /* (286) tag_item ::= column_name */ + 401, /* (287) tag_item ::= column_name column_alias */ + 401, /* (288) tag_item ::= column_name AS column_alias */ + 339, /* (289) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */ + 339, /* (290) cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */ + 339, /* (291) cmd ::= DROP INDEX exists_opt full_index_name */ + 403, /* (292) full_index_name ::= index_name */ + 403, /* (293) full_index_name ::= db_name NK_DOT index_name */ + 404, /* (294) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ + 404, /* (295) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ + 406, /* (296) func_list ::= func */ + 406, /* (297) func_list ::= func_list NK_COMMA func */ + 409, /* (298) func ::= sma_func_name NK_LP expression_list NK_RP */ + 410, /* (299) sma_func_name ::= function_name */ + 410, /* (300) sma_func_name ::= COUNT */ + 410, /* (301) sma_func_name ::= FIRST */ + 410, /* (302) sma_func_name ::= LAST */ + 410, /* (303) sma_func_name ::= LAST_ROW */ + 408, /* (304) sma_stream_opt ::= */ + 408, /* (305) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ + 408, /* (306) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ + 408, /* (307) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ + 411, /* (308) with_meta ::= AS */ + 411, /* (309) with_meta ::= WITH META AS */ + 411, /* (310) with_meta ::= ONLY META AS */ + 339, /* (311) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ + 339, /* (312) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ + 339, /* (313) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ + 339, /* (314) cmd ::= DROP TOPIC exists_opt topic_name */ + 339, /* (315) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + 339, /* (316) cmd ::= DESC full_table_name */ + 339, /* (317) cmd ::= DESCRIBE full_table_name */ + 339, /* (318) cmd ::= RESET QUERY CACHE */ + 339, /* (319) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + 339, /* (320) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ + 415, /* (321) analyze_opt ::= */ + 415, /* (322) analyze_opt ::= ANALYZE */ + 416, /* (323) explain_options ::= */ + 416, /* (324) explain_options ::= explain_options VERBOSE NK_BOOL */ + 416, /* (325) explain_options ::= explain_options RATIO NK_FLOAT */ + 339, /* (326) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ + 339, /* (327) cmd ::= DROP FUNCTION exists_opt function_name */ + 419, /* (328) agg_func_opt ::= */ + 419, /* (329) agg_func_opt ::= AGGREGATE */ + 420, /* (330) bufsize_opt ::= */ + 420, /* (331) bufsize_opt ::= BUFSIZE NK_INTEGER */ + 421, /* (332) language_opt ::= */ + 421, /* (333) language_opt ::= LANGUAGE NK_STRING */ + 418, /* (334) or_replace_opt ::= */ + 418, /* (335) or_replace_opt ::= OR REPLACE */ + 339, /* (336) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ + 339, /* (337) cmd ::= DROP STREAM exists_opt stream_name */ + 339, /* (338) cmd ::= PAUSE STREAM exists_opt stream_name */ + 339, /* (339) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ + 424, /* (340) col_list_opt ::= */ + 424, /* (341) col_list_opt ::= NK_LP col_name_list NK_RP */ + 425, /* (342) tag_def_or_ref_opt ::= */ + 425, /* (343) tag_def_or_ref_opt ::= tags_def */ + 425, /* (344) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ + 423, /* (345) stream_options ::= */ + 423, /* (346) stream_options ::= stream_options TRIGGER AT_ONCE */ + 423, /* (347) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + 423, /* (348) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + 423, /* (349) stream_options ::= stream_options WATERMARK duration_literal */ + 423, /* (350) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ + 423, /* (351) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ + 423, /* (352) stream_options ::= stream_options DELETE_MARK duration_literal */ + 423, /* (353) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ + 426, /* (354) subtable_opt ::= */ + 426, /* (355) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + 427, /* (356) ignore_opt ::= */ + 427, /* (357) ignore_opt ::= IGNORE UNTREATED */ + 339, /* (358) cmd ::= KILL CONNECTION NK_INTEGER */ + 339, /* (359) cmd ::= KILL QUERY NK_STRING */ + 339, /* (360) cmd ::= KILL TRANSACTION NK_INTEGER */ + 339, /* (361) cmd ::= BALANCE VGROUP */ + 339, /* (362) cmd ::= BALANCE VGROUP LEADER */ + 339, /* (363) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + 339, /* (364) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + 339, /* (365) cmd ::= SPLIT VGROUP NK_INTEGER */ + 429, /* (366) dnode_list ::= DNODE NK_INTEGER */ + 429, /* (367) dnode_list ::= dnode_list DNODE NK_INTEGER */ + 339, /* (368) cmd ::= DELETE FROM full_table_name where_clause_opt */ + 339, /* (369) cmd ::= query_or_subquery */ + 339, /* (370) cmd ::= insert_query */ + 417, /* (371) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ + 417, /* (372) insert_query ::= INSERT INTO full_table_name query_or_subquery */ + 342, /* (373) literal ::= NK_INTEGER */ + 342, /* (374) literal ::= NK_FLOAT */ + 342, /* (375) literal ::= NK_STRING */ + 342, /* (376) literal ::= NK_BOOL */ + 342, /* (377) literal ::= TIMESTAMP NK_STRING */ + 342, /* (378) literal ::= duration_literal */ + 342, /* (379) literal ::= NULL */ + 342, /* (380) literal ::= NK_QUESTION */ + 392, /* (381) duration_literal ::= NK_VARIABLE */ + 368, /* (382) signed ::= NK_INTEGER */ + 368, /* (383) signed ::= NK_PLUS NK_INTEGER */ + 368, /* (384) signed ::= NK_MINUS NK_INTEGER */ + 368, /* (385) signed ::= NK_FLOAT */ + 368, /* (386) signed ::= NK_PLUS NK_FLOAT */ + 368, /* (387) signed ::= NK_MINUS NK_FLOAT */ + 382, /* (388) signed_literal ::= signed */ + 382, /* (389) signed_literal ::= NK_STRING */ + 382, /* (390) signed_literal ::= NK_BOOL */ + 382, /* (391) signed_literal ::= TIMESTAMP NK_STRING */ + 382, /* (392) signed_literal ::= duration_literal */ + 382, /* (393) signed_literal ::= NULL */ + 382, /* (394) signed_literal ::= literal_func */ + 382, /* (395) signed_literal ::= NK_QUESTION */ + 431, /* (396) literal_list ::= signed_literal */ + 431, /* (397) literal_list ::= literal_list NK_COMMA signed_literal */ + 351, /* (398) db_name ::= NK_ID */ + 352, /* (399) table_name ::= NK_ID */ + 380, /* (400) column_name ::= NK_ID */ + 394, /* (401) function_name ::= NK_ID */ + 432, /* (402) table_alias ::= NK_ID */ + 402, /* (403) column_alias ::= NK_ID */ + 344, /* (404) user_name ::= NK_ID */ + 353, /* (405) topic_name ::= NK_ID */ + 422, /* (406) stream_name ::= NK_ID */ + 414, /* (407) cgroup_name ::= NK_ID */ + 405, /* (408) index_name ::= NK_ID */ + 433, /* (409) expr_or_subquery ::= expression */ + 428, /* (410) expression ::= literal */ + 428, /* (411) expression ::= pseudo_column */ + 428, /* (412) expression ::= column_reference */ + 428, /* (413) expression ::= function_expression */ + 428, /* (414) expression ::= case_when_expression */ + 428, /* (415) expression ::= NK_LP expression NK_RP */ + 428, /* (416) expression ::= NK_PLUS expr_or_subquery */ + 428, /* (417) expression ::= NK_MINUS expr_or_subquery */ + 428, /* (418) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + 428, /* (419) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ + 428, /* (420) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ + 428, /* (421) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ + 428, /* (422) expression ::= expr_or_subquery NK_REM expr_or_subquery */ + 428, /* (423) expression ::= column_reference NK_ARROW NK_STRING */ + 428, /* (424) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + 428, /* (425) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ + 385, /* (426) expression_list ::= expr_or_subquery */ + 385, /* (427) expression_list ::= expression_list NK_COMMA expr_or_subquery */ + 435, /* (428) column_reference ::= column_name */ + 435, /* (429) column_reference ::= table_name NK_DOT column_name */ + 434, /* (430) pseudo_column ::= ROWTS */ + 434, /* (431) pseudo_column ::= TBNAME */ + 434, /* (432) pseudo_column ::= table_name NK_DOT TBNAME */ + 434, /* (433) pseudo_column ::= QSTART */ + 434, /* (434) pseudo_column ::= QEND */ + 434, /* (435) pseudo_column ::= QDURATION */ + 434, /* (436) pseudo_column ::= WSTART */ + 434, /* (437) pseudo_column ::= WEND */ + 434, /* (438) pseudo_column ::= WDURATION */ + 434, /* (439) pseudo_column ::= IROWTS */ + 434, /* (440) pseudo_column ::= ISFILLED */ + 434, /* (441) pseudo_column ::= QTAGS */ + 436, /* (442) function_expression ::= function_name NK_LP expression_list NK_RP */ + 436, /* (443) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + 436, /* (444) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ + 436, /* (445) function_expression ::= literal_func */ + 430, /* (446) literal_func ::= noarg_func NK_LP NK_RP */ + 430, /* (447) literal_func ::= NOW */ + 440, /* (448) noarg_func ::= NOW */ + 440, /* (449) noarg_func ::= TODAY */ + 440, /* (450) noarg_func ::= TIMEZONE */ + 440, /* (451) noarg_func ::= DATABASE */ + 440, /* (452) noarg_func ::= CLIENT_VERSION */ + 440, /* (453) noarg_func ::= SERVER_VERSION */ + 440, /* (454) noarg_func ::= SERVER_STATUS */ + 440, /* (455) noarg_func ::= CURRENT_USER */ + 440, /* (456) noarg_func ::= USER */ + 438, /* (457) star_func ::= COUNT */ + 438, /* (458) star_func ::= FIRST */ + 438, /* (459) star_func ::= LAST */ + 438, /* (460) star_func ::= LAST_ROW */ + 439, /* (461) star_func_para_list ::= NK_STAR */ + 439, /* (462) star_func_para_list ::= other_para_list */ + 441, /* (463) other_para_list ::= star_func_para */ + 441, /* (464) other_para_list ::= other_para_list NK_COMMA star_func_para */ + 442, /* (465) star_func_para ::= expr_or_subquery */ + 442, /* (466) star_func_para ::= table_name NK_DOT NK_STAR */ + 437, /* (467) case_when_expression ::= CASE when_then_list case_when_else_opt END */ + 437, /* (468) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ + 443, /* (469) when_then_list ::= when_then_expr */ + 443, /* (470) when_then_list ::= when_then_list when_then_expr */ + 446, /* (471) when_then_expr ::= WHEN common_expression THEN common_expression */ + 444, /* (472) case_when_else_opt ::= */ + 444, /* (473) case_when_else_opt ::= ELSE common_expression */ + 447, /* (474) predicate ::= expr_or_subquery compare_op expr_or_subquery */ + 447, /* (475) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + 447, /* (476) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + 447, /* (477) predicate ::= expr_or_subquery IS NULL */ + 447, /* (478) predicate ::= expr_or_subquery IS NOT NULL */ + 447, /* (479) predicate ::= expr_or_subquery in_op in_predicate_value */ + 448, /* (480) compare_op ::= NK_LT */ + 448, /* (481) compare_op ::= NK_GT */ + 448, /* (482) compare_op ::= NK_LE */ + 448, /* (483) compare_op ::= NK_GE */ + 448, /* (484) compare_op ::= NK_NE */ + 448, /* (485) compare_op ::= NK_EQ */ + 448, /* (486) compare_op ::= LIKE */ + 448, /* (487) compare_op ::= NOT LIKE */ + 448, /* (488) compare_op ::= MATCH */ + 448, /* (489) compare_op ::= NMATCH */ + 448, /* (490) compare_op ::= CONTAINS */ + 449, /* (491) in_op ::= IN */ + 449, /* (492) in_op ::= NOT IN */ + 450, /* (493) in_predicate_value ::= NK_LP literal_list NK_RP */ + 451, /* (494) boolean_value_expression ::= boolean_primary */ + 451, /* (495) boolean_value_expression ::= NOT boolean_primary */ + 451, /* (496) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + 451, /* (497) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + 452, /* (498) boolean_primary ::= predicate */ + 452, /* (499) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + 445, /* (500) common_expression ::= expr_or_subquery */ + 445, /* (501) common_expression ::= boolean_value_expression */ + 453, /* (502) from_clause_opt ::= */ + 453, /* (503) from_clause_opt ::= FROM table_reference_list */ + 454, /* (504) table_reference_list ::= table_reference */ + 454, /* (505) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + 455, /* (506) table_reference ::= table_primary */ + 455, /* (507) table_reference ::= joined_table */ + 456, /* (508) table_primary ::= table_name alias_opt */ + 456, /* (509) table_primary ::= db_name NK_DOT table_name alias_opt */ + 456, /* (510) table_primary ::= subquery alias_opt */ + 456, /* (511) table_primary ::= parenthesized_joined_table */ + 458, /* (512) alias_opt ::= */ + 458, /* (513) alias_opt ::= table_alias */ + 458, /* (514) alias_opt ::= AS table_alias */ + 460, /* (515) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + 460, /* (516) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + 457, /* (517) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + 461, /* (518) join_type ::= */ + 461, /* (519) join_type ::= INNER */ + 462, /* (520) query_specification ::= SELECT hint_list set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + 463, /* (521) hint_list ::= */ + 463, /* (522) hint_list ::= NK_HINT */ + 464, /* (523) set_quantifier_opt ::= */ + 464, /* (524) set_quantifier_opt ::= DISTINCT */ + 464, /* (525) set_quantifier_opt ::= ALL */ + 465, /* (526) select_list ::= select_item */ + 465, /* (527) select_list ::= select_list NK_COMMA select_item */ + 473, /* (528) select_item ::= NK_STAR */ + 473, /* (529) select_item ::= common_expression */ + 473, /* (530) select_item ::= common_expression column_alias */ + 473, /* (531) select_item ::= common_expression AS column_alias */ + 473, /* (532) select_item ::= table_name NK_DOT NK_STAR */ + 413, /* (533) where_clause_opt ::= */ + 413, /* (534) where_clause_opt ::= WHERE search_condition */ + 466, /* (535) partition_by_clause_opt ::= */ + 466, /* (536) partition_by_clause_opt ::= PARTITION BY partition_list */ + 474, /* (537) partition_list ::= partition_item */ + 474, /* (538) partition_list ::= partition_list NK_COMMA partition_item */ + 475, /* (539) partition_item ::= expr_or_subquery */ + 475, /* (540) partition_item ::= expr_or_subquery column_alias */ + 475, /* (541) partition_item ::= expr_or_subquery AS column_alias */ + 470, /* (542) twindow_clause_opt ::= */ + 470, /* (543) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + 470, /* (544) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ + 470, /* (545) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + 470, /* (546) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + 470, /* (547) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ + 407, /* (548) sliding_opt ::= */ + 407, /* (549) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + 469, /* (550) fill_opt ::= */ + 469, /* (551) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + 469, /* (552) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ + 469, /* (553) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ + 476, /* (554) fill_mode ::= NONE */ + 476, /* (555) fill_mode ::= PREV */ + 476, /* (556) fill_mode ::= NULL */ + 476, /* (557) fill_mode ::= NULL_F */ + 476, /* (558) fill_mode ::= LINEAR */ + 476, /* (559) fill_mode ::= NEXT */ + 471, /* (560) group_by_clause_opt ::= */ + 471, /* (561) group_by_clause_opt ::= GROUP BY group_by_list */ + 477, /* (562) group_by_list ::= expr_or_subquery */ + 477, /* (563) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ + 472, /* (564) having_clause_opt ::= */ + 472, /* (565) having_clause_opt ::= HAVING search_condition */ + 467, /* (566) range_opt ::= */ + 467, /* (567) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ + 467, /* (568) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ + 468, /* (569) every_opt ::= */ + 468, /* (570) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + 478, /* (571) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + 479, /* (572) query_simple ::= query_specification */ + 479, /* (573) query_simple ::= union_query_expression */ + 483, /* (574) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ + 483, /* (575) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ + 484, /* (576) query_simple_or_subquery ::= query_simple */ + 484, /* (577) query_simple_or_subquery ::= subquery */ + 412, /* (578) query_or_subquery ::= query_expression */ + 412, /* (579) query_or_subquery ::= subquery */ + 480, /* (580) order_by_clause_opt ::= */ + 480, /* (581) order_by_clause_opt ::= ORDER BY sort_specification_list */ + 481, /* (582) slimit_clause_opt ::= */ + 481, /* (583) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + 481, /* (584) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + 481, /* (585) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 482, /* (586) limit_clause_opt ::= */ + 482, /* (587) limit_clause_opt ::= LIMIT NK_INTEGER */ + 482, /* (588) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + 482, /* (589) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 459, /* (590) subquery ::= NK_LP query_expression NK_RP */ + 459, /* (591) subquery ::= NK_LP subquery NK_RP */ + 354, /* (592) search_condition ::= common_expression */ + 485, /* (593) sort_specification_list ::= sort_specification */ + 485, /* (594) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + 486, /* (595) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ + 487, /* (596) ordering_specification_opt ::= */ + 487, /* (597) ordering_specification_opt ::= ASC */ + 487, /* (598) ordering_specification_opt ::= DESC */ + 488, /* (599) null_ordering_opt ::= */ + 488, /* (600) null_ordering_opt ::= NULLS FIRST */ + 488, /* (601) null_ordering_opt ::= NULLS LAST */ }; /* For rule J, yyRuleInfoNRhs[J] contains the negative of the number @@ -4334,92 +4326,87 @@ static const signed char yyRuleInfoNRhs[] = { 0, /* (518) join_type ::= */ -1, /* (519) join_type ::= INNER */ -13, /* (520) query_specification ::= SELECT hint_list set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - -3, /* (521) hint_opt ::= NO_BATCH_SCAN NK_LP NK_RP */ - -3, /* (522) hint_opt ::= BATCH_SCAN NK_LP NK_RP */ - 0, /* (523) hint_opt_list ::= */ - -1, /* (524) hint_opt_list ::= hint_opt */ - -2, /* (525) hint_opt_list ::= hint_opt_list hint_opt */ - 0, /* (526) hint_list ::= */ - -3, /* (527) hint_list ::= NK_HINT_BEGIN hint_opt_list NK_HINT_END */ - 0, /* (528) set_quantifier_opt ::= */ - -1, /* (529) set_quantifier_opt ::= DISTINCT */ - -1, /* (530) set_quantifier_opt ::= ALL */ - -1, /* (531) select_list ::= select_item */ - -3, /* (532) select_list ::= select_list NK_COMMA select_item */ - -1, /* (533) select_item ::= NK_STAR */ - -1, /* (534) select_item ::= common_expression */ - -2, /* (535) select_item ::= common_expression column_alias */ - -3, /* (536) select_item ::= common_expression AS column_alias */ - -3, /* (537) select_item ::= table_name NK_DOT NK_STAR */ - 0, /* (538) where_clause_opt ::= */ - -2, /* (539) where_clause_opt ::= WHERE search_condition */ - 0, /* (540) partition_by_clause_opt ::= */ - -3, /* (541) partition_by_clause_opt ::= PARTITION BY partition_list */ - -1, /* (542) partition_list ::= partition_item */ - -3, /* (543) partition_list ::= partition_list NK_COMMA partition_item */ - -1, /* (544) partition_item ::= expr_or_subquery */ - -2, /* (545) partition_item ::= expr_or_subquery column_alias */ - -3, /* (546) partition_item ::= expr_or_subquery AS column_alias */ - 0, /* (547) twindow_clause_opt ::= */ - -6, /* (548) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - -4, /* (549) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ - -6, /* (550) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - -8, /* (551) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - -7, /* (552) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ - 0, /* (553) sliding_opt ::= */ - -4, /* (554) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - 0, /* (555) fill_opt ::= */ - -4, /* (556) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - -6, /* (557) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ - -6, /* (558) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ - -1, /* (559) fill_mode ::= NONE */ - -1, /* (560) fill_mode ::= PREV */ - -1, /* (561) fill_mode ::= NULL */ - -1, /* (562) fill_mode ::= NULL_F */ - -1, /* (563) fill_mode ::= LINEAR */ - -1, /* (564) fill_mode ::= NEXT */ - 0, /* (565) group_by_clause_opt ::= */ - -3, /* (566) group_by_clause_opt ::= GROUP BY group_by_list */ - -1, /* (567) group_by_list ::= expr_or_subquery */ - -3, /* (568) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ - 0, /* (569) having_clause_opt ::= */ - -2, /* (570) having_clause_opt ::= HAVING search_condition */ - 0, /* (571) range_opt ::= */ - -6, /* (572) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ - -4, /* (573) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ - 0, /* (574) every_opt ::= */ - -4, /* (575) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - -4, /* (576) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ - -1, /* (577) query_simple ::= query_specification */ - -1, /* (578) query_simple ::= union_query_expression */ - -4, /* (579) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ - -3, /* (580) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ - -1, /* (581) query_simple_or_subquery ::= query_simple */ - -1, /* (582) query_simple_or_subquery ::= subquery */ - -1, /* (583) query_or_subquery ::= query_expression */ - -1, /* (584) query_or_subquery ::= subquery */ - 0, /* (585) order_by_clause_opt ::= */ - -3, /* (586) order_by_clause_opt ::= ORDER BY sort_specification_list */ - 0, /* (587) slimit_clause_opt ::= */ - -2, /* (588) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - -4, /* (589) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - -4, /* (590) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 0, /* (591) limit_clause_opt ::= */ - -2, /* (592) limit_clause_opt ::= LIMIT NK_INTEGER */ - -4, /* (593) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - -4, /* (594) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - -3, /* (595) subquery ::= NK_LP query_expression NK_RP */ - -3, /* (596) subquery ::= NK_LP subquery NK_RP */ - -1, /* (597) search_condition ::= common_expression */ - -1, /* (598) sort_specification_list ::= sort_specification */ - -3, /* (599) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - -3, /* (600) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ - 0, /* (601) ordering_specification_opt ::= */ - -1, /* (602) ordering_specification_opt ::= ASC */ - -1, /* (603) ordering_specification_opt ::= DESC */ - 0, /* (604) null_ordering_opt ::= */ - -2, /* (605) null_ordering_opt ::= NULLS FIRST */ - -2, /* (606) null_ordering_opt ::= NULLS LAST */ + 0, /* (521) hint_list ::= */ + -1, /* (522) hint_list ::= NK_HINT */ + 0, /* (523) set_quantifier_opt ::= */ + -1, /* (524) set_quantifier_opt ::= DISTINCT */ + -1, /* (525) set_quantifier_opt ::= ALL */ + -1, /* (526) select_list ::= select_item */ + -3, /* (527) select_list ::= select_list NK_COMMA select_item */ + -1, /* (528) select_item ::= NK_STAR */ + -1, /* (529) select_item ::= common_expression */ + -2, /* (530) select_item ::= common_expression column_alias */ + -3, /* (531) select_item ::= common_expression AS column_alias */ + -3, /* (532) select_item ::= table_name NK_DOT NK_STAR */ + 0, /* (533) where_clause_opt ::= */ + -2, /* (534) where_clause_opt ::= WHERE search_condition */ + 0, /* (535) partition_by_clause_opt ::= */ + -3, /* (536) partition_by_clause_opt ::= PARTITION BY partition_list */ + -1, /* (537) partition_list ::= partition_item */ + -3, /* (538) partition_list ::= partition_list NK_COMMA partition_item */ + -1, /* (539) partition_item ::= expr_or_subquery */ + -2, /* (540) partition_item ::= expr_or_subquery column_alias */ + -3, /* (541) partition_item ::= expr_or_subquery AS column_alias */ + 0, /* (542) twindow_clause_opt ::= */ + -6, /* (543) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + -4, /* (544) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ + -6, /* (545) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + -8, /* (546) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + -7, /* (547) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ + 0, /* (548) sliding_opt ::= */ + -4, /* (549) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + 0, /* (550) fill_opt ::= */ + -4, /* (551) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + -6, /* (552) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ + -6, /* (553) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ + -1, /* (554) fill_mode ::= NONE */ + -1, /* (555) fill_mode ::= PREV */ + -1, /* (556) fill_mode ::= NULL */ + -1, /* (557) fill_mode ::= NULL_F */ + -1, /* (558) fill_mode ::= LINEAR */ + -1, /* (559) fill_mode ::= NEXT */ + 0, /* (560) group_by_clause_opt ::= */ + -3, /* (561) group_by_clause_opt ::= GROUP BY group_by_list */ + -1, /* (562) group_by_list ::= expr_or_subquery */ + -3, /* (563) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ + 0, /* (564) having_clause_opt ::= */ + -2, /* (565) having_clause_opt ::= HAVING search_condition */ + 0, /* (566) range_opt ::= */ + -6, /* (567) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ + -4, /* (568) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ + 0, /* (569) every_opt ::= */ + -4, /* (570) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + -4, /* (571) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + -1, /* (572) query_simple ::= query_specification */ + -1, /* (573) query_simple ::= union_query_expression */ + -4, /* (574) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ + -3, /* (575) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ + -1, /* (576) query_simple_or_subquery ::= query_simple */ + -1, /* (577) query_simple_or_subquery ::= subquery */ + -1, /* (578) query_or_subquery ::= query_expression */ + -1, /* (579) query_or_subquery ::= subquery */ + 0, /* (580) order_by_clause_opt ::= */ + -3, /* (581) order_by_clause_opt ::= ORDER BY sort_specification_list */ + 0, /* (582) slimit_clause_opt ::= */ + -2, /* (583) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + -4, /* (584) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + -4, /* (585) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 0, /* (586) limit_clause_opt ::= */ + -2, /* (587) limit_clause_opt ::= LIMIT NK_INTEGER */ + -4, /* (588) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + -4, /* (589) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + -3, /* (590) subquery ::= NK_LP query_expression NK_RP */ + -3, /* (591) subquery ::= NK_LP subquery NK_RP */ + -1, /* (592) search_condition ::= common_expression */ + -1, /* (593) sort_specification_list ::= sort_specification */ + -3, /* (594) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + -3, /* (595) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ + 0, /* (596) ordering_specification_opt ::= */ + -1, /* (597) ordering_specification_opt ::= ASC */ + -1, /* (598) ordering_specification_opt ::= DESC */ + 0, /* (599) null_ordering_opt ::= */ + -2, /* (600) null_ordering_opt ::= NULLS FIRST */ + -2, /* (601) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -4511,11 +4498,11 @@ static YYACTIONTYPE yy_reduce( YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,343,&yymsp[0].minor); + yy_destructor(yypParser,340,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,344,&yymsp[0].minor); + yy_destructor(yypParser,341,&yymsp[0].minor); break; case 2: /* account_options ::= */ { } @@ -4529,20 +4516,20 @@ static YYACTIONTYPE yy_reduce( case 9: /* account_options ::= account_options USERS literal */ yytestcase(yyruleno==9); case 10: /* account_options ::= account_options CONNS literal */ yytestcase(yyruleno==10); case 11: /* account_options ::= account_options STATE literal */ yytestcase(yyruleno==11); -{ yy_destructor(yypParser,343,&yymsp[-2].minor); +{ yy_destructor(yypParser,340,&yymsp[-2].minor); { } - yy_destructor(yypParser,345,&yymsp[0].minor); + yy_destructor(yypParser,342,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ -{ yy_destructor(yypParser,346,&yymsp[0].minor); +{ yy_destructor(yypParser,343,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ -{ yy_destructor(yypParser,344,&yymsp[-1].minor); +{ yy_destructor(yypParser,341,&yymsp[-1].minor); { } - yy_destructor(yypParser,346,&yymsp[0].minor); + yy_destructor(yypParser,343,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ @@ -4556,71 +4543,71 @@ static YYACTIONTYPE yy_reduce( case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22); case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); { } - yy_destructor(yypParser,345,&yymsp[0].minor); + yy_destructor(yypParser,342,&yymsp[0].minor); break; case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ -{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy889, &yymsp[-1].minor.yy0, yymsp[0].minor.yy847); } +{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy731, &yymsp[-1].minor.yy0, yymsp[0].minor.yy821); } break; case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy889, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy731, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } break; case 26: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy889, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy731, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } break; case 27: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy889, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy731, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } break; case 28: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy889); } +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy731); } break; case 29: /* sysinfo_opt ::= */ -{ yymsp[1].minor.yy847 = 1; } +{ yymsp[1].minor.yy821 = 1; } break; case 30: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ -{ yymsp[-1].minor.yy847 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } +{ yymsp[-1].minor.yy821 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } break; case 31: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ -{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy701, &yymsp[-3].minor.yy833, &yymsp[0].minor.yy889, yymsp[-2].minor.yy28); } +{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy159, &yymsp[-3].minor.yy303, &yymsp[0].minor.yy731, yymsp[-2].minor.yy698); } break; case 32: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ -{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy701, &yymsp[-3].minor.yy833, &yymsp[0].minor.yy889, yymsp[-2].minor.yy28); } +{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy159, &yymsp[-3].minor.yy303, &yymsp[0].minor.yy731, yymsp[-2].minor.yy698); } break; case 33: /* privileges ::= ALL */ -{ yymsp[0].minor.yy701 = PRIVILEGE_TYPE_ALL; } +{ yymsp[0].minor.yy159 = PRIVILEGE_TYPE_ALL; } break; case 34: /* privileges ::= priv_type_list */ case 36: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==36); -{ yylhsminor.yy701 = yymsp[0].minor.yy701; } - yymsp[0].minor.yy701 = yylhsminor.yy701; +{ yylhsminor.yy159 = yymsp[0].minor.yy159; } + yymsp[0].minor.yy159 = yylhsminor.yy159; break; case 35: /* privileges ::= SUBSCRIBE */ -{ yymsp[0].minor.yy701 = PRIVILEGE_TYPE_SUBSCRIBE; } +{ yymsp[0].minor.yy159 = PRIVILEGE_TYPE_SUBSCRIBE; } break; case 37: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ -{ yylhsminor.yy701 = yymsp[-2].minor.yy701 | yymsp[0].minor.yy701; } - yymsp[-2].minor.yy701 = yylhsminor.yy701; +{ yylhsminor.yy159 = yymsp[-2].minor.yy159 | yymsp[0].minor.yy159; } + yymsp[-2].minor.yy159 = yylhsminor.yy159; break; case 38: /* priv_type ::= READ */ -{ yymsp[0].minor.yy701 = PRIVILEGE_TYPE_READ; } +{ yymsp[0].minor.yy159 = PRIVILEGE_TYPE_READ; } break; case 39: /* priv_type ::= WRITE */ -{ yymsp[0].minor.yy701 = PRIVILEGE_TYPE_WRITE; } +{ yymsp[0].minor.yy159 = PRIVILEGE_TYPE_WRITE; } break; case 40: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ -{ yylhsminor.yy833.first = yymsp[-2].minor.yy0; yylhsminor.yy833.second = yymsp[0].minor.yy0; } - yymsp[-2].minor.yy833 = yylhsminor.yy833; +{ yylhsminor.yy303.first = yymsp[-2].minor.yy0; yylhsminor.yy303.second = yymsp[0].minor.yy0; } + yymsp[-2].minor.yy303 = yylhsminor.yy303; break; case 41: /* priv_level ::= db_name NK_DOT NK_STAR */ -{ yylhsminor.yy833.first = yymsp[-2].minor.yy889; yylhsminor.yy833.second = yymsp[0].minor.yy0; } - yymsp[-2].minor.yy833 = yylhsminor.yy833; +{ yylhsminor.yy303.first = yymsp[-2].minor.yy731; yylhsminor.yy303.second = yymsp[0].minor.yy0; } + yymsp[-2].minor.yy303 = yylhsminor.yy303; break; case 42: /* priv_level ::= db_name NK_DOT table_name */ -{ yylhsminor.yy833.first = yymsp[-2].minor.yy889; yylhsminor.yy833.second = yymsp[0].minor.yy889; } - yymsp[-2].minor.yy833 = yylhsminor.yy833; +{ yylhsminor.yy303.first = yymsp[-2].minor.yy731; yylhsminor.yy303.second = yymsp[0].minor.yy731; } + yymsp[-2].minor.yy303 = yylhsminor.yy303; break; case 43: /* priv_level ::= topic_name */ -{ yylhsminor.yy833.first = yymsp[0].minor.yy889; yylhsminor.yy833.second = nil_token; } - yymsp[0].minor.yy833 = yylhsminor.yy833; +{ yylhsminor.yy303.first = yymsp[0].minor.yy731; yylhsminor.yy303.second = nil_token; } + yymsp[0].minor.yy303 = yylhsminor.yy303; break; case 44: /* with_opt ::= */ case 144: /* start_opt ::= */ yytestcase(yyruleno==144); @@ -4629,40 +4616,40 @@ static YYACTIONTYPE yy_reduce( case 354: /* subtable_opt ::= */ yytestcase(yyruleno==354); case 472: /* case_when_else_opt ::= */ yytestcase(yyruleno==472); case 502: /* from_clause_opt ::= */ yytestcase(yyruleno==502); - case 538: /* where_clause_opt ::= */ yytestcase(yyruleno==538); - case 547: /* twindow_clause_opt ::= */ yytestcase(yyruleno==547); - case 553: /* sliding_opt ::= */ yytestcase(yyruleno==553); - case 555: /* fill_opt ::= */ yytestcase(yyruleno==555); - case 569: /* having_clause_opt ::= */ yytestcase(yyruleno==569); - case 571: /* range_opt ::= */ yytestcase(yyruleno==571); - case 574: /* every_opt ::= */ yytestcase(yyruleno==574); - case 587: /* slimit_clause_opt ::= */ yytestcase(yyruleno==587); - case 591: /* limit_clause_opt ::= */ yytestcase(yyruleno==591); -{ yymsp[1].minor.yy28 = NULL; } + case 533: /* where_clause_opt ::= */ yytestcase(yyruleno==533); + case 542: /* twindow_clause_opt ::= */ yytestcase(yyruleno==542); + case 548: /* sliding_opt ::= */ yytestcase(yyruleno==548); + case 550: /* fill_opt ::= */ yytestcase(yyruleno==550); + case 564: /* having_clause_opt ::= */ yytestcase(yyruleno==564); + case 566: /* range_opt ::= */ yytestcase(yyruleno==566); + case 569: /* every_opt ::= */ yytestcase(yyruleno==569); + case 582: /* slimit_clause_opt ::= */ yytestcase(yyruleno==582); + case 586: /* limit_clause_opt ::= */ yytestcase(yyruleno==586); +{ yymsp[1].minor.yy698 = NULL; } break; case 45: /* with_opt ::= WITH search_condition */ case 503: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==503); - case 539: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==539); - case 570: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==570); -{ yymsp[-1].minor.yy28 = yymsp[0].minor.yy28; } + case 534: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==534); + case 565: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==565); +{ yymsp[-1].minor.yy698 = yymsp[0].minor.yy698; } break; case 46: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy889, NULL); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy731, NULL); } break; case 47: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy0); } break; case 48: /* cmd ::= DROP DNODE NK_INTEGER force_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy793, false); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy83, false); } break; case 49: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy889, yymsp[0].minor.yy793, false); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy731, yymsp[0].minor.yy83, false); } break; case 50: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy793); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy83); } break; case 51: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy889, false, yymsp[0].minor.yy793); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy731, false, yymsp[0].minor.yy83); } break; case 52: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } @@ -4710,8 +4697,8 @@ static YYACTIONTYPE yy_reduce( case 458: /* star_func ::= FIRST */ yytestcase(yyruleno==458); case 459: /* star_func ::= LAST */ yytestcase(yyruleno==459); case 460: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==460); -{ yylhsminor.yy889 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy889 = yylhsminor.yy889; +{ yylhsminor.yy731 = yymsp[0].minor.yy0; } + yymsp[0].minor.yy731 = yylhsminor.yy731; break; case 60: /* force_opt ::= */ case 84: /* not_exists_opt ::= */ yytestcase(yyruleno==84); @@ -4720,15 +4707,15 @@ static YYACTIONTYPE yy_reduce( case 328: /* agg_func_opt ::= */ yytestcase(yyruleno==328); case 334: /* or_replace_opt ::= */ yytestcase(yyruleno==334); case 356: /* ignore_opt ::= */ yytestcase(yyruleno==356); - case 528: /* set_quantifier_opt ::= */ yytestcase(yyruleno==528); -{ yymsp[1].minor.yy793 = false; } + case 523: /* set_quantifier_opt ::= */ yytestcase(yyruleno==523); +{ yymsp[1].minor.yy83 = false; } break; case 61: /* force_opt ::= FORCE */ case 62: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==62); case 322: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==322); case 329: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==329); - case 529: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==529); -{ yymsp[0].minor.yy793 = true; } + case 524: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==524); +{ yymsp[0].minor.yy83 = true; } break; case 63: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } @@ -4770,234 +4757,234 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); } break; case 76: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy793, &yymsp[-1].minor.yy889, yymsp[0].minor.yy28); } +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy83, &yymsp[-1].minor.yy731, yymsp[0].minor.yy698); } break; case 77: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy83, &yymsp[0].minor.yy731); } break; case 78: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy889); } +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy731); } break; case 79: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy889, yymsp[0].minor.yy28); } +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy731, yymsp[0].minor.yy698); } break; case 80: /* cmd ::= FLUSH DATABASE db_name */ -{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy889); } +{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy731); } break; case 81: /* cmd ::= TRIM DATABASE db_name speed_opt */ -{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy889, yymsp[0].minor.yy956); } +{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy731, yymsp[0].minor.yy724); } break; case 82: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */ -{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy889, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } +{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy731, yymsp[-1].minor.yy698, yymsp[0].minor.yy698); } break; case 83: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy793 = true; } +{ yymsp[-2].minor.yy83 = true; } break; case 85: /* exists_opt ::= IF EXISTS */ case 335: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==335); case 357: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==357); -{ yymsp[-1].minor.yy793 = true; } +{ yymsp[-1].minor.yy83 = true; } break; case 87: /* db_options ::= */ -{ yymsp[1].minor.yy28 = createDefaultDatabaseOptions(pCxt); } +{ yymsp[1].minor.yy698 = createDefaultDatabaseOptions(pCxt); } break; case 88: /* db_options ::= db_options BUFFER NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 89: /* db_options ::= db_options CACHEMODEL NK_STRING */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 90: /* db_options ::= db_options CACHESIZE NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 91: /* db_options ::= db_options COMP NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_COMP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_COMP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 92: /* db_options ::= db_options DURATION NK_INTEGER */ case 93: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==93); -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 94: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 95: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 96: /* db_options ::= db_options KEEP integer_list */ case 97: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==97); -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_KEEP, yymsp[0].minor.yy236); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_KEEP, yymsp[0].minor.yy88); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 98: /* db_options ::= db_options PAGES NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 99: /* db_options ::= db_options PAGESIZE NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 100: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 101: /* db_options ::= db_options PRECISION NK_STRING */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 102: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 103: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 104: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 105: /* db_options ::= db_options RETENTIONS retention_list */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_RETENTIONS, yymsp[0].minor.yy236); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_RETENTIONS, yymsp[0].minor.yy88); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 106: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 107: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_WAL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 108: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 109: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 110: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-3].minor.yy28, DB_OPTION_WAL_RETENTION_PERIOD, &t); + yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-3].minor.yy698, DB_OPTION_WAL_RETENTION_PERIOD, &t); } - yymsp[-3].minor.yy28 = yylhsminor.yy28; + yymsp[-3].minor.yy698 = yylhsminor.yy698; break; case 111: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 112: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-3].minor.yy28, DB_OPTION_WAL_RETENTION_SIZE, &t); + yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-3].minor.yy698, DB_OPTION_WAL_RETENTION_SIZE, &t); } - yymsp[-3].minor.yy28 = yylhsminor.yy28; + yymsp[-3].minor.yy698 = yylhsminor.yy698; break; case 113: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 114: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 115: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 116: /* db_options ::= db_options TABLE_PREFIX signed */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy28); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy698); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 117: /* db_options ::= db_options TABLE_SUFFIX signed */ -{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy28); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setDatabaseOption(pCxt, yymsp[-2].minor.yy698, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy698); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 118: /* alter_db_options ::= alter_db_option */ -{ yylhsminor.yy28 = createAlterDatabaseOptions(pCxt); yylhsminor.yy28 = setAlterDatabaseOption(pCxt, yylhsminor.yy28, &yymsp[0].minor.yy481); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createAlterDatabaseOptions(pCxt); yylhsminor.yy698 = setAlterDatabaseOption(pCxt, yylhsminor.yy698, &yymsp[0].minor.yy23); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 119: /* alter_db_options ::= alter_db_options alter_db_option */ -{ yylhsminor.yy28 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy28, &yymsp[0].minor.yy481); } - yymsp[-1].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy698, &yymsp[0].minor.yy23); } + yymsp[-1].minor.yy698 = yylhsminor.yy698; break; case 120: /* alter_db_option ::= BUFFER NK_INTEGER */ -{ yymsp[-1].minor.yy481.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy23.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; } break; case 121: /* alter_db_option ::= CACHEMODEL NK_STRING */ -{ yymsp[-1].minor.yy481.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy23.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; } break; case 122: /* alter_db_option ::= CACHESIZE NK_INTEGER */ -{ yymsp[-1].minor.yy481.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy23.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; } break; case 123: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ -{ yymsp[-1].minor.yy481.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy23.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; } break; case 124: /* alter_db_option ::= KEEP integer_list */ case 125: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==125); -{ yymsp[-1].minor.yy481.type = DB_OPTION_KEEP; yymsp[-1].minor.yy481.pList = yymsp[0].minor.yy236; } +{ yymsp[-1].minor.yy23.type = DB_OPTION_KEEP; yymsp[-1].minor.yy23.pList = yymsp[0].minor.yy88; } break; case 126: /* alter_db_option ::= PAGES NK_INTEGER */ -{ yymsp[-1].minor.yy481.type = DB_OPTION_PAGES; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy23.type = DB_OPTION_PAGES; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; } break; case 127: /* alter_db_option ::= REPLICA NK_INTEGER */ -{ yymsp[-1].minor.yy481.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy23.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; } break; case 128: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ -{ yymsp[-1].minor.yy481.type = DB_OPTION_WAL; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy23.type = DB_OPTION_WAL; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; } break; case 129: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ -{ yymsp[-1].minor.yy481.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy23.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; } break; case 130: /* alter_db_option ::= MINROWS NK_INTEGER */ -{ yymsp[-1].minor.yy481.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy23.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; } break; case 131: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ -{ yymsp[-1].minor.yy481.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy23.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; } break; case 132: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yymsp[-2].minor.yy481.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy481.val = t; + yymsp[-2].minor.yy23.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy23.val = t; } break; case 133: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ -{ yymsp[-1].minor.yy481.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy23.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; } break; case 134: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yymsp[-2].minor.yy481.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy481.val = t; + yymsp[-2].minor.yy23.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy23.val = t; } break; case 135: /* integer_list ::= NK_INTEGER */ -{ yylhsminor.yy236 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy236 = yylhsminor.yy236; +{ yylhsminor.yy88 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy88 = yylhsminor.yy88; break; case 136: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ case 367: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==367); -{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy236 = yylhsminor.yy236; +{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-2].minor.yy88, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy88 = yylhsminor.yy88; break; case 137: /* variable_list ::= NK_VARIABLE */ -{ yylhsminor.yy236 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy236 = yylhsminor.yy236; +{ yylhsminor.yy88 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy88 = yylhsminor.yy88; break; case 138: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy236 = yylhsminor.yy236; +{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-2].minor.yy88, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy88 = yylhsminor.yy88; break; case 139: /* retention_list ::= retention */ case 169: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==169); @@ -5010,12 +4997,11 @@ static YYACTIONTYPE yy_reduce( case 396: /* literal_list ::= signed_literal */ yytestcase(yyruleno==396); case 463: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==463); case 469: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==469); - case 524: /* hint_opt_list ::= hint_opt */ yytestcase(yyruleno==524); - case 531: /* select_list ::= select_item */ yytestcase(yyruleno==531); - case 542: /* partition_list ::= partition_item */ yytestcase(yyruleno==542); - case 598: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==598); -{ yylhsminor.yy236 = createNodeList(pCxt, yymsp[0].minor.yy28); } - yymsp[0].minor.yy236 = yylhsminor.yy236; + case 526: /* select_list ::= select_item */ yytestcase(yyruleno==526); + case 537: /* partition_list ::= partition_item */ yytestcase(yyruleno==537); + case 593: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==593); +{ yylhsminor.yy88 = createNodeList(pCxt, yymsp[0].minor.yy698); } + yymsp[0].minor.yy88 = yylhsminor.yy88; break; case 140: /* retention_list ::= retention_list NK_COMMA retention */ case 173: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==173); @@ -5026,289 +5012,285 @@ static YYACTIONTYPE yy_reduce( case 297: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==297); case 397: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==397); case 464: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==464); - case 532: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==532); - case 543: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==543); - case 599: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==599); -{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, yymsp[0].minor.yy28); } - yymsp[-2].minor.yy236 = yylhsminor.yy236; + case 527: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==527); + case 538: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==538); + case 594: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==594); +{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-2].minor.yy88, yymsp[0].minor.yy698); } + yymsp[-2].minor.yy88 = yylhsminor.yy88; break; case 141: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ -{ yylhsminor.yy28 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 142: /* speed_opt ::= */ case 330: /* bufsize_opt ::= */ yytestcase(yyruleno==330); -{ yymsp[1].minor.yy956 = 0; } +{ yymsp[1].minor.yy724 = 0; } break; case 143: /* speed_opt ::= MAX_SPEED NK_INTEGER */ case 331: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==331); -{ yymsp[-1].minor.yy956 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } +{ yymsp[-1].minor.yy724 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; case 145: /* start_opt ::= START WITH NK_INTEGER */ case 149: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==149); -{ yymsp[-2].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-2].minor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 146: /* start_opt ::= START WITH NK_STRING */ case 150: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==150); -{ yymsp[-2].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +{ yymsp[-2].minor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 147: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ case 151: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==151); -{ yymsp[-3].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +{ yymsp[-3].minor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 152: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 154: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==154); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy793, yymsp[-5].minor.yy28, yymsp[-3].minor.yy236, yymsp[-1].minor.yy236, yymsp[0].minor.yy28); } +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy83, yymsp[-5].minor.yy698, yymsp[-3].minor.yy88, yymsp[-1].minor.yy88, yymsp[0].minor.yy698); } break; case 153: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy236); } +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy88); } break; case 155: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy236); } +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy88); } break; case 156: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy793, yymsp[0].minor.yy28); } +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy83, yymsp[0].minor.yy698); } break; case 157: /* cmd ::= ALTER TABLE alter_table_clause */ case 369: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==369); case 370: /* cmd ::= insert_query */ yytestcase(yyruleno==370); -{ pCxt->pRootNode = yymsp[0].minor.yy28; } +{ pCxt->pRootNode = yymsp[0].minor.yy698; } break; case 158: /* cmd ::= ALTER STABLE alter_table_clause */ -{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy28); } +{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy698); } break; case 159: /* alter_table_clause ::= full_table_name alter_table_options */ -{ yylhsminor.yy28 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } - yymsp[-1].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy698, yymsp[0].minor.yy698); } + yymsp[-1].minor.yy698 = yylhsminor.yy698; break; case 160: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -{ yylhsminor.yy28 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32); } - yymsp[-4].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy698, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy731, yymsp[0].minor.yy394); } + yymsp[-4].minor.yy698 = yylhsminor.yy698; break; case 161: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ -{ yylhsminor.yy28 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy28, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy889); } - yymsp[-3].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy698, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy731); } + yymsp[-3].minor.yy698 = yylhsminor.yy698; break; case 162: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -{ yylhsminor.yy28 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32); } - yymsp[-4].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy698, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy731, yymsp[0].minor.yy394); } + yymsp[-4].minor.yy698 = yylhsminor.yy698; break; case 163: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -{ yylhsminor.yy28 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy889, &yymsp[0].minor.yy889); } - yymsp[-4].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy698, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy731, &yymsp[0].minor.yy731); } + yymsp[-4].minor.yy698 = yylhsminor.yy698; break; case 164: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -{ yylhsminor.yy28 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32); } - yymsp[-4].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy698, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy731, yymsp[0].minor.yy394); } + yymsp[-4].minor.yy698 = yylhsminor.yy698; break; case 165: /* alter_table_clause ::= full_table_name DROP TAG column_name */ -{ yylhsminor.yy28 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy28, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy889); } - yymsp[-3].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy698, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy731); } + yymsp[-3].minor.yy698 = yylhsminor.yy698; break; case 166: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -{ yylhsminor.yy28 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32); } - yymsp[-4].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy698, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy731, yymsp[0].minor.yy394); } + yymsp[-4].minor.yy698 = yylhsminor.yy698; break; case 167: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -{ yylhsminor.yy28 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy889, &yymsp[0].minor.yy889); } - yymsp[-4].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy698, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy731, &yymsp[0].minor.yy731); } + yymsp[-4].minor.yy698 = yylhsminor.yy698; break; case 168: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ -{ yylhsminor.yy28 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy28, &yymsp[-2].minor.yy889, yymsp[0].minor.yy28); } - yymsp[-5].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy698, &yymsp[-2].minor.yy731, yymsp[0].minor.yy698); } + yymsp[-5].minor.yy698 = yylhsminor.yy698; break; case 170: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ case 470: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==470); - case 525: /* hint_opt_list ::= hint_opt_list hint_opt */ yytestcase(yyruleno==525); -{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-1].minor.yy236, yymsp[0].minor.yy28); } - yymsp[-1].minor.yy236 = yylhsminor.yy236; +{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-1].minor.yy88, yymsp[0].minor.yy698); } + yymsp[-1].minor.yy88 = yylhsminor.yy88; break; case 171: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ -{ yylhsminor.yy28 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy793, yymsp[-8].minor.yy28, yymsp[-6].minor.yy28, yymsp[-5].minor.yy236, yymsp[-2].minor.yy236, yymsp[0].minor.yy28); } - yymsp[-9].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy83, yymsp[-8].minor.yy698, yymsp[-6].minor.yy698, yymsp[-5].minor.yy88, yymsp[-2].minor.yy88, yymsp[0].minor.yy698); } + yymsp[-9].minor.yy698 = yylhsminor.yy698; break; case 174: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy28 = createDropTableClause(pCxt, yymsp[-1].minor.yy793, yymsp[0].minor.yy28); } - yymsp[-1].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createDropTableClause(pCxt, yymsp[-1].minor.yy83, yymsp[0].minor.yy698); } + yymsp[-1].minor.yy698 = yylhsminor.yy698; break; case 175: /* specific_cols_opt ::= */ case 206: /* tags_def_opt ::= */ yytestcase(yyruleno==206); case 281: /* tag_list_opt ::= */ yytestcase(yyruleno==281); case 340: /* col_list_opt ::= */ yytestcase(yyruleno==340); case 342: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==342); - case 523: /* hint_opt_list ::= */ yytestcase(yyruleno==523); - case 526: /* hint_list ::= */ yytestcase(yyruleno==526); - case 540: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==540); - case 565: /* group_by_clause_opt ::= */ yytestcase(yyruleno==565); - case 585: /* order_by_clause_opt ::= */ yytestcase(yyruleno==585); -{ yymsp[1].minor.yy236 = NULL; } + case 535: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==535); + case 560: /* group_by_clause_opt ::= */ yytestcase(yyruleno==560); + case 580: /* order_by_clause_opt ::= */ yytestcase(yyruleno==580); +{ yymsp[1].minor.yy88 = NULL; } break; case 176: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ case 341: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==341); - case 527: /* hint_list ::= NK_HINT_BEGIN hint_opt_list NK_HINT_END */ yytestcase(yyruleno==527); -{ yymsp[-2].minor.yy236 = yymsp[-1].minor.yy236; } +{ yymsp[-2].minor.yy88 = yymsp[-1].minor.yy88; } break; case 177: /* full_table_name ::= table_name */ -{ yylhsminor.yy28 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy889, NULL); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy731, NULL); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 178: /* full_table_name ::= db_name NK_DOT table_name */ -{ yylhsminor.yy28 = createRealTableNode(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889, NULL); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRealTableNode(pCxt, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy731, NULL); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 181: /* column_def ::= column_name type_name */ -{ yylhsminor.yy28 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32, NULL); } - yymsp[-1].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy731, yymsp[0].minor.yy394, NULL); } + yymsp[-1].minor.yy698 = yylhsminor.yy698; break; case 182: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_BOOL); } +{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_BOOL); } break; case 183: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_TINYINT); } +{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; case 184: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_SMALLINT); } +{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; case 185: /* type_name ::= INT */ case 186: /* type_name ::= INTEGER */ yytestcase(yyruleno==186); -{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_INT); } +{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_INT); } break; case 187: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_BIGINT); } +{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; case 188: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_FLOAT); } +{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; case 189: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_DOUBLE); } +{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; case 190: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy394 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; case 191: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } +{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; case 192: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy394 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; case 193: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy32 = createDataType(TSDB_DATA_TYPE_UTINYINT); } +{ yymsp[-1].minor.yy394 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; case 194: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy32 = createDataType(TSDB_DATA_TYPE_USMALLINT); } +{ yymsp[-1].minor.yy394 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; case 195: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy32 = createDataType(TSDB_DATA_TYPE_UINT); } +{ yymsp[-1].minor.yy394 = createDataType(TSDB_DATA_TYPE_UINT); } break; case 196: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy32 = createDataType(TSDB_DATA_TYPE_UBIGINT); } +{ yymsp[-1].minor.yy394 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; case 197: /* type_name ::= JSON */ -{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_JSON); } +{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_JSON); } break; case 198: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy394 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; case 199: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } +{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; case 200: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_BLOB); } +{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_BLOB); } break; case 201: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy394 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; case 202: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy394 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } break; case 203: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[0].minor.yy394 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 204: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy32 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[-3].minor.yy394 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 205: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy32 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[-5].minor.yy394 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 207: /* tags_def_opt ::= tags_def */ case 343: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==343); case 462: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==462); -{ yylhsminor.yy236 = yymsp[0].minor.yy236; } - yymsp[0].minor.yy236 = yylhsminor.yy236; +{ yylhsminor.yy88 = yymsp[0].minor.yy88; } + yymsp[0].minor.yy88 = yylhsminor.yy88; break; case 208: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ case 344: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==344); -{ yymsp[-3].minor.yy236 = yymsp[-1].minor.yy236; } +{ yymsp[-3].minor.yy88 = yymsp[-1].minor.yy88; } break; case 209: /* table_options ::= */ -{ yymsp[1].minor.yy28 = createDefaultTableOptions(pCxt); } +{ yymsp[1].minor.yy698 = createDefaultTableOptions(pCxt); } break; case 210: /* table_options ::= table_options COMMENT NK_STRING */ -{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setTableOption(pCxt, yymsp[-2].minor.yy698, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 211: /* table_options ::= table_options MAX_DELAY duration_list */ -{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy236); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setTableOption(pCxt, yymsp[-2].minor.yy698, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy88); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 212: /* table_options ::= table_options WATERMARK duration_list */ -{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy236); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setTableOption(pCxt, yymsp[-2].minor.yy698, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy88); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 213: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-4].minor.yy28, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy236); } - yymsp[-4].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setTableOption(pCxt, yymsp[-4].minor.yy698, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy88); } + yymsp[-4].minor.yy698 = yylhsminor.yy698; break; case 214: /* table_options ::= table_options TTL NK_INTEGER */ -{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setTableOption(pCxt, yymsp[-2].minor.yy698, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 215: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-4].minor.yy28, TABLE_OPTION_SMA, yymsp[-1].minor.yy236); } - yymsp[-4].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setTableOption(pCxt, yymsp[-4].minor.yy698, TABLE_OPTION_SMA, yymsp[-1].minor.yy88); } + yymsp[-4].minor.yy698 = yylhsminor.yy698; break; case 216: /* table_options ::= table_options DELETE_MARK duration_list */ -{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy236); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setTableOption(pCxt, yymsp[-2].minor.yy698, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy88); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 217: /* alter_table_options ::= alter_table_option */ -{ yylhsminor.yy28 = createAlterTableOptions(pCxt); yylhsminor.yy28 = setTableOption(pCxt, yylhsminor.yy28, yymsp[0].minor.yy481.type, &yymsp[0].minor.yy481.val); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createAlterTableOptions(pCxt); yylhsminor.yy698 = setTableOption(pCxt, yylhsminor.yy698, yymsp[0].minor.yy23.type, &yymsp[0].minor.yy23.val); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 218: /* alter_table_options ::= alter_table_options alter_table_option */ -{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-1].minor.yy28, yymsp[0].minor.yy481.type, &yymsp[0].minor.yy481.val); } - yymsp[-1].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setTableOption(pCxt, yymsp[-1].minor.yy698, yymsp[0].minor.yy23.type, &yymsp[0].minor.yy23.val); } + yymsp[-1].minor.yy698 = yylhsminor.yy698; break; case 219: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy481.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy23.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; } break; case 220: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy481.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy23.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy23.val = yymsp[0].minor.yy0; } break; case 221: /* duration_list ::= duration_literal */ case 426: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==426); -{ yylhsminor.yy236 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } - yymsp[0].minor.yy236 = yylhsminor.yy236; +{ yylhsminor.yy88 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy698)); } + yymsp[0].minor.yy88 = yylhsminor.yy88; break; case 222: /* duration_list ::= duration_list NK_COMMA duration_literal */ case 427: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==427); -{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } - yymsp[-2].minor.yy236 = yylhsminor.yy236; +{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-2].minor.yy88, releaseRawExprNode(pCxt, yymsp[0].minor.yy698)); } + yymsp[-2].minor.yy88 = yylhsminor.yy88; break; case 225: /* rollup_func_name ::= function_name */ -{ yylhsminor.yy28 = createFunctionNode(pCxt, &yymsp[0].minor.yy889, NULL); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createFunctionNode(pCxt, &yymsp[0].minor.yy731, NULL); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 226: /* rollup_func_name ::= FIRST */ case 227: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==227); case 285: /* tag_item ::= QTAGS */ yytestcase(yyruleno==285); -{ yylhsminor.yy28 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 230: /* col_name ::= column_name */ case 286: /* tag_item ::= column_name */ yytestcase(yyruleno==286); -{ yylhsminor.yy28 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy889); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy731); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 231: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } @@ -5323,13 +5305,13 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); } break; case 235: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy28, yymsp[0].minor.yy28, OP_TYPE_LIKE); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy698, yymsp[0].minor.yy698, OP_TYPE_LIKE); } break; case 236: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy28, yymsp[0].minor.yy28, OP_TYPE_LIKE); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy698, yymsp[0].minor.yy698, OP_TYPE_LIKE); } break; case 237: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy28, NULL, OP_TYPE_LIKE); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy698, NULL, OP_TYPE_LIKE); } break; case 238: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } @@ -5341,10 +5323,10 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } break; case 241: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy28, yymsp[-1].minor.yy28, OP_TYPE_EQUAL); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy698, yymsp[-1].minor.yy698, OP_TYPE_EQUAL); } break; case 242: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy889), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889), OP_TYPE_EQUAL); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy731), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy731), OP_TYPE_EQUAL); } break; case 243: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } @@ -5363,13 +5345,13 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } break; case 249: /* cmd ::= SHOW CREATE DATABASE db_name */ -{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy889); } +{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy731); } break; case 250: /* cmd ::= SHOW CREATE TABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy28); } +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy698); } break; case 251: /* cmd ::= SHOW CREATE STABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy28); } +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy698); } break; case 252: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } @@ -5388,7 +5370,7 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } break; case 258: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy28); } +{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy698); } break; case 259: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } @@ -5403,7 +5385,7 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } break; case 263: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy28); } +{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy698); } break; case 264: /* cmd ::= SHOW CONSUMERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } @@ -5412,16 +5394,16 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } break; case 266: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy28, yymsp[-1].minor.yy28, OP_TYPE_EQUAL); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy698, yymsp[-1].minor.yy698, OP_TYPE_EQUAL); } break; case 267: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy889), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889), OP_TYPE_EQUAL); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy731), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy731), OP_TYPE_EQUAL); } break; case 268: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy28, yymsp[0].minor.yy28, yymsp[-3].minor.yy236); } +{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy698, yymsp[0].minor.yy698, yymsp[-3].minor.yy88); } break; case 269: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ -{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy889), yymsp[-4].minor.yy236); } +{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy731), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy731), yymsp[-4].minor.yy88); } break; case 270: /* cmd ::= SHOW VNODES NK_INTEGER */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } @@ -5430,192 +5412,192 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, createValueNode(pCxt, TSDB_DATA_TYPE_VARCHAR, &yymsp[0].minor.yy0)); } break; case 272: /* cmd ::= SHOW db_name_cond_opt ALIVE */ -{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy28, QUERY_NODE_SHOW_DB_ALIVE_STMT); } +{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy698, QUERY_NODE_SHOW_DB_ALIVE_STMT); } break; case 273: /* cmd ::= SHOW CLUSTER ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); } break; case 274: /* db_name_cond_opt ::= */ case 279: /* from_db_opt ::= */ yytestcase(yyruleno==279); -{ yymsp[1].minor.yy28 = createDefaultDatabaseCondValue(pCxt); } +{ yymsp[1].minor.yy698 = createDefaultDatabaseCondValue(pCxt); } break; case 275: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy28 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy889); } - yymsp[-1].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy731); } + yymsp[-1].minor.yy698 = yylhsminor.yy698; break; case 277: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; case 278: /* table_name_cond ::= table_name */ -{ yylhsminor.yy28 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy731); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 280: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy28 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889); } +{ yymsp[-1].minor.yy698 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy731); } break; case 284: /* tag_item ::= TBNAME */ -{ yylhsminor.yy28 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 287: /* tag_item ::= column_name column_alias */ -{ yylhsminor.yy28 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy889), &yymsp[0].minor.yy889); } - yymsp[-1].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy731), &yymsp[0].minor.yy731); } + yymsp[-1].minor.yy698 = yylhsminor.yy698; break; case 288: /* tag_item ::= column_name AS column_alias */ -{ yylhsminor.yy28 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy889), &yymsp[0].minor.yy889); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy731), &yymsp[0].minor.yy731); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 289: /* cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy793, yymsp[-3].minor.yy28, yymsp[-1].minor.yy28, NULL, yymsp[0].minor.yy28); } +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy83, yymsp[-3].minor.yy698, yymsp[-1].minor.yy698, NULL, yymsp[0].minor.yy698); } break; case 290: /* cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy793, yymsp[-5].minor.yy28, yymsp[-3].minor.yy28, yymsp[-1].minor.yy236, NULL); } +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy83, yymsp[-5].minor.yy698, yymsp[-3].minor.yy698, yymsp[-1].minor.yy88, NULL); } break; case 291: /* cmd ::= DROP INDEX exists_opt full_index_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy793, yymsp[0].minor.yy28); } +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy83, yymsp[0].minor.yy698); } break; case 292: /* full_index_name ::= index_name */ -{ yylhsminor.yy28 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy889); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy731); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 293: /* full_index_name ::= db_name NK_DOT index_name */ -{ yylhsminor.yy28 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy731); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 294: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ -{ yymsp[-9].minor.yy28 = createIndexOption(pCxt, yymsp[-7].minor.yy236, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), NULL, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } +{ yymsp[-9].minor.yy698 = createIndexOption(pCxt, yymsp[-7].minor.yy88, releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), NULL, yymsp[-1].minor.yy698, yymsp[0].minor.yy698); } break; case 295: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ -{ yymsp[-11].minor.yy28 = createIndexOption(pCxt, yymsp[-9].minor.yy236, releaseRawExprNode(pCxt, yymsp[-5].minor.yy28), releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } +{ yymsp[-11].minor.yy698 = createIndexOption(pCxt, yymsp[-9].minor.yy88, releaseRawExprNode(pCxt, yymsp[-5].minor.yy698), releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), yymsp[-1].minor.yy698, yymsp[0].minor.yy698); } break; case 298: /* func ::= sma_func_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy28 = createFunctionNode(pCxt, &yymsp[-3].minor.yy889, yymsp[-1].minor.yy236); } - yymsp[-3].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createFunctionNode(pCxt, &yymsp[-3].minor.yy731, yymsp[-1].minor.yy88); } + yymsp[-3].minor.yy698 = yylhsminor.yy698; break; case 299: /* sma_func_name ::= function_name */ case 513: /* alias_opt ::= table_alias */ yytestcase(yyruleno==513); -{ yylhsminor.yy889 = yymsp[0].minor.yy889; } - yymsp[0].minor.yy889 = yylhsminor.yy889; +{ yylhsminor.yy731 = yymsp[0].minor.yy731; } + yymsp[0].minor.yy731 = yylhsminor.yy731; break; case 304: /* sma_stream_opt ::= */ case 345: /* stream_options ::= */ yytestcase(yyruleno==345); -{ yymsp[1].minor.yy28 = createStreamOptions(pCxt); } +{ yymsp[1].minor.yy698 = createStreamOptions(pCxt); } break; case 305: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy28)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = yymsp[-2].minor.yy28; } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ ((SStreamOptions*)yymsp[-2].minor.yy698)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy698); yylhsminor.yy698 = yymsp[-2].minor.yy698; } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 306: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy28)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = yymsp[-2].minor.yy28; } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ ((SStreamOptions*)yymsp[-2].minor.yy698)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy698); yylhsminor.yy698 = yymsp[-2].minor.yy698; } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 307: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy28)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = yymsp[-2].minor.yy28; } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ ((SStreamOptions*)yymsp[-2].minor.yy698)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy698); yylhsminor.yy698 = yymsp[-2].minor.yy698; } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 308: /* with_meta ::= AS */ -{ yymsp[0].minor.yy956 = 0; } +{ yymsp[0].minor.yy724 = 0; } break; case 309: /* with_meta ::= WITH META AS */ -{ yymsp[-2].minor.yy956 = 1; } +{ yymsp[-2].minor.yy724 = 1; } break; case 310: /* with_meta ::= ONLY META AS */ -{ yymsp[-2].minor.yy956 = 2; } +{ yymsp[-2].minor.yy724 = 2; } break; case 311: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ -{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy793, &yymsp[-2].minor.yy889, yymsp[0].minor.yy28); } +{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy83, &yymsp[-2].minor.yy731, yymsp[0].minor.yy698); } break; case 312: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ -{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy793, &yymsp[-3].minor.yy889, &yymsp[0].minor.yy889, yymsp[-2].minor.yy956); } +{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy83, &yymsp[-3].minor.yy731, &yymsp[0].minor.yy731, yymsp[-2].minor.yy724); } break; case 313: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ -{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy793, &yymsp[-4].minor.yy889, yymsp[-1].minor.yy28, yymsp[-3].minor.yy956, yymsp[0].minor.yy28); } +{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy83, &yymsp[-4].minor.yy731, yymsp[-1].minor.yy698, yymsp[-3].minor.yy724, yymsp[0].minor.yy698); } break; case 314: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy83, &yymsp[0].minor.yy731); } break; case 315: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy793, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889); } +{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy83, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy731); } break; case 316: /* cmd ::= DESC full_table_name */ case 317: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==317); -{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy28); } +{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy698); } break; case 318: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; case 319: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ case 320: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==320); -{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy793, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy83, yymsp[-1].minor.yy698, yymsp[0].minor.yy698); } break; case 323: /* explain_options ::= */ -{ yymsp[1].minor.yy28 = createDefaultExplainOptions(pCxt); } +{ yymsp[1].minor.yy698 = createDefaultExplainOptions(pCxt); } break; case 324: /* explain_options ::= explain_options VERBOSE NK_BOOL */ -{ yylhsminor.yy28 = setExplainVerbose(pCxt, yymsp[-2].minor.yy28, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setExplainVerbose(pCxt, yymsp[-2].minor.yy698, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 325: /* explain_options ::= explain_options RATIO NK_FLOAT */ -{ yylhsminor.yy28 = setExplainRatio(pCxt, yymsp[-2].minor.yy28, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setExplainRatio(pCxt, yymsp[-2].minor.yy698, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 326: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ -{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy793, yymsp[-9].minor.yy793, &yymsp[-6].minor.yy889, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy32, yymsp[-1].minor.yy956, &yymsp[0].minor.yy889, yymsp[-10].minor.yy793); } +{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy83, yymsp[-9].minor.yy83, &yymsp[-6].minor.yy731, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy394, yymsp[-1].minor.yy724, &yymsp[0].minor.yy731, yymsp[-10].minor.yy83); } break; case 327: /* cmd ::= DROP FUNCTION exists_opt function_name */ -{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } +{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy83, &yymsp[0].minor.yy731); } break; case 332: /* language_opt ::= */ -{ yymsp[1].minor.yy889 = nil_token; } +{ yymsp[1].minor.yy731 = nil_token; } break; case 333: /* language_opt ::= LANGUAGE NK_STRING */ -{ yymsp[-1].minor.yy889 = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy731 = yymsp[0].minor.yy0; } break; case 336: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ -{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy793, &yymsp[-8].minor.yy889, yymsp[-5].minor.yy28, yymsp[-7].minor.yy28, yymsp[-3].minor.yy236, yymsp[-2].minor.yy28, yymsp[0].minor.yy28, yymsp[-4].minor.yy236); } +{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy83, &yymsp[-8].minor.yy731, yymsp[-5].minor.yy698, yymsp[-7].minor.yy698, yymsp[-3].minor.yy88, yymsp[-2].minor.yy698, yymsp[0].minor.yy698, yymsp[-4].minor.yy88); } break; case 337: /* cmd ::= DROP STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } +{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy83, &yymsp[0].minor.yy731); } break; case 338: /* cmd ::= PAUSE STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } +{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy83, &yymsp[0].minor.yy731); } break; case 339: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ -{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy793, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } +{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy83, yymsp[-1].minor.yy83, &yymsp[0].minor.yy731); } break; case 346: /* stream_options ::= stream_options TRIGGER AT_ONCE */ case 347: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==347); -{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-2].minor.yy28, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setStreamOptions(pCxt, yymsp[-2].minor.yy698, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 348: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-3].minor.yy28, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } - yymsp[-3].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setStreamOptions(pCxt, yymsp[-3].minor.yy698, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy698)); } + yymsp[-3].minor.yy698 = yylhsminor.yy698; break; case 349: /* stream_options ::= stream_options WATERMARK duration_literal */ -{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-2].minor.yy28, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setStreamOptions(pCxt, yymsp[-2].minor.yy698, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy698)); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 350: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ -{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-3].minor.yy28, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } - yymsp[-3].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setStreamOptions(pCxt, yymsp[-3].minor.yy698, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } + yymsp[-3].minor.yy698 = yylhsminor.yy698; break; case 351: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ -{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-2].minor.yy28, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setStreamOptions(pCxt, yymsp[-2].minor.yy698, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 352: /* stream_options ::= stream_options DELETE_MARK duration_literal */ -{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-2].minor.yy28, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setStreamOptions(pCxt, yymsp[-2].minor.yy698, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy698)); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 353: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ -{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-3].minor.yy28, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } - yymsp[-3].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = setStreamOptions(pCxt, yymsp[-3].minor.yy698, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } + yymsp[-3].minor.yy698 = yylhsminor.yy698; break; case 355: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - case 554: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==554); - case 575: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==575); -{ yymsp[-3].minor.yy28 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy28); } + case 549: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==549); + case 570: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==570); +{ yymsp[-3].minor.yy698 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy698); } break; case 358: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } @@ -5636,42 +5618,42 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 364: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy236); } +{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy88); } break; case 365: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; case 366: /* dnode_list ::= DNODE NK_INTEGER */ -{ yymsp[-1].minor.yy236 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } +{ yymsp[-1].minor.yy88 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; case 368: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ -{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } +{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy698, yymsp[0].minor.yy698); } break; case 371: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ -{ yymsp[-6].minor.yy28 = createInsertStmt(pCxt, yymsp[-4].minor.yy28, yymsp[-2].minor.yy236, yymsp[0].minor.yy28); } +{ yymsp[-6].minor.yy698 = createInsertStmt(pCxt, yymsp[-4].minor.yy698, yymsp[-2].minor.yy88, yymsp[0].minor.yy698); } break; case 372: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ -{ yymsp[-3].minor.yy28 = createInsertStmt(pCxt, yymsp[-1].minor.yy28, NULL, yymsp[0].minor.yy28); } +{ yymsp[-3].minor.yy698 = createInsertStmt(pCxt, yymsp[-1].minor.yy698, NULL, yymsp[0].minor.yy698); } break; case 373: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 374: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 375: /* literal ::= NK_STRING */ -{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 376: /* literal ::= NK_BOOL */ -{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 377: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } + yymsp[-1].minor.yy698 = yylhsminor.yy698; break; case 378: /* literal ::= duration_literal */ case 388: /* signed_literal ::= signed */ yytestcase(yyruleno==388); @@ -5690,175 +5672,175 @@ static YYACTIONTYPE yy_reduce( case 506: /* table_reference ::= table_primary */ yytestcase(yyruleno==506); case 507: /* table_reference ::= joined_table */ yytestcase(yyruleno==507); case 511: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==511); - case 577: /* query_simple ::= query_specification */ yytestcase(yyruleno==577); - case 578: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==578); - case 581: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==581); - case 583: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==583); -{ yylhsminor.yy28 = yymsp[0].minor.yy28; } - yymsp[0].minor.yy28 = yylhsminor.yy28; + case 572: /* query_simple ::= query_specification */ yytestcase(yyruleno==572); + case 573: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==573); + case 576: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==576); + case 578: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==578); +{ yylhsminor.yy698 = yymsp[0].minor.yy698; } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 379: /* literal ::= NULL */ -{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 380: /* literal ::= NK_QUESTION */ -{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 381: /* duration_literal ::= NK_VARIABLE */ -{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 382: /* signed ::= NK_INTEGER */ -{ yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 383: /* signed ::= NK_PLUS NK_INTEGER */ -{ yymsp[-1].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } break; case 384: /* signed ::= NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + yylhsminor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } - yymsp[-1].minor.yy28 = yylhsminor.yy28; + yymsp[-1].minor.yy698 = yylhsminor.yy698; break; case 385: /* signed ::= NK_FLOAT */ -{ yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 386: /* signed ::= NK_PLUS NK_FLOAT */ -{ yymsp[-1].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; case 387: /* signed ::= NK_MINUS NK_FLOAT */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + yylhsminor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } - yymsp[-1].minor.yy28 = yylhsminor.yy28; + yymsp[-1].minor.yy698 = yylhsminor.yy698; break; case 389: /* signed_literal ::= NK_STRING */ -{ yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 390: /* signed_literal ::= NK_BOOL */ -{ yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 391: /* signed_literal ::= TIMESTAMP NK_STRING */ -{ yymsp[-1].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 392: /* signed_literal ::= duration_literal */ case 394: /* signed_literal ::= literal_func */ yytestcase(yyruleno==394); case 465: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==465); - case 534: /* select_item ::= common_expression */ yytestcase(yyruleno==534); - case 544: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==544); - case 582: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==582); - case 584: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==584); - case 597: /* search_condition ::= common_expression */ yytestcase(yyruleno==597); -{ yylhsminor.yy28 = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); } - yymsp[0].minor.yy28 = yylhsminor.yy28; + case 529: /* select_item ::= common_expression */ yytestcase(yyruleno==529); + case 539: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==539); + case 577: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==577); + case 579: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==579); + case 592: /* search_condition ::= common_expression */ yytestcase(yyruleno==592); +{ yylhsminor.yy698 = releaseRawExprNode(pCxt, yymsp[0].minor.yy698); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 393: /* signed_literal ::= NULL */ -{ yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 395: /* signed_literal ::= NK_QUESTION */ -{ yylhsminor.yy28 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 415: /* expression ::= NK_LP expression NK_RP */ case 499: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==499); - case 596: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==596); -{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + case 591: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==591); +{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy698)); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 416: /* expression ::= NK_PLUS expr_or_subquery */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy698)); } - yymsp[-1].minor.yy28 = yylhsminor.yy28; + yymsp[-1].minor.yy698 = yylhsminor.yy698; break; case 417: /* expression ::= NK_MINUS expr_or_subquery */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy28), NULL)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy698), NULL)); } - yymsp[-1].minor.yy28 = yylhsminor.yy28; + yymsp[-1].minor.yy698 = yylhsminor.yy698; break; case 418: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698))); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 419: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698))); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 420: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698))); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 421: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698))); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 422: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698))); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 423: /* expression ::= column_reference NK_ARROW NK_STRING */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 424: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698))); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 425: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698))); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 428: /* column_reference ::= column_name */ -{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy889, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy889)); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy731, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy731)); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 429: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889, createColumnNode(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889)); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy731, createColumnNode(pCxt, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy731)); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 430: /* pseudo_column ::= ROWTS */ case 431: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==431); @@ -5872,340 +5854,341 @@ static YYACTIONTYPE yy_reduce( case 440: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==440); case 441: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==441); case 447: /* literal_func ::= NOW */ yytestcase(yyruleno==447); -{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } - yymsp[0].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; case 432: /* pseudo_column ::= table_name NK_DOT TBNAME */ -{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy889)))); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy731)))); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 442: /* function_expression ::= function_name NK_LP expression_list NK_RP */ case 443: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==443); -{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy889, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy889, yymsp[-1].minor.yy236)); } - yymsp[-3].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy731, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy731, yymsp[-1].minor.yy88)); } + yymsp[-3].minor.yy698 = yylhsminor.yy698; break; case 444: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ -{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), yymsp[-1].minor.yy32)); } - yymsp[-5].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), yymsp[-1].minor.yy394)); } + yymsp[-5].minor.yy698 = yylhsminor.yy698; break; case 446: /* literal_func ::= noarg_func NK_LP NK_RP */ -{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy889, NULL)); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy731, NULL)); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 461: /* star_func_para_list ::= NK_STAR */ -{ yylhsminor.yy236 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy236 = yylhsminor.yy236; +{ yylhsminor.yy88 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy88 = yylhsminor.yy88; break; case 466: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 537: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==537); -{ yylhsminor.yy28 = createColumnNode(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + case 532: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==532); +{ yylhsminor.yy698 = createColumnNode(pCxt, &yymsp[-2].minor.yy731, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 467: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ -{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy236, yymsp[-1].minor.yy28)); } - yymsp[-3].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy88, yymsp[-1].minor.yy698)); } + yymsp[-3].minor.yy698 = yylhsminor.yy698; break; case 468: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ -{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), yymsp[-2].minor.yy236, yymsp[-1].minor.yy28)); } - yymsp[-4].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), yymsp[-2].minor.yy88, yymsp[-1].minor.yy698)); } + yymsp[-4].minor.yy698 = yylhsminor.yy698; break; case 471: /* when_then_expr ::= WHEN common_expression THEN common_expression */ -{ yymsp[-3].minor.yy28 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } +{ yymsp[-3].minor.yy698 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698)); } break; case 473: /* case_when_else_opt ::= ELSE common_expression */ -{ yymsp[-1].minor.yy28 = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); } +{ yymsp[-1].minor.yy698 = releaseRawExprNode(pCxt, yymsp[0].minor.yy698); } break; case 474: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ case 479: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==479); { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy896, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy464, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698))); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 475: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy28); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy28), releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy698); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy698), releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698))); } - yymsp[-4].minor.yy28 = yylhsminor.yy28; + yymsp[-4].minor.yy698 = yylhsminor.yy698; break; case 476: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy28); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy28), releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy698); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy698), releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698))); } - yymsp[-5].minor.yy28 = yylhsminor.yy28; + yymsp[-5].minor.yy698 = yylhsminor.yy698; break; case 477: /* predicate ::= expr_or_subquery IS NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), NULL)); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 478: /* predicate ::= expr_or_subquery IS NOT NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), NULL)); } - yymsp[-3].minor.yy28 = yylhsminor.yy28; + yymsp[-3].minor.yy698 = yylhsminor.yy698; break; case 480: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy896 = OP_TYPE_LOWER_THAN; } +{ yymsp[0].minor.yy464 = OP_TYPE_LOWER_THAN; } break; case 481: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy896 = OP_TYPE_GREATER_THAN; } +{ yymsp[0].minor.yy464 = OP_TYPE_GREATER_THAN; } break; case 482: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy896 = OP_TYPE_LOWER_EQUAL; } +{ yymsp[0].minor.yy464 = OP_TYPE_LOWER_EQUAL; } break; case 483: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy896 = OP_TYPE_GREATER_EQUAL; } +{ yymsp[0].minor.yy464 = OP_TYPE_GREATER_EQUAL; } break; case 484: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy896 = OP_TYPE_NOT_EQUAL; } +{ yymsp[0].minor.yy464 = OP_TYPE_NOT_EQUAL; } break; case 485: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy896 = OP_TYPE_EQUAL; } +{ yymsp[0].minor.yy464 = OP_TYPE_EQUAL; } break; case 486: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy896 = OP_TYPE_LIKE; } +{ yymsp[0].minor.yy464 = OP_TYPE_LIKE; } break; case 487: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy896 = OP_TYPE_NOT_LIKE; } +{ yymsp[-1].minor.yy464 = OP_TYPE_NOT_LIKE; } break; case 488: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy896 = OP_TYPE_MATCH; } +{ yymsp[0].minor.yy464 = OP_TYPE_MATCH; } break; case 489: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy896 = OP_TYPE_NMATCH; } +{ yymsp[0].minor.yy464 = OP_TYPE_NMATCH; } break; case 490: /* compare_op ::= CONTAINS */ -{ yymsp[0].minor.yy896 = OP_TYPE_JSON_CONTAINS; } +{ yymsp[0].minor.yy464 = OP_TYPE_JSON_CONTAINS; } break; case 491: /* in_op ::= IN */ -{ yymsp[0].minor.yy896 = OP_TYPE_IN; } +{ yymsp[0].minor.yy464 = OP_TYPE_IN; } break; case 492: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy896 = OP_TYPE_NOT_IN; } +{ yymsp[-1].minor.yy464 = OP_TYPE_NOT_IN; } break; case 493: /* in_predicate_value ::= NK_LP literal_list NK_RP */ -{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy236)); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy88)); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 495: /* boolean_value_expression ::= NOT boolean_primary */ { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy28), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy698), NULL)); } - yymsp[-1].minor.yy28 = yylhsminor.yy28; + yymsp[-1].minor.yy698 = yylhsminor.yy698; break; case 496: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698))); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 497: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); - yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy698); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy698); + yylhsminor.yy698 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), releaseRawExprNode(pCxt, yymsp[0].minor.yy698))); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 505: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy28 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy28, yymsp[0].minor.yy28, NULL); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy698, yymsp[0].minor.yy698, NULL); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; case 508: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy28 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy889, &yymsp[0].minor.yy889); } - yymsp[-1].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy731, &yymsp[0].minor.yy731); } + yymsp[-1].minor.yy698 = yylhsminor.yy698; break; case 509: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy28 = createRealTableNode(pCxt, &yymsp[-3].minor.yy889, &yymsp[-1].minor.yy889, &yymsp[0].minor.yy889); } - yymsp[-3].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createRealTableNode(pCxt, &yymsp[-3].minor.yy731, &yymsp[-1].minor.yy731, &yymsp[0].minor.yy731); } + yymsp[-3].minor.yy698 = yylhsminor.yy698; break; case 510: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy28 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28), &yymsp[0].minor.yy889); } - yymsp[-1].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy698), &yymsp[0].minor.yy731); } + yymsp[-1].minor.yy698 = yylhsminor.yy698; break; case 512: /* alias_opt ::= */ -{ yymsp[1].minor.yy889 = nil_token; } +{ yymsp[1].minor.yy731 = nil_token; } break; case 514: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy889 = yymsp[0].minor.yy889; } +{ yymsp[-1].minor.yy731 = yymsp[0].minor.yy731; } break; case 515: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ case 516: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==516); -{ yymsp[-2].minor.yy28 = yymsp[-1].minor.yy28; } +{ yymsp[-2].minor.yy698 = yymsp[-1].minor.yy698; } break; case 517: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -{ yylhsminor.yy28 = createJoinTableNode(pCxt, yymsp[-4].minor.yy152, yymsp[-5].minor.yy28, yymsp[-2].minor.yy28, yymsp[0].minor.yy28); } - yymsp[-5].minor.yy28 = yylhsminor.yy28; +{ yylhsminor.yy698 = createJoinTableNode(pCxt, yymsp[-4].minor.yy24, yymsp[-5].minor.yy698, yymsp[-2].minor.yy698, yymsp[0].minor.yy698); } + yymsp[-5].minor.yy698 = yylhsminor.yy698; break; case 518: /* join_type ::= */ -{ yymsp[1].minor.yy152 = JOIN_TYPE_INNER; } +{ yymsp[1].minor.yy24 = JOIN_TYPE_INNER; } break; case 519: /* join_type ::= INNER */ -{ yymsp[0].minor.yy152 = JOIN_TYPE_INNER; } +{ yymsp[0].minor.yy24 = JOIN_TYPE_INNER; } break; case 520: /* query_specification ::= SELECT hint_list set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ { - yymsp[-12].minor.yy28 = createSelectStmt(pCxt, yymsp[-10].minor.yy793, yymsp[-9].minor.yy236, yymsp[-8].minor.yy28, yymsp[-11].minor.yy236); - yymsp[-12].minor.yy28 = addWhereClause(pCxt, yymsp[-12].minor.yy28, yymsp[-7].minor.yy28); - yymsp[-12].minor.yy28 = addPartitionByClause(pCxt, yymsp[-12].minor.yy28, yymsp[-6].minor.yy236); - yymsp[-12].minor.yy28 = addWindowClauseClause(pCxt, yymsp[-12].minor.yy28, yymsp[-2].minor.yy28); - yymsp[-12].minor.yy28 = addGroupByClause(pCxt, yymsp[-12].minor.yy28, yymsp[-1].minor.yy236); - yymsp[-12].minor.yy28 = addHavingClause(pCxt, yymsp[-12].minor.yy28, yymsp[0].minor.yy28); - yymsp[-12].minor.yy28 = addRangeClause(pCxt, yymsp[-12].minor.yy28, yymsp[-5].minor.yy28); - yymsp[-12].minor.yy28 = addEveryClause(pCxt, yymsp[-12].minor.yy28, yymsp[-4].minor.yy28); - yymsp[-12].minor.yy28 = addFillClause(pCxt, yymsp[-12].minor.yy28, yymsp[-3].minor.yy28); + yymsp[-12].minor.yy698 = createSelectStmt(pCxt, yymsp[-10].minor.yy83, yymsp[-9].minor.yy88, yymsp[-8].minor.yy698, yymsp[-11].minor.yy88); + yymsp[-12].minor.yy698 = addWhereClause(pCxt, yymsp[-12].minor.yy698, yymsp[-7].minor.yy698); + yymsp[-12].minor.yy698 = addPartitionByClause(pCxt, yymsp[-12].minor.yy698, yymsp[-6].minor.yy88); + yymsp[-12].minor.yy698 = addWindowClauseClause(pCxt, yymsp[-12].minor.yy698, yymsp[-2].minor.yy698); + yymsp[-12].minor.yy698 = addGroupByClause(pCxt, yymsp[-12].minor.yy698, yymsp[-1].minor.yy88); + yymsp[-12].minor.yy698 = addHavingClause(pCxt, yymsp[-12].minor.yy698, yymsp[0].minor.yy698); + yymsp[-12].minor.yy698 = addRangeClause(pCxt, yymsp[-12].minor.yy698, yymsp[-5].minor.yy698); + yymsp[-12].minor.yy698 = addEveryClause(pCxt, yymsp[-12].minor.yy698, yymsp[-4].minor.yy698); + yymsp[-12].minor.yy698 = addFillClause(pCxt, yymsp[-12].minor.yy698, yymsp[-3].minor.yy698); } break; - case 521: /* hint_opt ::= NO_BATCH_SCAN NK_LP NK_RP */ -{ yymsp[-2].minor.yy28 = createHintNode(pCxt, HINT_NO_BATCH_SCAN, NULL); } + case 521: /* hint_list ::= */ +{ yymsp[1].minor.yy88 = createHintNodeList(pCxt, NULL); } break; - case 522: /* hint_opt ::= BATCH_SCAN NK_LP NK_RP */ -{ yymsp[-2].minor.yy28 = createHintNode(pCxt, HINT_BATCH_SCAN, NULL); } + case 522: /* hint_list ::= NK_HINT */ +{ yylhsminor.yy88 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy88 = yylhsminor.yy88; break; - case 530: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy793 = false; } + case 525: /* set_quantifier_opt ::= ALL */ +{ yymsp[0].minor.yy83 = false; } break; - case 533: /* select_item ::= NK_STAR */ -{ yylhsminor.yy28 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy28 = yylhsminor.yy28; + case 528: /* select_item ::= NK_STAR */ +{ yylhsminor.yy698 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy698 = yylhsminor.yy698; break; - case 535: /* select_item ::= common_expression column_alias */ - case 545: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==545); -{ yylhsminor.yy28 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28), &yymsp[0].minor.yy889); } - yymsp[-1].minor.yy28 = yylhsminor.yy28; + case 530: /* select_item ::= common_expression column_alias */ + case 540: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==540); +{ yylhsminor.yy698 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy698), &yymsp[0].minor.yy731); } + yymsp[-1].minor.yy698 = yylhsminor.yy698; break; - case 536: /* select_item ::= common_expression AS column_alias */ - case 546: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==546); -{ yylhsminor.yy28 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), &yymsp[0].minor.yy889); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + case 531: /* select_item ::= common_expression AS column_alias */ + case 541: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==541); +{ yylhsminor.yy698 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), &yymsp[0].minor.yy731); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; - case 541: /* partition_by_clause_opt ::= PARTITION BY partition_list */ - case 566: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==566); - case 586: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==586); -{ yymsp[-2].minor.yy236 = yymsp[0].minor.yy236; } + case 536: /* partition_by_clause_opt ::= PARTITION BY partition_list */ + case 561: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==561); + case 581: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==581); +{ yymsp[-2].minor.yy88 = yymsp[0].minor.yy88; } break; - case 548: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -{ yymsp[-5].minor.yy28 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); } + case 543: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ +{ yymsp[-5].minor.yy698 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), releaseRawExprNode(pCxt, yymsp[-1].minor.yy698)); } break; - case 549: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ -{ yymsp[-3].minor.yy28 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); } + case 544: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ +{ yymsp[-3].minor.yy698 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy698)); } break; - case 550: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy28 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), NULL, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } + case 545: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-5].minor.yy698 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), NULL, yymsp[-1].minor.yy698, yymsp[0].minor.yy698); } break; - case 551: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-7].minor.yy28 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy28), releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } + case 546: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-7].minor.yy698 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy698), releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), yymsp[-1].minor.yy698, yymsp[0].minor.yy698); } break; - case 552: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ -{ yymsp[-6].minor.yy28 = createEventWindowNode(pCxt, yymsp[-3].minor.yy28, yymsp[0].minor.yy28); } + case 547: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ +{ yymsp[-6].minor.yy698 = createEventWindowNode(pCxt, yymsp[-3].minor.yy698, yymsp[0].minor.yy698); } break; - case 556: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy28 = createFillNode(pCxt, yymsp[-1].minor.yy322, NULL); } + case 551: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +{ yymsp[-3].minor.yy698 = createFillNode(pCxt, yymsp[-1].minor.yy498, NULL); } break; - case 557: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ -{ yymsp[-5].minor.yy28 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy236)); } + case 552: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ +{ yymsp[-5].minor.yy698 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy88)); } break; - case 558: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ -{ yymsp[-5].minor.yy28 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy236)); } + case 553: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ +{ yymsp[-5].minor.yy698 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy88)); } break; - case 559: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy322 = FILL_MODE_NONE; } + case 554: /* fill_mode ::= NONE */ +{ yymsp[0].minor.yy498 = FILL_MODE_NONE; } break; - case 560: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy322 = FILL_MODE_PREV; } + case 555: /* fill_mode ::= PREV */ +{ yymsp[0].minor.yy498 = FILL_MODE_PREV; } break; - case 561: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy322 = FILL_MODE_NULL; } + case 556: /* fill_mode ::= NULL */ +{ yymsp[0].minor.yy498 = FILL_MODE_NULL; } break; - case 562: /* fill_mode ::= NULL_F */ -{ yymsp[0].minor.yy322 = FILL_MODE_NULL_F; } + case 557: /* fill_mode ::= NULL_F */ +{ yymsp[0].minor.yy498 = FILL_MODE_NULL_F; } break; - case 563: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy322 = FILL_MODE_LINEAR; } + case 558: /* fill_mode ::= LINEAR */ +{ yymsp[0].minor.yy498 = FILL_MODE_LINEAR; } break; - case 564: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy322 = FILL_MODE_NEXT; } + case 559: /* fill_mode ::= NEXT */ +{ yymsp[0].minor.yy498 = FILL_MODE_NEXT; } break; - case 567: /* group_by_list ::= expr_or_subquery */ -{ yylhsminor.yy236 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } - yymsp[0].minor.yy236 = yylhsminor.yy236; + case 562: /* group_by_list ::= expr_or_subquery */ +{ yylhsminor.yy88 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy698))); } + yymsp[0].minor.yy88 = yylhsminor.yy88; break; - case 568: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ -{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } - yymsp[-2].minor.yy236 = yylhsminor.yy236; + case 563: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ +{ yylhsminor.yy88 = addNodeToList(pCxt, yymsp[-2].minor.yy88, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy698))); } + yymsp[-2].minor.yy88 = yylhsminor.yy88; break; - case 572: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ -{ yymsp[-5].minor.yy28 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); } + case 567: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ +{ yymsp[-5].minor.yy698 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy698), releaseRawExprNode(pCxt, yymsp[-1].minor.yy698)); } break; - case 573: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ -{ yymsp[-3].minor.yy28 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); } + case 568: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ +{ yymsp[-3].minor.yy698 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy698)); } break; - case 576: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 571: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ { - yylhsminor.yy28 = addOrderByClause(pCxt, yymsp[-3].minor.yy28, yymsp[-2].minor.yy236); - yylhsminor.yy28 = addSlimitClause(pCxt, yylhsminor.yy28, yymsp[-1].minor.yy28); - yylhsminor.yy28 = addLimitClause(pCxt, yylhsminor.yy28, yymsp[0].minor.yy28); + yylhsminor.yy698 = addOrderByClause(pCxt, yymsp[-3].minor.yy698, yymsp[-2].minor.yy88); + yylhsminor.yy698 = addSlimitClause(pCxt, yylhsminor.yy698, yymsp[-1].minor.yy698); + yylhsminor.yy698 = addLimitClause(pCxt, yylhsminor.yy698, yymsp[0].minor.yy698); } - yymsp[-3].minor.yy28 = yylhsminor.yy28; + yymsp[-3].minor.yy698 = yylhsminor.yy698; break; - case 579: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ -{ yylhsminor.yy28 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy28, yymsp[0].minor.yy28); } - yymsp[-3].minor.yy28 = yylhsminor.yy28; + case 574: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ +{ yylhsminor.yy698 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy698, yymsp[0].minor.yy698); } + yymsp[-3].minor.yy698 = yylhsminor.yy698; break; - case 580: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ -{ yylhsminor.yy28 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy28, yymsp[0].minor.yy28); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + case 575: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ +{ yylhsminor.yy698 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy698, yymsp[0].minor.yy698); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; - case 588: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 592: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==592); -{ yymsp[-1].minor.yy28 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 583: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 587: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==587); +{ yymsp[-1].minor.yy698 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 589: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 593: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==593); -{ yymsp[-3].minor.yy28 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 584: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 588: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==588); +{ yymsp[-3].minor.yy698 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 590: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 594: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==594); -{ yymsp[-3].minor.yy28 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 585: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 589: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==589); +{ yymsp[-3].minor.yy698 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 595: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy28); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + case 590: /* subquery ::= NK_LP query_expression NK_RP */ +{ yylhsminor.yy698 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy698); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; - case 600: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy28 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), yymsp[-1].minor.yy734, yymsp[0].minor.yy945); } - yymsp[-2].minor.yy28 = yylhsminor.yy28; + case 595: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ +{ yylhsminor.yy698 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy698), yymsp[-1].minor.yy44, yymsp[0].minor.yy409); } + yymsp[-2].minor.yy698 = yylhsminor.yy698; break; - case 601: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy734 = ORDER_ASC; } + case 596: /* ordering_specification_opt ::= */ +{ yymsp[1].minor.yy44 = ORDER_ASC; } break; - case 602: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy734 = ORDER_ASC; } + case 597: /* ordering_specification_opt ::= ASC */ +{ yymsp[0].minor.yy44 = ORDER_ASC; } break; - case 603: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy734 = ORDER_DESC; } + case 598: /* ordering_specification_opt ::= DESC */ +{ yymsp[0].minor.yy44 = ORDER_DESC; } break; - case 604: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy945 = NULL_ORDER_DEFAULT; } + case 599: /* null_ordering_opt ::= */ +{ yymsp[1].minor.yy409 = NULL_ORDER_DEFAULT; } break; - case 605: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy945 = NULL_ORDER_FIRST; } + case 600: /* null_ordering_opt ::= NULLS FIRST */ +{ yymsp[-1].minor.yy409 = NULL_ORDER_FIRST; } break; - case 606: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy945 = NULL_ORDER_LAST; } + case 601: /* null_ordering_opt ::= NULLS LAST */ +{ yymsp[-1].minor.yy409 = NULL_ORDER_LAST; } break; default: break; diff --git a/source/libs/planner/inc/planInt.h b/source/libs/planner/inc/planInt.h index d90b5004ea..1fa0e1b9a1 100644 --- a/source/libs/planner/inc/planInt.h +++ b/source/libs/planner/inc/planInt.h @@ -21,6 +21,7 @@ extern "C" { #endif #include "planner.h" +#include "tsimplehash.h" #include "taoserror.h" #define planFatal(param, ...) qFatal("PLAN: " param, ##__VA_ARGS__) @@ -46,6 +47,8 @@ int32_t createPhysiPlan(SPlanContext* pCxt, SQueryLogicPlan* pLogicPlan, SQueryP bool isPartTableAgg(SAggLogicNode* pAgg); bool isPartTableWinodw(SWindowLogicNode* pWindow); bool getBatchScanOptionFromHint(SNodeList* pList); +SLogicNode* getLogicNodeRootNode(SLogicNode* pCurr); +int32_t collectTableAliasFromNodes(SNode* pNode, SSHashObj** ppRes); #ifdef __cplusplus } diff --git a/source/libs/planner/src/planLogicCreater.c b/source/libs/planner/src/planLogicCreater.c index 3df6151129..0ff98e4012 100644 --- a/source/libs/planner/src/planLogicCreater.c +++ b/source/libs/planner/src/planLogicCreater.c @@ -478,10 +478,34 @@ static int32_t createJoinLogicNode(SLogicPlanContext* pCxt, SSelectStmt* pSelect // set the output if (TSDB_CODE_SUCCESS == code) { SNodeList* pColList = NULL; - if (TSDB_CODE_SUCCESS == code) { - code = nodesCollectColumns(pSelect, SQL_CLAUSE_WHERE, NULL, COLLECT_COL_TYPE_ALL, &pColList); + if (QUERY_NODE_REAL_TABLE == nodeType(pJoinTable->pLeft)) { + code = nodesCollectColumns(pSelect, SQL_CLAUSE_WHERE, ((SRealTableNode*)pJoinTable->pLeft)->table.tableAlias, COLLECT_COL_TYPE_ALL, &pColList); + } else { + pJoin->node.pTargets = nodesCloneList(pLeft->pTargets); + if (NULL == pJoin->node.pTargets) { + code = TSDB_CODE_OUT_OF_MEMORY; + } } - if (TSDB_CODE_SUCCESS == code) { + if (TSDB_CODE_SUCCESS == code && NULL != pColList) { + code = createColumnByRewriteExprs(pColList, &pJoin->node.pTargets); + } + } + + if (TSDB_CODE_SUCCESS == code) { + SNodeList* pColList = NULL; + if (QUERY_NODE_REAL_TABLE == nodeType(pJoinTable->pRight)) { + code = nodesCollectColumns(pSelect, SQL_CLAUSE_WHERE, ((SRealTableNode*)pJoinTable->pRight)->table.tableAlias, COLLECT_COL_TYPE_ALL, &pColList); + } else { + if (pJoin->node.pTargets) { + nodesListStrictAppendList(pJoin->node.pTargets, nodesCloneList(pRight->pTargets)); + } else { + pJoin->node.pTargets = nodesCloneList(pRight->pTargets); + if (NULL == pJoin->node.pTargets) { + code = TSDB_CODE_OUT_OF_MEMORY; + } + } + } + if (TSDB_CODE_SUCCESS == code && NULL != pColList) { code = createColumnByRewriteExprs(pColList, &pJoin->node.pTargets); } } @@ -1277,11 +1301,17 @@ static int32_t createSelectFromLogicNode(SLogicPlanContext* pCxt, SSelectStmt* p } static int32_t createSelectLogicNode(SLogicPlanContext* pCxt, SSelectStmt* pSelect, SLogicNode** pLogicNode) { + int32_t code = TSDB_CODE_SUCCESS; if (NULL == pSelect->pFromTable) { - return createSelectWithoutFromLogicNode(pCxt, pSelect, pLogicNode); + code = createSelectWithoutFromLogicNode(pCxt, pSelect, pLogicNode); } else { - return createSelectFromLogicNode(pCxt, pSelect, pLogicNode); + code = createSelectFromLogicNode(pCxt, pSelect, pLogicNode); } + if (TSDB_CODE_SUCCESS == code && NULL != *pLogicNode) { + (*pLogicNode)->stmtRoot = true; + TSWAP((*pLogicNode)->pHint, pSelect->pHint); + } + return code; } static int32_t createSetOpRootLogicNode(SLogicPlanContext* pCxt, SSetOperator* pSetOperator, FCreateSetOpLogicNode func, diff --git a/source/libs/planner/src/planOptimizer.c b/source/libs/planner/src/planOptimizer.c index b29f47b80e..72cd6c8285 100644 --- a/source/libs/planner/src/planOptimizer.c +++ b/source/libs/planner/src/planOptimizer.c @@ -50,8 +50,8 @@ typedef struct SOsdInfo { } SOsdInfo; typedef struct SCpdIsMultiTableCondCxt { - SNodeList* pLeftCols; - SNodeList* pRightCols; + SSHashObj* pLeftTbls; + SSHashObj* pRightTbls; bool havaLeftCol; bool haveRightCol; } SCpdIsMultiTableCondCxt; @@ -505,12 +505,21 @@ static bool pushDownCondOptBelongThisTable(SNode* pCondCol, SNodeList* pTableCol return false; } +static bool pushDownCondOptColInTableList(SNode* pCondCol, SSHashObj* pTables) { + SColumnNode* pTableCol = (SColumnNode*)pCondCol; + if (NULL == tSimpleHashGet(pTables, pTableCol->tableAlias, strlen(pTableCol->tableAlias))) { + return false; + } + return true; +} + + static EDealRes pushDownCondOptIsCrossTableCond(SNode* pNode, void* pContext) { SCpdIsMultiTableCondCxt* pCxt = pContext; if (QUERY_NODE_COLUMN == nodeType(pNode)) { - if (pushDownCondOptBelongThisTable(pNode, pCxt->pLeftCols)) { + if (pushDownCondOptColInTableList(pNode, pCxt->pLeftTbls)) { pCxt->havaLeftCol = true; - } else if (pushDownCondOptBelongThisTable(pNode, pCxt->pRightCols)) { + } else if (pushDownCondOptColInTableList(pNode, pCxt->pRightTbls)) { pCxt->haveRightCol = true; } return pCxt->havaLeftCol && pCxt->haveRightCol ? DEAL_RES_END : DEAL_RES_CONTINUE; @@ -518,10 +527,10 @@ static EDealRes pushDownCondOptIsCrossTableCond(SNode* pNode, void* pContext) { return DEAL_RES_CONTINUE; } -static ECondAction pushDownCondOptGetCondAction(EJoinType joinType, SNodeList* pLeftCols, SNodeList* pRightCols, +static ECondAction pushDownCondOptGetCondAction(EJoinType joinType, SSHashObj* pLeftTbls, SSHashObj* pRightTbls, SNode* pNode) { SCpdIsMultiTableCondCxt cxt = { - .pLeftCols = pLeftCols, .pRightCols = pRightCols, .havaLeftCol = false, .haveRightCol = false}; + .pLeftTbls = pLeftTbls, .pRightTbls = pRightTbls, .havaLeftCol = false, .haveRightCol = false}; nodesWalkExpr(pNode, pushDownCondOptIsCrossTableCond, &cxt); return (JOIN_TYPE_INNER != joinType ? COND_ACTION_STAY @@ -537,9 +546,11 @@ static int32_t pushDownCondOptPartLogicCond(SJoinLogicNode* pJoin, SNode** pOnCo return TSDB_CODE_SUCCESS; } - SNodeList* pLeftCols = ((SLogicNode*)nodesListGetNode(pJoin->node.pChildren, 0))->pTargets; - SNodeList* pRightCols = ((SLogicNode*)nodesListGetNode(pJoin->node.pChildren, 1))->pTargets; int32_t code = TSDB_CODE_SUCCESS; + SSHashObj* pLeftTables = NULL; + SSHashObj* pRightTables = NULL; + collectTableAliasFromNodes(nodesListGetNode(pJoin->node.pChildren, 0), &pLeftTables); + collectTableAliasFromNodes(nodesListGetNode(pJoin->node.pChildren, 1), &pRightTables); SNodeList* pOnConds = NULL; SNodeList* pLeftChildConds = NULL; @@ -547,7 +558,7 @@ static int32_t pushDownCondOptPartLogicCond(SJoinLogicNode* pJoin, SNode** pOnCo SNodeList* pRemainConds = NULL; SNode* pCond = NULL; FOREACH(pCond, pLogicCond->pParameterList) { - ECondAction condAction = pushDownCondOptGetCondAction(pJoin->joinType, pLeftCols, pRightCols, pCond); + ECondAction condAction = pushDownCondOptGetCondAction(pJoin->joinType, pLeftTables, pRightTables, pCond); if (COND_ACTION_PUSH_JOIN == condAction) { code = nodesListMakeAppend(&pOnConds, nodesCloneNode(pCond)); } else if (COND_ACTION_PUSH_LEFT_CHILD == condAction) { @@ -562,6 +573,9 @@ static int32_t pushDownCondOptPartLogicCond(SJoinLogicNode* pJoin, SNode** pOnCo } } + tSimpleHashCleanup(pLeftTables); + tSimpleHashCleanup(pRightTables); + SNode* pTempOnCond = NULL; SNode* pTempLeftChildCond = NULL; SNode* pTempRightChildCond = NULL; @@ -601,10 +615,17 @@ static int32_t pushDownCondOptPartLogicCond(SJoinLogicNode* pJoin, SNode** pOnCo static int32_t pushDownCondOptPartOpCond(SJoinLogicNode* pJoin, SNode** pOnCond, SNode** pLeftChildCond, SNode** pRightChildCond) { - SNodeList* pLeftCols = ((SLogicNode*)nodesListGetNode(pJoin->node.pChildren, 0))->pTargets; - SNodeList* pRightCols = ((SLogicNode*)nodesListGetNode(pJoin->node.pChildren, 1))->pTargets; + SSHashObj* pLeftTables = NULL; + SSHashObj* pRightTables = NULL; + collectTableAliasFromNodes(nodesListGetNode(pJoin->node.pChildren, 0), &pLeftTables); + collectTableAliasFromNodes(nodesListGetNode(pJoin->node.pChildren, 1), &pRightTables); + ECondAction condAction = - pushDownCondOptGetCondAction(pJoin->joinType, pLeftCols, pRightCols, pJoin->node.pConditions); + pushDownCondOptGetCondAction(pJoin->joinType, pLeftTables, pRightTables, pJoin->node.pConditions); + + tSimpleHashCleanup(pLeftTables); + tSimpleHashCleanup(pRightTables); + if (COND_ACTION_STAY == condAction) { return TSDB_CODE_SUCCESS; } else if (COND_ACTION_PUSH_JOIN == condAction) { @@ -930,7 +951,6 @@ static int32_t pushDownCondOptDealJoin(SOptimizeContext* pCxt, SJoinLogicNode* p if (pJoin->joinAlgo != JOIN_ALGO_UNKNOWN) { return TSDB_CODE_SUCCESS; } - pJoin->joinAlgo = JOIN_ALGO_MERGE; if (NULL == pJoin->node.pConditions) { int32_t code = pushDownCondOptJoinExtractCond(pCxt, pJoin); @@ -1320,6 +1340,7 @@ static int32_t sortPriKeyOptGetSequencingNodesImpl(SLogicNode* pNode, bool group } case QUERY_NODE_LOGIC_PLAN_AGG: case QUERY_NODE_LOGIC_PLAN_PARTITION: + case QUERY_NODE_LOGIC_PLAN_DYN_QUERY_CTRL: *pNotOptimize = true; return TSDB_CODE_SUCCESS; default: @@ -3160,7 +3181,11 @@ static bool stbJoinOptShouldBeOptimized(SLogicNode* pNode) { } SJoinLogicNode* pJoin = (SJoinLogicNode*)pNode; - if (pJoin->isSingleTableJoin || NULL == pJoin->pTagEqCond || pNode->pChildren->length != 2 || pJoin->hasSubQuery || pJoin->joinAlgo != JOIN_ALGO_UNKNOWN) { + if (pJoin->isSingleTableJoin || NULL == pJoin->pTagEqCond || pNode->pChildren->length != 2 + || pJoin->hasSubQuery || pJoin->joinAlgo != JOIN_ALGO_UNKNOWN || (pNode->pParent && nodeType(pNode->pParent) == QUERY_NODE_LOGIC_PLAN_JOIN)) { + if (pJoin->joinAlgo == JOIN_ALGO_UNKNOWN) { + pJoin->joinAlgo = JOIN_ALGO_MERGE; + } return false; } @@ -3329,7 +3354,7 @@ static int32_t stbJoinOptCreateTableScanNodes(SLogicNode* pJoin, SNodeList** ppL return code; } -static int32_t stbJoinOptCreateGroupCacheNode(SOptimizeContext* pCxt, SNodeList* pChildren, SLogicNode** ppLogic) { +static int32_t stbJoinOptCreateGroupCacheNode(SLogicNode* pRoot, SNodeList* pChildren, SLogicNode** ppLogic) { int32_t code = TSDB_CODE_SUCCESS; SGroupCacheLogicNode* pGrpCache = (SGroupCacheLogicNode*)nodesMakeNode(QUERY_NODE_LOGIC_PLAN_GROUP_CACHE); if (NULL == pGrpCache) { @@ -3339,7 +3364,7 @@ static int32_t stbJoinOptCreateGroupCacheNode(SOptimizeContext* pCxt, SNodeList* //pGrpCache->node.dynamicOp = true; pGrpCache->grpColsMayBeNull = false; pGrpCache->grpByUid = true; - pGrpCache->batchFetch = getBatchScanOptionFromHint(((SSelectStmt*)pCxt->pPlanCxt->pAstRoot)->pHint); + pGrpCache->batchFetch = getBatchScanOptionFromHint(pRoot->pHint); pGrpCache->node.pChildren = pChildren; pGrpCache->node.pTargets = nodesMakeList(); if (NULL == pGrpCache->node.pTargets) { @@ -3436,7 +3461,7 @@ static int32_t stbJoinOptCreateMergeJoinNode(SLogicNode* pOrig, SLogicNode* pChi return TSDB_CODE_SUCCESS; } -static int32_t stbJoinOptCreateDynQueryCtrlNode(SOptimizeContext* pCxt, SLogicNode* pPrev, SLogicNode* pPost, bool* srcScan, SLogicNode** ppDynNode) { +static int32_t stbJoinOptCreateDynQueryCtrlNode(SLogicNode* pRoot, SLogicNode* pPrev, SLogicNode* pPost, bool* srcScan, SLogicNode** ppDynNode) { int32_t code = TSDB_CODE_SUCCESS; SDynQueryCtrlLogicNode* pDynCtrl = (SDynQueryCtrlLogicNode*)nodesMakeNode(QUERY_NODE_LOGIC_PLAN_DYN_QUERY_CTRL); if (NULL == pDynCtrl) { @@ -3444,7 +3469,7 @@ static int32_t stbJoinOptCreateDynQueryCtrlNode(SOptimizeContext* pCxt, SLogicNo } pDynCtrl->qType = DYN_QTYPE_STB_HASH; - pDynCtrl->stbJoin.batchFetch = getBatchScanOptionFromHint(((SSelectStmt*)pCxt->pPlanCxt->pAstRoot)->pHint); + pDynCtrl->stbJoin.batchFetch = getBatchScanOptionFromHint(pRoot->pHint); memcpy(pDynCtrl->stbJoin.srcScan, srcScan, sizeof(pDynCtrl->stbJoin.srcScan)); if (TSDB_CODE_SUCCESS == code) { @@ -3510,13 +3535,13 @@ static int32_t stbJoinOptRewriteStableJoin(SOptimizeContext* pCxt, SLogicNode* p code = stbJoinOptCreateTableScanNodes(pJoin, &pTbScanNodes, srcScan); } if (TSDB_CODE_SUCCESS == code) { - code = stbJoinOptCreateGroupCacheNode(pCxt, pTbScanNodes, &pGrpCacheNode); + code = stbJoinOptCreateGroupCacheNode(getLogicNodeRootNode(pJoin), pTbScanNodes, &pGrpCacheNode); } if (TSDB_CODE_SUCCESS == code) { code = stbJoinOptCreateMergeJoinNode(pJoin, pGrpCacheNode, &pMJoinNode); } if (TSDB_CODE_SUCCESS == code) { - code = stbJoinOptCreateDynQueryCtrlNode(pCxt, pHJoinNode, pMJoinNode, srcScan, &pDynNode); + code = stbJoinOptCreateDynQueryCtrlNode(getLogicNodeRootNode(pJoin), pHJoinNode, pMJoinNode, srcScan, &pDynNode); } if (TSDB_CODE_SUCCESS == code) { code = replaceLogicNode(pLogicSubplan, pJoin, (SLogicNode*)pDynNode); @@ -3542,12 +3567,12 @@ static int32_t stableJoinOptimize(SOptimizeContext* pCxt, SLogicSubplan* pLogicS static const SOptimizeRule optimizeRuleSet[] = { {.pName = "ScanPath", .optimizeFunc = scanPathOptimize}, {.pName = "PushDownCondition", .optimizeFunc = pushDownCondOptimize}, + {.pName = "StableJoin", .optimizeFunc = stableJoinOptimize}, {.pName = "sortNonPriKeyOptimize", .optimizeFunc = sortNonPriKeyOptimize}, {.pName = "SortPrimaryKey", .optimizeFunc = sortPrimaryKeyOptimize}, {.pName = "SmaIndex", .optimizeFunc = smaIndexOptimize}, {.pName = "PushDownLimit", .optimizeFunc = pushDownLimitOptimize}, {.pName = "PartitionTags", .optimizeFunc = partTagsOptimize}, - {.pName = "StableJoin", .optimizeFunc = stableJoinOptimize}, {.pName = "MergeProjects", .optimizeFunc = mergeProjectsOptimize}, {.pName = "RewriteTail", .optimizeFunc = rewriteTailOptimize}, {.pName = "RewriteUnique", .optimizeFunc = rewriteUniqueOptimize}, diff --git a/source/libs/planner/src/planUtil.c b/source/libs/planner/src/planUtil.c index 128640df1f..445e01d254 100644 --- a/source/libs/planner/src/planUtil.c +++ b/source/libs/planner/src/planUtil.c @@ -108,6 +108,7 @@ int32_t createColumnByRewriteExpr(SNode* pExpr, SNodeList** pList) { } int32_t replaceLogicNode(SLogicSubplan* pSubplan, SLogicNode* pOld, SLogicNode* pNew) { + pNew->stmtRoot = pOld->stmtRoot; if (NULL == pOld->pParent) { pSubplan->pNode = (SLogicNode*)pNew; pNew->pParent = NULL; @@ -125,6 +126,19 @@ int32_t replaceLogicNode(SLogicSubplan* pSubplan, SLogicNode* pOld, SLogicNode* return TSDB_CODE_PLAN_INTERNAL_ERROR; } +SLogicNode* getLogicNodeRootNode(SLogicNode* pCurr) { + while (pCurr) { + if (pCurr->stmtRoot || NULL == pCurr->pParent) { + return pCurr; + } + + pCurr = pCurr->pParent; + } + + return NULL; +} + + static int32_t adjustScanDataRequirement(SScanLogicNode* pScan, EDataOrderLevel requirement) { if ((SCAN_TYPE_TABLE != pScan->scanType && SCAN_TYPE_TABLE_MERGE != pScan->scanType) || DATA_ORDER_LEVEL_GLOBAL == pScan->node.requireDataOrder) { @@ -391,4 +405,30 @@ bool getBatchScanOptionFromHint(SNodeList* pList) { return batchScan; } +int32_t collectTableAliasFromNodes(SNode* pNode, SSHashObj** ppRes) { + int32_t code = TSDB_CODE_SUCCESS; + SLogicNode* pCurr = (SLogicNode*)pNode; + FOREACH(pNode, pCurr->pTargets) { + SColumnNode* pCol = (SColumnNode*)pNode; + if (NULL == *ppRes) { + *ppRes = tSimpleHashInit(5, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BINARY)); + if (NULL == *ppRes) { + return TSDB_CODE_OUT_OF_MEMORY; + } + } + + tSimpleHashPut(*ppRes, pCol->tableAlias, strlen(pCol->tableAlias), NULL, 0); + } + + FOREACH(pNode, pCurr->pChildren) { + code = collectTableAliasFromNodes(pNode, ppRes); + if (TSDB_CODE_SUCCESS != code) { + return code; + } + } + + return TSDB_CODE_SUCCESS; +} + + diff --git a/tests/script/tsim/parser/join_multitables.sim b/tests/script/tsim/parser/join_multitables.sim index 6817d2325d..d2f8ea4a88 100644 --- a/tests/script/tsim/parser/join_multitables.sim +++ b/tests/script/tsim/parser/join_multitables.sim @@ -406,7 +406,7 @@ sql insert into tbb_5 values('2021-03-03 05:00:00.000', 99115,99115.0,'b5'); sql insert into tbb_5 values('2021-03-04 05:00:00.000', 99115,99115.0,'b5'); sql insert into tbb_5 values('2021-03-05 05:00:00.000', 99115,99115.0,'b5'); -sql select * from st0, st1 where st0.ts=st1.ts and st0.id1=st1.id1; +sql select * from st0, st1 where st0.ts=st1.ts and st0.id1=st1.id1 order by st0.ts; if $rows != 25 then return -1 endi @@ -442,7 +442,7 @@ if $data09 != @21-03-01 01:00:00.000@ then return -1 endi -sql select * from st0, st1 where st0.ts=st1.ts and st0.id2=st1.id2; +sql select * from st0, st1 where st0.ts=st1.ts and st0.id2=st1.id2 order by st0.ts; if $rows != 25 then return -1 endi @@ -478,7 +478,7 @@ if $data09 != @21-03-01 01:00:00.000@ then return -1 endi -sql select * from st0, st1 where st0.id3=st1.id3 and st1.ts=st0.ts; +sql select * from st0, st1 where st0.id3=st1.id3 and st1.ts=st0.ts order by st0.ts; if $rows != 25 then return -1 endi @@ -514,7 +514,7 @@ if $data09 != @21-03-01 01:00:00.000@ then return -1 endi -sql select * from st0, st1 where st1.id5=st0.id5 and st0.ts=st1.ts; +sql select * from st0, st1 where st1.id5=st0.id5 and st0.ts=st1.ts order by st0.ts; if $rows != 25 then return -1 endi @@ -550,7 +550,7 @@ if $data09 != @21-03-01 01:00:00.000@ then return -1 endi -sql select st0.* from st0, st1 where st0.ts=st1.ts and st0.id1=st1.id1; +sql select st0.* from st0, st1 where st0.ts=st1.ts and st0.id1=st1.id1 order by st0.ts; if $rows != 25 then return -1 endi @@ -583,7 +583,7 @@ if $data08 != 3 then return -1 endi -sql select st0.* from st0, st1 where st0.ts=st1.ts and st1.id2=st0.id2; +sql select st0.* from st0, st1 where st0.ts=st1.ts and st1.id2=st0.id2 order by st0.ts; if $rows != 25 then return -1 endi @@ -616,7 +616,7 @@ if $data08 != 3 then return -1 endi -sql select st0.* from st0, st1 where st0.id3=st1.id3 and st1.ts=st0.ts; +sql select st0.* from st0, st1 where st0.id3=st1.id3 and st1.ts=st0.ts order by st0.ts; if $rows != 25 then return -1 endi @@ -649,7 +649,7 @@ if $data08 != 3 then return -1 endi -sql select st1.* from st0, st1 where st1.id5=st0.id5 and st0.ts=st1.ts; +sql select st1.* from st0, st1 where st1.id5=st0.id5 and st0.ts=st1.ts order by st1.ts; if $rows != 25 then return -1 endi @@ -711,7 +711,7 @@ if $data31 != 9911 then return -1 endi -sql select st0.ts,st1.ts from st0, st1 where st0.ts=st1.ts and st1.id2=st0.id2; +sql select st0.ts,st1.ts from st0, st1 where st0.ts=st1.ts and st1.id2=st0.id2 order by st1.ts; if $rows != 25 then return -1 endi @@ -728,7 +728,7 @@ if $data51 != @21-03-02 01:00:00.000@ then return -1 endi -sql select st1.ts,st0.ts,st0.id3,st1.id3,st0.f3,st1.f3 from st0, st1 where st0.id3=st1.id3 and st1.ts=st0.ts; +sql select st1.ts,st0.ts,st0.id3,st1.id3,st0.f3,st1.f3 from st0, st1 where st0.id3=st1.id3 and st1.ts=st0.ts order by st1.ts; if $rows != 25 then return -1 endi @@ -751,7 +751,7 @@ if $data05 != 11 then return -1 endi -sql select st0.ts,st0.f2,st1.f3,st1.f2,st0.f3 from st0, st1 where st1.id5=st0.id5 and st0.ts=st1.ts; +sql select st0.ts,st0.f2,st1.f3,st1.f2,st0.f3 from st0, st1 where st1.id5=st0.id5 and st0.ts=st1.ts order by st1.ts; if $rows != 25 then return -1 endi @@ -850,7 +850,7 @@ if $data08 != 15 then return -1 endi -sql select st0.*,st1.* from st0, st1 where st1.id1=st0.id1 and st0.ts=st1.ts and st1.ts=st0.ts and st0.id1=st1.id1; +sql select st0.*,st1.* from st0, st1 where st1.id1=st0.id1 and st0.ts=st1.ts and st1.ts=st0.ts and st0.id1=st1.id1 order by st0.ts; if $rows != 25 then return -1 endi @@ -1085,7 +1085,7 @@ endi # return -1 #endi -sql select st0.*,st1.*,st2.*,st3.*,st4.*,st5.*,st6.*,st7.*,st8.*,st9.* from st0,st1,st2,st3,st4,st5,st6,st7,st8,st9 where st0.ts=st2.ts and st0.ts=st4.ts and st0.ts=st6.ts and st0.ts=st8.ts and st1.ts=st3.ts and st3.ts=st5.ts and st5.ts=st7.ts and st7.ts=st9.ts and st0.ts=st1.ts and st0.id1=st2.id1 and st0.id1=st4.id1 and st0.id1=st6.id1 and st0.id1=st8.id1 and st1.id1=st3.id1 and st3.id1=st5.id1 and st5.id1=st7.id1 and st7.id1=st9.id1 and st0.id1=st1.id1; +sql select st0.*,st1.*,st2.*,st3.*,st4.*,st5.*,st6.*,st7.*,st8.*,st9.* from st0,st1,st2,st3,st4,st5,st6,st7,st8,st9 where st0.ts=st2.ts and st0.ts=st4.ts and st0.ts=st6.ts and st0.ts=st8.ts and st1.ts=st3.ts and st3.ts=st5.ts and st5.ts=st7.ts and st7.ts=st9.ts and st0.ts=st1.ts and st0.id1=st2.id1 and st0.id1=st4.id1 and st0.id1=st6.id1 and st0.id1=st8.id1 and st1.id1=st3.id1 and st3.id1=st5.id1 and st5.id1=st7.id1 and st7.id1=st9.id1 and st0.id1=st1.id1 order by st1.ts; if $rows != 25 then return -1 endi