From 5c3c418c7f718256541e1c017a2658bb23a07947 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Sun, 10 Jul 2022 20:59:56 +0800 Subject: [PATCH 1/3] fix(query): set correct the fill column value for in case of no primary timestamp column exists. --- source/dnode/vnode/src/tsdb/tsdbRead.c | 5 +++++ source/libs/executor/inc/executorimpl.h | 1 + source/libs/executor/src/executorimpl.c | 26 +++++++++++++++---------- source/libs/executor/src/sortoperator.c | 4 ++-- source/libs/executor/src/tfill.c | 5 ++++- 5 files changed, 28 insertions(+), 13 deletions(-) diff --git a/source/dnode/vnode/src/tsdb/tsdbRead.c b/source/dnode/vnode/src/tsdb/tsdbRead.c index f650480ff2..52846d8e12 100644 --- a/source/dnode/vnode/src/tsdb/tsdbRead.c +++ b/source/dnode/vnode/src/tsdb/tsdbRead.c @@ -297,6 +297,11 @@ static bool filesetIteratorNext(SFilesetIter* pIter, STsdbReader* pReader) { if ((asc && (win.ekey < pReader->window.skey)) || ((!asc) && (win.skey > pReader->window.ekey))) { pIter->index += step; + + if ((asc && pIter->index >= pIter->numOfFiles) || ((!asc) && pIter->index < 0)) { + return false; + } + continue; } diff --git a/source/libs/executor/inc/executorimpl.h b/source/libs/executor/inc/executorimpl.h index 5f13c83eda..8511a88e1c 100644 --- a/source/libs/executor/inc/executorimpl.h +++ b/source/libs/executor/inc/executorimpl.h @@ -551,6 +551,7 @@ typedef struct SFillOperatorInfo { bool multigroupResult; STimeWindow win; SNode* pCondition; + SArray* pColMatchColInfo; } SFillOperatorInfo; typedef struct SGroupbyOperatorInfo { diff --git a/source/libs/executor/src/executorimpl.c b/source/libs/executor/src/executorimpl.c index e9b0141ecc..1e40dfbde3 100644 --- a/source/libs/executor/src/executorimpl.c +++ b/source/libs/executor/src/executorimpl.c @@ -4000,28 +4000,34 @@ SOperatorInfo* createFillOperatorInfo(SOperatorInfo* downstream, SFillPhysiNode* QUERY_NODE_PHYSICAL_PLAN_MERGE_ALIGNED_INTERVAL == downstream->operatorType ? &((SMergeAlignedIntervalAggOperatorInfo*)downstream->info)->intervalAggOperatorInfo->interval : &((SIntervalAggOperatorInfo*)downstream->info)->interval; + int32_t type = convertFillType(pPhyFillNode->mode); SResultInfo* pResultInfo = &pOperator->resultInfo; initResultSizeInfo(pOperator, 4096); + int32_t numOfOutputCols = 0; + SArray* pColMatchColInfo = + extractColMatchInfo(pPhyFillNode->pTargets, pPhyFillNode->node.pOutputDataBlockDesc, &numOfOutputCols, COL_MATCH_FROM_SLOT_ID); + int32_t code = initFillInfo(pInfo, pExprInfo, num, (SNodeListNode*)pPhyFillNode->pValues, pPhyFillNode->timeRange, pResultInfo->capacity, pTaskInfo->id.str, pInterval, type); if (code != TSDB_CODE_SUCCESS) { goto _error; } - pInfo->pRes = pResBlock; - pInfo->multigroupResult = multigroupResult; - pInfo->pCondition = pPhyFillNode->node.pConditions; - pOperator->name = "FillOperator"; - pOperator->blocking = false; - pOperator->status = OP_NOT_OPENED; - pOperator->operatorType = QUERY_NODE_PHYSICAL_PLAN_FILL; - pOperator->exprSupp.pExprInfo = pExprInfo; + pInfo->pRes = pResBlock; + pInfo->multigroupResult = multigroupResult; + pInfo->pCondition = pPhyFillNode->node.pConditions; + pInfo->pColMatchColInfo = pColMatchColInfo; + pOperator->name = "FillOperator"; + pOperator->blocking = false; + pOperator->status = OP_NOT_OPENED; + pOperator->operatorType = QUERY_NODE_PHYSICAL_PLAN_FILL; + pOperator->exprSupp.pExprInfo = pExprInfo; pOperator->exprSupp.numOfExprs = num; - pOperator->info = pInfo; - pOperator->pTaskInfo = pTaskInfo; + pOperator->info = pInfo; + pOperator->pTaskInfo = pTaskInfo; pOperator->fpSet = createOperatorFpSet(operatorDummyOpenFn, doFill, NULL, NULL, destroySFillOperatorInfo, NULL, NULL, NULL); diff --git a/source/libs/executor/src/sortoperator.c b/source/libs/executor/src/sortoperator.c index d106d3e749..8d9cac3614 100644 --- a/source/libs/executor/src/sortoperator.c +++ b/source/libs/executor/src/sortoperator.c @@ -217,6 +217,7 @@ SSDataBlock* doSort(SOperatorInfo* pOperator) { doSetOperatorCompleted(pOperator); break; } + if (blockDataGetNumOfRows(pBlock) > 0) { break; } @@ -601,8 +602,7 @@ SSDataBlock* getMultiwaySortedBlockData(SSortHandle* pHandle, SSDataBlock* pData break; } - if (pInfo->groupSort) - { + if (pInfo->groupSort) { uint64_t tupleGroupId = tsortGetGroupId(pTupleHandle); if (!pInfo->hasGroupId) { pInfo->groupId = tupleGroupId; diff --git a/source/libs/executor/src/tfill.c b/source/libs/executor/src/tfill.c index 1d82d6a644..b0e2166baf 100644 --- a/source/libs/executor/src/tfill.c +++ b/source/libs/executor/src/tfill.c @@ -50,8 +50,11 @@ static void setTagsValue(SFillInfo* pFillInfo, void** data, int32_t genRows) { static void setNullRow(SSDataBlock* pBlock, int32_t numOfCol, int32_t rowIndex) { // the first are always the timestamp column, so start from the second column. - for (int32_t i = 1; i < taosArrayGetSize(pBlock->pDataBlock); ++i) { + for (int32_t i = 0; i < taosArrayGetSize(pBlock->pDataBlock); ++i) { SColumnInfoData* p = taosArrayGet(pBlock->pDataBlock, i); + if (p->info.type == TSDB_DATA_TYPE_TIMESTAMP && i == 0) { + continue; + } colDataAppendNULL(p, rowIndex); } } From 5708d497ce204dc6b64b0a350eca99669fe8979c Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Mon, 11 Jul 2022 10:07:11 +0800 Subject: [PATCH 2/3] fix: syntax issue with '(select ... limit) statement' --- source/libs/function/src/functionMgt.c | 2 +- source/libs/parser/inc/sql.y | 6 +++++- source/libs/parser/src/parAstCreater.c | 9 +++++++++ source/libs/parser/src/parTranslater.c | 16 ++++------------ source/libs/parser/src/sql.c | 9 +++++---- source/libs/parser/test/parSelectTest.cpp | 16 ++++++++++++---- 6 files changed, 36 insertions(+), 22 deletions(-) diff --git a/source/libs/function/src/functionMgt.c b/source/libs/function/src/functionMgt.c index 1da9d4a70f..ed82654f77 100644 --- a/source/libs/function/src/functionMgt.c +++ b/source/libs/function/src/functionMgt.c @@ -139,7 +139,7 @@ bool fmIsAggFunc(int32_t funcId) { return isSpecificClassifyFunc(funcId, FUNC_MG bool fmIsScalarFunc(int32_t funcId) { return isSpecificClassifyFunc(funcId, FUNC_MGT_SCALAR_FUNC); } -bool fmIsVectorFunc(int32_t funcId) { return !fmIsScalarFunc(funcId) && !fmIsScanPseudoColumnFunc(funcId); } +bool fmIsVectorFunc(int32_t funcId) { return !fmIsScalarFunc(funcId) && !fmIsPseudoColumnFunc(funcId); } bool fmIsSelectFunc(int32_t funcId) { return isSpecificClassifyFunc(funcId, FUNC_MGT_SELECT_FUNC); } diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 4bcfcbf5c0..4758f3ae31 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -934,7 +934,11 @@ query_expression_body(A) ::= query_primary(A) ::= query_specification(B). { A = B; } query_primary(A) ::= NK_LP query_expression_body(B) - order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP. { A = B; } + order_by_clause_opt(C) slimit_clause_opt(D) limit_clause_opt(E) NK_RP. { + A = addOrderByClause(pCxt, B, C); + A = addSlimitClause(pCxt, A, D); + A = addLimitClause(pCxt, A, E); + } %type order_by_clause_opt { SNodeList* } %destructor order_by_clause_opt { nodesDestroyList($$); } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index ab73204fb7..5521d1c382 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -665,6 +665,9 @@ SNode* addHavingClause(SAstCreateContext* pCxt, SNode* pStmt, SNode* pHaving) { SNode* addOrderByClause(SAstCreateContext* pCxt, SNode* pStmt, SNodeList* pOrderByList) { CHECK_PARSER_STATUS(pCxt); + if (NULL == pOrderByList) { + return pStmt; + } if (QUERY_NODE_SELECT_STMT == nodeType(pStmt)) { ((SSelectStmt*)pStmt)->pOrderByList = pOrderByList; } else { @@ -675,6 +678,9 @@ SNode* addOrderByClause(SAstCreateContext* pCxt, SNode* pStmt, SNodeList* pOrder SNode* addSlimitClause(SAstCreateContext* pCxt, SNode* pStmt, SNode* pSlimit) { CHECK_PARSER_STATUS(pCxt); + if (NULL == pSlimit) { + return pStmt; + } if (QUERY_NODE_SELECT_STMT == nodeType(pStmt)) { ((SSelectStmt*)pStmt)->pSlimit = (SLimitNode*)pSlimit; } @@ -683,6 +689,9 @@ SNode* addSlimitClause(SAstCreateContext* pCxt, SNode* pStmt, SNode* pSlimit) { SNode* addLimitClause(SAstCreateContext* pCxt, SNode* pStmt, SNode* pLimit) { CHECK_PARSER_STATUS(pCxt); + if (NULL == pLimit) { + return pStmt; + } if (QUERY_NODE_SELECT_STMT == nodeType(pStmt)) { ((SSelectStmt*)pStmt)->pLimit = (SLimitNode*)pLimit; } else { diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 8e6798dcd2..e682f1abfd 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -1189,7 +1189,7 @@ static void setFuncClassification(SNode* pCurrStmt, SFunctionNode* pFunc) { if (fmIsSelectFunc(pFunc->funcId)) { pSelect->hasSelectFunc = true; ++(pSelect->selectFuncNum); - } else if (fmIsAggFunc(pFunc->funcId) || fmIsIndefiniteRowsFunc(pFunc->funcId)) { + } else if (fmIsVectorFunc(pFunc->funcId)) { pSelect->hasOtherVectorFunc = true; } pSelect->hasUniqueFunc = pSelect->hasUniqueFunc ? true : (FUNCTION_TYPE_UNIQUE == pFunc->funcType); @@ -1514,18 +1514,11 @@ static int32_t rewriteColsToSelectValFunc(STranslateContext* pCxt, SSelectStmt* typedef struct CheckAggColCoexistCxt { STranslateContext* pTranslateCxt; bool existCol; - int32_t selectFuncNum; - bool existOtherVectorFunc; } CheckAggColCoexistCxt; static EDealRes doCheckAggColCoexist(SNode** pNode, void* pContext) { CheckAggColCoexistCxt* pCxt = (CheckAggColCoexistCxt*)pContext; if (isVectorFunc(*pNode)) { - if (isSelectFunc(*pNode)) { - ++(pCxt->selectFuncNum); - } else { - pCxt->existOtherVectorFunc = true; - } return DEAL_RES_IGNORE_CHILD; } SNode* pPartKey = NULL; @@ -1542,16 +1535,15 @@ static EDealRes doCheckAggColCoexist(SNode** pNode, void* pContext) { static int32_t checkAggColCoexist(STranslateContext* pCxt, SSelectStmt* pSelect) { if (NULL != pSelect->pGroupByList || NULL != pSelect->pWindow || - (!pSelect->hasAggFuncs && !pSelect->hasIndefiniteRowsFunc)) { + (!pSelect->hasAggFuncs && !pSelect->hasIndefiniteRowsFunc && !pSelect->hasInterpFunc)) { return TSDB_CODE_SUCCESS; } - CheckAggColCoexistCxt cxt = { - .pTranslateCxt = pCxt, .existCol = false, .selectFuncNum = 0, .existOtherVectorFunc = false}; + CheckAggColCoexistCxt cxt = {.pTranslateCxt = pCxt, .existCol = false}; nodesRewriteExprs(pSelect->pProjectionList, doCheckAggColCoexist, &cxt); if (!pSelect->isDistinct) { nodesRewriteExprs(pSelect->pOrderByList, doCheckAggColCoexist, &cxt); } - if (1 == cxt.selectFuncNum && !cxt.existOtherVectorFunc) { + if (1 == pSelect->selectFuncNum && !pSelect->hasOtherVectorFunc) { return rewriteColsToSelectValFunc(pCxt, pSelect); } if (cxt.existCol) { diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index 029dae0311..ec67ad9efd 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -4658,10 +4658,11 @@ static YYACTIONTYPE yy_reduce( yymsp[-2].minor.yy652 = yylhsminor.yy652; break; case 465: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ -{ yymsp[-5].minor.yy652 = yymsp[-4].minor.yy652; } - yy_destructor(yypParser,369,&yymsp[-3].minor); - yy_destructor(yypParser,370,&yymsp[-2].minor); - yy_destructor(yypParser,371,&yymsp[-1].minor); +{ + yymsp[-5].minor.yy652 = addOrderByClause(pCxt, yymsp[-4].minor.yy652, yymsp[-3].minor.yy210); + yymsp[-5].minor.yy652 = addSlimitClause(pCxt, yymsp[-5].minor.yy652, yymsp[-2].minor.yy652); + yymsp[-5].minor.yy652 = addLimitClause(pCxt, yymsp[-5].minor.yy652, yymsp[-1].minor.yy652); + } break; case 469: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ case 473: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==473); diff --git a/source/libs/parser/test/parSelectTest.cpp b/source/libs/parser/test/parSelectTest.cpp index c6d74c5305..8ad9feb536 100644 --- a/source/libs/parser/test/parSelectTest.cpp +++ b/source/libs/parser/test/parSelectTest.cpp @@ -245,13 +245,21 @@ TEST_F(ParserSelectTest, orderBy) { TEST_F(ParserSelectTest, distinct) { useDb("root", "test"); - // run("SELECT distinct c1, c2 FROM t1 WHERE c1 > 0 order by c1"); + run("SELECT distinct c1, c2 FROM t1 WHERE c1 > 0 order by c1"); - // run("SELECT distinct c1 + 10, c2 FROM t1 WHERE c1 > 0 order by c1 + 10, c2"); + run("SELECT distinct c1 + 10, c2 FROM t1 WHERE c1 > 0 order by c1 + 10, c2"); - // run("SELECT distinct c1 + 10 cc1, c2 cc2 FROM t1 WHERE c1 > 0 order by cc1, c2"); + run("SELECT distinct c1 + 10 cc1, c2 cc2 FROM t1 WHERE c1 > 0 order by cc1, c2"); - // run("SELECT distinct COUNT(c2) FROM t1 WHERE c1 > 0 GROUP BY c1 order by COUNT(c2)"); + run("SELECT distinct COUNT(c2) FROM t1 WHERE c1 > 0 GROUP BY c1 order by COUNT(c2)"); +} + +TEST_F(ParserSelectTest, limit) { + useDb("root", "test"); + + run("SELECT c1, c2 FROM t1 LIMIT 10"); + + run("(SELECT c1, c2 FROM t1 LIMIT 10)"); } // INTERVAL(interval_val [, interval_offset]) [SLIDING (sliding_val)] [FILL(fill_mod_and_val)] From 0bc700eb82736021f2e4f7eaeec709e0352cc339 Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Mon, 11 Jul 2022 10:53:06 +0800 Subject: [PATCH 3/3] feat: sql command 'trim database' --- include/common/tmsg.h | 17 +- include/common/tmsgdef.h | 1 + include/common/ttokendef.h | 391 +- include/libs/nodes/cmdnodes.h | 5 + include/libs/nodes/nodes.h | 1 + source/common/src/tmsg.c | 25 + source/libs/nodes/src/nodesUtilFuncs.c | 3 + source/libs/parser/inc/parAst.h | 1 + source/libs/parser/inc/sql.y | 1 + source/libs/parser/src/parAstCreater.c | 13 +- source/libs/parser/src/parTokenizer.c | 1 + source/libs/parser/src/parTranslater.c | 11 + source/libs/parser/src/sql.c | 5963 +++++++++++----------- source/libs/parser/test/parShowToUse.cpp | 19 + 14 files changed, 3281 insertions(+), 3171 deletions(-) diff --git a/include/common/tmsg.h b/include/common/tmsg.h index 03b456b212..e09de1e23e 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -55,11 +55,11 @@ extern int32_t tMsgDict[]; #define TMSG_SEG_CODE(TYPE) (((TYPE)&0xff00) >> 8) #define TMSG_SEG_SEQ(TYPE) ((TYPE)&0xff) -#define TMSG_INFO(TYPE) \ - ((TYPE) >= 0 && \ - ((TYPE) < TDMT_DND_MAX_MSG || (TYPE) < TDMT_MND_MAX_MSG || (TYPE) < TDMT_VND_MAX_MSG || (TYPE) < TDMT_SCH_MAX_MSG || \ - (TYPE) < TDMT_STREAM_MAX_MSG || (TYPE) < TDMT_MON_MAX_MSG || (TYPE) < TDMT_SYNC_MAX_MSG)) \ - ? tMsgInfo[tMsgDict[TMSG_SEG_CODE(TYPE)] + TMSG_SEG_SEQ(TYPE)] \ +#define TMSG_INFO(TYPE) \ + ((TYPE) >= 0 && ((TYPE) < TDMT_DND_MAX_MSG || (TYPE) < TDMT_MND_MAX_MSG || (TYPE) < TDMT_VND_MAX_MSG || \ + (TYPE) < TDMT_SCH_MAX_MSG || (TYPE) < TDMT_STREAM_MAX_MSG || (TYPE) < TDMT_MON_MAX_MSG || \ + (TYPE) < TDMT_SYNC_MAX_MSG)) \ + ? tMsgInfo[tMsgDict[TMSG_SEG_CODE(TYPE)] + TMSG_SEG_SEQ(TYPE)] \ : 0 #define TMSG_INDEX(TYPE) (tMsgDict[TMSG_SEG_CODE(TYPE)] + TMSG_SEG_SEQ(TYPE)) @@ -815,6 +815,13 @@ typedef struct { int32_t tSerializeSDbCfgReq(void* buf, int32_t bufLen, SDbCfgReq* pReq); int32_t tDeserializeSDbCfgReq(void* buf, int32_t bufLen, SDbCfgReq* pReq); +typedef struct { + char db[TSDB_DB_FNAME_LEN]; +} STrimDbReq; + +int32_t tSerializeSTrimDbReq(void* buf, int32_t bufLen, STrimDbReq* pReq); +int32_t tDeserializeSTrimDbReq(void* buf, int32_t bufLen, STrimDbReq* pReq); + typedef struct { int32_t numOfVgroups; int32_t numOfStables; diff --git a/include/common/tmsgdef.h b/include/common/tmsgdef.h index 8b39530e84..1dbfbfb2b9 100644 --- a/include/common/tmsgdef.h +++ b/include/common/tmsgdef.h @@ -116,6 +116,7 @@ enum { TD_DEF_MSG_TYPE(TDMT_MND_ALTER_DB, "alter-db", NULL, NULL) TD_DEF_MSG_TYPE(TDMT_MND_SYNC_DB, "sync-db", NULL, NULL) TD_DEF_MSG_TYPE(TDMT_MND_COMPACT_DB, "compact-db", NULL, NULL) + TD_DEF_MSG_TYPE(TDMT_MND_TRIM_DB, "trim-db", NULL, NULL) TD_DEF_MSG_TYPE(TDMT_MND_GET_DB_CFG, "get-db-cfg", NULL, NULL) TD_DEF_MSG_TYPE(TDMT_MND_VGROUP_LIST, "vgroup-list", NULL, NULL) TD_DEF_MSG_TYPE(TDMT_MND_CREATE_FUNC, "create-func", NULL, NULL) diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 5deec2d5f6..29dd4daa25 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -74,201 +74,202 @@ #define TK_DATABASE 56 #define TK_USE 57 #define TK_FLUSH 58 -#define TK_IF 59 -#define TK_NOT 60 -#define TK_EXISTS 61 -#define TK_BUFFER 62 -#define TK_CACHELAST 63 -#define TK_CACHELASTSIZE 64 -#define TK_COMP 65 -#define TK_DURATION 66 -#define TK_NK_VARIABLE 67 -#define TK_FSYNC 68 -#define TK_MAXROWS 69 -#define TK_MINROWS 70 -#define TK_KEEP 71 -#define TK_PAGES 72 -#define TK_PAGESIZE 73 -#define TK_PRECISION 74 -#define TK_REPLICA 75 -#define TK_STRICT 76 -#define TK_WAL 77 -#define TK_VGROUPS 78 -#define TK_SINGLE_STABLE 79 -#define TK_RETENTIONS 80 -#define TK_SCHEMALESS 81 -#define TK_NK_COLON 82 -#define TK_TABLE 83 -#define TK_NK_LP 84 -#define TK_NK_RP 85 -#define TK_STABLE 86 -#define TK_ADD 87 -#define TK_COLUMN 88 -#define TK_MODIFY 89 -#define TK_RENAME 90 -#define TK_TAG 91 -#define TK_SET 92 -#define TK_NK_EQ 93 -#define TK_USING 94 -#define TK_TAGS 95 -#define TK_COMMENT 96 -#define TK_BOOL 97 -#define TK_TINYINT 98 -#define TK_SMALLINT 99 -#define TK_INT 100 -#define TK_INTEGER 101 -#define TK_BIGINT 102 -#define TK_FLOAT 103 -#define TK_DOUBLE 104 -#define TK_BINARY 105 -#define TK_TIMESTAMP 106 -#define TK_NCHAR 107 -#define TK_UNSIGNED 108 -#define TK_JSON 109 -#define TK_VARCHAR 110 -#define TK_MEDIUMBLOB 111 -#define TK_BLOB 112 -#define TK_VARBINARY 113 -#define TK_DECIMAL 114 -#define TK_MAX_DELAY 115 -#define TK_WATERMARK 116 -#define TK_ROLLUP 117 -#define TK_TTL 118 -#define TK_SMA 119 -#define TK_FIRST 120 -#define TK_LAST 121 -#define TK_SHOW 122 -#define TK_DATABASES 123 -#define TK_TABLES 124 -#define TK_STABLES 125 -#define TK_MNODES 126 -#define TK_MODULES 127 -#define TK_QNODES 128 -#define TK_FUNCTIONS 129 -#define TK_INDEXES 130 -#define TK_ACCOUNTS 131 -#define TK_APPS 132 -#define TK_CONNECTIONS 133 -#define TK_LICENCE 134 -#define TK_GRANTS 135 -#define TK_QUERIES 136 -#define TK_SCORES 137 -#define TK_TOPICS 138 -#define TK_VARIABLES 139 -#define TK_BNODES 140 -#define TK_SNODES 141 -#define TK_CLUSTER 142 -#define TK_TRANSACTIONS 143 -#define TK_DISTRIBUTED 144 -#define TK_CONSUMERS 145 -#define TK_SUBSCRIPTIONS 146 -#define TK_LIKE 147 -#define TK_INDEX 148 -#define TK_FUNCTION 149 -#define TK_INTERVAL 150 -#define TK_TOPIC 151 -#define TK_AS 152 -#define TK_WITH 153 -#define TK_META 154 -#define TK_CONSUMER 155 -#define TK_GROUP 156 -#define TK_DESC 157 -#define TK_DESCRIBE 158 -#define TK_RESET 159 -#define TK_QUERY 160 -#define TK_CACHE 161 -#define TK_EXPLAIN 162 -#define TK_ANALYZE 163 -#define TK_VERBOSE 164 -#define TK_NK_BOOL 165 -#define TK_RATIO 166 -#define TK_NK_FLOAT 167 -#define TK_COMPACT 168 -#define TK_VNODES 169 -#define TK_IN 170 -#define TK_OUTPUTTYPE 171 -#define TK_AGGREGATE 172 -#define TK_BUFSIZE 173 -#define TK_STREAM 174 -#define TK_INTO 175 -#define TK_TRIGGER 176 -#define TK_AT_ONCE 177 -#define TK_WINDOW_CLOSE 178 -#define TK_IGNORE 179 -#define TK_EXPIRED 180 -#define TK_KILL 181 -#define TK_CONNECTION 182 -#define TK_TRANSACTION 183 -#define TK_BALANCE 184 -#define TK_VGROUP 185 -#define TK_MERGE 186 -#define TK_REDISTRIBUTE 187 -#define TK_SPLIT 188 -#define TK_SYNCDB 189 -#define TK_DELETE 190 -#define TK_INSERT 191 -#define TK_NULL 192 -#define TK_NK_QUESTION 193 -#define TK_NK_ARROW 194 -#define TK_ROWTS 195 -#define TK_TBNAME 196 -#define TK_QSTARTTS 197 -#define TK_QENDTS 198 -#define TK_WSTARTTS 199 -#define TK_WENDTS 200 -#define TK_WDURATION 201 -#define TK_CAST 202 -#define TK_NOW 203 -#define TK_TODAY 204 -#define TK_TIMEZONE 205 -#define TK_CLIENT_VERSION 206 -#define TK_SERVER_VERSION 207 -#define TK_SERVER_STATUS 208 -#define TK_CURRENT_USER 209 -#define TK_COUNT 210 -#define TK_LAST_ROW 211 -#define TK_BETWEEN 212 -#define TK_IS 213 -#define TK_NK_LT 214 -#define TK_NK_GT 215 -#define TK_NK_LE 216 -#define TK_NK_GE 217 -#define TK_NK_NE 218 -#define TK_MATCH 219 -#define TK_NMATCH 220 -#define TK_CONTAINS 221 -#define TK_JOIN 222 -#define TK_INNER 223 -#define TK_SELECT 224 -#define TK_DISTINCT 225 -#define TK_WHERE 226 -#define TK_PARTITION 227 -#define TK_BY 228 -#define TK_SESSION 229 -#define TK_STATE_WINDOW 230 -#define TK_SLIDING 231 -#define TK_FILL 232 -#define TK_VALUE 233 -#define TK_NONE 234 -#define TK_PREV 235 -#define TK_LINEAR 236 -#define TK_NEXT 237 -#define TK_HAVING 238 -#define TK_RANGE 239 -#define TK_EVERY 240 -#define TK_ORDER 241 -#define TK_SLIMIT 242 -#define TK_SOFFSET 243 -#define TK_LIMIT 244 -#define TK_OFFSET 245 -#define TK_ASC 246 -#define TK_NULLS 247 -#define TK_ID 248 -#define TK_NK_BITNOT 249 -#define TK_VALUES 250 -#define TK_IMPORT 251 -#define TK_NK_SEMI 252 -#define TK_FILE 253 +#define TK_TRIM 59 +#define TK_IF 60 +#define TK_NOT 61 +#define TK_EXISTS 62 +#define TK_BUFFER 63 +#define TK_CACHELAST 64 +#define TK_CACHELASTSIZE 65 +#define TK_COMP 66 +#define TK_DURATION 67 +#define TK_NK_VARIABLE 68 +#define TK_FSYNC 69 +#define TK_MAXROWS 70 +#define TK_MINROWS 71 +#define TK_KEEP 72 +#define TK_PAGES 73 +#define TK_PAGESIZE 74 +#define TK_PRECISION 75 +#define TK_REPLICA 76 +#define TK_STRICT 77 +#define TK_WAL 78 +#define TK_VGROUPS 79 +#define TK_SINGLE_STABLE 80 +#define TK_RETENTIONS 81 +#define TK_SCHEMALESS 82 +#define TK_NK_COLON 83 +#define TK_TABLE 84 +#define TK_NK_LP 85 +#define TK_NK_RP 86 +#define TK_STABLE 87 +#define TK_ADD 88 +#define TK_COLUMN 89 +#define TK_MODIFY 90 +#define TK_RENAME 91 +#define TK_TAG 92 +#define TK_SET 93 +#define TK_NK_EQ 94 +#define TK_USING 95 +#define TK_TAGS 96 +#define TK_COMMENT 97 +#define TK_BOOL 98 +#define TK_TINYINT 99 +#define TK_SMALLINT 100 +#define TK_INT 101 +#define TK_INTEGER 102 +#define TK_BIGINT 103 +#define TK_FLOAT 104 +#define TK_DOUBLE 105 +#define TK_BINARY 106 +#define TK_TIMESTAMP 107 +#define TK_NCHAR 108 +#define TK_UNSIGNED 109 +#define TK_JSON 110 +#define TK_VARCHAR 111 +#define TK_MEDIUMBLOB 112 +#define TK_BLOB 113 +#define TK_VARBINARY 114 +#define TK_DECIMAL 115 +#define TK_MAX_DELAY 116 +#define TK_WATERMARK 117 +#define TK_ROLLUP 118 +#define TK_TTL 119 +#define TK_SMA 120 +#define TK_FIRST 121 +#define TK_LAST 122 +#define TK_SHOW 123 +#define TK_DATABASES 124 +#define TK_TABLES 125 +#define TK_STABLES 126 +#define TK_MNODES 127 +#define TK_MODULES 128 +#define TK_QNODES 129 +#define TK_FUNCTIONS 130 +#define TK_INDEXES 131 +#define TK_ACCOUNTS 132 +#define TK_APPS 133 +#define TK_CONNECTIONS 134 +#define TK_LICENCE 135 +#define TK_GRANTS 136 +#define TK_QUERIES 137 +#define TK_SCORES 138 +#define TK_TOPICS 139 +#define TK_VARIABLES 140 +#define TK_BNODES 141 +#define TK_SNODES 142 +#define TK_CLUSTER 143 +#define TK_TRANSACTIONS 144 +#define TK_DISTRIBUTED 145 +#define TK_CONSUMERS 146 +#define TK_SUBSCRIPTIONS 147 +#define TK_LIKE 148 +#define TK_INDEX 149 +#define TK_FUNCTION 150 +#define TK_INTERVAL 151 +#define TK_TOPIC 152 +#define TK_AS 153 +#define TK_WITH 154 +#define TK_META 155 +#define TK_CONSUMER 156 +#define TK_GROUP 157 +#define TK_DESC 158 +#define TK_DESCRIBE 159 +#define TK_RESET 160 +#define TK_QUERY 161 +#define TK_CACHE 162 +#define TK_EXPLAIN 163 +#define TK_ANALYZE 164 +#define TK_VERBOSE 165 +#define TK_NK_BOOL 166 +#define TK_RATIO 167 +#define TK_NK_FLOAT 168 +#define TK_COMPACT 169 +#define TK_VNODES 170 +#define TK_IN 171 +#define TK_OUTPUTTYPE 172 +#define TK_AGGREGATE 173 +#define TK_BUFSIZE 174 +#define TK_STREAM 175 +#define TK_INTO 176 +#define TK_TRIGGER 177 +#define TK_AT_ONCE 178 +#define TK_WINDOW_CLOSE 179 +#define TK_IGNORE 180 +#define TK_EXPIRED 181 +#define TK_KILL 182 +#define TK_CONNECTION 183 +#define TK_TRANSACTION 184 +#define TK_BALANCE 185 +#define TK_VGROUP 186 +#define TK_MERGE 187 +#define TK_REDISTRIBUTE 188 +#define TK_SPLIT 189 +#define TK_SYNCDB 190 +#define TK_DELETE 191 +#define TK_INSERT 192 +#define TK_NULL 193 +#define TK_NK_QUESTION 194 +#define TK_NK_ARROW 195 +#define TK_ROWTS 196 +#define TK_TBNAME 197 +#define TK_QSTARTTS 198 +#define TK_QENDTS 199 +#define TK_WSTARTTS 200 +#define TK_WENDTS 201 +#define TK_WDURATION 202 +#define TK_CAST 203 +#define TK_NOW 204 +#define TK_TODAY 205 +#define TK_TIMEZONE 206 +#define TK_CLIENT_VERSION 207 +#define TK_SERVER_VERSION 208 +#define TK_SERVER_STATUS 209 +#define TK_CURRENT_USER 210 +#define TK_COUNT 211 +#define TK_LAST_ROW 212 +#define TK_BETWEEN 213 +#define TK_IS 214 +#define TK_NK_LT 215 +#define TK_NK_GT 216 +#define TK_NK_LE 217 +#define TK_NK_GE 218 +#define TK_NK_NE 219 +#define TK_MATCH 220 +#define TK_NMATCH 221 +#define TK_CONTAINS 222 +#define TK_JOIN 223 +#define TK_INNER 224 +#define TK_SELECT 225 +#define TK_DISTINCT 226 +#define TK_WHERE 227 +#define TK_PARTITION 228 +#define TK_BY 229 +#define TK_SESSION 230 +#define TK_STATE_WINDOW 231 +#define TK_SLIDING 232 +#define TK_FILL 233 +#define TK_VALUE 234 +#define TK_NONE 235 +#define TK_PREV 236 +#define TK_LINEAR 237 +#define TK_NEXT 238 +#define TK_HAVING 239 +#define TK_RANGE 240 +#define TK_EVERY 241 +#define TK_ORDER 242 +#define TK_SLIMIT 243 +#define TK_SOFFSET 244 +#define TK_LIMIT 245 +#define TK_OFFSET 246 +#define TK_ASC 247 +#define TK_NULLS 248 +#define TK_ID 249 +#define TK_NK_BITNOT 250 +#define TK_VALUES 251 +#define TK_IMPORT 252 +#define TK_NK_SEMI 253 +#define TK_FILE 254 #define TK_NK_SPACE 300 #define TK_NK_COMMENT 301 diff --git a/include/libs/nodes/cmdnodes.h b/include/libs/nodes/cmdnodes.h index 2187a7b03a..5311915612 100644 --- a/include/libs/nodes/cmdnodes.h +++ b/include/libs/nodes/cmdnodes.h @@ -103,6 +103,11 @@ typedef struct SFlushDatabaseStmt { char dbName[TSDB_DB_NAME_LEN]; } SFlushDatabaseStmt; +typedef struct STrimDatabaseStmt { + ENodeType type; + char dbName[TSDB_DB_NAME_LEN]; +} STrimDatabaseStmt; + typedef struct STableOptions { ENodeType type; bool commentNull; diff --git a/include/libs/nodes/nodes.h b/include/libs/nodes/nodes.h index 30bcf22989..c453ce98f8 100644 --- a/include/libs/nodes/nodes.h +++ b/include/libs/nodes/nodes.h @@ -112,6 +112,7 @@ typedef enum ENodeType { QUERY_NODE_DROP_DATABASE_STMT, QUERY_NODE_ALTER_DATABASE_STMT, QUERY_NODE_FLUSH_DATABASE_STMT, + QUERY_NODE_TRIM_DATABASE_STMT, QUERY_NODE_CREATE_TABLE_STMT, QUERY_NODE_CREATE_SUBTABLE_CLAUSE, QUERY_NODE_CREATE_MULTI_TABLE_STMT, diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index c80960b8ce..9d8f49bdd5 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -2647,6 +2647,31 @@ int32_t tDeserializeSDbCfgReq(void *buf, int32_t bufLen, SDbCfgReq *pReq) { return 0; } +int32_t tSerializeSTrimDbReq(void *buf, int32_t bufLen, STrimDbReq *pReq) { + SEncoder encoder = {0}; + tEncoderInit(&encoder, buf, bufLen); + + if (tStartEncode(&encoder) < 0) return -1; + if (tEncodeCStr(&encoder, pReq->db) < 0) return -1; + tEndEncode(&encoder); + + int32_t tlen = encoder.pos; + tEncoderClear(&encoder); + return tlen; +} + +int32_t tDeserializeSTrimDbReq(void *buf, int32_t bufLen, STrimDbReq *pReq) { + SDecoder decoder = {0}; + tDecoderInit(&decoder, buf, bufLen); + + if (tStartDecode(&decoder) < 0) return -1; + if (tDecodeCStrTo(&decoder, pReq->db) < 0) return -1; + tEndDecode(&decoder); + + tDecoderClear(&decoder); + return 0; +} + int32_t tSerializeSDbCfgRsp(void *buf, int32_t bufLen, const SDbCfgRsp *pRsp) { SEncoder encoder = {0}; tEncoderInit(&encoder, buf, bufLen); diff --git a/source/libs/nodes/src/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c index e15375e6ef..cc442d1103 100644 --- a/source/libs/nodes/src/nodesUtilFuncs.c +++ b/source/libs/nodes/src/nodesUtilFuncs.c @@ -105,6 +105,8 @@ SNode* nodesMakeNode(ENodeType type) { return makeNode(type, sizeof(SAlterDatabaseStmt)); case QUERY_NODE_FLUSH_DATABASE_STMT: return makeNode(type, sizeof(SFlushDatabaseStmt)); + case QUERY_NODE_TRIM_DATABASE_STMT: + return makeNode(type, sizeof(STrimDatabaseStmt)); case QUERY_NODE_CREATE_TABLE_STMT: return makeNode(type, sizeof(SCreateTableStmt)); case QUERY_NODE_CREATE_SUBTABLE_CLAUSE: @@ -548,6 +550,7 @@ void nodesDestroyNode(SNode* pNode) { nodesDestroyNode((SNode*)((SAlterDatabaseStmt*)pNode)->pOptions); break; case QUERY_NODE_FLUSH_DATABASE_STMT: // no pointer field + case QUERY_NODE_TRIM_DATABASE_STMT: // no pointer field break; case QUERY_NODE_CREATE_TABLE_STMT: { SCreateTableStmt* pStmt = (SCreateTableStmt*)pNode; diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index ee60a14da9..59fc69f768 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -137,6 +137,7 @@ SNode* createCreateDatabaseStmt(SAstCreateContext* pCxt, bool ignoreExists, STok SNode* createDropDatabaseStmt(SAstCreateContext* pCxt, bool ignoreNotExists, SToken* pDbName); SNode* createAlterDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName, SNode* pOptions); SNode* createFlushDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName); +SNode* createTrimDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName); SNode* createDefaultTableOptions(SAstCreateContext* pCxt); SNode* createAlterTableOptions(SAstCreateContext* pCxt); SNode* setTableOption(SAstCreateContext* pCxt, SNode* pOptions, ETableOptionType type, void* pVal); diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 4758f3ae31..cd0b5c1d6c 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -158,6 +158,7 @@ cmd ::= DROP DATABASE exists_opt(A) db_name(B). cmd ::= USE db_name(A). { pCxt->pRootNode = createUseDatabaseStmt(pCxt, &A); } cmd ::= ALTER DATABASE db_name(A) alter_db_options(B). { pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &A, B); } cmd ::= FLUSH DATABASE db_name(A). { pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &A); } +cmd ::= TRIM DATABASE db_name(A). { pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &A); } %type not_exists_opt { bool } %destructor not_exists_opt { } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 5521d1c382..c451e52540 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -931,7 +931,18 @@ SNode* createFlushDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName) { if (!checkDbName(pCxt, pDbName, false)) { return NULL; } - SAlterDatabaseStmt* pStmt = (SAlterDatabaseStmt*)nodesMakeNode(QUERY_NODE_FLUSH_DATABASE_STMT); + SFlushDatabaseStmt* pStmt = (SFlushDatabaseStmt*)nodesMakeNode(QUERY_NODE_FLUSH_DATABASE_STMT); + CHECK_OUT_OF_MEM(pStmt); + COPY_STRING_FORM_ID_TOKEN(pStmt->dbName, pDbName); + return (SNode*)pStmt; +} + +SNode* createTrimDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName) { + CHECK_PARSER_STATUS(pCxt); + if (!checkDbName(pCxt, pDbName, false)) { + return NULL; + } + STrimDatabaseStmt* pStmt = (STrimDatabaseStmt*)nodesMakeNode(QUERY_NODE_TRIM_DATABASE_STMT); CHECK_OUT_OF_MEM(pStmt); COPY_STRING_FORM_ID_TOKEN(pStmt->dbName, pDbName); return (SNode*)pStmt; diff --git a/source/libs/parser/src/parTokenizer.c b/source/libs/parser/src/parTokenizer.c index 920921a3b3..58f6354402 100644 --- a/source/libs/parser/src/parTokenizer.c +++ b/source/libs/parser/src/parTokenizer.c @@ -216,6 +216,7 @@ static SKeyword keywordTable[] = { {"TRANSACTION", TK_TRANSACTION}, {"TRANSACTIONS", TK_TRANSACTIONS}, {"TRIGGER", TK_TRIGGER}, + {"TRIM", TK_TRIM}, {"TSERIES", TK_TSERIES}, {"TTL", TK_TTL}, {"UNION", TK_UNION}, diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index e682f1abfd..f92713565b 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -3144,6 +3144,14 @@ static int32_t translateAlterDatabase(STranslateContext* pCxt, SAlterDatabaseStm return buildCmdMsg(pCxt, TDMT_MND_ALTER_DB, (FSerializeFunc)tSerializeSAlterDbReq, &alterReq); } +static int32_t translateTrimDatabase(STranslateContext* pCxt, STrimDatabaseStmt* pStmt) { + STrimDbReq req = {0}; + SName name = {0}; + tNameSetDbName(&name, pCxt->pParseCxt->acctId, pStmt->dbName, strlen(pStmt->dbName)); + tNameGetFullDbName(&name, req.db); + return buildCmdMsg(pCxt, TDMT_MND_TRIM_DB, (FSerializeFunc)tSerializeSTrimDbReq, &req); +} + static int32_t columnDefNodeToField(SNodeList* pList, SArray** pArray) { *pArray = taosArrayInit(LIST_LENGTH(pList), sizeof(SField)); SNode* pNode; @@ -4576,6 +4584,9 @@ static int32_t translateQuery(STranslateContext* pCxt, SNode* pNode) { case QUERY_NODE_ALTER_DATABASE_STMT: code = translateAlterDatabase(pCxt, (SAlterDatabaseStmt*)pNode); break; + case QUERY_NODE_TRIM_DATABASE_STMT: + code = translateTrimDatabase(pCxt, (STrimDatabaseStmt*)pNode); + break; case QUERY_NODE_CREATE_TABLE_STMT: code = translateCreateSuperTable(pCxt, (SCreateTableStmt*)pNode); break; diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index ec67ad9efd..cb09860758 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -104,26 +104,26 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 377 +#define YYNOCODE 378 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - SToken yy5; - EJoinType yy74; - SNodeList* yy210; - EFillMode yy270; - int64_t yy311; - SAlterOption yy351; - bool yy403; - EOperatorType yy428; - int32_t yy462; - ENullOrder yy477; - int8_t yy535; - SDataType yy552; - EOrder yy553; - SNode* yy652; + EFillMode yy18; + EJoinType yy36; + ENullOrder yy109; + EOperatorType yy128; + bool yy173; + SDataType yy196; + EOrder yy218; + SAlterOption yy389; + int32_t yy424; + SToken yy533; + SNode* yy560; + int64_t yy585; + SNodeList* yy712; + int8_t yy719; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -139,17 +139,17 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 663 -#define YYNRULE 487 -#define YYNTOKEN 254 -#define YY_MAX_SHIFT 662 -#define YY_MIN_SHIFTREDUCE 966 -#define YY_MAX_SHIFTREDUCE 1452 -#define YY_ERROR_ACTION 1453 -#define YY_ACCEPT_ACTION 1454 -#define YY_NO_ACTION 1455 -#define YY_MIN_REDUCE 1456 -#define YY_MAX_REDUCE 1942 +#define YYNSTATE 666 +#define YYNRULE 488 +#define YYNTOKEN 255 +#define YY_MAX_SHIFT 665 +#define YY_MIN_SHIFTREDUCE 969 +#define YY_MAX_SHIFTREDUCE 1456 +#define YY_ERROR_ACTION 1457 +#define YY_ACCEPT_ACTION 1458 +#define YY_NO_ACTION 1459 +#define YY_MIN_REDUCE 1460 +#define YY_MAX_REDUCE 1947 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -216,672 +216,688 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (2436) +#define YY_ACTTAB_COUNT (2520) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 430, 1920, 431, 1491, 438, 71, 431, 1491, 514, 62, - /* 10 */ 1645, 1693, 39, 37, 1919, 549, 323, 325, 1917, 1690, - /* 20 */ 337, 86, 1254, 1457, 33, 32, 1643, 1589, 40, 38, - /* 30 */ 36, 35, 34, 1329, 119, 1252, 1777, 40, 38, 36, - /* 40 */ 35, 34, 1585, 122, 103, 1734, 549, 102, 101, 100, - /* 50 */ 99, 98, 97, 96, 95, 94, 1324, 526, 549, 22, - /* 60 */ 14, 1016, 342, 1015, 1795, 1638, 1640, 1260, 113, 142, - /* 70 */ 1795, 1468, 578, 79, 122, 468, 466, 1747, 542, 577, - /* 80 */ 39, 37, 1392, 120, 1, 1593, 122, 61, 337, 61, - /* 90 */ 1254, 1017, 358, 554, 1586, 554, 379, 551, 155, 1862, - /* 100 */ 1863, 1329, 1867, 1252, 1808, 1479, 659, 1521, 89, 1778, - /* 110 */ 580, 1780, 1781, 576, 120, 571, 541, 552, 1854, 552, - /* 120 */ 1331, 1332, 304, 1850, 1324, 1478, 120, 526, 14, 249, - /* 130 */ 1862, 548, 1456, 547, 1920, 1260, 1920, 1920, 164, 30, - /* 140 */ 259, 156, 1862, 1863, 1777, 1867, 1747, 161, 447, 161, - /* 150 */ 159, 1917, 2, 1917, 1917, 1593, 112, 111, 110, 109, - /* 160 */ 108, 107, 106, 105, 104, 1255, 1747, 1253, 1279, 483, - /* 170 */ 482, 481, 1795, 1920, 659, 480, 220, 221, 118, 477, - /* 180 */ 578, 43, 476, 475, 474, 1747, 160, 577, 1331, 1332, - /* 190 */ 1917, 429, 1258, 1259, 433, 1307, 1308, 1310, 1311, 1312, - /* 200 */ 1313, 1314, 573, 569, 1322, 1323, 1325, 1326, 1327, 1328, - /* 210 */ 1330, 1333, 1808, 1413, 1278, 538, 90, 1778, 580, 1780, - /* 220 */ 1781, 576, 1279, 571, 162, 1454, 1854, 162, 552, 162, - /* 230 */ 328, 1850, 1933, 1255, 314, 1253, 61, 303, 140, 143, - /* 240 */ 516, 1888, 999, 1549, 33, 32, 1645, 1596, 40, 38, - /* 250 */ 36, 35, 34, 341, 535, 1411, 1412, 1414, 1415, 1477, - /* 260 */ 1258, 1259, 1643, 1307, 1308, 1310, 1311, 1312, 1313, 1314, - /* 270 */ 573, 569, 1322, 1323, 1325, 1326, 1327, 1328, 1330, 1333, - /* 280 */ 39, 37, 1003, 1004, 315, 349, 313, 312, 337, 470, - /* 290 */ 1254, 1777, 42, 472, 544, 539, 305, 1353, 11, 10, - /* 300 */ 1747, 1329, 103, 1252, 153, 102, 101, 100, 99, 98, - /* 310 */ 97, 96, 95, 94, 385, 471, 378, 1632, 377, 1795, - /* 320 */ 1358, 1292, 1151, 1152, 1324, 1278, 1920, 553, 14, 1351, - /* 330 */ 1639, 1640, 1747, 437, 577, 1260, 433, 39, 37, 159, - /* 340 */ 483, 482, 481, 1917, 1920, 337, 480, 1254, 1518, 118, - /* 350 */ 477, 301, 2, 476, 475, 474, 605, 1918, 1329, 1808, - /* 360 */ 1252, 1917, 27, 90, 1778, 580, 1780, 1781, 576, 435, - /* 370 */ 571, 71, 370, 1854, 659, 1276, 162, 328, 1850, 154, - /* 380 */ 1396, 1324, 1365, 1352, 117, 1016, 1278, 1015, 1331, 1332, - /* 390 */ 1309, 158, 1260, 1588, 372, 368, 543, 33, 32, 1880, - /* 400 */ 1571, 40, 38, 36, 35, 34, 1357, 479, 478, 8, - /* 410 */ 636, 635, 634, 633, 345, 1017, 632, 631, 630, 123, - /* 420 */ 625, 624, 623, 622, 621, 620, 619, 618, 133, 614, - /* 430 */ 324, 659, 162, 1255, 561, 1253, 33, 32, 140, 613, - /* 440 */ 40, 38, 36, 35, 34, 1331, 1332, 1595, 29, 335, - /* 450 */ 1346, 1347, 1348, 1349, 1350, 1354, 1355, 1356, 1280, 447, - /* 460 */ 1258, 1259, 1476, 1307, 1308, 1310, 1311, 1312, 1313, 1314, - /* 470 */ 573, 569, 1322, 1323, 1325, 1326, 1327, 1328, 1330, 1333, - /* 480 */ 33, 32, 214, 526, 40, 38, 36, 35, 34, 170, - /* 490 */ 1255, 207, 1253, 219, 165, 1281, 340, 36, 35, 34, - /* 500 */ 59, 33, 32, 1747, 140, 40, 38, 36, 35, 34, - /* 510 */ 61, 1593, 75, 1595, 629, 627, 69, 1258, 1259, 68, - /* 520 */ 1307, 1308, 1310, 1311, 1312, 1313, 1314, 573, 569, 1322, - /* 530 */ 1323, 1325, 1326, 1327, 1328, 1330, 1333, 39, 37, 1334, - /* 540 */ 1689, 139, 298, 1475, 343, 337, 1777, 1254, 1277, 162, - /* 550 */ 73, 303, 140, 305, 516, 1234, 1235, 1423, 1329, 418, - /* 560 */ 1252, 1595, 1309, 1109, 602, 601, 600, 1113, 599, 1115, - /* 570 */ 1116, 598, 1118, 595, 1795, 1124, 592, 1126, 1127, 589, - /* 580 */ 586, 1324, 578, 488, 1747, 1449, 1351, 1747, 526, 577, - /* 590 */ 251, 472, 1260, 1474, 39, 37, 1683, 1254, 498, 383, - /* 600 */ 44, 4, 337, 554, 1254, 174, 173, 172, 1260, 9, - /* 610 */ 1252, 1071, 206, 471, 1808, 1329, 1593, 1252, 89, 1778, - /* 620 */ 580, 1780, 1781, 576, 497, 571, 491, 231, 1854, 1473, - /* 630 */ 485, 659, 304, 1850, 1747, 205, 562, 495, 1324, 493, - /* 640 */ 1352, 26, 1260, 1073, 1920, 1331, 1332, 33, 32, 1260, - /* 650 */ 162, 40, 38, 36, 35, 34, 1569, 159, 1869, 1472, - /* 660 */ 1471, 1917, 56, 1357, 611, 55, 9, 1869, 558, 526, - /* 670 */ 1747, 33, 32, 1645, 1448, 40, 38, 36, 35, 34, - /* 680 */ 384, 659, 1866, 131, 130, 608, 607, 606, 659, 1644, - /* 690 */ 1255, 1865, 1253, 1003, 1004, 1869, 513, 1593, 1470, 7, - /* 700 */ 1747, 1747, 1331, 1332, 1570, 29, 335, 1346, 1347, 1348, - /* 710 */ 1349, 1350, 1354, 1355, 1356, 613, 1582, 1258, 1259, 1864, - /* 720 */ 1307, 1308, 1310, 1311, 1312, 1313, 1314, 573, 569, 1322, - /* 730 */ 1323, 1325, 1326, 1327, 1328, 1330, 1333, 1920, 556, 1747, - /* 740 */ 1255, 1688, 1253, 298, 617, 28, 1565, 1255, 1403, 1253, - /* 750 */ 159, 33, 32, 514, 1917, 40, 38, 36, 35, 34, - /* 760 */ 347, 1874, 1385, 616, 1691, 33, 32, 1258, 1259, 40, - /* 770 */ 38, 36, 35, 34, 1258, 1259, 213, 1307, 1308, 1310, - /* 780 */ 1311, 1312, 1313, 1314, 573, 569, 1322, 1323, 1325, 1326, - /* 790 */ 1327, 1328, 1330, 1333, 39, 37, 300, 1578, 1276, 1467, - /* 800 */ 611, 1920, 337, 1777, 1254, 411, 74, 609, 423, 1466, - /* 810 */ 1636, 1508, 1389, 526, 159, 1329, 499, 1252, 1917, 131, - /* 820 */ 130, 608, 607, 606, 388, 396, 1465, 424, 1464, 398, - /* 830 */ 1339, 1795, 610, 484, 271, 1636, 1278, 1623, 1324, 578, - /* 840 */ 1747, 1593, 1292, 1568, 1747, 526, 577, 33, 32, 1260, - /* 850 */ 1747, 40, 38, 36, 35, 34, 113, 1920, 549, 52, - /* 860 */ 510, 389, 198, 473, 1263, 196, 2, 1747, 559, 1747, - /* 870 */ 159, 1808, 1580, 1593, 1917, 90, 1778, 580, 1780, 1781, - /* 880 */ 576, 1463, 571, 1385, 1462, 1854, 122, 1461, 659, 328, - /* 890 */ 1850, 1933, 1460, 1459, 200, 11, 10, 199, 1262, 1576, - /* 900 */ 1911, 422, 1331, 1332, 417, 416, 415, 414, 413, 410, - /* 910 */ 409, 408, 407, 406, 402, 401, 400, 399, 393, 392, - /* 920 */ 391, 390, 1747, 387, 386, 1747, 120, 526, 1747, 526, - /* 930 */ 628, 141, 1042, 1747, 1747, 526, 277, 526, 403, 611, - /* 940 */ 404, 157, 1862, 1863, 567, 1867, 446, 1255, 1590, 1253, - /* 950 */ 275, 58, 1451, 1452, 57, 1593, 506, 1593, 131, 130, - /* 960 */ 608, 607, 606, 1593, 1043, 1593, 1777, 210, 572, 604, - /* 970 */ 176, 426, 373, 41, 1258, 1259, 549, 1307, 1308, 1310, - /* 980 */ 1311, 1312, 1313, 1314, 573, 569, 1322, 1323, 1325, 1326, - /* 990 */ 1327, 1328, 1330, 1333, 1795, 526, 1266, 61, 202, 526, - /* 1000 */ 526, 201, 553, 526, 122, 204, 1722, 1747, 203, 577, - /* 1010 */ 507, 511, 1309, 1584, 524, 1202, 218, 1469, 1764, 1550, - /* 1020 */ 254, 526, 500, 1593, 1761, 554, 465, 1593, 1593, 1761, - /* 1030 */ 1265, 1593, 525, 1388, 1808, 88, 526, 1777, 90, 1778, - /* 1040 */ 580, 1780, 1781, 576, 120, 571, 1503, 260, 1854, 1593, - /* 1050 */ 1757, 1763, 328, 1850, 154, 1757, 1763, 326, 222, 249, - /* 1060 */ 1862, 548, 571, 547, 1593, 1795, 1920, 571, 486, 1501, - /* 1070 */ 66, 65, 382, 578, 1881, 169, 1343, 85, 1747, 159, - /* 1080 */ 577, 376, 536, 1917, 1767, 334, 333, 82, 125, 243, - /* 1090 */ 128, 489, 1796, 129, 299, 1268, 50, 366, 1492, 364, - /* 1100 */ 360, 356, 166, 351, 348, 1808, 1329, 1764, 1261, 90, - /* 1110 */ 1778, 580, 1780, 1781, 576, 1765, 571, 235, 1761, 1854, - /* 1120 */ 526, 1633, 1769, 328, 1850, 1933, 1761, 1497, 41, 1324, - /* 1130 */ 519, 344, 228, 1777, 1873, 1102, 346, 162, 1410, 50, - /* 1140 */ 1260, 41, 1884, 584, 1757, 1763, 332, 128, 1593, 129, - /* 1150 */ 114, 128, 1757, 1763, 550, 248, 571, 253, 256, 238, - /* 1160 */ 258, 1795, 80, 53, 571, 5, 3, 350, 1276, 578, - /* 1170 */ 270, 353, 357, 310, 1747, 654, 577, 1071, 311, 566, - /* 1180 */ 1218, 1359, 267, 1315, 405, 1130, 1685, 171, 412, 1134, - /* 1190 */ 554, 1141, 1139, 132, 1777, 420, 419, 425, 421, 427, - /* 1200 */ 428, 1808, 1282, 436, 1285, 284, 1778, 580, 1780, 1781, - /* 1210 */ 576, 439, 571, 1284, 179, 440, 181, 441, 1286, 184, - /* 1220 */ 442, 444, 1795, 186, 1283, 188, 445, 70, 448, 191, - /* 1230 */ 578, 1920, 268, 467, 469, 1747, 1583, 577, 1269, 302, - /* 1240 */ 1264, 93, 195, 501, 161, 208, 1579, 1777, 1917, 197, - /* 1250 */ 134, 554, 135, 1581, 1577, 136, 137, 1727, 211, 502, - /* 1260 */ 508, 512, 1808, 534, 215, 1272, 284, 1778, 580, 1780, - /* 1270 */ 1781, 576, 505, 571, 226, 1795, 569, 1322, 1323, 1325, - /* 1280 */ 1326, 1327, 1328, 578, 126, 515, 1726, 1695, 1747, 520, - /* 1290 */ 577, 127, 1920, 521, 320, 224, 517, 322, 522, 1777, - /* 1300 */ 269, 78, 1594, 1281, 530, 159, 532, 1885, 537, 1917, - /* 1310 */ 233, 533, 237, 1895, 1894, 1808, 327, 6, 540, 91, - /* 1320 */ 1778, 580, 1780, 1781, 576, 546, 571, 1795, 531, 1854, - /* 1330 */ 1876, 529, 528, 1853, 1850, 578, 1385, 247, 148, 1280, - /* 1340 */ 1747, 563, 577, 246, 244, 121, 242, 48, 1870, 329, - /* 1350 */ 582, 272, 1777, 245, 560, 1637, 1566, 263, 655, 656, - /* 1360 */ 658, 51, 285, 147, 1741, 1835, 1777, 1808, 295, 276, - /* 1370 */ 252, 91, 1778, 580, 1780, 1781, 576, 63, 571, 274, - /* 1380 */ 1795, 1854, 1916, 557, 1740, 565, 1850, 564, 575, 294, - /* 1390 */ 1739, 1936, 255, 1747, 1795, 577, 257, 64, 1738, 352, - /* 1400 */ 1735, 354, 578, 355, 1246, 1247, 167, 1747, 359, 577, - /* 1410 */ 1733, 361, 362, 363, 1732, 365, 1731, 367, 1730, 1777, - /* 1420 */ 1808, 369, 1729, 371, 292, 1778, 580, 1780, 1781, 576, - /* 1430 */ 574, 571, 568, 1826, 1808, 1712, 168, 1777, 144, 1778, - /* 1440 */ 580, 1780, 1781, 576, 375, 571, 374, 1795, 1221, 1706, - /* 1450 */ 1220, 1705, 380, 381, 1704, 578, 1703, 1190, 1678, 1677, - /* 1460 */ 1747, 1676, 577, 1675, 67, 1795, 1674, 1673, 1672, 1671, - /* 1470 */ 321, 394, 395, 578, 1670, 397, 1669, 1668, 1747, 1667, - /* 1480 */ 577, 1666, 555, 1934, 1665, 1664, 1663, 1808, 1662, 1777, - /* 1490 */ 1661, 91, 1778, 580, 1780, 1781, 576, 1660, 571, 1659, - /* 1500 */ 1658, 1854, 1657, 1656, 124, 1808, 1851, 1655, 1654, 293, - /* 1510 */ 1778, 580, 1780, 1781, 576, 1653, 571, 1795, 1192, 1649, - /* 1520 */ 1648, 1647, 527, 1652, 1651, 578, 1650, 1646, 1522, 175, - /* 1530 */ 1747, 1777, 577, 1520, 1488, 177, 1006, 115, 152, 1005, - /* 1540 */ 1487, 1777, 1720, 1714, 1702, 178, 1701, 432, 116, 183, - /* 1550 */ 434, 185, 1687, 1572, 1519, 1517, 451, 1808, 450, 1795, - /* 1560 */ 1515, 293, 1778, 580, 1780, 1781, 576, 578, 571, 1795, - /* 1570 */ 449, 453, 1747, 1035, 577, 1513, 454, 578, 455, 458, - /* 1580 */ 457, 1511, 1747, 461, 577, 462, 459, 1500, 463, 1499, - /* 1590 */ 1484, 1777, 1574, 1145, 1144, 1573, 1070, 1069, 1068, 1808, - /* 1600 */ 1067, 1064, 626, 288, 1778, 580, 1780, 1781, 576, 1808, - /* 1610 */ 571, 628, 1063, 144, 1778, 580, 1780, 1781, 576, 1795, - /* 1620 */ 571, 1062, 194, 49, 1509, 316, 1061, 575, 1504, 317, - /* 1630 */ 1502, 487, 1747, 318, 577, 1483, 490, 492, 1482, 494, - /* 1640 */ 1481, 545, 496, 1777, 1719, 92, 1713, 1228, 503, 138, - /* 1650 */ 1700, 1698, 1699, 1697, 1696, 15, 1694, 223, 1935, 1808, - /* 1660 */ 1777, 217, 212, 292, 1778, 580, 1780, 1781, 576, 1238, - /* 1670 */ 571, 1795, 1827, 1686, 82, 225, 336, 76, 77, 578, - /* 1680 */ 230, 16, 41, 23, 1747, 47, 577, 241, 1795, 54, - /* 1690 */ 1425, 234, 232, 338, 1407, 509, 578, 236, 240, 227, - /* 1700 */ 1409, 1747, 504, 577, 1402, 145, 239, 518, 319, 1767, - /* 1710 */ 25, 1808, 1382, 662, 1381, 293, 1778, 580, 1780, 1781, - /* 1720 */ 576, 24, 571, 250, 46, 1766, 18, 266, 1808, 81, - /* 1730 */ 149, 1437, 293, 1778, 580, 1780, 1781, 576, 45, 571, - /* 1740 */ 1436, 151, 17, 1442, 1431, 193, 652, 648, 644, 640, - /* 1750 */ 264, 1777, 330, 1441, 1440, 331, 10, 1270, 19, 146, - /* 1760 */ 1811, 1300, 1344, 1777, 464, 460, 456, 452, 192, 150, - /* 1770 */ 1319, 570, 163, 1317, 31, 1777, 1316, 87, 579, 1795, - /* 1780 */ 229, 12, 20, 21, 581, 1131, 583, 578, 339, 1128, - /* 1790 */ 585, 1795, 1747, 587, 577, 72, 1125, 13, 190, 578, - /* 1800 */ 588, 590, 593, 1795, 1747, 591, 577, 1119, 594, 596, - /* 1810 */ 1117, 578, 597, 523, 1108, 1123, 1747, 1122, 577, 1808, - /* 1820 */ 1140, 1121, 1120, 278, 1778, 580, 1780, 1781, 576, 83, - /* 1830 */ 571, 1808, 603, 84, 60, 279, 1778, 580, 1780, 1781, - /* 1840 */ 576, 261, 571, 1808, 1136, 216, 612, 280, 1778, 580, - /* 1850 */ 1780, 1781, 576, 1058, 571, 1033, 1077, 1777, 615, 262, - /* 1860 */ 189, 182, 1056, 187, 1055, 1054, 1226, 443, 209, 1053, - /* 1870 */ 1052, 1777, 1051, 1050, 1049, 1074, 1516, 1072, 1046, 1045, - /* 1880 */ 1044, 1041, 1040, 1039, 1038, 1795, 180, 637, 1514, 1512, - /* 1890 */ 639, 641, 643, 578, 645, 1510, 649, 647, 1747, 1795, - /* 1900 */ 577, 638, 642, 651, 646, 1498, 653, 578, 996, 650, - /* 1910 */ 1480, 657, 1747, 265, 577, 1256, 273, 660, 661, 1455, - /* 1920 */ 1455, 1777, 1455, 1455, 1455, 1808, 1455, 1455, 1455, 287, - /* 1930 */ 1778, 580, 1780, 1781, 576, 1455, 571, 1777, 1455, 1808, - /* 1940 */ 1455, 1455, 1455, 289, 1778, 580, 1780, 1781, 576, 1795, - /* 1950 */ 571, 1455, 1455, 1455, 1455, 1455, 1455, 578, 1455, 1455, - /* 1960 */ 1455, 1455, 1747, 1455, 577, 1795, 1455, 1455, 1455, 1455, - /* 1970 */ 1455, 1455, 1455, 578, 1455, 1455, 1455, 1455, 1747, 1455, - /* 1980 */ 577, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1808, - /* 1990 */ 1777, 1455, 1455, 281, 1778, 580, 1780, 1781, 576, 1455, - /* 2000 */ 571, 1455, 1455, 1455, 1777, 1808, 1455, 1455, 1455, 290, - /* 2010 */ 1778, 580, 1780, 1781, 576, 1455, 571, 1455, 1795, 1455, - /* 2020 */ 1455, 1455, 1455, 1455, 1455, 1455, 578, 1455, 1455, 1455, - /* 2030 */ 1455, 1747, 1795, 577, 1455, 1455, 1455, 1455, 1455, 1455, - /* 2040 */ 578, 1455, 1455, 1455, 1455, 1747, 1455, 577, 1455, 1455, - /* 2050 */ 1455, 1455, 1455, 1455, 1455, 1455, 1777, 1455, 1808, 1455, - /* 2060 */ 1455, 1455, 282, 1778, 580, 1780, 1781, 576, 1455, 571, - /* 2070 */ 1455, 1455, 1808, 1455, 1777, 1455, 291, 1778, 580, 1780, - /* 2080 */ 1781, 576, 1455, 571, 1795, 1455, 1455, 1455, 1455, 1455, - /* 2090 */ 1455, 1455, 578, 1455, 1455, 1455, 1455, 1747, 1777, 577, - /* 2100 */ 1455, 1455, 1795, 1455, 1455, 1455, 1455, 1455, 1455, 1455, - /* 2110 */ 578, 1455, 1455, 1455, 1455, 1747, 1455, 577, 1455, 1455, - /* 2120 */ 1455, 1455, 1455, 1455, 1808, 1455, 1795, 1455, 283, 1778, - /* 2130 */ 580, 1780, 1781, 576, 578, 571, 1455, 1455, 1455, 1747, - /* 2140 */ 1455, 577, 1808, 1455, 1455, 1455, 296, 1778, 580, 1780, - /* 2150 */ 1781, 576, 1455, 571, 1455, 1455, 1777, 1455, 1455, 1455, - /* 2160 */ 1455, 1455, 1455, 1455, 1455, 1455, 1808, 1455, 1455, 1455, - /* 2170 */ 297, 1778, 580, 1780, 1781, 576, 1455, 571, 1455, 1777, - /* 2180 */ 1455, 1455, 1455, 1455, 1795, 1455, 1455, 1455, 1455, 1455, - /* 2190 */ 1455, 1455, 578, 1455, 1455, 1455, 1455, 1747, 1455, 577, - /* 2200 */ 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1795, 1455, 1455, - /* 2210 */ 1455, 1455, 1455, 1455, 1455, 578, 1455, 1455, 1455, 1455, - /* 2220 */ 1747, 1455, 577, 1455, 1808, 1455, 1455, 1455, 1789, 1778, - /* 2230 */ 580, 1780, 1781, 576, 1455, 571, 1777, 1455, 1455, 1455, - /* 2240 */ 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1808, 1777, 1455, - /* 2250 */ 1455, 1788, 1778, 580, 1780, 1781, 576, 1455, 571, 1455, - /* 2260 */ 1455, 1455, 1777, 1455, 1795, 1455, 1455, 1455, 1455, 1455, - /* 2270 */ 1455, 1455, 578, 1455, 1455, 1455, 1795, 1747, 1455, 577, - /* 2280 */ 1455, 1455, 1455, 1455, 578, 1455, 1455, 1455, 1455, 1747, - /* 2290 */ 1795, 577, 1455, 1455, 1455, 1455, 1455, 1455, 578, 1455, - /* 2300 */ 1455, 1455, 1455, 1747, 1808, 577, 1455, 1455, 1787, 1778, - /* 2310 */ 580, 1780, 1781, 576, 1777, 571, 1808, 1455, 1455, 1455, - /* 2320 */ 308, 1778, 580, 1780, 1781, 576, 1455, 571, 1455, 1455, - /* 2330 */ 1808, 1455, 1777, 1455, 307, 1778, 580, 1780, 1781, 576, - /* 2340 */ 1455, 571, 1795, 1455, 1455, 1455, 1455, 1455, 1455, 1455, - /* 2350 */ 578, 1455, 1455, 1455, 1455, 1747, 1777, 577, 1455, 1455, - /* 2360 */ 1795, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 578, 1455, - /* 2370 */ 1455, 1455, 1455, 1747, 1455, 577, 1455, 1455, 1455, 1455, - /* 2380 */ 1455, 1455, 1808, 1455, 1795, 1455, 309, 1778, 580, 1780, - /* 2390 */ 1781, 576, 578, 571, 1455, 1455, 1455, 1747, 1455, 577, - /* 2400 */ 1808, 1455, 1455, 1455, 306, 1778, 580, 1780, 1781, 576, - /* 2410 */ 1455, 571, 1455, 1455, 1455, 1455, 1455, 1455, 1455, 1455, - /* 2420 */ 1455, 1455, 1455, 1455, 1808, 1455, 1455, 1455, 286, 1778, - /* 2430 */ 580, 1780, 1781, 576, 1455, 571, + /* 0 */ 529, 1698, 433, 552, 434, 1495, 441, 1587, 434, 1495, + /* 10 */ 1769, 113, 39, 37, 386, 62, 517, 1583, 471, 380, + /* 20 */ 338, 1766, 1258, 1002, 324, 79, 1782, 1695, 1598, 30, + /* 30 */ 260, 122, 143, 1333, 103, 1256, 1554, 102, 101, 100, + /* 40 */ 99, 98, 97, 96, 95, 94, 1591, 1762, 1768, 327, + /* 50 */ 71, 302, 557, 1925, 1800, 555, 1328, 1512, 1283, 574, + /* 60 */ 1925, 14, 581, 1006, 1007, 500, 1924, 1752, 1264, 580, + /* 70 */ 1922, 120, 1594, 159, 39, 37, 1396, 1922, 498, 487, + /* 80 */ 496, 529, 338, 557, 1258, 1, 250, 1867, 551, 1019, + /* 90 */ 550, 1018, 164, 1925, 1813, 1333, 61, 1256, 89, 1783, + /* 100 */ 583, 1785, 1786, 579, 469, 574, 161, 662, 1859, 1598, + /* 110 */ 1922, 343, 305, 1855, 1643, 1645, 71, 61, 1328, 1020, + /* 120 */ 43, 1335, 1336, 14, 1925, 1461, 1925, 33, 32, 117, + /* 130 */ 1264, 40, 38, 36, 35, 34, 475, 161, 1593, 160, + /* 140 */ 142, 1922, 1472, 1922, 1483, 1782, 103, 2, 214, 102, + /* 150 */ 101, 100, 99, 98, 97, 96, 95, 94, 474, 1155, + /* 160 */ 1156, 486, 485, 484, 170, 1925, 1259, 483, 1257, 662, + /* 170 */ 118, 480, 325, 1800, 479, 478, 477, 1458, 1923, 74, + /* 180 */ 140, 556, 1922, 1335, 1336, 1752, 1752, 555, 580, 1600, + /* 190 */ 1644, 1645, 69, 1262, 1263, 68, 1311, 1312, 1314, 1315, + /* 200 */ 1316, 1317, 1318, 576, 572, 1326, 1327, 1329, 1330, 1331, + /* 210 */ 1332, 1334, 1337, 1813, 36, 35, 34, 90, 1783, 583, + /* 220 */ 1785, 1786, 579, 529, 574, 162, 371, 1859, 1259, 555, + /* 230 */ 1257, 329, 1855, 154, 113, 419, 162, 350, 1482, 33, + /* 240 */ 32, 476, 450, 40, 38, 36, 35, 34, 373, 369, + /* 250 */ 1283, 1598, 552, 1886, 1393, 1262, 1263, 162, 1311, 1312, + /* 260 */ 1314, 1315, 1316, 1317, 1318, 576, 572, 1326, 1327, 1329, + /* 270 */ 1330, 1331, 1332, 1334, 1337, 39, 37, 1453, 1925, 1752, + /* 280 */ 122, 174, 173, 338, 220, 1258, 40, 38, 36, 35, + /* 290 */ 34, 159, 306, 61, 42, 1922, 1333, 1739, 1256, 1113, + /* 300 */ 605, 604, 603, 1117, 602, 1119, 1120, 601, 1122, 598, + /* 310 */ 1800, 1128, 595, 1130, 1131, 592, 589, 1296, 545, 1328, + /* 320 */ 120, 1782, 33, 32, 14, 1355, 40, 38, 36, 35, + /* 330 */ 34, 1264, 39, 37, 554, 155, 1867, 1868, 86, 1872, + /* 340 */ 338, 552, 1258, 1769, 359, 1650, 1238, 1239, 2, 1800, + /* 350 */ 341, 119, 326, 1333, 1766, 1256, 544, 581, 140, 1590, + /* 360 */ 344, 1648, 1752, 529, 580, 1400, 1452, 1600, 140, 122, + /* 370 */ 662, 1282, 1282, 379, 165, 378, 1328, 1600, 557, 1356, + /* 380 */ 1762, 1768, 333, 1576, 1335, 1336, 1460, 432, 1264, 1813, + /* 390 */ 436, 1598, 574, 89, 1783, 583, 1785, 1786, 579, 1481, + /* 400 */ 574, 440, 1361, 1859, 436, 8, 215, 305, 1855, 120, + /* 410 */ 112, 111, 110, 109, 108, 107, 106, 105, 104, 1925, + /* 420 */ 482, 481, 632, 630, 156, 1867, 1868, 662, 1872, 1259, + /* 430 */ 208, 1257, 159, 162, 162, 61, 1922, 75, 516, 1480, + /* 440 */ 1752, 1335, 1336, 450, 29, 336, 1350, 1351, 1352, 1353, + /* 450 */ 1354, 1358, 1359, 1360, 1479, 315, 1262, 1263, 546, 1311, + /* 460 */ 1312, 1314, 1315, 1316, 1317, 1318, 576, 572, 1326, 1327, + /* 470 */ 1329, 1330, 1331, 1332, 1334, 1337, 1392, 33, 32, 1925, + /* 480 */ 1752, 40, 38, 36, 35, 34, 1259, 1357, 1257, 73, + /* 490 */ 304, 1650, 159, 519, 541, 1752, 1922, 33, 32, 348, + /* 500 */ 1284, 40, 38, 36, 35, 34, 316, 1649, 314, 313, + /* 510 */ 1362, 473, 616, 1262, 1263, 475, 1311, 1312, 1314, 1315, + /* 520 */ 1316, 1317, 1318, 576, 572, 1326, 1327, 1329, 1330, 1331, + /* 530 */ 1332, 1334, 1337, 39, 37, 1338, 438, 474, 1006, 1007, + /* 540 */ 1925, 338, 1280, 1258, 1782, 162, 1874, 1478, 1313, 1019, + /* 550 */ 306, 1018, 27, 159, 1333, 1427, 1256, 1922, 1589, 33, + /* 560 */ 32, 221, 222, 40, 38, 36, 35, 34, 1285, 1766, + /* 570 */ 1871, 552, 1800, 547, 542, 162, 1574, 1328, 1281, 1020, + /* 580 */ 556, 529, 529, 1355, 153, 1752, 1477, 580, 1752, 1264, + /* 590 */ 39, 37, 384, 385, 22, 1762, 1768, 1637, 338, 122, + /* 600 */ 1258, 1522, 1075, 11, 10, 140, 9, 574, 1650, 1598, + /* 610 */ 1598, 1333, 1813, 1256, 1601, 342, 90, 1783, 583, 1785, + /* 620 */ 1786, 579, 304, 574, 1648, 519, 1859, 1752, 662, 529, + /* 630 */ 329, 1855, 154, 252, 1328, 1077, 616, 1356, 1874, 120, + /* 640 */ 389, 1473, 1335, 1336, 158, 1343, 1264, 1694, 1688, 299, + /* 650 */ 517, 1282, 1885, 1264, 157, 1867, 1868, 1598, 1872, 172, + /* 660 */ 1361, 1696, 1870, 9, 639, 638, 637, 636, 346, 561, + /* 670 */ 635, 634, 633, 123, 628, 627, 626, 625, 624, 623, + /* 680 */ 622, 621, 133, 617, 1525, 662, 1282, 1259, 1369, 1257, + /* 690 */ 33, 32, 1874, 1476, 40, 38, 36, 35, 34, 1335, + /* 700 */ 1336, 232, 29, 336, 1350, 1351, 1352, 1353, 1354, 1358, + /* 710 */ 1359, 1360, 7, 1475, 1262, 1263, 1869, 1311, 1312, 1314, + /* 720 */ 1315, 1316, 1317, 1318, 576, 572, 1326, 1327, 1329, 1330, + /* 730 */ 1331, 1332, 1334, 1337, 1752, 33, 32, 1879, 1389, 40, + /* 740 */ 38, 36, 35, 34, 1259, 608, 1257, 486, 485, 484, + /* 750 */ 44, 4, 1258, 483, 1752, 272, 118, 480, 1628, 619, + /* 760 */ 479, 478, 477, 1474, 1585, 1256, 1417, 1693, 1407, 299, + /* 770 */ 612, 1262, 1263, 1641, 1311, 1312, 1314, 1315, 1316, 1317, + /* 780 */ 1318, 576, 572, 1326, 1327, 1329, 1330, 1331, 1332, 1334, + /* 790 */ 1337, 39, 37, 301, 613, 1280, 614, 1641, 1264, 338, + /* 800 */ 1581, 1258, 412, 1782, 1752, 424, 211, 538, 1415, 1416, + /* 810 */ 1418, 1419, 1333, 1296, 1256, 131, 130, 611, 610, 609, + /* 820 */ 11, 10, 397, 1575, 425, 575, 399, 59, 1313, 529, + /* 830 */ 529, 1800, 529, 1471, 620, 1328, 1570, 662, 1573, 581, + /* 840 */ 404, 405, 26, 449, 1752, 509, 580, 1264, 33, 32, + /* 850 */ 1507, 1505, 40, 38, 36, 35, 34, 1598, 1598, 390, + /* 860 */ 1598, 33, 32, 1313, 2, 40, 38, 36, 35, 34, + /* 870 */ 562, 1813, 489, 492, 1752, 91, 1783, 583, 1785, 1786, + /* 880 */ 579, 28, 574, 607, 631, 1859, 662, 33, 32, 1858, + /* 890 */ 1855, 40, 38, 36, 35, 34, 1259, 1389, 1257, 423, + /* 900 */ 1335, 1336, 418, 417, 416, 415, 414, 411, 410, 409, + /* 910 */ 408, 407, 403, 402, 401, 400, 394, 393, 392, 391, + /* 920 */ 614, 388, 387, 1262, 1263, 529, 1470, 374, 199, 141, + /* 930 */ 1555, 197, 564, 529, 278, 614, 1595, 52, 513, 131, + /* 940 */ 130, 611, 610, 609, 1727, 1259, 255, 1257, 276, 58, + /* 950 */ 41, 219, 57, 1598, 131, 130, 611, 610, 609, 1267, + /* 960 */ 1770, 1598, 502, 1469, 1782, 1455, 1456, 1752, 177, 429, + /* 970 */ 427, 1766, 1262, 1263, 1468, 1311, 1312, 1314, 1315, 1316, + /* 980 */ 1317, 1318, 576, 572, 1326, 1327, 1329, 1330, 1331, 1332, + /* 990 */ 1334, 1337, 1800, 1206, 223, 539, 61, 1762, 1768, 529, + /* 1000 */ 581, 468, 529, 1925, 1752, 1752, 139, 580, 1467, 574, + /* 1010 */ 510, 1266, 1466, 514, 529, 1752, 159, 1772, 201, 1465, + /* 1020 */ 1922, 200, 1464, 203, 1463, 527, 202, 1598, 570, 503, + /* 1030 */ 1598, 1801, 1813, 244, 88, 125, 90, 1783, 583, 1785, + /* 1040 */ 1786, 579, 1598, 574, 529, 1782, 1859, 529, 529, 1752, + /* 1050 */ 329, 1855, 1938, 1752, 205, 528, 1774, 204, 261, 345, + /* 1060 */ 1752, 1893, 552, 1752, 1046, 1752, 559, 128, 1501, 66, + /* 1070 */ 65, 383, 1598, 1800, 169, 1598, 1598, 347, 522, 85, + /* 1080 */ 377, 581, 129, 50, 335, 334, 1752, 1496, 580, 82, + /* 1090 */ 122, 236, 1270, 300, 1272, 1638, 367, 1047, 365, 361, + /* 1100 */ 357, 166, 352, 349, 249, 1333, 1889, 1265, 254, 553, + /* 1110 */ 229, 557, 257, 1813, 50, 3, 657, 90, 1783, 583, + /* 1120 */ 1785, 1786, 579, 1782, 574, 1106, 1414, 1859, 1328, 41, + /* 1130 */ 120, 329, 1855, 1938, 239, 565, 162, 41, 491, 259, + /* 1140 */ 1264, 80, 1916, 587, 1269, 250, 1867, 551, 53, 550, + /* 1150 */ 5, 1800, 1925, 501, 351, 1280, 354, 1363, 128, 581, + /* 1160 */ 1347, 358, 1222, 129, 1752, 159, 580, 207, 311, 1922, + /* 1170 */ 114, 128, 1319, 1075, 312, 406, 1782, 268, 1690, 569, + /* 1180 */ 271, 494, 171, 413, 421, 488, 1134, 420, 422, 1286, + /* 1190 */ 206, 1813, 426, 428, 430, 90, 1783, 583, 1785, 1786, + /* 1200 */ 579, 1138, 574, 431, 1800, 1859, 1145, 439, 1289, 329, + /* 1210 */ 1855, 1938, 581, 1143, 132, 442, 180, 1752, 56, 580, + /* 1220 */ 1878, 55, 443, 182, 1288, 1290, 445, 444, 1782, 185, + /* 1230 */ 447, 187, 1287, 557, 189, 451, 70, 448, 1273, 470, + /* 1240 */ 1268, 472, 192, 1588, 1813, 303, 196, 1732, 285, 1783, + /* 1250 */ 583, 1785, 1786, 579, 1584, 574, 1800, 93, 269, 198, + /* 1260 */ 134, 135, 504, 1586, 581, 1276, 1582, 136, 137, 1752, + /* 1270 */ 209, 580, 505, 212, 1925, 511, 572, 1326, 1327, 1329, + /* 1280 */ 1330, 1331, 1332, 515, 508, 557, 216, 161, 518, 537, + /* 1290 */ 227, 1922, 321, 1782, 126, 1731, 1813, 127, 1700, 520, + /* 1300 */ 285, 1783, 583, 1785, 1786, 579, 323, 574, 523, 1782, + /* 1310 */ 225, 524, 270, 525, 78, 1599, 1285, 1890, 533, 535, + /* 1320 */ 540, 1800, 234, 238, 1900, 536, 1925, 328, 6, 581, + /* 1330 */ 543, 549, 534, 532, 1752, 531, 580, 1800, 248, 159, + /* 1340 */ 1389, 121, 1284, 1922, 566, 578, 563, 48, 1899, 330, + /* 1350 */ 1752, 1875, 580, 1840, 585, 1881, 245, 243, 1642, 148, + /* 1360 */ 247, 1813, 273, 264, 1782, 91, 1783, 583, 1785, 1786, + /* 1370 */ 579, 246, 574, 1571, 658, 1859, 1782, 1813, 659, 568, + /* 1380 */ 1855, 293, 1783, 583, 1785, 1786, 579, 577, 574, 571, + /* 1390 */ 1831, 661, 1800, 51, 147, 275, 1746, 1921, 253, 286, + /* 1400 */ 581, 296, 295, 277, 1800, 1752, 560, 580, 256, 1941, + /* 1410 */ 567, 63, 581, 258, 1745, 1744, 64, 1752, 1743, 580, + /* 1420 */ 353, 1740, 355, 356, 1250, 1251, 167, 360, 1738, 362, + /* 1430 */ 363, 364, 1813, 1737, 366, 1736, 144, 1783, 583, 1785, + /* 1440 */ 1786, 579, 368, 574, 1813, 1735, 370, 1734, 91, 1783, + /* 1450 */ 583, 1785, 1786, 579, 1782, 574, 1717, 372, 1859, 375, + /* 1460 */ 168, 376, 1225, 1856, 1224, 1711, 1710, 381, 1782, 382, + /* 1470 */ 1709, 1708, 1194, 1683, 1682, 1681, 67, 1680, 1782, 1679, + /* 1480 */ 558, 1939, 1800, 1678, 1677, 1676, 395, 322, 396, 1675, + /* 1490 */ 581, 398, 1674, 1673, 1672, 1752, 1800, 580, 1671, 1670, + /* 1500 */ 1669, 530, 1668, 1667, 581, 1666, 1800, 1665, 1664, 1752, + /* 1510 */ 1663, 580, 1662, 1661, 581, 1660, 1659, 1658, 124, 1752, + /* 1520 */ 1657, 580, 1813, 1656, 1655, 1654, 294, 1783, 583, 1785, + /* 1530 */ 1786, 579, 1653, 574, 1652, 1782, 1813, 1651, 1527, 1526, + /* 1540 */ 294, 1783, 583, 1785, 1786, 579, 1813, 574, 1524, 1196, + /* 1550 */ 289, 1783, 583, 1785, 1786, 579, 1492, 574, 1491, 1782, + /* 1560 */ 175, 178, 176, 1800, 152, 115, 1009, 1008, 435, 179, + /* 1570 */ 116, 581, 1725, 1719, 437, 1707, 1752, 186, 580, 184, + /* 1580 */ 1706, 1692, 1577, 1523, 1521, 1782, 452, 1800, 548, 453, + /* 1590 */ 1519, 1517, 1039, 454, 456, 578, 457, 460, 1515, 458, + /* 1600 */ 1752, 1504, 580, 1813, 461, 462, 464, 144, 1783, 583, + /* 1610 */ 1785, 1786, 579, 1800, 574, 465, 466, 1503, 337, 1488, + /* 1620 */ 1579, 581, 1149, 1578, 1148, 195, 1752, 1813, 580, 49, + /* 1630 */ 1074, 293, 1783, 583, 1785, 1786, 579, 629, 574, 1782, + /* 1640 */ 1832, 1073, 1072, 631, 1071, 1068, 1067, 1066, 1065, 1513, + /* 1650 */ 317, 1508, 1940, 1813, 318, 665, 1506, 294, 1783, 583, + /* 1660 */ 1785, 1786, 579, 490, 574, 319, 493, 1800, 1487, 267, + /* 1670 */ 495, 1486, 339, 497, 1485, 581, 499, 92, 1724, 1232, + /* 1680 */ 1752, 1718, 580, 151, 506, 1705, 138, 1703, 655, 651, + /* 1690 */ 647, 643, 265, 1704, 54, 213, 507, 1702, 1701, 320, + /* 1700 */ 15, 1699, 512, 1691, 218, 226, 224, 1813, 41, 76, + /* 1710 */ 77, 294, 1783, 583, 1785, 1786, 579, 194, 574, 231, + /* 1720 */ 87, 521, 1782, 230, 82, 228, 16, 23, 242, 47, + /* 1730 */ 233, 146, 1429, 235, 1411, 237, 467, 463, 459, 455, + /* 1740 */ 193, 1413, 1242, 145, 240, 24, 1782, 1406, 241, 81, + /* 1750 */ 1800, 10, 1772, 25, 1441, 1386, 526, 251, 581, 45, + /* 1760 */ 46, 1385, 1771, 1752, 149, 580, 1446, 18, 72, 1435, + /* 1770 */ 1440, 191, 331, 1445, 1800, 1444, 332, 1274, 1348, 17, + /* 1780 */ 1816, 573, 581, 1304, 13, 19, 1323, 1752, 217, 580, + /* 1790 */ 1813, 150, 163, 1321, 279, 1783, 583, 1785, 1786, 579, + /* 1800 */ 31, 574, 1782, 586, 1112, 584, 1320, 12, 20, 1230, + /* 1810 */ 21, 210, 1135, 340, 1813, 588, 590, 582, 280, 1783, + /* 1820 */ 583, 1785, 1786, 579, 591, 574, 593, 596, 599, 1132, + /* 1830 */ 1800, 606, 594, 190, 183, 597, 188, 1129, 581, 1123, + /* 1840 */ 446, 1127, 1121, 1752, 1782, 580, 1144, 600, 83, 84, + /* 1850 */ 60, 262, 1140, 1126, 1782, 1062, 1037, 1125, 615, 181, + /* 1860 */ 618, 1124, 263, 1081, 1060, 1055, 1782, 1059, 1058, 1057, + /* 1870 */ 1813, 1056, 1800, 1054, 281, 1783, 583, 1785, 1786, 579, + /* 1880 */ 581, 574, 1800, 1053, 1078, 1752, 1076, 580, 1050, 1049, + /* 1890 */ 581, 1048, 1045, 1044, 1800, 1752, 1043, 580, 1042, 1520, + /* 1900 */ 640, 642, 581, 1518, 644, 646, 641, 1752, 1516, 580, + /* 1910 */ 648, 645, 1813, 650, 649, 1514, 288, 1783, 583, 1785, + /* 1920 */ 1786, 579, 1813, 574, 652, 653, 290, 1783, 583, 1785, + /* 1930 */ 1786, 579, 654, 574, 1813, 656, 999, 1484, 282, 1783, + /* 1940 */ 583, 1785, 1786, 579, 1502, 574, 266, 1782, 660, 1459, + /* 1950 */ 1260, 274, 663, 664, 1459, 1459, 1459, 1459, 1459, 1459, + /* 1960 */ 1459, 1459, 1459, 1459, 1459, 1459, 1782, 1459, 1459, 1459, + /* 1970 */ 1459, 1459, 1459, 1459, 1459, 1800, 1459, 1459, 1459, 1459, + /* 1980 */ 1459, 1459, 1459, 581, 1459, 1459, 1459, 1459, 1752, 1459, + /* 1990 */ 580, 1459, 1459, 1459, 1800, 1459, 1459, 1459, 1459, 1459, + /* 2000 */ 1459, 1459, 581, 1459, 1459, 1459, 1459, 1752, 1459, 580, + /* 2010 */ 1459, 1459, 1459, 1459, 1459, 1813, 1459, 1459, 1459, 291, + /* 2020 */ 1783, 583, 1785, 1786, 579, 1459, 574, 1782, 1459, 1459, + /* 2030 */ 1459, 1459, 1459, 1459, 1813, 1459, 1459, 1459, 283, 1783, + /* 2040 */ 583, 1785, 1786, 579, 1459, 574, 1782, 1459, 1459, 1459, + /* 2050 */ 1459, 1459, 1459, 1459, 1459, 1800, 1459, 1459, 1459, 1459, + /* 2060 */ 1459, 1459, 1459, 581, 1459, 1459, 1459, 1459, 1752, 1459, + /* 2070 */ 580, 1459, 1459, 1459, 1800, 1459, 1459, 1459, 1459, 1459, + /* 2080 */ 1459, 1459, 581, 1459, 1459, 1459, 1459, 1752, 1459, 580, + /* 2090 */ 1459, 1459, 1459, 1459, 1459, 1813, 1459, 1459, 1459, 292, + /* 2100 */ 1783, 583, 1785, 1786, 579, 1459, 574, 1459, 1459, 1459, + /* 2110 */ 1459, 1459, 1459, 1782, 1813, 1459, 1459, 1459, 284, 1783, + /* 2120 */ 583, 1785, 1786, 579, 1459, 574, 1459, 1459, 1459, 1782, + /* 2130 */ 1459, 1459, 1459, 1459, 1459, 1459, 1459, 1459, 1459, 1782, + /* 2140 */ 1459, 1800, 1459, 1459, 1459, 1459, 1459, 1459, 1459, 581, + /* 2150 */ 1459, 1459, 1459, 1459, 1752, 1459, 580, 1800, 1459, 1459, + /* 2160 */ 1459, 1459, 1459, 1459, 1459, 581, 1459, 1800, 1459, 1459, + /* 2170 */ 1752, 1459, 580, 1459, 1459, 581, 1459, 1459, 1459, 1459, + /* 2180 */ 1752, 1813, 580, 1459, 1459, 297, 1783, 583, 1785, 1786, + /* 2190 */ 579, 1459, 574, 1782, 1459, 1459, 1459, 1813, 1459, 1459, + /* 2200 */ 1459, 298, 1783, 583, 1785, 1786, 579, 1813, 574, 1459, + /* 2210 */ 1459, 1794, 1783, 583, 1785, 1786, 579, 1459, 574, 1459, + /* 2220 */ 1459, 1800, 1459, 1459, 1459, 1459, 1459, 1459, 1459, 581, + /* 2230 */ 1459, 1459, 1459, 1459, 1752, 1459, 580, 1459, 1459, 1459, + /* 2240 */ 1459, 1459, 1459, 1459, 1459, 1459, 1459, 1782, 1459, 1459, + /* 2250 */ 1459, 1459, 1459, 1459, 1459, 1459, 1459, 1459, 1459, 1459, + /* 2260 */ 1459, 1813, 1459, 1459, 1459, 1793, 1783, 583, 1785, 1786, + /* 2270 */ 579, 1459, 574, 1459, 1459, 1800, 1459, 1459, 1459, 1459, + /* 2280 */ 1459, 1459, 1459, 581, 1459, 1459, 1459, 1459, 1752, 1459, + /* 2290 */ 580, 1459, 1459, 1459, 1459, 1459, 1459, 1782, 1459, 1459, + /* 2300 */ 1459, 1459, 1459, 1459, 1459, 1459, 1459, 1459, 1459, 1459, + /* 2310 */ 1459, 1459, 1459, 1459, 1782, 1813, 1459, 1459, 1459, 1792, + /* 2320 */ 1783, 583, 1785, 1786, 579, 1800, 574, 1459, 1459, 1459, + /* 2330 */ 1459, 1459, 1459, 581, 1459, 1459, 1459, 1459, 1752, 1459, + /* 2340 */ 580, 1459, 1800, 1459, 1459, 1459, 1459, 1459, 1459, 1459, + /* 2350 */ 581, 1459, 1459, 1459, 1459, 1752, 1459, 580, 1459, 1459, + /* 2360 */ 1459, 1459, 1459, 1459, 1459, 1813, 1459, 1459, 1459, 309, + /* 2370 */ 1783, 583, 1785, 1786, 579, 1459, 574, 1782, 1459, 1459, + /* 2380 */ 1459, 1459, 1813, 1459, 1459, 1459, 308, 1783, 583, 1785, + /* 2390 */ 1786, 579, 1459, 574, 1459, 1459, 1459, 1459, 1782, 1459, + /* 2400 */ 1459, 1459, 1459, 1459, 1459, 1800, 1459, 1459, 1459, 1459, + /* 2410 */ 1459, 1459, 1459, 581, 1459, 1459, 1459, 1459, 1752, 1459, + /* 2420 */ 580, 1459, 1459, 1459, 1459, 1459, 1800, 1459, 1459, 1459, + /* 2430 */ 1459, 1459, 1459, 1459, 581, 1459, 1459, 1459, 1459, 1752, + /* 2440 */ 1782, 580, 1459, 1459, 1459, 1813, 1459, 1459, 1459, 310, + /* 2450 */ 1783, 583, 1785, 1786, 579, 1459, 574, 1459, 1459, 1459, + /* 2460 */ 1459, 1459, 1459, 1459, 1459, 1459, 1813, 1459, 1800, 1459, + /* 2470 */ 307, 1783, 583, 1785, 1786, 579, 581, 574, 1459, 1459, + /* 2480 */ 1459, 1752, 1459, 580, 1459, 1459, 1459, 1459, 1459, 1459, + /* 2490 */ 1459, 1459, 1459, 1459, 1459, 1459, 1459, 1459, 1459, 1459, + /* 2500 */ 1459, 1459, 1459, 1459, 1459, 1459, 1459, 1459, 1813, 1459, + /* 2510 */ 1459, 1459, 287, 1783, 583, 1785, 1786, 579, 1459, 574, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 261, 355, 263, 264, 261, 269, 263, 264, 300, 4, - /* 10 */ 285, 0, 12, 13, 368, 265, 308, 292, 372, 311, - /* 20 */ 20, 267, 22, 0, 8, 9, 301, 291, 12, 13, - /* 30 */ 14, 15, 16, 33, 280, 35, 257, 12, 13, 14, - /* 40 */ 15, 16, 288, 293, 21, 0, 265, 24, 25, 26, - /* 50 */ 27, 28, 29, 30, 31, 32, 56, 265, 265, 43, - /* 60 */ 60, 20, 296, 22, 285, 299, 300, 67, 276, 256, - /* 70 */ 285, 258, 293, 267, 293, 283, 35, 298, 293, 300, - /* 80 */ 12, 13, 14, 333, 84, 293, 293, 84, 20, 84, - /* 90 */ 22, 50, 47, 314, 288, 314, 314, 347, 348, 349, - /* 100 */ 350, 33, 352, 35, 325, 257, 106, 0, 329, 330, - /* 110 */ 331, 332, 333, 334, 333, 336, 331, 20, 339, 20, - /* 120 */ 120, 121, 343, 344, 56, 257, 333, 265, 60, 348, - /* 130 */ 349, 350, 0, 352, 355, 67, 355, 355, 276, 340, - /* 140 */ 341, 348, 349, 350, 257, 352, 298, 368, 59, 368, - /* 150 */ 368, 372, 84, 372, 372, 293, 24, 25, 26, 27, - /* 160 */ 28, 29, 30, 31, 32, 165, 298, 167, 20, 62, - /* 170 */ 63, 64, 285, 355, 106, 68, 115, 116, 71, 72, - /* 180 */ 293, 84, 75, 76, 77, 298, 368, 300, 120, 121, - /* 190 */ 372, 262, 192, 193, 265, 195, 196, 197, 198, 199, + /* 0 */ 266, 0, 262, 266, 264, 265, 262, 287, 264, 265, + /* 10 */ 288, 277, 12, 13, 266, 4, 301, 287, 284, 315, + /* 20 */ 20, 299, 22, 4, 309, 268, 258, 312, 294, 341, + /* 30 */ 342, 294, 271, 33, 21, 35, 275, 24, 25, 26, + /* 40 */ 27, 28, 29, 30, 31, 32, 289, 325, 326, 327, + /* 50 */ 270, 303, 315, 356, 286, 20, 56, 0, 20, 337, + /* 60 */ 356, 61, 294, 44, 45, 21, 369, 299, 68, 301, + /* 70 */ 373, 334, 292, 369, 12, 13, 14, 373, 34, 22, + /* 80 */ 36, 266, 20, 315, 22, 85, 349, 350, 351, 20, + /* 90 */ 353, 22, 277, 356, 326, 33, 85, 35, 330, 331, + /* 100 */ 332, 333, 334, 335, 35, 337, 369, 107, 340, 294, + /* 110 */ 373, 297, 344, 345, 300, 301, 270, 85, 56, 50, + /* 120 */ 85, 121, 122, 61, 356, 0, 356, 8, 9, 283, + /* 130 */ 68, 12, 13, 14, 15, 16, 97, 369, 292, 369, + /* 140 */ 257, 373, 259, 373, 258, 258, 21, 85, 56, 24, + /* 150 */ 25, 26, 27, 28, 29, 30, 31, 32, 119, 121, + /* 160 */ 122, 63, 64, 65, 56, 356, 166, 69, 168, 107, + /* 170 */ 72, 73, 278, 286, 76, 77, 78, 255, 369, 87, + /* 180 */ 286, 294, 373, 121, 122, 299, 299, 20, 301, 295, + /* 190 */ 300, 301, 84, 193, 194, 87, 196, 197, 198, 199, /* 200 */ 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, - /* 210 */ 210, 211, 325, 192, 20, 150, 329, 330, 331, 332, - /* 220 */ 333, 334, 20, 336, 224, 254, 339, 224, 20, 224, - /* 230 */ 343, 344, 345, 165, 37, 167, 84, 176, 285, 270, - /* 240 */ 179, 354, 4, 274, 8, 9, 285, 294, 12, 13, - /* 250 */ 14, 15, 16, 292, 233, 234, 235, 236, 237, 257, - /* 260 */ 192, 193, 301, 195, 196, 197, 198, 199, 200, 201, - /* 270 */ 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, - /* 280 */ 12, 13, 44, 45, 87, 314, 89, 90, 20, 92, - /* 290 */ 22, 257, 84, 96, 229, 230, 60, 147, 1, 2, - /* 300 */ 298, 33, 21, 35, 284, 24, 25, 26, 27, 28, - /* 310 */ 29, 30, 31, 32, 265, 118, 164, 297, 166, 285, - /* 320 */ 170, 85, 120, 121, 56, 20, 355, 293, 60, 93, - /* 330 */ 299, 300, 298, 262, 300, 67, 265, 12, 13, 368, - /* 340 */ 62, 63, 64, 372, 355, 20, 68, 22, 0, 71, - /* 350 */ 72, 302, 84, 75, 76, 77, 95, 368, 33, 325, - /* 360 */ 35, 372, 212, 329, 330, 331, 332, 333, 334, 14, - /* 370 */ 336, 269, 160, 339, 106, 20, 224, 343, 344, 345, - /* 380 */ 14, 56, 85, 147, 282, 20, 20, 22, 120, 121, - /* 390 */ 196, 357, 67, 291, 182, 183, 20, 8, 9, 365, - /* 400 */ 0, 12, 13, 14, 15, 16, 170, 271, 272, 84, - /* 410 */ 62, 63, 64, 65, 66, 50, 68, 69, 70, 71, - /* 420 */ 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, - /* 430 */ 277, 106, 224, 165, 43, 167, 8, 9, 285, 59, - /* 440 */ 12, 13, 14, 15, 16, 120, 121, 294, 212, 213, - /* 450 */ 214, 215, 216, 217, 218, 219, 220, 221, 20, 59, - /* 460 */ 192, 193, 257, 195, 196, 197, 198, 199, 200, 201, - /* 470 */ 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, - /* 480 */ 8, 9, 56, 265, 12, 13, 14, 15, 16, 56, - /* 490 */ 165, 116, 167, 115, 276, 20, 277, 14, 15, 16, - /* 500 */ 3, 8, 9, 298, 285, 12, 13, 14, 15, 16, - /* 510 */ 84, 293, 86, 294, 271, 272, 83, 192, 193, 86, - /* 520 */ 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, - /* 530 */ 205, 206, 207, 208, 209, 210, 211, 12, 13, 14, - /* 540 */ 310, 152, 312, 257, 277, 20, 257, 22, 20, 224, - /* 550 */ 175, 176, 285, 60, 179, 177, 178, 85, 33, 78, - /* 560 */ 35, 294, 196, 97, 98, 99, 100, 101, 102, 103, - /* 570 */ 104, 105, 106, 107, 285, 109, 110, 111, 112, 113, - /* 580 */ 114, 56, 293, 4, 298, 157, 93, 298, 265, 300, - /* 590 */ 152, 96, 67, 257, 12, 13, 293, 22, 19, 276, - /* 600 */ 42, 43, 20, 314, 22, 124, 125, 304, 67, 84, - /* 610 */ 35, 35, 33, 118, 325, 33, 293, 35, 329, 330, - /* 620 */ 331, 332, 333, 334, 21, 336, 47, 152, 339, 257, - /* 630 */ 51, 106, 343, 344, 298, 56, 245, 34, 56, 36, - /* 640 */ 147, 2, 67, 67, 355, 120, 121, 8, 9, 67, - /* 650 */ 224, 12, 13, 14, 15, 16, 0, 368, 327, 257, - /* 660 */ 257, 372, 83, 170, 96, 86, 84, 327, 43, 265, - /* 670 */ 298, 8, 9, 285, 246, 12, 13, 14, 15, 16, - /* 680 */ 276, 106, 351, 115, 116, 117, 118, 119, 106, 301, - /* 690 */ 165, 351, 167, 44, 45, 327, 314, 293, 257, 39, - /* 700 */ 298, 298, 120, 121, 0, 212, 213, 214, 215, 216, - /* 710 */ 217, 218, 219, 220, 221, 59, 286, 192, 193, 351, - /* 720 */ 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, - /* 730 */ 205, 206, 207, 208, 209, 210, 211, 355, 241, 298, - /* 740 */ 165, 310, 167, 312, 273, 2, 275, 165, 85, 167, - /* 750 */ 368, 8, 9, 300, 372, 12, 13, 14, 15, 16, - /* 760 */ 314, 222, 223, 67, 311, 8, 9, 192, 193, 12, - /* 770 */ 13, 14, 15, 16, 192, 193, 56, 195, 196, 197, - /* 780 */ 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, - /* 790 */ 208, 209, 210, 211, 12, 13, 18, 286, 20, 257, - /* 800 */ 96, 355, 20, 257, 22, 27, 86, 295, 30, 257, - /* 810 */ 298, 0, 4, 265, 368, 33, 314, 35, 372, 115, - /* 820 */ 116, 117, 118, 119, 276, 47, 257, 49, 257, 51, - /* 830 */ 14, 285, 295, 22, 278, 298, 20, 281, 56, 293, - /* 840 */ 298, 293, 85, 0, 298, 265, 300, 8, 9, 67, - /* 850 */ 298, 12, 13, 14, 15, 16, 276, 355, 265, 152, - /* 860 */ 153, 83, 88, 283, 35, 91, 84, 298, 243, 298, - /* 870 */ 368, 325, 286, 293, 372, 329, 330, 331, 332, 333, - /* 880 */ 334, 257, 336, 223, 257, 339, 293, 257, 106, 343, - /* 890 */ 344, 345, 257, 257, 88, 1, 2, 91, 35, 286, - /* 900 */ 354, 123, 120, 121, 126, 127, 128, 129, 130, 131, - /* 910 */ 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, - /* 920 */ 142, 143, 298, 145, 146, 298, 333, 265, 298, 265, - /* 930 */ 43, 18, 35, 298, 298, 265, 23, 265, 276, 96, - /* 940 */ 276, 348, 349, 350, 60, 352, 276, 165, 276, 167, - /* 950 */ 37, 38, 120, 121, 41, 293, 318, 293, 115, 116, - /* 960 */ 117, 118, 119, 293, 67, 293, 257, 286, 286, 286, - /* 970 */ 57, 58, 85, 43, 192, 193, 265, 195, 196, 197, - /* 980 */ 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, - /* 990 */ 208, 209, 210, 211, 285, 265, 167, 84, 88, 265, - /* 1000 */ 265, 91, 293, 265, 293, 88, 276, 298, 91, 300, - /* 1010 */ 276, 276, 196, 287, 276, 85, 43, 258, 287, 274, - /* 1020 */ 375, 265, 321, 293, 298, 314, 266, 293, 293, 298, - /* 1030 */ 167, 293, 276, 225, 325, 122, 265, 257, 329, 330, - /* 1040 */ 331, 332, 333, 334, 333, 336, 0, 276, 339, 293, - /* 1050 */ 324, 325, 343, 344, 345, 324, 325, 326, 85, 348, - /* 1060 */ 349, 350, 336, 352, 293, 285, 355, 336, 22, 0, - /* 1070 */ 157, 158, 159, 293, 365, 162, 192, 84, 298, 368, - /* 1080 */ 300, 168, 366, 372, 46, 12, 13, 94, 43, 362, - /* 1090 */ 43, 22, 285, 43, 181, 22, 43, 184, 264, 186, - /* 1100 */ 187, 188, 189, 190, 191, 325, 33, 287, 35, 329, - /* 1110 */ 330, 331, 332, 333, 334, 287, 336, 43, 298, 339, - /* 1120 */ 265, 297, 84, 343, 344, 345, 298, 0, 43, 56, - /* 1130 */ 85, 276, 85, 257, 354, 85, 266, 224, 85, 43, - /* 1140 */ 67, 43, 328, 43, 324, 325, 326, 43, 293, 43, - /* 1150 */ 43, 43, 324, 325, 353, 346, 336, 369, 369, 85, - /* 1160 */ 369, 285, 84, 289, 336, 226, 356, 323, 20, 293, - /* 1170 */ 85, 265, 47, 322, 298, 48, 300, 35, 271, 106, - /* 1180 */ 163, 85, 316, 85, 265, 85, 265, 42, 305, 85, - /* 1190 */ 314, 85, 85, 85, 257, 147, 303, 265, 303, 265, - /* 1200 */ 259, 325, 20, 259, 20, 329, 330, 331, 332, 333, - /* 1210 */ 334, 320, 336, 20, 269, 300, 269, 313, 20, 269, - /* 1220 */ 315, 313, 285, 269, 20, 269, 306, 269, 265, 269, - /* 1230 */ 293, 355, 320, 259, 285, 298, 285, 300, 165, 259, - /* 1240 */ 167, 265, 285, 173, 368, 267, 285, 257, 372, 285, - /* 1250 */ 285, 314, 285, 285, 285, 285, 285, 298, 267, 319, - /* 1260 */ 265, 265, 325, 231, 267, 192, 329, 330, 331, 332, - /* 1270 */ 333, 334, 300, 336, 267, 285, 203, 204, 205, 206, - /* 1280 */ 207, 208, 209, 293, 309, 298, 298, 298, 298, 149, - /* 1290 */ 300, 309, 355, 307, 313, 293, 298, 298, 306, 257, - /* 1300 */ 281, 267, 293, 20, 298, 368, 298, 328, 232, 372, - /* 1310 */ 309, 298, 309, 361, 361, 325, 298, 238, 298, 329, - /* 1320 */ 330, 331, 332, 333, 334, 156, 336, 285, 240, 339, - /* 1330 */ 364, 239, 227, 343, 344, 293, 223, 323, 361, 20, - /* 1340 */ 298, 244, 300, 358, 360, 293, 363, 84, 327, 247, - /* 1350 */ 289, 265, 257, 359, 242, 298, 275, 267, 36, 260, - /* 1360 */ 259, 317, 279, 312, 0, 342, 257, 325, 279, 255, - /* 1370 */ 370, 329, 330, 331, 332, 333, 334, 175, 336, 268, - /* 1380 */ 285, 339, 371, 371, 0, 343, 344, 371, 293, 279, - /* 1390 */ 0, 376, 370, 298, 285, 300, 370, 42, 0, 75, - /* 1400 */ 0, 35, 293, 185, 35, 35, 35, 298, 185, 300, - /* 1410 */ 0, 35, 35, 185, 0, 185, 0, 35, 0, 257, - /* 1420 */ 325, 22, 0, 35, 329, 330, 331, 332, 333, 334, - /* 1430 */ 335, 336, 337, 338, 325, 0, 84, 257, 329, 330, - /* 1440 */ 331, 332, 333, 334, 169, 336, 170, 285, 167, 0, - /* 1450 */ 165, 0, 161, 160, 0, 293, 0, 46, 0, 0, - /* 1460 */ 298, 0, 300, 0, 144, 285, 0, 0, 0, 0, - /* 1470 */ 290, 139, 35, 293, 0, 139, 0, 0, 298, 0, - /* 1480 */ 300, 0, 373, 374, 0, 0, 0, 325, 0, 257, - /* 1490 */ 0, 329, 330, 331, 332, 333, 334, 0, 336, 0, - /* 1500 */ 0, 339, 0, 0, 42, 325, 344, 0, 0, 329, - /* 1510 */ 330, 331, 332, 333, 334, 0, 336, 285, 22, 0, - /* 1520 */ 0, 0, 290, 0, 0, 293, 0, 0, 0, 56, - /* 1530 */ 298, 257, 300, 0, 0, 42, 14, 39, 43, 14, - /* 1540 */ 0, 257, 0, 0, 0, 40, 0, 46, 39, 39, - /* 1550 */ 46, 156, 0, 0, 0, 0, 39, 325, 47, 285, - /* 1560 */ 0, 329, 330, 331, 332, 333, 334, 293, 336, 285, - /* 1570 */ 35, 35, 298, 61, 300, 0, 47, 293, 39, 47, - /* 1580 */ 35, 0, 298, 35, 300, 47, 39, 0, 39, 0, - /* 1590 */ 0, 257, 0, 35, 22, 0, 35, 35, 35, 325, - /* 1600 */ 35, 35, 43, 329, 330, 331, 332, 333, 334, 325, - /* 1610 */ 336, 43, 35, 329, 330, 331, 332, 333, 334, 285, - /* 1620 */ 336, 35, 91, 93, 0, 22, 35, 293, 0, 22, - /* 1630 */ 0, 49, 298, 22, 300, 0, 35, 35, 0, 35, - /* 1640 */ 0, 367, 22, 257, 0, 20, 0, 35, 22, 171, - /* 1650 */ 0, 0, 0, 0, 0, 84, 0, 84, 374, 325, - /* 1660 */ 257, 85, 149, 329, 330, 331, 332, 333, 334, 180, - /* 1670 */ 336, 285, 338, 0, 94, 39, 290, 84, 84, 293, - /* 1680 */ 46, 228, 43, 84, 298, 43, 300, 46, 285, 152, - /* 1690 */ 85, 85, 84, 290, 85, 154, 293, 84, 43, 148, - /* 1700 */ 85, 298, 152, 300, 85, 84, 84, 150, 152, 46, - /* 1710 */ 43, 325, 85, 19, 85, 329, 330, 331, 332, 333, - /* 1720 */ 334, 84, 336, 46, 43, 46, 43, 33, 325, 84, - /* 1730 */ 46, 35, 329, 330, 331, 332, 333, 334, 222, 336, - /* 1740 */ 35, 47, 228, 85, 85, 33, 52, 53, 54, 55, - /* 1750 */ 56, 257, 35, 35, 35, 35, 2, 22, 43, 47, - /* 1760 */ 84, 22, 192, 257, 52, 53, 54, 55, 56, 46, - /* 1770 */ 85, 84, 46, 85, 84, 257, 85, 83, 194, 285, - /* 1780 */ 86, 84, 84, 84, 95, 85, 35, 293, 35, 85, - /* 1790 */ 84, 285, 298, 35, 300, 83, 85, 228, 86, 293, - /* 1800 */ 84, 35, 35, 285, 298, 84, 300, 85, 84, 35, - /* 1810 */ 85, 293, 84, 119, 22, 108, 298, 108, 300, 325, - /* 1820 */ 35, 108, 108, 329, 330, 331, 332, 333, 334, 84, - /* 1830 */ 336, 325, 96, 84, 84, 329, 330, 331, 332, 333, - /* 1840 */ 334, 43, 336, 325, 22, 151, 60, 329, 330, 331, - /* 1850 */ 332, 333, 334, 35, 336, 61, 67, 257, 82, 43, - /* 1860 */ 148, 149, 35, 151, 35, 35, 172, 155, 174, 35, - /* 1870 */ 35, 257, 22, 35, 35, 67, 0, 35, 35, 35, - /* 1880 */ 35, 35, 35, 35, 35, 285, 174, 35, 0, 0, - /* 1890 */ 39, 35, 39, 293, 35, 0, 35, 39, 298, 285, - /* 1900 */ 300, 47, 47, 39, 47, 0, 35, 293, 35, 47, - /* 1910 */ 0, 21, 298, 22, 300, 22, 22, 21, 20, 377, - /* 1920 */ 377, 257, 377, 377, 377, 325, 377, 377, 377, 329, - /* 1930 */ 330, 331, 332, 333, 334, 377, 336, 257, 377, 325, - /* 1940 */ 377, 377, 377, 329, 330, 331, 332, 333, 334, 285, - /* 1950 */ 336, 377, 377, 377, 377, 377, 377, 293, 377, 377, - /* 1960 */ 377, 377, 298, 377, 300, 285, 377, 377, 377, 377, - /* 1970 */ 377, 377, 377, 293, 377, 377, 377, 377, 298, 377, - /* 1980 */ 300, 377, 377, 377, 377, 377, 377, 377, 377, 325, - /* 1990 */ 257, 377, 377, 329, 330, 331, 332, 333, 334, 377, - /* 2000 */ 336, 377, 377, 377, 257, 325, 377, 377, 377, 329, - /* 2010 */ 330, 331, 332, 333, 334, 377, 336, 377, 285, 377, - /* 2020 */ 377, 377, 377, 377, 377, 377, 293, 377, 377, 377, - /* 2030 */ 377, 298, 285, 300, 377, 377, 377, 377, 377, 377, - /* 2040 */ 293, 377, 377, 377, 377, 298, 377, 300, 377, 377, - /* 2050 */ 377, 377, 377, 377, 377, 377, 257, 377, 325, 377, - /* 2060 */ 377, 377, 329, 330, 331, 332, 333, 334, 377, 336, - /* 2070 */ 377, 377, 325, 377, 257, 377, 329, 330, 331, 332, - /* 2080 */ 333, 334, 377, 336, 285, 377, 377, 377, 377, 377, - /* 2090 */ 377, 377, 293, 377, 377, 377, 377, 298, 257, 300, - /* 2100 */ 377, 377, 285, 377, 377, 377, 377, 377, 377, 377, - /* 2110 */ 293, 377, 377, 377, 377, 298, 377, 300, 377, 377, - /* 2120 */ 377, 377, 377, 377, 325, 377, 285, 377, 329, 330, - /* 2130 */ 331, 332, 333, 334, 293, 336, 377, 377, 377, 298, - /* 2140 */ 377, 300, 325, 377, 377, 377, 329, 330, 331, 332, - /* 2150 */ 333, 334, 377, 336, 377, 377, 257, 377, 377, 377, - /* 2160 */ 377, 377, 377, 377, 377, 377, 325, 377, 377, 377, - /* 2170 */ 329, 330, 331, 332, 333, 334, 377, 336, 377, 257, - /* 2180 */ 377, 377, 377, 377, 285, 377, 377, 377, 377, 377, - /* 2190 */ 377, 377, 293, 377, 377, 377, 377, 298, 377, 300, - /* 2200 */ 377, 377, 377, 377, 377, 377, 377, 285, 377, 377, - /* 2210 */ 377, 377, 377, 377, 377, 293, 377, 377, 377, 377, - /* 2220 */ 298, 377, 300, 377, 325, 377, 377, 377, 329, 330, - /* 2230 */ 331, 332, 333, 334, 377, 336, 257, 377, 377, 377, - /* 2240 */ 377, 377, 377, 377, 377, 377, 377, 325, 257, 377, - /* 2250 */ 377, 329, 330, 331, 332, 333, 334, 377, 336, 377, - /* 2260 */ 377, 377, 257, 377, 285, 377, 377, 377, 377, 377, - /* 2270 */ 377, 377, 293, 377, 377, 377, 285, 298, 377, 300, - /* 2280 */ 377, 377, 377, 377, 293, 377, 377, 377, 377, 298, - /* 2290 */ 285, 300, 377, 377, 377, 377, 377, 377, 293, 377, - /* 2300 */ 377, 377, 377, 298, 325, 300, 377, 377, 329, 330, - /* 2310 */ 331, 332, 333, 334, 257, 336, 325, 377, 377, 377, - /* 2320 */ 329, 330, 331, 332, 333, 334, 377, 336, 377, 377, - /* 2330 */ 325, 377, 257, 377, 329, 330, 331, 332, 333, 334, - /* 2340 */ 377, 336, 285, 377, 377, 377, 377, 377, 377, 377, - /* 2350 */ 293, 377, 377, 377, 377, 298, 257, 300, 377, 377, - /* 2360 */ 285, 377, 377, 377, 377, 377, 377, 377, 293, 377, - /* 2370 */ 377, 377, 377, 298, 377, 300, 377, 377, 377, 377, - /* 2380 */ 377, 377, 325, 377, 285, 377, 329, 330, 331, 332, - /* 2390 */ 333, 334, 293, 336, 377, 377, 377, 298, 377, 300, - /* 2400 */ 325, 377, 377, 377, 329, 330, 331, 332, 333, 334, - /* 2410 */ 377, 336, 377, 377, 377, 377, 377, 377, 377, 377, - /* 2420 */ 377, 377, 377, 377, 325, 377, 377, 377, 329, 330, - /* 2430 */ 331, 332, 333, 334, 377, 336, + /* 210 */ 210, 211, 212, 326, 14, 15, 16, 330, 331, 332, + /* 220 */ 333, 334, 335, 266, 337, 225, 161, 340, 166, 20, + /* 230 */ 168, 344, 345, 346, 277, 79, 225, 315, 258, 8, + /* 240 */ 9, 284, 60, 12, 13, 14, 15, 16, 183, 184, + /* 250 */ 20, 294, 266, 366, 4, 193, 194, 225, 196, 197, + /* 260 */ 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, + /* 270 */ 208, 209, 210, 211, 212, 12, 13, 158, 356, 299, + /* 280 */ 294, 125, 126, 20, 116, 22, 12, 13, 14, 15, + /* 290 */ 16, 369, 61, 85, 85, 373, 33, 0, 35, 98, + /* 300 */ 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, + /* 310 */ 286, 110, 111, 112, 113, 114, 115, 86, 294, 56, + /* 320 */ 334, 258, 8, 9, 61, 94, 12, 13, 14, 15, + /* 330 */ 16, 68, 12, 13, 348, 349, 350, 351, 268, 353, + /* 340 */ 20, 266, 22, 288, 47, 286, 178, 179, 85, 286, + /* 350 */ 278, 281, 293, 33, 299, 35, 332, 294, 286, 289, + /* 360 */ 278, 302, 299, 266, 301, 14, 247, 295, 286, 294, + /* 370 */ 107, 20, 20, 165, 277, 167, 56, 295, 315, 148, + /* 380 */ 325, 326, 327, 0, 121, 122, 0, 263, 68, 326, + /* 390 */ 266, 294, 337, 330, 331, 332, 333, 334, 335, 258, + /* 400 */ 337, 263, 171, 340, 266, 85, 56, 344, 345, 334, + /* 410 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 356, + /* 420 */ 272, 273, 272, 273, 349, 350, 351, 107, 353, 166, + /* 430 */ 117, 168, 369, 225, 225, 85, 373, 87, 315, 258, + /* 440 */ 299, 121, 122, 60, 213, 214, 215, 216, 217, 218, + /* 450 */ 219, 220, 221, 222, 258, 37, 193, 194, 20, 196, + /* 460 */ 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, + /* 470 */ 207, 208, 209, 210, 211, 212, 226, 8, 9, 356, + /* 480 */ 299, 12, 13, 14, 15, 16, 166, 148, 168, 176, + /* 490 */ 177, 286, 369, 180, 151, 299, 373, 8, 9, 315, + /* 500 */ 20, 12, 13, 14, 15, 16, 88, 302, 90, 91, + /* 510 */ 171, 93, 60, 193, 194, 97, 196, 197, 198, 199, + /* 520 */ 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, + /* 530 */ 210, 211, 212, 12, 13, 14, 14, 119, 44, 45, + /* 540 */ 356, 20, 20, 22, 258, 225, 328, 258, 197, 20, + /* 550 */ 61, 22, 213, 369, 33, 86, 35, 373, 288, 8, + /* 560 */ 9, 116, 117, 12, 13, 14, 15, 16, 20, 299, + /* 570 */ 352, 266, 286, 230, 231, 225, 0, 56, 20, 50, + /* 580 */ 294, 266, 266, 94, 285, 299, 258, 301, 299, 68, + /* 590 */ 12, 13, 277, 277, 43, 325, 326, 298, 20, 294, + /* 600 */ 22, 0, 35, 1, 2, 286, 85, 337, 286, 294, + /* 610 */ 294, 33, 326, 35, 295, 293, 330, 331, 332, 333, + /* 620 */ 334, 335, 177, 337, 302, 180, 340, 299, 107, 266, + /* 630 */ 344, 345, 346, 153, 56, 68, 60, 148, 328, 334, + /* 640 */ 277, 259, 121, 122, 358, 14, 68, 311, 294, 313, + /* 650 */ 301, 20, 366, 68, 349, 350, 351, 294, 353, 305, + /* 660 */ 171, 312, 352, 85, 63, 64, 65, 66, 67, 43, + /* 670 */ 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, + /* 680 */ 79, 80, 81, 82, 0, 107, 20, 166, 86, 168, + /* 690 */ 8, 9, 328, 258, 12, 13, 14, 15, 16, 121, + /* 700 */ 122, 153, 213, 214, 215, 216, 217, 218, 219, 220, + /* 710 */ 221, 222, 39, 258, 193, 194, 352, 196, 197, 198, + /* 720 */ 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, + /* 730 */ 209, 210, 211, 212, 299, 8, 9, 223, 224, 12, + /* 740 */ 13, 14, 15, 16, 166, 96, 168, 63, 64, 65, + /* 750 */ 42, 43, 22, 69, 299, 279, 72, 73, 282, 68, + /* 760 */ 76, 77, 78, 258, 287, 35, 193, 311, 86, 313, + /* 770 */ 296, 193, 194, 299, 196, 197, 198, 199, 200, 201, + /* 780 */ 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, + /* 790 */ 212, 12, 13, 18, 296, 20, 97, 299, 68, 20, + /* 800 */ 287, 22, 27, 258, 299, 30, 287, 234, 235, 236, + /* 810 */ 237, 238, 33, 86, 35, 116, 117, 118, 119, 120, + /* 820 */ 1, 2, 47, 0, 49, 287, 51, 3, 197, 266, + /* 830 */ 266, 286, 266, 258, 274, 56, 276, 107, 0, 294, + /* 840 */ 277, 277, 2, 277, 299, 319, 301, 68, 8, 9, + /* 850 */ 0, 0, 12, 13, 14, 15, 16, 294, 294, 84, + /* 860 */ 294, 8, 9, 197, 85, 12, 13, 14, 15, 16, + /* 870 */ 244, 326, 22, 22, 299, 330, 331, 332, 333, 334, + /* 880 */ 335, 2, 337, 287, 43, 340, 107, 8, 9, 344, + /* 890 */ 345, 12, 13, 14, 15, 16, 166, 224, 168, 124, + /* 900 */ 121, 122, 127, 128, 129, 130, 131, 132, 133, 134, + /* 910 */ 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, + /* 920 */ 97, 146, 147, 193, 194, 266, 258, 86, 89, 18, + /* 930 */ 275, 92, 43, 266, 23, 97, 277, 153, 154, 116, + /* 940 */ 117, 118, 119, 120, 277, 166, 376, 168, 37, 38, + /* 950 */ 43, 43, 41, 294, 116, 117, 118, 119, 120, 35, + /* 960 */ 288, 294, 315, 258, 258, 121, 122, 299, 57, 58, + /* 970 */ 59, 299, 193, 194, 258, 196, 197, 198, 199, 200, + /* 980 */ 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, + /* 990 */ 211, 212, 286, 86, 86, 367, 85, 325, 326, 266, + /* 1000 */ 294, 267, 266, 356, 299, 299, 153, 301, 258, 337, + /* 1010 */ 277, 35, 258, 277, 266, 299, 369, 46, 89, 258, + /* 1020 */ 373, 92, 258, 89, 258, 277, 92, 294, 61, 322, + /* 1030 */ 294, 286, 326, 363, 123, 43, 330, 331, 332, 333, + /* 1040 */ 334, 335, 294, 337, 266, 258, 340, 266, 266, 299, + /* 1050 */ 344, 345, 346, 299, 89, 277, 85, 92, 277, 277, + /* 1060 */ 299, 355, 266, 299, 35, 299, 242, 43, 0, 158, + /* 1070 */ 159, 160, 294, 286, 163, 294, 294, 267, 86, 85, + /* 1080 */ 169, 294, 43, 43, 12, 13, 299, 265, 301, 95, + /* 1090 */ 294, 43, 168, 182, 22, 298, 185, 68, 187, 188, + /* 1100 */ 189, 190, 191, 192, 347, 33, 329, 35, 370, 354, + /* 1110 */ 86, 315, 370, 326, 43, 357, 48, 330, 331, 332, + /* 1120 */ 333, 334, 335, 258, 337, 86, 86, 340, 56, 43, + /* 1130 */ 334, 344, 345, 346, 86, 246, 225, 43, 4, 370, + /* 1140 */ 68, 85, 355, 43, 168, 349, 350, 351, 290, 353, + /* 1150 */ 227, 286, 356, 19, 324, 20, 266, 86, 43, 294, + /* 1160 */ 193, 47, 164, 43, 299, 369, 301, 33, 323, 373, + /* 1170 */ 43, 43, 86, 35, 272, 266, 258, 317, 266, 107, + /* 1180 */ 86, 47, 42, 306, 148, 51, 86, 304, 304, 20, + /* 1190 */ 56, 326, 266, 266, 266, 330, 331, 332, 333, 334, + /* 1200 */ 335, 86, 337, 260, 286, 340, 86, 260, 20, 344, + /* 1210 */ 345, 346, 294, 86, 86, 321, 270, 299, 84, 301, + /* 1220 */ 355, 87, 301, 270, 20, 20, 316, 314, 258, 270, + /* 1230 */ 314, 270, 20, 315, 270, 266, 270, 307, 166, 260, + /* 1240 */ 168, 286, 270, 286, 326, 260, 286, 299, 330, 331, + /* 1250 */ 332, 333, 334, 335, 286, 337, 286, 266, 321, 286, + /* 1260 */ 286, 286, 174, 286, 294, 193, 286, 286, 286, 299, + /* 1270 */ 268, 301, 320, 268, 356, 266, 204, 205, 206, 207, + /* 1280 */ 208, 209, 210, 266, 301, 315, 268, 369, 299, 232, + /* 1290 */ 268, 373, 314, 258, 310, 299, 326, 310, 299, 299, + /* 1300 */ 330, 331, 332, 333, 334, 335, 299, 337, 150, 258, + /* 1310 */ 294, 308, 282, 307, 268, 294, 20, 329, 299, 299, + /* 1320 */ 233, 286, 310, 310, 362, 299, 356, 299, 239, 294, + /* 1330 */ 299, 157, 241, 240, 299, 228, 301, 286, 324, 369, + /* 1340 */ 224, 294, 20, 373, 245, 294, 243, 85, 362, 248, + /* 1350 */ 299, 328, 301, 343, 290, 365, 361, 364, 299, 362, + /* 1360 */ 359, 326, 266, 268, 258, 330, 331, 332, 333, 334, + /* 1370 */ 335, 360, 337, 276, 36, 340, 258, 326, 261, 344, + /* 1380 */ 345, 330, 331, 332, 333, 334, 335, 336, 337, 338, + /* 1390 */ 339, 260, 286, 318, 313, 269, 0, 372, 371, 280, + /* 1400 */ 294, 280, 280, 256, 286, 299, 372, 301, 371, 377, + /* 1410 */ 372, 176, 294, 371, 0, 0, 42, 299, 0, 301, + /* 1420 */ 76, 0, 35, 186, 35, 35, 35, 186, 0, 35, + /* 1430 */ 35, 186, 326, 0, 186, 0, 330, 331, 332, 333, + /* 1440 */ 334, 335, 35, 337, 326, 0, 22, 0, 330, 331, + /* 1450 */ 332, 333, 334, 335, 258, 337, 0, 35, 340, 171, + /* 1460 */ 85, 170, 168, 345, 166, 0, 0, 162, 258, 161, + /* 1470 */ 0, 0, 46, 0, 0, 0, 145, 0, 258, 0, + /* 1480 */ 374, 375, 286, 0, 0, 0, 140, 291, 35, 0, + /* 1490 */ 294, 140, 0, 0, 0, 299, 286, 301, 0, 0, + /* 1500 */ 0, 291, 0, 0, 294, 0, 286, 0, 0, 299, + /* 1510 */ 0, 301, 0, 0, 294, 0, 0, 0, 42, 299, + /* 1520 */ 0, 301, 326, 0, 0, 0, 330, 331, 332, 333, + /* 1530 */ 334, 335, 0, 337, 0, 258, 326, 0, 0, 0, + /* 1540 */ 330, 331, 332, 333, 334, 335, 326, 337, 0, 22, + /* 1550 */ 330, 331, 332, 333, 334, 335, 0, 337, 0, 258, + /* 1560 */ 56, 42, 56, 286, 43, 39, 14, 14, 46, 40, + /* 1570 */ 39, 294, 0, 0, 46, 0, 299, 157, 301, 39, + /* 1580 */ 0, 0, 0, 0, 0, 258, 35, 286, 368, 47, + /* 1590 */ 0, 0, 62, 39, 35, 294, 47, 35, 0, 39, + /* 1600 */ 299, 0, 301, 326, 47, 39, 35, 330, 331, 332, + /* 1610 */ 333, 334, 335, 286, 337, 47, 39, 0, 291, 0, + /* 1620 */ 0, 294, 35, 0, 22, 92, 299, 326, 301, 94, + /* 1630 */ 35, 330, 331, 332, 333, 334, 335, 43, 337, 258, + /* 1640 */ 339, 35, 35, 43, 35, 35, 35, 35, 35, 0, + /* 1650 */ 22, 0, 375, 326, 22, 19, 0, 330, 331, 332, + /* 1660 */ 333, 334, 335, 49, 337, 22, 35, 286, 0, 33, + /* 1670 */ 35, 0, 291, 35, 0, 294, 22, 20, 0, 35, + /* 1680 */ 299, 0, 301, 47, 22, 0, 172, 0, 52, 53, + /* 1690 */ 54, 55, 56, 0, 153, 150, 153, 0, 0, 153, + /* 1700 */ 85, 0, 155, 0, 86, 39, 85, 326, 43, 85, + /* 1710 */ 85, 330, 331, 332, 333, 334, 335, 33, 337, 46, + /* 1720 */ 84, 151, 258, 87, 95, 149, 229, 85, 46, 43, + /* 1730 */ 85, 47, 86, 86, 86, 85, 52, 53, 54, 55, + /* 1740 */ 56, 86, 181, 85, 85, 85, 258, 86, 43, 85, + /* 1750 */ 286, 2, 46, 43, 35, 86, 120, 46, 294, 223, + /* 1760 */ 43, 86, 46, 299, 46, 301, 86, 43, 84, 86, + /* 1770 */ 35, 87, 35, 35, 286, 35, 35, 22, 193, 229, + /* 1780 */ 85, 85, 294, 22, 229, 43, 86, 299, 152, 301, + /* 1790 */ 326, 46, 46, 86, 330, 331, 332, 333, 334, 335, + /* 1800 */ 85, 337, 258, 35, 22, 96, 86, 85, 85, 173, + /* 1810 */ 85, 175, 86, 35, 326, 85, 35, 195, 330, 331, + /* 1820 */ 332, 333, 334, 335, 85, 337, 35, 35, 35, 86, + /* 1830 */ 286, 97, 85, 149, 150, 85, 152, 86, 294, 86, + /* 1840 */ 156, 109, 86, 299, 258, 301, 35, 85, 85, 85, + /* 1850 */ 85, 43, 22, 109, 258, 35, 62, 109, 61, 175, + /* 1860 */ 83, 109, 43, 68, 35, 22, 258, 35, 35, 35, + /* 1870 */ 326, 35, 286, 35, 330, 331, 332, 333, 334, 335, + /* 1880 */ 294, 337, 286, 35, 68, 299, 35, 301, 35, 35, + /* 1890 */ 294, 35, 35, 35, 286, 299, 35, 301, 35, 0, + /* 1900 */ 35, 39, 294, 0, 35, 39, 47, 299, 0, 301, + /* 1910 */ 35, 47, 326, 39, 47, 0, 330, 331, 332, 333, + /* 1920 */ 334, 335, 326, 337, 35, 47, 330, 331, 332, 333, + /* 1930 */ 334, 335, 39, 337, 326, 35, 35, 0, 330, 331, + /* 1940 */ 332, 333, 334, 335, 0, 337, 22, 258, 21, 378, + /* 1950 */ 22, 22, 21, 20, 378, 378, 378, 378, 378, 378, + /* 1960 */ 378, 378, 378, 378, 378, 378, 258, 378, 378, 378, + /* 1970 */ 378, 378, 378, 378, 378, 286, 378, 378, 378, 378, + /* 1980 */ 378, 378, 378, 294, 378, 378, 378, 378, 299, 378, + /* 1990 */ 301, 378, 378, 378, 286, 378, 378, 378, 378, 378, + /* 2000 */ 378, 378, 294, 378, 378, 378, 378, 299, 378, 301, + /* 2010 */ 378, 378, 378, 378, 378, 326, 378, 378, 378, 330, + /* 2020 */ 331, 332, 333, 334, 335, 378, 337, 258, 378, 378, + /* 2030 */ 378, 378, 378, 378, 326, 378, 378, 378, 330, 331, + /* 2040 */ 332, 333, 334, 335, 378, 337, 258, 378, 378, 378, + /* 2050 */ 378, 378, 378, 378, 378, 286, 378, 378, 378, 378, + /* 2060 */ 378, 378, 378, 294, 378, 378, 378, 378, 299, 378, + /* 2070 */ 301, 378, 378, 378, 286, 378, 378, 378, 378, 378, + /* 2080 */ 378, 378, 294, 378, 378, 378, 378, 299, 378, 301, + /* 2090 */ 378, 378, 378, 378, 378, 326, 378, 378, 378, 330, + /* 2100 */ 331, 332, 333, 334, 335, 378, 337, 378, 378, 378, + /* 2110 */ 378, 378, 378, 258, 326, 378, 378, 378, 330, 331, + /* 2120 */ 332, 333, 334, 335, 378, 337, 378, 378, 378, 258, + /* 2130 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 258, + /* 2140 */ 378, 286, 378, 378, 378, 378, 378, 378, 378, 294, + /* 2150 */ 378, 378, 378, 378, 299, 378, 301, 286, 378, 378, + /* 2160 */ 378, 378, 378, 378, 378, 294, 378, 286, 378, 378, + /* 2170 */ 299, 378, 301, 378, 378, 294, 378, 378, 378, 378, + /* 2180 */ 299, 326, 301, 378, 378, 330, 331, 332, 333, 334, + /* 2190 */ 335, 378, 337, 258, 378, 378, 378, 326, 378, 378, + /* 2200 */ 378, 330, 331, 332, 333, 334, 335, 326, 337, 378, + /* 2210 */ 378, 330, 331, 332, 333, 334, 335, 378, 337, 378, + /* 2220 */ 378, 286, 378, 378, 378, 378, 378, 378, 378, 294, + /* 2230 */ 378, 378, 378, 378, 299, 378, 301, 378, 378, 378, + /* 2240 */ 378, 378, 378, 378, 378, 378, 378, 258, 378, 378, + /* 2250 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 2260 */ 378, 326, 378, 378, 378, 330, 331, 332, 333, 334, + /* 2270 */ 335, 378, 337, 378, 378, 286, 378, 378, 378, 378, + /* 2280 */ 378, 378, 378, 294, 378, 378, 378, 378, 299, 378, + /* 2290 */ 301, 378, 378, 378, 378, 378, 378, 258, 378, 378, + /* 2300 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 2310 */ 378, 378, 378, 378, 258, 326, 378, 378, 378, 330, + /* 2320 */ 331, 332, 333, 334, 335, 286, 337, 378, 378, 378, + /* 2330 */ 378, 378, 378, 294, 378, 378, 378, 378, 299, 378, + /* 2340 */ 301, 378, 286, 378, 378, 378, 378, 378, 378, 378, + /* 2350 */ 294, 378, 378, 378, 378, 299, 378, 301, 378, 378, + /* 2360 */ 378, 378, 378, 378, 378, 326, 378, 378, 378, 330, + /* 2370 */ 331, 332, 333, 334, 335, 378, 337, 258, 378, 378, + /* 2380 */ 378, 378, 326, 378, 378, 378, 330, 331, 332, 333, + /* 2390 */ 334, 335, 378, 337, 378, 378, 378, 378, 258, 378, + /* 2400 */ 378, 378, 378, 378, 378, 286, 378, 378, 378, 378, + /* 2410 */ 378, 378, 378, 294, 378, 378, 378, 378, 299, 378, + /* 2420 */ 301, 378, 378, 378, 378, 378, 286, 378, 378, 378, + /* 2430 */ 378, 378, 378, 378, 294, 378, 378, 378, 378, 299, + /* 2440 */ 258, 301, 378, 378, 378, 326, 378, 378, 378, 330, + /* 2450 */ 331, 332, 333, 334, 335, 378, 337, 378, 378, 378, + /* 2460 */ 378, 378, 378, 378, 378, 378, 326, 378, 286, 378, + /* 2470 */ 330, 331, 332, 333, 334, 335, 294, 337, 378, 378, + /* 2480 */ 378, 299, 378, 301, 378, 378, 378, 378, 378, 378, + /* 2490 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, + /* 2500 */ 378, 378, 378, 378, 378, 378, 378, 378, 326, 378, + /* 2510 */ 378, 378, 330, 331, 332, 333, 334, 335, 378, 337, }; -#define YY_SHIFT_COUNT (662) +#define YY_SHIFT_COUNT (665) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (1910) +#define YY_SHIFT_MAX (1944) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 913, 0, 0, 68, 68, 268, 268, 268, 325, 325, - /* 10 */ 268, 268, 525, 582, 782, 582, 582, 582, 582, 582, - /* 20 */ 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, - /* 30 */ 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, - /* 40 */ 582, 582, 208, 208, 97, 97, 97, 1073, 1073, 1073, - /* 50 */ 1073, 152, 426, 3, 3, 99, 99, 238, 238, 5, - /* 60 */ 202, 3, 3, 99, 99, 99, 99, 99, 99, 99, - /* 70 */ 99, 99, 89, 99, 99, 99, 148, 305, 99, 99, - /* 80 */ 305, 376, 99, 305, 305, 305, 99, 380, 778, 236, - /* 90 */ 493, 493, 281, 278, 575, 575, 575, 575, 575, 575, - /* 100 */ 575, 575, 575, 575, 575, 575, 575, 575, 575, 575, - /* 110 */ 575, 575, 575, 197, 202, 355, 355, 400, 576, 656, - /* 120 */ 438, 438, 438, 576, 528, 148, 11, 11, 305, 305, - /* 130 */ 541, 541, 261, 696, 466, 466, 466, 466, 466, 466, - /* 140 */ 466, 1694, 23, 107, 428, 21, 41, 375, 65, 366, - /* 150 */ 816, 365, 649, 495, 475, 539, 660, 539, 558, 497, - /* 160 */ 497, 497, 808, 194, 1078, 939, 1148, 1125, 1142, 1017, - /* 170 */ 1148, 1148, 1145, 1048, 1048, 1148, 1148, 1182, 1182, 1184, - /* 180 */ 89, 148, 89, 1193, 1198, 89, 1193, 89, 1204, 89, - /* 190 */ 89, 1148, 89, 1182, 305, 305, 305, 305, 305, 305, - /* 200 */ 305, 305, 305, 305, 305, 1148, 1182, 541, 1184, 380, - /* 210 */ 1070, 148, 380, 1148, 1148, 1193, 380, 1032, 541, 541, - /* 220 */ 541, 541, 1032, 541, 1140, 528, 1204, 380, 261, 380, - /* 230 */ 528, 1283, 541, 1076, 1032, 541, 541, 1076, 1032, 541, - /* 240 */ 541, 305, 1079, 1169, 1076, 1088, 1092, 1105, 939, 1113, - /* 250 */ 528, 1319, 1097, 1112, 1102, 1097, 1112, 1097, 1112, 1263, - /* 260 */ 1078, 541, 696, 1148, 380, 1322, 1182, 2436, 2436, 2436, - /* 270 */ 2436, 2436, 2436, 2436, 348, 1712, 132, 579, 472, 16, - /* 280 */ 663, 639, 743, 389, 757, 704, 839, 839, 839, 839, - /* 290 */ 839, 839, 839, 839, 843, 568, 25, 25, 61, 212, - /* 300 */ 433, 481, 603, 378, 297, 150, 483, 483, 483, 483, - /* 310 */ 45, 887, 774, 806, 910, 917, 811, 1046, 1069, 720, - /* 320 */ 707, 930, 973, 1045, 1047, 1050, 1053, 1074, 894, 832, - /* 330 */ 625, 391, 1096, 829, 863, 884, 1098, 1038, 1085, 1100, - /* 340 */ 1104, 1106, 1107, 1108, 993, 897, 1127, 1364, 1202, 1384, - /* 350 */ 1390, 1355, 1398, 1324, 1400, 1366, 1218, 1369, 1370, 1371, - /* 360 */ 1223, 1410, 1376, 1377, 1228, 1414, 1230, 1416, 1382, 1418, - /* 370 */ 1399, 1422, 1388, 1435, 1352, 1276, 1275, 1281, 1285, 1449, - /* 380 */ 1451, 1291, 1293, 1454, 1456, 1411, 1458, 1459, 1461, 1320, - /* 390 */ 1463, 1466, 1467, 1468, 1469, 1332, 1437, 1474, 1336, 1476, - /* 400 */ 1477, 1479, 1481, 1484, 1485, 1486, 1488, 1490, 1497, 1499, - /* 410 */ 1500, 1502, 1503, 1462, 1507, 1508, 1515, 1523, 1524, 1526, - /* 420 */ 1496, 1519, 1520, 1521, 1527, 1528, 1473, 1533, 1534, 1493, - /* 430 */ 1498, 1495, 1522, 1501, 1525, 1504, 1540, 1505, 1509, 1542, - /* 440 */ 1543, 1544, 1510, 1395, 1546, 1552, 1553, 1512, 1554, 1555, - /* 450 */ 1535, 1511, 1517, 1560, 1536, 1529, 1539, 1575, 1545, 1532, - /* 460 */ 1547, 1581, 1548, 1538, 1549, 1587, 1589, 1590, 1592, 1530, - /* 470 */ 1531, 1558, 1572, 1595, 1561, 1562, 1563, 1565, 1559, 1568, - /* 480 */ 1566, 1577, 1586, 1591, 1624, 1603, 1628, 1607, 1582, 1630, - /* 490 */ 1611, 1601, 1635, 1602, 1638, 1604, 1640, 1620, 1625, 1644, - /* 500 */ 1537, 1612, 1646, 1478, 1626, 1550, 1513, 1650, 1651, 1556, - /* 510 */ 1541, 1652, 1653, 1654, 1571, 1576, 1489, 1656, 1573, 1557, - /* 520 */ 1593, 1673, 1636, 1551, 1594, 1580, 1634, 1639, 1453, 1599, - /* 530 */ 1605, 1608, 1606, 1609, 1613, 1642, 1615, 1621, 1622, 1637, - /* 540 */ 1619, 1655, 1641, 1663, 1645, 1667, 1514, 1627, 1629, 1677, - /* 550 */ 1516, 1681, 1679, 1684, 1658, 1683, 1569, 1659, 1696, 1705, - /* 560 */ 1717, 1718, 1719, 1720, 1659, 1754, 1735, 1570, 1715, 1676, - /* 570 */ 1685, 1687, 1688, 1690, 1691, 1723, 1697, 1698, 1726, 1739, - /* 580 */ 1584, 1699, 1689, 1700, 1751, 1753, 1706, 1704, 1758, 1716, - /* 590 */ 1711, 1766, 1721, 1722, 1767, 1724, 1725, 1774, 1728, 1707, - /* 600 */ 1709, 1713, 1714, 1792, 1736, 1745, 1749, 1785, 1750, 1798, - /* 610 */ 1798, 1822, 1794, 1786, 1818, 1789, 1776, 1816, 1827, 1829, - /* 620 */ 1830, 1834, 1835, 1850, 1838, 1839, 1808, 1559, 1842, 1568, - /* 630 */ 1843, 1844, 1845, 1846, 1847, 1848, 1849, 1876, 1852, 1854, - /* 640 */ 1851, 1888, 1856, 1855, 1853, 1889, 1859, 1857, 1858, 1895, - /* 650 */ 1861, 1862, 1864, 1905, 1871, 1873, 1910, 1891, 1890, 1893, - /* 660 */ 1894, 1896, 1898, + /* 0 */ 911, 0, 0, 62, 62, 263, 263, 263, 320, 320, + /* 10 */ 263, 263, 521, 578, 779, 578, 578, 578, 578, 578, + /* 20 */ 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, + /* 30 */ 578, 578, 578, 578, 578, 578, 578, 578, 578, 578, + /* 40 */ 578, 578, 209, 209, 35, 35, 35, 1072, 1072, 1072, + /* 50 */ 1072, 208, 350, 32, 32, 167, 167, 19, 19, 11, + /* 60 */ 38, 32, 32, 167, 167, 167, 167, 167, 167, 167, + /* 70 */ 167, 167, 182, 167, 167, 167, 230, 352, 167, 167, + /* 80 */ 352, 438, 167, 352, 352, 352, 167, 452, 775, 231, + /* 90 */ 489, 489, 13, 98, 730, 730, 730, 730, 730, 730, + /* 100 */ 730, 730, 730, 730, 730, 730, 730, 730, 730, 730, + /* 110 */ 730, 730, 730, 418, 38, 522, 522, 383, 567, 576, + /* 120 */ 480, 480, 480, 567, 558, 230, 1, 1, 352, 352, + /* 130 */ 585, 585, 649, 691, 201, 201, 201, 201, 201, 201, + /* 140 */ 201, 1636, 125, 684, 119, 573, 69, 313, 343, 351, + /* 150 */ 631, 529, 494, 39, 548, 514, 673, 514, 708, 824, + /* 160 */ 824, 824, 250, 666, 1056, 923, 1135, 1114, 1138, 998, + /* 170 */ 1135, 1135, 1140, 1036, 1036, 1135, 1135, 1135, 1169, 1169, + /* 180 */ 1188, 182, 230, 182, 1204, 1205, 182, 1204, 182, 1212, + /* 190 */ 182, 182, 1135, 182, 1169, 352, 352, 352, 352, 352, + /* 200 */ 352, 352, 352, 352, 352, 352, 1135, 1169, 585, 1188, + /* 210 */ 452, 1088, 230, 452, 1135, 1135, 1204, 452, 1057, 585, + /* 220 */ 585, 585, 585, 1057, 585, 1158, 558, 1212, 452, 649, + /* 230 */ 452, 558, 1296, 585, 1087, 1057, 585, 585, 1087, 1057, + /* 240 */ 585, 585, 352, 1089, 1174, 1087, 1091, 1093, 1107, 923, + /* 250 */ 1116, 558, 1322, 1099, 1103, 1101, 1099, 1103, 1099, 1103, + /* 260 */ 1262, 1056, 585, 691, 1135, 452, 1338, 1169, 2520, 2520, + /* 270 */ 2520, 2520, 2520, 2520, 2520, 601, 1684, 386, 1134, 469, + /* 280 */ 551, 682, 840, 879, 853, 727, 823, 314, 314, 314, + /* 290 */ 314, 314, 314, 314, 314, 838, 699, 274, 274, 445, + /* 300 */ 65, 108, 156, 44, 168, 602, 339, 200, 200, 200, + /* 310 */ 200, 297, 841, 839, 929, 934, 965, 57, 850, 851, + /* 320 */ 92, 784, 907, 908, 992, 1024, 1039, 1040, 1048, 819, + /* 330 */ 844, 626, 889, 1071, 924, 976, 967, 1086, 971, 1094, + /* 340 */ 1100, 1115, 1120, 1127, 1128, 994, 1029, 1068, 1396, 1235, + /* 350 */ 1414, 1415, 1374, 1418, 1344, 1421, 1387, 1237, 1389, 1390, + /* 360 */ 1391, 1241, 1428, 1394, 1395, 1245, 1433, 1248, 1435, 1407, + /* 370 */ 1445, 1424, 1447, 1422, 1456, 1375, 1288, 1291, 1294, 1298, + /* 380 */ 1465, 1466, 1305, 1308, 1470, 1471, 1426, 1473, 1474, 1475, + /* 390 */ 1331, 1477, 1479, 1483, 1484, 1485, 1346, 1453, 1489, 1351, + /* 400 */ 1492, 1493, 1494, 1498, 1499, 1500, 1502, 1503, 1505, 1507, + /* 410 */ 1508, 1510, 1512, 1513, 1476, 1515, 1516, 1517, 1520, 1523, + /* 420 */ 1524, 1527, 1525, 1532, 1534, 1537, 1538, 1504, 1539, 1506, + /* 430 */ 1548, 1556, 1519, 1526, 1521, 1552, 1522, 1553, 1528, 1558, + /* 440 */ 1529, 1531, 1572, 1573, 1575, 1540, 1420, 1580, 1581, 1582, + /* 450 */ 1530, 1583, 1584, 1551, 1542, 1554, 1590, 1559, 1549, 1560, + /* 460 */ 1591, 1562, 1557, 1566, 1598, 1571, 1568, 1577, 1601, 1617, + /* 470 */ 1619, 1620, 1535, 1533, 1587, 1602, 1623, 1595, 1606, 1607, + /* 480 */ 1609, 1594, 1600, 1610, 1611, 1612, 1613, 1649, 1628, 1651, + /* 490 */ 1632, 1614, 1656, 1643, 1631, 1668, 1635, 1671, 1638, 1674, + /* 500 */ 1654, 1657, 1678, 1541, 1644, 1681, 1514, 1662, 1543, 1545, + /* 510 */ 1685, 1687, 1546, 1547, 1693, 1697, 1698, 1615, 1618, 1561, + /* 520 */ 1701, 1621, 1570, 1624, 1703, 1666, 1576, 1625, 1629, 1673, + /* 530 */ 1665, 1497, 1642, 1646, 1645, 1647, 1648, 1650, 1686, 1655, + /* 540 */ 1658, 1659, 1660, 1661, 1705, 1682, 1706, 1664, 1710, 1550, + /* 550 */ 1669, 1675, 1711, 1536, 1717, 1716, 1718, 1680, 1724, 1555, + /* 560 */ 1683, 1719, 1735, 1737, 1738, 1740, 1741, 1683, 1749, 1755, + /* 570 */ 1585, 1742, 1695, 1700, 1696, 1707, 1715, 1720, 1745, 1722, + /* 580 */ 1723, 1746, 1761, 1622, 1725, 1709, 1726, 1768, 1778, 1730, + /* 590 */ 1743, 1781, 1739, 1751, 1791, 1747, 1753, 1792, 1750, 1756, + /* 600 */ 1793, 1762, 1732, 1744, 1748, 1752, 1782, 1734, 1763, 1764, + /* 610 */ 1811, 1765, 1808, 1808, 1830, 1794, 1797, 1820, 1795, 1777, + /* 620 */ 1819, 1829, 1832, 1833, 1834, 1836, 1843, 1838, 1848, 1816, + /* 630 */ 1594, 1851, 1600, 1853, 1854, 1856, 1857, 1858, 1861, 1863, + /* 640 */ 1899, 1865, 1859, 1862, 1903, 1869, 1864, 1866, 1908, 1875, + /* 650 */ 1867, 1874, 1915, 1889, 1878, 1893, 1944, 1900, 1901, 1937, + /* 660 */ 1924, 1927, 1928, 1929, 1931, 1933, }; -#define YY_REDUCE_COUNT (273) -#define YY_REDUCE_MIN (-354) -#define YY_REDUCE_MAX (2099) +#define YY_REDUCE_COUNT (274) +#define YY_REDUCE_MIN (-312) +#define YY_REDUCE_MAX (2182) static const short yy_reduce_ofst[] = { - /* 0 */ -29, -221, 289, 34, 709, -113, 546, 780, 876, 937, - /* 10 */ 990, 1042, 1095, 1109, 1162, 1180, 1232, 1274, 1284, 1334, - /* 20 */ 1386, 1403, 1494, 1506, 1518, 1600, 1614, 1664, 1680, 1733, - /* 30 */ 1747, 1799, 1817, 1841, 1899, 1922, 1979, 1991, 2005, 2057, - /* 40 */ 2075, 2099, -219, 711, -250, -207, 593, 731, 820, 726, - /* 50 */ 828, -218, 382, 446, 502, -208, 580, -261, -257, -354, - /* 60 */ -234, -182, -11, -138, 218, 323, 404, 548, 662, 664, - /* 70 */ 670, 672, 102, 730, 734, 735, -292, 153, 738, 756, - /* 80 */ -275, -215, 771, 219, -39, 267, 855, -246, 49, -201, - /* 90 */ -201, -201, -187, -31, -152, -132, 2, 205, 286, 336, - /* 100 */ 372, 402, 403, 441, 542, 552, 569, 571, 624, 627, - /* 110 */ 630, 635, 636, 20, 31, -71, 71, -264, 136, -194, - /* 120 */ 331, 340, 368, 243, 303, 453, 230, 431, -47, 388, - /* 130 */ 512, 537, 556, 471, 430, 511, 586, 613, 681, 682, - /* 140 */ 683, 638, 759, 745, 645, 716, 760, 701, 727, 807, - /* 150 */ 807, 870, 834, 824, 814, 801, 801, 801, 809, 788, - /* 160 */ 789, 791, 810, 807, 874, 844, 906, 851, 907, 866, - /* 170 */ 919, 921, 883, 893, 895, 932, 934, 941, 944, 891, - /* 180 */ 945, 915, 947, 904, 905, 950, 908, 954, 920, 956, - /* 190 */ 958, 963, 960, 974, 949, 951, 957, 961, 964, 965, - /* 200 */ 967, 968, 969, 970, 971, 976, 980, 959, 912, 978, - /* 210 */ 940, 972, 991, 995, 996, 981, 997, 975, 987, 988, - /* 220 */ 989, 998, 982, 999, 986, 1002, 992, 1007, 1019, 1034, - /* 230 */ 1009, 979, 1006, 952, 1001, 1008, 1013, 953, 1003, 1018, - /* 240 */ 1020, 807, 966, 983, 977, 984, 994, 985, 1014, 801, - /* 250 */ 1052, 1021, 1011, 1000, 1015, 1012, 1022, 1016, 1026, 1023, - /* 260 */ 1061, 1057, 1081, 1086, 1090, 1099, 1101, 1044, 1051, 1083, - /* 270 */ 1089, 1110, 1111, 1114, + /* 0 */ -78, -232, 63, 286, -113, 706, 787, 865, 918, 970, + /* 10 */ 545, 1035, 1051, 1106, 1118, 1196, 1210, 1220, 1277, 1301, + /* 20 */ 1327, 1381, 1464, 1488, 1544, 1586, 1596, 1608, 1689, 1708, + /* 30 */ 1769, 1788, 1855, 1871, 1881, 1935, 1989, 2039, 2056, 2119, + /* 40 */ 2140, 2182, -263, 796, -14, 75, 305, -278, 55, 270, + /* 50 */ 672, -296, 123, 184, 647, -266, -43, -260, -256, -303, + /* 60 */ -186, -230, -191, -185, 97, 315, 316, 363, 563, 564, + /* 70 */ 566, 659, -154, 667, 733, 736, -285, -106, 748, 778, + /* 80 */ 59, 24, 781, 72, 322, 82, 782, 70, -252, -312, + /* 90 */ -312, -312, -117, -239, -114, -20, 141, 181, 196, 289, + /* 100 */ 328, 435, 455, 505, 575, 668, 705, 716, 750, 754, + /* 110 */ 761, 764, 766, 299, -110, 124, 138, -220, 148, -243, + /* 120 */ 218, 310, 364, 150, 354, 349, 336, 456, 319, 205, + /* 130 */ 474, 498, 476, 560, -280, -270, 477, 513, 519, 538, + /* 140 */ 596, 526, 382, 655, 570, 628, 734, 707, 670, 745, + /* 150 */ 745, 810, 822, 797, 777, 755, 755, 755, 757, 738, + /* 160 */ 742, 769, 758, 745, 858, 830, 890, 845, 902, 860, + /* 170 */ 909, 912, 877, 883, 884, 926, 927, 928, 943, 947, + /* 180 */ 894, 946, 921, 953, 913, 910, 959, 916, 961, 930, + /* 190 */ 964, 966, 969, 972, 979, 955, 957, 960, 968, 973, + /* 200 */ 974, 975, 977, 980, 981, 982, 991, 985, 948, 937, + /* 210 */ 1002, 952, 983, 1005, 1009, 1017, 978, 1018, 984, 989, + /* 220 */ 996, 999, 1000, 987, 1007, 1003, 1016, 1006, 1022, 1030, + /* 230 */ 1046, 1021, 988, 1019, 962, 1012, 1020, 1026, 986, 1013, + /* 240 */ 1028, 1031, 745, 990, 993, 997, 995, 1011, 1001, 1014, + /* 250 */ 755, 1047, 1023, 1025, 1027, 1032, 1034, 1037, 1038, 1042, + /* 260 */ 1010, 1064, 1059, 1097, 1096, 1095, 1117, 1131, 1075, 1081, + /* 270 */ 1119, 1121, 1122, 1126, 1147, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 10 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 20 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 30 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 40 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 50 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 60 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 70 */ 1453, 1453, 1526, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 80 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1524, 1679, 1453, - /* 90 */ 1856, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 100 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 110 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1526, 1453, 1524, - /* 120 */ 1868, 1868, 1868, 1453, 1453, 1453, 1723, 1723, 1453, 1453, - /* 130 */ 1453, 1453, 1622, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 140 */ 1453, 1715, 1453, 1453, 1937, 1453, 1453, 1721, 1891, 1453, - /* 150 */ 1453, 1453, 1453, 1575, 1883, 1860, 1874, 1861, 1858, 1922, - /* 160 */ 1922, 1922, 1877, 1453, 1591, 1887, 1453, 1453, 1453, 1707, - /* 170 */ 1453, 1453, 1684, 1681, 1681, 1453, 1453, 1453, 1453, 1453, - /* 180 */ 1526, 1453, 1526, 1453, 1453, 1526, 1453, 1526, 1453, 1526, - /* 190 */ 1526, 1453, 1526, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 200 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1524, - /* 210 */ 1717, 1453, 1524, 1453, 1453, 1453, 1524, 1896, 1453, 1453, - /* 220 */ 1453, 1453, 1896, 1453, 1453, 1453, 1453, 1524, 1453, 1524, - /* 230 */ 1453, 1453, 1453, 1898, 1896, 1453, 1453, 1898, 1896, 1453, - /* 240 */ 1453, 1453, 1910, 1906, 1898, 1914, 1912, 1889, 1887, 1874, - /* 250 */ 1453, 1453, 1928, 1924, 1940, 1928, 1924, 1928, 1924, 1453, - /* 260 */ 1591, 1453, 1453, 1453, 1524, 1485, 1453, 1709, 1723, 1625, - /* 270 */ 1625, 1625, 1527, 1458, 1453, 1453, 1453, 1453, 1453, 1453, - /* 280 */ 1453, 1453, 1453, 1453, 1453, 1453, 1794, 1909, 1908, 1832, - /* 290 */ 1831, 1830, 1828, 1793, 1453, 1587, 1792, 1791, 1453, 1453, - /* 300 */ 1453, 1453, 1453, 1453, 1453, 1453, 1785, 1786, 1784, 1783, - /* 310 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 320 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1857, 1453, - /* 330 */ 1925, 1929, 1453, 1453, 1453, 1453, 1453, 1768, 1453, 1453, - /* 340 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 350 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 360 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 370 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 380 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 390 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 400 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 410 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 420 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 430 */ 1453, 1490, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 440 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 450 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 460 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 470 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1556, 1555, - /* 480 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 490 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 500 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 510 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1727, 1453, 1453, - /* 520 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1890, 1453, 1453, - /* 530 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 540 */ 1453, 1453, 1453, 1768, 1453, 1907, 1453, 1867, 1863, 1453, - /* 550 */ 1453, 1859, 1767, 1453, 1453, 1923, 1453, 1453, 1453, 1453, - /* 560 */ 1453, 1453, 1453, 1453, 1453, 1852, 1453, 1453, 1825, 1810, - /* 570 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 580 */ 1779, 1453, 1453, 1453, 1453, 1453, 1619, 1453, 1453, 1453, - /* 590 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1604, - /* 600 */ 1602, 1601, 1600, 1453, 1597, 1453, 1453, 1453, 1453, 1628, - /* 610 */ 1627, 1453, 1453, 1453, 1453, 1453, 1453, 1547, 1453, 1453, - /* 620 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1538, 1453, 1537, - /* 630 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 640 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 650 */ 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, 1453, - /* 660 */ 1453, 1453, 1453, + /* 0 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 10 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 20 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 30 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 40 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 50 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 60 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 70 */ 1457, 1457, 1531, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 80 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1529, 1684, 1457, + /* 90 */ 1861, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 100 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 110 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1531, 1457, 1529, + /* 120 */ 1873, 1873, 1873, 1457, 1457, 1457, 1728, 1728, 1457, 1457, + /* 130 */ 1457, 1457, 1627, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 140 */ 1457, 1720, 1457, 1457, 1942, 1457, 1457, 1726, 1896, 1457, + /* 150 */ 1457, 1457, 1457, 1580, 1888, 1865, 1879, 1866, 1863, 1927, + /* 160 */ 1927, 1927, 1882, 1457, 1596, 1892, 1457, 1457, 1457, 1712, + /* 170 */ 1457, 1457, 1689, 1686, 1686, 1457, 1457, 1457, 1457, 1457, + /* 180 */ 1457, 1531, 1457, 1531, 1457, 1457, 1531, 1457, 1531, 1457, + /* 190 */ 1531, 1531, 1457, 1531, 1457, 1457, 1457, 1457, 1457, 1457, + /* 200 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 210 */ 1529, 1722, 1457, 1529, 1457, 1457, 1457, 1529, 1901, 1457, + /* 220 */ 1457, 1457, 1457, 1901, 1457, 1457, 1457, 1457, 1529, 1457, + /* 230 */ 1529, 1457, 1457, 1457, 1903, 1901, 1457, 1457, 1903, 1901, + /* 240 */ 1457, 1457, 1457, 1915, 1911, 1903, 1919, 1917, 1894, 1892, + /* 250 */ 1879, 1457, 1457, 1933, 1929, 1945, 1933, 1929, 1933, 1929, + /* 260 */ 1457, 1596, 1457, 1457, 1457, 1529, 1489, 1457, 1714, 1728, + /* 270 */ 1630, 1630, 1630, 1532, 1462, 1457, 1457, 1457, 1457, 1457, + /* 280 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1799, 1914, 1913, + /* 290 */ 1837, 1836, 1835, 1833, 1798, 1457, 1592, 1797, 1796, 1457, + /* 300 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1790, 1791, 1789, + /* 310 */ 1788, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 320 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1862, + /* 330 */ 1457, 1930, 1934, 1457, 1457, 1457, 1457, 1457, 1773, 1457, + /* 340 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 350 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 360 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 370 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 380 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 390 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 400 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 410 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 420 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 430 */ 1457, 1457, 1457, 1457, 1494, 1457, 1457, 1457, 1457, 1457, + /* 440 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 450 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 460 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 470 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 480 */ 1457, 1561, 1560, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 490 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 500 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 510 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 520 */ 1732, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 530 */ 1895, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 540 */ 1457, 1457, 1457, 1457, 1457, 1457, 1773, 1457, 1912, 1457, + /* 550 */ 1872, 1868, 1457, 1457, 1864, 1772, 1457, 1457, 1928, 1457, + /* 560 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1857, 1457, + /* 570 */ 1457, 1830, 1815, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 580 */ 1457, 1457, 1457, 1784, 1457, 1457, 1457, 1457, 1457, 1624, + /* 590 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 600 */ 1457, 1457, 1609, 1607, 1606, 1605, 1457, 1602, 1457, 1457, + /* 610 */ 1457, 1457, 1633, 1632, 1457, 1457, 1457, 1457, 1457, 1457, + /* 620 */ 1552, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 630 */ 1543, 1457, 1542, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 640 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 650 */ 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, 1457, + /* 660 */ 1457, 1457, 1457, 1457, 1457, 1457, }; /********** End of lemon-generated parsing tables *****************************/ @@ -960,6 +976,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* DATABASE => nothing */ 0, /* USE => nothing */ 0, /* FLUSH => nothing */ + 0, /* TRIM => nothing */ 0, /* IF => nothing */ 0, /* NOT => nothing */ 0, /* EXISTS => nothing */ @@ -1150,11 +1167,11 @@ static const YYCODETYPE yyFallback[] = { 0, /* ASC => nothing */ 0, /* NULLS => nothing */ 0, /* ID => nothing */ - 248, /* NK_BITNOT => ID */ - 248, /* VALUES => ID */ - 248, /* IMPORT => ID */ - 248, /* NK_SEMI => ID */ - 248, /* FILE => ID */ + 249, /* NK_BITNOT => ID */ + 249, /* VALUES => ID */ + 249, /* IMPORT => ID */ + 249, /* NK_SEMI => ID */ + 249, /* FILE => ID */ }; #endif /* YYFALLBACK */ @@ -1301,324 +1318,325 @@ static const char *const yyTokenName[] = { /* 56 */ "DATABASE", /* 57 */ "USE", /* 58 */ "FLUSH", - /* 59 */ "IF", - /* 60 */ "NOT", - /* 61 */ "EXISTS", - /* 62 */ "BUFFER", - /* 63 */ "CACHELAST", - /* 64 */ "CACHELASTSIZE", - /* 65 */ "COMP", - /* 66 */ "DURATION", - /* 67 */ "NK_VARIABLE", - /* 68 */ "FSYNC", - /* 69 */ "MAXROWS", - /* 70 */ "MINROWS", - /* 71 */ "KEEP", - /* 72 */ "PAGES", - /* 73 */ "PAGESIZE", - /* 74 */ "PRECISION", - /* 75 */ "REPLICA", - /* 76 */ "STRICT", - /* 77 */ "WAL", - /* 78 */ "VGROUPS", - /* 79 */ "SINGLE_STABLE", - /* 80 */ "RETENTIONS", - /* 81 */ "SCHEMALESS", - /* 82 */ "NK_COLON", - /* 83 */ "TABLE", - /* 84 */ "NK_LP", - /* 85 */ "NK_RP", - /* 86 */ "STABLE", - /* 87 */ "ADD", - /* 88 */ "COLUMN", - /* 89 */ "MODIFY", - /* 90 */ "RENAME", - /* 91 */ "TAG", - /* 92 */ "SET", - /* 93 */ "NK_EQ", - /* 94 */ "USING", - /* 95 */ "TAGS", - /* 96 */ "COMMENT", - /* 97 */ "BOOL", - /* 98 */ "TINYINT", - /* 99 */ "SMALLINT", - /* 100 */ "INT", - /* 101 */ "INTEGER", - /* 102 */ "BIGINT", - /* 103 */ "FLOAT", - /* 104 */ "DOUBLE", - /* 105 */ "BINARY", - /* 106 */ "TIMESTAMP", - /* 107 */ "NCHAR", - /* 108 */ "UNSIGNED", - /* 109 */ "JSON", - /* 110 */ "VARCHAR", - /* 111 */ "MEDIUMBLOB", - /* 112 */ "BLOB", - /* 113 */ "VARBINARY", - /* 114 */ "DECIMAL", - /* 115 */ "MAX_DELAY", - /* 116 */ "WATERMARK", - /* 117 */ "ROLLUP", - /* 118 */ "TTL", - /* 119 */ "SMA", - /* 120 */ "FIRST", - /* 121 */ "LAST", - /* 122 */ "SHOW", - /* 123 */ "DATABASES", - /* 124 */ "TABLES", - /* 125 */ "STABLES", - /* 126 */ "MNODES", - /* 127 */ "MODULES", - /* 128 */ "QNODES", - /* 129 */ "FUNCTIONS", - /* 130 */ "INDEXES", - /* 131 */ "ACCOUNTS", - /* 132 */ "APPS", - /* 133 */ "CONNECTIONS", - /* 134 */ "LICENCE", - /* 135 */ "GRANTS", - /* 136 */ "QUERIES", - /* 137 */ "SCORES", - /* 138 */ "TOPICS", - /* 139 */ "VARIABLES", - /* 140 */ "BNODES", - /* 141 */ "SNODES", - /* 142 */ "CLUSTER", - /* 143 */ "TRANSACTIONS", - /* 144 */ "DISTRIBUTED", - /* 145 */ "CONSUMERS", - /* 146 */ "SUBSCRIPTIONS", - /* 147 */ "LIKE", - /* 148 */ "INDEX", - /* 149 */ "FUNCTION", - /* 150 */ "INTERVAL", - /* 151 */ "TOPIC", - /* 152 */ "AS", - /* 153 */ "WITH", - /* 154 */ "META", - /* 155 */ "CONSUMER", - /* 156 */ "GROUP", - /* 157 */ "DESC", - /* 158 */ "DESCRIBE", - /* 159 */ "RESET", - /* 160 */ "QUERY", - /* 161 */ "CACHE", - /* 162 */ "EXPLAIN", - /* 163 */ "ANALYZE", - /* 164 */ "VERBOSE", - /* 165 */ "NK_BOOL", - /* 166 */ "RATIO", - /* 167 */ "NK_FLOAT", - /* 168 */ "COMPACT", - /* 169 */ "VNODES", - /* 170 */ "IN", - /* 171 */ "OUTPUTTYPE", - /* 172 */ "AGGREGATE", - /* 173 */ "BUFSIZE", - /* 174 */ "STREAM", - /* 175 */ "INTO", - /* 176 */ "TRIGGER", - /* 177 */ "AT_ONCE", - /* 178 */ "WINDOW_CLOSE", - /* 179 */ "IGNORE", - /* 180 */ "EXPIRED", - /* 181 */ "KILL", - /* 182 */ "CONNECTION", - /* 183 */ "TRANSACTION", - /* 184 */ "BALANCE", - /* 185 */ "VGROUP", - /* 186 */ "MERGE", - /* 187 */ "REDISTRIBUTE", - /* 188 */ "SPLIT", - /* 189 */ "SYNCDB", - /* 190 */ "DELETE", - /* 191 */ "INSERT", - /* 192 */ "NULL", - /* 193 */ "NK_QUESTION", - /* 194 */ "NK_ARROW", - /* 195 */ "ROWTS", - /* 196 */ "TBNAME", - /* 197 */ "QSTARTTS", - /* 198 */ "QENDTS", - /* 199 */ "WSTARTTS", - /* 200 */ "WENDTS", - /* 201 */ "WDURATION", - /* 202 */ "CAST", - /* 203 */ "NOW", - /* 204 */ "TODAY", - /* 205 */ "TIMEZONE", - /* 206 */ "CLIENT_VERSION", - /* 207 */ "SERVER_VERSION", - /* 208 */ "SERVER_STATUS", - /* 209 */ "CURRENT_USER", - /* 210 */ "COUNT", - /* 211 */ "LAST_ROW", - /* 212 */ "BETWEEN", - /* 213 */ "IS", - /* 214 */ "NK_LT", - /* 215 */ "NK_GT", - /* 216 */ "NK_LE", - /* 217 */ "NK_GE", - /* 218 */ "NK_NE", - /* 219 */ "MATCH", - /* 220 */ "NMATCH", - /* 221 */ "CONTAINS", - /* 222 */ "JOIN", - /* 223 */ "INNER", - /* 224 */ "SELECT", - /* 225 */ "DISTINCT", - /* 226 */ "WHERE", - /* 227 */ "PARTITION", - /* 228 */ "BY", - /* 229 */ "SESSION", - /* 230 */ "STATE_WINDOW", - /* 231 */ "SLIDING", - /* 232 */ "FILL", - /* 233 */ "VALUE", - /* 234 */ "NONE", - /* 235 */ "PREV", - /* 236 */ "LINEAR", - /* 237 */ "NEXT", - /* 238 */ "HAVING", - /* 239 */ "RANGE", - /* 240 */ "EVERY", - /* 241 */ "ORDER", - /* 242 */ "SLIMIT", - /* 243 */ "SOFFSET", - /* 244 */ "LIMIT", - /* 245 */ "OFFSET", - /* 246 */ "ASC", - /* 247 */ "NULLS", - /* 248 */ "ID", - /* 249 */ "NK_BITNOT", - /* 250 */ "VALUES", - /* 251 */ "IMPORT", - /* 252 */ "NK_SEMI", - /* 253 */ "FILE", - /* 254 */ "cmd", - /* 255 */ "account_options", - /* 256 */ "alter_account_options", - /* 257 */ "literal", - /* 258 */ "alter_account_option", - /* 259 */ "user_name", - /* 260 */ "sysinfo_opt", - /* 261 */ "privileges", - /* 262 */ "priv_level", - /* 263 */ "priv_type_list", - /* 264 */ "priv_type", - /* 265 */ "db_name", - /* 266 */ "dnode_endpoint", - /* 267 */ "not_exists_opt", - /* 268 */ "db_options", - /* 269 */ "exists_opt", - /* 270 */ "alter_db_options", - /* 271 */ "integer_list", - /* 272 */ "variable_list", - /* 273 */ "retention_list", - /* 274 */ "alter_db_option", - /* 275 */ "retention", - /* 276 */ "full_table_name", - /* 277 */ "column_def_list", - /* 278 */ "tags_def_opt", - /* 279 */ "table_options", - /* 280 */ "multi_create_clause", - /* 281 */ "tags_def", - /* 282 */ "multi_drop_clause", - /* 283 */ "alter_table_clause", - /* 284 */ "alter_table_options", - /* 285 */ "column_name", - /* 286 */ "type_name", - /* 287 */ "signed_literal", - /* 288 */ "create_subtable_clause", - /* 289 */ "specific_cols_opt", - /* 290 */ "expression_list", - /* 291 */ "drop_table_clause", - /* 292 */ "col_name_list", - /* 293 */ "table_name", - /* 294 */ "column_def", - /* 295 */ "duration_list", - /* 296 */ "rollup_func_list", - /* 297 */ "alter_table_option", - /* 298 */ "duration_literal", - /* 299 */ "rollup_func_name", - /* 300 */ "function_name", - /* 301 */ "col_name", - /* 302 */ "db_name_cond_opt", - /* 303 */ "like_pattern_opt", - /* 304 */ "table_name_cond", - /* 305 */ "from_db_opt", - /* 306 */ "index_name", - /* 307 */ "index_options", - /* 308 */ "func_list", - /* 309 */ "sliding_opt", - /* 310 */ "sma_stream_opt", - /* 311 */ "func", - /* 312 */ "stream_options", - /* 313 */ "topic_name", - /* 314 */ "query_expression", - /* 315 */ "cgroup_name", - /* 316 */ "analyze_opt", - /* 317 */ "explain_options", - /* 318 */ "agg_func_opt", - /* 319 */ "bufsize_opt", - /* 320 */ "stream_name", - /* 321 */ "into_opt", - /* 322 */ "dnode_list", - /* 323 */ "where_clause_opt", - /* 324 */ "signed", - /* 325 */ "literal_func", - /* 326 */ "literal_list", - /* 327 */ "table_alias", - /* 328 */ "column_alias", - /* 329 */ "expression", - /* 330 */ "pseudo_column", - /* 331 */ "column_reference", - /* 332 */ "function_expression", - /* 333 */ "subquery", - /* 334 */ "star_func", - /* 335 */ "star_func_para_list", - /* 336 */ "noarg_func", - /* 337 */ "other_para_list", - /* 338 */ "star_func_para", - /* 339 */ "predicate", - /* 340 */ "compare_op", - /* 341 */ "in_op", - /* 342 */ "in_predicate_value", - /* 343 */ "boolean_value_expression", - /* 344 */ "boolean_primary", - /* 345 */ "common_expression", - /* 346 */ "from_clause_opt", - /* 347 */ "table_reference_list", - /* 348 */ "table_reference", - /* 349 */ "table_primary", - /* 350 */ "joined_table", - /* 351 */ "alias_opt", - /* 352 */ "parenthesized_joined_table", - /* 353 */ "join_type", - /* 354 */ "search_condition", - /* 355 */ "query_specification", - /* 356 */ "set_quantifier_opt", - /* 357 */ "select_list", - /* 358 */ "partition_by_clause_opt", - /* 359 */ "range_opt", - /* 360 */ "every_opt", - /* 361 */ "fill_opt", - /* 362 */ "twindow_clause_opt", - /* 363 */ "group_by_clause_opt", - /* 364 */ "having_clause_opt", - /* 365 */ "select_item", - /* 366 */ "fill_mode", - /* 367 */ "group_by_list", - /* 368 */ "query_expression_body", - /* 369 */ "order_by_clause_opt", - /* 370 */ "slimit_clause_opt", - /* 371 */ "limit_clause_opt", - /* 372 */ "query_primary", - /* 373 */ "sort_specification_list", - /* 374 */ "sort_specification", - /* 375 */ "ordering_specification_opt", - /* 376 */ "null_ordering_opt", + /* 59 */ "TRIM", + /* 60 */ "IF", + /* 61 */ "NOT", + /* 62 */ "EXISTS", + /* 63 */ "BUFFER", + /* 64 */ "CACHELAST", + /* 65 */ "CACHELASTSIZE", + /* 66 */ "COMP", + /* 67 */ "DURATION", + /* 68 */ "NK_VARIABLE", + /* 69 */ "FSYNC", + /* 70 */ "MAXROWS", + /* 71 */ "MINROWS", + /* 72 */ "KEEP", + /* 73 */ "PAGES", + /* 74 */ "PAGESIZE", + /* 75 */ "PRECISION", + /* 76 */ "REPLICA", + /* 77 */ "STRICT", + /* 78 */ "WAL", + /* 79 */ "VGROUPS", + /* 80 */ "SINGLE_STABLE", + /* 81 */ "RETENTIONS", + /* 82 */ "SCHEMALESS", + /* 83 */ "NK_COLON", + /* 84 */ "TABLE", + /* 85 */ "NK_LP", + /* 86 */ "NK_RP", + /* 87 */ "STABLE", + /* 88 */ "ADD", + /* 89 */ "COLUMN", + /* 90 */ "MODIFY", + /* 91 */ "RENAME", + /* 92 */ "TAG", + /* 93 */ "SET", + /* 94 */ "NK_EQ", + /* 95 */ "USING", + /* 96 */ "TAGS", + /* 97 */ "COMMENT", + /* 98 */ "BOOL", + /* 99 */ "TINYINT", + /* 100 */ "SMALLINT", + /* 101 */ "INT", + /* 102 */ "INTEGER", + /* 103 */ "BIGINT", + /* 104 */ "FLOAT", + /* 105 */ "DOUBLE", + /* 106 */ "BINARY", + /* 107 */ "TIMESTAMP", + /* 108 */ "NCHAR", + /* 109 */ "UNSIGNED", + /* 110 */ "JSON", + /* 111 */ "VARCHAR", + /* 112 */ "MEDIUMBLOB", + /* 113 */ "BLOB", + /* 114 */ "VARBINARY", + /* 115 */ "DECIMAL", + /* 116 */ "MAX_DELAY", + /* 117 */ "WATERMARK", + /* 118 */ "ROLLUP", + /* 119 */ "TTL", + /* 120 */ "SMA", + /* 121 */ "FIRST", + /* 122 */ "LAST", + /* 123 */ "SHOW", + /* 124 */ "DATABASES", + /* 125 */ "TABLES", + /* 126 */ "STABLES", + /* 127 */ "MNODES", + /* 128 */ "MODULES", + /* 129 */ "QNODES", + /* 130 */ "FUNCTIONS", + /* 131 */ "INDEXES", + /* 132 */ "ACCOUNTS", + /* 133 */ "APPS", + /* 134 */ "CONNECTIONS", + /* 135 */ "LICENCE", + /* 136 */ "GRANTS", + /* 137 */ "QUERIES", + /* 138 */ "SCORES", + /* 139 */ "TOPICS", + /* 140 */ "VARIABLES", + /* 141 */ "BNODES", + /* 142 */ "SNODES", + /* 143 */ "CLUSTER", + /* 144 */ "TRANSACTIONS", + /* 145 */ "DISTRIBUTED", + /* 146 */ "CONSUMERS", + /* 147 */ "SUBSCRIPTIONS", + /* 148 */ "LIKE", + /* 149 */ "INDEX", + /* 150 */ "FUNCTION", + /* 151 */ "INTERVAL", + /* 152 */ "TOPIC", + /* 153 */ "AS", + /* 154 */ "WITH", + /* 155 */ "META", + /* 156 */ "CONSUMER", + /* 157 */ "GROUP", + /* 158 */ "DESC", + /* 159 */ "DESCRIBE", + /* 160 */ "RESET", + /* 161 */ "QUERY", + /* 162 */ "CACHE", + /* 163 */ "EXPLAIN", + /* 164 */ "ANALYZE", + /* 165 */ "VERBOSE", + /* 166 */ "NK_BOOL", + /* 167 */ "RATIO", + /* 168 */ "NK_FLOAT", + /* 169 */ "COMPACT", + /* 170 */ "VNODES", + /* 171 */ "IN", + /* 172 */ "OUTPUTTYPE", + /* 173 */ "AGGREGATE", + /* 174 */ "BUFSIZE", + /* 175 */ "STREAM", + /* 176 */ "INTO", + /* 177 */ "TRIGGER", + /* 178 */ "AT_ONCE", + /* 179 */ "WINDOW_CLOSE", + /* 180 */ "IGNORE", + /* 181 */ "EXPIRED", + /* 182 */ "KILL", + /* 183 */ "CONNECTION", + /* 184 */ "TRANSACTION", + /* 185 */ "BALANCE", + /* 186 */ "VGROUP", + /* 187 */ "MERGE", + /* 188 */ "REDISTRIBUTE", + /* 189 */ "SPLIT", + /* 190 */ "SYNCDB", + /* 191 */ "DELETE", + /* 192 */ "INSERT", + /* 193 */ "NULL", + /* 194 */ "NK_QUESTION", + /* 195 */ "NK_ARROW", + /* 196 */ "ROWTS", + /* 197 */ "TBNAME", + /* 198 */ "QSTARTTS", + /* 199 */ "QENDTS", + /* 200 */ "WSTARTTS", + /* 201 */ "WENDTS", + /* 202 */ "WDURATION", + /* 203 */ "CAST", + /* 204 */ "NOW", + /* 205 */ "TODAY", + /* 206 */ "TIMEZONE", + /* 207 */ "CLIENT_VERSION", + /* 208 */ "SERVER_VERSION", + /* 209 */ "SERVER_STATUS", + /* 210 */ "CURRENT_USER", + /* 211 */ "COUNT", + /* 212 */ "LAST_ROW", + /* 213 */ "BETWEEN", + /* 214 */ "IS", + /* 215 */ "NK_LT", + /* 216 */ "NK_GT", + /* 217 */ "NK_LE", + /* 218 */ "NK_GE", + /* 219 */ "NK_NE", + /* 220 */ "MATCH", + /* 221 */ "NMATCH", + /* 222 */ "CONTAINS", + /* 223 */ "JOIN", + /* 224 */ "INNER", + /* 225 */ "SELECT", + /* 226 */ "DISTINCT", + /* 227 */ "WHERE", + /* 228 */ "PARTITION", + /* 229 */ "BY", + /* 230 */ "SESSION", + /* 231 */ "STATE_WINDOW", + /* 232 */ "SLIDING", + /* 233 */ "FILL", + /* 234 */ "VALUE", + /* 235 */ "NONE", + /* 236 */ "PREV", + /* 237 */ "LINEAR", + /* 238 */ "NEXT", + /* 239 */ "HAVING", + /* 240 */ "RANGE", + /* 241 */ "EVERY", + /* 242 */ "ORDER", + /* 243 */ "SLIMIT", + /* 244 */ "SOFFSET", + /* 245 */ "LIMIT", + /* 246 */ "OFFSET", + /* 247 */ "ASC", + /* 248 */ "NULLS", + /* 249 */ "ID", + /* 250 */ "NK_BITNOT", + /* 251 */ "VALUES", + /* 252 */ "IMPORT", + /* 253 */ "NK_SEMI", + /* 254 */ "FILE", + /* 255 */ "cmd", + /* 256 */ "account_options", + /* 257 */ "alter_account_options", + /* 258 */ "literal", + /* 259 */ "alter_account_option", + /* 260 */ "user_name", + /* 261 */ "sysinfo_opt", + /* 262 */ "privileges", + /* 263 */ "priv_level", + /* 264 */ "priv_type_list", + /* 265 */ "priv_type", + /* 266 */ "db_name", + /* 267 */ "dnode_endpoint", + /* 268 */ "not_exists_opt", + /* 269 */ "db_options", + /* 270 */ "exists_opt", + /* 271 */ "alter_db_options", + /* 272 */ "integer_list", + /* 273 */ "variable_list", + /* 274 */ "retention_list", + /* 275 */ "alter_db_option", + /* 276 */ "retention", + /* 277 */ "full_table_name", + /* 278 */ "column_def_list", + /* 279 */ "tags_def_opt", + /* 280 */ "table_options", + /* 281 */ "multi_create_clause", + /* 282 */ "tags_def", + /* 283 */ "multi_drop_clause", + /* 284 */ "alter_table_clause", + /* 285 */ "alter_table_options", + /* 286 */ "column_name", + /* 287 */ "type_name", + /* 288 */ "signed_literal", + /* 289 */ "create_subtable_clause", + /* 290 */ "specific_cols_opt", + /* 291 */ "expression_list", + /* 292 */ "drop_table_clause", + /* 293 */ "col_name_list", + /* 294 */ "table_name", + /* 295 */ "column_def", + /* 296 */ "duration_list", + /* 297 */ "rollup_func_list", + /* 298 */ "alter_table_option", + /* 299 */ "duration_literal", + /* 300 */ "rollup_func_name", + /* 301 */ "function_name", + /* 302 */ "col_name", + /* 303 */ "db_name_cond_opt", + /* 304 */ "like_pattern_opt", + /* 305 */ "table_name_cond", + /* 306 */ "from_db_opt", + /* 307 */ "index_name", + /* 308 */ "index_options", + /* 309 */ "func_list", + /* 310 */ "sliding_opt", + /* 311 */ "sma_stream_opt", + /* 312 */ "func", + /* 313 */ "stream_options", + /* 314 */ "topic_name", + /* 315 */ "query_expression", + /* 316 */ "cgroup_name", + /* 317 */ "analyze_opt", + /* 318 */ "explain_options", + /* 319 */ "agg_func_opt", + /* 320 */ "bufsize_opt", + /* 321 */ "stream_name", + /* 322 */ "into_opt", + /* 323 */ "dnode_list", + /* 324 */ "where_clause_opt", + /* 325 */ "signed", + /* 326 */ "literal_func", + /* 327 */ "literal_list", + /* 328 */ "table_alias", + /* 329 */ "column_alias", + /* 330 */ "expression", + /* 331 */ "pseudo_column", + /* 332 */ "column_reference", + /* 333 */ "function_expression", + /* 334 */ "subquery", + /* 335 */ "star_func", + /* 336 */ "star_func_para_list", + /* 337 */ "noarg_func", + /* 338 */ "other_para_list", + /* 339 */ "star_func_para", + /* 340 */ "predicate", + /* 341 */ "compare_op", + /* 342 */ "in_op", + /* 343 */ "in_predicate_value", + /* 344 */ "boolean_value_expression", + /* 345 */ "boolean_primary", + /* 346 */ "common_expression", + /* 347 */ "from_clause_opt", + /* 348 */ "table_reference_list", + /* 349 */ "table_reference", + /* 350 */ "table_primary", + /* 351 */ "joined_table", + /* 352 */ "alias_opt", + /* 353 */ "parenthesized_joined_table", + /* 354 */ "join_type", + /* 355 */ "search_condition", + /* 356 */ "query_specification", + /* 357 */ "set_quantifier_opt", + /* 358 */ "select_list", + /* 359 */ "partition_by_clause_opt", + /* 360 */ "range_opt", + /* 361 */ "every_opt", + /* 362 */ "fill_opt", + /* 363 */ "twindow_clause_opt", + /* 364 */ "group_by_clause_opt", + /* 365 */ "having_clause_opt", + /* 366 */ "select_item", + /* 367 */ "fill_mode", + /* 368 */ "group_by_list", + /* 369 */ "query_expression_body", + /* 370 */ "order_by_clause_opt", + /* 371 */ "slimit_clause_opt", + /* 372 */ "limit_clause_opt", + /* 373 */ "query_primary", + /* 374 */ "sort_specification_list", + /* 375 */ "sort_specification", + /* 376 */ "ordering_specification_opt", + /* 377 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -1693,426 +1711,427 @@ static const char *const yyRuleName[] = { /* 64 */ "cmd ::= USE db_name", /* 65 */ "cmd ::= ALTER DATABASE db_name alter_db_options", /* 66 */ "cmd ::= FLUSH DATABASE db_name", - /* 67 */ "not_exists_opt ::= IF NOT EXISTS", - /* 68 */ "not_exists_opt ::=", - /* 69 */ "exists_opt ::= IF EXISTS", - /* 70 */ "exists_opt ::=", - /* 71 */ "db_options ::=", - /* 72 */ "db_options ::= db_options BUFFER NK_INTEGER", - /* 73 */ "db_options ::= db_options CACHELAST NK_INTEGER", - /* 74 */ "db_options ::= db_options CACHELASTSIZE NK_INTEGER", - /* 75 */ "db_options ::= db_options COMP NK_INTEGER", - /* 76 */ "db_options ::= db_options DURATION NK_INTEGER", - /* 77 */ "db_options ::= db_options DURATION NK_VARIABLE", - /* 78 */ "db_options ::= db_options FSYNC NK_INTEGER", - /* 79 */ "db_options ::= db_options MAXROWS NK_INTEGER", - /* 80 */ "db_options ::= db_options MINROWS NK_INTEGER", - /* 81 */ "db_options ::= db_options KEEP integer_list", - /* 82 */ "db_options ::= db_options KEEP variable_list", - /* 83 */ "db_options ::= db_options PAGES NK_INTEGER", - /* 84 */ "db_options ::= db_options PAGESIZE NK_INTEGER", - /* 85 */ "db_options ::= db_options PRECISION NK_STRING", - /* 86 */ "db_options ::= db_options REPLICA NK_INTEGER", - /* 87 */ "db_options ::= db_options STRICT NK_INTEGER", - /* 88 */ "db_options ::= db_options WAL NK_INTEGER", - /* 89 */ "db_options ::= db_options VGROUPS NK_INTEGER", - /* 90 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", - /* 91 */ "db_options ::= db_options RETENTIONS retention_list", - /* 92 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", - /* 93 */ "alter_db_options ::= alter_db_option", - /* 94 */ "alter_db_options ::= alter_db_options alter_db_option", - /* 95 */ "alter_db_option ::= BUFFER NK_INTEGER", - /* 96 */ "alter_db_option ::= CACHELAST NK_INTEGER", - /* 97 */ "alter_db_option ::= CACHELASTSIZE NK_INTEGER", - /* 98 */ "alter_db_option ::= FSYNC NK_INTEGER", - /* 99 */ "alter_db_option ::= KEEP integer_list", - /* 100 */ "alter_db_option ::= KEEP variable_list", - /* 101 */ "alter_db_option ::= PAGES NK_INTEGER", - /* 102 */ "alter_db_option ::= REPLICA NK_INTEGER", - /* 103 */ "alter_db_option ::= STRICT NK_INTEGER", - /* 104 */ "alter_db_option ::= WAL NK_INTEGER", - /* 105 */ "integer_list ::= NK_INTEGER", - /* 106 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", - /* 107 */ "variable_list ::= NK_VARIABLE", - /* 108 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", - /* 109 */ "retention_list ::= retention", - /* 110 */ "retention_list ::= retention_list NK_COMMA retention", - /* 111 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", - /* 112 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", - /* 113 */ "cmd ::= CREATE TABLE multi_create_clause", - /* 114 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", - /* 115 */ "cmd ::= DROP TABLE multi_drop_clause", - /* 116 */ "cmd ::= DROP STABLE exists_opt full_table_name", - /* 117 */ "cmd ::= ALTER TABLE alter_table_clause", - /* 118 */ "cmd ::= ALTER STABLE alter_table_clause", - /* 119 */ "alter_table_clause ::= full_table_name alter_table_options", - /* 120 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", - /* 121 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", - /* 122 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", - /* 123 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", - /* 124 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", - /* 125 */ "alter_table_clause ::= full_table_name DROP TAG column_name", - /* 126 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", - /* 127 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", - /* 128 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", - /* 129 */ "multi_create_clause ::= create_subtable_clause", - /* 130 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", - /* 131 */ "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", - /* 132 */ "multi_drop_clause ::= drop_table_clause", - /* 133 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", - /* 134 */ "drop_table_clause ::= exists_opt full_table_name", - /* 135 */ "specific_cols_opt ::=", - /* 136 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", - /* 137 */ "full_table_name ::= table_name", - /* 138 */ "full_table_name ::= db_name NK_DOT table_name", - /* 139 */ "column_def_list ::= column_def", - /* 140 */ "column_def_list ::= column_def_list NK_COMMA column_def", - /* 141 */ "column_def ::= column_name type_name", - /* 142 */ "column_def ::= column_name type_name COMMENT NK_STRING", - /* 143 */ "type_name ::= BOOL", - /* 144 */ "type_name ::= TINYINT", - /* 145 */ "type_name ::= SMALLINT", - /* 146 */ "type_name ::= INT", - /* 147 */ "type_name ::= INTEGER", - /* 148 */ "type_name ::= BIGINT", - /* 149 */ "type_name ::= FLOAT", - /* 150 */ "type_name ::= DOUBLE", - /* 151 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", - /* 152 */ "type_name ::= TIMESTAMP", - /* 153 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", - /* 154 */ "type_name ::= TINYINT UNSIGNED", - /* 155 */ "type_name ::= SMALLINT UNSIGNED", - /* 156 */ "type_name ::= INT UNSIGNED", - /* 157 */ "type_name ::= BIGINT UNSIGNED", - /* 158 */ "type_name ::= JSON", - /* 159 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", - /* 160 */ "type_name ::= MEDIUMBLOB", - /* 161 */ "type_name ::= BLOB", - /* 162 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", - /* 163 */ "type_name ::= DECIMAL", - /* 164 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", - /* 165 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 166 */ "tags_def_opt ::=", - /* 167 */ "tags_def_opt ::= tags_def", - /* 168 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", - /* 169 */ "table_options ::=", - /* 170 */ "table_options ::= table_options COMMENT NK_STRING", - /* 171 */ "table_options ::= table_options MAX_DELAY duration_list", - /* 172 */ "table_options ::= table_options WATERMARK duration_list", - /* 173 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", - /* 174 */ "table_options ::= table_options TTL NK_INTEGER", - /* 175 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", - /* 176 */ "alter_table_options ::= alter_table_option", - /* 177 */ "alter_table_options ::= alter_table_options alter_table_option", - /* 178 */ "alter_table_option ::= COMMENT NK_STRING", - /* 179 */ "alter_table_option ::= TTL NK_INTEGER", - /* 180 */ "duration_list ::= duration_literal", - /* 181 */ "duration_list ::= duration_list NK_COMMA duration_literal", - /* 182 */ "rollup_func_list ::= rollup_func_name", - /* 183 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", - /* 184 */ "rollup_func_name ::= function_name", - /* 185 */ "rollup_func_name ::= FIRST", - /* 186 */ "rollup_func_name ::= LAST", - /* 187 */ "col_name_list ::= col_name", - /* 188 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 189 */ "col_name ::= column_name", - /* 190 */ "cmd ::= SHOW DNODES", - /* 191 */ "cmd ::= SHOW USERS", - /* 192 */ "cmd ::= SHOW DATABASES", - /* 193 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", - /* 194 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", - /* 195 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", - /* 196 */ "cmd ::= SHOW MNODES", - /* 197 */ "cmd ::= SHOW MODULES", - /* 198 */ "cmd ::= SHOW QNODES", - /* 199 */ "cmd ::= SHOW FUNCTIONS", - /* 200 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", - /* 201 */ "cmd ::= SHOW STREAMS", - /* 202 */ "cmd ::= SHOW ACCOUNTS", - /* 203 */ "cmd ::= SHOW APPS", - /* 204 */ "cmd ::= SHOW CONNECTIONS", - /* 205 */ "cmd ::= SHOW LICENCE", - /* 206 */ "cmd ::= SHOW GRANTS", - /* 207 */ "cmd ::= SHOW CREATE DATABASE db_name", - /* 208 */ "cmd ::= SHOW CREATE TABLE full_table_name", - /* 209 */ "cmd ::= SHOW CREATE STABLE full_table_name", - /* 210 */ "cmd ::= SHOW QUERIES", - /* 211 */ "cmd ::= SHOW SCORES", - /* 212 */ "cmd ::= SHOW TOPICS", - /* 213 */ "cmd ::= SHOW VARIABLES", - /* 214 */ "cmd ::= SHOW LOCAL VARIABLES", - /* 215 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES", - /* 216 */ "cmd ::= SHOW BNODES", - /* 217 */ "cmd ::= SHOW SNODES", - /* 218 */ "cmd ::= SHOW CLUSTER", - /* 219 */ "cmd ::= SHOW TRANSACTIONS", - /* 220 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", - /* 221 */ "cmd ::= SHOW CONSUMERS", - /* 222 */ "cmd ::= SHOW SUBSCRIPTIONS", - /* 223 */ "db_name_cond_opt ::=", - /* 224 */ "db_name_cond_opt ::= db_name NK_DOT", - /* 225 */ "like_pattern_opt ::=", - /* 226 */ "like_pattern_opt ::= LIKE NK_STRING", - /* 227 */ "table_name_cond ::= table_name", - /* 228 */ "from_db_opt ::=", - /* 229 */ "from_db_opt ::= FROM db_name", - /* 230 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", - /* 231 */ "cmd ::= DROP INDEX exists_opt index_name", - /* 232 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", - /* 233 */ "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", - /* 234 */ "func_list ::= func", - /* 235 */ "func_list ::= func_list NK_COMMA func", - /* 236 */ "func ::= function_name NK_LP expression_list NK_RP", - /* 237 */ "sma_stream_opt ::=", - /* 238 */ "sma_stream_opt ::= stream_options WATERMARK duration_literal", - /* 239 */ "sma_stream_opt ::= stream_options MAX_DELAY duration_literal", - /* 240 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", - /* 241 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name", - /* 242 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name", - /* 243 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name", - /* 244 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name", - /* 245 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 246 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", - /* 247 */ "cmd ::= DESC full_table_name", - /* 248 */ "cmd ::= DESCRIBE full_table_name", - /* 249 */ "cmd ::= RESET QUERY CACHE", - /* 250 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", - /* 251 */ "analyze_opt ::=", - /* 252 */ "analyze_opt ::= ANALYZE", - /* 253 */ "explain_options ::=", - /* 254 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 255 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 256 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", - /* 257 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", - /* 258 */ "cmd ::= DROP FUNCTION exists_opt function_name", - /* 259 */ "agg_func_opt ::=", - /* 260 */ "agg_func_opt ::= AGGREGATE", - /* 261 */ "bufsize_opt ::=", - /* 262 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", - /* 263 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression", - /* 264 */ "cmd ::= DROP STREAM exists_opt stream_name", - /* 265 */ "into_opt ::=", - /* 266 */ "into_opt ::= INTO full_table_name", - /* 267 */ "stream_options ::=", - /* 268 */ "stream_options ::= stream_options TRIGGER AT_ONCE", - /* 269 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", - /* 270 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", - /* 271 */ "stream_options ::= stream_options WATERMARK duration_literal", - /* 272 */ "stream_options ::= stream_options IGNORE EXPIRED", - /* 273 */ "cmd ::= KILL CONNECTION NK_INTEGER", - /* 274 */ "cmd ::= KILL QUERY NK_STRING", - /* 275 */ "cmd ::= KILL TRANSACTION NK_INTEGER", - /* 276 */ "cmd ::= BALANCE VGROUP", - /* 277 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", - /* 278 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", - /* 279 */ "cmd ::= SPLIT VGROUP NK_INTEGER", - /* 280 */ "dnode_list ::= DNODE NK_INTEGER", - /* 281 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", - /* 282 */ "cmd ::= SYNCDB db_name REPLICA", - /* 283 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", - /* 284 */ "cmd ::= query_expression", - /* 285 */ "cmd ::= INSERT INTO full_table_name specific_cols_opt query_expression", - /* 286 */ "literal ::= NK_INTEGER", - /* 287 */ "literal ::= NK_FLOAT", - /* 288 */ "literal ::= NK_STRING", - /* 289 */ "literal ::= NK_BOOL", - /* 290 */ "literal ::= TIMESTAMP NK_STRING", - /* 291 */ "literal ::= duration_literal", - /* 292 */ "literal ::= NULL", - /* 293 */ "literal ::= NK_QUESTION", - /* 294 */ "duration_literal ::= NK_VARIABLE", - /* 295 */ "signed ::= NK_INTEGER", - /* 296 */ "signed ::= NK_PLUS NK_INTEGER", - /* 297 */ "signed ::= NK_MINUS NK_INTEGER", - /* 298 */ "signed ::= NK_FLOAT", - /* 299 */ "signed ::= NK_PLUS NK_FLOAT", - /* 300 */ "signed ::= NK_MINUS NK_FLOAT", - /* 301 */ "signed_literal ::= signed", - /* 302 */ "signed_literal ::= NK_STRING", - /* 303 */ "signed_literal ::= NK_BOOL", - /* 304 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 305 */ "signed_literal ::= duration_literal", - /* 306 */ "signed_literal ::= NULL", - /* 307 */ "signed_literal ::= literal_func", - /* 308 */ "literal_list ::= signed_literal", - /* 309 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 310 */ "db_name ::= NK_ID", - /* 311 */ "table_name ::= NK_ID", - /* 312 */ "column_name ::= NK_ID", - /* 313 */ "function_name ::= NK_ID", - /* 314 */ "table_alias ::= NK_ID", - /* 315 */ "column_alias ::= NK_ID", - /* 316 */ "user_name ::= NK_ID", - /* 317 */ "index_name ::= NK_ID", - /* 318 */ "topic_name ::= NK_ID", - /* 319 */ "stream_name ::= NK_ID", - /* 320 */ "cgroup_name ::= NK_ID", - /* 321 */ "expression ::= literal", - /* 322 */ "expression ::= pseudo_column", - /* 323 */ "expression ::= column_reference", - /* 324 */ "expression ::= function_expression", - /* 325 */ "expression ::= subquery", - /* 326 */ "expression ::= NK_LP expression NK_RP", - /* 327 */ "expression ::= NK_PLUS expression", - /* 328 */ "expression ::= NK_MINUS expression", - /* 329 */ "expression ::= expression NK_PLUS expression", - /* 330 */ "expression ::= expression NK_MINUS expression", - /* 331 */ "expression ::= expression NK_STAR expression", - /* 332 */ "expression ::= expression NK_SLASH expression", - /* 333 */ "expression ::= expression NK_REM expression", - /* 334 */ "expression ::= column_reference NK_ARROW NK_STRING", - /* 335 */ "expression ::= expression NK_BITAND expression", - /* 336 */ "expression ::= expression NK_BITOR expression", - /* 337 */ "expression_list ::= expression", - /* 338 */ "expression_list ::= expression_list NK_COMMA expression", - /* 339 */ "column_reference ::= column_name", - /* 340 */ "column_reference ::= table_name NK_DOT column_name", - /* 341 */ "pseudo_column ::= ROWTS", - /* 342 */ "pseudo_column ::= TBNAME", - /* 343 */ "pseudo_column ::= table_name NK_DOT TBNAME", - /* 344 */ "pseudo_column ::= QSTARTTS", - /* 345 */ "pseudo_column ::= QENDTS", - /* 346 */ "pseudo_column ::= WSTARTTS", - /* 347 */ "pseudo_column ::= WENDTS", - /* 348 */ "pseudo_column ::= WDURATION", - /* 349 */ "function_expression ::= function_name NK_LP expression_list NK_RP", - /* 350 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", - /* 351 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP", - /* 352 */ "function_expression ::= literal_func", - /* 353 */ "literal_func ::= noarg_func NK_LP NK_RP", - /* 354 */ "literal_func ::= NOW", - /* 355 */ "noarg_func ::= NOW", - /* 356 */ "noarg_func ::= TODAY", - /* 357 */ "noarg_func ::= TIMEZONE", - /* 358 */ "noarg_func ::= DATABASE", - /* 359 */ "noarg_func ::= CLIENT_VERSION", - /* 360 */ "noarg_func ::= SERVER_VERSION", - /* 361 */ "noarg_func ::= SERVER_STATUS", - /* 362 */ "noarg_func ::= CURRENT_USER", - /* 363 */ "noarg_func ::= USER", - /* 364 */ "star_func ::= COUNT", - /* 365 */ "star_func ::= FIRST", - /* 366 */ "star_func ::= LAST", - /* 367 */ "star_func ::= LAST_ROW", - /* 368 */ "star_func_para_list ::= NK_STAR", - /* 369 */ "star_func_para_list ::= other_para_list", - /* 370 */ "other_para_list ::= star_func_para", - /* 371 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", - /* 372 */ "star_func_para ::= expression", - /* 373 */ "star_func_para ::= table_name NK_DOT NK_STAR", - /* 374 */ "predicate ::= expression compare_op expression", - /* 375 */ "predicate ::= expression BETWEEN expression AND expression", - /* 376 */ "predicate ::= expression NOT BETWEEN expression AND expression", - /* 377 */ "predicate ::= expression IS NULL", - /* 378 */ "predicate ::= expression IS NOT NULL", - /* 379 */ "predicate ::= expression in_op in_predicate_value", - /* 380 */ "compare_op ::= NK_LT", - /* 381 */ "compare_op ::= NK_GT", - /* 382 */ "compare_op ::= NK_LE", - /* 383 */ "compare_op ::= NK_GE", - /* 384 */ "compare_op ::= NK_NE", - /* 385 */ "compare_op ::= NK_EQ", - /* 386 */ "compare_op ::= LIKE", - /* 387 */ "compare_op ::= NOT LIKE", - /* 388 */ "compare_op ::= MATCH", - /* 389 */ "compare_op ::= NMATCH", - /* 390 */ "compare_op ::= CONTAINS", - /* 391 */ "in_op ::= IN", - /* 392 */ "in_op ::= NOT IN", - /* 393 */ "in_predicate_value ::= NK_LP literal_list NK_RP", - /* 394 */ "boolean_value_expression ::= boolean_primary", - /* 395 */ "boolean_value_expression ::= NOT boolean_primary", - /* 396 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 397 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 398 */ "boolean_primary ::= predicate", - /* 399 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 400 */ "common_expression ::= expression", - /* 401 */ "common_expression ::= boolean_value_expression", - /* 402 */ "from_clause_opt ::=", - /* 403 */ "from_clause_opt ::= FROM table_reference_list", - /* 404 */ "table_reference_list ::= table_reference", - /* 405 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 406 */ "table_reference ::= table_primary", - /* 407 */ "table_reference ::= joined_table", - /* 408 */ "table_primary ::= table_name alias_opt", - /* 409 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 410 */ "table_primary ::= subquery alias_opt", - /* 411 */ "table_primary ::= parenthesized_joined_table", - /* 412 */ "alias_opt ::=", - /* 413 */ "alias_opt ::= table_alias", - /* 414 */ "alias_opt ::= AS table_alias", - /* 415 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 416 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 417 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 418 */ "join_type ::=", - /* 419 */ "join_type ::= INNER", - /* 420 */ "query_specification ::= SELECT 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", - /* 421 */ "set_quantifier_opt ::=", - /* 422 */ "set_quantifier_opt ::= DISTINCT", - /* 423 */ "set_quantifier_opt ::= ALL", - /* 424 */ "select_list ::= select_item", - /* 425 */ "select_list ::= select_list NK_COMMA select_item", - /* 426 */ "select_item ::= NK_STAR", - /* 427 */ "select_item ::= common_expression", - /* 428 */ "select_item ::= common_expression column_alias", - /* 429 */ "select_item ::= common_expression AS column_alias", - /* 430 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 431 */ "where_clause_opt ::=", - /* 432 */ "where_clause_opt ::= WHERE search_condition", - /* 433 */ "partition_by_clause_opt ::=", - /* 434 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 435 */ "twindow_clause_opt ::=", - /* 436 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 437 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", - /* 438 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 439 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 440 */ "sliding_opt ::=", - /* 441 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 442 */ "fill_opt ::=", - /* 443 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 444 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 445 */ "fill_mode ::= NONE", - /* 446 */ "fill_mode ::= PREV", - /* 447 */ "fill_mode ::= NULL", - /* 448 */ "fill_mode ::= LINEAR", - /* 449 */ "fill_mode ::= NEXT", - /* 450 */ "group_by_clause_opt ::=", - /* 451 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 452 */ "group_by_list ::= expression", - /* 453 */ "group_by_list ::= group_by_list NK_COMMA expression", - /* 454 */ "having_clause_opt ::=", - /* 455 */ "having_clause_opt ::= HAVING search_condition", - /* 456 */ "range_opt ::=", - /* 457 */ "range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP", - /* 458 */ "every_opt ::=", - /* 459 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", - /* 460 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 461 */ "query_expression_body ::= query_primary", - /* 462 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 463 */ "query_expression_body ::= query_expression_body UNION query_expression_body", - /* 464 */ "query_primary ::= query_specification", - /* 465 */ "query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP", - /* 466 */ "order_by_clause_opt ::=", - /* 467 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 468 */ "slimit_clause_opt ::=", - /* 469 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 470 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 471 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 472 */ "limit_clause_opt ::=", - /* 473 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 474 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 475 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 476 */ "subquery ::= NK_LP query_expression NK_RP", - /* 477 */ "search_condition ::= common_expression", - /* 478 */ "sort_specification_list ::= sort_specification", - /* 479 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 480 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 481 */ "ordering_specification_opt ::=", - /* 482 */ "ordering_specification_opt ::= ASC", - /* 483 */ "ordering_specification_opt ::= DESC", - /* 484 */ "null_ordering_opt ::=", - /* 485 */ "null_ordering_opt ::= NULLS FIRST", - /* 486 */ "null_ordering_opt ::= NULLS LAST", + /* 67 */ "cmd ::= TRIM DATABASE db_name", + /* 68 */ "not_exists_opt ::= IF NOT EXISTS", + /* 69 */ "not_exists_opt ::=", + /* 70 */ "exists_opt ::= IF EXISTS", + /* 71 */ "exists_opt ::=", + /* 72 */ "db_options ::=", + /* 73 */ "db_options ::= db_options BUFFER NK_INTEGER", + /* 74 */ "db_options ::= db_options CACHELAST NK_INTEGER", + /* 75 */ "db_options ::= db_options CACHELASTSIZE NK_INTEGER", + /* 76 */ "db_options ::= db_options COMP NK_INTEGER", + /* 77 */ "db_options ::= db_options DURATION NK_INTEGER", + /* 78 */ "db_options ::= db_options DURATION NK_VARIABLE", + /* 79 */ "db_options ::= db_options FSYNC NK_INTEGER", + /* 80 */ "db_options ::= db_options MAXROWS NK_INTEGER", + /* 81 */ "db_options ::= db_options MINROWS NK_INTEGER", + /* 82 */ "db_options ::= db_options KEEP integer_list", + /* 83 */ "db_options ::= db_options KEEP variable_list", + /* 84 */ "db_options ::= db_options PAGES NK_INTEGER", + /* 85 */ "db_options ::= db_options PAGESIZE NK_INTEGER", + /* 86 */ "db_options ::= db_options PRECISION NK_STRING", + /* 87 */ "db_options ::= db_options REPLICA NK_INTEGER", + /* 88 */ "db_options ::= db_options STRICT NK_INTEGER", + /* 89 */ "db_options ::= db_options WAL NK_INTEGER", + /* 90 */ "db_options ::= db_options VGROUPS NK_INTEGER", + /* 91 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", + /* 92 */ "db_options ::= db_options RETENTIONS retention_list", + /* 93 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", + /* 94 */ "alter_db_options ::= alter_db_option", + /* 95 */ "alter_db_options ::= alter_db_options alter_db_option", + /* 96 */ "alter_db_option ::= BUFFER NK_INTEGER", + /* 97 */ "alter_db_option ::= CACHELAST NK_INTEGER", + /* 98 */ "alter_db_option ::= CACHELASTSIZE NK_INTEGER", + /* 99 */ "alter_db_option ::= FSYNC NK_INTEGER", + /* 100 */ "alter_db_option ::= KEEP integer_list", + /* 101 */ "alter_db_option ::= KEEP variable_list", + /* 102 */ "alter_db_option ::= PAGES NK_INTEGER", + /* 103 */ "alter_db_option ::= REPLICA NK_INTEGER", + /* 104 */ "alter_db_option ::= STRICT NK_INTEGER", + /* 105 */ "alter_db_option ::= WAL NK_INTEGER", + /* 106 */ "integer_list ::= NK_INTEGER", + /* 107 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", + /* 108 */ "variable_list ::= NK_VARIABLE", + /* 109 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", + /* 110 */ "retention_list ::= retention", + /* 111 */ "retention_list ::= retention_list NK_COMMA retention", + /* 112 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", + /* 113 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", + /* 114 */ "cmd ::= CREATE TABLE multi_create_clause", + /* 115 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", + /* 116 */ "cmd ::= DROP TABLE multi_drop_clause", + /* 117 */ "cmd ::= DROP STABLE exists_opt full_table_name", + /* 118 */ "cmd ::= ALTER TABLE alter_table_clause", + /* 119 */ "cmd ::= ALTER STABLE alter_table_clause", + /* 120 */ "alter_table_clause ::= full_table_name alter_table_options", + /* 121 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", + /* 122 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", + /* 123 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", + /* 124 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", + /* 125 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", + /* 126 */ "alter_table_clause ::= full_table_name DROP TAG column_name", + /* 127 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", + /* 128 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", + /* 129 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", + /* 130 */ "multi_create_clause ::= create_subtable_clause", + /* 131 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", + /* 132 */ "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", + /* 133 */ "multi_drop_clause ::= drop_table_clause", + /* 134 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", + /* 135 */ "drop_table_clause ::= exists_opt full_table_name", + /* 136 */ "specific_cols_opt ::=", + /* 137 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", + /* 138 */ "full_table_name ::= table_name", + /* 139 */ "full_table_name ::= db_name NK_DOT table_name", + /* 140 */ "column_def_list ::= column_def", + /* 141 */ "column_def_list ::= column_def_list NK_COMMA column_def", + /* 142 */ "column_def ::= column_name type_name", + /* 143 */ "column_def ::= column_name type_name COMMENT NK_STRING", + /* 144 */ "type_name ::= BOOL", + /* 145 */ "type_name ::= TINYINT", + /* 146 */ "type_name ::= SMALLINT", + /* 147 */ "type_name ::= INT", + /* 148 */ "type_name ::= INTEGER", + /* 149 */ "type_name ::= BIGINT", + /* 150 */ "type_name ::= FLOAT", + /* 151 */ "type_name ::= DOUBLE", + /* 152 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", + /* 153 */ "type_name ::= TIMESTAMP", + /* 154 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", + /* 155 */ "type_name ::= TINYINT UNSIGNED", + /* 156 */ "type_name ::= SMALLINT UNSIGNED", + /* 157 */ "type_name ::= INT UNSIGNED", + /* 158 */ "type_name ::= BIGINT UNSIGNED", + /* 159 */ "type_name ::= JSON", + /* 160 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", + /* 161 */ "type_name ::= MEDIUMBLOB", + /* 162 */ "type_name ::= BLOB", + /* 163 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", + /* 164 */ "type_name ::= DECIMAL", + /* 165 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", + /* 166 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 167 */ "tags_def_opt ::=", + /* 168 */ "tags_def_opt ::= tags_def", + /* 169 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", + /* 170 */ "table_options ::=", + /* 171 */ "table_options ::= table_options COMMENT NK_STRING", + /* 172 */ "table_options ::= table_options MAX_DELAY duration_list", + /* 173 */ "table_options ::= table_options WATERMARK duration_list", + /* 174 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", + /* 175 */ "table_options ::= table_options TTL NK_INTEGER", + /* 176 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 177 */ "alter_table_options ::= alter_table_option", + /* 178 */ "alter_table_options ::= alter_table_options alter_table_option", + /* 179 */ "alter_table_option ::= COMMENT NK_STRING", + /* 180 */ "alter_table_option ::= TTL NK_INTEGER", + /* 181 */ "duration_list ::= duration_literal", + /* 182 */ "duration_list ::= duration_list NK_COMMA duration_literal", + /* 183 */ "rollup_func_list ::= rollup_func_name", + /* 184 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", + /* 185 */ "rollup_func_name ::= function_name", + /* 186 */ "rollup_func_name ::= FIRST", + /* 187 */ "rollup_func_name ::= LAST", + /* 188 */ "col_name_list ::= col_name", + /* 189 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 190 */ "col_name ::= column_name", + /* 191 */ "cmd ::= SHOW DNODES", + /* 192 */ "cmd ::= SHOW USERS", + /* 193 */ "cmd ::= SHOW DATABASES", + /* 194 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", + /* 195 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", + /* 196 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", + /* 197 */ "cmd ::= SHOW MNODES", + /* 198 */ "cmd ::= SHOW MODULES", + /* 199 */ "cmd ::= SHOW QNODES", + /* 200 */ "cmd ::= SHOW FUNCTIONS", + /* 201 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", + /* 202 */ "cmd ::= SHOW STREAMS", + /* 203 */ "cmd ::= SHOW ACCOUNTS", + /* 204 */ "cmd ::= SHOW APPS", + /* 205 */ "cmd ::= SHOW CONNECTIONS", + /* 206 */ "cmd ::= SHOW LICENCE", + /* 207 */ "cmd ::= SHOW GRANTS", + /* 208 */ "cmd ::= SHOW CREATE DATABASE db_name", + /* 209 */ "cmd ::= SHOW CREATE TABLE full_table_name", + /* 210 */ "cmd ::= SHOW CREATE STABLE full_table_name", + /* 211 */ "cmd ::= SHOW QUERIES", + /* 212 */ "cmd ::= SHOW SCORES", + /* 213 */ "cmd ::= SHOW TOPICS", + /* 214 */ "cmd ::= SHOW VARIABLES", + /* 215 */ "cmd ::= SHOW LOCAL VARIABLES", + /* 216 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES", + /* 217 */ "cmd ::= SHOW BNODES", + /* 218 */ "cmd ::= SHOW SNODES", + /* 219 */ "cmd ::= SHOW CLUSTER", + /* 220 */ "cmd ::= SHOW TRANSACTIONS", + /* 221 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", + /* 222 */ "cmd ::= SHOW CONSUMERS", + /* 223 */ "cmd ::= SHOW SUBSCRIPTIONS", + /* 224 */ "db_name_cond_opt ::=", + /* 225 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 226 */ "like_pattern_opt ::=", + /* 227 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 228 */ "table_name_cond ::= table_name", + /* 229 */ "from_db_opt ::=", + /* 230 */ "from_db_opt ::= FROM db_name", + /* 231 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", + /* 232 */ "cmd ::= DROP INDEX exists_opt index_name", + /* 233 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", + /* 234 */ "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", + /* 235 */ "func_list ::= func", + /* 236 */ "func_list ::= func_list NK_COMMA func", + /* 237 */ "func ::= function_name NK_LP expression_list NK_RP", + /* 238 */ "sma_stream_opt ::=", + /* 239 */ "sma_stream_opt ::= stream_options WATERMARK duration_literal", + /* 240 */ "sma_stream_opt ::= stream_options MAX_DELAY duration_literal", + /* 241 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", + /* 242 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name", + /* 243 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name", + /* 244 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name", + /* 245 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name", + /* 246 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 247 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", + /* 248 */ "cmd ::= DESC full_table_name", + /* 249 */ "cmd ::= DESCRIBE full_table_name", + /* 250 */ "cmd ::= RESET QUERY CACHE", + /* 251 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", + /* 252 */ "analyze_opt ::=", + /* 253 */ "analyze_opt ::= ANALYZE", + /* 254 */ "explain_options ::=", + /* 255 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 256 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 257 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", + /* 258 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", + /* 259 */ "cmd ::= DROP FUNCTION exists_opt function_name", + /* 260 */ "agg_func_opt ::=", + /* 261 */ "agg_func_opt ::= AGGREGATE", + /* 262 */ "bufsize_opt ::=", + /* 263 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", + /* 264 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression", + /* 265 */ "cmd ::= DROP STREAM exists_opt stream_name", + /* 266 */ "into_opt ::=", + /* 267 */ "into_opt ::= INTO full_table_name", + /* 268 */ "stream_options ::=", + /* 269 */ "stream_options ::= stream_options TRIGGER AT_ONCE", + /* 270 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", + /* 271 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", + /* 272 */ "stream_options ::= stream_options WATERMARK duration_literal", + /* 273 */ "stream_options ::= stream_options IGNORE EXPIRED", + /* 274 */ "cmd ::= KILL CONNECTION NK_INTEGER", + /* 275 */ "cmd ::= KILL QUERY NK_STRING", + /* 276 */ "cmd ::= KILL TRANSACTION NK_INTEGER", + /* 277 */ "cmd ::= BALANCE VGROUP", + /* 278 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", + /* 279 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", + /* 280 */ "cmd ::= SPLIT VGROUP NK_INTEGER", + /* 281 */ "dnode_list ::= DNODE NK_INTEGER", + /* 282 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", + /* 283 */ "cmd ::= SYNCDB db_name REPLICA", + /* 284 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", + /* 285 */ "cmd ::= query_expression", + /* 286 */ "cmd ::= INSERT INTO full_table_name specific_cols_opt query_expression", + /* 287 */ "literal ::= NK_INTEGER", + /* 288 */ "literal ::= NK_FLOAT", + /* 289 */ "literal ::= NK_STRING", + /* 290 */ "literal ::= NK_BOOL", + /* 291 */ "literal ::= TIMESTAMP NK_STRING", + /* 292 */ "literal ::= duration_literal", + /* 293 */ "literal ::= NULL", + /* 294 */ "literal ::= NK_QUESTION", + /* 295 */ "duration_literal ::= NK_VARIABLE", + /* 296 */ "signed ::= NK_INTEGER", + /* 297 */ "signed ::= NK_PLUS NK_INTEGER", + /* 298 */ "signed ::= NK_MINUS NK_INTEGER", + /* 299 */ "signed ::= NK_FLOAT", + /* 300 */ "signed ::= NK_PLUS NK_FLOAT", + /* 301 */ "signed ::= NK_MINUS NK_FLOAT", + /* 302 */ "signed_literal ::= signed", + /* 303 */ "signed_literal ::= NK_STRING", + /* 304 */ "signed_literal ::= NK_BOOL", + /* 305 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 306 */ "signed_literal ::= duration_literal", + /* 307 */ "signed_literal ::= NULL", + /* 308 */ "signed_literal ::= literal_func", + /* 309 */ "literal_list ::= signed_literal", + /* 310 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 311 */ "db_name ::= NK_ID", + /* 312 */ "table_name ::= NK_ID", + /* 313 */ "column_name ::= NK_ID", + /* 314 */ "function_name ::= NK_ID", + /* 315 */ "table_alias ::= NK_ID", + /* 316 */ "column_alias ::= NK_ID", + /* 317 */ "user_name ::= NK_ID", + /* 318 */ "index_name ::= NK_ID", + /* 319 */ "topic_name ::= NK_ID", + /* 320 */ "stream_name ::= NK_ID", + /* 321 */ "cgroup_name ::= NK_ID", + /* 322 */ "expression ::= literal", + /* 323 */ "expression ::= pseudo_column", + /* 324 */ "expression ::= column_reference", + /* 325 */ "expression ::= function_expression", + /* 326 */ "expression ::= subquery", + /* 327 */ "expression ::= NK_LP expression NK_RP", + /* 328 */ "expression ::= NK_PLUS expression", + /* 329 */ "expression ::= NK_MINUS expression", + /* 330 */ "expression ::= expression NK_PLUS expression", + /* 331 */ "expression ::= expression NK_MINUS expression", + /* 332 */ "expression ::= expression NK_STAR expression", + /* 333 */ "expression ::= expression NK_SLASH expression", + /* 334 */ "expression ::= expression NK_REM expression", + /* 335 */ "expression ::= column_reference NK_ARROW NK_STRING", + /* 336 */ "expression ::= expression NK_BITAND expression", + /* 337 */ "expression ::= expression NK_BITOR expression", + /* 338 */ "expression_list ::= expression", + /* 339 */ "expression_list ::= expression_list NK_COMMA expression", + /* 340 */ "column_reference ::= column_name", + /* 341 */ "column_reference ::= table_name NK_DOT column_name", + /* 342 */ "pseudo_column ::= ROWTS", + /* 343 */ "pseudo_column ::= TBNAME", + /* 344 */ "pseudo_column ::= table_name NK_DOT TBNAME", + /* 345 */ "pseudo_column ::= QSTARTTS", + /* 346 */ "pseudo_column ::= QENDTS", + /* 347 */ "pseudo_column ::= WSTARTTS", + /* 348 */ "pseudo_column ::= WENDTS", + /* 349 */ "pseudo_column ::= WDURATION", + /* 350 */ "function_expression ::= function_name NK_LP expression_list NK_RP", + /* 351 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", + /* 352 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP", + /* 353 */ "function_expression ::= literal_func", + /* 354 */ "literal_func ::= noarg_func NK_LP NK_RP", + /* 355 */ "literal_func ::= NOW", + /* 356 */ "noarg_func ::= NOW", + /* 357 */ "noarg_func ::= TODAY", + /* 358 */ "noarg_func ::= TIMEZONE", + /* 359 */ "noarg_func ::= DATABASE", + /* 360 */ "noarg_func ::= CLIENT_VERSION", + /* 361 */ "noarg_func ::= SERVER_VERSION", + /* 362 */ "noarg_func ::= SERVER_STATUS", + /* 363 */ "noarg_func ::= CURRENT_USER", + /* 364 */ "noarg_func ::= USER", + /* 365 */ "star_func ::= COUNT", + /* 366 */ "star_func ::= FIRST", + /* 367 */ "star_func ::= LAST", + /* 368 */ "star_func ::= LAST_ROW", + /* 369 */ "star_func_para_list ::= NK_STAR", + /* 370 */ "star_func_para_list ::= other_para_list", + /* 371 */ "other_para_list ::= star_func_para", + /* 372 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", + /* 373 */ "star_func_para ::= expression", + /* 374 */ "star_func_para ::= table_name NK_DOT NK_STAR", + /* 375 */ "predicate ::= expression compare_op expression", + /* 376 */ "predicate ::= expression BETWEEN expression AND expression", + /* 377 */ "predicate ::= expression NOT BETWEEN expression AND expression", + /* 378 */ "predicate ::= expression IS NULL", + /* 379 */ "predicate ::= expression IS NOT NULL", + /* 380 */ "predicate ::= expression in_op in_predicate_value", + /* 381 */ "compare_op ::= NK_LT", + /* 382 */ "compare_op ::= NK_GT", + /* 383 */ "compare_op ::= NK_LE", + /* 384 */ "compare_op ::= NK_GE", + /* 385 */ "compare_op ::= NK_NE", + /* 386 */ "compare_op ::= NK_EQ", + /* 387 */ "compare_op ::= LIKE", + /* 388 */ "compare_op ::= NOT LIKE", + /* 389 */ "compare_op ::= MATCH", + /* 390 */ "compare_op ::= NMATCH", + /* 391 */ "compare_op ::= CONTAINS", + /* 392 */ "in_op ::= IN", + /* 393 */ "in_op ::= NOT IN", + /* 394 */ "in_predicate_value ::= NK_LP literal_list NK_RP", + /* 395 */ "boolean_value_expression ::= boolean_primary", + /* 396 */ "boolean_value_expression ::= NOT boolean_primary", + /* 397 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 398 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 399 */ "boolean_primary ::= predicate", + /* 400 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 401 */ "common_expression ::= expression", + /* 402 */ "common_expression ::= boolean_value_expression", + /* 403 */ "from_clause_opt ::=", + /* 404 */ "from_clause_opt ::= FROM table_reference_list", + /* 405 */ "table_reference_list ::= table_reference", + /* 406 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 407 */ "table_reference ::= table_primary", + /* 408 */ "table_reference ::= joined_table", + /* 409 */ "table_primary ::= table_name alias_opt", + /* 410 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 411 */ "table_primary ::= subquery alias_opt", + /* 412 */ "table_primary ::= parenthesized_joined_table", + /* 413 */ "alias_opt ::=", + /* 414 */ "alias_opt ::= table_alias", + /* 415 */ "alias_opt ::= AS table_alias", + /* 416 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 417 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 418 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 419 */ "join_type ::=", + /* 420 */ "join_type ::= INNER", + /* 421 */ "query_specification ::= SELECT 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", + /* 422 */ "set_quantifier_opt ::=", + /* 423 */ "set_quantifier_opt ::= DISTINCT", + /* 424 */ "set_quantifier_opt ::= ALL", + /* 425 */ "select_list ::= select_item", + /* 426 */ "select_list ::= select_list NK_COMMA select_item", + /* 427 */ "select_item ::= NK_STAR", + /* 428 */ "select_item ::= common_expression", + /* 429 */ "select_item ::= common_expression column_alias", + /* 430 */ "select_item ::= common_expression AS column_alias", + /* 431 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 432 */ "where_clause_opt ::=", + /* 433 */ "where_clause_opt ::= WHERE search_condition", + /* 434 */ "partition_by_clause_opt ::=", + /* 435 */ "partition_by_clause_opt ::= PARTITION BY expression_list", + /* 436 */ "twindow_clause_opt ::=", + /* 437 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 438 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", + /* 439 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 440 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 441 */ "sliding_opt ::=", + /* 442 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 443 */ "fill_opt ::=", + /* 444 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 445 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 446 */ "fill_mode ::= NONE", + /* 447 */ "fill_mode ::= PREV", + /* 448 */ "fill_mode ::= NULL", + /* 449 */ "fill_mode ::= LINEAR", + /* 450 */ "fill_mode ::= NEXT", + /* 451 */ "group_by_clause_opt ::=", + /* 452 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 453 */ "group_by_list ::= expression", + /* 454 */ "group_by_list ::= group_by_list NK_COMMA expression", + /* 455 */ "having_clause_opt ::=", + /* 456 */ "having_clause_opt ::= HAVING search_condition", + /* 457 */ "range_opt ::=", + /* 458 */ "range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP", + /* 459 */ "every_opt ::=", + /* 460 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", + /* 461 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 462 */ "query_expression_body ::= query_primary", + /* 463 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 464 */ "query_expression_body ::= query_expression_body UNION query_expression_body", + /* 465 */ "query_primary ::= query_specification", + /* 466 */ "query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP", + /* 467 */ "order_by_clause_opt ::=", + /* 468 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 469 */ "slimit_clause_opt ::=", + /* 470 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 471 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 472 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 473 */ "limit_clause_opt ::=", + /* 474 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 475 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 476 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 477 */ "subquery ::= NK_LP query_expression NK_RP", + /* 478 */ "search_condition ::= common_expression", + /* 479 */ "sort_specification_list ::= sort_specification", + /* 480 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 481 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 482 */ "ordering_specification_opt ::=", + /* 483 */ "ordering_specification_opt ::= ASC", + /* 484 */ "ordering_specification_opt ::= DESC", + /* 485 */ "null_ordering_opt ::=", + /* 486 */ "null_ordering_opt ::= NULLS FIRST", + /* 487 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -2239,181 +2258,181 @@ static void yy_destructor( */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ - case 254: /* cmd */ - case 257: /* literal */ - case 268: /* db_options */ - case 270: /* alter_db_options */ - case 275: /* retention */ - case 276: /* full_table_name */ - case 279: /* table_options */ - case 283: /* alter_table_clause */ - case 284: /* alter_table_options */ - case 287: /* signed_literal */ - case 288: /* create_subtable_clause */ - case 291: /* drop_table_clause */ - case 294: /* column_def */ - case 298: /* duration_literal */ - case 299: /* rollup_func_name */ - case 301: /* col_name */ - case 302: /* db_name_cond_opt */ - case 303: /* like_pattern_opt */ - case 304: /* table_name_cond */ - case 305: /* from_db_opt */ - case 307: /* index_options */ - case 309: /* sliding_opt */ - case 310: /* sma_stream_opt */ - case 311: /* func */ - case 312: /* stream_options */ - case 314: /* query_expression */ - case 317: /* explain_options */ - case 321: /* into_opt */ - case 323: /* where_clause_opt */ - case 324: /* signed */ - case 325: /* literal_func */ - case 329: /* expression */ - case 330: /* pseudo_column */ - case 331: /* column_reference */ - case 332: /* function_expression */ - case 333: /* subquery */ - case 338: /* star_func_para */ - case 339: /* predicate */ - case 342: /* in_predicate_value */ - case 343: /* boolean_value_expression */ - case 344: /* boolean_primary */ - case 345: /* common_expression */ - case 346: /* from_clause_opt */ - case 347: /* table_reference_list */ - case 348: /* table_reference */ - case 349: /* table_primary */ - case 350: /* joined_table */ - case 352: /* parenthesized_joined_table */ - case 354: /* search_condition */ - case 355: /* query_specification */ - case 359: /* range_opt */ - case 360: /* every_opt */ - case 361: /* fill_opt */ - case 362: /* twindow_clause_opt */ - case 364: /* having_clause_opt */ - case 365: /* select_item */ - case 368: /* query_expression_body */ - case 370: /* slimit_clause_opt */ - case 371: /* limit_clause_opt */ - case 372: /* query_primary */ - case 374: /* sort_specification */ + case 255: /* cmd */ + case 258: /* literal */ + case 269: /* db_options */ + case 271: /* alter_db_options */ + case 276: /* retention */ + case 277: /* full_table_name */ + case 280: /* table_options */ + case 284: /* alter_table_clause */ + case 285: /* alter_table_options */ + case 288: /* signed_literal */ + case 289: /* create_subtable_clause */ + case 292: /* drop_table_clause */ + case 295: /* column_def */ + case 299: /* duration_literal */ + case 300: /* rollup_func_name */ + case 302: /* col_name */ + case 303: /* db_name_cond_opt */ + case 304: /* like_pattern_opt */ + case 305: /* table_name_cond */ + case 306: /* from_db_opt */ + case 308: /* index_options */ + case 310: /* sliding_opt */ + case 311: /* sma_stream_opt */ + case 312: /* func */ + case 313: /* stream_options */ + case 315: /* query_expression */ + case 318: /* explain_options */ + case 322: /* into_opt */ + case 324: /* where_clause_opt */ + case 325: /* signed */ + case 326: /* literal_func */ + case 330: /* expression */ + case 331: /* pseudo_column */ + case 332: /* column_reference */ + case 333: /* function_expression */ + case 334: /* subquery */ + case 339: /* star_func_para */ + case 340: /* predicate */ + case 343: /* in_predicate_value */ + case 344: /* boolean_value_expression */ + case 345: /* boolean_primary */ + case 346: /* common_expression */ + case 347: /* from_clause_opt */ + case 348: /* table_reference_list */ + case 349: /* table_reference */ + case 350: /* table_primary */ + case 351: /* joined_table */ + case 353: /* parenthesized_joined_table */ + case 355: /* search_condition */ + case 356: /* query_specification */ + case 360: /* range_opt */ + case 361: /* every_opt */ + case 362: /* fill_opt */ + case 363: /* twindow_clause_opt */ + case 365: /* having_clause_opt */ + case 366: /* select_item */ + case 369: /* query_expression_body */ + case 371: /* slimit_clause_opt */ + case 372: /* limit_clause_opt */ + case 373: /* query_primary */ + case 375: /* sort_specification */ { - nodesDestroyNode((yypminor->yy652)); + nodesDestroyNode((yypminor->yy560)); } break; - case 255: /* account_options */ - case 256: /* alter_account_options */ - case 258: /* alter_account_option */ - case 319: /* bufsize_opt */ + case 256: /* account_options */ + case 257: /* alter_account_options */ + case 259: /* alter_account_option */ + case 320: /* bufsize_opt */ { } break; - case 259: /* user_name */ - case 262: /* priv_level */ - case 265: /* db_name */ - case 266: /* dnode_endpoint */ - case 285: /* column_name */ - case 293: /* table_name */ - case 300: /* function_name */ - case 306: /* index_name */ - case 313: /* topic_name */ - case 315: /* cgroup_name */ - case 320: /* stream_name */ - case 327: /* table_alias */ - case 328: /* column_alias */ - case 334: /* star_func */ - case 336: /* noarg_func */ - case 351: /* alias_opt */ + case 260: /* user_name */ + case 263: /* priv_level */ + case 266: /* db_name */ + case 267: /* dnode_endpoint */ + case 286: /* column_name */ + case 294: /* table_name */ + case 301: /* function_name */ + case 307: /* index_name */ + case 314: /* topic_name */ + case 316: /* cgroup_name */ + case 321: /* stream_name */ + case 328: /* table_alias */ + case 329: /* column_alias */ + case 335: /* star_func */ + case 337: /* noarg_func */ + case 352: /* alias_opt */ { } break; - case 260: /* sysinfo_opt */ + case 261: /* sysinfo_opt */ { } break; - case 261: /* privileges */ - case 263: /* priv_type_list */ - case 264: /* priv_type */ + case 262: /* privileges */ + case 264: /* priv_type_list */ + case 265: /* priv_type */ { } break; - case 267: /* not_exists_opt */ - case 269: /* exists_opt */ - case 316: /* analyze_opt */ - case 318: /* agg_func_opt */ - case 356: /* set_quantifier_opt */ + case 268: /* not_exists_opt */ + case 270: /* exists_opt */ + case 317: /* analyze_opt */ + case 319: /* agg_func_opt */ + case 357: /* set_quantifier_opt */ { } break; - case 271: /* integer_list */ - case 272: /* variable_list */ - case 273: /* retention_list */ - case 277: /* column_def_list */ - case 278: /* tags_def_opt */ - case 280: /* multi_create_clause */ - case 281: /* tags_def */ - case 282: /* multi_drop_clause */ - case 289: /* specific_cols_opt */ - case 290: /* expression_list */ - case 292: /* col_name_list */ - case 295: /* duration_list */ - case 296: /* rollup_func_list */ - case 308: /* func_list */ - case 322: /* dnode_list */ - case 326: /* literal_list */ - case 335: /* star_func_para_list */ - case 337: /* other_para_list */ - case 357: /* select_list */ - case 358: /* partition_by_clause_opt */ - case 363: /* group_by_clause_opt */ - case 367: /* group_by_list */ - case 369: /* order_by_clause_opt */ - case 373: /* sort_specification_list */ + case 272: /* integer_list */ + case 273: /* variable_list */ + case 274: /* retention_list */ + case 278: /* column_def_list */ + case 279: /* tags_def_opt */ + case 281: /* multi_create_clause */ + case 282: /* tags_def */ + case 283: /* multi_drop_clause */ + case 290: /* specific_cols_opt */ + case 291: /* expression_list */ + case 293: /* col_name_list */ + case 296: /* duration_list */ + case 297: /* rollup_func_list */ + case 309: /* func_list */ + case 323: /* dnode_list */ + case 327: /* literal_list */ + case 336: /* star_func_para_list */ + case 338: /* other_para_list */ + case 358: /* select_list */ + case 359: /* partition_by_clause_opt */ + case 364: /* group_by_clause_opt */ + case 368: /* group_by_list */ + case 370: /* order_by_clause_opt */ + case 374: /* sort_specification_list */ { - nodesDestroyList((yypminor->yy210)); + nodesDestroyList((yypminor->yy712)); } break; - case 274: /* alter_db_option */ - case 297: /* alter_table_option */ + case 275: /* alter_db_option */ + case 298: /* alter_table_option */ { } break; - case 286: /* type_name */ + case 287: /* type_name */ { } break; - case 340: /* compare_op */ - case 341: /* in_op */ + case 341: /* compare_op */ + case 342: /* in_op */ { } break; - case 353: /* join_type */ + case 354: /* join_type */ { } break; - case 366: /* fill_mode */ + case 367: /* fill_mode */ { } break; - case 375: /* ordering_specification_opt */ + case 376: /* ordering_specification_opt */ { } break; - case 376: /* null_ordering_opt */ + case 377: /* null_ordering_opt */ { } @@ -2712,493 +2731,494 @@ static const struct { YYCODETYPE lhs; /* Symbol on the left-hand side of the rule */ signed char nrhs; /* Negative of the number of RHS symbols in the rule */ } yyRuleInfo[] = { - { 254, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ - { 254, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ - { 255, 0 }, /* (2) account_options ::= */ - { 255, -3 }, /* (3) account_options ::= account_options PPS literal */ - { 255, -3 }, /* (4) account_options ::= account_options TSERIES literal */ - { 255, -3 }, /* (5) account_options ::= account_options STORAGE literal */ - { 255, -3 }, /* (6) account_options ::= account_options STREAMS literal */ - { 255, -3 }, /* (7) account_options ::= account_options QTIME literal */ - { 255, -3 }, /* (8) account_options ::= account_options DBS literal */ - { 255, -3 }, /* (9) account_options ::= account_options USERS literal */ - { 255, -3 }, /* (10) account_options ::= account_options CONNS literal */ - { 255, -3 }, /* (11) account_options ::= account_options STATE literal */ - { 256, -1 }, /* (12) alter_account_options ::= alter_account_option */ - { 256, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ - { 258, -2 }, /* (14) alter_account_option ::= PASS literal */ - { 258, -2 }, /* (15) alter_account_option ::= PPS literal */ - { 258, -2 }, /* (16) alter_account_option ::= TSERIES literal */ - { 258, -2 }, /* (17) alter_account_option ::= STORAGE literal */ - { 258, -2 }, /* (18) alter_account_option ::= STREAMS literal */ - { 258, -2 }, /* (19) alter_account_option ::= QTIME literal */ - { 258, -2 }, /* (20) alter_account_option ::= DBS literal */ - { 258, -2 }, /* (21) alter_account_option ::= USERS literal */ - { 258, -2 }, /* (22) alter_account_option ::= CONNS literal */ - { 258, -2 }, /* (23) alter_account_option ::= STATE literal */ - { 254, -6 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ - { 254, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ - { 254, -5 }, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ - { 254, -5 }, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ - { 254, -3 }, /* (28) cmd ::= DROP USER user_name */ - { 260, 0 }, /* (29) sysinfo_opt ::= */ - { 260, -2 }, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */ - { 254, -6 }, /* (31) cmd ::= GRANT privileges ON priv_level TO user_name */ - { 254, -6 }, /* (32) cmd ::= REVOKE privileges ON priv_level FROM user_name */ - { 261, -1 }, /* (33) privileges ::= ALL */ - { 261, -1 }, /* (34) privileges ::= priv_type_list */ - { 263, -1 }, /* (35) priv_type_list ::= priv_type */ - { 263, -3 }, /* (36) priv_type_list ::= priv_type_list NK_COMMA priv_type */ - { 264, -1 }, /* (37) priv_type ::= READ */ - { 264, -1 }, /* (38) priv_type ::= WRITE */ - { 262, -3 }, /* (39) priv_level ::= NK_STAR NK_DOT NK_STAR */ - { 262, -3 }, /* (40) priv_level ::= db_name NK_DOT NK_STAR */ - { 254, -3 }, /* (41) cmd ::= CREATE DNODE dnode_endpoint */ - { 254, -5 }, /* (42) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ - { 254, -3 }, /* (43) cmd ::= DROP DNODE NK_INTEGER */ - { 254, -3 }, /* (44) cmd ::= DROP DNODE dnode_endpoint */ - { 254, -4 }, /* (45) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ - { 254, -5 }, /* (46) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ - { 254, -4 }, /* (47) cmd ::= ALTER ALL DNODES NK_STRING */ - { 254, -5 }, /* (48) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ - { 266, -1 }, /* (49) dnode_endpoint ::= NK_STRING */ - { 266, -1 }, /* (50) dnode_endpoint ::= NK_ID */ - { 266, -1 }, /* (51) dnode_endpoint ::= NK_IPTOKEN */ - { 254, -3 }, /* (52) cmd ::= ALTER LOCAL NK_STRING */ - { 254, -4 }, /* (53) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - { 254, -5 }, /* (54) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - { 254, -5 }, /* (55) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - { 254, -5 }, /* (56) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ - { 254, -5 }, /* (57) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ - { 254, -5 }, /* (58) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ - { 254, -5 }, /* (59) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ - { 254, -5 }, /* (60) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ - { 254, -5 }, /* (61) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ - { 254, -5 }, /* (62) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - { 254, -4 }, /* (63) cmd ::= DROP DATABASE exists_opt db_name */ - { 254, -2 }, /* (64) cmd ::= USE db_name */ - { 254, -4 }, /* (65) cmd ::= ALTER DATABASE db_name alter_db_options */ - { 254, -3 }, /* (66) cmd ::= FLUSH DATABASE db_name */ - { 267, -3 }, /* (67) not_exists_opt ::= IF NOT EXISTS */ - { 267, 0 }, /* (68) not_exists_opt ::= */ - { 269, -2 }, /* (69) exists_opt ::= IF EXISTS */ - { 269, 0 }, /* (70) exists_opt ::= */ - { 268, 0 }, /* (71) db_options ::= */ - { 268, -3 }, /* (72) db_options ::= db_options BUFFER NK_INTEGER */ - { 268, -3 }, /* (73) db_options ::= db_options CACHELAST NK_INTEGER */ - { 268, -3 }, /* (74) db_options ::= db_options CACHELASTSIZE NK_INTEGER */ - { 268, -3 }, /* (75) db_options ::= db_options COMP NK_INTEGER */ - { 268, -3 }, /* (76) db_options ::= db_options DURATION NK_INTEGER */ - { 268, -3 }, /* (77) db_options ::= db_options DURATION NK_VARIABLE */ - { 268, -3 }, /* (78) db_options ::= db_options FSYNC NK_INTEGER */ - { 268, -3 }, /* (79) db_options ::= db_options MAXROWS NK_INTEGER */ - { 268, -3 }, /* (80) db_options ::= db_options MINROWS NK_INTEGER */ - { 268, -3 }, /* (81) db_options ::= db_options KEEP integer_list */ - { 268, -3 }, /* (82) db_options ::= db_options KEEP variable_list */ - { 268, -3 }, /* (83) db_options ::= db_options PAGES NK_INTEGER */ - { 268, -3 }, /* (84) db_options ::= db_options PAGESIZE NK_INTEGER */ - { 268, -3 }, /* (85) db_options ::= db_options PRECISION NK_STRING */ - { 268, -3 }, /* (86) db_options ::= db_options REPLICA NK_INTEGER */ - { 268, -3 }, /* (87) db_options ::= db_options STRICT NK_INTEGER */ - { 268, -3 }, /* (88) db_options ::= db_options WAL NK_INTEGER */ - { 268, -3 }, /* (89) db_options ::= db_options VGROUPS NK_INTEGER */ - { 268, -3 }, /* (90) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - { 268, -3 }, /* (91) db_options ::= db_options RETENTIONS retention_list */ - { 268, -3 }, /* (92) db_options ::= db_options SCHEMALESS NK_INTEGER */ - { 270, -1 }, /* (93) alter_db_options ::= alter_db_option */ - { 270, -2 }, /* (94) alter_db_options ::= alter_db_options alter_db_option */ - { 274, -2 }, /* (95) alter_db_option ::= BUFFER NK_INTEGER */ - { 274, -2 }, /* (96) alter_db_option ::= CACHELAST NK_INTEGER */ - { 274, -2 }, /* (97) alter_db_option ::= CACHELASTSIZE NK_INTEGER */ - { 274, -2 }, /* (98) alter_db_option ::= FSYNC NK_INTEGER */ - { 274, -2 }, /* (99) alter_db_option ::= KEEP integer_list */ - { 274, -2 }, /* (100) alter_db_option ::= KEEP variable_list */ - { 274, -2 }, /* (101) alter_db_option ::= PAGES NK_INTEGER */ - { 274, -2 }, /* (102) alter_db_option ::= REPLICA NK_INTEGER */ - { 274, -2 }, /* (103) alter_db_option ::= STRICT NK_INTEGER */ - { 274, -2 }, /* (104) alter_db_option ::= WAL NK_INTEGER */ - { 271, -1 }, /* (105) integer_list ::= NK_INTEGER */ - { 271, -3 }, /* (106) integer_list ::= integer_list NK_COMMA NK_INTEGER */ - { 272, -1 }, /* (107) variable_list ::= NK_VARIABLE */ - { 272, -3 }, /* (108) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ - { 273, -1 }, /* (109) retention_list ::= retention */ - { 273, -3 }, /* (110) retention_list ::= retention_list NK_COMMA retention */ - { 275, -3 }, /* (111) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ - { 254, -9 }, /* (112) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - { 254, -3 }, /* (113) cmd ::= CREATE TABLE multi_create_clause */ - { 254, -9 }, /* (114) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - { 254, -3 }, /* (115) cmd ::= DROP TABLE multi_drop_clause */ - { 254, -4 }, /* (116) cmd ::= DROP STABLE exists_opt full_table_name */ - { 254, -3 }, /* (117) cmd ::= ALTER TABLE alter_table_clause */ - { 254, -3 }, /* (118) cmd ::= ALTER STABLE alter_table_clause */ - { 283, -2 }, /* (119) alter_table_clause ::= full_table_name alter_table_options */ - { 283, -5 }, /* (120) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - { 283, -4 }, /* (121) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - { 283, -5 }, /* (122) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - { 283, -5 }, /* (123) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - { 283, -5 }, /* (124) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - { 283, -4 }, /* (125) alter_table_clause ::= full_table_name DROP TAG column_name */ - { 283, -5 }, /* (126) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - { 283, -5 }, /* (127) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - { 283, -6 }, /* (128) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ - { 280, -1 }, /* (129) multi_create_clause ::= create_subtable_clause */ - { 280, -2 }, /* (130) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 288, -10 }, /* (131) 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 */ - { 282, -1 }, /* (132) multi_drop_clause ::= drop_table_clause */ - { 282, -2 }, /* (133) multi_drop_clause ::= multi_drop_clause drop_table_clause */ - { 291, -2 }, /* (134) drop_table_clause ::= exists_opt full_table_name */ - { 289, 0 }, /* (135) specific_cols_opt ::= */ - { 289, -3 }, /* (136) specific_cols_opt ::= NK_LP col_name_list NK_RP */ - { 276, -1 }, /* (137) full_table_name ::= table_name */ - { 276, -3 }, /* (138) full_table_name ::= db_name NK_DOT table_name */ - { 277, -1 }, /* (139) column_def_list ::= column_def */ - { 277, -3 }, /* (140) column_def_list ::= column_def_list NK_COMMA column_def */ - { 294, -2 }, /* (141) column_def ::= column_name type_name */ - { 294, -4 }, /* (142) column_def ::= column_name type_name COMMENT NK_STRING */ - { 286, -1 }, /* (143) type_name ::= BOOL */ - { 286, -1 }, /* (144) type_name ::= TINYINT */ - { 286, -1 }, /* (145) type_name ::= SMALLINT */ - { 286, -1 }, /* (146) type_name ::= INT */ - { 286, -1 }, /* (147) type_name ::= INTEGER */ - { 286, -1 }, /* (148) type_name ::= BIGINT */ - { 286, -1 }, /* (149) type_name ::= FLOAT */ - { 286, -1 }, /* (150) type_name ::= DOUBLE */ - { 286, -4 }, /* (151) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - { 286, -1 }, /* (152) type_name ::= TIMESTAMP */ - { 286, -4 }, /* (153) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - { 286, -2 }, /* (154) type_name ::= TINYINT UNSIGNED */ - { 286, -2 }, /* (155) type_name ::= SMALLINT UNSIGNED */ - { 286, -2 }, /* (156) type_name ::= INT UNSIGNED */ - { 286, -2 }, /* (157) type_name ::= BIGINT UNSIGNED */ - { 286, -1 }, /* (158) type_name ::= JSON */ - { 286, -4 }, /* (159) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - { 286, -1 }, /* (160) type_name ::= MEDIUMBLOB */ - { 286, -1 }, /* (161) type_name ::= BLOB */ - { 286, -4 }, /* (162) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - { 286, -1 }, /* (163) type_name ::= DECIMAL */ - { 286, -4 }, /* (164) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - { 286, -6 }, /* (165) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - { 278, 0 }, /* (166) tags_def_opt ::= */ - { 278, -1 }, /* (167) tags_def_opt ::= tags_def */ - { 281, -4 }, /* (168) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - { 279, 0 }, /* (169) table_options ::= */ - { 279, -3 }, /* (170) table_options ::= table_options COMMENT NK_STRING */ - { 279, -3 }, /* (171) table_options ::= table_options MAX_DELAY duration_list */ - { 279, -3 }, /* (172) table_options ::= table_options WATERMARK duration_list */ - { 279, -5 }, /* (173) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ - { 279, -3 }, /* (174) table_options ::= table_options TTL NK_INTEGER */ - { 279, -5 }, /* (175) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - { 284, -1 }, /* (176) alter_table_options ::= alter_table_option */ - { 284, -2 }, /* (177) alter_table_options ::= alter_table_options alter_table_option */ - { 297, -2 }, /* (178) alter_table_option ::= COMMENT NK_STRING */ - { 297, -2 }, /* (179) alter_table_option ::= TTL NK_INTEGER */ - { 295, -1 }, /* (180) duration_list ::= duration_literal */ - { 295, -3 }, /* (181) duration_list ::= duration_list NK_COMMA duration_literal */ - { 296, -1 }, /* (182) rollup_func_list ::= rollup_func_name */ - { 296, -3 }, /* (183) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - { 299, -1 }, /* (184) rollup_func_name ::= function_name */ - { 299, -1 }, /* (185) rollup_func_name ::= FIRST */ - { 299, -1 }, /* (186) rollup_func_name ::= LAST */ - { 292, -1 }, /* (187) col_name_list ::= col_name */ - { 292, -3 }, /* (188) col_name_list ::= col_name_list NK_COMMA col_name */ - { 301, -1 }, /* (189) col_name ::= column_name */ - { 254, -2 }, /* (190) cmd ::= SHOW DNODES */ - { 254, -2 }, /* (191) cmd ::= SHOW USERS */ - { 254, -2 }, /* (192) cmd ::= SHOW DATABASES */ - { 254, -4 }, /* (193) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - { 254, -4 }, /* (194) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - { 254, -3 }, /* (195) cmd ::= SHOW db_name_cond_opt VGROUPS */ - { 254, -2 }, /* (196) cmd ::= SHOW MNODES */ - { 254, -2 }, /* (197) cmd ::= SHOW MODULES */ - { 254, -2 }, /* (198) cmd ::= SHOW QNODES */ - { 254, -2 }, /* (199) cmd ::= SHOW FUNCTIONS */ - { 254, -5 }, /* (200) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - { 254, -2 }, /* (201) cmd ::= SHOW STREAMS */ - { 254, -2 }, /* (202) cmd ::= SHOW ACCOUNTS */ - { 254, -2 }, /* (203) cmd ::= SHOW APPS */ - { 254, -2 }, /* (204) cmd ::= SHOW CONNECTIONS */ - { 254, -2 }, /* (205) cmd ::= SHOW LICENCE */ - { 254, -2 }, /* (206) cmd ::= SHOW GRANTS */ - { 254, -4 }, /* (207) cmd ::= SHOW CREATE DATABASE db_name */ - { 254, -4 }, /* (208) cmd ::= SHOW CREATE TABLE full_table_name */ - { 254, -4 }, /* (209) cmd ::= SHOW CREATE STABLE full_table_name */ - { 254, -2 }, /* (210) cmd ::= SHOW QUERIES */ - { 254, -2 }, /* (211) cmd ::= SHOW SCORES */ - { 254, -2 }, /* (212) cmd ::= SHOW TOPICS */ - { 254, -2 }, /* (213) cmd ::= SHOW VARIABLES */ - { 254, -3 }, /* (214) cmd ::= SHOW LOCAL VARIABLES */ - { 254, -4 }, /* (215) cmd ::= SHOW DNODE NK_INTEGER VARIABLES */ - { 254, -2 }, /* (216) cmd ::= SHOW BNODES */ - { 254, -2 }, /* (217) cmd ::= SHOW SNODES */ - { 254, -2 }, /* (218) cmd ::= SHOW CLUSTER */ - { 254, -2 }, /* (219) cmd ::= SHOW TRANSACTIONS */ - { 254, -4 }, /* (220) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ - { 254, -2 }, /* (221) cmd ::= SHOW CONSUMERS */ - { 254, -2 }, /* (222) cmd ::= SHOW SUBSCRIPTIONS */ - { 302, 0 }, /* (223) db_name_cond_opt ::= */ - { 302, -2 }, /* (224) db_name_cond_opt ::= db_name NK_DOT */ - { 303, 0 }, /* (225) like_pattern_opt ::= */ - { 303, -2 }, /* (226) like_pattern_opt ::= LIKE NK_STRING */ - { 304, -1 }, /* (227) table_name_cond ::= table_name */ - { 305, 0 }, /* (228) from_db_opt ::= */ - { 305, -2 }, /* (229) from_db_opt ::= FROM db_name */ - { 254, -8 }, /* (230) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ - { 254, -4 }, /* (231) cmd ::= DROP INDEX exists_opt index_name */ - { 307, -10 }, /* (232) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ - { 307, -12 }, /* (233) 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 */ - { 308, -1 }, /* (234) func_list ::= func */ - { 308, -3 }, /* (235) func_list ::= func_list NK_COMMA func */ - { 311, -4 }, /* (236) func ::= function_name NK_LP expression_list NK_RP */ - { 310, 0 }, /* (237) sma_stream_opt ::= */ - { 310, -3 }, /* (238) sma_stream_opt ::= stream_options WATERMARK duration_literal */ - { 310, -3 }, /* (239) sma_stream_opt ::= stream_options MAX_DELAY duration_literal */ - { 254, -6 }, /* (240) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ - { 254, -7 }, /* (241) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ - { 254, -9 }, /* (242) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ - { 254, -7 }, /* (243) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ - { 254, -9 }, /* (244) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ - { 254, -4 }, /* (245) cmd ::= DROP TOPIC exists_opt topic_name */ - { 254, -7 }, /* (246) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - { 254, -2 }, /* (247) cmd ::= DESC full_table_name */ - { 254, -2 }, /* (248) cmd ::= DESCRIBE full_table_name */ - { 254, -3 }, /* (249) cmd ::= RESET QUERY CACHE */ - { 254, -4 }, /* (250) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ - { 316, 0 }, /* (251) analyze_opt ::= */ - { 316, -1 }, /* (252) analyze_opt ::= ANALYZE */ - { 317, 0 }, /* (253) explain_options ::= */ - { 317, -3 }, /* (254) explain_options ::= explain_options VERBOSE NK_BOOL */ - { 317, -3 }, /* (255) explain_options ::= explain_options RATIO NK_FLOAT */ - { 254, -6 }, /* (256) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ - { 254, -10 }, /* (257) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ - { 254, -4 }, /* (258) cmd ::= DROP FUNCTION exists_opt function_name */ - { 318, 0 }, /* (259) agg_func_opt ::= */ - { 318, -1 }, /* (260) agg_func_opt ::= AGGREGATE */ - { 319, 0 }, /* (261) bufsize_opt ::= */ - { 319, -2 }, /* (262) bufsize_opt ::= BUFSIZE NK_INTEGER */ - { 254, -8 }, /* (263) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ - { 254, -4 }, /* (264) cmd ::= DROP STREAM exists_opt stream_name */ - { 321, 0 }, /* (265) into_opt ::= */ - { 321, -2 }, /* (266) into_opt ::= INTO full_table_name */ - { 312, 0 }, /* (267) stream_options ::= */ - { 312, -3 }, /* (268) stream_options ::= stream_options TRIGGER AT_ONCE */ - { 312, -3 }, /* (269) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - { 312, -4 }, /* (270) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - { 312, -3 }, /* (271) stream_options ::= stream_options WATERMARK duration_literal */ - { 312, -3 }, /* (272) stream_options ::= stream_options IGNORE EXPIRED */ - { 254, -3 }, /* (273) cmd ::= KILL CONNECTION NK_INTEGER */ - { 254, -3 }, /* (274) cmd ::= KILL QUERY NK_STRING */ - { 254, -3 }, /* (275) cmd ::= KILL TRANSACTION NK_INTEGER */ - { 254, -2 }, /* (276) cmd ::= BALANCE VGROUP */ - { 254, -4 }, /* (277) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - { 254, -4 }, /* (278) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - { 254, -3 }, /* (279) cmd ::= SPLIT VGROUP NK_INTEGER */ - { 322, -2 }, /* (280) dnode_list ::= DNODE NK_INTEGER */ - { 322, -3 }, /* (281) dnode_list ::= dnode_list DNODE NK_INTEGER */ - { 254, -3 }, /* (282) cmd ::= SYNCDB db_name REPLICA */ - { 254, -4 }, /* (283) cmd ::= DELETE FROM full_table_name where_clause_opt */ - { 254, -1 }, /* (284) cmd ::= query_expression */ - { 254, -5 }, /* (285) cmd ::= INSERT INTO full_table_name specific_cols_opt query_expression */ - { 257, -1 }, /* (286) literal ::= NK_INTEGER */ - { 257, -1 }, /* (287) literal ::= NK_FLOAT */ - { 257, -1 }, /* (288) literal ::= NK_STRING */ - { 257, -1 }, /* (289) literal ::= NK_BOOL */ - { 257, -2 }, /* (290) literal ::= TIMESTAMP NK_STRING */ - { 257, -1 }, /* (291) literal ::= duration_literal */ - { 257, -1 }, /* (292) literal ::= NULL */ - { 257, -1 }, /* (293) literal ::= NK_QUESTION */ - { 298, -1 }, /* (294) duration_literal ::= NK_VARIABLE */ - { 324, -1 }, /* (295) signed ::= NK_INTEGER */ - { 324, -2 }, /* (296) signed ::= NK_PLUS NK_INTEGER */ - { 324, -2 }, /* (297) signed ::= NK_MINUS NK_INTEGER */ - { 324, -1 }, /* (298) signed ::= NK_FLOAT */ - { 324, -2 }, /* (299) signed ::= NK_PLUS NK_FLOAT */ - { 324, -2 }, /* (300) signed ::= NK_MINUS NK_FLOAT */ - { 287, -1 }, /* (301) signed_literal ::= signed */ - { 287, -1 }, /* (302) signed_literal ::= NK_STRING */ - { 287, -1 }, /* (303) signed_literal ::= NK_BOOL */ - { 287, -2 }, /* (304) signed_literal ::= TIMESTAMP NK_STRING */ - { 287, -1 }, /* (305) signed_literal ::= duration_literal */ - { 287, -1 }, /* (306) signed_literal ::= NULL */ - { 287, -1 }, /* (307) signed_literal ::= literal_func */ - { 326, -1 }, /* (308) literal_list ::= signed_literal */ - { 326, -3 }, /* (309) literal_list ::= literal_list NK_COMMA signed_literal */ - { 265, -1 }, /* (310) db_name ::= NK_ID */ - { 293, -1 }, /* (311) table_name ::= NK_ID */ - { 285, -1 }, /* (312) column_name ::= NK_ID */ - { 300, -1 }, /* (313) function_name ::= NK_ID */ - { 327, -1 }, /* (314) table_alias ::= NK_ID */ - { 328, -1 }, /* (315) column_alias ::= NK_ID */ - { 259, -1 }, /* (316) user_name ::= NK_ID */ - { 306, -1 }, /* (317) index_name ::= NK_ID */ - { 313, -1 }, /* (318) topic_name ::= NK_ID */ - { 320, -1 }, /* (319) stream_name ::= NK_ID */ - { 315, -1 }, /* (320) cgroup_name ::= NK_ID */ - { 329, -1 }, /* (321) expression ::= literal */ - { 329, -1 }, /* (322) expression ::= pseudo_column */ - { 329, -1 }, /* (323) expression ::= column_reference */ - { 329, -1 }, /* (324) expression ::= function_expression */ - { 329, -1 }, /* (325) expression ::= subquery */ - { 329, -3 }, /* (326) expression ::= NK_LP expression NK_RP */ - { 329, -2 }, /* (327) expression ::= NK_PLUS expression */ - { 329, -2 }, /* (328) expression ::= NK_MINUS expression */ - { 329, -3 }, /* (329) expression ::= expression NK_PLUS expression */ - { 329, -3 }, /* (330) expression ::= expression NK_MINUS expression */ - { 329, -3 }, /* (331) expression ::= expression NK_STAR expression */ - { 329, -3 }, /* (332) expression ::= expression NK_SLASH expression */ - { 329, -3 }, /* (333) expression ::= expression NK_REM expression */ - { 329, -3 }, /* (334) expression ::= column_reference NK_ARROW NK_STRING */ - { 329, -3 }, /* (335) expression ::= expression NK_BITAND expression */ - { 329, -3 }, /* (336) expression ::= expression NK_BITOR expression */ - { 290, -1 }, /* (337) expression_list ::= expression */ - { 290, -3 }, /* (338) expression_list ::= expression_list NK_COMMA expression */ - { 331, -1 }, /* (339) column_reference ::= column_name */ - { 331, -3 }, /* (340) column_reference ::= table_name NK_DOT column_name */ - { 330, -1 }, /* (341) pseudo_column ::= ROWTS */ - { 330, -1 }, /* (342) pseudo_column ::= TBNAME */ - { 330, -3 }, /* (343) pseudo_column ::= table_name NK_DOT TBNAME */ - { 330, -1 }, /* (344) pseudo_column ::= QSTARTTS */ - { 330, -1 }, /* (345) pseudo_column ::= QENDTS */ - { 330, -1 }, /* (346) pseudo_column ::= WSTARTTS */ - { 330, -1 }, /* (347) pseudo_column ::= WENDTS */ - { 330, -1 }, /* (348) pseudo_column ::= WDURATION */ - { 332, -4 }, /* (349) function_expression ::= function_name NK_LP expression_list NK_RP */ - { 332, -4 }, /* (350) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - { 332, -6 }, /* (351) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ - { 332, -1 }, /* (352) function_expression ::= literal_func */ - { 325, -3 }, /* (353) literal_func ::= noarg_func NK_LP NK_RP */ - { 325, -1 }, /* (354) literal_func ::= NOW */ - { 336, -1 }, /* (355) noarg_func ::= NOW */ - { 336, -1 }, /* (356) noarg_func ::= TODAY */ - { 336, -1 }, /* (357) noarg_func ::= TIMEZONE */ - { 336, -1 }, /* (358) noarg_func ::= DATABASE */ - { 336, -1 }, /* (359) noarg_func ::= CLIENT_VERSION */ - { 336, -1 }, /* (360) noarg_func ::= SERVER_VERSION */ - { 336, -1 }, /* (361) noarg_func ::= SERVER_STATUS */ - { 336, -1 }, /* (362) noarg_func ::= CURRENT_USER */ - { 336, -1 }, /* (363) noarg_func ::= USER */ - { 334, -1 }, /* (364) star_func ::= COUNT */ - { 334, -1 }, /* (365) star_func ::= FIRST */ - { 334, -1 }, /* (366) star_func ::= LAST */ - { 334, -1 }, /* (367) star_func ::= LAST_ROW */ - { 335, -1 }, /* (368) star_func_para_list ::= NK_STAR */ - { 335, -1 }, /* (369) star_func_para_list ::= other_para_list */ - { 337, -1 }, /* (370) other_para_list ::= star_func_para */ - { 337, -3 }, /* (371) other_para_list ::= other_para_list NK_COMMA star_func_para */ - { 338, -1 }, /* (372) star_func_para ::= expression */ - { 338, -3 }, /* (373) star_func_para ::= table_name NK_DOT NK_STAR */ - { 339, -3 }, /* (374) predicate ::= expression compare_op expression */ - { 339, -5 }, /* (375) predicate ::= expression BETWEEN expression AND expression */ - { 339, -6 }, /* (376) predicate ::= expression NOT BETWEEN expression AND expression */ - { 339, -3 }, /* (377) predicate ::= expression IS NULL */ - { 339, -4 }, /* (378) predicate ::= expression IS NOT NULL */ - { 339, -3 }, /* (379) predicate ::= expression in_op in_predicate_value */ - { 340, -1 }, /* (380) compare_op ::= NK_LT */ - { 340, -1 }, /* (381) compare_op ::= NK_GT */ - { 340, -1 }, /* (382) compare_op ::= NK_LE */ - { 340, -1 }, /* (383) compare_op ::= NK_GE */ - { 340, -1 }, /* (384) compare_op ::= NK_NE */ - { 340, -1 }, /* (385) compare_op ::= NK_EQ */ - { 340, -1 }, /* (386) compare_op ::= LIKE */ - { 340, -2 }, /* (387) compare_op ::= NOT LIKE */ - { 340, -1 }, /* (388) compare_op ::= MATCH */ - { 340, -1 }, /* (389) compare_op ::= NMATCH */ - { 340, -1 }, /* (390) compare_op ::= CONTAINS */ - { 341, -1 }, /* (391) in_op ::= IN */ - { 341, -2 }, /* (392) in_op ::= NOT IN */ - { 342, -3 }, /* (393) in_predicate_value ::= NK_LP literal_list NK_RP */ - { 343, -1 }, /* (394) boolean_value_expression ::= boolean_primary */ - { 343, -2 }, /* (395) boolean_value_expression ::= NOT boolean_primary */ - { 343, -3 }, /* (396) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 343, -3 }, /* (397) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 344, -1 }, /* (398) boolean_primary ::= predicate */ - { 344, -3 }, /* (399) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 345, -1 }, /* (400) common_expression ::= expression */ - { 345, -1 }, /* (401) common_expression ::= boolean_value_expression */ - { 346, 0 }, /* (402) from_clause_opt ::= */ - { 346, -2 }, /* (403) from_clause_opt ::= FROM table_reference_list */ - { 347, -1 }, /* (404) table_reference_list ::= table_reference */ - { 347, -3 }, /* (405) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 348, -1 }, /* (406) table_reference ::= table_primary */ - { 348, -1 }, /* (407) table_reference ::= joined_table */ - { 349, -2 }, /* (408) table_primary ::= table_name alias_opt */ - { 349, -4 }, /* (409) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 349, -2 }, /* (410) table_primary ::= subquery alias_opt */ - { 349, -1 }, /* (411) table_primary ::= parenthesized_joined_table */ - { 351, 0 }, /* (412) alias_opt ::= */ - { 351, -1 }, /* (413) alias_opt ::= table_alias */ - { 351, -2 }, /* (414) alias_opt ::= AS table_alias */ - { 352, -3 }, /* (415) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 352, -3 }, /* (416) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 350, -6 }, /* (417) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 353, 0 }, /* (418) join_type ::= */ - { 353, -1 }, /* (419) join_type ::= INNER */ - { 355, -12 }, /* (420) query_specification ::= SELECT 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 */ - { 356, 0 }, /* (421) set_quantifier_opt ::= */ - { 356, -1 }, /* (422) set_quantifier_opt ::= DISTINCT */ - { 356, -1 }, /* (423) set_quantifier_opt ::= ALL */ - { 357, -1 }, /* (424) select_list ::= select_item */ - { 357, -3 }, /* (425) select_list ::= select_list NK_COMMA select_item */ - { 365, -1 }, /* (426) select_item ::= NK_STAR */ - { 365, -1 }, /* (427) select_item ::= common_expression */ - { 365, -2 }, /* (428) select_item ::= common_expression column_alias */ - { 365, -3 }, /* (429) select_item ::= common_expression AS column_alias */ - { 365, -3 }, /* (430) select_item ::= table_name NK_DOT NK_STAR */ - { 323, 0 }, /* (431) where_clause_opt ::= */ - { 323, -2 }, /* (432) where_clause_opt ::= WHERE search_condition */ - { 358, 0 }, /* (433) partition_by_clause_opt ::= */ - { 358, -3 }, /* (434) partition_by_clause_opt ::= PARTITION BY expression_list */ - { 362, 0 }, /* (435) twindow_clause_opt ::= */ - { 362, -6 }, /* (436) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - { 362, -4 }, /* (437) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ - { 362, -6 }, /* (438) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 362, -8 }, /* (439) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 309, 0 }, /* (440) sliding_opt ::= */ - { 309, -4 }, /* (441) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 361, 0 }, /* (442) fill_opt ::= */ - { 361, -4 }, /* (443) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 361, -6 }, /* (444) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 366, -1 }, /* (445) fill_mode ::= NONE */ - { 366, -1 }, /* (446) fill_mode ::= PREV */ - { 366, -1 }, /* (447) fill_mode ::= NULL */ - { 366, -1 }, /* (448) fill_mode ::= LINEAR */ - { 366, -1 }, /* (449) fill_mode ::= NEXT */ - { 363, 0 }, /* (450) group_by_clause_opt ::= */ - { 363, -3 }, /* (451) group_by_clause_opt ::= GROUP BY group_by_list */ - { 367, -1 }, /* (452) group_by_list ::= expression */ - { 367, -3 }, /* (453) group_by_list ::= group_by_list NK_COMMA expression */ - { 364, 0 }, /* (454) having_clause_opt ::= */ - { 364, -2 }, /* (455) having_clause_opt ::= HAVING search_condition */ - { 359, 0 }, /* (456) range_opt ::= */ - { 359, -6 }, /* (457) range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ - { 360, 0 }, /* (458) every_opt ::= */ - { 360, -4 }, /* (459) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - { 314, -4 }, /* (460) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 368, -1 }, /* (461) query_expression_body ::= query_primary */ - { 368, -4 }, /* (462) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - { 368, -3 }, /* (463) query_expression_body ::= query_expression_body UNION query_expression_body */ - { 372, -1 }, /* (464) query_primary ::= query_specification */ - { 372, -6 }, /* (465) query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ - { 369, 0 }, /* (466) order_by_clause_opt ::= */ - { 369, -3 }, /* (467) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 370, 0 }, /* (468) slimit_clause_opt ::= */ - { 370, -2 }, /* (469) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 370, -4 }, /* (470) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 370, -4 }, /* (471) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 371, 0 }, /* (472) limit_clause_opt ::= */ - { 371, -2 }, /* (473) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 371, -4 }, /* (474) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 371, -4 }, /* (475) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 333, -3 }, /* (476) subquery ::= NK_LP query_expression NK_RP */ - { 354, -1 }, /* (477) search_condition ::= common_expression */ - { 373, -1 }, /* (478) sort_specification_list ::= sort_specification */ - { 373, -3 }, /* (479) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 374, -3 }, /* (480) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - { 375, 0 }, /* (481) ordering_specification_opt ::= */ - { 375, -1 }, /* (482) ordering_specification_opt ::= ASC */ - { 375, -1 }, /* (483) ordering_specification_opt ::= DESC */ - { 376, 0 }, /* (484) null_ordering_opt ::= */ - { 376, -2 }, /* (485) null_ordering_opt ::= NULLS FIRST */ - { 376, -2 }, /* (486) null_ordering_opt ::= NULLS LAST */ + { 255, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ + { 255, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ + { 256, 0 }, /* (2) account_options ::= */ + { 256, -3 }, /* (3) account_options ::= account_options PPS literal */ + { 256, -3 }, /* (4) account_options ::= account_options TSERIES literal */ + { 256, -3 }, /* (5) account_options ::= account_options STORAGE literal */ + { 256, -3 }, /* (6) account_options ::= account_options STREAMS literal */ + { 256, -3 }, /* (7) account_options ::= account_options QTIME literal */ + { 256, -3 }, /* (8) account_options ::= account_options DBS literal */ + { 256, -3 }, /* (9) account_options ::= account_options USERS literal */ + { 256, -3 }, /* (10) account_options ::= account_options CONNS literal */ + { 256, -3 }, /* (11) account_options ::= account_options STATE literal */ + { 257, -1 }, /* (12) alter_account_options ::= alter_account_option */ + { 257, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ + { 259, -2 }, /* (14) alter_account_option ::= PASS literal */ + { 259, -2 }, /* (15) alter_account_option ::= PPS literal */ + { 259, -2 }, /* (16) alter_account_option ::= TSERIES literal */ + { 259, -2 }, /* (17) alter_account_option ::= STORAGE literal */ + { 259, -2 }, /* (18) alter_account_option ::= STREAMS literal */ + { 259, -2 }, /* (19) alter_account_option ::= QTIME literal */ + { 259, -2 }, /* (20) alter_account_option ::= DBS literal */ + { 259, -2 }, /* (21) alter_account_option ::= USERS literal */ + { 259, -2 }, /* (22) alter_account_option ::= CONNS literal */ + { 259, -2 }, /* (23) alter_account_option ::= STATE literal */ + { 255, -6 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ + { 255, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ + { 255, -5 }, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ + { 255, -5 }, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ + { 255, -3 }, /* (28) cmd ::= DROP USER user_name */ + { 261, 0 }, /* (29) sysinfo_opt ::= */ + { 261, -2 }, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */ + { 255, -6 }, /* (31) cmd ::= GRANT privileges ON priv_level TO user_name */ + { 255, -6 }, /* (32) cmd ::= REVOKE privileges ON priv_level FROM user_name */ + { 262, -1 }, /* (33) privileges ::= ALL */ + { 262, -1 }, /* (34) privileges ::= priv_type_list */ + { 264, -1 }, /* (35) priv_type_list ::= priv_type */ + { 264, -3 }, /* (36) priv_type_list ::= priv_type_list NK_COMMA priv_type */ + { 265, -1 }, /* (37) priv_type ::= READ */ + { 265, -1 }, /* (38) priv_type ::= WRITE */ + { 263, -3 }, /* (39) priv_level ::= NK_STAR NK_DOT NK_STAR */ + { 263, -3 }, /* (40) priv_level ::= db_name NK_DOT NK_STAR */ + { 255, -3 }, /* (41) cmd ::= CREATE DNODE dnode_endpoint */ + { 255, -5 }, /* (42) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ + { 255, -3 }, /* (43) cmd ::= DROP DNODE NK_INTEGER */ + { 255, -3 }, /* (44) cmd ::= DROP DNODE dnode_endpoint */ + { 255, -4 }, /* (45) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + { 255, -5 }, /* (46) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + { 255, -4 }, /* (47) cmd ::= ALTER ALL DNODES NK_STRING */ + { 255, -5 }, /* (48) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + { 267, -1 }, /* (49) dnode_endpoint ::= NK_STRING */ + { 267, -1 }, /* (50) dnode_endpoint ::= NK_ID */ + { 267, -1 }, /* (51) dnode_endpoint ::= NK_IPTOKEN */ + { 255, -3 }, /* (52) cmd ::= ALTER LOCAL NK_STRING */ + { 255, -4 }, /* (53) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + { 255, -5 }, /* (54) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + { 255, -5 }, /* (55) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + { 255, -5 }, /* (56) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + { 255, -5 }, /* (57) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + { 255, -5 }, /* (58) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + { 255, -5 }, /* (59) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + { 255, -5 }, /* (60) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + { 255, -5 }, /* (61) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + { 255, -5 }, /* (62) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + { 255, -4 }, /* (63) cmd ::= DROP DATABASE exists_opt db_name */ + { 255, -2 }, /* (64) cmd ::= USE db_name */ + { 255, -4 }, /* (65) cmd ::= ALTER DATABASE db_name alter_db_options */ + { 255, -3 }, /* (66) cmd ::= FLUSH DATABASE db_name */ + { 255, -3 }, /* (67) cmd ::= TRIM DATABASE db_name */ + { 268, -3 }, /* (68) not_exists_opt ::= IF NOT EXISTS */ + { 268, 0 }, /* (69) not_exists_opt ::= */ + { 270, -2 }, /* (70) exists_opt ::= IF EXISTS */ + { 270, 0 }, /* (71) exists_opt ::= */ + { 269, 0 }, /* (72) db_options ::= */ + { 269, -3 }, /* (73) db_options ::= db_options BUFFER NK_INTEGER */ + { 269, -3 }, /* (74) db_options ::= db_options CACHELAST NK_INTEGER */ + { 269, -3 }, /* (75) db_options ::= db_options CACHELASTSIZE NK_INTEGER */ + { 269, -3 }, /* (76) db_options ::= db_options COMP NK_INTEGER */ + { 269, -3 }, /* (77) db_options ::= db_options DURATION NK_INTEGER */ + { 269, -3 }, /* (78) db_options ::= db_options DURATION NK_VARIABLE */ + { 269, -3 }, /* (79) db_options ::= db_options FSYNC NK_INTEGER */ + { 269, -3 }, /* (80) db_options ::= db_options MAXROWS NK_INTEGER */ + { 269, -3 }, /* (81) db_options ::= db_options MINROWS NK_INTEGER */ + { 269, -3 }, /* (82) db_options ::= db_options KEEP integer_list */ + { 269, -3 }, /* (83) db_options ::= db_options KEEP variable_list */ + { 269, -3 }, /* (84) db_options ::= db_options PAGES NK_INTEGER */ + { 269, -3 }, /* (85) db_options ::= db_options PAGESIZE NK_INTEGER */ + { 269, -3 }, /* (86) db_options ::= db_options PRECISION NK_STRING */ + { 269, -3 }, /* (87) db_options ::= db_options REPLICA NK_INTEGER */ + { 269, -3 }, /* (88) db_options ::= db_options STRICT NK_INTEGER */ + { 269, -3 }, /* (89) db_options ::= db_options WAL NK_INTEGER */ + { 269, -3 }, /* (90) db_options ::= db_options VGROUPS NK_INTEGER */ + { 269, -3 }, /* (91) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + { 269, -3 }, /* (92) db_options ::= db_options RETENTIONS retention_list */ + { 269, -3 }, /* (93) db_options ::= db_options SCHEMALESS NK_INTEGER */ + { 271, -1 }, /* (94) alter_db_options ::= alter_db_option */ + { 271, -2 }, /* (95) alter_db_options ::= alter_db_options alter_db_option */ + { 275, -2 }, /* (96) alter_db_option ::= BUFFER NK_INTEGER */ + { 275, -2 }, /* (97) alter_db_option ::= CACHELAST NK_INTEGER */ + { 275, -2 }, /* (98) alter_db_option ::= CACHELASTSIZE NK_INTEGER */ + { 275, -2 }, /* (99) alter_db_option ::= FSYNC NK_INTEGER */ + { 275, -2 }, /* (100) alter_db_option ::= KEEP integer_list */ + { 275, -2 }, /* (101) alter_db_option ::= KEEP variable_list */ + { 275, -2 }, /* (102) alter_db_option ::= PAGES NK_INTEGER */ + { 275, -2 }, /* (103) alter_db_option ::= REPLICA NK_INTEGER */ + { 275, -2 }, /* (104) alter_db_option ::= STRICT NK_INTEGER */ + { 275, -2 }, /* (105) alter_db_option ::= WAL NK_INTEGER */ + { 272, -1 }, /* (106) integer_list ::= NK_INTEGER */ + { 272, -3 }, /* (107) integer_list ::= integer_list NK_COMMA NK_INTEGER */ + { 273, -1 }, /* (108) variable_list ::= NK_VARIABLE */ + { 273, -3 }, /* (109) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + { 274, -1 }, /* (110) retention_list ::= retention */ + { 274, -3 }, /* (111) retention_list ::= retention_list NK_COMMA retention */ + { 276, -3 }, /* (112) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + { 255, -9 }, /* (113) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + { 255, -3 }, /* (114) cmd ::= CREATE TABLE multi_create_clause */ + { 255, -9 }, /* (115) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + { 255, -3 }, /* (116) cmd ::= DROP TABLE multi_drop_clause */ + { 255, -4 }, /* (117) cmd ::= DROP STABLE exists_opt full_table_name */ + { 255, -3 }, /* (118) cmd ::= ALTER TABLE alter_table_clause */ + { 255, -3 }, /* (119) cmd ::= ALTER STABLE alter_table_clause */ + { 284, -2 }, /* (120) alter_table_clause ::= full_table_name alter_table_options */ + { 284, -5 }, /* (121) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + { 284, -4 }, /* (122) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + { 284, -5 }, /* (123) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + { 284, -5 }, /* (124) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + { 284, -5 }, /* (125) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + { 284, -4 }, /* (126) alter_table_clause ::= full_table_name DROP TAG column_name */ + { 284, -5 }, /* (127) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + { 284, -5 }, /* (128) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + { 284, -6 }, /* (129) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ + { 281, -1 }, /* (130) multi_create_clause ::= create_subtable_clause */ + { 281, -2 }, /* (131) multi_create_clause ::= multi_create_clause create_subtable_clause */ + { 289, -10 }, /* (132) 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 */ + { 283, -1 }, /* (133) multi_drop_clause ::= drop_table_clause */ + { 283, -2 }, /* (134) multi_drop_clause ::= multi_drop_clause drop_table_clause */ + { 292, -2 }, /* (135) drop_table_clause ::= exists_opt full_table_name */ + { 290, 0 }, /* (136) specific_cols_opt ::= */ + { 290, -3 }, /* (137) specific_cols_opt ::= NK_LP col_name_list NK_RP */ + { 277, -1 }, /* (138) full_table_name ::= table_name */ + { 277, -3 }, /* (139) full_table_name ::= db_name NK_DOT table_name */ + { 278, -1 }, /* (140) column_def_list ::= column_def */ + { 278, -3 }, /* (141) column_def_list ::= column_def_list NK_COMMA column_def */ + { 295, -2 }, /* (142) column_def ::= column_name type_name */ + { 295, -4 }, /* (143) column_def ::= column_name type_name COMMENT NK_STRING */ + { 287, -1 }, /* (144) type_name ::= BOOL */ + { 287, -1 }, /* (145) type_name ::= TINYINT */ + { 287, -1 }, /* (146) type_name ::= SMALLINT */ + { 287, -1 }, /* (147) type_name ::= INT */ + { 287, -1 }, /* (148) type_name ::= INTEGER */ + { 287, -1 }, /* (149) type_name ::= BIGINT */ + { 287, -1 }, /* (150) type_name ::= FLOAT */ + { 287, -1 }, /* (151) type_name ::= DOUBLE */ + { 287, -4 }, /* (152) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + { 287, -1 }, /* (153) type_name ::= TIMESTAMP */ + { 287, -4 }, /* (154) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + { 287, -2 }, /* (155) type_name ::= TINYINT UNSIGNED */ + { 287, -2 }, /* (156) type_name ::= SMALLINT UNSIGNED */ + { 287, -2 }, /* (157) type_name ::= INT UNSIGNED */ + { 287, -2 }, /* (158) type_name ::= BIGINT UNSIGNED */ + { 287, -1 }, /* (159) type_name ::= JSON */ + { 287, -4 }, /* (160) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + { 287, -1 }, /* (161) type_name ::= MEDIUMBLOB */ + { 287, -1 }, /* (162) type_name ::= BLOB */ + { 287, -4 }, /* (163) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + { 287, -1 }, /* (164) type_name ::= DECIMAL */ + { 287, -4 }, /* (165) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + { 287, -6 }, /* (166) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + { 279, 0 }, /* (167) tags_def_opt ::= */ + { 279, -1 }, /* (168) tags_def_opt ::= tags_def */ + { 282, -4 }, /* (169) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + { 280, 0 }, /* (170) table_options ::= */ + { 280, -3 }, /* (171) table_options ::= table_options COMMENT NK_STRING */ + { 280, -3 }, /* (172) table_options ::= table_options MAX_DELAY duration_list */ + { 280, -3 }, /* (173) table_options ::= table_options WATERMARK duration_list */ + { 280, -5 }, /* (174) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + { 280, -3 }, /* (175) table_options ::= table_options TTL NK_INTEGER */ + { 280, -5 }, /* (176) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + { 285, -1 }, /* (177) alter_table_options ::= alter_table_option */ + { 285, -2 }, /* (178) alter_table_options ::= alter_table_options alter_table_option */ + { 298, -2 }, /* (179) alter_table_option ::= COMMENT NK_STRING */ + { 298, -2 }, /* (180) alter_table_option ::= TTL NK_INTEGER */ + { 296, -1 }, /* (181) duration_list ::= duration_literal */ + { 296, -3 }, /* (182) duration_list ::= duration_list NK_COMMA duration_literal */ + { 297, -1 }, /* (183) rollup_func_list ::= rollup_func_name */ + { 297, -3 }, /* (184) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + { 300, -1 }, /* (185) rollup_func_name ::= function_name */ + { 300, -1 }, /* (186) rollup_func_name ::= FIRST */ + { 300, -1 }, /* (187) rollup_func_name ::= LAST */ + { 293, -1 }, /* (188) col_name_list ::= col_name */ + { 293, -3 }, /* (189) col_name_list ::= col_name_list NK_COMMA col_name */ + { 302, -1 }, /* (190) col_name ::= column_name */ + { 255, -2 }, /* (191) cmd ::= SHOW DNODES */ + { 255, -2 }, /* (192) cmd ::= SHOW USERS */ + { 255, -2 }, /* (193) cmd ::= SHOW DATABASES */ + { 255, -4 }, /* (194) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + { 255, -4 }, /* (195) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + { 255, -3 }, /* (196) cmd ::= SHOW db_name_cond_opt VGROUPS */ + { 255, -2 }, /* (197) cmd ::= SHOW MNODES */ + { 255, -2 }, /* (198) cmd ::= SHOW MODULES */ + { 255, -2 }, /* (199) cmd ::= SHOW QNODES */ + { 255, -2 }, /* (200) cmd ::= SHOW FUNCTIONS */ + { 255, -5 }, /* (201) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + { 255, -2 }, /* (202) cmd ::= SHOW STREAMS */ + { 255, -2 }, /* (203) cmd ::= SHOW ACCOUNTS */ + { 255, -2 }, /* (204) cmd ::= SHOW APPS */ + { 255, -2 }, /* (205) cmd ::= SHOW CONNECTIONS */ + { 255, -2 }, /* (206) cmd ::= SHOW LICENCE */ + { 255, -2 }, /* (207) cmd ::= SHOW GRANTS */ + { 255, -4 }, /* (208) cmd ::= SHOW CREATE DATABASE db_name */ + { 255, -4 }, /* (209) cmd ::= SHOW CREATE TABLE full_table_name */ + { 255, -4 }, /* (210) cmd ::= SHOW CREATE STABLE full_table_name */ + { 255, -2 }, /* (211) cmd ::= SHOW QUERIES */ + { 255, -2 }, /* (212) cmd ::= SHOW SCORES */ + { 255, -2 }, /* (213) cmd ::= SHOW TOPICS */ + { 255, -2 }, /* (214) cmd ::= SHOW VARIABLES */ + { 255, -3 }, /* (215) cmd ::= SHOW LOCAL VARIABLES */ + { 255, -4 }, /* (216) cmd ::= SHOW DNODE NK_INTEGER VARIABLES */ + { 255, -2 }, /* (217) cmd ::= SHOW BNODES */ + { 255, -2 }, /* (218) cmd ::= SHOW SNODES */ + { 255, -2 }, /* (219) cmd ::= SHOW CLUSTER */ + { 255, -2 }, /* (220) cmd ::= SHOW TRANSACTIONS */ + { 255, -4 }, /* (221) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + { 255, -2 }, /* (222) cmd ::= SHOW CONSUMERS */ + { 255, -2 }, /* (223) cmd ::= SHOW SUBSCRIPTIONS */ + { 303, 0 }, /* (224) db_name_cond_opt ::= */ + { 303, -2 }, /* (225) db_name_cond_opt ::= db_name NK_DOT */ + { 304, 0 }, /* (226) like_pattern_opt ::= */ + { 304, -2 }, /* (227) like_pattern_opt ::= LIKE NK_STRING */ + { 305, -1 }, /* (228) table_name_cond ::= table_name */ + { 306, 0 }, /* (229) from_db_opt ::= */ + { 306, -2 }, /* (230) from_db_opt ::= FROM db_name */ + { 255, -8 }, /* (231) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ + { 255, -4 }, /* (232) cmd ::= DROP INDEX exists_opt index_name */ + { 308, -10 }, /* (233) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ + { 308, -12 }, /* (234) 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 */ + { 309, -1 }, /* (235) func_list ::= func */ + { 309, -3 }, /* (236) func_list ::= func_list NK_COMMA func */ + { 312, -4 }, /* (237) func ::= function_name NK_LP expression_list NK_RP */ + { 311, 0 }, /* (238) sma_stream_opt ::= */ + { 311, -3 }, /* (239) sma_stream_opt ::= stream_options WATERMARK duration_literal */ + { 311, -3 }, /* (240) sma_stream_opt ::= stream_options MAX_DELAY duration_literal */ + { 255, -6 }, /* (241) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ + { 255, -7 }, /* (242) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ + { 255, -9 }, /* (243) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ + { 255, -7 }, /* (244) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ + { 255, -9 }, /* (245) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ + { 255, -4 }, /* (246) cmd ::= DROP TOPIC exists_opt topic_name */ + { 255, -7 }, /* (247) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + { 255, -2 }, /* (248) cmd ::= DESC full_table_name */ + { 255, -2 }, /* (249) cmd ::= DESCRIBE full_table_name */ + { 255, -3 }, /* (250) cmd ::= RESET QUERY CACHE */ + { 255, -4 }, /* (251) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ + { 317, 0 }, /* (252) analyze_opt ::= */ + { 317, -1 }, /* (253) analyze_opt ::= ANALYZE */ + { 318, 0 }, /* (254) explain_options ::= */ + { 318, -3 }, /* (255) explain_options ::= explain_options VERBOSE NK_BOOL */ + { 318, -3 }, /* (256) explain_options ::= explain_options RATIO NK_FLOAT */ + { 255, -6 }, /* (257) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ + { 255, -10 }, /* (258) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ + { 255, -4 }, /* (259) cmd ::= DROP FUNCTION exists_opt function_name */ + { 319, 0 }, /* (260) agg_func_opt ::= */ + { 319, -1 }, /* (261) agg_func_opt ::= AGGREGATE */ + { 320, 0 }, /* (262) bufsize_opt ::= */ + { 320, -2 }, /* (263) bufsize_opt ::= BUFSIZE NK_INTEGER */ + { 255, -8 }, /* (264) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ + { 255, -4 }, /* (265) cmd ::= DROP STREAM exists_opt stream_name */ + { 322, 0 }, /* (266) into_opt ::= */ + { 322, -2 }, /* (267) into_opt ::= INTO full_table_name */ + { 313, 0 }, /* (268) stream_options ::= */ + { 313, -3 }, /* (269) stream_options ::= stream_options TRIGGER AT_ONCE */ + { 313, -3 }, /* (270) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + { 313, -4 }, /* (271) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + { 313, -3 }, /* (272) stream_options ::= stream_options WATERMARK duration_literal */ + { 313, -3 }, /* (273) stream_options ::= stream_options IGNORE EXPIRED */ + { 255, -3 }, /* (274) cmd ::= KILL CONNECTION NK_INTEGER */ + { 255, -3 }, /* (275) cmd ::= KILL QUERY NK_STRING */ + { 255, -3 }, /* (276) cmd ::= KILL TRANSACTION NK_INTEGER */ + { 255, -2 }, /* (277) cmd ::= BALANCE VGROUP */ + { 255, -4 }, /* (278) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + { 255, -4 }, /* (279) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + { 255, -3 }, /* (280) cmd ::= SPLIT VGROUP NK_INTEGER */ + { 323, -2 }, /* (281) dnode_list ::= DNODE NK_INTEGER */ + { 323, -3 }, /* (282) dnode_list ::= dnode_list DNODE NK_INTEGER */ + { 255, -3 }, /* (283) cmd ::= SYNCDB db_name REPLICA */ + { 255, -4 }, /* (284) cmd ::= DELETE FROM full_table_name where_clause_opt */ + { 255, -1 }, /* (285) cmd ::= query_expression */ + { 255, -5 }, /* (286) cmd ::= INSERT INTO full_table_name specific_cols_opt query_expression */ + { 258, -1 }, /* (287) literal ::= NK_INTEGER */ + { 258, -1 }, /* (288) literal ::= NK_FLOAT */ + { 258, -1 }, /* (289) literal ::= NK_STRING */ + { 258, -1 }, /* (290) literal ::= NK_BOOL */ + { 258, -2 }, /* (291) literal ::= TIMESTAMP NK_STRING */ + { 258, -1 }, /* (292) literal ::= duration_literal */ + { 258, -1 }, /* (293) literal ::= NULL */ + { 258, -1 }, /* (294) literal ::= NK_QUESTION */ + { 299, -1 }, /* (295) duration_literal ::= NK_VARIABLE */ + { 325, -1 }, /* (296) signed ::= NK_INTEGER */ + { 325, -2 }, /* (297) signed ::= NK_PLUS NK_INTEGER */ + { 325, -2 }, /* (298) signed ::= NK_MINUS NK_INTEGER */ + { 325, -1 }, /* (299) signed ::= NK_FLOAT */ + { 325, -2 }, /* (300) signed ::= NK_PLUS NK_FLOAT */ + { 325, -2 }, /* (301) signed ::= NK_MINUS NK_FLOAT */ + { 288, -1 }, /* (302) signed_literal ::= signed */ + { 288, -1 }, /* (303) signed_literal ::= NK_STRING */ + { 288, -1 }, /* (304) signed_literal ::= NK_BOOL */ + { 288, -2 }, /* (305) signed_literal ::= TIMESTAMP NK_STRING */ + { 288, -1 }, /* (306) signed_literal ::= duration_literal */ + { 288, -1 }, /* (307) signed_literal ::= NULL */ + { 288, -1 }, /* (308) signed_literal ::= literal_func */ + { 327, -1 }, /* (309) literal_list ::= signed_literal */ + { 327, -3 }, /* (310) literal_list ::= literal_list NK_COMMA signed_literal */ + { 266, -1 }, /* (311) db_name ::= NK_ID */ + { 294, -1 }, /* (312) table_name ::= NK_ID */ + { 286, -1 }, /* (313) column_name ::= NK_ID */ + { 301, -1 }, /* (314) function_name ::= NK_ID */ + { 328, -1 }, /* (315) table_alias ::= NK_ID */ + { 329, -1 }, /* (316) column_alias ::= NK_ID */ + { 260, -1 }, /* (317) user_name ::= NK_ID */ + { 307, -1 }, /* (318) index_name ::= NK_ID */ + { 314, -1 }, /* (319) topic_name ::= NK_ID */ + { 321, -1 }, /* (320) stream_name ::= NK_ID */ + { 316, -1 }, /* (321) cgroup_name ::= NK_ID */ + { 330, -1 }, /* (322) expression ::= literal */ + { 330, -1 }, /* (323) expression ::= pseudo_column */ + { 330, -1 }, /* (324) expression ::= column_reference */ + { 330, -1 }, /* (325) expression ::= function_expression */ + { 330, -1 }, /* (326) expression ::= subquery */ + { 330, -3 }, /* (327) expression ::= NK_LP expression NK_RP */ + { 330, -2 }, /* (328) expression ::= NK_PLUS expression */ + { 330, -2 }, /* (329) expression ::= NK_MINUS expression */ + { 330, -3 }, /* (330) expression ::= expression NK_PLUS expression */ + { 330, -3 }, /* (331) expression ::= expression NK_MINUS expression */ + { 330, -3 }, /* (332) expression ::= expression NK_STAR expression */ + { 330, -3 }, /* (333) expression ::= expression NK_SLASH expression */ + { 330, -3 }, /* (334) expression ::= expression NK_REM expression */ + { 330, -3 }, /* (335) expression ::= column_reference NK_ARROW NK_STRING */ + { 330, -3 }, /* (336) expression ::= expression NK_BITAND expression */ + { 330, -3 }, /* (337) expression ::= expression NK_BITOR expression */ + { 291, -1 }, /* (338) expression_list ::= expression */ + { 291, -3 }, /* (339) expression_list ::= expression_list NK_COMMA expression */ + { 332, -1 }, /* (340) column_reference ::= column_name */ + { 332, -3 }, /* (341) column_reference ::= table_name NK_DOT column_name */ + { 331, -1 }, /* (342) pseudo_column ::= ROWTS */ + { 331, -1 }, /* (343) pseudo_column ::= TBNAME */ + { 331, -3 }, /* (344) pseudo_column ::= table_name NK_DOT TBNAME */ + { 331, -1 }, /* (345) pseudo_column ::= QSTARTTS */ + { 331, -1 }, /* (346) pseudo_column ::= QENDTS */ + { 331, -1 }, /* (347) pseudo_column ::= WSTARTTS */ + { 331, -1 }, /* (348) pseudo_column ::= WENDTS */ + { 331, -1 }, /* (349) pseudo_column ::= WDURATION */ + { 333, -4 }, /* (350) function_expression ::= function_name NK_LP expression_list NK_RP */ + { 333, -4 }, /* (351) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + { 333, -6 }, /* (352) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ + { 333, -1 }, /* (353) function_expression ::= literal_func */ + { 326, -3 }, /* (354) literal_func ::= noarg_func NK_LP NK_RP */ + { 326, -1 }, /* (355) literal_func ::= NOW */ + { 337, -1 }, /* (356) noarg_func ::= NOW */ + { 337, -1 }, /* (357) noarg_func ::= TODAY */ + { 337, -1 }, /* (358) noarg_func ::= TIMEZONE */ + { 337, -1 }, /* (359) noarg_func ::= DATABASE */ + { 337, -1 }, /* (360) noarg_func ::= CLIENT_VERSION */ + { 337, -1 }, /* (361) noarg_func ::= SERVER_VERSION */ + { 337, -1 }, /* (362) noarg_func ::= SERVER_STATUS */ + { 337, -1 }, /* (363) noarg_func ::= CURRENT_USER */ + { 337, -1 }, /* (364) noarg_func ::= USER */ + { 335, -1 }, /* (365) star_func ::= COUNT */ + { 335, -1 }, /* (366) star_func ::= FIRST */ + { 335, -1 }, /* (367) star_func ::= LAST */ + { 335, -1 }, /* (368) star_func ::= LAST_ROW */ + { 336, -1 }, /* (369) star_func_para_list ::= NK_STAR */ + { 336, -1 }, /* (370) star_func_para_list ::= other_para_list */ + { 338, -1 }, /* (371) other_para_list ::= star_func_para */ + { 338, -3 }, /* (372) other_para_list ::= other_para_list NK_COMMA star_func_para */ + { 339, -1 }, /* (373) star_func_para ::= expression */ + { 339, -3 }, /* (374) star_func_para ::= table_name NK_DOT NK_STAR */ + { 340, -3 }, /* (375) predicate ::= expression compare_op expression */ + { 340, -5 }, /* (376) predicate ::= expression BETWEEN expression AND expression */ + { 340, -6 }, /* (377) predicate ::= expression NOT BETWEEN expression AND expression */ + { 340, -3 }, /* (378) predicate ::= expression IS NULL */ + { 340, -4 }, /* (379) predicate ::= expression IS NOT NULL */ + { 340, -3 }, /* (380) predicate ::= expression in_op in_predicate_value */ + { 341, -1 }, /* (381) compare_op ::= NK_LT */ + { 341, -1 }, /* (382) compare_op ::= NK_GT */ + { 341, -1 }, /* (383) compare_op ::= NK_LE */ + { 341, -1 }, /* (384) compare_op ::= NK_GE */ + { 341, -1 }, /* (385) compare_op ::= NK_NE */ + { 341, -1 }, /* (386) compare_op ::= NK_EQ */ + { 341, -1 }, /* (387) compare_op ::= LIKE */ + { 341, -2 }, /* (388) compare_op ::= NOT LIKE */ + { 341, -1 }, /* (389) compare_op ::= MATCH */ + { 341, -1 }, /* (390) compare_op ::= NMATCH */ + { 341, -1 }, /* (391) compare_op ::= CONTAINS */ + { 342, -1 }, /* (392) in_op ::= IN */ + { 342, -2 }, /* (393) in_op ::= NOT IN */ + { 343, -3 }, /* (394) in_predicate_value ::= NK_LP literal_list NK_RP */ + { 344, -1 }, /* (395) boolean_value_expression ::= boolean_primary */ + { 344, -2 }, /* (396) boolean_value_expression ::= NOT boolean_primary */ + { 344, -3 }, /* (397) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 344, -3 }, /* (398) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 345, -1 }, /* (399) boolean_primary ::= predicate */ + { 345, -3 }, /* (400) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 346, -1 }, /* (401) common_expression ::= expression */ + { 346, -1 }, /* (402) common_expression ::= boolean_value_expression */ + { 347, 0 }, /* (403) from_clause_opt ::= */ + { 347, -2 }, /* (404) from_clause_opt ::= FROM table_reference_list */ + { 348, -1 }, /* (405) table_reference_list ::= table_reference */ + { 348, -3 }, /* (406) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 349, -1 }, /* (407) table_reference ::= table_primary */ + { 349, -1 }, /* (408) table_reference ::= joined_table */ + { 350, -2 }, /* (409) table_primary ::= table_name alias_opt */ + { 350, -4 }, /* (410) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 350, -2 }, /* (411) table_primary ::= subquery alias_opt */ + { 350, -1 }, /* (412) table_primary ::= parenthesized_joined_table */ + { 352, 0 }, /* (413) alias_opt ::= */ + { 352, -1 }, /* (414) alias_opt ::= table_alias */ + { 352, -2 }, /* (415) alias_opt ::= AS table_alias */ + { 353, -3 }, /* (416) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 353, -3 }, /* (417) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 351, -6 }, /* (418) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 354, 0 }, /* (419) join_type ::= */ + { 354, -1 }, /* (420) join_type ::= INNER */ + { 356, -12 }, /* (421) query_specification ::= SELECT 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 */ + { 357, 0 }, /* (422) set_quantifier_opt ::= */ + { 357, -1 }, /* (423) set_quantifier_opt ::= DISTINCT */ + { 357, -1 }, /* (424) set_quantifier_opt ::= ALL */ + { 358, -1 }, /* (425) select_list ::= select_item */ + { 358, -3 }, /* (426) select_list ::= select_list NK_COMMA select_item */ + { 366, -1 }, /* (427) select_item ::= NK_STAR */ + { 366, -1 }, /* (428) select_item ::= common_expression */ + { 366, -2 }, /* (429) select_item ::= common_expression column_alias */ + { 366, -3 }, /* (430) select_item ::= common_expression AS column_alias */ + { 366, -3 }, /* (431) select_item ::= table_name NK_DOT NK_STAR */ + { 324, 0 }, /* (432) where_clause_opt ::= */ + { 324, -2 }, /* (433) where_clause_opt ::= WHERE search_condition */ + { 359, 0 }, /* (434) partition_by_clause_opt ::= */ + { 359, -3 }, /* (435) partition_by_clause_opt ::= PARTITION BY expression_list */ + { 363, 0 }, /* (436) twindow_clause_opt ::= */ + { 363, -6 }, /* (437) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + { 363, -4 }, /* (438) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ + { 363, -6 }, /* (439) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 363, -8 }, /* (440) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 310, 0 }, /* (441) sliding_opt ::= */ + { 310, -4 }, /* (442) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 362, 0 }, /* (443) fill_opt ::= */ + { 362, -4 }, /* (444) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 362, -6 }, /* (445) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 367, -1 }, /* (446) fill_mode ::= NONE */ + { 367, -1 }, /* (447) fill_mode ::= PREV */ + { 367, -1 }, /* (448) fill_mode ::= NULL */ + { 367, -1 }, /* (449) fill_mode ::= LINEAR */ + { 367, -1 }, /* (450) fill_mode ::= NEXT */ + { 364, 0 }, /* (451) group_by_clause_opt ::= */ + { 364, -3 }, /* (452) group_by_clause_opt ::= GROUP BY group_by_list */ + { 368, -1 }, /* (453) group_by_list ::= expression */ + { 368, -3 }, /* (454) group_by_list ::= group_by_list NK_COMMA expression */ + { 365, 0 }, /* (455) having_clause_opt ::= */ + { 365, -2 }, /* (456) having_clause_opt ::= HAVING search_condition */ + { 360, 0 }, /* (457) range_opt ::= */ + { 360, -6 }, /* (458) range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ + { 361, 0 }, /* (459) every_opt ::= */ + { 361, -4 }, /* (460) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + { 315, -4 }, /* (461) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 369, -1 }, /* (462) query_expression_body ::= query_primary */ + { 369, -4 }, /* (463) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + { 369, -3 }, /* (464) query_expression_body ::= query_expression_body UNION query_expression_body */ + { 373, -1 }, /* (465) query_primary ::= query_specification */ + { 373, -6 }, /* (466) query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ + { 370, 0 }, /* (467) order_by_clause_opt ::= */ + { 370, -3 }, /* (468) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 371, 0 }, /* (469) slimit_clause_opt ::= */ + { 371, -2 }, /* (470) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 371, -4 }, /* (471) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 371, -4 }, /* (472) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 372, 0 }, /* (473) limit_clause_opt ::= */ + { 372, -2 }, /* (474) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 372, -4 }, /* (475) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 372, -4 }, /* (476) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 334, -3 }, /* (477) subquery ::= NK_LP query_expression NK_RP */ + { 355, -1 }, /* (478) search_condition ::= common_expression */ + { 374, -1 }, /* (479) sort_specification_list ::= sort_specification */ + { 374, -3 }, /* (480) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 375, -3 }, /* (481) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + { 376, 0 }, /* (482) ordering_specification_opt ::= */ + { 376, -1 }, /* (483) ordering_specification_opt ::= ASC */ + { 376, -1 }, /* (484) ordering_specification_opt ::= DESC */ + { 377, 0 }, /* (485) null_ordering_opt ::= */ + { 377, -2 }, /* (486) null_ordering_opt ::= NULLS FIRST */ + { 377, -2 }, /* (487) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -3287,11 +3307,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,255,&yymsp[0].minor); + yy_destructor(yypParser,256,&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,256,&yymsp[0].minor); + yy_destructor(yypParser,257,&yymsp[0].minor); break; case 2: /* account_options ::= */ { } @@ -3305,20 +3325,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,255,&yymsp[-2].minor); +{ yy_destructor(yypParser,256,&yymsp[-2].minor); { } - yy_destructor(yypParser,257,&yymsp[0].minor); + yy_destructor(yypParser,258,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ -{ yy_destructor(yypParser,258,&yymsp[0].minor); +{ yy_destructor(yypParser,259,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ -{ yy_destructor(yypParser,256,&yymsp[-1].minor); +{ yy_destructor(yypParser,257,&yymsp[-1].minor); { } - yy_destructor(yypParser,258,&yymsp[0].minor); + yy_destructor(yypParser,259,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ @@ -3332,72 +3352,72 @@ 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,257,&yymsp[0].minor); + yy_destructor(yypParser,258,&yymsp[0].minor); break; case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ -{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy5, &yymsp[-1].minor.yy0, yymsp[0].minor.yy535); } +{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy533, &yymsp[-1].minor.yy0, yymsp[0].minor.yy719); } break; case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy5, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy533, 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.yy5, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy533, 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.yy5, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy533, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } break; case 28: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy5); } +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy533); } break; case 29: /* sysinfo_opt ::= */ -{ yymsp[1].minor.yy535 = 1; } +{ yymsp[1].minor.yy719 = 1; } break; case 30: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ -{ yymsp[-1].minor.yy535 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } +{ yymsp[-1].minor.yy719 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } break; case 31: /* cmd ::= GRANT privileges ON priv_level TO user_name */ -{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy311, &yymsp[-2].minor.yy5, &yymsp[0].minor.yy5); } +{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy585, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy533); } break; case 32: /* cmd ::= REVOKE privileges ON priv_level FROM user_name */ -{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy311, &yymsp[-2].minor.yy5, &yymsp[0].minor.yy5); } +{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy585, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy533); } break; case 33: /* privileges ::= ALL */ -{ yymsp[0].minor.yy311 = PRIVILEGE_TYPE_ALL; } +{ yymsp[0].minor.yy585 = PRIVILEGE_TYPE_ALL; } break; case 34: /* privileges ::= priv_type_list */ case 35: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==35); -{ yylhsminor.yy311 = yymsp[0].minor.yy311; } - yymsp[0].minor.yy311 = yylhsminor.yy311; +{ yylhsminor.yy585 = yymsp[0].minor.yy585; } + yymsp[0].minor.yy585 = yylhsminor.yy585; break; case 36: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ -{ yylhsminor.yy311 = yymsp[-2].minor.yy311 | yymsp[0].minor.yy311; } - yymsp[-2].minor.yy311 = yylhsminor.yy311; +{ yylhsminor.yy585 = yymsp[-2].minor.yy585 | yymsp[0].minor.yy585; } + yymsp[-2].minor.yy585 = yylhsminor.yy585; break; case 37: /* priv_type ::= READ */ -{ yymsp[0].minor.yy311 = PRIVILEGE_TYPE_READ; } +{ yymsp[0].minor.yy585 = PRIVILEGE_TYPE_READ; } break; case 38: /* priv_type ::= WRITE */ -{ yymsp[0].minor.yy311 = PRIVILEGE_TYPE_WRITE; } +{ yymsp[0].minor.yy585 = PRIVILEGE_TYPE_WRITE; } break; case 39: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ -{ yylhsminor.yy5 = yymsp[-2].minor.yy0; } - yymsp[-2].minor.yy5 = yylhsminor.yy5; +{ yylhsminor.yy533 = yymsp[-2].minor.yy0; } + yymsp[-2].minor.yy533 = yylhsminor.yy533; break; case 40: /* priv_level ::= db_name NK_DOT NK_STAR */ -{ yylhsminor.yy5 = yymsp[-2].minor.yy5; } - yymsp[-2].minor.yy5 = yylhsminor.yy5; +{ yylhsminor.yy533 = yymsp[-2].minor.yy533; } + yymsp[-2].minor.yy533 = yylhsminor.yy533; break; case 41: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy5, NULL); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy533, NULL); } break; case 42: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy5, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy0); } break; case 43: /* cmd ::= DROP DNODE NK_INTEGER */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy0); } break; case 44: /* cmd ::= DROP DNODE dnode_endpoint */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy5); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy533); } break; case 45: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } @@ -3414,32 +3434,32 @@ static YYACTIONTYPE yy_reduce( case 49: /* dnode_endpoint ::= NK_STRING */ case 50: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==50); case 51: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==51); - case 310: /* db_name ::= NK_ID */ yytestcase(yyruleno==310); - case 311: /* table_name ::= NK_ID */ yytestcase(yyruleno==311); - case 312: /* column_name ::= NK_ID */ yytestcase(yyruleno==312); - case 313: /* function_name ::= NK_ID */ yytestcase(yyruleno==313); - case 314: /* table_alias ::= NK_ID */ yytestcase(yyruleno==314); - case 315: /* column_alias ::= NK_ID */ yytestcase(yyruleno==315); - case 316: /* user_name ::= NK_ID */ yytestcase(yyruleno==316); - case 317: /* index_name ::= NK_ID */ yytestcase(yyruleno==317); - case 318: /* topic_name ::= NK_ID */ yytestcase(yyruleno==318); - case 319: /* stream_name ::= NK_ID */ yytestcase(yyruleno==319); - case 320: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==320); - case 355: /* noarg_func ::= NOW */ yytestcase(yyruleno==355); - case 356: /* noarg_func ::= TODAY */ yytestcase(yyruleno==356); - case 357: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==357); - case 358: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==358); - case 359: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==359); - case 360: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==360); - case 361: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==361); - case 362: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==362); - case 363: /* noarg_func ::= USER */ yytestcase(yyruleno==363); - case 364: /* star_func ::= COUNT */ yytestcase(yyruleno==364); - case 365: /* star_func ::= FIRST */ yytestcase(yyruleno==365); - case 366: /* star_func ::= LAST */ yytestcase(yyruleno==366); - case 367: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==367); -{ yylhsminor.yy5 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy5 = yylhsminor.yy5; + case 311: /* db_name ::= NK_ID */ yytestcase(yyruleno==311); + case 312: /* table_name ::= NK_ID */ yytestcase(yyruleno==312); + case 313: /* column_name ::= NK_ID */ yytestcase(yyruleno==313); + case 314: /* function_name ::= NK_ID */ yytestcase(yyruleno==314); + case 315: /* table_alias ::= NK_ID */ yytestcase(yyruleno==315); + case 316: /* column_alias ::= NK_ID */ yytestcase(yyruleno==316); + case 317: /* user_name ::= NK_ID */ yytestcase(yyruleno==317); + case 318: /* index_name ::= NK_ID */ yytestcase(yyruleno==318); + case 319: /* topic_name ::= NK_ID */ yytestcase(yyruleno==319); + case 320: /* stream_name ::= NK_ID */ yytestcase(yyruleno==320); + case 321: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==321); + case 356: /* noarg_func ::= NOW */ yytestcase(yyruleno==356); + case 357: /* noarg_func ::= TODAY */ yytestcase(yyruleno==357); + case 358: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==358); + case 359: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==359); + case 360: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==360); + case 361: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==361); + case 362: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==362); + case 363: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==363); + case 364: /* noarg_func ::= USER */ yytestcase(yyruleno==364); + case 365: /* star_func ::= COUNT */ yytestcase(yyruleno==365); + case 366: /* star_func ::= FIRST */ yytestcase(yyruleno==366); + case 367: /* star_func ::= LAST */ yytestcase(yyruleno==367); + case 368: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==368); +{ yylhsminor.yy533 = yymsp[0].minor.yy0; } + yymsp[0].minor.yy533 = yylhsminor.yy533; break; case 52: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } @@ -3472,1235 +3492,1238 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 62: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy403, &yymsp[-1].minor.yy5, yymsp[0].minor.yy652); } +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy173, &yymsp[-1].minor.yy533, yymsp[0].minor.yy560); } break; case 63: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy403, &yymsp[0].minor.yy5); } +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy533); } break; case 64: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy5); } +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy533); } break; case 65: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy5, yymsp[0].minor.yy652); } +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy533, yymsp[0].minor.yy560); } break; case 66: /* cmd ::= FLUSH DATABASE db_name */ -{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy5); } +{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy533); } break; - case 67: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy403 = true; } + case 67: /* cmd ::= TRIM DATABASE db_name */ +{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[0].minor.yy533); } break; - case 68: /* not_exists_opt ::= */ - case 70: /* exists_opt ::= */ yytestcase(yyruleno==70); - case 251: /* analyze_opt ::= */ yytestcase(yyruleno==251); - case 259: /* agg_func_opt ::= */ yytestcase(yyruleno==259); - case 421: /* set_quantifier_opt ::= */ yytestcase(yyruleno==421); -{ yymsp[1].minor.yy403 = false; } + case 68: /* not_exists_opt ::= IF NOT EXISTS */ +{ yymsp[-2].minor.yy173 = true; } break; - case 69: /* exists_opt ::= IF EXISTS */ -{ yymsp[-1].minor.yy403 = true; } + case 69: /* not_exists_opt ::= */ + case 71: /* exists_opt ::= */ yytestcase(yyruleno==71); + case 252: /* analyze_opt ::= */ yytestcase(yyruleno==252); + case 260: /* agg_func_opt ::= */ yytestcase(yyruleno==260); + case 422: /* set_quantifier_opt ::= */ yytestcase(yyruleno==422); +{ yymsp[1].minor.yy173 = false; } break; - case 71: /* db_options ::= */ -{ yymsp[1].minor.yy652 = createDefaultDatabaseOptions(pCxt); } + case 70: /* exists_opt ::= IF EXISTS */ +{ yymsp[-1].minor.yy173 = true; } break; - case 72: /* db_options ::= db_options BUFFER NK_INTEGER */ -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 72: /* db_options ::= */ +{ yymsp[1].minor.yy560 = createDefaultDatabaseOptions(pCxt); } break; - case 73: /* db_options ::= db_options CACHELAST NK_INTEGER */ -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 73: /* db_options ::= db_options BUFFER NK_INTEGER */ +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 74: /* db_options ::= db_options CACHELASTSIZE NK_INTEGER */ -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_CACHELASTSIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 74: /* db_options ::= db_options CACHELAST NK_INTEGER */ +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 75: /* db_options ::= db_options COMP NK_INTEGER */ -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_COMP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 75: /* db_options ::= db_options CACHELASTSIZE NK_INTEGER */ +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_CACHELASTSIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 76: /* db_options ::= db_options DURATION NK_INTEGER */ - case 77: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==77); -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 76: /* db_options ::= db_options COMP NK_INTEGER */ +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_COMP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 78: /* db_options ::= db_options FSYNC NK_INTEGER */ -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 77: /* db_options ::= db_options DURATION NK_INTEGER */ + case 78: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==78); +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 79: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 79: /* db_options ::= db_options FSYNC NK_INTEGER */ +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 80: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 80: /* db_options ::= db_options MAXROWS NK_INTEGER */ +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 81: /* db_options ::= db_options KEEP integer_list */ - case 82: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==82); -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_KEEP, yymsp[0].minor.yy210); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 81: /* db_options ::= db_options MINROWS NK_INTEGER */ +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 83: /* db_options ::= db_options PAGES NK_INTEGER */ -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; - break; - case 84: /* db_options ::= db_options PAGESIZE NK_INTEGER */ -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; - break; - case 85: /* db_options ::= db_options PRECISION NK_STRING */ -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; - break; - case 86: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; - break; - case 87: /* db_options ::= db_options STRICT NK_INTEGER */ -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_STRICT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; - break; - case 88: /* db_options ::= db_options WAL NK_INTEGER */ -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_WAL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; - break; - case 89: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; - break; - case 90: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; - break; - case 91: /* db_options ::= db_options RETENTIONS retention_list */ -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_RETENTIONS, yymsp[0].minor.yy210); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; - break; - case 92: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ -{ yylhsminor.yy652 = setDatabaseOption(pCxt, yymsp[-2].minor.yy652, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; - break; - case 93: /* alter_db_options ::= alter_db_option */ -{ yylhsminor.yy652 = createAlterDatabaseOptions(pCxt); yylhsminor.yy652 = setAlterDatabaseOption(pCxt, yylhsminor.yy652, &yymsp[0].minor.yy351); } - yymsp[0].minor.yy652 = yylhsminor.yy652; - break; - case 94: /* alter_db_options ::= alter_db_options alter_db_option */ -{ yylhsminor.yy652 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy652, &yymsp[0].minor.yy351); } - yymsp[-1].minor.yy652 = yylhsminor.yy652; - break; - case 95: /* alter_db_option ::= BUFFER NK_INTEGER */ -{ yymsp[-1].minor.yy351.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy351.val = yymsp[0].minor.yy0; } - break; - case 96: /* alter_db_option ::= CACHELAST NK_INTEGER */ -{ yymsp[-1].minor.yy351.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy351.val = yymsp[0].minor.yy0; } - break; - case 97: /* alter_db_option ::= CACHELASTSIZE NK_INTEGER */ -{ yymsp[-1].minor.yy351.type = DB_OPTION_CACHELASTSIZE; yymsp[-1].minor.yy351.val = yymsp[0].minor.yy0; } - break; - case 98: /* alter_db_option ::= FSYNC NK_INTEGER */ -{ yymsp[-1].minor.yy351.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy351.val = yymsp[0].minor.yy0; } - break; - case 99: /* alter_db_option ::= KEEP integer_list */ - case 100: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==100); -{ yymsp[-1].minor.yy351.type = DB_OPTION_KEEP; yymsp[-1].minor.yy351.pList = yymsp[0].minor.yy210; } - break; - case 101: /* alter_db_option ::= PAGES NK_INTEGER */ -{ yymsp[-1].minor.yy351.type = DB_OPTION_PAGES; yymsp[-1].minor.yy351.val = yymsp[0].minor.yy0; } - break; - case 102: /* alter_db_option ::= REPLICA NK_INTEGER */ -{ yymsp[-1].minor.yy351.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy351.val = yymsp[0].minor.yy0; } - break; - case 103: /* alter_db_option ::= STRICT NK_INTEGER */ -{ yymsp[-1].minor.yy351.type = DB_OPTION_STRICT; yymsp[-1].minor.yy351.val = yymsp[0].minor.yy0; } - break; - case 104: /* alter_db_option ::= WAL NK_INTEGER */ -{ yymsp[-1].minor.yy351.type = DB_OPTION_WAL; yymsp[-1].minor.yy351.val = yymsp[0].minor.yy0; } - break; - case 105: /* integer_list ::= NK_INTEGER */ -{ yylhsminor.yy210 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy210 = yylhsminor.yy210; - break; - case 106: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ - case 281: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==281); -{ yylhsminor.yy210 = addNodeToList(pCxt, yymsp[-2].minor.yy210, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy210 = yylhsminor.yy210; - break; - case 107: /* variable_list ::= NK_VARIABLE */ -{ yylhsminor.yy210 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy210 = yylhsminor.yy210; - break; - case 108: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -{ yylhsminor.yy210 = addNodeToList(pCxt, yymsp[-2].minor.yy210, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy210 = yylhsminor.yy210; - break; - case 109: /* retention_list ::= retention */ - case 129: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==129); - case 132: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==132); - case 139: /* column_def_list ::= column_def */ yytestcase(yyruleno==139); - case 182: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==182); - case 187: /* col_name_list ::= col_name */ yytestcase(yyruleno==187); - case 234: /* func_list ::= func */ yytestcase(yyruleno==234); - case 308: /* literal_list ::= signed_literal */ yytestcase(yyruleno==308); - case 370: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==370); - case 424: /* select_list ::= select_item */ yytestcase(yyruleno==424); - case 478: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==478); -{ yylhsminor.yy210 = createNodeList(pCxt, yymsp[0].minor.yy652); } - yymsp[0].minor.yy210 = yylhsminor.yy210; - break; - case 110: /* retention_list ::= retention_list NK_COMMA retention */ - case 140: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==140); - case 183: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==183); - case 188: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==188); - case 235: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==235); - case 309: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==309); - case 371: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==371); - case 425: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==425); - case 479: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==479); -{ yylhsminor.yy210 = addNodeToList(pCxt, yymsp[-2].minor.yy210, yymsp[0].minor.yy652); } - yymsp[-2].minor.yy210 = yylhsminor.yy210; - break; - case 111: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ -{ yylhsminor.yy652 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; - break; - case 112: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - case 114: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==114); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy403, yymsp[-5].minor.yy652, yymsp[-3].minor.yy210, yymsp[-1].minor.yy210, yymsp[0].minor.yy652); } - break; - case 113: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy210); } - break; - case 115: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy210); } - break; - case 116: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy403, yymsp[0].minor.yy652); } - break; - case 117: /* cmd ::= ALTER TABLE alter_table_clause */ - case 284: /* cmd ::= query_expression */ yytestcase(yyruleno==284); -{ pCxt->pRootNode = yymsp[0].minor.yy652; } - break; - case 118: /* cmd ::= ALTER STABLE alter_table_clause */ -{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy652); } - break; - case 119: /* alter_table_clause ::= full_table_name alter_table_options */ -{ yylhsminor.yy652 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy652, yymsp[0].minor.yy652); } - yymsp[-1].minor.yy652 = yylhsminor.yy652; + case 82: /* db_options ::= db_options KEEP integer_list */ + case 83: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==83); +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_KEEP, yymsp[0].minor.yy712); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 120: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -{ yylhsminor.yy652 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy652, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy5, yymsp[0].minor.yy552); } - yymsp[-4].minor.yy652 = yylhsminor.yy652; + case 84: /* db_options ::= db_options PAGES NK_INTEGER */ +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 121: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ -{ yylhsminor.yy652 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy652, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy5); } - yymsp[-3].minor.yy652 = yylhsminor.yy652; - break; - case 122: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -{ yylhsminor.yy652 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy652, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy5, yymsp[0].minor.yy552); } - yymsp[-4].minor.yy652 = yylhsminor.yy652; + case 85: /* db_options ::= db_options PAGESIZE NK_INTEGER */ +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 123: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -{ yylhsminor.yy652 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy652, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy5, &yymsp[0].minor.yy5); } - yymsp[-4].minor.yy652 = yylhsminor.yy652; + case 86: /* db_options ::= db_options PRECISION NK_STRING */ +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; + break; + case 87: /* db_options ::= db_options REPLICA NK_INTEGER */ +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; + break; + case 88: /* db_options ::= db_options STRICT NK_INTEGER */ +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_STRICT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; + break; + case 89: /* db_options ::= db_options WAL NK_INTEGER */ +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_WAL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; + break; + case 90: /* db_options ::= db_options VGROUPS NK_INTEGER */ +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; + break; + case 91: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; + break; + case 92: /* db_options ::= db_options RETENTIONS retention_list */ +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_RETENTIONS, yymsp[0].minor.yy712); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; + break; + case 93: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; + break; + case 94: /* alter_db_options ::= alter_db_option */ +{ yylhsminor.yy560 = createAlterDatabaseOptions(pCxt); yylhsminor.yy560 = setAlterDatabaseOption(pCxt, yylhsminor.yy560, &yymsp[0].minor.yy389); } + yymsp[0].minor.yy560 = yylhsminor.yy560; + break; + case 95: /* alter_db_options ::= alter_db_options alter_db_option */ +{ yylhsminor.yy560 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy560, &yymsp[0].minor.yy389); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; + break; + case 96: /* alter_db_option ::= BUFFER NK_INTEGER */ +{ yymsp[-1].minor.yy389.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } + break; + case 97: /* alter_db_option ::= CACHELAST NK_INTEGER */ +{ yymsp[-1].minor.yy389.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } + break; + case 98: /* alter_db_option ::= CACHELASTSIZE NK_INTEGER */ +{ yymsp[-1].minor.yy389.type = DB_OPTION_CACHELASTSIZE; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } + break; + case 99: /* alter_db_option ::= FSYNC NK_INTEGER */ +{ yymsp[-1].minor.yy389.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } + break; + case 100: /* alter_db_option ::= KEEP integer_list */ + case 101: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==101); +{ yymsp[-1].minor.yy389.type = DB_OPTION_KEEP; yymsp[-1].minor.yy389.pList = yymsp[0].minor.yy712; } + break; + case 102: /* alter_db_option ::= PAGES NK_INTEGER */ +{ yymsp[-1].minor.yy389.type = DB_OPTION_PAGES; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } + break; + case 103: /* alter_db_option ::= REPLICA NK_INTEGER */ +{ yymsp[-1].minor.yy389.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } + break; + case 104: /* alter_db_option ::= STRICT NK_INTEGER */ +{ yymsp[-1].minor.yy389.type = DB_OPTION_STRICT; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } + break; + case 105: /* alter_db_option ::= WAL NK_INTEGER */ +{ yymsp[-1].minor.yy389.type = DB_OPTION_WAL; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } + break; + case 106: /* integer_list ::= NK_INTEGER */ +{ yylhsminor.yy712 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy712 = yylhsminor.yy712; + break; + case 107: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ + case 282: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==282); +{ yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-2].minor.yy712, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy712 = yylhsminor.yy712; + break; + case 108: /* variable_list ::= NK_VARIABLE */ +{ yylhsminor.yy712 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy712 = yylhsminor.yy712; + break; + case 109: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ +{ yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-2].minor.yy712, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy712 = yylhsminor.yy712; + break; + case 110: /* retention_list ::= retention */ + case 130: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==130); + case 133: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==133); + case 140: /* column_def_list ::= column_def */ yytestcase(yyruleno==140); + case 183: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==183); + case 188: /* col_name_list ::= col_name */ yytestcase(yyruleno==188); + case 235: /* func_list ::= func */ yytestcase(yyruleno==235); + case 309: /* literal_list ::= signed_literal */ yytestcase(yyruleno==309); + case 371: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==371); + case 425: /* select_list ::= select_item */ yytestcase(yyruleno==425); + case 479: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==479); +{ yylhsminor.yy712 = createNodeList(pCxt, yymsp[0].minor.yy560); } + yymsp[0].minor.yy712 = yylhsminor.yy712; + break; + case 111: /* retention_list ::= retention_list NK_COMMA retention */ + case 141: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==141); + case 184: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==184); + case 189: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==189); + case 236: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==236); + case 310: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==310); + case 372: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==372); + case 426: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==426); + case 480: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==480); +{ yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-2].minor.yy712, yymsp[0].minor.yy560); } + yymsp[-2].minor.yy712 = yylhsminor.yy712; + break; + case 112: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ +{ yylhsminor.yy560 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; + break; + case 113: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + case 115: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==115); +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy173, yymsp[-5].minor.yy560, yymsp[-3].minor.yy712, yymsp[-1].minor.yy712, yymsp[0].minor.yy560); } + break; + case 114: /* cmd ::= CREATE TABLE multi_create_clause */ +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy712); } + break; + case 116: /* cmd ::= DROP TABLE multi_drop_clause */ +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy712); } + break; + case 117: /* cmd ::= DROP STABLE exists_opt full_table_name */ +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy173, yymsp[0].minor.yy560); } + break; + case 118: /* cmd ::= ALTER TABLE alter_table_clause */ + case 285: /* cmd ::= query_expression */ yytestcase(yyruleno==285); +{ pCxt->pRootNode = yymsp[0].minor.yy560; } + break; + case 119: /* cmd ::= ALTER STABLE alter_table_clause */ +{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy560); } + break; + case 120: /* alter_table_clause ::= full_table_name alter_table_options */ +{ yylhsminor.yy560 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 124: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -{ yylhsminor.yy652 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy652, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy5, yymsp[0].minor.yy552); } - yymsp[-4].minor.yy652 = yylhsminor.yy652; + case 121: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ +{ yylhsminor.yy560 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy533, yymsp[0].minor.yy196); } + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; - case 125: /* alter_table_clause ::= full_table_name DROP TAG column_name */ -{ yylhsminor.yy652 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy652, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy5); } - yymsp[-3].minor.yy652 = yylhsminor.yy652; + case 122: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ +{ yylhsminor.yy560 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy560, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy533); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; + break; + case 123: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ +{ yylhsminor.yy560 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy533, yymsp[0].minor.yy196); } + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; - case 126: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -{ yylhsminor.yy652 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy652, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy5, yymsp[0].minor.yy552); } - yymsp[-4].minor.yy652 = yylhsminor.yy652; + case 124: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ +{ yylhsminor.yy560 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy533, &yymsp[0].minor.yy533); } + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; - case 127: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -{ yylhsminor.yy652 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy652, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy5, &yymsp[0].minor.yy5); } - yymsp[-4].minor.yy652 = yylhsminor.yy652; + case 125: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ +{ yylhsminor.yy560 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy533, yymsp[0].minor.yy196); } + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; - case 128: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ -{ yylhsminor.yy652 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy652, &yymsp[-2].minor.yy5, yymsp[0].minor.yy652); } - yymsp[-5].minor.yy652 = yylhsminor.yy652; + case 126: /* alter_table_clause ::= full_table_name DROP TAG column_name */ +{ yylhsminor.yy560 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy560, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy533); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; - case 130: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 133: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==133); -{ yylhsminor.yy210 = addNodeToList(pCxt, yymsp[-1].minor.yy210, yymsp[0].minor.yy652); } - yymsp[-1].minor.yy210 = yylhsminor.yy210; + case 127: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ +{ yylhsminor.yy560 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy533, yymsp[0].minor.yy196); } + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; - case 131: /* 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.yy652 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy403, yymsp[-8].minor.yy652, yymsp[-6].minor.yy652, yymsp[-5].minor.yy210, yymsp[-2].minor.yy210, yymsp[0].minor.yy652); } - yymsp[-9].minor.yy652 = yylhsminor.yy652; + case 128: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ +{ yylhsminor.yy560 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy533, &yymsp[0].minor.yy533); } + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; - case 134: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy652 = createDropTableClause(pCxt, yymsp[-1].minor.yy403, yymsp[0].minor.yy652); } - yymsp[-1].minor.yy652 = yylhsminor.yy652; + case 129: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ +{ yylhsminor.yy560 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy560, &yymsp[-2].minor.yy533, yymsp[0].minor.yy560); } + yymsp[-5].minor.yy560 = yylhsminor.yy560; break; - case 135: /* specific_cols_opt ::= */ - case 166: /* tags_def_opt ::= */ yytestcase(yyruleno==166); - case 433: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==433); - case 450: /* group_by_clause_opt ::= */ yytestcase(yyruleno==450); - case 466: /* order_by_clause_opt ::= */ yytestcase(yyruleno==466); -{ yymsp[1].minor.yy210 = NULL; } + case 131: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ + case 134: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==134); +{ yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-1].minor.yy712, yymsp[0].minor.yy560); } + yymsp[-1].minor.yy712 = yylhsminor.yy712; break; - case 136: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ -{ yymsp[-2].minor.yy210 = yymsp[-1].minor.yy210; } + case 132: /* 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.yy560 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy173, yymsp[-8].minor.yy560, yymsp[-6].minor.yy560, yymsp[-5].minor.yy712, yymsp[-2].minor.yy712, yymsp[0].minor.yy560); } + yymsp[-9].minor.yy560 = yylhsminor.yy560; break; - case 137: /* full_table_name ::= table_name */ -{ yylhsminor.yy652 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy5, NULL); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 135: /* drop_table_clause ::= exists_opt full_table_name */ +{ yylhsminor.yy560 = createDropTableClause(pCxt, yymsp[-1].minor.yy173, yymsp[0].minor.yy560); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 138: /* full_table_name ::= db_name NK_DOT table_name */ -{ yylhsminor.yy652 = createRealTableNode(pCxt, &yymsp[-2].minor.yy5, &yymsp[0].minor.yy5, NULL); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 136: /* specific_cols_opt ::= */ + case 167: /* tags_def_opt ::= */ yytestcase(yyruleno==167); + case 434: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==434); + case 451: /* group_by_clause_opt ::= */ yytestcase(yyruleno==451); + case 467: /* order_by_clause_opt ::= */ yytestcase(yyruleno==467); +{ yymsp[1].minor.yy712 = NULL; } break; - case 141: /* column_def ::= column_name type_name */ -{ yylhsminor.yy652 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy5, yymsp[0].minor.yy552, NULL); } - yymsp[-1].minor.yy652 = yylhsminor.yy652; + case 137: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ +{ yymsp[-2].minor.yy712 = yymsp[-1].minor.yy712; } break; - case 142: /* column_def ::= column_name type_name COMMENT NK_STRING */ -{ yylhsminor.yy652 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy5, yymsp[-2].minor.yy552, &yymsp[0].minor.yy0); } - yymsp[-3].minor.yy652 = yylhsminor.yy652; + case 138: /* full_table_name ::= table_name */ +{ yylhsminor.yy560 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy533, NULL); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 143: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy552 = createDataType(TSDB_DATA_TYPE_BOOL); } + case 139: /* full_table_name ::= db_name NK_DOT table_name */ +{ yylhsminor.yy560 = createRealTableNode(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy533, NULL); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 144: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy552 = createDataType(TSDB_DATA_TYPE_TINYINT); } + case 142: /* column_def ::= column_name type_name */ +{ yylhsminor.yy560 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy533, yymsp[0].minor.yy196, NULL); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 145: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy552 = createDataType(TSDB_DATA_TYPE_SMALLINT); } + case 143: /* column_def ::= column_name type_name COMMENT NK_STRING */ +{ yylhsminor.yy560 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy533, yymsp[-2].minor.yy196, &yymsp[0].minor.yy0); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; - case 146: /* type_name ::= INT */ - case 147: /* type_name ::= INTEGER */ yytestcase(yyruleno==147); -{ yymsp[0].minor.yy552 = createDataType(TSDB_DATA_TYPE_INT); } + case 144: /* type_name ::= BOOL */ +{ yymsp[0].minor.yy196 = createDataType(TSDB_DATA_TYPE_BOOL); } break; - case 148: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy552 = createDataType(TSDB_DATA_TYPE_BIGINT); } + case 145: /* type_name ::= TINYINT */ +{ yymsp[0].minor.yy196 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; - case 149: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy552 = createDataType(TSDB_DATA_TYPE_FLOAT); } + case 146: /* type_name ::= SMALLINT */ +{ yymsp[0].minor.yy196 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; - case 150: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy552 = createDataType(TSDB_DATA_TYPE_DOUBLE); } + case 147: /* type_name ::= INT */ + case 148: /* type_name ::= INTEGER */ yytestcase(yyruleno==148); +{ yymsp[0].minor.yy196 = createDataType(TSDB_DATA_TYPE_INT); } break; - case 151: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy552 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } + case 149: /* type_name ::= BIGINT */ +{ yymsp[0].minor.yy196 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; - case 152: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy552 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } + case 150: /* type_name ::= FLOAT */ +{ yymsp[0].minor.yy196 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; - case 153: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy552 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } + case 151: /* type_name ::= DOUBLE */ +{ yymsp[0].minor.yy196 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; - case 154: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy552 = createDataType(TSDB_DATA_TYPE_UTINYINT); } + case 152: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy196 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; - case 155: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy552 = createDataType(TSDB_DATA_TYPE_USMALLINT); } + case 153: /* type_name ::= TIMESTAMP */ +{ yymsp[0].minor.yy196 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; - case 156: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy552 = createDataType(TSDB_DATA_TYPE_UINT); } + case 154: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy196 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; - case 157: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy552 = createDataType(TSDB_DATA_TYPE_UBIGINT); } + case 155: /* type_name ::= TINYINT UNSIGNED */ +{ yymsp[-1].minor.yy196 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; - case 158: /* type_name ::= JSON */ -{ yymsp[0].minor.yy552 = createDataType(TSDB_DATA_TYPE_JSON); } + case 156: /* type_name ::= SMALLINT UNSIGNED */ +{ yymsp[-1].minor.yy196 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; - case 159: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy552 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } + case 157: /* type_name ::= INT UNSIGNED */ +{ yymsp[-1].minor.yy196 = createDataType(TSDB_DATA_TYPE_UINT); } break; - case 160: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy552 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } + case 158: /* type_name ::= BIGINT UNSIGNED */ +{ yymsp[-1].minor.yy196 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; - case 161: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy552 = createDataType(TSDB_DATA_TYPE_BLOB); } + case 159: /* type_name ::= JSON */ +{ yymsp[0].minor.yy196 = createDataType(TSDB_DATA_TYPE_JSON); } break; - case 162: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy552 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } + case 160: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy196 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; - case 163: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy552 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 161: /* type_name ::= MEDIUMBLOB */ +{ yymsp[0].minor.yy196 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; - case 164: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy552 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 162: /* type_name ::= BLOB */ +{ yymsp[0].minor.yy196 = createDataType(TSDB_DATA_TYPE_BLOB); } break; - case 165: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy552 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 163: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy196 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; - case 167: /* tags_def_opt ::= tags_def */ - case 369: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==369); -{ yylhsminor.yy210 = yymsp[0].minor.yy210; } - yymsp[0].minor.yy210 = yylhsminor.yy210; + case 164: /* type_name ::= DECIMAL */ +{ yymsp[0].minor.yy196 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 168: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ -{ yymsp[-3].minor.yy210 = yymsp[-1].minor.yy210; } + case 165: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy196 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 169: /* table_options ::= */ -{ yymsp[1].minor.yy652 = createDefaultTableOptions(pCxt); } + case 166: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ +{ yymsp[-5].minor.yy196 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 170: /* table_options ::= table_options COMMENT NK_STRING */ -{ yylhsminor.yy652 = setTableOption(pCxt, yymsp[-2].minor.yy652, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 168: /* tags_def_opt ::= tags_def */ + case 370: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==370); +{ yylhsminor.yy712 = yymsp[0].minor.yy712; } + yymsp[0].minor.yy712 = yylhsminor.yy712; break; - case 171: /* table_options ::= table_options MAX_DELAY duration_list */ -{ yylhsminor.yy652 = setTableOption(pCxt, yymsp[-2].minor.yy652, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy210); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 169: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ +{ yymsp[-3].minor.yy712 = yymsp[-1].minor.yy712; } break; - case 172: /* table_options ::= table_options WATERMARK duration_list */ -{ yylhsminor.yy652 = setTableOption(pCxt, yymsp[-2].minor.yy652, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy210); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 170: /* table_options ::= */ +{ yymsp[1].minor.yy560 = createDefaultTableOptions(pCxt); } break; - case 173: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -{ yylhsminor.yy652 = setTableOption(pCxt, yymsp[-4].minor.yy652, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy210); } - yymsp[-4].minor.yy652 = yylhsminor.yy652; + case 171: /* table_options ::= table_options COMMENT NK_STRING */ +{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 174: /* table_options ::= table_options TTL NK_INTEGER */ -{ yylhsminor.yy652 = setTableOption(pCxt, yymsp[-2].minor.yy652, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 172: /* table_options ::= table_options MAX_DELAY duration_list */ +{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy712); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 175: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ yylhsminor.yy652 = setTableOption(pCxt, yymsp[-4].minor.yy652, TABLE_OPTION_SMA, yymsp[-1].minor.yy210); } - yymsp[-4].minor.yy652 = yylhsminor.yy652; + case 173: /* table_options ::= table_options WATERMARK duration_list */ +{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy712); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 176: /* alter_table_options ::= alter_table_option */ -{ yylhsminor.yy652 = createAlterTableOptions(pCxt); yylhsminor.yy652 = setTableOption(pCxt, yylhsminor.yy652, yymsp[0].minor.yy351.type, &yymsp[0].minor.yy351.val); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 174: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ +{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-4].minor.yy560, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy712); } + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; - case 177: /* alter_table_options ::= alter_table_options alter_table_option */ -{ yylhsminor.yy652 = setTableOption(pCxt, yymsp[-1].minor.yy652, yymsp[0].minor.yy351.type, &yymsp[0].minor.yy351.val); } - yymsp[-1].minor.yy652 = yylhsminor.yy652; + case 175: /* table_options ::= table_options TTL NK_INTEGER */ +{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 178: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy351.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy351.val = yymsp[0].minor.yy0; } + case 176: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ +{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-4].minor.yy560, TABLE_OPTION_SMA, yymsp[-1].minor.yy712); } + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; - case 179: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy351.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy351.val = yymsp[0].minor.yy0; } + case 177: /* alter_table_options ::= alter_table_option */ +{ yylhsminor.yy560 = createAlterTableOptions(pCxt); yylhsminor.yy560 = setTableOption(pCxt, yylhsminor.yy560, yymsp[0].minor.yy389.type, &yymsp[0].minor.yy389.val); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 180: /* duration_list ::= duration_literal */ - case 337: /* expression_list ::= expression */ yytestcase(yyruleno==337); -{ yylhsminor.yy210 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy652)); } - yymsp[0].minor.yy210 = yylhsminor.yy210; + case 178: /* alter_table_options ::= alter_table_options alter_table_option */ +{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-1].minor.yy560, yymsp[0].minor.yy389.type, &yymsp[0].minor.yy389.val); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 181: /* duration_list ::= duration_list NK_COMMA duration_literal */ - case 338: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==338); -{ yylhsminor.yy210 = addNodeToList(pCxt, yymsp[-2].minor.yy210, releaseRawExprNode(pCxt, yymsp[0].minor.yy652)); } - yymsp[-2].minor.yy210 = yylhsminor.yy210; + case 179: /* alter_table_option ::= COMMENT NK_STRING */ +{ yymsp[-1].minor.yy389.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; - case 184: /* rollup_func_name ::= function_name */ -{ yylhsminor.yy652 = createFunctionNode(pCxt, &yymsp[0].minor.yy5, NULL); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 180: /* alter_table_option ::= TTL NK_INTEGER */ +{ yymsp[-1].minor.yy389.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; - case 185: /* rollup_func_name ::= FIRST */ - case 186: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==186); -{ yylhsminor.yy652 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 181: /* duration_list ::= duration_literal */ + case 338: /* expression_list ::= expression */ yytestcase(yyruleno==338); +{ yylhsminor.yy712 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); } + yymsp[0].minor.yy712 = yylhsminor.yy712; break; - case 189: /* col_name ::= column_name */ -{ yylhsminor.yy652 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy5); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 182: /* duration_list ::= duration_list NK_COMMA duration_literal */ + case 339: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==339); +{ yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-2].minor.yy712, releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); } + yymsp[-2].minor.yy712 = yylhsminor.yy712; break; - case 190: /* cmd ::= SHOW DNODES */ + case 185: /* rollup_func_name ::= function_name */ +{ yylhsminor.yy560 = createFunctionNode(pCxt, &yymsp[0].minor.yy533, NULL); } + yymsp[0].minor.yy560 = yylhsminor.yy560; + break; + case 186: /* rollup_func_name ::= FIRST */ + case 187: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==187); +{ yylhsminor.yy560 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy560 = yylhsminor.yy560; + break; + case 190: /* col_name ::= column_name */ +{ yylhsminor.yy560 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy533); } + yymsp[0].minor.yy560 = yylhsminor.yy560; + break; + case 191: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } break; - case 191: /* cmd ::= SHOW USERS */ + case 192: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } break; - case 192: /* cmd ::= SHOW DATABASES */ + case 193: /* cmd ::= SHOW DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); } break; - case 193: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy652, yymsp[0].minor.yy652, OP_TYPE_LIKE); } + case 194: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy560, yymsp[0].minor.yy560, OP_TYPE_LIKE); } break; - case 194: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy652, yymsp[0].minor.yy652, OP_TYPE_LIKE); } + case 195: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy560, yymsp[0].minor.yy560, OP_TYPE_LIKE); } break; - case 195: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy652, NULL, OP_TYPE_LIKE); } + case 196: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy560, NULL, OP_TYPE_LIKE); } break; - case 196: /* cmd ::= SHOW MNODES */ + case 197: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } break; - case 197: /* cmd ::= SHOW MODULES */ + case 198: /* cmd ::= SHOW MODULES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MODULES_STMT); } break; - case 198: /* cmd ::= SHOW QNODES */ + case 199: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } break; - case 199: /* cmd ::= SHOW FUNCTIONS */ + case 200: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } break; - case 200: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy652, yymsp[-1].minor.yy652, OP_TYPE_EQUAL); } + case 201: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy560, yymsp[-1].minor.yy560, OP_TYPE_EQUAL); } break; - case 201: /* cmd ::= SHOW STREAMS */ + case 202: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } break; - case 202: /* cmd ::= SHOW ACCOUNTS */ + case 203: /* cmd ::= SHOW ACCOUNTS */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } break; - case 203: /* cmd ::= SHOW APPS */ + case 204: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } break; - case 204: /* cmd ::= SHOW CONNECTIONS */ + case 205: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } break; - case 205: /* cmd ::= SHOW LICENCE */ - case 206: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==206); + case 206: /* cmd ::= SHOW LICENCE */ + case 207: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==207); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCE_STMT); } break; - case 207: /* cmd ::= SHOW CREATE DATABASE db_name */ -{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy5); } + case 208: /* cmd ::= SHOW CREATE DATABASE db_name */ +{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy533); } break; - case 208: /* cmd ::= SHOW CREATE TABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy652); } + case 209: /* cmd ::= SHOW CREATE TABLE full_table_name */ +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy560); } break; - case 209: /* cmd ::= SHOW CREATE STABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy652); } + case 210: /* cmd ::= SHOW CREATE STABLE full_table_name */ +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy560); } break; - case 210: /* cmd ::= SHOW QUERIES */ + case 211: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } break; - case 211: /* cmd ::= SHOW SCORES */ + case 212: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } break; - case 212: /* cmd ::= SHOW TOPICS */ + case 213: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } break; - case 213: /* cmd ::= SHOW VARIABLES */ + case 214: /* cmd ::= SHOW VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } break; - case 214: /* cmd ::= SHOW LOCAL VARIABLES */ + case 215: /* cmd ::= SHOW LOCAL VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } break; - case 215: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES */ + case 216: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES */ { pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-1].minor.yy0)); } break; - case 216: /* cmd ::= SHOW BNODES */ + case 217: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } break; - case 217: /* cmd ::= SHOW SNODES */ + case 218: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } break; - case 218: /* cmd ::= SHOW CLUSTER */ + case 219: /* cmd ::= SHOW CLUSTER */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } break; - case 219: /* cmd ::= SHOW TRANSACTIONS */ + case 220: /* cmd ::= SHOW TRANSACTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } break; - case 220: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy652); } + case 221: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ +{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy560); } break; - case 221: /* cmd ::= SHOW CONSUMERS */ + case 222: /* cmd ::= SHOW CONSUMERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } break; - case 222: /* cmd ::= SHOW SUBSCRIPTIONS */ + case 223: /* cmd ::= SHOW SUBSCRIPTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } break; - case 223: /* db_name_cond_opt ::= */ - case 228: /* from_db_opt ::= */ yytestcase(yyruleno==228); -{ yymsp[1].minor.yy652 = createDefaultDatabaseCondValue(pCxt); } + case 224: /* db_name_cond_opt ::= */ + case 229: /* from_db_opt ::= */ yytestcase(yyruleno==229); +{ yymsp[1].minor.yy560 = createDefaultDatabaseCondValue(pCxt); } break; - case 224: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy652 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy5); } - yymsp[-1].minor.yy652 = yylhsminor.yy652; + case 225: /* db_name_cond_opt ::= db_name NK_DOT */ +{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy533); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 225: /* like_pattern_opt ::= */ - case 265: /* into_opt ::= */ yytestcase(yyruleno==265); - case 402: /* from_clause_opt ::= */ yytestcase(yyruleno==402); - case 431: /* where_clause_opt ::= */ yytestcase(yyruleno==431); - case 435: /* twindow_clause_opt ::= */ yytestcase(yyruleno==435); - case 440: /* sliding_opt ::= */ yytestcase(yyruleno==440); - case 442: /* fill_opt ::= */ yytestcase(yyruleno==442); - case 454: /* having_clause_opt ::= */ yytestcase(yyruleno==454); - case 456: /* range_opt ::= */ yytestcase(yyruleno==456); - case 458: /* every_opt ::= */ yytestcase(yyruleno==458); - case 468: /* slimit_clause_opt ::= */ yytestcase(yyruleno==468); - case 472: /* limit_clause_opt ::= */ yytestcase(yyruleno==472); -{ yymsp[1].minor.yy652 = NULL; } + case 226: /* like_pattern_opt ::= */ + case 266: /* into_opt ::= */ yytestcase(yyruleno==266); + case 403: /* from_clause_opt ::= */ yytestcase(yyruleno==403); + case 432: /* where_clause_opt ::= */ yytestcase(yyruleno==432); + case 436: /* twindow_clause_opt ::= */ yytestcase(yyruleno==436); + case 441: /* sliding_opt ::= */ yytestcase(yyruleno==441); + case 443: /* fill_opt ::= */ yytestcase(yyruleno==443); + case 455: /* having_clause_opt ::= */ yytestcase(yyruleno==455); + case 457: /* range_opt ::= */ yytestcase(yyruleno==457); + case 459: /* every_opt ::= */ yytestcase(yyruleno==459); + case 469: /* slimit_clause_opt ::= */ yytestcase(yyruleno==469); + case 473: /* limit_clause_opt ::= */ yytestcase(yyruleno==473); +{ yymsp[1].minor.yy560 = NULL; } break; - case 226: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy652 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + case 227: /* like_pattern_opt ::= LIKE NK_STRING */ +{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; - case 227: /* table_name_cond ::= table_name */ -{ yylhsminor.yy652 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy5); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 228: /* table_name_cond ::= table_name */ +{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy533); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 229: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy652 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy5); } + case 230: /* from_db_opt ::= FROM db_name */ +{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy533); } break; - case 230: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy403, &yymsp[-3].minor.yy5, &yymsp[-1].minor.yy5, NULL, yymsp[0].minor.yy652); } + case 231: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy173, &yymsp[-3].minor.yy533, &yymsp[-1].minor.yy533, NULL, yymsp[0].minor.yy560); } break; - case 231: /* cmd ::= DROP INDEX exists_opt index_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy403, &yymsp[0].minor.yy5); } + case 232: /* cmd ::= DROP INDEX exists_opt index_name */ +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy533); } break; - case 232: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ -{ yymsp[-9].minor.yy652 = createIndexOption(pCxt, yymsp[-7].minor.yy210, releaseRawExprNode(pCxt, yymsp[-3].minor.yy652), NULL, yymsp[-1].minor.yy652, yymsp[0].minor.yy652); } + case 233: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ +{ yymsp[-9].minor.yy560 = createIndexOption(pCxt, yymsp[-7].minor.yy712, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), NULL, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } break; - case 233: /* 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.yy652 = createIndexOption(pCxt, yymsp[-9].minor.yy210, releaseRawExprNode(pCxt, yymsp[-5].minor.yy652), releaseRawExprNode(pCxt, yymsp[-3].minor.yy652), yymsp[-1].minor.yy652, yymsp[0].minor.yy652); } + case 234: /* 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.yy560 = createIndexOption(pCxt, yymsp[-9].minor.yy712, releaseRawExprNode(pCxt, yymsp[-5].minor.yy560), releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } break; - case 236: /* func ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy652 = createFunctionNode(pCxt, &yymsp[-3].minor.yy5, yymsp[-1].minor.yy210); } - yymsp[-3].minor.yy652 = yylhsminor.yy652; + case 237: /* func ::= function_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy560 = createFunctionNode(pCxt, &yymsp[-3].minor.yy533, yymsp[-1].minor.yy712); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; - case 237: /* sma_stream_opt ::= */ - case 267: /* stream_options ::= */ yytestcase(yyruleno==267); -{ yymsp[1].minor.yy652 = createStreamOptions(pCxt); } + case 238: /* sma_stream_opt ::= */ + case 268: /* stream_options ::= */ yytestcase(yyruleno==268); +{ yymsp[1].minor.yy560 = createStreamOptions(pCxt); } break; - case 238: /* sma_stream_opt ::= stream_options WATERMARK duration_literal */ - case 271: /* stream_options ::= stream_options WATERMARK duration_literal */ yytestcase(yyruleno==271); -{ ((SStreamOptions*)yymsp[-2].minor.yy652)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy652); yylhsminor.yy652 = yymsp[-2].minor.yy652; } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 239: /* sma_stream_opt ::= stream_options WATERMARK duration_literal */ + case 272: /* stream_options ::= stream_options WATERMARK duration_literal */ yytestcase(yyruleno==272); +{ ((SStreamOptions*)yymsp[-2].minor.yy560)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); yylhsminor.yy560 = yymsp[-2].minor.yy560; } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 239: /* sma_stream_opt ::= stream_options MAX_DELAY duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy652)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy652); yylhsminor.yy652 = yymsp[-2].minor.yy652; } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 240: /* sma_stream_opt ::= stream_options MAX_DELAY duration_literal */ +{ ((SStreamOptions*)yymsp[-2].minor.yy560)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); yylhsminor.yy560 = yymsp[-2].minor.yy560; } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 240: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ -{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy403, &yymsp[-2].minor.yy5, yymsp[0].minor.yy652); } + case 241: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ +{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy173, &yymsp[-2].minor.yy533, yymsp[0].minor.yy560); } break; - case 241: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ -{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy403, &yymsp[-3].minor.yy5, &yymsp[0].minor.yy5, false); } + case 242: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ +{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy173, &yymsp[-3].minor.yy533, &yymsp[0].minor.yy533, false); } break; - case 242: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ -{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-6].minor.yy403, &yymsp[-5].minor.yy5, &yymsp[0].minor.yy5, true); } + case 243: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ +{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-6].minor.yy173, &yymsp[-5].minor.yy533, &yymsp[0].minor.yy533, true); } break; - case 243: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ -{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-4].minor.yy403, &yymsp[-3].minor.yy5, yymsp[0].minor.yy652, false); } + case 244: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ +{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-4].minor.yy173, &yymsp[-3].minor.yy533, yymsp[0].minor.yy560, false); } break; - case 244: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ -{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-6].minor.yy403, &yymsp[-5].minor.yy5, yymsp[0].minor.yy652, true); } + case 245: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ +{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-6].minor.yy173, &yymsp[-5].minor.yy533, yymsp[0].minor.yy560, true); } break; - case 245: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy403, &yymsp[0].minor.yy5); } + case 246: /* cmd ::= DROP TOPIC exists_opt topic_name */ +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy533); } break; - case 246: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy403, &yymsp[-2].minor.yy5, &yymsp[0].minor.yy5); } + case 247: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ +{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy173, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy533); } break; - case 247: /* cmd ::= DESC full_table_name */ - case 248: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==248); -{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy652); } + case 248: /* cmd ::= DESC full_table_name */ + case 249: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==249); +{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy560); } break; - case 249: /* cmd ::= RESET QUERY CACHE */ + case 250: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; - case 250: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ -{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy403, yymsp[-1].minor.yy652, yymsp[0].minor.yy652); } + case 251: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy173, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } break; - case 252: /* analyze_opt ::= ANALYZE */ - case 260: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==260); - case 422: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==422); -{ yymsp[0].minor.yy403 = true; } + case 253: /* analyze_opt ::= ANALYZE */ + case 261: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==261); + case 423: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==423); +{ yymsp[0].minor.yy173 = true; } break; - case 253: /* explain_options ::= */ -{ yymsp[1].minor.yy652 = createDefaultExplainOptions(pCxt); } + case 254: /* explain_options ::= */ +{ yymsp[1].minor.yy560 = createDefaultExplainOptions(pCxt); } break; - case 254: /* explain_options ::= explain_options VERBOSE NK_BOOL */ -{ yylhsminor.yy652 = setExplainVerbose(pCxt, yymsp[-2].minor.yy652, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 255: /* explain_options ::= explain_options VERBOSE NK_BOOL */ +{ yylhsminor.yy560 = setExplainVerbose(pCxt, yymsp[-2].minor.yy560, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 255: /* explain_options ::= explain_options RATIO NK_FLOAT */ -{ yylhsminor.yy652 = setExplainRatio(pCxt, yymsp[-2].minor.yy652, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 256: /* explain_options ::= explain_options RATIO NK_FLOAT */ +{ yylhsminor.yy560 = setExplainRatio(pCxt, yymsp[-2].minor.yy560, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 256: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ -{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy210); } + case 257: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ +{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy712); } break; - case 257: /* cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ -{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-6].minor.yy403, yymsp[-8].minor.yy403, &yymsp[-5].minor.yy5, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy552, yymsp[0].minor.yy462); } + case 258: /* cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ +{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-6].minor.yy173, yymsp[-8].minor.yy173, &yymsp[-5].minor.yy533, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy196, yymsp[0].minor.yy424); } break; - case 258: /* cmd ::= DROP FUNCTION exists_opt function_name */ -{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy403, &yymsp[0].minor.yy5); } + case 259: /* cmd ::= DROP FUNCTION exists_opt function_name */ +{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy533); } break; - case 261: /* bufsize_opt ::= */ -{ yymsp[1].minor.yy462 = 0; } + case 262: /* bufsize_opt ::= */ +{ yymsp[1].minor.yy424 = 0; } break; - case 262: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ -{ yymsp[-1].minor.yy462 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } + case 263: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ +{ yymsp[-1].minor.yy424 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; - case 263: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ -{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy403, &yymsp[-4].minor.yy5, yymsp[-2].minor.yy652, yymsp[-3].minor.yy652, yymsp[0].minor.yy652); } + case 264: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ +{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy173, &yymsp[-4].minor.yy533, yymsp[-2].minor.yy560, yymsp[-3].minor.yy560, yymsp[0].minor.yy560); } break; - case 264: /* cmd ::= DROP STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy403, &yymsp[0].minor.yy5); } + case 265: /* cmd ::= DROP STREAM exists_opt stream_name */ +{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy533); } break; - case 266: /* into_opt ::= INTO full_table_name */ - case 403: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==403); - case 432: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==432); - case 455: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==455); -{ yymsp[-1].minor.yy652 = yymsp[0].minor.yy652; } + case 267: /* into_opt ::= INTO full_table_name */ + case 404: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==404); + case 433: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==433); + case 456: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==456); +{ yymsp[-1].minor.yy560 = yymsp[0].minor.yy560; } break; - case 268: /* stream_options ::= stream_options TRIGGER AT_ONCE */ -{ ((SStreamOptions*)yymsp[-2].minor.yy652)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy652 = yymsp[-2].minor.yy652; } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 269: /* stream_options ::= stream_options TRIGGER AT_ONCE */ +{ ((SStreamOptions*)yymsp[-2].minor.yy560)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy560 = yymsp[-2].minor.yy560; } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 269: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ -{ ((SStreamOptions*)yymsp[-2].minor.yy652)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy652 = yymsp[-2].minor.yy652; } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 270: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ +{ ((SStreamOptions*)yymsp[-2].minor.yy560)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy560 = yymsp[-2].minor.yy560; } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 270: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -{ ((SStreamOptions*)yymsp[-3].minor.yy652)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy652)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy652); yylhsminor.yy652 = yymsp[-3].minor.yy652; } - yymsp[-3].minor.yy652 = yylhsminor.yy652; + case 271: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ +{ ((SStreamOptions*)yymsp[-3].minor.yy560)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy560)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); yylhsminor.yy560 = yymsp[-3].minor.yy560; } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; - case 272: /* stream_options ::= stream_options IGNORE EXPIRED */ -{ ((SStreamOptions*)yymsp[-2].minor.yy652)->ignoreExpired = true; yylhsminor.yy652 = yymsp[-2].minor.yy652; } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 273: /* stream_options ::= stream_options IGNORE EXPIRED */ +{ ((SStreamOptions*)yymsp[-2].minor.yy560)->ignoreExpired = true; yylhsminor.yy560 = yymsp[-2].minor.yy560; } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 273: /* cmd ::= KILL CONNECTION NK_INTEGER */ + case 274: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; - case 274: /* cmd ::= KILL QUERY NK_STRING */ + case 275: /* cmd ::= KILL QUERY NK_STRING */ { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 275: /* cmd ::= KILL TRANSACTION NK_INTEGER */ + case 276: /* cmd ::= KILL TRANSACTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } break; - case 276: /* cmd ::= BALANCE VGROUP */ + case 277: /* cmd ::= BALANCE VGROUP */ { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } break; - case 277: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + case 278: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 278: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy210); } + case 279: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ +{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy712); } break; - case 279: /* cmd ::= SPLIT VGROUP NK_INTEGER */ + case 280: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 280: /* dnode_list ::= DNODE NK_INTEGER */ -{ yymsp[-1].minor.yy210 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + case 281: /* dnode_list ::= DNODE NK_INTEGER */ +{ yymsp[-1].minor.yy712 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; - case 282: /* cmd ::= SYNCDB db_name REPLICA */ -{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy5); } + case 283: /* cmd ::= SYNCDB db_name REPLICA */ +{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy533); } break; - case 283: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ -{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy652, yymsp[0].minor.yy652); } + case 284: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ +{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } break; - case 285: /* cmd ::= INSERT INTO full_table_name specific_cols_opt query_expression */ -{ pCxt->pRootNode = createInsertStmt(pCxt, yymsp[-2].minor.yy652, yymsp[-1].minor.yy210, yymsp[0].minor.yy652); } + case 286: /* cmd ::= INSERT INTO full_table_name specific_cols_opt query_expression */ +{ pCxt->pRootNode = createInsertStmt(pCxt, yymsp[-2].minor.yy560, yymsp[-1].minor.yy712, yymsp[0].minor.yy560); } break; - case 286: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy652 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 287: /* literal ::= NK_INTEGER */ +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 287: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy652 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 288: /* literal ::= NK_FLOAT */ +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 288: /* literal ::= NK_STRING */ -{ yylhsminor.yy652 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 289: /* literal ::= NK_STRING */ +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 289: /* literal ::= NK_BOOL */ -{ yylhsminor.yy652 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 290: /* literal ::= NK_BOOL */ +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 290: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy652 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy652 = yylhsminor.yy652; + case 291: /* literal ::= TIMESTAMP NK_STRING */ +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 291: /* literal ::= duration_literal */ - case 301: /* signed_literal ::= signed */ yytestcase(yyruleno==301); - case 321: /* expression ::= literal */ yytestcase(yyruleno==321); - case 322: /* expression ::= pseudo_column */ yytestcase(yyruleno==322); - case 323: /* expression ::= column_reference */ yytestcase(yyruleno==323); - case 324: /* expression ::= function_expression */ yytestcase(yyruleno==324); - case 325: /* expression ::= subquery */ yytestcase(yyruleno==325); - case 352: /* function_expression ::= literal_func */ yytestcase(yyruleno==352); - case 394: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==394); - case 398: /* boolean_primary ::= predicate */ yytestcase(yyruleno==398); - case 400: /* common_expression ::= expression */ yytestcase(yyruleno==400); - case 401: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==401); - case 404: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==404); - case 406: /* table_reference ::= table_primary */ yytestcase(yyruleno==406); - case 407: /* table_reference ::= joined_table */ yytestcase(yyruleno==407); - case 411: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==411); - case 461: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==461); - case 464: /* query_primary ::= query_specification */ yytestcase(yyruleno==464); -{ yylhsminor.yy652 = yymsp[0].minor.yy652; } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 292: /* literal ::= duration_literal */ + case 302: /* signed_literal ::= signed */ yytestcase(yyruleno==302); + case 322: /* expression ::= literal */ yytestcase(yyruleno==322); + case 323: /* expression ::= pseudo_column */ yytestcase(yyruleno==323); + case 324: /* expression ::= column_reference */ yytestcase(yyruleno==324); + case 325: /* expression ::= function_expression */ yytestcase(yyruleno==325); + case 326: /* expression ::= subquery */ yytestcase(yyruleno==326); + case 353: /* function_expression ::= literal_func */ yytestcase(yyruleno==353); + case 395: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==395); + case 399: /* boolean_primary ::= predicate */ yytestcase(yyruleno==399); + case 401: /* common_expression ::= expression */ yytestcase(yyruleno==401); + case 402: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==402); + case 405: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==405); + case 407: /* table_reference ::= table_primary */ yytestcase(yyruleno==407); + case 408: /* table_reference ::= joined_table */ yytestcase(yyruleno==408); + case 412: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==412); + case 462: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==462); + case 465: /* query_primary ::= query_specification */ yytestcase(yyruleno==465); +{ yylhsminor.yy560 = yymsp[0].minor.yy560; } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 292: /* literal ::= NULL */ -{ yylhsminor.yy652 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 293: /* literal ::= NULL */ +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 293: /* literal ::= NK_QUESTION */ -{ yylhsminor.yy652 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 294: /* literal ::= NK_QUESTION */ +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 294: /* duration_literal ::= NK_VARIABLE */ -{ yylhsminor.yy652 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 295: /* duration_literal ::= NK_VARIABLE */ +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 295: /* signed ::= NK_INTEGER */ -{ yylhsminor.yy652 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 296: /* signed ::= NK_INTEGER */ +{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 296: /* signed ::= NK_PLUS NK_INTEGER */ -{ yymsp[-1].minor.yy652 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + case 297: /* signed ::= NK_PLUS NK_INTEGER */ +{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; - case 297: /* signed ::= NK_MINUS NK_INTEGER */ + case 298: /* 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.yy652 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } - yymsp[-1].minor.yy652 = yylhsminor.yy652; + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 298: /* signed ::= NK_FLOAT */ -{ yylhsminor.yy652 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 299: /* signed ::= NK_FLOAT */ +{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 299: /* signed ::= NK_PLUS NK_FLOAT */ -{ yymsp[-1].minor.yy652 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + case 300: /* signed ::= NK_PLUS NK_FLOAT */ +{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; - case 300: /* signed ::= NK_MINUS NK_FLOAT */ + case 301: /* 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.yy652 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } - yymsp[-1].minor.yy652 = yylhsminor.yy652; + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 302: /* signed_literal ::= NK_STRING */ -{ yylhsminor.yy652 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 303: /* signed_literal ::= NK_STRING */ +{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 303: /* signed_literal ::= NK_BOOL */ -{ yylhsminor.yy652 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 304: /* signed_literal ::= NK_BOOL */ +{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 304: /* signed_literal ::= TIMESTAMP NK_STRING */ -{ yymsp[-1].minor.yy652 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } + case 305: /* signed_literal ::= TIMESTAMP NK_STRING */ +{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 305: /* signed_literal ::= duration_literal */ - case 307: /* signed_literal ::= literal_func */ yytestcase(yyruleno==307); - case 372: /* star_func_para ::= expression */ yytestcase(yyruleno==372); - case 427: /* select_item ::= common_expression */ yytestcase(yyruleno==427); - case 477: /* search_condition ::= common_expression */ yytestcase(yyruleno==477); -{ yylhsminor.yy652 = releaseRawExprNode(pCxt, yymsp[0].minor.yy652); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 306: /* signed_literal ::= duration_literal */ + case 308: /* signed_literal ::= literal_func */ yytestcase(yyruleno==308); + case 373: /* star_func_para ::= expression */ yytestcase(yyruleno==373); + case 428: /* select_item ::= common_expression */ yytestcase(yyruleno==428); + case 478: /* search_condition ::= common_expression */ yytestcase(yyruleno==478); +{ yylhsminor.yy560 = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 306: /* signed_literal ::= NULL */ -{ yylhsminor.yy652 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 307: /* signed_literal ::= NULL */ +{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 326: /* expression ::= NK_LP expression NK_RP */ - case 399: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==399); -{ yylhsminor.yy652 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy652)); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 327: /* expression ::= NK_LP expression NK_RP */ + case 400: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==400); +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 327: /* expression ::= NK_PLUS expression */ + case 328: /* expression ::= NK_PLUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy652)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); } - yymsp[-1].minor.yy652 = yylhsminor.yy652; + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 328: /* expression ::= NK_MINUS expression */ + case 329: /* expression ::= NK_MINUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy652), NULL)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy560), NULL)); } - yymsp[-1].minor.yy652 = yylhsminor.yy652; + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 329: /* expression ::= expression NK_PLUS expression */ + case 330: /* expression ::= expression NK_PLUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy652); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy652), releaseRawExprNode(pCxt, yymsp[0].minor.yy652))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 330: /* expression ::= expression NK_MINUS expression */ + case 331: /* expression ::= expression NK_MINUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy652); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy652), releaseRawExprNode(pCxt, yymsp[0].minor.yy652))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 331: /* expression ::= expression NK_STAR expression */ + case 332: /* expression ::= expression NK_STAR expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy652); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy652), releaseRawExprNode(pCxt, yymsp[0].minor.yy652))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 332: /* expression ::= expression NK_SLASH expression */ + case 333: /* expression ::= expression NK_SLASH expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy652); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy652), releaseRawExprNode(pCxt, yymsp[0].minor.yy652))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 333: /* expression ::= expression NK_REM expression */ + case 334: /* expression ::= expression NK_REM expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy652); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy652), releaseRawExprNode(pCxt, yymsp[0].minor.yy652))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 334: /* expression ::= column_reference NK_ARROW NK_STRING */ + case 335: /* expression ::= column_reference NK_ARROW NK_STRING */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy652), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 335: /* expression ::= expression NK_BITAND expression */ + case 336: /* expression ::= expression NK_BITAND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy652); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy652), releaseRawExprNode(pCxt, yymsp[0].minor.yy652))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 336: /* expression ::= expression NK_BITOR expression */ + case 337: /* expression ::= expression NK_BITOR expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy652); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy652), releaseRawExprNode(pCxt, yymsp[0].minor.yy652))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 339: /* column_reference ::= column_name */ -{ yylhsminor.yy652 = createRawExprNode(pCxt, &yymsp[0].minor.yy5, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy5)); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 340: /* column_reference ::= column_name */ +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy533, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy533)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 340: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy652 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy5, &yymsp[0].minor.yy5, createColumnNode(pCxt, &yymsp[-2].minor.yy5, &yymsp[0].minor.yy5)); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 341: /* column_reference ::= table_name NK_DOT column_name */ +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy533, createColumnNode(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy533)); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 341: /* pseudo_column ::= ROWTS */ - case 342: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==342); - case 344: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==344); - case 345: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==345); - case 346: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==346); - case 347: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==347); - case 348: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==348); - case 354: /* literal_func ::= NOW */ yytestcase(yyruleno==354); -{ yylhsminor.yy652 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 342: /* pseudo_column ::= ROWTS */ + case 343: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==343); + case 345: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==345); + case 346: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==346); + case 347: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==347); + case 348: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==348); + case 349: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==349); + case 355: /* literal_func ::= NOW */ yytestcase(yyruleno==355); +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 343: /* pseudo_column ::= table_name NK_DOT TBNAME */ -{ yylhsminor.yy652 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy5, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy5)))); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 344: /* pseudo_column ::= table_name NK_DOT TBNAME */ +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy533)))); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 349: /* function_expression ::= function_name NK_LP expression_list NK_RP */ - case 350: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==350); -{ yylhsminor.yy652 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy5, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy5, yymsp[-1].minor.yy210)); } - yymsp[-3].minor.yy652 = yylhsminor.yy652; + case 350: /* function_expression ::= function_name NK_LP expression_list NK_RP */ + case 351: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==351); +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy533, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy533, yymsp[-1].minor.yy712)); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; - case 351: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ -{ yylhsminor.yy652 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy652), yymsp[-1].minor.yy552)); } - yymsp[-5].minor.yy652 = yylhsminor.yy652; + case 352: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), yymsp[-1].minor.yy196)); } + yymsp[-5].minor.yy560 = yylhsminor.yy560; break; - case 353: /* literal_func ::= noarg_func NK_LP NK_RP */ -{ yylhsminor.yy652 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy5, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy5, NULL)); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 354: /* literal_func ::= noarg_func NK_LP NK_RP */ +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy533, NULL)); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 368: /* star_func_para_list ::= NK_STAR */ -{ yylhsminor.yy210 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy210 = yylhsminor.yy210; + case 369: /* star_func_para_list ::= NK_STAR */ +{ yylhsminor.yy712 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy712 = yylhsminor.yy712; break; - case 373: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 430: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==430); -{ yylhsminor.yy652 = createColumnNode(pCxt, &yymsp[-2].minor.yy5, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 374: /* star_func_para ::= table_name NK_DOT NK_STAR */ + case 431: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==431); +{ yylhsminor.yy560 = createColumnNode(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 374: /* predicate ::= expression compare_op expression */ - case 379: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==379); + case 375: /* predicate ::= expression compare_op expression */ + case 380: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==380); { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy652); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy428, releaseRawExprNode(pCxt, yymsp[-2].minor.yy652), releaseRawExprNode(pCxt, yymsp[0].minor.yy652))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy128, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 375: /* predicate ::= expression BETWEEN expression AND expression */ + case 376: /* predicate ::= expression BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy652); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy652), releaseRawExprNode(pCxt, yymsp[-2].minor.yy652), releaseRawExprNode(pCxt, yymsp[0].minor.yy652))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy560), releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-4].minor.yy652 = yylhsminor.yy652; + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; - case 376: /* predicate ::= expression NOT BETWEEN expression AND expression */ + case 377: /* predicate ::= expression NOT BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy652); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy652), releaseRawExprNode(pCxt, yymsp[-2].minor.yy652), releaseRawExprNode(pCxt, yymsp[0].minor.yy652))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy560), releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-5].minor.yy652 = yylhsminor.yy652; + yymsp[-5].minor.yy560 = yylhsminor.yy560; break; - case 377: /* predicate ::= expression IS NULL */ + case 378: /* predicate ::= expression IS NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy652), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), NULL)); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 378: /* predicate ::= expression IS NOT NULL */ + case 379: /* predicate ::= expression IS NOT NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy652), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), NULL)); } - yymsp[-3].minor.yy652 = yylhsminor.yy652; + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; - case 380: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy428 = OP_TYPE_LOWER_THAN; } + case 381: /* compare_op ::= NK_LT */ +{ yymsp[0].minor.yy128 = OP_TYPE_LOWER_THAN; } break; - case 381: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy428 = OP_TYPE_GREATER_THAN; } + case 382: /* compare_op ::= NK_GT */ +{ yymsp[0].minor.yy128 = OP_TYPE_GREATER_THAN; } break; - case 382: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy428 = OP_TYPE_LOWER_EQUAL; } + case 383: /* compare_op ::= NK_LE */ +{ yymsp[0].minor.yy128 = OP_TYPE_LOWER_EQUAL; } break; - case 383: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy428 = OP_TYPE_GREATER_EQUAL; } + case 384: /* compare_op ::= NK_GE */ +{ yymsp[0].minor.yy128 = OP_TYPE_GREATER_EQUAL; } break; - case 384: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy428 = OP_TYPE_NOT_EQUAL; } + case 385: /* compare_op ::= NK_NE */ +{ yymsp[0].minor.yy128 = OP_TYPE_NOT_EQUAL; } break; - case 385: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy428 = OP_TYPE_EQUAL; } + case 386: /* compare_op ::= NK_EQ */ +{ yymsp[0].minor.yy128 = OP_TYPE_EQUAL; } break; - case 386: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy428 = OP_TYPE_LIKE; } + case 387: /* compare_op ::= LIKE */ +{ yymsp[0].minor.yy128 = OP_TYPE_LIKE; } break; - case 387: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy428 = OP_TYPE_NOT_LIKE; } + case 388: /* compare_op ::= NOT LIKE */ +{ yymsp[-1].minor.yy128 = OP_TYPE_NOT_LIKE; } break; - case 388: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy428 = OP_TYPE_MATCH; } + case 389: /* compare_op ::= MATCH */ +{ yymsp[0].minor.yy128 = OP_TYPE_MATCH; } break; - case 389: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy428 = OP_TYPE_NMATCH; } + case 390: /* compare_op ::= NMATCH */ +{ yymsp[0].minor.yy128 = OP_TYPE_NMATCH; } break; - case 390: /* compare_op ::= CONTAINS */ -{ yymsp[0].minor.yy428 = OP_TYPE_JSON_CONTAINS; } + case 391: /* compare_op ::= CONTAINS */ +{ yymsp[0].minor.yy128 = OP_TYPE_JSON_CONTAINS; } break; - case 391: /* in_op ::= IN */ -{ yymsp[0].minor.yy428 = OP_TYPE_IN; } + case 392: /* in_op ::= IN */ +{ yymsp[0].minor.yy128 = OP_TYPE_IN; } break; - case 392: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy428 = OP_TYPE_NOT_IN; } + case 393: /* in_op ::= NOT IN */ +{ yymsp[-1].minor.yy128 = OP_TYPE_NOT_IN; } break; - case 393: /* in_predicate_value ::= NK_LP literal_list NK_RP */ -{ yylhsminor.yy652 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy210)); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 394: /* in_predicate_value ::= NK_LP literal_list NK_RP */ +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy712)); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 395: /* boolean_value_expression ::= NOT boolean_primary */ + case 396: /* boolean_value_expression ::= NOT boolean_primary */ { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy652), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy560), NULL)); } - yymsp[-1].minor.yy652 = yylhsminor.yy652; + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 396: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 397: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy652); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy652), releaseRawExprNode(pCxt, yymsp[0].minor.yy652))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 397: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 398: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy652); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy652); - yylhsminor.yy652 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy652), releaseRawExprNode(pCxt, yymsp[0].minor.yy652))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 405: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy652 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy652, yymsp[0].minor.yy652, NULL); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 406: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +{ yylhsminor.yy560 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy560, yymsp[0].minor.yy560, NULL); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 408: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy652 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy5, &yymsp[0].minor.yy5); } - yymsp[-1].minor.yy652 = yylhsminor.yy652; + case 409: /* table_primary ::= table_name alias_opt */ +{ yylhsminor.yy560 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy533, &yymsp[0].minor.yy533); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 409: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy652 = createRealTableNode(pCxt, &yymsp[-3].minor.yy5, &yymsp[-1].minor.yy5, &yymsp[0].minor.yy5); } - yymsp[-3].minor.yy652 = yylhsminor.yy652; + case 410: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +{ yylhsminor.yy560 = createRealTableNode(pCxt, &yymsp[-3].minor.yy533, &yymsp[-1].minor.yy533, &yymsp[0].minor.yy533); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; - case 410: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy652 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy652), &yymsp[0].minor.yy5); } - yymsp[-1].minor.yy652 = yylhsminor.yy652; + case 411: /* table_primary ::= subquery alias_opt */ +{ yylhsminor.yy560 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560), &yymsp[0].minor.yy533); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 412: /* alias_opt ::= */ -{ yymsp[1].minor.yy5 = nil_token; } + case 413: /* alias_opt ::= */ +{ yymsp[1].minor.yy533 = nil_token; } break; - case 413: /* alias_opt ::= table_alias */ -{ yylhsminor.yy5 = yymsp[0].minor.yy5; } - yymsp[0].minor.yy5 = yylhsminor.yy5; + case 414: /* alias_opt ::= table_alias */ +{ yylhsminor.yy533 = yymsp[0].minor.yy533; } + yymsp[0].minor.yy533 = yylhsminor.yy533; break; - case 414: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy5 = yymsp[0].minor.yy5; } + case 415: /* alias_opt ::= AS table_alias */ +{ yymsp[-1].minor.yy533 = yymsp[0].minor.yy533; } break; - case 415: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 416: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==416); -{ yymsp[-2].minor.yy652 = yymsp[-1].minor.yy652; } + case 416: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 417: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==417); +{ yymsp[-2].minor.yy560 = yymsp[-1].minor.yy560; } break; - case 417: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -{ yylhsminor.yy652 = createJoinTableNode(pCxt, yymsp[-4].minor.yy74, yymsp[-5].minor.yy652, yymsp[-2].minor.yy652, yymsp[0].minor.yy652); } - yymsp[-5].minor.yy652 = yylhsminor.yy652; + case 418: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ +{ yylhsminor.yy560 = createJoinTableNode(pCxt, yymsp[-4].minor.yy36, yymsp[-5].minor.yy560, yymsp[-2].minor.yy560, yymsp[0].minor.yy560); } + yymsp[-5].minor.yy560 = yylhsminor.yy560; break; - case 418: /* join_type ::= */ -{ yymsp[1].minor.yy74 = JOIN_TYPE_INNER; } + case 419: /* join_type ::= */ +{ yymsp[1].minor.yy36 = JOIN_TYPE_INNER; } break; - case 419: /* join_type ::= INNER */ -{ yymsp[0].minor.yy74 = JOIN_TYPE_INNER; } + case 420: /* join_type ::= INNER */ +{ yymsp[0].minor.yy36 = JOIN_TYPE_INNER; } break; - case 420: /* query_specification ::= SELECT 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 */ + case 421: /* query_specification ::= SELECT 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[-11].minor.yy652 = createSelectStmt(pCxt, yymsp[-10].minor.yy403, yymsp[-9].minor.yy210, yymsp[-8].minor.yy652); - yymsp[-11].minor.yy652 = addWhereClause(pCxt, yymsp[-11].minor.yy652, yymsp[-7].minor.yy652); - yymsp[-11].minor.yy652 = addPartitionByClause(pCxt, yymsp[-11].minor.yy652, yymsp[-6].minor.yy210); - yymsp[-11].minor.yy652 = addWindowClauseClause(pCxt, yymsp[-11].minor.yy652, yymsp[-2].minor.yy652); - yymsp[-11].minor.yy652 = addGroupByClause(pCxt, yymsp[-11].minor.yy652, yymsp[-1].minor.yy210); - yymsp[-11].minor.yy652 = addHavingClause(pCxt, yymsp[-11].minor.yy652, yymsp[0].minor.yy652); - yymsp[-11].minor.yy652 = addRangeClause(pCxt, yymsp[-11].minor.yy652, yymsp[-5].minor.yy652); - yymsp[-11].minor.yy652 = addEveryClause(pCxt, yymsp[-11].minor.yy652, yymsp[-4].minor.yy652); - yymsp[-11].minor.yy652 = addFillClause(pCxt, yymsp[-11].minor.yy652, yymsp[-3].minor.yy652); + yymsp[-11].minor.yy560 = createSelectStmt(pCxt, yymsp[-10].minor.yy173, yymsp[-9].minor.yy712, yymsp[-8].minor.yy560); + yymsp[-11].minor.yy560 = addWhereClause(pCxt, yymsp[-11].minor.yy560, yymsp[-7].minor.yy560); + yymsp[-11].minor.yy560 = addPartitionByClause(pCxt, yymsp[-11].minor.yy560, yymsp[-6].minor.yy712); + yymsp[-11].minor.yy560 = addWindowClauseClause(pCxt, yymsp[-11].minor.yy560, yymsp[-2].minor.yy560); + yymsp[-11].minor.yy560 = addGroupByClause(pCxt, yymsp[-11].minor.yy560, yymsp[-1].minor.yy712); + yymsp[-11].minor.yy560 = addHavingClause(pCxt, yymsp[-11].minor.yy560, yymsp[0].minor.yy560); + yymsp[-11].minor.yy560 = addRangeClause(pCxt, yymsp[-11].minor.yy560, yymsp[-5].minor.yy560); + yymsp[-11].minor.yy560 = addEveryClause(pCxt, yymsp[-11].minor.yy560, yymsp[-4].minor.yy560); + yymsp[-11].minor.yy560 = addFillClause(pCxt, yymsp[-11].minor.yy560, yymsp[-3].minor.yy560); } break; - case 423: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy403 = false; } + case 424: /* set_quantifier_opt ::= ALL */ +{ yymsp[0].minor.yy173 = false; } break; - case 426: /* select_item ::= NK_STAR */ -{ yylhsminor.yy652 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy652 = yylhsminor.yy652; + case 427: /* select_item ::= NK_STAR */ +{ yylhsminor.yy560 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 428: /* select_item ::= common_expression column_alias */ -{ yylhsminor.yy652 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy652), &yymsp[0].minor.yy5); } - yymsp[-1].minor.yy652 = yylhsminor.yy652; + case 429: /* select_item ::= common_expression column_alias */ +{ yylhsminor.yy560 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560), &yymsp[0].minor.yy533); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 429: /* select_item ::= common_expression AS column_alias */ -{ yylhsminor.yy652 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy652), &yymsp[0].minor.yy5); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 430: /* select_item ::= common_expression AS column_alias */ +{ yylhsminor.yy560 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), &yymsp[0].minor.yy533); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 434: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 451: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==451); - case 467: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==467); -{ yymsp[-2].minor.yy210 = yymsp[0].minor.yy210; } + case 435: /* partition_by_clause_opt ::= PARTITION BY expression_list */ + case 452: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==452); + case 468: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==468); +{ yymsp[-2].minor.yy712 = yymsp[0].minor.yy712; } break; - case 436: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -{ yymsp[-5].minor.yy652 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy652), releaseRawExprNode(pCxt, yymsp[-1].minor.yy652)); } + case 437: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ +{ yymsp[-5].minor.yy560 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); } break; - case 437: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ -{ yymsp[-3].minor.yy652 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy652)); } + case 438: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ +{ yymsp[-3].minor.yy560 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); } break; - case 438: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy652 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy652), NULL, yymsp[-1].minor.yy652, yymsp[0].minor.yy652); } + case 439: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-5].minor.yy560 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), NULL, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } break; - case 439: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-7].minor.yy652 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy652), releaseRawExprNode(pCxt, yymsp[-3].minor.yy652), yymsp[-1].minor.yy652, yymsp[0].minor.yy652); } + case 440: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-7].minor.yy560 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy560), releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } break; - case 441: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - case 459: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==459); -{ yymsp[-3].minor.yy652 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy652); } + case 442: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + case 460: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==460); +{ yymsp[-3].minor.yy560 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy560); } break; - case 443: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy652 = createFillNode(pCxt, yymsp[-1].minor.yy270, NULL); } + case 444: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +{ yymsp[-3].minor.yy560 = createFillNode(pCxt, yymsp[-1].minor.yy18, NULL); } break; - case 444: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ -{ yymsp[-5].minor.yy652 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy210)); } + case 445: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ +{ yymsp[-5].minor.yy560 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy712)); } break; - case 445: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy270 = FILL_MODE_NONE; } + case 446: /* fill_mode ::= NONE */ +{ yymsp[0].minor.yy18 = FILL_MODE_NONE; } break; - case 446: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy270 = FILL_MODE_PREV; } + case 447: /* fill_mode ::= PREV */ +{ yymsp[0].minor.yy18 = FILL_MODE_PREV; } break; - case 447: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy270 = FILL_MODE_NULL; } + case 448: /* fill_mode ::= NULL */ +{ yymsp[0].minor.yy18 = FILL_MODE_NULL; } break; - case 448: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy270 = FILL_MODE_LINEAR; } + case 449: /* fill_mode ::= LINEAR */ +{ yymsp[0].minor.yy18 = FILL_MODE_LINEAR; } break; - case 449: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy270 = FILL_MODE_NEXT; } + case 450: /* fill_mode ::= NEXT */ +{ yymsp[0].minor.yy18 = FILL_MODE_NEXT; } break; - case 452: /* group_by_list ::= expression */ -{ yylhsminor.yy210 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy652))); } - yymsp[0].minor.yy210 = yylhsminor.yy210; + case 453: /* group_by_list ::= expression */ +{ yylhsminor.yy712 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } + yymsp[0].minor.yy712 = yylhsminor.yy712; break; - case 453: /* group_by_list ::= group_by_list NK_COMMA expression */ -{ yylhsminor.yy210 = addNodeToList(pCxt, yymsp[-2].minor.yy210, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy652))); } - yymsp[-2].minor.yy210 = yylhsminor.yy210; + case 454: /* group_by_list ::= group_by_list NK_COMMA expression */ +{ yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-2].minor.yy712, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } + yymsp[-2].minor.yy712 = yylhsminor.yy712; break; - case 457: /* range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ -{ yymsp[-5].minor.yy652 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy652), releaseRawExprNode(pCxt, yymsp[-1].minor.yy652)); } + case 458: /* range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ +{ yymsp[-5].minor.yy560 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); } break; - case 460: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 461: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { - yylhsminor.yy652 = addOrderByClause(pCxt, yymsp[-3].minor.yy652, yymsp[-2].minor.yy210); - yylhsminor.yy652 = addSlimitClause(pCxt, yylhsminor.yy652, yymsp[-1].minor.yy652); - yylhsminor.yy652 = addLimitClause(pCxt, yylhsminor.yy652, yymsp[0].minor.yy652); + yylhsminor.yy560 = addOrderByClause(pCxt, yymsp[-3].minor.yy560, yymsp[-2].minor.yy712); + yylhsminor.yy560 = addSlimitClause(pCxt, yylhsminor.yy560, yymsp[-1].minor.yy560); + yylhsminor.yy560 = addLimitClause(pCxt, yylhsminor.yy560, yymsp[0].minor.yy560); } - yymsp[-3].minor.yy652 = yylhsminor.yy652; + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; - case 462: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ -{ yylhsminor.yy652 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy652, yymsp[0].minor.yy652); } - yymsp[-3].minor.yy652 = yylhsminor.yy652; + case 463: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ +{ yylhsminor.yy560 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy560, yymsp[0].minor.yy560); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; - case 463: /* query_expression_body ::= query_expression_body UNION query_expression_body */ -{ yylhsminor.yy652 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy652, yymsp[0].minor.yy652); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 464: /* query_expression_body ::= query_expression_body UNION query_expression_body */ +{ yylhsminor.yy560 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy560, yymsp[0].minor.yy560); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 465: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ + case 466: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ { - yymsp[-5].minor.yy652 = addOrderByClause(pCxt, yymsp[-4].minor.yy652, yymsp[-3].minor.yy210); - yymsp[-5].minor.yy652 = addSlimitClause(pCxt, yymsp[-5].minor.yy652, yymsp[-2].minor.yy652); - yymsp[-5].minor.yy652 = addLimitClause(pCxt, yymsp[-5].minor.yy652, yymsp[-1].minor.yy652); + yymsp[-5].minor.yy560 = addOrderByClause(pCxt, yymsp[-4].minor.yy560, yymsp[-3].minor.yy712); + yymsp[-5].minor.yy560 = addSlimitClause(pCxt, yymsp[-5].minor.yy560, yymsp[-2].minor.yy560); + yymsp[-5].minor.yy560 = addLimitClause(pCxt, yymsp[-5].minor.yy560, yymsp[-1].minor.yy560); } break; - case 469: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 473: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==473); -{ yymsp[-1].minor.yy652 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 470: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 474: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==474); +{ yymsp[-1].minor.yy560 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 470: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 474: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==474); -{ yymsp[-3].minor.yy652 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 471: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 475: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==475); +{ yymsp[-3].minor.yy560 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 471: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 475: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==475); -{ yymsp[-3].minor.yy652 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 472: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 476: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==476); +{ yymsp[-3].minor.yy560 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 476: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy652 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy652); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 477: /* subquery ::= NK_LP query_expression NK_RP */ +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy560); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 480: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy652 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy652), yymsp[-1].minor.yy553, yymsp[0].minor.yy477); } - yymsp[-2].minor.yy652 = yylhsminor.yy652; + case 481: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ +{ yylhsminor.yy560 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), yymsp[-1].minor.yy218, yymsp[0].minor.yy109); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 481: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy553 = ORDER_ASC; } + case 482: /* ordering_specification_opt ::= */ +{ yymsp[1].minor.yy218 = ORDER_ASC; } break; - case 482: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy553 = ORDER_ASC; } + case 483: /* ordering_specification_opt ::= ASC */ +{ yymsp[0].minor.yy218 = ORDER_ASC; } break; - case 483: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy553 = ORDER_DESC; } + case 484: /* ordering_specification_opt ::= DESC */ +{ yymsp[0].minor.yy218 = ORDER_DESC; } break; - case 484: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy477 = NULL_ORDER_DEFAULT; } + case 485: /* null_ordering_opt ::= */ +{ yymsp[1].minor.yy109 = NULL_ORDER_DEFAULT; } break; - case 485: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy477 = NULL_ORDER_FIRST; } + case 486: /* null_ordering_opt ::= NULLS FIRST */ +{ yymsp[-1].minor.yy109 = NULL_ORDER_FIRST; } break; - case 486: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy477 = NULL_ORDER_LAST; } + case 487: /* null_ordering_opt ::= NULLS LAST */ +{ yymsp[-1].minor.yy109 = NULL_ORDER_LAST; } break; default: break; diff --git a/source/libs/parser/test/parShowToUse.cpp b/source/libs/parser/test/parShowToUse.cpp index e109781169..eecb291554 100644 --- a/source/libs/parser/test/parShowToUse.cpp +++ b/source/libs/parser/test/parShowToUse.cpp @@ -222,6 +222,25 @@ TEST_F(ParserShowToUseTest, splitVgroup) { run("SPLIT VGROUP 15"); } +TEST_F(ParserShowToUseTest, trimDatabase) { + useDb("root", "test"); + + STrimDbReq expect = {0}; + + auto setTrimDbReq = [&](const char* pDb) { snprintf(expect.db, sizeof(expect.db), "0.%s", pDb); }; + + setCheckDdlFunc([&](const SQuery* pQuery, ParserStage stage) { + ASSERT_EQ(nodeType(pQuery->pRoot), QUERY_NODE_TRIM_DATABASE_STMT); + ASSERT_EQ(pQuery->pCmdMsg->msgType, TDMT_MND_TRIM_DB); + STrimDbReq req = {0}; + ASSERT_EQ(tDeserializeSTrimDbReq(pQuery->pCmdMsg->pMsg, pQuery->pCmdMsg->msgLen, &req), TSDB_CODE_SUCCESS); + ASSERT_EQ(std::string(req.db), std::string(expect.db)); + }); + + setTrimDbReq("wxy_db"); + run("TRIM DATABASE wxy_db"); +} + TEST_F(ParserShowToUseTest, useDatabase) { useDb("root", "test");