From a6b5dd8ef04eec7453fe9cbd036fccafd32d1617 Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Sat, 9 Apr 2022 14:57:28 +0800 Subject: [PATCH] create/drop/show bnode/snode/mnode frontend implement --- include/common/ttokendef.h | 321 +- include/libs/nodes/cmdnodes.h | 8 +- include/libs/nodes/nodes.h | 8 + include/util/tdef.h | 2 + source/libs/nodes/src/nodesCloneFuncs.c | 1 - source/libs/nodes/src/nodesCodeFuncs.c | 49 +- source/libs/nodes/src/nodesUtilFuncs.c | 33 +- source/libs/parser/inc/parAst.h | 4 +- source/libs/parser/inc/sql.y | 18 +- source/libs/parser/src/parAstCreater.c | 8 +- source/libs/parser/src/parTokenizer.c | 5 + source/libs/parser/src/parTranslater.c | 56 +- source/libs/parser/src/sql.c | 4907 +++++++++++---------- source/libs/parser/test/parserAstTest.cpp | 42 + source/libs/planner/test/plannerTest.cpp | 10 + 15 files changed, 2844 insertions(+), 2628 deletions(-) diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 92f4f0a4fb..3eb43c35e1 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -59,164 +59,169 @@ #define TK_LOCAL 41 #define TK_QNODE 42 #define TK_ON 43 -#define TK_DATABASE 44 -#define TK_USE 45 -#define TK_IF 46 -#define TK_NOT 47 -#define TK_EXISTS 48 -#define TK_BLOCKS 49 -#define TK_CACHE 50 -#define TK_CACHELAST 51 -#define TK_COMP 52 -#define TK_DAYS 53 -#define TK_NK_VARIABLE 54 -#define TK_FSYNC 55 -#define TK_MAXROWS 56 -#define TK_MINROWS 57 -#define TK_KEEP 58 -#define TK_PRECISION 59 -#define TK_QUORUM 60 -#define TK_REPLICA 61 -#define TK_TTL 62 -#define TK_WAL 63 -#define TK_VGROUPS 64 -#define TK_SINGLE_STABLE 65 -#define TK_STREAM_MODE 66 -#define TK_RETENTIONS 67 -#define TK_NK_COMMA 68 -#define TK_NK_COLON 69 -#define TK_TABLE 70 -#define TK_NK_LP 71 -#define TK_NK_RP 72 -#define TK_STABLE 73 -#define TK_ADD 74 -#define TK_COLUMN 75 -#define TK_MODIFY 76 -#define TK_RENAME 77 -#define TK_TAG 78 -#define TK_SET 79 -#define TK_NK_EQ 80 -#define TK_USING 81 -#define TK_TAGS 82 -#define TK_NK_DOT 83 -#define TK_COMMENT 84 -#define TK_BOOL 85 -#define TK_TINYINT 86 -#define TK_SMALLINT 87 -#define TK_INT 88 -#define TK_INTEGER 89 -#define TK_BIGINT 90 -#define TK_FLOAT 91 -#define TK_DOUBLE 92 -#define TK_BINARY 93 -#define TK_TIMESTAMP 94 -#define TK_NCHAR 95 -#define TK_UNSIGNED 96 -#define TK_JSON 97 -#define TK_VARCHAR 98 -#define TK_MEDIUMBLOB 99 -#define TK_BLOB 100 -#define TK_VARBINARY 101 -#define TK_DECIMAL 102 -#define TK_SMA 103 -#define TK_ROLLUP 104 -#define TK_FILE_FACTOR 105 -#define TK_NK_FLOAT 106 -#define TK_DELAY 107 -#define TK_SHOW 108 -#define TK_DATABASES 109 -#define TK_TABLES 110 -#define TK_STABLES 111 -#define TK_MNODES 112 -#define TK_MODULES 113 -#define TK_QNODES 114 -#define TK_FUNCTIONS 115 -#define TK_INDEXES 116 -#define TK_FROM 117 -#define TK_ACCOUNTS 118 -#define TK_APPS 119 -#define TK_CONNECTIONS 120 -#define TK_LICENCE 121 -#define TK_QUERIES 122 -#define TK_SCORES 123 -#define TK_TOPICS 124 -#define TK_VARIABLES 125 -#define TK_LIKE 126 -#define TK_INDEX 127 -#define TK_FULLTEXT 128 -#define TK_FUNCTION 129 -#define TK_INTERVAL 130 -#define TK_TOPIC 131 -#define TK_AS 132 -#define TK_DESC 133 -#define TK_DESCRIBE 134 -#define TK_RESET 135 -#define TK_QUERY 136 -#define TK_EXPLAIN 137 -#define TK_ANALYZE 138 -#define TK_VERBOSE 139 -#define TK_NK_BOOL 140 -#define TK_RATIO 141 -#define TK_COMPACT 142 -#define TK_VNODES 143 -#define TK_IN 144 -#define TK_OUTPUTTYPE 145 -#define TK_AGGREGATE 146 -#define TK_BUFSIZE 147 -#define TK_STREAM 148 -#define TK_INTO 149 -#define TK_KILL 150 -#define TK_CONNECTION 151 -#define TK_MERGE 152 -#define TK_VGROUP 153 -#define TK_REDISTRIBUTE 154 -#define TK_SPLIT 155 -#define TK_SYNCDB 156 -#define TK_NULL 157 -#define TK_FIRST 158 -#define TK_LAST 159 -#define TK_NOW 160 -#define TK_ROWTS 161 -#define TK_TBNAME 162 -#define TK_QSTARTTS 163 -#define TK_QENDTS 164 -#define TK_WSTARTTS 165 -#define TK_WENDTS 166 -#define TK_WDURATION 167 -#define TK_BETWEEN 168 -#define TK_IS 169 -#define TK_NK_LT 170 -#define TK_NK_GT 171 -#define TK_NK_LE 172 -#define TK_NK_GE 173 -#define TK_NK_NE 174 -#define TK_MATCH 175 -#define TK_NMATCH 176 -#define TK_JOIN 177 -#define TK_INNER 178 -#define TK_SELECT 179 -#define TK_DISTINCT 180 -#define TK_WHERE 181 -#define TK_PARTITION 182 -#define TK_BY 183 -#define TK_SESSION 184 -#define TK_STATE_WINDOW 185 -#define TK_SLIDING 186 -#define TK_FILL 187 -#define TK_VALUE 188 -#define TK_NONE 189 -#define TK_PREV 190 -#define TK_LINEAR 191 -#define TK_NEXT 192 -#define TK_GROUP 193 -#define TK_HAVING 194 -#define TK_ORDER 195 -#define TK_SLIMIT 196 -#define TK_SOFFSET 197 -#define TK_LIMIT 198 -#define TK_OFFSET 199 -#define TK_ASC 200 -#define TK_NULLS 201 +#define TK_BNODE 44 +#define TK_SNODE 45 +#define TK_MNODE 46 +#define TK_DATABASE 47 +#define TK_USE 48 +#define TK_IF 49 +#define TK_NOT 50 +#define TK_EXISTS 51 +#define TK_BLOCKS 52 +#define TK_CACHE 53 +#define TK_CACHELAST 54 +#define TK_COMP 55 +#define TK_DAYS 56 +#define TK_NK_VARIABLE 57 +#define TK_FSYNC 58 +#define TK_MAXROWS 59 +#define TK_MINROWS 60 +#define TK_KEEP 61 +#define TK_PRECISION 62 +#define TK_QUORUM 63 +#define TK_REPLICA 64 +#define TK_TTL 65 +#define TK_WAL 66 +#define TK_VGROUPS 67 +#define TK_SINGLE_STABLE 68 +#define TK_STREAM_MODE 69 +#define TK_RETENTIONS 70 +#define TK_NK_COMMA 71 +#define TK_NK_COLON 72 +#define TK_TABLE 73 +#define TK_NK_LP 74 +#define TK_NK_RP 75 +#define TK_STABLE 76 +#define TK_ADD 77 +#define TK_COLUMN 78 +#define TK_MODIFY 79 +#define TK_RENAME 80 +#define TK_TAG 81 +#define TK_SET 82 +#define TK_NK_EQ 83 +#define TK_USING 84 +#define TK_TAGS 85 +#define TK_NK_DOT 86 +#define TK_COMMENT 87 +#define TK_BOOL 88 +#define TK_TINYINT 89 +#define TK_SMALLINT 90 +#define TK_INT 91 +#define TK_INTEGER 92 +#define TK_BIGINT 93 +#define TK_FLOAT 94 +#define TK_DOUBLE 95 +#define TK_BINARY 96 +#define TK_TIMESTAMP 97 +#define TK_NCHAR 98 +#define TK_UNSIGNED 99 +#define TK_JSON 100 +#define TK_VARCHAR 101 +#define TK_MEDIUMBLOB 102 +#define TK_BLOB 103 +#define TK_VARBINARY 104 +#define TK_DECIMAL 105 +#define TK_SMA 106 +#define TK_ROLLUP 107 +#define TK_FILE_FACTOR 108 +#define TK_NK_FLOAT 109 +#define TK_DELAY 110 +#define TK_SHOW 111 +#define TK_DATABASES 112 +#define TK_TABLES 113 +#define TK_STABLES 114 +#define TK_MNODES 115 +#define TK_MODULES 116 +#define TK_QNODES 117 +#define TK_FUNCTIONS 118 +#define TK_INDEXES 119 +#define TK_FROM 120 +#define TK_ACCOUNTS 121 +#define TK_APPS 122 +#define TK_CONNECTIONS 123 +#define TK_LICENCE 124 +#define TK_QUERIES 125 +#define TK_SCORES 126 +#define TK_TOPICS 127 +#define TK_VARIABLES 128 +#define TK_BNODES 129 +#define TK_SNODES 130 +#define TK_LIKE 131 +#define TK_INDEX 132 +#define TK_FULLTEXT 133 +#define TK_FUNCTION 134 +#define TK_INTERVAL 135 +#define TK_TOPIC 136 +#define TK_AS 137 +#define TK_DESC 138 +#define TK_DESCRIBE 139 +#define TK_RESET 140 +#define TK_QUERY 141 +#define TK_EXPLAIN 142 +#define TK_ANALYZE 143 +#define TK_VERBOSE 144 +#define TK_NK_BOOL 145 +#define TK_RATIO 146 +#define TK_COMPACT 147 +#define TK_VNODES 148 +#define TK_IN 149 +#define TK_OUTPUTTYPE 150 +#define TK_AGGREGATE 151 +#define TK_BUFSIZE 152 +#define TK_STREAM 153 +#define TK_INTO 154 +#define TK_KILL 155 +#define TK_CONNECTION 156 +#define TK_MERGE 157 +#define TK_VGROUP 158 +#define TK_REDISTRIBUTE 159 +#define TK_SPLIT 160 +#define TK_SYNCDB 161 +#define TK_NULL 162 +#define TK_FIRST 163 +#define TK_LAST 164 +#define TK_NOW 165 +#define TK_ROWTS 166 +#define TK_TBNAME 167 +#define TK_QSTARTTS 168 +#define TK_QENDTS 169 +#define TK_WSTARTTS 170 +#define TK_WENDTS 171 +#define TK_WDURATION 172 +#define TK_BETWEEN 173 +#define TK_IS 174 +#define TK_NK_LT 175 +#define TK_NK_GT 176 +#define TK_NK_LE 177 +#define TK_NK_GE 178 +#define TK_NK_NE 179 +#define TK_MATCH 180 +#define TK_NMATCH 181 +#define TK_JOIN 182 +#define TK_INNER 183 +#define TK_SELECT 184 +#define TK_DISTINCT 185 +#define TK_WHERE 186 +#define TK_PARTITION 187 +#define TK_BY 188 +#define TK_SESSION 189 +#define TK_STATE_WINDOW 190 +#define TK_SLIDING 191 +#define TK_FILL 192 +#define TK_VALUE 193 +#define TK_NONE 194 +#define TK_PREV 195 +#define TK_LINEAR 196 +#define TK_NEXT 197 +#define TK_GROUP 198 +#define TK_HAVING 199 +#define TK_ORDER 200 +#define TK_SLIMIT 201 +#define TK_SOFFSET 202 +#define TK_LIMIT 203 +#define TK_OFFSET 204 +#define TK_ASC 205 +#define TK_NULLS 206 #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 5acb11fc4f..7d0d0137ec 100644 --- a/include/libs/nodes/cmdnodes.h +++ b/include/libs/nodes/cmdnodes.h @@ -230,15 +230,15 @@ typedef struct SDropIndexStmt { char tableName[TSDB_TABLE_NAME_LEN]; } SDropIndexStmt; -typedef struct SCreateQnodeStmt { +typedef struct SCreateComponentNodeStmt { ENodeType type; int32_t dnodeId; -} SCreateQnodeStmt; +} SCreateComponentNodeStmt; -typedef struct SDropQnodeStmt { +typedef struct SDropComponentNodeStmt { ENodeType type; int32_t dnodeId; -} SDropQnodeStmt; +} SDropComponentNodeStmt; typedef struct SCreateTopicStmt { ENodeType type; diff --git a/include/libs/nodes/nodes.h b/include/libs/nodes/nodes.h index 39448ceef3..c91779ba8b 100644 --- a/include/libs/nodes/nodes.h +++ b/include/libs/nodes/nodes.h @@ -105,6 +105,12 @@ typedef enum ENodeType { QUERY_NODE_DROP_INDEX_STMT, QUERY_NODE_CREATE_QNODE_STMT, QUERY_NODE_DROP_QNODE_STMT, + QUERY_NODE_CREATE_BNODE_STMT, + QUERY_NODE_DROP_BNODE_STMT, + QUERY_NODE_CREATE_SNODE_STMT, + QUERY_NODE_DROP_SNODE_STMT, + QUERY_NODE_CREATE_MNODE_STMT, + QUERY_NODE_DROP_MNODE_STMT, QUERY_NODE_CREATE_TOPIC_STMT, QUERY_NODE_DROP_TOPIC_STMT, QUERY_NODE_ALTER_LOCAL_STMT, @@ -142,6 +148,8 @@ typedef enum ENodeType { QUERY_NODE_SHOW_SCORES_STMT, QUERY_NODE_SHOW_TOPICS_STMT, QUERY_NODE_SHOW_VARIABLE_STMT, + QUERY_NODE_SHOW_BNODES_STMT, + QUERY_NODE_SHOW_SNODES_STMT, QUERY_NODE_KILL_CONNECTION_STMT, QUERY_NODE_KILL_QUERY_STMT, diff --git a/include/util/tdef.h b/include/util/tdef.h index 2a634e2327..7db5fa8e6b 100644 --- a/include/util/tdef.h +++ b/include/util/tdef.h @@ -108,6 +108,8 @@ extern const int32_t TYPE_BYTES[15]; #define TSDB_INS_TABLE_USER_TABLE_DISTRIBUTED "user_table_distributed" #define TSDB_INS_TABLE_USER_USERS "user_users" #define TSDB_INS_TABLE_VGROUPS "vgroups" +#define TSDB_INS_TABLE_BNODES "bnodes" +#define TSDB_INS_TABLE_SNODES "snodes" #define TSDB_INS_USER_STABLES_DBNAME_COLID 2 diff --git a/source/libs/nodes/src/nodesCloneFuncs.c b/source/libs/nodes/src/nodesCloneFuncs.c index 12fe645473..fe3b7cb8a0 100644 --- a/source/libs/nodes/src/nodesCloneFuncs.c +++ b/source/libs/nodes/src/nodesCloneFuncs.c @@ -106,7 +106,6 @@ static SNode* columnNodeCopy(const SColumnNode* pSrc, SColumnNode* pDst) { COPY_CHAR_ARRAY_FIELD(tableName); COPY_CHAR_ARRAY_FIELD(tableAlias); COPY_CHAR_ARRAY_FIELD(colName); - // CLONE_NODE_FIELD(pProjectRef); COPY_SCALAR_FIELD(dataBlockId); COPY_SCALAR_FIELD(slotId); return (SNode*)pDst; diff --git a/source/libs/nodes/src/nodesCodeFuncs.c b/source/libs/nodes/src/nodesCodeFuncs.c index 8f90670d13..7f91aeb16f 100644 --- a/source/libs/nodes/src/nodesCodeFuncs.c +++ b/source/libs/nodes/src/nodesCodeFuncs.c @@ -170,6 +170,10 @@ const char* nodesNodeName(ENodeType type) { return "LogicExchange"; case QUERY_NODE_LOGIC_PLAN_WINDOW: return "LogicWindow"; + case QUERY_NODE_LOGIC_PLAN_SORT: + return "LogicSort"; + case QUERY_NODE_LOGIC_PLAN_PARTITION: + return "LogicPartition"; case QUERY_NODE_LOGIC_SUBPLAN: return "LogicSubplan"; case QUERY_NODE_LOGIC_PLAN: @@ -530,6 +534,30 @@ static int32_t jsonToLogicProjectNode(const SJson* pJson, void* pObj) { return code; } +static const char* jkSortLogicPlanSortKeys = "SortKeys"; + +static int32_t logicSortNodeToJson(const void* pObj, SJson* pJson) { + const SSortLogicNode* pNode = (const SSortLogicNode*)pObj; + + int32_t code = logicPlanNodeToJson(pObj, pJson); + if (TSDB_CODE_SUCCESS == code) { + code = nodeListToJson(pJson, jkSortLogicPlanSortKeys, pNode->pSortKeys); + } + + return code; +} + +static int32_t jsonToLogicSortNode(const SJson* pJson, void* pObj) { + SSortLogicNode* pNode = (SSortLogicNode*)pObj; + + int32_t code = jsonToLogicPlanNode(pJson, pObj); + if (TSDB_CODE_SUCCESS == code) { + code = jsonToNodeList(pJson, jkSortLogicPlanSortKeys, &pNode->pSortKeys); + } + + return code; +} + static const char* jkJoinLogicPlanJoinType = "JoinType"; static const char* jkJoinLogicPlanOnConditions = "OnConditions"; @@ -2468,6 +2496,9 @@ static int32_t specificNodeToJson(const void* pObj, SJson* pJson) { case QUERY_NODE_LOGIC_PLAN_PROJECT: return logicProjectNodeToJson(pObj, pJson); case QUERY_NODE_LOGIC_PLAN_VNODE_MODIF: + break; + case QUERY_NODE_LOGIC_PLAN_SORT: + return logicSortNodeToJson(pObj, pJson); case QUERY_NODE_LOGIC_SUBPLAN: case QUERY_NODE_LOGIC_PLAN: break; @@ -2527,16 +2558,8 @@ static int32_t jsonToSpecificNode(const SJson* pJson, void* pObj) { return jsonToFunctionNode(pJson, pObj); case QUERY_NODE_REAL_TABLE: return jsonToRealTableNode(pJson, pObj); - // case QUERY_NODE_TEMP_TABLE: - // case QUERY_NODE_JOIN_TABLE: - // break; - // case QUERY_NODE_GROUPING_SET: - // return jsonToGroupingSetNode(pJson, pObj); case QUERY_NODE_ORDER_BY_EXPR: return jsonToOrderByExprNode(pJson, pObj); - // case QUERY_NODE_LIMIT: - // case QUERY_NODE_STATE_WINDOW: - // case QUERY_NODE_SESSION_WINDOW: case QUERY_NODE_INTERVAL_WINDOW: return jsonToIntervalWindowNode(pJson, pObj); case QUERY_NODE_NODE_LIST: @@ -2545,28 +2568,22 @@ static int32_t jsonToSpecificNode(const SJson* pJson, void* pObj) { return jsonToFillNode(pJson, pObj); case QUERY_NODE_TARGET: return jsonToTargetNode(pJson, pObj); - // case QUERY_NODE_RAW_EXPR: - // break; case QUERY_NODE_DATABLOCK_DESC: return jsonToDataBlockDescNode(pJson, pObj); case QUERY_NODE_SLOT_DESC: return jsonToSlotDescNode(pJson, pObj); case QUERY_NODE_DOWNSTREAM_SOURCE: return jsonToDownstreamSourceNode(pJson, pObj); - // case QUERY_NODE_SET_OPERATOR: - // break; case QUERY_NODE_SELECT_STMT: return jsonToSelectStmt(pJson, pObj); case QUERY_NODE_CREATE_TOPIC_STMT: return jsonToCreateTopicStmt(pJson, pObj); case QUERY_NODE_LOGIC_PLAN_SCAN: return jsonToLogicScanNode(pJson, pObj); - // case QUERY_NODE_LOGIC_PLAN_JOIN: - // return jsonToLogicJoinNode(pJson, pObj); - // case QUERY_NODE_LOGIC_PLAN_AGG: - // return jsonToLogicAggNode(pJson, pObj); case QUERY_NODE_LOGIC_PLAN_PROJECT: return jsonToLogicProjectNode(pJson, pObj); + case QUERY_NODE_LOGIC_PLAN_SORT: + return jsonToLogicSortNode(pJson, pObj); case QUERY_NODE_PHYSICAL_PLAN_TAG_SCAN: return jsonToPhysiTagScanNode(pJson, pObj); case QUERY_NODE_PHYSICAL_PLAN_TABLE_SCAN: diff --git a/source/libs/nodes/src/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c index 074ec4dcae..fb96f84d8a 100644 --- a/source/libs/nodes/src/nodesUtilFuncs.c +++ b/source/libs/nodes/src/nodesUtilFuncs.c @@ -127,9 +127,15 @@ SNodeptr nodesMakeNode(ENodeType type) { case QUERY_NODE_DROP_INDEX_STMT: return makeNode(type, sizeof(SDropIndexStmt)); case QUERY_NODE_CREATE_QNODE_STMT: - return makeNode(type, sizeof(SCreateQnodeStmt)); + case QUERY_NODE_CREATE_BNODE_STMT: + case QUERY_NODE_CREATE_SNODE_STMT: + case QUERY_NODE_CREATE_MNODE_STMT: + return makeNode(type, sizeof(SCreateComponentNodeStmt)); case QUERY_NODE_DROP_QNODE_STMT: - return makeNode(type, sizeof(SDropQnodeStmt)); + case QUERY_NODE_DROP_BNODE_STMT: + case QUERY_NODE_DROP_SNODE_STMT: + case QUERY_NODE_DROP_MNODE_STMT: + return makeNode(type, sizeof(SDropComponentNodeStmt)); case QUERY_NODE_CREATE_TOPIC_STMT: return makeNode(type, sizeof(SCreateTopicStmt)); case QUERY_NODE_DROP_TOPIC_STMT: @@ -991,12 +997,18 @@ typedef struct SCollectColumnsCxt { int32_t errCode; const char* pTableAlias; SNodeList* pCols; - SHashObj* pColIdHash; + SHashObj* pColHash; } SCollectColumnsCxt; -static EDealRes doCollect(SCollectColumnsCxt* pCxt, int32_t id, SNode* pNode) { - if (NULL == taosHashGet(pCxt->pColIdHash, &id, sizeof(id))) { - pCxt->errCode = taosHashPut(pCxt->pColIdHash, &id, sizeof(id), NULL, 0); +static EDealRes doCollect(SCollectColumnsCxt* pCxt, SColumnNode* pCol, SNode* pNode) { + char name[TSDB_TABLE_NAME_LEN + TSDB_COL_NAME_LEN]; + int32_t len = 0; + if ('\0' == pCol->tableAlias[0]) { + len = sprintf(name, "%s", pCol->colName); + } + len = sprintf(name, "%s.%s", pCol->tableAlias, pCol->colName); + if (NULL == taosHashGet(pCxt->pColHash, name, len)) { + pCxt->errCode = taosHashPut(pCxt->pColHash, name, len, NULL, 0); if (TSDB_CODE_SUCCESS == pCxt->errCode) { pCxt->errCode = nodesListAppend(pCxt->pCols, pNode); } @@ -1009,9 +1021,8 @@ static EDealRes collectColumns(SNode* pNode, void* pContext) { SCollectColumnsCxt* pCxt = (SCollectColumnsCxt*)pContext; if (QUERY_NODE_COLUMN == nodeType(pNode)) { SColumnNode* pCol = (SColumnNode*)pNode; - int32_t colId = pCol->colId; if (NULL == pCxt->pTableAlias || 0 == strcmp(pCxt->pTableAlias, pCol->tableAlias)) { - return doCollect(pCxt, colId, pNode); + return doCollect(pCxt, pCol, pNode); } } return DEAL_RES_CONTINUE; @@ -1026,14 +1037,14 @@ int32_t nodesCollectColumns(SSelectStmt* pSelect, ESqlClause clause, const char* .errCode = TSDB_CODE_SUCCESS, .pTableAlias = pTableAlias, .pCols = nodesMakeList(), - .pColIdHash = taosHashInit(128, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BIGINT), true, HASH_NO_LOCK) + .pColHash = taosHashInit(128, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BINARY), true, HASH_NO_LOCK) }; - if (NULL == cxt.pCols || NULL == cxt.pColIdHash) { + if (NULL == cxt.pCols || NULL == cxt.pColHash) { return TSDB_CODE_OUT_OF_MEMORY; } nodesWalkSelectStmt(pSelect, clause, collectColumns, &cxt); - taosHashCleanup(cxt.pColIdHash); + taosHashCleanup(cxt.pColHash); if (TSDB_CODE_SUCCESS != cxt.errCode) { nodesClearList(cxt.pCols); return cxt.errCode; diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index 2ac7dbe8e3..609eb1c84e 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -150,8 +150,8 @@ SNode* createAlterDnodeStmt(SAstCreateContext* pCxt, const SToken* pDnode, const SNode* createCreateIndexStmt(SAstCreateContext* pCxt, EIndexType type, bool ignoreExists, SToken* pIndexName, SToken* pTableName, SNodeList* pCols, SNode* pOptions); SNode* createIndexOption(SAstCreateContext* pCxt, SNodeList* pFuncs, SNode* pInterval, SNode* pOffset, SNode* pSliding); SNode* createDropIndexStmt(SAstCreateContext* pCxt, bool ignoreNotExists, SToken* pIndexName, SToken* pTableName); -SNode* createCreateQnodeStmt(SAstCreateContext* pCxt, const SToken* pDnodeId); -SNode* createDropQnodeStmt(SAstCreateContext* pCxt, const SToken* pDnodeId); +SNode* createCreateComponentNodeStmt(SAstCreateContext* pCxt, ENodeType type, const SToken* pDnodeId); +SNode* createDropComponentNodeStmt(SAstCreateContext* pCxt, ENodeType type, const SToken* pDnodeId); SNode* createCreateTopicStmt(SAstCreateContext* pCxt, bool ignoreExists, const SToken* pTopicName, SNode* pQuery, const SToken* pSubscribeDbName); SNode* createDropTopicStmt(SAstCreateContext* pCxt, bool ignoreNotExists, const SToken* pTopicName); SNode* createAlterLocalStmt(SAstCreateContext* pCxt, const SToken* pConfig, const SToken* pValue); diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 6e6a769db7..bcedd97ec9 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -109,8 +109,20 @@ cmd ::= ALTER LOCAL NK_STRING(A). cmd ::= ALTER LOCAL NK_STRING(A) NK_STRING(B). { pCxt->pRootNode = createAlterLocalStmt(pCxt, &A, &B); } /************************************************ create/drop qnode ***************************************************/ -cmd ::= CREATE QNODE ON DNODE NK_INTEGER(A). { pCxt->pRootNode = createCreateQnodeStmt(pCxt, &A); } -cmd ::= DROP QNODE ON DNODE NK_INTEGER(A). { pCxt->pRootNode = createDropQnodeStmt(pCxt, &A); } +cmd ::= CREATE QNODE ON DNODE NK_INTEGER(A). { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &A); } +cmd ::= DROP QNODE ON DNODE NK_INTEGER(A). { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &A); } + +/************************************************ create/drop bnode ***************************************************/ +cmd ::= CREATE BNODE ON DNODE NK_INTEGER(A). { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &A); } +cmd ::= DROP BNODE ON DNODE NK_INTEGER(A). { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &A); } + +/************************************************ create/drop snode ***************************************************/ +cmd ::= CREATE SNODE ON DNODE NK_INTEGER(A). { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &A); } +cmd ::= DROP SNODE ON DNODE NK_INTEGER(A). { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &A); } + +/************************************************ create/drop mnode ***************************************************/ +cmd ::= CREATE MNODE ON DNODE NK_INTEGER(A). { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &A); } +cmd ::= DROP MNODE ON DNODE NK_INTEGER(A). { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &A); } /************************************************ create/drop/show/use database ***************************************/ cmd ::= CREATE DATABASE not_exists_opt(A) db_name(B) db_options(C). { pCxt->pRootNode = createCreateDatabaseStmt(pCxt, A, &B, C); } @@ -327,6 +339,8 @@ cmd ::= SHOW QUERIES. cmd ::= SHOW SCORES. { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT, NULL, NULL); } cmd ::= SHOW TOPICS. { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT, NULL, NULL); } cmd ::= SHOW VARIABLES. { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLE_STMT, NULL, NULL); } +cmd ::= SHOW BNODES. { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT, NULL, NULL); } +cmd ::= SHOW SNODES. { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT, NULL, NULL); } db_name_cond_opt(A) ::= . { A = createDefaultDatabaseCondValue(pCxt); } db_name_cond_opt(A) ::= db_name(B) NK_DOT. { A = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &B); } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 893d500641..731e23e20d 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -1034,15 +1034,15 @@ SNode* createDropIndexStmt(SAstCreateContext* pCxt, bool ignoreNotExists, SToken return (SNode*)pStmt; } -SNode* createCreateQnodeStmt(SAstCreateContext* pCxt, const SToken* pDnodeId) { - SCreateQnodeStmt* pStmt = nodesMakeNode(QUERY_NODE_CREATE_QNODE_STMT); +SNode* createCreateComponentNodeStmt(SAstCreateContext* pCxt, ENodeType type, const SToken* pDnodeId) { + SCreateComponentNodeStmt* pStmt = nodesMakeNode(type); CHECK_OUT_OF_MEM(pStmt); pStmt->dnodeId = strtol(pDnodeId->z, NULL, 10);; return (SNode*)pStmt; } -SNode* createDropQnodeStmt(SAstCreateContext* pCxt, const SToken* pDnodeId) { - SDropQnodeStmt* pStmt = nodesMakeNode(QUERY_NODE_DROP_QNODE_STMT); +SNode* createDropComponentNodeStmt(SAstCreateContext* pCxt, ENodeType type, const SToken* pDnodeId) { + SDropComponentNodeStmt* pStmt = nodesMakeNode(type); CHECK_OUT_OF_MEM(pStmt); pStmt->dnodeId = strtol(pDnodeId->z, NULL, 10);; return (SNode*)pStmt; diff --git a/source/libs/parser/src/parTokenizer.c b/source/libs/parser/src/parTokenizer.c index 300c41f73f..daeb98b3e6 100644 --- a/source/libs/parser/src/parTokenizer.c +++ b/source/libs/parser/src/parTokenizer.c @@ -43,6 +43,8 @@ static SKeyword keywordTable[] = { {"BINARY", TK_BINARY}, {"BIGINT", TK_BIGINT}, {"BLOCKS", TK_BLOCKS}, + {"BNODE", TK_BNODE}, + {"BNODES", TK_BNODES}, {"BOOL", TK_BOOL}, {"BUFSIZE", TK_BUFSIZE}, {"BY", TK_BY}, @@ -106,6 +108,7 @@ static SKeyword keywordTable[] = { {"MAXROWS", TK_MAXROWS}, {"MINROWS", TK_MINROWS}, {"MINUS", TK_MINUS}, + {"MNODE", TK_MNODE}, {"MNODES", TK_MNODES}, {"MODIFY", TK_MODIFY}, {"MODULES", TK_MODULES}, @@ -152,6 +155,8 @@ static SKeyword keywordTable[] = { {"SLIMIT", TK_SLIMIT}, {"SMA", TK_SMA}, {"SMALLINT", TK_SMALLINT}, + {"SNODE", TK_SNODE}, + {"SNODES", TK_SNODES}, {"SOFFSET", TK_SOFFSET}, {"STABLE", TK_STABLE}, {"STABLES", TK_STABLES}, diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index a286918ce5..bdb00b7581 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -2034,7 +2034,23 @@ static int32_t translateDropIndex(STranslateContext* pCxt, SDropIndexStmt* pStmt return TSDB_CODE_SUCCESS; } -static int32_t translateCreateQnode(STranslateContext* pCxt, SCreateQnodeStmt* pStmt) { +static int16_t getCreateComponentNodeMsgType(ENodeType type) { + switch (type) { + case QUERY_NODE_CREATE_QNODE_STMT: + return TDMT_DND_CREATE_QNODE; + case QUERY_NODE_CREATE_BNODE_STMT: + return TDMT_DND_CREATE_BNODE; + case QUERY_NODE_CREATE_SNODE_STMT: + return TDMT_DND_CREATE_SNODE; + case QUERY_NODE_CREATE_MNODE_STMT: + return TDMT_DND_CREATE_MNODE; + default: + break; + } + return -1; +} + +static int32_t translateCreateComponentNode(STranslateContext* pCxt, SCreateComponentNodeStmt* pStmt) { SMCreateQnodeReq createReq = { .dnodeId = pStmt->dnodeId }; pCxt->pCmdMsg = taosMemoryMalloc(sizeof(SCmdMsgInfo)); @@ -2042,7 +2058,7 @@ static int32_t translateCreateQnode(STranslateContext* pCxt, SCreateQnodeStmt* p return TSDB_CODE_OUT_OF_MEMORY; } pCxt->pCmdMsg->epSet = pCxt->pParseCxt->mgmtEpSet; - pCxt->pCmdMsg->msgType = TDMT_DND_CREATE_QNODE; + pCxt->pCmdMsg->msgType = getCreateComponentNodeMsgType(nodeType(pStmt)); pCxt->pCmdMsg->msgLen = tSerializeSMCreateDropQSBNodeReq(NULL, 0, &createReq); pCxt->pCmdMsg->pMsg = taosMemoryMalloc(pCxt->pCmdMsg->msgLen); if (NULL == pCxt->pCmdMsg->pMsg) { @@ -2053,7 +2069,23 @@ static int32_t translateCreateQnode(STranslateContext* pCxt, SCreateQnodeStmt* p return TSDB_CODE_SUCCESS; } -static int32_t translateDropQnode(STranslateContext* pCxt, SDropQnodeStmt* pStmt) { +static int16_t getDropComponentNodeMsgType(ENodeType type) { + switch (type) { + case QUERY_NODE_DROP_QNODE_STMT: + return TDMT_DND_DROP_QNODE; + case QUERY_NODE_DROP_BNODE_STMT: + return TDMT_DND_DROP_BNODE; + case QUERY_NODE_DROP_SNODE_STMT: + return TDMT_DND_DROP_SNODE; + case QUERY_NODE_DROP_MNODE_STMT: + return TDMT_DND_DROP_MNODE; + default: + break; + } + return -1; +} + +static int32_t translateDropComponentNode(STranslateContext* pCxt, SDropComponentNodeStmt* pStmt) { SDDropQnodeReq dropReq = { .dnodeId = pStmt->dnodeId }; pCxt->pCmdMsg = taosMemoryMalloc(sizeof(SCmdMsgInfo)); @@ -2061,7 +2093,7 @@ static int32_t translateDropQnode(STranslateContext* pCxt, SDropQnodeStmt* pStmt return TSDB_CODE_OUT_OF_MEMORY; } pCxt->pCmdMsg->epSet = pCxt->pParseCxt->mgmtEpSet; - pCxt->pCmdMsg->msgType = TDMT_DND_DROP_QNODE; + pCxt->pCmdMsg->msgType = getDropComponentNodeMsgType(nodeType(pStmt)); pCxt->pCmdMsg->msgLen = tSerializeSMCreateDropQSBNodeReq(NULL, 0, &dropReq); pCxt->pCmdMsg->pMsg = taosMemoryMalloc(pCxt->pCmdMsg->msgLen); if (NULL == pCxt->pCmdMsg->pMsg) { @@ -2226,10 +2258,16 @@ static int32_t translateQuery(STranslateContext* pCxt, SNode* pNode) { code = translateDropIndex(pCxt, (SDropIndexStmt*)pNode); break; case QUERY_NODE_CREATE_QNODE_STMT: - code = translateCreateQnode(pCxt, (SCreateQnodeStmt*)pNode); + case QUERY_NODE_CREATE_BNODE_STMT: + case QUERY_NODE_CREATE_SNODE_STMT: + case QUERY_NODE_CREATE_MNODE_STMT: + code = translateCreateComponentNode(pCxt, (SCreateComponentNodeStmt*)pNode); break; case QUERY_NODE_DROP_QNODE_STMT: - code = translateDropQnode(pCxt, (SDropQnodeStmt*)pNode); + case QUERY_NODE_DROP_BNODE_STMT: + case QUERY_NODE_DROP_SNODE_STMT: + case QUERY_NODE_DROP_MNODE_STMT: + code = translateDropComponentNode(pCxt, (SDropComponentNodeStmt*)pNode); break; case QUERY_NODE_CREATE_TOPIC_STMT: code = translateCreateTopic(pCxt, (SCreateTopicStmt*)pNode); @@ -2385,6 +2423,10 @@ static const char* getSysTableName(ENodeType type) { return TSDB_INS_TABLE_USER_INDEXES; case QUERY_NODE_SHOW_STREAMS_STMT: return TSDB_INS_TABLE_USER_STREAMS; + case QUERY_NODE_SHOW_BNODES_STMT: + return TSDB_INS_TABLE_BNODES; + case QUERY_NODE_SHOW_SNODES_STMT: + return TSDB_INS_TABLE_SNODES; default: break; } @@ -2898,6 +2940,8 @@ static int32_t rewriteQuery(STranslateContext* pCxt, SQuery* pQuery) { case QUERY_NODE_SHOW_FUNCTIONS_STMT: case QUERY_NODE_SHOW_INDEXES_STMT: case QUERY_NODE_SHOW_STREAMS_STMT: + case QUERY_NODE_SHOW_BNODES_STMT: + case QUERY_NODE_SHOW_SNODES_STMT: code = rewriteShow(pCxt, pQuery); break; case QUERY_NODE_CREATE_TABLE_STMT: diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index b2ddd1d0bc..918b7aa41b 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -100,24 +100,24 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 308 +#define YYNOCODE 313 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - ENullOrder yy81; - SNode* yy168; - SDataType yy224; - SAlterOption yy277; - SNodeList* yy376; - EFillMode yy382; - SToken yy393; - EOperatorType yy436; - int32_t yy508; - bool yy537; - EOrder yy554; - EJoinType yy596; + SToken yy21; + bool yy173; + EOrder yy256; + EFillMode yy268; + SDataType yy288; + SAlterOption yy289; + EJoinType yy440; + EOperatorType yy468; + SNodeList* yy476; + ENullOrder yy525; + SNode* yy564; + int32_t yy620; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -132,17 +132,17 @@ typedef union { #define ParseCTX_PARAM #define ParseCTX_FETCH #define ParseCTX_STORE -#define YYNSTATE 518 -#define YYNRULE 400 -#define YYNTOKEN 202 -#define YY_MAX_SHIFT 517 -#define YY_MIN_SHIFTREDUCE 776 -#define YY_MAX_SHIFTREDUCE 1175 -#define YY_ERROR_ACTION 1176 -#define YY_ACCEPT_ACTION 1177 -#define YY_NO_ACTION 1178 -#define YY_MIN_REDUCE 1179 -#define YY_MAX_REDUCE 1578 +#define YYNSTATE 544 +#define YYNRULE 408 +#define YYNTOKEN 207 +#define YY_MAX_SHIFT 543 +#define YY_MIN_SHIFTREDUCE 802 +#define YY_MAX_SHIFTREDUCE 1209 +#define YY_ERROR_ACTION 1210 +#define YY_ACCEPT_ACTION 1211 +#define YY_NO_ACTION 1212 +#define YY_MIN_REDUCE 1213 +#define YY_MAX_REDUCE 1620 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -209,466 +209,480 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (1488) +#define YY_ACTTAB_COUNT (1523) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 255, 432, 272, 1447, 267, 52, 1218, 1380, 275, 25, - /* 10 */ 193, 304, 31, 29, 121, 1371, 1373, 1431, 96, 1431, - /* 20 */ 264, 444, 1012, 1431, 445, 1333, 1288, 1463, 367, 1427, - /* 30 */ 1433, 1427, 1433, 72, 429, 1427, 1434, 117, 1010, 1340, - /* 40 */ 352, 1251, 1557, 310, 431, 254, 1284, 11, 1418, 1293, - /* 50 */ 1338, 263, 1225, 413, 1017, 130, 813, 432, 812, 1555, - /* 60 */ 31, 29, 1118, 1381, 231, 1448, 1449, 1452, 264, 1270, - /* 70 */ 1012, 1, 12, 236, 31, 29, 814, 444, 100, 1340, - /* 80 */ 413, 444, 264, 445, 1012, 269, 1010, 343, 31, 29, - /* 90 */ 1338, 1418, 72, 1035, 514, 11, 264, 417, 1012, 358, - /* 100 */ 1010, 366, 1017, 360, 858, 100, 1011, 365, 1293, 11, - /* 110 */ 97, 98, 361, 359, 1010, 362, 1017, 1034, 1340, 1, - /* 120 */ 860, 186, 1503, 412, 276, 411, 445, 208, 1557, 1338, - /* 130 */ 1017, 476, 12, 1, 1222, 308, 1463, 116, 98, 1191, - /* 140 */ 1013, 130, 514, 429, 1032, 1555, 445, 7, 127, 1503, - /* 150 */ 1504, 1293, 1508, 478, 1011, 309, 514, 1016, 1036, 1037, - /* 160 */ 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1011, 482, - /* 170 */ 514, 1293, 475, 474, 473, 406, 472, 163, 1117, 131, - /* 180 */ 131, 355, 1011, 502, 501, 500, 499, 279, 1013, 498, - /* 190 */ 497, 496, 102, 491, 490, 489, 488, 487, 486, 485, - /* 200 */ 484, 108, 1013, 357, 6, 1016, 1036, 1037, 1062, 1063, - /* 210 */ 1064, 1065, 1066, 1067, 1068, 1069, 1013, 510, 509, 1016, - /* 220 */ 1036, 1037, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, - /* 230 */ 1038, 1036, 1037, 1016, 1036, 1037, 1062, 1063, 1064, 1065, - /* 240 */ 1066, 1067, 1068, 1069, 1142, 1271, 31, 29, 430, 32, - /* 250 */ 30, 28, 27, 26, 264, 131, 1012, 136, 407, 31, - /* 260 */ 29, 235, 303, 1032, 302, 445, 65, 264, 1180, 1012, - /* 270 */ 322, 403, 1010, 334, 315, 400, 1140, 1141, 1143, 1144, - /* 280 */ 101, 131, 335, 50, 1202, 1010, 49, 1285, 1017, 84, - /* 290 */ 1293, 343, 83, 82, 81, 80, 79, 78, 77, 76, - /* 300 */ 75, 1017, 131, 131, 329, 7, 480, 896, 468, 467, - /* 310 */ 466, 900, 465, 902, 903, 464, 905, 461, 7, 911, - /* 320 */ 458, 913, 914, 455, 452, 408, 404, 84, 514, 1418, - /* 330 */ 83, 82, 81, 80, 79, 78, 77, 76, 75, 1113, - /* 340 */ 1011, 514, 188, 32, 30, 28, 27, 26, 364, 363, - /* 350 */ 140, 139, 333, 1011, 1116, 328, 327, 326, 325, 324, - /* 360 */ 445, 321, 320, 319, 318, 314, 313, 312, 311, 316, - /* 370 */ 1172, 9, 8, 1033, 1013, 32, 30, 28, 27, 26, - /* 380 */ 32, 30, 28, 27, 26, 1293, 1201, 1013, 483, 1200, - /* 390 */ 1265, 1016, 1036, 1037, 1062, 1063, 1064, 1065, 1066, 1067, - /* 400 */ 1068, 1069, 421, 1132, 1016, 1036, 1037, 1062, 1063, 1064, - /* 410 */ 1065, 1066, 1067, 1068, 1069, 238, 1282, 31, 29, 32, - /* 420 */ 30, 28, 27, 26, 366, 264, 360, 1012, 1199, 1447, - /* 430 */ 365, 1418, 371, 97, 1418, 361, 359, 1171, 362, 471, - /* 440 */ 1050, 445, 1094, 1010, 1447, 1557, 445, 379, 1081, 268, - /* 450 */ 342, 1269, 380, 1463, 238, 1290, 1368, 114, 1556, 1017, - /* 460 */ 429, 165, 1555, 138, 374, 1295, 1293, 52, 1463, 368, - /* 470 */ 431, 1293, 164, 1418, 1418, 416, 1, 445, 1278, 417, - /* 480 */ 28, 27, 26, 1557, 1198, 431, 442, 1081, 1289, 1418, - /* 490 */ 227, 1448, 1449, 1452, 1082, 1280, 130, 480, 42, 514, - /* 500 */ 1555, 41, 1293, 1197, 1083, 69, 1448, 1449, 1452, 1496, - /* 510 */ 1557, 1011, 1086, 257, 1492, 125, 274, 495, 493, 1276, - /* 520 */ 1177, 1039, 1087, 130, 114, 215, 420, 1555, 1323, 1418, - /* 530 */ 115, 422, 1295, 1082, 1524, 221, 24, 262, 1076, 1077, - /* 540 */ 1078, 1079, 1080, 1084, 1085, 1013, 22, 219, 1418, 1196, - /* 550 */ 1195, 1086, 32, 30, 28, 27, 26, 141, 1515, 1113, - /* 560 */ 168, 1447, 1016, 1036, 1037, 1062, 1063, 1064, 1065, 1066, - /* 570 */ 1067, 1068, 1069, 280, 1447, 24, 262, 1076, 1077, 1078, - /* 580 */ 1079, 1080, 1084, 1085, 295, 1463, 388, 271, 270, 59, - /* 590 */ 1510, 445, 429, 114, 1418, 1418, 1510, 1025, 1463, 297, - /* 600 */ 443, 1296, 431, 413, 1557, 429, 1418, 1194, 1507, 445, - /* 610 */ 1286, 417, 1050, 1018, 1506, 431, 1293, 130, 207, 1418, - /* 620 */ 67, 1555, 68, 1448, 1449, 1452, 1496, 470, 100, 1017, - /* 630 */ 237, 1492, 277, 174, 1293, 70, 1448, 1449, 1452, 1496, - /* 640 */ 114, 812, 1557, 1495, 1492, 48, 47, 307, 1295, 135, - /* 650 */ 1193, 1252, 1418, 1192, 301, 130, 1407, 350, 1190, 1555, - /* 660 */ 248, 98, 244, 517, 293, 1447, 289, 285, 132, 446, - /* 670 */ 415, 126, 1503, 1504, 1189, 1508, 1188, 212, 1125, 1510, - /* 680 */ 95, 1021, 156, 163, 1034, 154, 506, 355, 211, 1463, - /* 690 */ 494, 131, 287, 1187, 298, 1418, 416, 1505, 445, 249, - /* 700 */ 1447, 247, 246, 1418, 354, 1186, 431, 278, 428, 357, - /* 710 */ 1418, 1185, 1184, 1183, 66, 1026, 106, 205, 419, 1418, - /* 720 */ 392, 1418, 1182, 1293, 1463, 1020, 69, 1448, 1449, 1452, - /* 730 */ 1496, 429, 1029, 1340, 257, 1492, 125, 1213, 1418, 401, - /* 740 */ 1340, 431, 1447, 158, 1372, 1418, 157, 441, 189, 160, - /* 750 */ 1418, 1339, 159, 1447, 396, 1523, 1418, 1418, 1418, 369, - /* 760 */ 1211, 69, 1448, 1449, 1452, 1496, 1463, 1418, 378, 257, - /* 770 */ 1492, 1569, 395, 429, 190, 170, 162, 1463, 1447, 161, - /* 780 */ 1530, 376, 372, 431, 429, 44, 424, 1418, 338, 1139, - /* 790 */ 996, 177, 167, 1023, 431, 179, 9, 8, 1418, 413, - /* 800 */ 389, 397, 1463, 69, 1448, 1449, 1452, 1496, 1334, 429, - /* 810 */ 1019, 257, 1492, 1569, 231, 1448, 1449, 1452, 1073, 431, - /* 820 */ 64, 1447, 1553, 1418, 100, 1174, 1175, 33, 387, 33, - /* 830 */ 61, 1088, 1447, 1047, 1438, 183, 349, 832, 1012, 69, - /* 840 */ 1448, 1449, 1452, 1496, 390, 1463, 1436, 257, 1492, 1569, - /* 850 */ 1526, 33, 429, 833, 1010, 979, 1463, 98, 1514, 1464, - /* 860 */ 196, 94, 431, 429, 198, 437, 1418, 128, 1503, 1504, - /* 870 */ 1017, 1508, 104, 431, 1447, 1557, 204, 1418, 1022, 414, - /* 880 */ 192, 2, 70, 1448, 1449, 1452, 1496, 1032, 130, 282, - /* 890 */ 427, 1492, 1555, 118, 1448, 1449, 1452, 286, 1463, 243, - /* 900 */ 106, 245, 1447, 44, 889, 429, 858, 884, 450, 104, - /* 910 */ 514, 988, 917, 921, 213, 431, 105, 425, 151, 1418, - /* 920 */ 927, 124, 1011, 317, 106, 1370, 1463, 348, 926, 150, - /* 930 */ 1447, 418, 1570, 429, 137, 70, 1448, 1449, 1452, 1496, - /* 940 */ 323, 104, 330, 431, 1493, 107, 331, 1418, 332, 336, - /* 950 */ 1043, 337, 1042, 339, 1463, 53, 1013, 143, 148, 1447, - /* 960 */ 340, 429, 1041, 230, 1448, 1449, 1452, 21, 341, 146, - /* 970 */ 51, 431, 1040, 1016, 351, 1418, 344, 32, 30, 28, - /* 980 */ 27, 26, 149, 1463, 1447, 383, 356, 353, 381, 74, - /* 990 */ 429, 118, 1448, 1449, 1452, 409, 253, 1283, 384, 153, - /* 1000 */ 431, 382, 391, 1279, 1418, 155, 109, 261, 1463, 110, - /* 1010 */ 1281, 1277, 147, 111, 120, 429, 144, 112, 1447, 169, - /* 1020 */ 231, 1448, 1449, 1452, 23, 431, 1179, 393, 172, 1418, - /* 1030 */ 1571, 1039, 265, 142, 32, 30, 28, 27, 26, 402, - /* 1040 */ 1527, 394, 1463, 1017, 435, 231, 1448, 1449, 1452, 429, - /* 1050 */ 93, 92, 91, 90, 89, 88, 87, 86, 85, 431, - /* 1060 */ 1537, 175, 1447, 1418, 399, 5, 178, 410, 1447, 256, - /* 1070 */ 398, 405, 1113, 4, 1038, 99, 123, 34, 1517, 224, - /* 1080 */ 1448, 1449, 1452, 1536, 185, 258, 1463, 184, 182, 1511, - /* 1090 */ 17, 426, 1463, 429, 423, 1478, 1447, 1572, 191, 429, - /* 1100 */ 1379, 433, 1554, 431, 1447, 434, 438, 1418, 439, 431, - /* 1110 */ 1378, 200, 266, 1418, 202, 214, 440, 58, 1294, 60, - /* 1120 */ 1463, 448, 1266, 229, 1448, 1449, 1452, 429, 1463, 232, - /* 1130 */ 1448, 1449, 1452, 477, 216, 429, 210, 431, 1447, 222, - /* 1140 */ 40, 1418, 513, 223, 220, 431, 1268, 1412, 218, 1418, - /* 1150 */ 1447, 1411, 281, 1408, 283, 284, 1006, 225, 1448, 1449, - /* 1160 */ 1452, 1007, 1463, 133, 1406, 233, 1448, 1449, 1452, 429, - /* 1170 */ 288, 290, 291, 292, 1463, 1405, 294, 1404, 296, 431, - /* 1180 */ 1395, 429, 134, 1418, 299, 300, 991, 990, 1389, 1388, - /* 1190 */ 1387, 431, 305, 306, 1386, 1418, 1447, 962, 1363, 226, - /* 1200 */ 1448, 1449, 1452, 1362, 208, 1361, 1360, 1359, 476, 1358, - /* 1210 */ 1357, 234, 1448, 1449, 1452, 1356, 1355, 1354, 1353, 1352, - /* 1220 */ 1463, 1447, 1351, 103, 1350, 1349, 1348, 429, 1347, 1346, - /* 1230 */ 478, 1345, 1447, 964, 1344, 1343, 1342, 431, 1341, 1224, - /* 1240 */ 1403, 1418, 1397, 1385, 1376, 1463, 1272, 145, 825, 475, - /* 1250 */ 474, 473, 429, 472, 1223, 1221, 1463, 1460, 1448, 1449, - /* 1260 */ 1452, 345, 431, 429, 347, 1210, 1418, 1209, 1447, 346, - /* 1270 */ 1206, 1274, 73, 431, 1447, 152, 494, 1418, 932, 934, - /* 1280 */ 1273, 492, 1459, 1448, 1449, 1452, 857, 856, 855, 854, - /* 1290 */ 851, 850, 1463, 1458, 1448, 1449, 1452, 1219, 1463, 429, - /* 1300 */ 250, 1214, 1447, 251, 1212, 429, 252, 370, 1205, 431, - /* 1310 */ 1447, 373, 375, 1418, 1204, 431, 377, 1402, 71, 1418, - /* 1320 */ 166, 998, 1396, 43, 113, 385, 1463, 386, 122, 241, - /* 1330 */ 1448, 1449, 1452, 429, 1463, 240, 1448, 1449, 1452, 1384, - /* 1340 */ 1383, 429, 1375, 431, 1447, 54, 37, 1418, 171, 14, - /* 1350 */ 3, 431, 1436, 33, 173, 1418, 38, 15, 176, 1138, - /* 1360 */ 119, 181, 180, 242, 1448, 1449, 1452, 19, 1463, 10, - /* 1370 */ 55, 239, 1448, 1449, 1452, 429, 56, 20, 1131, 1110, - /* 1380 */ 36, 16, 1109, 187, 1160, 431, 1159, 1165, 259, 1418, - /* 1390 */ 1164, 1163, 260, 8, 129, 1048, 13, 35, 18, 194, - /* 1400 */ 195, 1136, 1074, 197, 199, 228, 1448, 1449, 1452, 436, - /* 1410 */ 1374, 201, 45, 1435, 57, 61, 1027, 918, 206, 203, - /* 1420 */ 39, 449, 273, 915, 453, 456, 447, 451, 454, 895, - /* 1430 */ 912, 457, 910, 906, 459, 460, 462, 904, 463, 929, - /* 1440 */ 62, 46, 63, 909, 928, 923, 469, 925, 823, 479, - /* 1450 */ 481, 908, 846, 864, 845, 907, 209, 844, 843, 842, - /* 1460 */ 841, 839, 840, 859, 836, 861, 835, 834, 831, 830, - /* 1470 */ 829, 828, 1220, 503, 504, 1208, 1207, 505, 507, 508, - /* 1480 */ 1203, 511, 512, 1178, 1014, 217, 515, 516, + /* 0 */ 25, 193, 1473, 1322, 255, 446, 1489, 459, 267, 310, + /* 10 */ 275, 1422, 31, 29, 1469, 1476, 308, 1413, 1415, 1449, + /* 20 */ 264, 1473, 1046, 272, 427, 32, 30, 28, 27, 26, + /* 30 */ 1505, 21, 1333, 1469, 1475, 304, 458, 443, 1044, 236, + /* 40 */ 1473, 32, 30, 28, 27, 26, 1068, 445, 23, 100, + /* 50 */ 11, 1460, 1469, 1475, 1489, 287, 431, 1051, 32, 30, + /* 60 */ 28, 27, 26, 31, 29, 1152, 1599, 227, 1490, 1491, + /* 70 */ 1494, 264, 215, 1046, 1, 1363, 31, 29, 1505, 130, + /* 80 */ 1552, 136, 98, 1597, 264, 443, 1046, 1599, 1166, 1044, + /* 90 */ 52, 429, 126, 1545, 1546, 445, 1550, 540, 1549, 1460, + /* 100 */ 130, 11, 1044, 96, 1597, 1069, 1211, 50, 1051, 1045, + /* 110 */ 49, 1328, 378, 377, 11, 70, 1490, 1491, 1494, 1538, + /* 120 */ 458, 1051, 345, 1537, 1534, 1, 1214, 928, 482, 481, + /* 130 */ 480, 932, 479, 934, 935, 478, 937, 475, 1, 943, + /* 140 */ 472, 945, 946, 469, 466, 1047, 485, 84, 540, 1324, + /* 150 */ 83, 82, 81, 80, 79, 78, 77, 76, 75, 280, + /* 160 */ 1045, 540, 1050, 1070, 1071, 1096, 1097, 1098, 1099, 1100, + /* 170 */ 1101, 1102, 1103, 1045, 12, 1046, 459, 1066, 163, 31, + /* 180 */ 29, 116, 369, 1225, 131, 309, 380, 264, 374, 1046, + /* 190 */ 1599, 1044, 379, 403, 1460, 97, 1047, 375, 373, 156, + /* 200 */ 376, 1333, 154, 130, 371, 1044, 303, 1597, 302, 1047, + /* 210 */ 1051, 394, 458, 1050, 1070, 1071, 1096, 1097, 1098, 1099, + /* 220 */ 1100, 1101, 1102, 1103, 1051, 417, 1050, 1070, 1071, 1096, + /* 230 */ 1097, 1098, 1099, 1100, 1101, 1102, 1103, 404, 459, 1176, + /* 240 */ 131, 7, 1599, 31, 29, 444, 131, 72, 1070, 1071, + /* 250 */ 540, 264, 459, 1046, 366, 130, 890, 31, 29, 1597, + /* 260 */ 1072, 317, 1045, 1333, 540, 264, 12, 1046, 1599, 1044, + /* 270 */ 414, 1174, 1175, 1177, 1178, 892, 1045, 1333, 52, 422, + /* 280 */ 418, 130, 1489, 1044, 131, 1597, 84, 1599, 1051, 83, + /* 290 */ 82, 81, 80, 79, 78, 77, 76, 75, 1047, 1329, + /* 300 */ 1598, 331, 1051, 65, 1597, 7, 1505, 32, 30, 28, + /* 310 */ 27, 26, 1047, 443, 1505, 1050, 117, 101, 1236, 7, + /* 320 */ 1291, 443, 421, 445, 1325, 1489, 1311, 1460, 540, 1050, + /* 330 */ 1070, 1071, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, + /* 340 */ 1045, 131, 540, 118, 1490, 1491, 1494, 140, 139, 1505, + /* 350 */ 235, 131, 1066, 420, 1045, 459, 443, 121, 494, 324, + /* 360 */ 459, 1552, 336, 1460, 318, 1067, 445, 427, 1373, 344, + /* 370 */ 1460, 337, 1380, 263, 1235, 345, 1047, 188, 254, 1548, + /* 380 */ 1333, 432, 1612, 1378, 1309, 1333, 231, 1490, 1491, 1494, + /* 390 */ 1047, 496, 100, 1050, 1070, 1071, 1096, 1097, 1098, 1099, + /* 400 */ 1100, 1101, 1102, 1103, 28, 27, 26, 1050, 1070, 1071, + /* 410 */ 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, 459, 1460, + /* 420 */ 31, 29, 434, 1380, 268, 98, 1234, 1330, 264, 269, + /* 430 */ 1046, 1262, 114, 494, 1378, 127, 1545, 1546, 1410, 1550, + /* 440 */ 1335, 536, 535, 1333, 335, 138, 1044, 330, 329, 328, + /* 450 */ 327, 326, 59, 323, 322, 321, 320, 316, 315, 314, + /* 460 */ 313, 312, 311, 459, 1151, 1051, 32, 30, 28, 27, + /* 470 */ 26, 1460, 456, 1326, 1318, 32, 30, 28, 27, 26, + /* 480 */ 248, 1320, 1, 516, 515, 514, 513, 279, 1333, 512, + /* 490 */ 511, 510, 102, 505, 504, 503, 502, 501, 500, 499, + /* 500 */ 498, 108, 1489, 459, 238, 540, 163, 508, 114, 459, + /* 510 */ 369, 298, 72, 238, 446, 274, 1336, 1045, 457, 372, + /* 520 */ 1423, 1316, 249, 114, 247, 246, 1505, 368, 1333, 1084, + /* 530 */ 1213, 1335, 371, 443, 1333, 1073, 277, 1115, 32, 30, + /* 540 */ 28, 27, 26, 445, 114, 1292, 1115, 1460, 839, 1117, + /* 550 */ 838, 1552, 1335, 1047, 93, 92, 91, 90, 89, 88, + /* 560 */ 87, 86, 85, 224, 1490, 1491, 1494, 1121, 840, 1547, + /* 570 */ 1050, 1070, 1071, 1096, 1097, 1098, 1099, 1100, 1101, 1102, + /* 580 */ 1103, 385, 9, 8, 459, 1116, 1380, 509, 507, 459, + /* 590 */ 115, 22, 276, 207, 1116, 221, 393, 1378, 278, 1480, + /* 600 */ 497, 1084, 1305, 1120, 1233, 838, 1232, 219, 1265, 1333, + /* 610 */ 165, 1478, 1120, 388, 1333, 1380, 1231, 6, 382, 433, + /* 620 */ 141, 364, 1230, 1489, 164, 1229, 1414, 24, 262, 1110, + /* 630 */ 1111, 1112, 1113, 1114, 1118, 1119, 24, 262, 1110, 1111, + /* 640 */ 1112, 1113, 1114, 1118, 1119, 1150, 168, 1505, 1380, 1460, + /* 650 */ 42, 1460, 174, 41, 443, 435, 1128, 1228, 1227, 1379, + /* 660 */ 380, 1460, 374, 484, 445, 1054, 379, 1460, 1460, 97, + /* 670 */ 1460, 375, 373, 431, 376, 1557, 1147, 1489, 1224, 1223, + /* 680 */ 1222, 1221, 295, 67, 68, 1490, 1491, 1494, 1538, 1220, + /* 690 */ 271, 270, 237, 1534, 392, 9, 8, 297, 1219, 1218, + /* 700 */ 1059, 1505, 1460, 1460, 1599, 1217, 438, 390, 430, 1216, + /* 710 */ 48, 47, 307, 402, 135, 1252, 1052, 130, 445, 301, + /* 720 */ 1226, 1597, 1460, 1460, 1460, 1460, 1460, 244, 1489, 293, + /* 730 */ 1053, 289, 285, 132, 1460, 1051, 1057, 381, 69, 1490, + /* 740 */ 1491, 1494, 1538, 1460, 1460, 864, 257, 1534, 125, 1159, + /* 750 */ 1460, 543, 1505, 190, 1460, 1068, 131, 1147, 158, 430, + /* 760 */ 189, 157, 1208, 1209, 865, 212, 410, 1565, 95, 445, + /* 770 */ 442, 1489, 1247, 1460, 532, 460, 528, 524, 520, 211, + /* 780 */ 415, 160, 162, 1489, 159, 161, 436, 1055, 1245, 69, + /* 790 */ 1490, 1491, 1494, 1538, 383, 1505, 1489, 257, 1534, 125, + /* 800 */ 340, 1056, 443, 1374, 401, 66, 183, 1505, 205, 106, + /* 810 */ 386, 363, 445, 406, 443, 44, 1460, 1568, 1566, 1173, + /* 820 */ 1505, 177, 33, 1060, 445, 179, 1122, 443, 1460, 428, + /* 830 */ 1506, 1489, 229, 1490, 1491, 1494, 192, 445, 455, 439, + /* 840 */ 1063, 1460, 2, 1489, 69, 1490, 1491, 1494, 1538, 1066, + /* 850 */ 282, 243, 257, 1534, 1611, 1505, 286, 70, 1490, 1491, + /* 860 */ 1494, 1538, 443, 1572, 890, 409, 1535, 1505, 170, 33, + /* 870 */ 64, 33, 445, 1081, 443, 1013, 1460, 196, 245, 1022, + /* 880 */ 61, 198, 1107, 1030, 445, 167, 94, 104, 1460, 213, + /* 890 */ 451, 204, 69, 1490, 1491, 1494, 1538, 319, 1412, 137, + /* 900 */ 257, 1534, 1611, 1489, 69, 1490, 1491, 1494, 1538, 325, + /* 910 */ 332, 1595, 257, 1534, 1611, 106, 333, 151, 427, 921, + /* 920 */ 124, 334, 338, 1556, 339, 1077, 362, 1505, 358, 354, + /* 930 */ 350, 150, 44, 464, 443, 1076, 916, 949, 104, 1489, + /* 940 */ 143, 105, 953, 100, 445, 959, 341, 106, 1460, 342, + /* 950 */ 1489, 958, 32, 30, 28, 27, 26, 53, 1075, 146, + /* 960 */ 148, 343, 431, 1505, 70, 1490, 1491, 1494, 1538, 365, + /* 970 */ 443, 51, 441, 1534, 1505, 104, 98, 346, 149, 107, + /* 980 */ 445, 443, 1074, 427, 1460, 74, 186, 1545, 426, 367, + /* 990 */ 425, 445, 1323, 1599, 370, 1460, 153, 1319, 411, 155, + /* 1000 */ 230, 1490, 1491, 1494, 1489, 109, 130, 110, 100, 1489, + /* 1010 */ 1597, 231, 1490, 1491, 1494, 1321, 147, 1317, 120, 253, + /* 1020 */ 144, 111, 408, 112, 396, 395, 397, 405, 1505, 169, + /* 1030 */ 398, 407, 423, 1505, 172, 443, 1073, 142, 1489, 416, + /* 1040 */ 443, 98, 449, 1579, 1051, 445, 1569, 175, 413, 1460, + /* 1050 */ 445, 128, 1545, 1546, 1460, 1550, 256, 261, 178, 419, + /* 1060 */ 412, 424, 1505, 5, 1489, 118, 1490, 1491, 1494, 443, + /* 1070 */ 231, 1490, 1491, 1494, 4, 1559, 1578, 182, 1206, 445, + /* 1080 */ 1147, 123, 99, 1460, 1072, 34, 265, 1553, 1505, 184, + /* 1090 */ 185, 258, 440, 437, 1614, 443, 17, 447, 191, 231, + /* 1100 */ 1490, 1491, 1494, 1520, 1613, 445, 1489, 452, 1421, 1460, + /* 1110 */ 1596, 1489, 448, 200, 1420, 266, 214, 1489, 453, 1334, + /* 1120 */ 454, 202, 60, 58, 462, 232, 1490, 1491, 1494, 491, + /* 1130 */ 1505, 539, 216, 210, 1306, 1505, 220, 443, 218, 40, + /* 1140 */ 222, 1505, 443, 1454, 1453, 1205, 281, 445, 443, 1310, + /* 1150 */ 223, 1460, 445, 1450, 283, 284, 1460, 1040, 445, 1489, + /* 1160 */ 1041, 133, 1460, 288, 1448, 290, 291, 225, 1490, 1491, + /* 1170 */ 1494, 1489, 233, 1490, 1491, 1494, 292, 1447, 226, 1490, + /* 1180 */ 1491, 1494, 1446, 1505, 1489, 294, 296, 1437, 134, 299, + /* 1190 */ 443, 300, 1025, 1431, 1024, 1505, 1430, 306, 305, 1429, + /* 1200 */ 445, 1308, 443, 1428, 1460, 1405, 996, 1404, 1505, 1403, + /* 1210 */ 208, 1402, 445, 1489, 490, 443, 1460, 1401, 1400, 1399, + /* 1220 */ 234, 1490, 1491, 1494, 1398, 445, 1397, 1396, 1395, 1460, + /* 1230 */ 1394, 1393, 1502, 1490, 1491, 1494, 492, 1505, 1392, 1489, + /* 1240 */ 1391, 103, 1390, 1389, 443, 1501, 1490, 1491, 1494, 1388, + /* 1250 */ 1387, 1386, 1385, 1384, 445, 489, 488, 487, 1460, 486, + /* 1260 */ 1383, 998, 208, 1505, 1382, 1489, 490, 1381, 1264, 1445, + /* 1270 */ 443, 1439, 1427, 1489, 1500, 1490, 1491, 1494, 1418, 145, + /* 1280 */ 445, 1312, 1263, 857, 1460, 1261, 347, 349, 492, 1505, + /* 1290 */ 348, 1259, 352, 351, 1257, 355, 443, 1505, 1255, 1489, + /* 1300 */ 241, 1490, 1491, 1494, 443, 353, 445, 489, 488, 487, + /* 1310 */ 1460, 486, 356, 357, 445, 359, 360, 361, 1460, 1244, + /* 1320 */ 1243, 1240, 1314, 1505, 73, 966, 240, 1490, 1491, 1494, + /* 1330 */ 443, 964, 508, 1313, 242, 1490, 1491, 1494, 889, 152, + /* 1340 */ 445, 1489, 888, 887, 1460, 886, 506, 1253, 883, 882, + /* 1350 */ 250, 1248, 251, 384, 1246, 387, 252, 1239, 389, 1238, + /* 1360 */ 239, 1490, 1491, 1494, 391, 1505, 71, 1444, 166, 1032, + /* 1370 */ 43, 1438, 443, 113, 399, 1426, 1425, 1417, 171, 122, + /* 1380 */ 54, 1478, 445, 400, 37, 14, 1460, 3, 176, 33, + /* 1390 */ 1172, 173, 15, 56, 38, 35, 10, 8, 119, 180, + /* 1400 */ 19, 55, 228, 1490, 1491, 1494, 1194, 1165, 181, 20, + /* 1410 */ 1193, 259, 1198, 1416, 1144, 1143, 36, 1197, 260, 1199, + /* 1420 */ 16, 450, 203, 1061, 13, 1108, 201, 187, 1082, 129, + /* 1430 */ 18, 463, 273, 195, 194, 1170, 197, 199, 45, 57, + /* 1440 */ 467, 1477, 470, 39, 473, 61, 476, 927, 961, 957, + /* 1450 */ 955, 871, 206, 950, 1260, 461, 465, 878, 877, 947, + /* 1460 */ 468, 876, 944, 938, 471, 474, 855, 936, 493, 896, + /* 1470 */ 477, 875, 874, 873, 62, 872, 891, 868, 893, 46, + /* 1480 */ 942, 63, 867, 866, 941, 209, 483, 863, 495, 862, + /* 1490 */ 861, 860, 518, 517, 1258, 522, 940, 939, 521, 1256, + /* 1500 */ 519, 523, 525, 526, 527, 1254, 529, 530, 531, 1242, + /* 1510 */ 533, 534, 960, 1241, 1237, 537, 538, 1212, 1048, 217, + /* 1520 */ 1212, 541, 542, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 233, 246, 233, 205, 249, 213, 0, 252, 238, 271, - /* 10 */ 272, 255, 12, 13, 228, 245, 246, 250, 226, 250, - /* 20 */ 20, 20, 22, 250, 211, 239, 234, 229, 22, 262, - /* 30 */ 263, 262, 263, 220, 236, 262, 263, 214, 38, 229, - /* 40 */ 227, 218, 286, 211, 246, 235, 205, 47, 250, 236, - /* 50 */ 240, 253, 0, 211, 54, 299, 20, 246, 22, 303, - /* 60 */ 12, 13, 14, 252, 266, 267, 268, 269, 20, 0, - /* 70 */ 22, 71, 71, 241, 12, 13, 40, 20, 236, 229, - /* 80 */ 211, 20, 20, 211, 22, 235, 38, 46, 12, 13, - /* 90 */ 240, 250, 220, 20, 94, 47, 20, 255, 22, 227, - /* 100 */ 38, 49, 54, 51, 38, 236, 106, 55, 236, 47, - /* 110 */ 58, 269, 60, 61, 38, 63, 54, 20, 229, 71, - /* 120 */ 54, 279, 280, 281, 235, 283, 211, 58, 286, 240, - /* 130 */ 54, 62, 71, 71, 0, 220, 229, 204, 269, 206, - /* 140 */ 140, 299, 94, 236, 20, 303, 211, 71, 279, 280, - /* 150 */ 281, 236, 283, 84, 106, 220, 94, 157, 158, 159, - /* 160 */ 160, 161, 162, 163, 164, 165, 166, 167, 106, 54, - /* 170 */ 94, 236, 103, 104, 105, 268, 107, 58, 4, 179, - /* 180 */ 179, 62, 106, 49, 50, 51, 52, 53, 140, 55, - /* 190 */ 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, - /* 200 */ 66, 67, 140, 84, 43, 157, 158, 159, 160, 161, - /* 210 */ 162, 163, 164, 165, 166, 167, 140, 208, 209, 157, - /* 220 */ 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, - /* 230 */ 20, 158, 159, 157, 158, 159, 160, 161, 162, 163, - /* 240 */ 164, 165, 166, 167, 157, 0, 12, 13, 14, 12, - /* 250 */ 13, 14, 15, 16, 20, 179, 22, 44, 20, 12, - /* 260 */ 13, 18, 139, 20, 141, 211, 210, 20, 0, 22, - /* 270 */ 27, 130, 38, 30, 220, 188, 189, 190, 191, 192, - /* 280 */ 224, 179, 39, 70, 205, 38, 73, 231, 54, 21, - /* 290 */ 236, 46, 24, 25, 26, 27, 28, 29, 30, 31, - /* 300 */ 32, 54, 179, 179, 64, 71, 46, 85, 86, 87, - /* 310 */ 88, 89, 90, 91, 92, 93, 94, 95, 71, 97, - /* 320 */ 98, 99, 100, 101, 102, 184, 185, 21, 94, 250, - /* 330 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 178, - /* 340 */ 106, 94, 132, 12, 13, 14, 15, 16, 215, 216, - /* 350 */ 110, 111, 109, 106, 180, 112, 113, 114, 115, 116, - /* 360 */ 211, 118, 119, 120, 121, 122, 123, 124, 125, 220, - /* 370 */ 133, 1, 2, 20, 140, 12, 13, 14, 15, 16, - /* 380 */ 12, 13, 14, 15, 16, 236, 205, 140, 217, 205, - /* 390 */ 219, 157, 158, 159, 160, 161, 162, 163, 164, 165, - /* 400 */ 166, 167, 68, 72, 157, 158, 159, 160, 161, 162, - /* 410 */ 163, 164, 165, 166, 167, 47, 230, 12, 13, 12, - /* 420 */ 13, 14, 15, 16, 49, 20, 51, 22, 205, 205, - /* 430 */ 55, 250, 4, 58, 250, 60, 61, 200, 63, 82, - /* 440 */ 72, 211, 72, 38, 205, 286, 211, 19, 80, 221, - /* 450 */ 220, 0, 255, 229, 47, 220, 236, 229, 299, 54, - /* 460 */ 236, 33, 303, 243, 36, 237, 236, 213, 229, 41, - /* 470 */ 246, 236, 44, 250, 250, 236, 71, 211, 230, 255, - /* 480 */ 14, 15, 16, 286, 205, 246, 220, 80, 234, 250, - /* 490 */ 266, 267, 268, 269, 126, 230, 299, 46, 70, 94, - /* 500 */ 303, 73, 236, 205, 126, 266, 267, 268, 269, 270, - /* 510 */ 286, 106, 144, 274, 275, 276, 221, 215, 216, 230, - /* 520 */ 202, 20, 144, 299, 229, 222, 3, 303, 225, 250, - /* 530 */ 18, 197, 237, 126, 295, 23, 168, 169, 170, 171, - /* 540 */ 172, 173, 174, 175, 176, 140, 168, 35, 250, 205, - /* 550 */ 205, 144, 12, 13, 14, 15, 16, 45, 177, 178, - /* 560 */ 230, 205, 157, 158, 159, 160, 161, 162, 163, 164, - /* 570 */ 165, 166, 167, 255, 205, 168, 169, 170, 171, 172, - /* 580 */ 173, 174, 175, 176, 136, 229, 258, 12, 13, 210, - /* 590 */ 264, 211, 236, 229, 250, 250, 264, 22, 229, 151, - /* 600 */ 220, 237, 246, 211, 286, 236, 250, 205, 282, 211, - /* 610 */ 231, 255, 72, 38, 282, 246, 236, 299, 220, 250, - /* 620 */ 108, 303, 266, 267, 268, 269, 270, 230, 236, 54, - /* 630 */ 274, 275, 221, 132, 236, 266, 267, 268, 269, 270, - /* 640 */ 229, 22, 286, 274, 275, 133, 134, 135, 237, 137, - /* 650 */ 205, 218, 250, 206, 142, 299, 0, 38, 205, 303, - /* 660 */ 35, 269, 150, 19, 152, 205, 154, 155, 156, 94, - /* 670 */ 278, 279, 280, 281, 205, 283, 205, 33, 14, 264, - /* 680 */ 36, 106, 75, 58, 20, 78, 42, 62, 44, 229, - /* 690 */ 68, 179, 36, 205, 72, 250, 236, 282, 211, 74, - /* 700 */ 205, 76, 77, 250, 79, 205, 246, 220, 47, 84, - /* 710 */ 250, 205, 205, 205, 70, 140, 68, 73, 195, 250, - /* 720 */ 72, 250, 205, 236, 229, 38, 266, 267, 268, 269, - /* 730 */ 270, 236, 157, 229, 274, 275, 276, 0, 250, 297, - /* 740 */ 229, 246, 205, 75, 240, 250, 78, 103, 288, 75, - /* 750 */ 250, 240, 78, 205, 294, 295, 250, 250, 250, 22, - /* 760 */ 0, 266, 267, 268, 269, 270, 229, 250, 21, 274, - /* 770 */ 275, 276, 128, 236, 306, 131, 75, 229, 205, 78, - /* 780 */ 285, 34, 22, 246, 236, 68, 68, 250, 246, 72, - /* 790 */ 146, 68, 148, 106, 246, 72, 1, 2, 250, 211, - /* 800 */ 211, 253, 229, 266, 267, 268, 269, 270, 239, 236, - /* 810 */ 38, 274, 275, 276, 266, 267, 268, 269, 157, 246, - /* 820 */ 71, 205, 285, 250, 236, 158, 159, 68, 246, 68, - /* 830 */ 81, 72, 205, 72, 71, 291, 208, 38, 22, 266, - /* 840 */ 267, 268, 269, 270, 255, 229, 83, 274, 275, 276, - /* 850 */ 265, 68, 236, 54, 38, 72, 229, 269, 285, 229, - /* 860 */ 68, 68, 246, 236, 72, 72, 250, 279, 280, 281, - /* 870 */ 54, 283, 68, 246, 205, 286, 72, 250, 106, 284, - /* 880 */ 300, 287, 266, 267, 268, 269, 270, 20, 299, 211, - /* 890 */ 274, 275, 303, 266, 267, 268, 269, 36, 229, 261, - /* 900 */ 68, 215, 205, 68, 72, 236, 38, 72, 68, 68, - /* 910 */ 94, 138, 72, 72, 256, 246, 68, 199, 33, 250, - /* 920 */ 72, 36, 106, 211, 68, 211, 229, 42, 72, 44, - /* 930 */ 205, 304, 305, 236, 117, 266, 267, 268, 269, 270, - /* 940 */ 244, 68, 242, 246, 275, 72, 126, 250, 242, 211, - /* 950 */ 20, 260, 20, 254, 229, 70, 140, 213, 73, 205, - /* 960 */ 236, 236, 20, 266, 267, 268, 269, 2, 247, 213, - /* 970 */ 213, 246, 20, 157, 207, 250, 211, 12, 13, 14, - /* 980 */ 15, 16, 213, 229, 205, 147, 215, 229, 236, 211, - /* 990 */ 236, 266, 267, 268, 269, 298, 207, 229, 259, 229, - /* 1000 */ 246, 260, 254, 229, 250, 229, 229, 253, 229, 229, - /* 1010 */ 229, 229, 127, 229, 129, 236, 131, 229, 205, 210, - /* 1020 */ 266, 267, 268, 269, 2, 246, 0, 236, 210, 250, - /* 1030 */ 305, 20, 253, 148, 12, 13, 14, 15, 16, 187, - /* 1040 */ 265, 247, 229, 54, 186, 266, 267, 268, 269, 236, - /* 1050 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 246, - /* 1060 */ 296, 251, 205, 250, 250, 194, 251, 193, 205, 250, - /* 1070 */ 182, 250, 178, 181, 20, 236, 290, 117, 293, 266, - /* 1080 */ 267, 268, 269, 296, 277, 201, 229, 289, 292, 264, - /* 1090 */ 71, 198, 229, 236, 196, 273, 205, 307, 301, 236, - /* 1100 */ 251, 250, 302, 246, 205, 250, 129, 250, 248, 246, - /* 1110 */ 251, 236, 250, 250, 210, 225, 247, 210, 236, 71, - /* 1120 */ 229, 232, 219, 266, 267, 268, 269, 236, 229, 266, - /* 1130 */ 267, 268, 269, 215, 211, 236, 210, 246, 205, 223, - /* 1140 */ 257, 250, 207, 223, 203, 246, 0, 0, 212, 250, - /* 1150 */ 205, 0, 61, 0, 38, 153, 38, 266, 267, 268, - /* 1160 */ 269, 38, 229, 38, 0, 266, 267, 268, 269, 236, - /* 1170 */ 153, 38, 38, 153, 229, 0, 38, 0, 38, 246, - /* 1180 */ 0, 236, 71, 250, 144, 143, 106, 140, 0, 0, - /* 1190 */ 0, 246, 50, 136, 0, 250, 205, 83, 0, 266, - /* 1200 */ 267, 268, 269, 0, 58, 0, 0, 0, 62, 0, - /* 1210 */ 0, 266, 267, 268, 269, 0, 0, 0, 0, 0, - /* 1220 */ 229, 205, 0, 117, 0, 0, 0, 236, 0, 0, - /* 1230 */ 84, 0, 205, 22, 0, 0, 0, 246, 0, 0, - /* 1240 */ 0, 250, 0, 0, 0, 229, 0, 43, 48, 103, - /* 1250 */ 104, 105, 236, 107, 0, 0, 229, 266, 267, 268, - /* 1260 */ 269, 38, 246, 236, 43, 0, 250, 0, 205, 36, - /* 1270 */ 0, 0, 80, 246, 205, 78, 68, 250, 22, 38, - /* 1280 */ 0, 68, 266, 267, 268, 269, 38, 38, 38, 38, - /* 1290 */ 38, 38, 229, 266, 267, 268, 269, 0, 229, 236, - /* 1300 */ 22, 0, 205, 22, 0, 236, 22, 39, 0, 246, - /* 1310 */ 205, 38, 22, 250, 0, 246, 22, 0, 20, 250, - /* 1320 */ 149, 38, 0, 132, 145, 22, 229, 132, 129, 266, - /* 1330 */ 267, 268, 269, 236, 229, 266, 267, 268, 269, 0, - /* 1340 */ 0, 236, 0, 246, 205, 71, 132, 250, 43, 183, - /* 1350 */ 68, 246, 83, 68, 127, 250, 68, 183, 72, 72, - /* 1360 */ 71, 68, 71, 266, 267, 268, 269, 71, 229, 183, - /* 1370 */ 71, 266, 267, 268, 269, 236, 4, 68, 72, 72, - /* 1380 */ 68, 68, 72, 83, 38, 246, 38, 72, 38, 250, - /* 1390 */ 38, 38, 38, 2, 83, 72, 71, 177, 71, 83, - /* 1400 */ 72, 72, 157, 71, 71, 266, 267, 268, 269, 130, - /* 1410 */ 0, 43, 71, 83, 71, 81, 22, 72, 83, 127, - /* 1420 */ 71, 38, 38, 72, 38, 38, 82, 71, 71, 22, - /* 1430 */ 72, 71, 96, 72, 38, 71, 38, 72, 71, 38, - /* 1440 */ 71, 71, 71, 96, 106, 22, 84, 38, 48, 47, - /* 1450 */ 69, 96, 38, 54, 38, 96, 68, 38, 38, 38, - /* 1460 */ 38, 22, 38, 38, 38, 54, 38, 38, 38, 38, - /* 1470 */ 38, 38, 0, 38, 36, 0, 0, 43, 38, 37, - /* 1480 */ 0, 22, 21, 308, 22, 22, 21, 20, 308, 308, - /* 1490 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1500 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1510 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1520 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1530 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1540 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1550 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1560 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1570 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1580 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1590 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1600 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1610 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1620 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1630 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1640 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1650 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1660 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1670 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, - /* 1680 */ 308, 308, 308, 308, 308, 308, 308, 308, 308, 308, + /* 0 */ 276, 277, 255, 235, 238, 251, 210, 216, 254, 216, + /* 10 */ 243, 257, 12, 13, 267, 268, 225, 250, 251, 0, + /* 20 */ 20, 255, 22, 238, 216, 12, 13, 14, 15, 16, + /* 30 */ 234, 2, 241, 267, 268, 260, 20, 241, 38, 246, + /* 40 */ 255, 12, 13, 14, 15, 16, 20, 251, 2, 241, + /* 50 */ 50, 255, 267, 268, 210, 36, 260, 57, 12, 13, + /* 60 */ 14, 15, 16, 12, 13, 14, 291, 271, 272, 273, + /* 70 */ 274, 20, 227, 22, 74, 230, 12, 13, 234, 304, + /* 80 */ 269, 47, 274, 308, 20, 241, 22, 291, 75, 38, + /* 90 */ 218, 283, 284, 285, 286, 251, 288, 97, 287, 255, + /* 100 */ 304, 50, 38, 231, 308, 20, 207, 73, 57, 109, + /* 110 */ 76, 239, 220, 221, 50, 271, 272, 273, 274, 275, + /* 120 */ 20, 57, 49, 279, 280, 74, 0, 88, 89, 90, + /* 130 */ 91, 92, 93, 94, 95, 96, 97, 98, 74, 100, + /* 140 */ 101, 102, 103, 104, 105, 145, 85, 21, 97, 210, + /* 150 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 260, + /* 160 */ 109, 97, 162, 163, 164, 165, 166, 167, 168, 169, + /* 170 */ 170, 171, 172, 109, 74, 22, 216, 20, 61, 12, + /* 180 */ 13, 209, 65, 211, 184, 225, 52, 20, 54, 22, + /* 190 */ 291, 38, 58, 216, 255, 61, 145, 63, 64, 78, + /* 200 */ 66, 241, 81, 304, 87, 38, 144, 308, 146, 145, + /* 210 */ 57, 260, 20, 162, 163, 164, 165, 166, 167, 168, + /* 220 */ 169, 170, 171, 172, 57, 135, 162, 163, 164, 165, + /* 230 */ 166, 167, 168, 169, 170, 171, 172, 260, 216, 162, + /* 240 */ 184, 74, 291, 12, 13, 14, 184, 225, 163, 164, + /* 250 */ 97, 20, 216, 22, 232, 304, 38, 12, 13, 308, + /* 260 */ 20, 225, 109, 241, 97, 20, 74, 22, 291, 38, + /* 270 */ 193, 194, 195, 196, 197, 57, 109, 241, 218, 189, + /* 280 */ 190, 304, 210, 38, 184, 308, 21, 291, 57, 24, + /* 290 */ 25, 26, 27, 28, 29, 30, 31, 32, 145, 239, + /* 300 */ 304, 67, 57, 215, 308, 74, 234, 12, 13, 14, + /* 310 */ 15, 16, 145, 241, 234, 162, 219, 229, 210, 74, + /* 320 */ 223, 241, 20, 251, 236, 210, 0, 255, 97, 162, + /* 330 */ 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, + /* 340 */ 109, 184, 97, 271, 272, 273, 274, 113, 114, 234, + /* 350 */ 18, 184, 20, 273, 109, 216, 241, 233, 49, 27, + /* 360 */ 216, 269, 30, 255, 225, 20, 251, 216, 244, 225, + /* 370 */ 255, 39, 234, 258, 210, 49, 145, 137, 240, 287, + /* 380 */ 241, 309, 310, 245, 0, 241, 271, 272, 273, 274, + /* 390 */ 145, 57, 241, 162, 163, 164, 165, 166, 167, 168, + /* 400 */ 169, 170, 171, 172, 14, 15, 16, 162, 163, 164, + /* 410 */ 165, 166, 167, 168, 169, 170, 171, 172, 216, 255, + /* 420 */ 12, 13, 3, 234, 226, 274, 210, 225, 20, 240, + /* 430 */ 22, 0, 234, 49, 245, 284, 285, 286, 241, 288, + /* 440 */ 242, 213, 214, 241, 112, 248, 38, 115, 116, 117, + /* 450 */ 118, 119, 215, 121, 122, 123, 124, 125, 126, 127, + /* 460 */ 128, 129, 130, 216, 4, 57, 12, 13, 14, 15, + /* 470 */ 16, 255, 225, 236, 235, 12, 13, 14, 15, 16, + /* 480 */ 35, 235, 74, 52, 53, 54, 55, 56, 241, 58, + /* 490 */ 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, + /* 500 */ 69, 70, 210, 216, 50, 97, 61, 71, 234, 216, + /* 510 */ 65, 75, 225, 50, 251, 226, 242, 109, 225, 232, + /* 520 */ 257, 235, 77, 234, 79, 80, 234, 82, 241, 75, + /* 530 */ 0, 242, 87, 241, 241, 20, 226, 83, 12, 13, + /* 540 */ 14, 15, 16, 251, 234, 223, 83, 255, 20, 131, + /* 550 */ 22, 269, 242, 145, 24, 25, 26, 27, 28, 29, + /* 560 */ 30, 31, 32, 271, 272, 273, 274, 149, 40, 287, + /* 570 */ 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, + /* 580 */ 172, 4, 1, 2, 216, 131, 234, 220, 221, 216, + /* 590 */ 18, 173, 240, 225, 131, 23, 19, 245, 225, 74, + /* 600 */ 222, 75, 224, 149, 210, 22, 210, 35, 0, 241, + /* 610 */ 33, 86, 149, 36, 241, 234, 210, 43, 41, 200, + /* 620 */ 48, 38, 210, 210, 47, 210, 245, 173, 174, 175, + /* 630 */ 176, 177, 178, 179, 180, 181, 173, 174, 175, 176, + /* 640 */ 177, 178, 179, 180, 181, 185, 235, 234, 234, 255, + /* 650 */ 73, 255, 137, 76, 241, 71, 75, 210, 210, 245, + /* 660 */ 52, 255, 54, 235, 251, 38, 58, 255, 255, 61, + /* 670 */ 255, 63, 64, 260, 66, 182, 183, 210, 210, 210, + /* 680 */ 210, 210, 141, 111, 271, 272, 273, 274, 275, 210, + /* 690 */ 12, 13, 279, 280, 21, 1, 2, 156, 210, 210, + /* 700 */ 22, 234, 255, 255, 291, 210, 71, 34, 241, 210, + /* 710 */ 138, 139, 140, 263, 142, 0, 38, 304, 251, 147, + /* 720 */ 211, 308, 255, 255, 255, 255, 255, 155, 210, 157, + /* 730 */ 38, 159, 160, 161, 255, 57, 109, 22, 271, 272, + /* 740 */ 273, 274, 275, 255, 255, 38, 279, 280, 281, 14, + /* 750 */ 255, 19, 234, 311, 255, 20, 184, 183, 78, 241, + /* 760 */ 293, 81, 163, 164, 57, 33, 299, 300, 36, 251, + /* 770 */ 50, 210, 0, 255, 42, 97, 44, 45, 46, 47, + /* 780 */ 302, 78, 78, 210, 81, 81, 202, 109, 0, 271, + /* 790 */ 272, 273, 274, 275, 22, 234, 210, 279, 280, 281, + /* 800 */ 251, 109, 241, 244, 251, 73, 296, 234, 76, 71, + /* 810 */ 22, 213, 251, 75, 241, 71, 255, 270, 300, 75, + /* 820 */ 234, 71, 71, 145, 251, 75, 75, 241, 255, 289, + /* 830 */ 234, 210, 271, 272, 273, 274, 305, 251, 106, 204, + /* 840 */ 162, 255, 292, 210, 271, 272, 273, 274, 275, 20, + /* 850 */ 216, 266, 279, 280, 281, 234, 36, 271, 272, 273, + /* 860 */ 274, 275, 241, 290, 38, 133, 280, 234, 136, 71, + /* 870 */ 74, 71, 251, 75, 241, 75, 255, 71, 220, 143, + /* 880 */ 84, 75, 162, 151, 251, 153, 71, 71, 255, 261, + /* 890 */ 75, 75, 271, 272, 273, 274, 275, 216, 216, 120, + /* 900 */ 279, 280, 281, 210, 271, 272, 273, 274, 275, 249, + /* 910 */ 247, 290, 279, 280, 281, 71, 131, 33, 216, 75, + /* 920 */ 36, 247, 216, 290, 265, 20, 42, 234, 44, 45, + /* 930 */ 46, 47, 71, 71, 241, 20, 75, 75, 71, 210, + /* 940 */ 218, 71, 75, 241, 251, 75, 259, 71, 255, 241, + /* 950 */ 210, 75, 12, 13, 14, 15, 16, 73, 20, 218, + /* 960 */ 76, 252, 260, 234, 271, 272, 273, 274, 275, 212, + /* 970 */ 241, 218, 279, 280, 234, 71, 274, 216, 218, 75, + /* 980 */ 251, 241, 20, 216, 255, 216, 284, 285, 286, 234, + /* 990 */ 288, 251, 234, 291, 220, 255, 234, 234, 258, 234, + /* 1000 */ 271, 272, 273, 274, 210, 234, 304, 234, 241, 210, + /* 1010 */ 308, 271, 272, 273, 274, 234, 132, 234, 134, 212, + /* 1020 */ 136, 234, 252, 234, 265, 241, 152, 259, 234, 215, + /* 1030 */ 264, 241, 303, 234, 215, 241, 20, 153, 210, 192, + /* 1040 */ 241, 274, 191, 301, 57, 251, 270, 256, 255, 255, + /* 1050 */ 251, 284, 285, 286, 255, 288, 255, 258, 256, 255, + /* 1060 */ 187, 198, 234, 199, 210, 271, 272, 273, 274, 241, + /* 1070 */ 271, 272, 273, 274, 186, 298, 301, 297, 138, 251, + /* 1080 */ 183, 295, 241, 255, 20, 120, 258, 269, 234, 294, + /* 1090 */ 282, 206, 203, 201, 312, 241, 74, 255, 306, 271, + /* 1100 */ 272, 273, 274, 278, 310, 251, 210, 134, 256, 255, + /* 1110 */ 307, 210, 255, 241, 256, 255, 230, 210, 253, 241, + /* 1120 */ 252, 215, 74, 215, 237, 271, 272, 273, 274, 220, + /* 1130 */ 234, 212, 216, 215, 224, 234, 208, 241, 217, 262, + /* 1140 */ 228, 234, 241, 0, 0, 205, 64, 251, 241, 0, + /* 1150 */ 228, 255, 251, 0, 38, 158, 255, 38, 251, 210, + /* 1160 */ 38, 38, 255, 158, 0, 38, 38, 271, 272, 273, + /* 1170 */ 274, 210, 271, 272, 273, 274, 158, 0, 271, 272, + /* 1180 */ 273, 274, 0, 234, 210, 38, 38, 0, 74, 149, + /* 1190 */ 241, 148, 109, 0, 145, 234, 0, 141, 53, 0, + /* 1200 */ 251, 0, 241, 0, 255, 0, 86, 0, 234, 0, + /* 1210 */ 61, 0, 251, 210, 65, 241, 255, 0, 0, 0, + /* 1220 */ 271, 272, 273, 274, 0, 251, 0, 0, 0, 255, + /* 1230 */ 0, 0, 271, 272, 273, 274, 87, 234, 0, 210, + /* 1240 */ 0, 120, 0, 0, 241, 271, 272, 273, 274, 0, + /* 1250 */ 0, 0, 0, 0, 251, 106, 107, 108, 255, 110, + /* 1260 */ 0, 22, 61, 234, 0, 210, 65, 0, 0, 0, + /* 1270 */ 241, 0, 0, 210, 271, 272, 273, 274, 0, 43, + /* 1280 */ 251, 0, 0, 51, 255, 0, 38, 43, 87, 234, + /* 1290 */ 36, 0, 36, 38, 0, 38, 241, 234, 0, 210, + /* 1300 */ 271, 272, 273, 274, 241, 43, 251, 106, 107, 108, + /* 1310 */ 255, 110, 36, 43, 251, 38, 36, 43, 255, 0, + /* 1320 */ 0, 0, 0, 234, 83, 38, 271, 272, 273, 274, + /* 1330 */ 241, 22, 71, 0, 271, 272, 273, 274, 38, 81, + /* 1340 */ 251, 210, 38, 38, 255, 38, 71, 0, 38, 38, + /* 1350 */ 22, 0, 22, 39, 0, 38, 22, 0, 22, 0, + /* 1360 */ 271, 272, 273, 274, 22, 234, 20, 0, 154, 38, + /* 1370 */ 137, 0, 241, 150, 22, 0, 0, 0, 43, 134, + /* 1380 */ 74, 86, 251, 137, 137, 188, 255, 71, 75, 71, + /* 1390 */ 75, 132, 188, 4, 71, 182, 188, 2, 74, 74, + /* 1400 */ 74, 74, 271, 272, 273, 274, 38, 75, 71, 71, + /* 1410 */ 38, 38, 38, 0, 75, 75, 71, 38, 38, 75, + /* 1420 */ 71, 135, 132, 22, 74, 162, 43, 86, 75, 86, + /* 1430 */ 74, 38, 38, 75, 86, 75, 74, 74, 74, 74, + /* 1440 */ 38, 86, 38, 74, 38, 84, 38, 22, 38, 38, + /* 1450 */ 22, 22, 86, 75, 0, 85, 74, 38, 38, 75, + /* 1460 */ 74, 38, 75, 75, 74, 74, 51, 75, 50, 57, + /* 1470 */ 74, 38, 38, 38, 74, 38, 38, 38, 57, 74, + /* 1480 */ 99, 74, 38, 38, 99, 71, 87, 38, 72, 38, + /* 1490 */ 38, 38, 36, 38, 0, 36, 99, 99, 38, 0, + /* 1500 */ 43, 43, 38, 36, 43, 0, 38, 36, 43, 0, + /* 1510 */ 38, 37, 109, 0, 0, 22, 21, 313, 22, 22, + /* 1520 */ 313, 21, 20, 313, 313, 313, 313, 313, 313, 313, + /* 1530 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1540 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1550 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1560 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1570 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1580 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1590 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1600 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1610 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1620 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1630 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1640 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1650 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1660 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1670 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1680 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1690 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1700 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1710 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, + /* 1720 */ 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, }; -#define YY_SHIFT_COUNT (517) +#define YY_SHIFT_COUNT (543) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (1480) +#define YY_SHIFT_MAX (1514) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 512, 0, 48, 62, 62, 62, 62, 76, 62, 62, - /* 10 */ 247, 405, 1, 234, 247, 247, 247, 247, 247, 247, - /* 20 */ 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, - /* 30 */ 247, 247, 247, 247, 61, 61, 61, 124, 575, 575, - /* 40 */ 123, 57, 57, 102, 575, 73, 73, 57, 57, 57, - /* 50 */ 57, 57, 57, 41, 97, 238, 102, 97, 57, 57, - /* 60 */ 97, 57, 97, 97, 97, 57, 260, 243, 368, 407, - /* 70 */ 407, 306, 625, 816, 375, 816, 816, 816, 816, 816, - /* 80 */ 816, 816, 816, 816, 816, 816, 816, 816, 816, 816, - /* 90 */ 816, 816, 816, 816, 73, 36, 245, 66, 210, 210, - /* 100 */ 210, 451, 66, 353, 97, 97, 97, 357, 115, 222, - /* 110 */ 222, 222, 222, 222, 222, 644, 268, 52, 237, 87, - /* 120 */ 73, 119, 73, 141, 619, 501, 381, 161, 381, 664, - /* 130 */ 523, 174, 867, 861, 868, 773, 867, 867, 817, 820, - /* 140 */ 820, 867, 930, 932, 41, 353, 942, 41, 41, 867, - /* 150 */ 41, 952, 97, 97, 97, 97, 97, 97, 97, 97, - /* 160 */ 97, 97, 97, 868, 867, 952, 353, 930, 838, 932, - /* 170 */ 260, 353, 942, 260, 1011, 852, 858, 989, 852, 858, - /* 180 */ 989, 989, 871, 874, 888, 892, 894, 353, 1054, 960, - /* 190 */ 884, 893, 898, 1019, 97, 858, 989, 989, 858, 989, - /* 200 */ 977, 353, 942, 260, 357, 260, 353, 1048, 868, 115, - /* 210 */ 867, 260, 952, 1488, 1488, 1488, 1488, 1488, 134, 885, - /* 220 */ 1026, 428, 69, 1146, 331, 965, 1022, 540, 363, 363, - /* 230 */ 363, 363, 363, 363, 363, 213, 240, 370, 378, 466, - /* 240 */ 466, 466, 466, 656, 448, 622, 607, 668, 674, 701, - /* 250 */ 6, 737, 760, 747, 648, 717, 723, 795, 667, 334, - /* 260 */ 718, 759, 661, 761, 763, 783, 792, 793, 804, 832, - /* 270 */ 687, 772, 835, 840, 841, 848, 856, 873, 749, 799, - /* 280 */ 1147, 1151, 1091, 1153, 1116, 1002, 1118, 1123, 1125, 1017, - /* 290 */ 1164, 1133, 1134, 1020, 1175, 1138, 1177, 1140, 1180, 1111, - /* 300 */ 1040, 1042, 1080, 1047, 1188, 1189, 1142, 1057, 1190, 1194, - /* 310 */ 1114, 1198, 1203, 1205, 1206, 1207, 1209, 1210, 1215, 1216, - /* 320 */ 1217, 1218, 1219, 1222, 1106, 1224, 1225, 1226, 1228, 1229, - /* 330 */ 1231, 1211, 1234, 1235, 1236, 1238, 1239, 1240, 1242, 1243, - /* 340 */ 1244, 1204, 1246, 1200, 1254, 1255, 1223, 1233, 1221, 1265, - /* 350 */ 1267, 1270, 1271, 1192, 1197, 1241, 1208, 1256, 1280, 1248, - /* 360 */ 1249, 1250, 1251, 1213, 1208, 1252, 1253, 1297, 1278, 1301, - /* 370 */ 1281, 1268, 1304, 1284, 1273, 1308, 1290, 1314, 1294, 1298, - /* 380 */ 1317, 1191, 1171, 1283, 1322, 1179, 1303, 1195, 1199, 1339, - /* 390 */ 1340, 1214, 1342, 1274, 1305, 1227, 1282, 1285, 1166, 1286, - /* 400 */ 1288, 1287, 1289, 1291, 1296, 1306, 1293, 1269, 1299, 1309, - /* 410 */ 1174, 1307, 1310, 1300, 1220, 1312, 1311, 1315, 1313, 1186, - /* 420 */ 1372, 1346, 1348, 1350, 1352, 1353, 1354, 1391, 1245, 1316, - /* 430 */ 1323, 1325, 1327, 1328, 1329, 1332, 1333, 1279, 1341, 1410, - /* 440 */ 1368, 1292, 1343, 1334, 1330, 1335, 1394, 1349, 1344, 1345, - /* 450 */ 1383, 1384, 1356, 1351, 1386, 1357, 1358, 1387, 1360, 1361, - /* 460 */ 1396, 1364, 1365, 1398, 1367, 1336, 1347, 1355, 1359, 1407, - /* 470 */ 1362, 1369, 1401, 1338, 1370, 1371, 1409, 1208, 1423, 1400, - /* 480 */ 1402, 1399, 1381, 1388, 1414, 1416, 1419, 1420, 1421, 1422, - /* 490 */ 1424, 1439, 1411, 1213, 1425, 1208, 1426, 1428, 1429, 1430, - /* 500 */ 1431, 1432, 1433, 1472, 1435, 1438, 1434, 1475, 1440, 1442, - /* 510 */ 1476, 1480, 1459, 1461, 1462, 1463, 1465, 1467, + /* 0 */ 572, 0, 51, 64, 64, 64, 64, 167, 64, 64, + /* 10 */ 245, 408, 100, 231, 245, 245, 245, 245, 245, 245, + /* 20 */ 245, 245, 245, 245, 245, 245, 245, 245, 245, 245, + /* 30 */ 245, 245, 245, 245, 192, 192, 192, 157, 678, 678, + /* 40 */ 62, 16, 16, 56, 678, 85, 85, 16, 16, 16, + /* 50 */ 16, 16, 16, 73, 26, 302, 56, 26, 16, 16, + /* 60 */ 26, 16, 26, 26, 26, 16, 309, 332, 454, 463, + /* 70 */ 463, 265, 445, 153, 134, 153, 153, 153, 153, 153, + /* 80 */ 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, + /* 90 */ 153, 153, 153, 153, 85, 528, 326, 218, 240, 240, + /* 100 */ 240, 384, 218, 345, 26, 26, 26, 61, 334, 39, + /* 110 */ 39, 39, 39, 39, 39, 732, 126, 608, 940, 77, + /* 120 */ 85, 117, 85, 90, 583, 515, 493, 574, 493, 735, + /* 130 */ 419, 460, 829, 820, 826, 736, 829, 829, 779, 785, + /* 140 */ 785, 829, 905, 915, 73, 345, 938, 73, 73, 829, + /* 150 */ 73, 962, 26, 26, 26, 26, 26, 26, 26, 26, + /* 160 */ 26, 26, 26, 826, 829, 962, 345, 905, 874, 915, + /* 170 */ 309, 345, 938, 309, 1016, 847, 851, 987, 847, 851, + /* 180 */ 987, 987, 864, 863, 873, 888, 897, 345, 1064, 965, + /* 190 */ 885, 889, 892, 1022, 26, 851, 987, 987, 851, 987, + /* 200 */ 973, 345, 938, 309, 61, 309, 345, 1048, 826, 334, + /* 210 */ 829, 309, 962, 1523, 1523, 1523, 1523, 1523, 431, 884, + /* 220 */ 530, 577, 1149, 1201, 13, 29, 46, 526, 295, 295, + /* 230 */ 295, 295, 295, 295, 295, 34, 234, 581, 418, 390, + /* 240 */ 390, 390, 390, 19, 541, 436, 121, 680, 703, 704, + /* 250 */ 715, 772, 788, 673, 738, 744, 750, 694, 599, 584, + /* 260 */ 635, 751, 720, 798, 525, 800, 806, 815, 816, 844, + /* 270 */ 627, 692, 861, 862, 867, 870, 876, 904, 796, 707, + /* 280 */ 1143, 1144, 1082, 1153, 1116, 997, 1119, 1122, 1123, 1005, + /* 290 */ 1164, 1127, 1128, 1018, 1177, 1147, 1182, 1148, 1187, 1114, + /* 300 */ 1040, 1043, 1083, 1049, 1193, 1196, 1145, 1056, 1199, 1203, + /* 310 */ 1120, 1205, 1207, 1209, 1211, 1217, 1218, 1219, 1224, 1226, + /* 320 */ 1227, 1228, 1230, 1231, 1238, 1240, 1121, 1242, 1243, 1249, + /* 330 */ 1250, 1251, 1252, 1239, 1253, 1260, 1264, 1267, 1268, 1269, + /* 340 */ 1271, 1272, 1278, 1236, 1281, 1232, 1282, 1285, 1248, 1254, + /* 350 */ 1244, 1291, 1255, 1256, 1262, 1294, 1257, 1276, 1270, 1298, + /* 360 */ 1277, 1280, 1274, 1319, 1320, 1321, 1322, 1241, 1258, 1287, + /* 370 */ 1261, 1309, 1333, 1300, 1304, 1305, 1307, 1275, 1261, 1310, + /* 380 */ 1311, 1347, 1328, 1351, 1330, 1314, 1354, 1334, 1317, 1357, + /* 390 */ 1336, 1359, 1342, 1346, 1367, 1233, 1214, 1331, 1371, 1223, + /* 400 */ 1352, 1246, 1245, 1375, 1376, 1247, 1377, 1306, 1335, 1259, + /* 410 */ 1316, 1318, 1197, 1313, 1323, 1315, 1324, 1325, 1326, 1332, + /* 420 */ 1337, 1295, 1327, 1338, 1204, 1339, 1340, 1341, 1213, 1345, + /* 430 */ 1343, 1344, 1349, 1208, 1389, 1368, 1372, 1373, 1374, 1379, + /* 440 */ 1380, 1395, 1263, 1348, 1353, 1350, 1356, 1358, 1360, 1362, + /* 450 */ 1363, 1286, 1364, 1413, 1383, 1290, 1365, 1361, 1355, 1366, + /* 460 */ 1401, 1369, 1370, 1378, 1393, 1394, 1382, 1384, 1402, 1386, + /* 470 */ 1387, 1404, 1390, 1388, 1406, 1391, 1392, 1408, 1396, 1381, + /* 480 */ 1385, 1397, 1398, 1425, 1399, 1400, 1410, 1403, 1405, 1407, + /* 490 */ 1411, 1261, 1428, 1415, 1418, 1412, 1416, 1414, 1419, 1420, + /* 500 */ 1423, 1433, 1434, 1435, 1437, 1429, 1421, 1275, 1438, 1261, + /* 510 */ 1439, 1444, 1445, 1449, 1451, 1452, 1453, 1454, 1455, 1456, + /* 520 */ 1457, 1494, 1460, 1459, 1458, 1499, 1464, 1467, 1461, 1505, + /* 530 */ 1468, 1471, 1465, 1509, 1472, 1474, 1513, 1514, 1493, 1495, + /* 540 */ 1496, 1497, 1500, 1502, }; #define YY_REDUCE_COUNT (217) -#define YY_REDUCE_MIN (-262) -#define YY_REDUCE_MAX (1139) +#define YY_REDUCE_MIN (-276) +#define YY_REDUCE_MAX (1131) static const short yy_reduce_ofst[] = { - /* 0 */ 318, 356, 460, 239, 495, 537, 573, 224, 369, 616, - /* 10 */ 627, 669, -158, -202, 548, 697, 725, 754, 779, 813, - /* 20 */ 857, 863, 891, 899, 933, 945, 991, 1016, 1027, 1063, - /* 30 */ 1069, 1097, 1105, 1139, 392, -131, 588, 589, -233, -231, - /* 40 */ -244, -187, -128, 197, -227, -245, -230, -85, -65, 54, - /* 50 */ 149, 230, 235, -208, -190, -93, 159, 228, 266, 380, - /* 60 */ -150, 398, 295, -111, 411, 487, 56, -168, -262, -262, - /* 70 */ -262, -67, -214, -159, -177, 79, 181, 184, 223, 279, - /* 80 */ 298, 344, 345, 402, 445, 453, 469, 471, 488, 500, - /* 90 */ 506, 507, 508, 517, -189, 9, 254, 133, 326, 332, - /* 100 */ 415, 379, 302, 220, 364, 504, 511, 303, 171, 186, - /* 110 */ 248, 265, 289, 330, 397, 328, 447, 433, 468, 442, - /* 120 */ 542, 569, 582, 544, 628, 585, 595, 595, 595, 630, - /* 130 */ 580, 594, 678, 638, 686, 658, 712, 714, 696, 700, - /* 140 */ 706, 738, 691, 699, 744, 724, 721, 756, 757, 765, - /* 150 */ 769, 767, 758, 768, 770, 774, 776, 777, 780, 781, - /* 160 */ 782, 784, 788, 771, 778, 789, 752, 741, 739, 748, - /* 170 */ 809, 791, 794, 818, 775, 764, 810, 814, 787, 815, - /* 180 */ 819, 821, 785, 796, 786, 798, 595, 839, 825, 807, - /* 190 */ 790, 800, 797, 822, 630, 849, 851, 855, 859, 862, - /* 200 */ 860, 875, 869, 904, 890, 907, 882, 889, 918, 903, - /* 210 */ 923, 926, 935, 883, 916, 920, 936, 941, + /* 0 */ -101, 413, 467, 518, 573, 621, 633, -204, -156, 693, + /* 10 */ 72, 586, 702, 115, 740, 729, 794, 799, 828, 292, + /* 20 */ 561, 854, 896, 901, 907, 949, 961, 974, 1003, 1029, + /* 30 */ 1055, 1063, 1089, 1131, -192, 151, 767, -23, -234, -215, + /* 40 */ -225, 22, 287, -49, -253, -246, -233, -209, -40, 36, + /* 50 */ 139, 144, 202, -128, 138, 80, -4, 198, 247, 293, + /* 60 */ 189, 368, 289, 352, 310, 373, 88, -207, -276, -276, + /* 70 */ -276, -28, 124, -61, 97, 108, 164, 216, 394, 396, + /* 80 */ 406, 412, 415, 447, 448, 468, 469, 470, 471, 479, + /* 90 */ 488, 489, 495, 499, 263, 228, 60, -108, -189, 92, + /* 100 */ 282, 237, 367, 197, 274, 381, 414, -155, 378, -232, + /* 110 */ 239, 246, 286, 411, 428, 450, 509, 322, 442, 478, + /* 120 */ 549, 559, 553, 510, 598, 547, 540, 540, 540, 596, + /* 130 */ 531, 550, 634, 585, 658, 628, 681, 682, 660, 663, + /* 140 */ 674, 706, 659, 687, 722, 708, 709, 741, 753, 761, + /* 150 */ 760, 757, 755, 758, 762, 763, 765, 771, 773, 781, + /* 160 */ 783, 787, 789, 774, 769, 807, 784, 759, 766, 768, + /* 170 */ 814, 790, 770, 819, 776, 742, 791, 793, 775, 802, + /* 180 */ 801, 804, 777, 780, 786, 795, 540, 841, 818, 808, + /* 190 */ 782, 803, 792, 825, 596, 852, 842, 857, 858, 860, + /* 200 */ 865, 872, 868, 906, 886, 908, 878, 887, 909, 910, + /* 210 */ 916, 918, 919, 877, 912, 922, 921, 928, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 10 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 20 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 30 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 40 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 50 */ 1176, 1176, 1176, 1229, 1176, 1176, 1176, 1176, 1176, 1176, - /* 60 */ 1176, 1176, 1176, 1176, 1176, 1176, 1227, 1364, 1176, 1498, - /* 70 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 80 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 90 */ 1176, 1176, 1176, 1176, 1176, 1176, 1229, 1176, 1509, 1509, - /* 100 */ 1509, 1227, 1176, 1176, 1176, 1176, 1176, 1322, 1176, 1176, - /* 110 */ 1176, 1176, 1176, 1176, 1176, 1398, 1176, 1176, 1573, 1176, - /* 120 */ 1176, 1275, 1176, 1533, 1176, 1525, 1501, 1515, 1502, 1176, - /* 130 */ 1558, 1518, 1176, 1176, 1176, 1390, 1176, 1176, 1369, 1366, - /* 140 */ 1366, 1176, 1176, 1176, 1229, 1176, 1176, 1229, 1229, 1176, - /* 150 */ 1229, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 160 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1400, 1176, - /* 170 */ 1227, 1176, 1176, 1227, 1176, 1540, 1538, 1176, 1540, 1538, - /* 180 */ 1176, 1176, 1552, 1548, 1531, 1529, 1515, 1176, 1176, 1176, - /* 190 */ 1576, 1564, 1560, 1176, 1176, 1538, 1176, 1176, 1538, 1176, - /* 200 */ 1377, 1176, 1176, 1227, 1176, 1227, 1176, 1291, 1176, 1176, - /* 210 */ 1176, 1227, 1176, 1392, 1325, 1325, 1230, 1181, 1176, 1176, - /* 220 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1462, 1551, - /* 230 */ 1550, 1461, 1475, 1474, 1473, 1176, 1176, 1176, 1176, 1456, - /* 240 */ 1457, 1455, 1454, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 250 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1499, 1176, 1561, - /* 260 */ 1565, 1176, 1176, 1176, 1437, 1176, 1176, 1176, 1176, 1176, - /* 270 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 280 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 290 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 300 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 310 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 320 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 330 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 340 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 350 */ 1176, 1176, 1176, 1176, 1176, 1176, 1336, 1176, 1176, 1176, - /* 360 */ 1176, 1176, 1176, 1256, 1255, 1176, 1176, 1176, 1176, 1176, - /* 370 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 380 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 390 */ 1176, 1176, 1176, 1176, 1176, 1176, 1522, 1532, 1176, 1176, - /* 400 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1437, 1176, 1549, - /* 410 */ 1176, 1508, 1504, 1176, 1176, 1500, 1176, 1176, 1559, 1176, - /* 420 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1494, 1176, 1176, - /* 430 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 440 */ 1176, 1176, 1176, 1176, 1436, 1176, 1176, 1176, 1176, 1176, - /* 450 */ 1176, 1176, 1319, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 460 */ 1176, 1176, 1176, 1176, 1176, 1304, 1302, 1301, 1300, 1176, - /* 470 */ 1297, 1176, 1176, 1176, 1176, 1176, 1176, 1327, 1176, 1176, - /* 480 */ 1176, 1176, 1176, 1250, 1176, 1176, 1176, 1176, 1176, 1176, - /* 490 */ 1176, 1176, 1176, 1241, 1176, 1240, 1176, 1176, 1176, 1176, - /* 500 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, - /* 510 */ 1176, 1176, 1176, 1176, 1176, 1176, 1176, 1176, + /* 0 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 10 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 20 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 30 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 40 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 50 */ 1210, 1210, 1210, 1269, 1210, 1210, 1210, 1210, 1210, 1210, + /* 60 */ 1210, 1210, 1210, 1210, 1210, 1210, 1267, 1406, 1210, 1540, + /* 70 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 80 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 90 */ 1210, 1210, 1210, 1210, 1210, 1210, 1269, 1210, 1551, 1551, + /* 100 */ 1551, 1267, 1210, 1210, 1210, 1210, 1210, 1362, 1210, 1210, + /* 110 */ 1210, 1210, 1210, 1210, 1210, 1440, 1210, 1210, 1615, 1210, + /* 120 */ 1210, 1315, 1210, 1575, 1210, 1567, 1543, 1557, 1544, 1210, + /* 130 */ 1600, 1560, 1210, 1210, 1210, 1432, 1210, 1210, 1411, 1408, + /* 140 */ 1408, 1210, 1210, 1210, 1269, 1210, 1210, 1269, 1269, 1210, + /* 150 */ 1269, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 160 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1442, 1210, + /* 170 */ 1267, 1210, 1210, 1267, 1210, 1582, 1580, 1210, 1582, 1580, + /* 180 */ 1210, 1210, 1594, 1590, 1573, 1571, 1557, 1210, 1210, 1210, + /* 190 */ 1618, 1606, 1602, 1210, 1210, 1580, 1210, 1210, 1580, 1210, + /* 200 */ 1419, 1210, 1210, 1267, 1210, 1267, 1210, 1331, 1210, 1210, + /* 210 */ 1210, 1267, 1210, 1434, 1365, 1365, 1270, 1215, 1210, 1210, + /* 220 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1504, 1593, + /* 230 */ 1592, 1503, 1517, 1516, 1515, 1210, 1210, 1210, 1210, 1498, + /* 240 */ 1499, 1497, 1496, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 250 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1541, 1210, 1603, + /* 260 */ 1607, 1210, 1210, 1210, 1479, 1210, 1210, 1210, 1210, 1210, + /* 270 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 280 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 290 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 300 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 310 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 320 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 330 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 340 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 350 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 360 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 370 */ 1376, 1210, 1210, 1210, 1210, 1210, 1210, 1296, 1295, 1210, + /* 380 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 390 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 400 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 410 */ 1564, 1574, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 420 */ 1210, 1479, 1210, 1591, 1210, 1550, 1546, 1210, 1210, 1542, + /* 430 */ 1210, 1210, 1601, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 440 */ 1210, 1536, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 450 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1478, 1210, + /* 460 */ 1210, 1210, 1210, 1210, 1210, 1210, 1359, 1210, 1210, 1210, + /* 470 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1344, + /* 480 */ 1342, 1341, 1340, 1210, 1337, 1210, 1210, 1210, 1210, 1210, + /* 490 */ 1210, 1367, 1210, 1210, 1210, 1210, 1210, 1290, 1210, 1210, + /* 500 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1281, 1210, 1280, + /* 510 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 520 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 530 */ 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, + /* 540 */ 1210, 1210, 1210, 1210, }; /********** End of lemon-generated parsing tables *****************************/ @@ -819,270 +833,275 @@ static const char *const yyTokenName[] = { /* 41 */ "LOCAL", /* 42 */ "QNODE", /* 43 */ "ON", - /* 44 */ "DATABASE", - /* 45 */ "USE", - /* 46 */ "IF", - /* 47 */ "NOT", - /* 48 */ "EXISTS", - /* 49 */ "BLOCKS", - /* 50 */ "CACHE", - /* 51 */ "CACHELAST", - /* 52 */ "COMP", - /* 53 */ "DAYS", - /* 54 */ "NK_VARIABLE", - /* 55 */ "FSYNC", - /* 56 */ "MAXROWS", - /* 57 */ "MINROWS", - /* 58 */ "KEEP", - /* 59 */ "PRECISION", - /* 60 */ "QUORUM", - /* 61 */ "REPLICA", - /* 62 */ "TTL", - /* 63 */ "WAL", - /* 64 */ "VGROUPS", - /* 65 */ "SINGLE_STABLE", - /* 66 */ "STREAM_MODE", - /* 67 */ "RETENTIONS", - /* 68 */ "NK_COMMA", - /* 69 */ "NK_COLON", - /* 70 */ "TABLE", - /* 71 */ "NK_LP", - /* 72 */ "NK_RP", - /* 73 */ "STABLE", - /* 74 */ "ADD", - /* 75 */ "COLUMN", - /* 76 */ "MODIFY", - /* 77 */ "RENAME", - /* 78 */ "TAG", - /* 79 */ "SET", - /* 80 */ "NK_EQ", - /* 81 */ "USING", - /* 82 */ "TAGS", - /* 83 */ "NK_DOT", - /* 84 */ "COMMENT", - /* 85 */ "BOOL", - /* 86 */ "TINYINT", - /* 87 */ "SMALLINT", - /* 88 */ "INT", - /* 89 */ "INTEGER", - /* 90 */ "BIGINT", - /* 91 */ "FLOAT", - /* 92 */ "DOUBLE", - /* 93 */ "BINARY", - /* 94 */ "TIMESTAMP", - /* 95 */ "NCHAR", - /* 96 */ "UNSIGNED", - /* 97 */ "JSON", - /* 98 */ "VARCHAR", - /* 99 */ "MEDIUMBLOB", - /* 100 */ "BLOB", - /* 101 */ "VARBINARY", - /* 102 */ "DECIMAL", - /* 103 */ "SMA", - /* 104 */ "ROLLUP", - /* 105 */ "FILE_FACTOR", - /* 106 */ "NK_FLOAT", - /* 107 */ "DELAY", - /* 108 */ "SHOW", - /* 109 */ "DATABASES", - /* 110 */ "TABLES", - /* 111 */ "STABLES", - /* 112 */ "MNODES", - /* 113 */ "MODULES", - /* 114 */ "QNODES", - /* 115 */ "FUNCTIONS", - /* 116 */ "INDEXES", - /* 117 */ "FROM", - /* 118 */ "ACCOUNTS", - /* 119 */ "APPS", - /* 120 */ "CONNECTIONS", - /* 121 */ "LICENCE", - /* 122 */ "QUERIES", - /* 123 */ "SCORES", - /* 124 */ "TOPICS", - /* 125 */ "VARIABLES", - /* 126 */ "LIKE", - /* 127 */ "INDEX", - /* 128 */ "FULLTEXT", - /* 129 */ "FUNCTION", - /* 130 */ "INTERVAL", - /* 131 */ "TOPIC", - /* 132 */ "AS", - /* 133 */ "DESC", - /* 134 */ "DESCRIBE", - /* 135 */ "RESET", - /* 136 */ "QUERY", - /* 137 */ "EXPLAIN", - /* 138 */ "ANALYZE", - /* 139 */ "VERBOSE", - /* 140 */ "NK_BOOL", - /* 141 */ "RATIO", - /* 142 */ "COMPACT", - /* 143 */ "VNODES", - /* 144 */ "IN", - /* 145 */ "OUTPUTTYPE", - /* 146 */ "AGGREGATE", - /* 147 */ "BUFSIZE", - /* 148 */ "STREAM", - /* 149 */ "INTO", - /* 150 */ "KILL", - /* 151 */ "CONNECTION", - /* 152 */ "MERGE", - /* 153 */ "VGROUP", - /* 154 */ "REDISTRIBUTE", - /* 155 */ "SPLIT", - /* 156 */ "SYNCDB", - /* 157 */ "NULL", - /* 158 */ "FIRST", - /* 159 */ "LAST", - /* 160 */ "NOW", - /* 161 */ "ROWTS", - /* 162 */ "TBNAME", - /* 163 */ "QSTARTTS", - /* 164 */ "QENDTS", - /* 165 */ "WSTARTTS", - /* 166 */ "WENDTS", - /* 167 */ "WDURATION", - /* 168 */ "BETWEEN", - /* 169 */ "IS", - /* 170 */ "NK_LT", - /* 171 */ "NK_GT", - /* 172 */ "NK_LE", - /* 173 */ "NK_GE", - /* 174 */ "NK_NE", - /* 175 */ "MATCH", - /* 176 */ "NMATCH", - /* 177 */ "JOIN", - /* 178 */ "INNER", - /* 179 */ "SELECT", - /* 180 */ "DISTINCT", - /* 181 */ "WHERE", - /* 182 */ "PARTITION", - /* 183 */ "BY", - /* 184 */ "SESSION", - /* 185 */ "STATE_WINDOW", - /* 186 */ "SLIDING", - /* 187 */ "FILL", - /* 188 */ "VALUE", - /* 189 */ "NONE", - /* 190 */ "PREV", - /* 191 */ "LINEAR", - /* 192 */ "NEXT", - /* 193 */ "GROUP", - /* 194 */ "HAVING", - /* 195 */ "ORDER", - /* 196 */ "SLIMIT", - /* 197 */ "SOFFSET", - /* 198 */ "LIMIT", - /* 199 */ "OFFSET", - /* 200 */ "ASC", - /* 201 */ "NULLS", - /* 202 */ "cmd", - /* 203 */ "account_options", - /* 204 */ "alter_account_options", - /* 205 */ "literal", - /* 206 */ "alter_account_option", - /* 207 */ "user_name", - /* 208 */ "dnode_endpoint", - /* 209 */ "dnode_host_name", - /* 210 */ "not_exists_opt", - /* 211 */ "db_name", - /* 212 */ "db_options", - /* 213 */ "exists_opt", - /* 214 */ "alter_db_options", - /* 215 */ "integer_list", - /* 216 */ "variable_list", - /* 217 */ "retention_list", - /* 218 */ "alter_db_option", - /* 219 */ "retention", - /* 220 */ "full_table_name", - /* 221 */ "column_def_list", - /* 222 */ "tags_def_opt", - /* 223 */ "table_options", - /* 224 */ "multi_create_clause", - /* 225 */ "tags_def", - /* 226 */ "multi_drop_clause", - /* 227 */ "alter_table_clause", - /* 228 */ "alter_table_options", - /* 229 */ "column_name", - /* 230 */ "type_name", - /* 231 */ "create_subtable_clause", - /* 232 */ "specific_tags_opt", - /* 233 */ "literal_list", - /* 234 */ "drop_table_clause", - /* 235 */ "col_name_list", - /* 236 */ "table_name", - /* 237 */ "column_def", - /* 238 */ "func_name_list", - /* 239 */ "alter_table_option", - /* 240 */ "col_name", - /* 241 */ "db_name_cond_opt", - /* 242 */ "like_pattern_opt", - /* 243 */ "table_name_cond", - /* 244 */ "from_db_opt", - /* 245 */ "func_name", - /* 246 */ "function_name", - /* 247 */ "index_name", - /* 248 */ "index_options", - /* 249 */ "func_list", - /* 250 */ "duration_literal", - /* 251 */ "sliding_opt", - /* 252 */ "func", - /* 253 */ "expression_list", - /* 254 */ "topic_name", - /* 255 */ "query_expression", - /* 256 */ "analyze_opt", - /* 257 */ "explain_options", - /* 258 */ "agg_func_opt", - /* 259 */ "bufsize_opt", - /* 260 */ "stream_name", - /* 261 */ "dnode_list", - /* 262 */ "signed", - /* 263 */ "signed_literal", - /* 264 */ "table_alias", - /* 265 */ "column_alias", - /* 266 */ "expression", - /* 267 */ "pseudo_column", - /* 268 */ "column_reference", - /* 269 */ "subquery", - /* 270 */ "predicate", - /* 271 */ "compare_op", - /* 272 */ "in_op", - /* 273 */ "in_predicate_value", - /* 274 */ "boolean_value_expression", - /* 275 */ "boolean_primary", - /* 276 */ "common_expression", - /* 277 */ "from_clause", - /* 278 */ "table_reference_list", - /* 279 */ "table_reference", - /* 280 */ "table_primary", - /* 281 */ "joined_table", - /* 282 */ "alias_opt", - /* 283 */ "parenthesized_joined_table", - /* 284 */ "join_type", - /* 285 */ "search_condition", - /* 286 */ "query_specification", - /* 287 */ "set_quantifier_opt", - /* 288 */ "select_list", - /* 289 */ "where_clause_opt", - /* 290 */ "partition_by_clause_opt", - /* 291 */ "twindow_clause_opt", - /* 292 */ "group_by_clause_opt", - /* 293 */ "having_clause_opt", - /* 294 */ "select_sublist", - /* 295 */ "select_item", - /* 296 */ "fill_opt", - /* 297 */ "fill_mode", - /* 298 */ "group_by_list", - /* 299 */ "query_expression_body", - /* 300 */ "order_by_clause_opt", - /* 301 */ "slimit_clause_opt", - /* 302 */ "limit_clause_opt", - /* 303 */ "query_primary", - /* 304 */ "sort_specification_list", - /* 305 */ "sort_specification", - /* 306 */ "ordering_specification_opt", - /* 307 */ "null_ordering_opt", + /* 44 */ "BNODE", + /* 45 */ "SNODE", + /* 46 */ "MNODE", + /* 47 */ "DATABASE", + /* 48 */ "USE", + /* 49 */ "IF", + /* 50 */ "NOT", + /* 51 */ "EXISTS", + /* 52 */ "BLOCKS", + /* 53 */ "CACHE", + /* 54 */ "CACHELAST", + /* 55 */ "COMP", + /* 56 */ "DAYS", + /* 57 */ "NK_VARIABLE", + /* 58 */ "FSYNC", + /* 59 */ "MAXROWS", + /* 60 */ "MINROWS", + /* 61 */ "KEEP", + /* 62 */ "PRECISION", + /* 63 */ "QUORUM", + /* 64 */ "REPLICA", + /* 65 */ "TTL", + /* 66 */ "WAL", + /* 67 */ "VGROUPS", + /* 68 */ "SINGLE_STABLE", + /* 69 */ "STREAM_MODE", + /* 70 */ "RETENTIONS", + /* 71 */ "NK_COMMA", + /* 72 */ "NK_COLON", + /* 73 */ "TABLE", + /* 74 */ "NK_LP", + /* 75 */ "NK_RP", + /* 76 */ "STABLE", + /* 77 */ "ADD", + /* 78 */ "COLUMN", + /* 79 */ "MODIFY", + /* 80 */ "RENAME", + /* 81 */ "TAG", + /* 82 */ "SET", + /* 83 */ "NK_EQ", + /* 84 */ "USING", + /* 85 */ "TAGS", + /* 86 */ "NK_DOT", + /* 87 */ "COMMENT", + /* 88 */ "BOOL", + /* 89 */ "TINYINT", + /* 90 */ "SMALLINT", + /* 91 */ "INT", + /* 92 */ "INTEGER", + /* 93 */ "BIGINT", + /* 94 */ "FLOAT", + /* 95 */ "DOUBLE", + /* 96 */ "BINARY", + /* 97 */ "TIMESTAMP", + /* 98 */ "NCHAR", + /* 99 */ "UNSIGNED", + /* 100 */ "JSON", + /* 101 */ "VARCHAR", + /* 102 */ "MEDIUMBLOB", + /* 103 */ "BLOB", + /* 104 */ "VARBINARY", + /* 105 */ "DECIMAL", + /* 106 */ "SMA", + /* 107 */ "ROLLUP", + /* 108 */ "FILE_FACTOR", + /* 109 */ "NK_FLOAT", + /* 110 */ "DELAY", + /* 111 */ "SHOW", + /* 112 */ "DATABASES", + /* 113 */ "TABLES", + /* 114 */ "STABLES", + /* 115 */ "MNODES", + /* 116 */ "MODULES", + /* 117 */ "QNODES", + /* 118 */ "FUNCTIONS", + /* 119 */ "INDEXES", + /* 120 */ "FROM", + /* 121 */ "ACCOUNTS", + /* 122 */ "APPS", + /* 123 */ "CONNECTIONS", + /* 124 */ "LICENCE", + /* 125 */ "QUERIES", + /* 126 */ "SCORES", + /* 127 */ "TOPICS", + /* 128 */ "VARIABLES", + /* 129 */ "BNODES", + /* 130 */ "SNODES", + /* 131 */ "LIKE", + /* 132 */ "INDEX", + /* 133 */ "FULLTEXT", + /* 134 */ "FUNCTION", + /* 135 */ "INTERVAL", + /* 136 */ "TOPIC", + /* 137 */ "AS", + /* 138 */ "DESC", + /* 139 */ "DESCRIBE", + /* 140 */ "RESET", + /* 141 */ "QUERY", + /* 142 */ "EXPLAIN", + /* 143 */ "ANALYZE", + /* 144 */ "VERBOSE", + /* 145 */ "NK_BOOL", + /* 146 */ "RATIO", + /* 147 */ "COMPACT", + /* 148 */ "VNODES", + /* 149 */ "IN", + /* 150 */ "OUTPUTTYPE", + /* 151 */ "AGGREGATE", + /* 152 */ "BUFSIZE", + /* 153 */ "STREAM", + /* 154 */ "INTO", + /* 155 */ "KILL", + /* 156 */ "CONNECTION", + /* 157 */ "MERGE", + /* 158 */ "VGROUP", + /* 159 */ "REDISTRIBUTE", + /* 160 */ "SPLIT", + /* 161 */ "SYNCDB", + /* 162 */ "NULL", + /* 163 */ "FIRST", + /* 164 */ "LAST", + /* 165 */ "NOW", + /* 166 */ "ROWTS", + /* 167 */ "TBNAME", + /* 168 */ "QSTARTTS", + /* 169 */ "QENDTS", + /* 170 */ "WSTARTTS", + /* 171 */ "WENDTS", + /* 172 */ "WDURATION", + /* 173 */ "BETWEEN", + /* 174 */ "IS", + /* 175 */ "NK_LT", + /* 176 */ "NK_GT", + /* 177 */ "NK_LE", + /* 178 */ "NK_GE", + /* 179 */ "NK_NE", + /* 180 */ "MATCH", + /* 181 */ "NMATCH", + /* 182 */ "JOIN", + /* 183 */ "INNER", + /* 184 */ "SELECT", + /* 185 */ "DISTINCT", + /* 186 */ "WHERE", + /* 187 */ "PARTITION", + /* 188 */ "BY", + /* 189 */ "SESSION", + /* 190 */ "STATE_WINDOW", + /* 191 */ "SLIDING", + /* 192 */ "FILL", + /* 193 */ "VALUE", + /* 194 */ "NONE", + /* 195 */ "PREV", + /* 196 */ "LINEAR", + /* 197 */ "NEXT", + /* 198 */ "GROUP", + /* 199 */ "HAVING", + /* 200 */ "ORDER", + /* 201 */ "SLIMIT", + /* 202 */ "SOFFSET", + /* 203 */ "LIMIT", + /* 204 */ "OFFSET", + /* 205 */ "ASC", + /* 206 */ "NULLS", + /* 207 */ "cmd", + /* 208 */ "account_options", + /* 209 */ "alter_account_options", + /* 210 */ "literal", + /* 211 */ "alter_account_option", + /* 212 */ "user_name", + /* 213 */ "dnode_endpoint", + /* 214 */ "dnode_host_name", + /* 215 */ "not_exists_opt", + /* 216 */ "db_name", + /* 217 */ "db_options", + /* 218 */ "exists_opt", + /* 219 */ "alter_db_options", + /* 220 */ "integer_list", + /* 221 */ "variable_list", + /* 222 */ "retention_list", + /* 223 */ "alter_db_option", + /* 224 */ "retention", + /* 225 */ "full_table_name", + /* 226 */ "column_def_list", + /* 227 */ "tags_def_opt", + /* 228 */ "table_options", + /* 229 */ "multi_create_clause", + /* 230 */ "tags_def", + /* 231 */ "multi_drop_clause", + /* 232 */ "alter_table_clause", + /* 233 */ "alter_table_options", + /* 234 */ "column_name", + /* 235 */ "type_name", + /* 236 */ "create_subtable_clause", + /* 237 */ "specific_tags_opt", + /* 238 */ "literal_list", + /* 239 */ "drop_table_clause", + /* 240 */ "col_name_list", + /* 241 */ "table_name", + /* 242 */ "column_def", + /* 243 */ "func_name_list", + /* 244 */ "alter_table_option", + /* 245 */ "col_name", + /* 246 */ "db_name_cond_opt", + /* 247 */ "like_pattern_opt", + /* 248 */ "table_name_cond", + /* 249 */ "from_db_opt", + /* 250 */ "func_name", + /* 251 */ "function_name", + /* 252 */ "index_name", + /* 253 */ "index_options", + /* 254 */ "func_list", + /* 255 */ "duration_literal", + /* 256 */ "sliding_opt", + /* 257 */ "func", + /* 258 */ "expression_list", + /* 259 */ "topic_name", + /* 260 */ "query_expression", + /* 261 */ "analyze_opt", + /* 262 */ "explain_options", + /* 263 */ "agg_func_opt", + /* 264 */ "bufsize_opt", + /* 265 */ "stream_name", + /* 266 */ "dnode_list", + /* 267 */ "signed", + /* 268 */ "signed_literal", + /* 269 */ "table_alias", + /* 270 */ "column_alias", + /* 271 */ "expression", + /* 272 */ "pseudo_column", + /* 273 */ "column_reference", + /* 274 */ "subquery", + /* 275 */ "predicate", + /* 276 */ "compare_op", + /* 277 */ "in_op", + /* 278 */ "in_predicate_value", + /* 279 */ "boolean_value_expression", + /* 280 */ "boolean_primary", + /* 281 */ "common_expression", + /* 282 */ "from_clause", + /* 283 */ "table_reference_list", + /* 284 */ "table_reference", + /* 285 */ "table_primary", + /* 286 */ "joined_table", + /* 287 */ "alias_opt", + /* 288 */ "parenthesized_joined_table", + /* 289 */ "join_type", + /* 290 */ "search_condition", + /* 291 */ "query_specification", + /* 292 */ "set_quantifier_opt", + /* 293 */ "select_list", + /* 294 */ "where_clause_opt", + /* 295 */ "partition_by_clause_opt", + /* 296 */ "twindow_clause_opt", + /* 297 */ "group_by_clause_opt", + /* 298 */ "having_clause_opt", + /* 299 */ "select_sublist", + /* 300 */ "select_item", + /* 301 */ "fill_opt", + /* 302 */ "fill_mode", + /* 303 */ "group_by_list", + /* 304 */ "query_expression_body", + /* 305 */ "order_by_clause_opt", + /* 306 */ "slimit_clause_opt", + /* 307 */ "limit_clause_opt", + /* 308 */ "query_primary", + /* 309 */ "sort_specification_list", + /* 310 */ "sort_specification", + /* 311 */ "ordering_specification_opt", + /* 312 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -1133,363 +1152,371 @@ static const char *const yyRuleName[] = { /* 40 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", /* 41 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", /* 42 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", - /* 43 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", - /* 44 */ "cmd ::= DROP DATABASE exists_opt db_name", - /* 45 */ "cmd ::= USE db_name", - /* 46 */ "cmd ::= ALTER DATABASE db_name alter_db_options", - /* 47 */ "not_exists_opt ::= IF NOT EXISTS", - /* 48 */ "not_exists_opt ::=", - /* 49 */ "exists_opt ::= IF EXISTS", - /* 50 */ "exists_opt ::=", - /* 51 */ "db_options ::=", - /* 52 */ "db_options ::= db_options BLOCKS NK_INTEGER", - /* 53 */ "db_options ::= db_options CACHE NK_INTEGER", - /* 54 */ "db_options ::= db_options CACHELAST NK_INTEGER", - /* 55 */ "db_options ::= db_options COMP NK_INTEGER", - /* 56 */ "db_options ::= db_options DAYS NK_INTEGER", - /* 57 */ "db_options ::= db_options DAYS NK_VARIABLE", - /* 58 */ "db_options ::= db_options FSYNC NK_INTEGER", - /* 59 */ "db_options ::= db_options MAXROWS NK_INTEGER", - /* 60 */ "db_options ::= db_options MINROWS NK_INTEGER", - /* 61 */ "db_options ::= db_options KEEP integer_list", - /* 62 */ "db_options ::= db_options KEEP variable_list", - /* 63 */ "db_options ::= db_options PRECISION NK_STRING", - /* 64 */ "db_options ::= db_options QUORUM NK_INTEGER", - /* 65 */ "db_options ::= db_options REPLICA NK_INTEGER", - /* 66 */ "db_options ::= db_options TTL NK_INTEGER", - /* 67 */ "db_options ::= db_options WAL NK_INTEGER", - /* 68 */ "db_options ::= db_options VGROUPS NK_INTEGER", - /* 69 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", - /* 70 */ "db_options ::= db_options STREAM_MODE NK_INTEGER", - /* 71 */ "db_options ::= db_options RETENTIONS retention_list", - /* 72 */ "alter_db_options ::= alter_db_option", - /* 73 */ "alter_db_options ::= alter_db_options alter_db_option", - /* 74 */ "alter_db_option ::= BLOCKS NK_INTEGER", - /* 75 */ "alter_db_option ::= FSYNC NK_INTEGER", - /* 76 */ "alter_db_option ::= KEEP integer_list", - /* 77 */ "alter_db_option ::= KEEP variable_list", - /* 78 */ "alter_db_option ::= WAL NK_INTEGER", - /* 79 */ "alter_db_option ::= QUORUM NK_INTEGER", - /* 80 */ "alter_db_option ::= CACHELAST NK_INTEGER", - /* 81 */ "alter_db_option ::= REPLICA NK_INTEGER", - /* 82 */ "integer_list ::= NK_INTEGER", - /* 83 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", - /* 84 */ "variable_list ::= NK_VARIABLE", - /* 85 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", - /* 86 */ "retention_list ::= retention", - /* 87 */ "retention_list ::= retention_list NK_COMMA retention", - /* 88 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", - /* 89 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", - /* 90 */ "cmd ::= CREATE TABLE multi_create_clause", - /* 91 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", - /* 92 */ "cmd ::= DROP TABLE multi_drop_clause", - /* 93 */ "cmd ::= DROP STABLE exists_opt full_table_name", - /* 94 */ "cmd ::= ALTER TABLE alter_table_clause", - /* 95 */ "cmd ::= ALTER STABLE alter_table_clause", - /* 96 */ "alter_table_clause ::= full_table_name alter_table_options", - /* 97 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", - /* 98 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", - /* 99 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", - /* 100 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", - /* 101 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", - /* 102 */ "alter_table_clause ::= full_table_name DROP TAG column_name", - /* 103 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", - /* 104 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", - /* 105 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal", - /* 106 */ "multi_create_clause ::= create_subtable_clause", - /* 107 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", - /* 108 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP", - /* 109 */ "multi_drop_clause ::= drop_table_clause", - /* 110 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", - /* 111 */ "drop_table_clause ::= exists_opt full_table_name", - /* 112 */ "specific_tags_opt ::=", - /* 113 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", - /* 114 */ "full_table_name ::= table_name", - /* 115 */ "full_table_name ::= db_name NK_DOT table_name", - /* 116 */ "column_def_list ::= column_def", - /* 117 */ "column_def_list ::= column_def_list NK_COMMA column_def", - /* 118 */ "column_def ::= column_name type_name", - /* 119 */ "column_def ::= column_name type_name COMMENT NK_STRING", - /* 120 */ "type_name ::= BOOL", - /* 121 */ "type_name ::= TINYINT", - /* 122 */ "type_name ::= SMALLINT", - /* 123 */ "type_name ::= INT", - /* 124 */ "type_name ::= INTEGER", - /* 125 */ "type_name ::= BIGINT", - /* 126 */ "type_name ::= FLOAT", - /* 127 */ "type_name ::= DOUBLE", - /* 128 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", - /* 129 */ "type_name ::= TIMESTAMP", - /* 130 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", - /* 131 */ "type_name ::= TINYINT UNSIGNED", - /* 132 */ "type_name ::= SMALLINT UNSIGNED", - /* 133 */ "type_name ::= INT UNSIGNED", - /* 134 */ "type_name ::= BIGINT UNSIGNED", - /* 135 */ "type_name ::= JSON", - /* 136 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", - /* 137 */ "type_name ::= MEDIUMBLOB", - /* 138 */ "type_name ::= BLOB", - /* 139 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", - /* 140 */ "type_name ::= DECIMAL", - /* 141 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", - /* 142 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 143 */ "tags_def_opt ::=", - /* 144 */ "tags_def_opt ::= tags_def", - /* 145 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", - /* 146 */ "table_options ::=", - /* 147 */ "table_options ::= table_options COMMENT NK_STRING", - /* 148 */ "table_options ::= table_options KEEP integer_list", - /* 149 */ "table_options ::= table_options TTL NK_INTEGER", - /* 150 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", - /* 151 */ "table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP", - /* 152 */ "table_options ::= table_options FILE_FACTOR NK_FLOAT", - /* 153 */ "table_options ::= table_options DELAY NK_INTEGER", - /* 154 */ "alter_table_options ::= alter_table_option", - /* 155 */ "alter_table_options ::= alter_table_options alter_table_option", - /* 156 */ "alter_table_option ::= COMMENT NK_STRING", - /* 157 */ "alter_table_option ::= KEEP integer_list", - /* 158 */ "alter_table_option ::= TTL NK_INTEGER", - /* 159 */ "col_name_list ::= col_name", - /* 160 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 161 */ "col_name ::= column_name", - /* 162 */ "cmd ::= SHOW DNODES", - /* 163 */ "cmd ::= SHOW USERS", - /* 164 */ "cmd ::= SHOW DATABASES", - /* 165 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", - /* 166 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", - /* 167 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", - /* 168 */ "cmd ::= SHOW MNODES", - /* 169 */ "cmd ::= SHOW MODULES", - /* 170 */ "cmd ::= SHOW QNODES", - /* 171 */ "cmd ::= SHOW FUNCTIONS", - /* 172 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", - /* 173 */ "cmd ::= SHOW STREAMS", - /* 174 */ "cmd ::= SHOW ACCOUNTS", - /* 175 */ "cmd ::= SHOW APPS", - /* 176 */ "cmd ::= SHOW CONNECTIONS", - /* 177 */ "cmd ::= SHOW LICENCE", - /* 178 */ "cmd ::= SHOW CREATE DATABASE db_name", - /* 179 */ "cmd ::= SHOW CREATE TABLE full_table_name", - /* 180 */ "cmd ::= SHOW CREATE STABLE full_table_name", - /* 181 */ "cmd ::= SHOW QUERIES", - /* 182 */ "cmd ::= SHOW SCORES", - /* 183 */ "cmd ::= SHOW TOPICS", - /* 184 */ "cmd ::= SHOW VARIABLES", - /* 185 */ "db_name_cond_opt ::=", - /* 186 */ "db_name_cond_opt ::= db_name NK_DOT", - /* 187 */ "like_pattern_opt ::=", - /* 188 */ "like_pattern_opt ::= LIKE NK_STRING", - /* 189 */ "table_name_cond ::= table_name", - /* 190 */ "from_db_opt ::=", - /* 191 */ "from_db_opt ::= FROM db_name", - /* 192 */ "func_name_list ::= func_name", - /* 193 */ "func_name_list ::= func_name_list NK_COMMA col_name", - /* 194 */ "func_name ::= function_name", - /* 195 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", - /* 196 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP", - /* 197 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name", - /* 198 */ "index_options ::=", - /* 199 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", - /* 200 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", - /* 201 */ "func_list ::= func", - /* 202 */ "func_list ::= func_list NK_COMMA func", - /* 203 */ "func ::= function_name NK_LP expression_list NK_RP", - /* 204 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", - /* 205 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name", - /* 206 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 207 */ "cmd ::= DESC full_table_name", - /* 208 */ "cmd ::= DESCRIBE full_table_name", - /* 209 */ "cmd ::= RESET QUERY CACHE", - /* 210 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", - /* 211 */ "analyze_opt ::=", - /* 212 */ "analyze_opt ::= ANALYZE", - /* 213 */ "explain_options ::=", - /* 214 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 215 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 216 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", - /* 217 */ "cmd ::= CREATE agg_func_opt FUNCTION function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", - /* 218 */ "cmd ::= DROP FUNCTION function_name", - /* 219 */ "agg_func_opt ::=", - /* 220 */ "agg_func_opt ::= AGGREGATE", - /* 221 */ "bufsize_opt ::=", - /* 222 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", - /* 223 */ "cmd ::= CREATE STREAM stream_name INTO table_name AS query_expression", - /* 224 */ "cmd ::= DROP STREAM stream_name", - /* 225 */ "cmd ::= KILL CONNECTION NK_INTEGER", - /* 226 */ "cmd ::= KILL QUERY NK_INTEGER", - /* 227 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", - /* 228 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", - /* 229 */ "cmd ::= SPLIT VGROUP NK_INTEGER", - /* 230 */ "dnode_list ::= DNODE NK_INTEGER", - /* 231 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", - /* 232 */ "cmd ::= SYNCDB db_name REPLICA", - /* 233 */ "cmd ::= query_expression", - /* 234 */ "literal ::= NK_INTEGER", - /* 235 */ "literal ::= NK_FLOAT", - /* 236 */ "literal ::= NK_STRING", - /* 237 */ "literal ::= NK_BOOL", - /* 238 */ "literal ::= TIMESTAMP NK_STRING", - /* 239 */ "literal ::= duration_literal", - /* 240 */ "literal ::= NULL", - /* 241 */ "duration_literal ::= NK_VARIABLE", - /* 242 */ "signed ::= NK_INTEGER", - /* 243 */ "signed ::= NK_PLUS NK_INTEGER", - /* 244 */ "signed ::= NK_MINUS NK_INTEGER", - /* 245 */ "signed ::= NK_FLOAT", - /* 246 */ "signed ::= NK_PLUS NK_FLOAT", - /* 247 */ "signed ::= NK_MINUS NK_FLOAT", - /* 248 */ "signed_literal ::= signed", - /* 249 */ "signed_literal ::= NK_STRING", - /* 250 */ "signed_literal ::= NK_BOOL", - /* 251 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 252 */ "signed_literal ::= duration_literal", - /* 253 */ "signed_literal ::= NULL", - /* 254 */ "literal_list ::= signed_literal", - /* 255 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 256 */ "db_name ::= NK_ID", - /* 257 */ "table_name ::= NK_ID", - /* 258 */ "column_name ::= NK_ID", - /* 259 */ "function_name ::= NK_ID", - /* 260 */ "function_name ::= FIRST", - /* 261 */ "function_name ::= LAST", - /* 262 */ "table_alias ::= NK_ID", - /* 263 */ "column_alias ::= NK_ID", - /* 264 */ "user_name ::= NK_ID", - /* 265 */ "index_name ::= NK_ID", - /* 266 */ "topic_name ::= NK_ID", - /* 267 */ "stream_name ::= NK_ID", - /* 268 */ "expression ::= literal", - /* 269 */ "expression ::= pseudo_column", - /* 270 */ "expression ::= column_reference", - /* 271 */ "expression ::= function_name NK_LP expression_list NK_RP", - /* 272 */ "expression ::= function_name NK_LP NK_STAR NK_RP", - /* 273 */ "expression ::= subquery", - /* 274 */ "expression ::= NK_LP expression NK_RP", - /* 275 */ "expression ::= NK_PLUS expression", - /* 276 */ "expression ::= NK_MINUS expression", - /* 277 */ "expression ::= expression NK_PLUS expression", - /* 278 */ "expression ::= expression NK_MINUS expression", - /* 279 */ "expression ::= expression NK_STAR expression", - /* 280 */ "expression ::= expression NK_SLASH expression", - /* 281 */ "expression ::= expression NK_REM expression", - /* 282 */ "expression_list ::= expression", - /* 283 */ "expression_list ::= expression_list NK_COMMA expression", - /* 284 */ "column_reference ::= column_name", - /* 285 */ "column_reference ::= table_name NK_DOT column_name", - /* 286 */ "pseudo_column ::= NOW", - /* 287 */ "pseudo_column ::= ROWTS", - /* 288 */ "pseudo_column ::= TBNAME", - /* 289 */ "pseudo_column ::= QSTARTTS", - /* 290 */ "pseudo_column ::= QENDTS", - /* 291 */ "pseudo_column ::= WSTARTTS", - /* 292 */ "pseudo_column ::= WENDTS", - /* 293 */ "pseudo_column ::= WDURATION", - /* 294 */ "predicate ::= expression compare_op expression", - /* 295 */ "predicate ::= expression BETWEEN expression AND expression", - /* 296 */ "predicate ::= expression NOT BETWEEN expression AND expression", - /* 297 */ "predicate ::= expression IS NULL", - /* 298 */ "predicate ::= expression IS NOT NULL", - /* 299 */ "predicate ::= expression in_op in_predicate_value", - /* 300 */ "compare_op ::= NK_LT", - /* 301 */ "compare_op ::= NK_GT", - /* 302 */ "compare_op ::= NK_LE", - /* 303 */ "compare_op ::= NK_GE", - /* 304 */ "compare_op ::= NK_NE", - /* 305 */ "compare_op ::= NK_EQ", - /* 306 */ "compare_op ::= LIKE", - /* 307 */ "compare_op ::= NOT LIKE", - /* 308 */ "compare_op ::= MATCH", - /* 309 */ "compare_op ::= NMATCH", - /* 310 */ "in_op ::= IN", - /* 311 */ "in_op ::= NOT IN", - /* 312 */ "in_predicate_value ::= NK_LP expression_list NK_RP", - /* 313 */ "boolean_value_expression ::= boolean_primary", - /* 314 */ "boolean_value_expression ::= NOT boolean_primary", - /* 315 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 316 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 317 */ "boolean_primary ::= predicate", - /* 318 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 319 */ "common_expression ::= expression", - /* 320 */ "common_expression ::= boolean_value_expression", - /* 321 */ "from_clause ::= FROM table_reference_list", - /* 322 */ "table_reference_list ::= table_reference", - /* 323 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 324 */ "table_reference ::= table_primary", - /* 325 */ "table_reference ::= joined_table", - /* 326 */ "table_primary ::= table_name alias_opt", - /* 327 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 328 */ "table_primary ::= subquery alias_opt", - /* 329 */ "table_primary ::= parenthesized_joined_table", - /* 330 */ "alias_opt ::=", - /* 331 */ "alias_opt ::= table_alias", - /* 332 */ "alias_opt ::= AS table_alias", - /* 333 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 334 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 335 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 336 */ "join_type ::=", - /* 337 */ "join_type ::= INNER", - /* 338 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt", - /* 339 */ "set_quantifier_opt ::=", - /* 340 */ "set_quantifier_opt ::= DISTINCT", - /* 341 */ "set_quantifier_opt ::= ALL", - /* 342 */ "select_list ::= NK_STAR", - /* 343 */ "select_list ::= select_sublist", - /* 344 */ "select_sublist ::= select_item", - /* 345 */ "select_sublist ::= select_sublist NK_COMMA select_item", - /* 346 */ "select_item ::= common_expression", - /* 347 */ "select_item ::= common_expression column_alias", - /* 348 */ "select_item ::= common_expression AS column_alias", - /* 349 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 350 */ "where_clause_opt ::=", - /* 351 */ "where_clause_opt ::= WHERE search_condition", - /* 352 */ "partition_by_clause_opt ::=", - /* 353 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 354 */ "twindow_clause_opt ::=", - /* 355 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 356 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", - /* 357 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 358 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 359 */ "sliding_opt ::=", - /* 360 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 361 */ "fill_opt ::=", - /* 362 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 363 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 364 */ "fill_mode ::= NONE", - /* 365 */ "fill_mode ::= PREV", - /* 366 */ "fill_mode ::= NULL", - /* 367 */ "fill_mode ::= LINEAR", - /* 368 */ "fill_mode ::= NEXT", - /* 369 */ "group_by_clause_opt ::=", - /* 370 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 371 */ "group_by_list ::= expression", - /* 372 */ "group_by_list ::= group_by_list NK_COMMA expression", - /* 373 */ "having_clause_opt ::=", - /* 374 */ "having_clause_opt ::= HAVING search_condition", - /* 375 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 376 */ "query_expression_body ::= query_primary", - /* 377 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 378 */ "query_primary ::= query_specification", - /* 379 */ "order_by_clause_opt ::=", - /* 380 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 381 */ "slimit_clause_opt ::=", - /* 382 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 383 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 384 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 385 */ "limit_clause_opt ::=", - /* 386 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 387 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 388 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 389 */ "subquery ::= NK_LP query_expression NK_RP", - /* 390 */ "search_condition ::= common_expression", - /* 391 */ "sort_specification_list ::= sort_specification", - /* 392 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 393 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 394 */ "ordering_specification_opt ::=", - /* 395 */ "ordering_specification_opt ::= ASC", - /* 396 */ "ordering_specification_opt ::= DESC", - /* 397 */ "null_ordering_opt ::=", - /* 398 */ "null_ordering_opt ::= NULLS FIRST", - /* 399 */ "null_ordering_opt ::= NULLS LAST", + /* 43 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER", + /* 44 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER", + /* 45 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER", + /* 46 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER", + /* 47 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER", + /* 48 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER", + /* 49 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", + /* 50 */ "cmd ::= DROP DATABASE exists_opt db_name", + /* 51 */ "cmd ::= USE db_name", + /* 52 */ "cmd ::= ALTER DATABASE db_name alter_db_options", + /* 53 */ "not_exists_opt ::= IF NOT EXISTS", + /* 54 */ "not_exists_opt ::=", + /* 55 */ "exists_opt ::= IF EXISTS", + /* 56 */ "exists_opt ::=", + /* 57 */ "db_options ::=", + /* 58 */ "db_options ::= db_options BLOCKS NK_INTEGER", + /* 59 */ "db_options ::= db_options CACHE NK_INTEGER", + /* 60 */ "db_options ::= db_options CACHELAST NK_INTEGER", + /* 61 */ "db_options ::= db_options COMP NK_INTEGER", + /* 62 */ "db_options ::= db_options DAYS NK_INTEGER", + /* 63 */ "db_options ::= db_options DAYS NK_VARIABLE", + /* 64 */ "db_options ::= db_options FSYNC NK_INTEGER", + /* 65 */ "db_options ::= db_options MAXROWS NK_INTEGER", + /* 66 */ "db_options ::= db_options MINROWS NK_INTEGER", + /* 67 */ "db_options ::= db_options KEEP integer_list", + /* 68 */ "db_options ::= db_options KEEP variable_list", + /* 69 */ "db_options ::= db_options PRECISION NK_STRING", + /* 70 */ "db_options ::= db_options QUORUM NK_INTEGER", + /* 71 */ "db_options ::= db_options REPLICA NK_INTEGER", + /* 72 */ "db_options ::= db_options TTL NK_INTEGER", + /* 73 */ "db_options ::= db_options WAL NK_INTEGER", + /* 74 */ "db_options ::= db_options VGROUPS NK_INTEGER", + /* 75 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", + /* 76 */ "db_options ::= db_options STREAM_MODE NK_INTEGER", + /* 77 */ "db_options ::= db_options RETENTIONS retention_list", + /* 78 */ "alter_db_options ::= alter_db_option", + /* 79 */ "alter_db_options ::= alter_db_options alter_db_option", + /* 80 */ "alter_db_option ::= BLOCKS NK_INTEGER", + /* 81 */ "alter_db_option ::= FSYNC NK_INTEGER", + /* 82 */ "alter_db_option ::= KEEP integer_list", + /* 83 */ "alter_db_option ::= KEEP variable_list", + /* 84 */ "alter_db_option ::= WAL NK_INTEGER", + /* 85 */ "alter_db_option ::= QUORUM NK_INTEGER", + /* 86 */ "alter_db_option ::= CACHELAST NK_INTEGER", + /* 87 */ "alter_db_option ::= REPLICA NK_INTEGER", + /* 88 */ "integer_list ::= NK_INTEGER", + /* 89 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", + /* 90 */ "variable_list ::= NK_VARIABLE", + /* 91 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", + /* 92 */ "retention_list ::= retention", + /* 93 */ "retention_list ::= retention_list NK_COMMA retention", + /* 94 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", + /* 95 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", + /* 96 */ "cmd ::= CREATE TABLE multi_create_clause", + /* 97 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", + /* 98 */ "cmd ::= DROP TABLE multi_drop_clause", + /* 99 */ "cmd ::= DROP STABLE exists_opt full_table_name", + /* 100 */ "cmd ::= ALTER TABLE alter_table_clause", + /* 101 */ "cmd ::= ALTER STABLE alter_table_clause", + /* 102 */ "alter_table_clause ::= full_table_name alter_table_options", + /* 103 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", + /* 104 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", + /* 105 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", + /* 106 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", + /* 107 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", + /* 108 */ "alter_table_clause ::= full_table_name DROP TAG column_name", + /* 109 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", + /* 110 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", + /* 111 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal", + /* 112 */ "multi_create_clause ::= create_subtable_clause", + /* 113 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", + /* 114 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP", + /* 115 */ "multi_drop_clause ::= drop_table_clause", + /* 116 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", + /* 117 */ "drop_table_clause ::= exists_opt full_table_name", + /* 118 */ "specific_tags_opt ::=", + /* 119 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", + /* 120 */ "full_table_name ::= table_name", + /* 121 */ "full_table_name ::= db_name NK_DOT table_name", + /* 122 */ "column_def_list ::= column_def", + /* 123 */ "column_def_list ::= column_def_list NK_COMMA column_def", + /* 124 */ "column_def ::= column_name type_name", + /* 125 */ "column_def ::= column_name type_name COMMENT NK_STRING", + /* 126 */ "type_name ::= BOOL", + /* 127 */ "type_name ::= TINYINT", + /* 128 */ "type_name ::= SMALLINT", + /* 129 */ "type_name ::= INT", + /* 130 */ "type_name ::= INTEGER", + /* 131 */ "type_name ::= BIGINT", + /* 132 */ "type_name ::= FLOAT", + /* 133 */ "type_name ::= DOUBLE", + /* 134 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", + /* 135 */ "type_name ::= TIMESTAMP", + /* 136 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", + /* 137 */ "type_name ::= TINYINT UNSIGNED", + /* 138 */ "type_name ::= SMALLINT UNSIGNED", + /* 139 */ "type_name ::= INT UNSIGNED", + /* 140 */ "type_name ::= BIGINT UNSIGNED", + /* 141 */ "type_name ::= JSON", + /* 142 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", + /* 143 */ "type_name ::= MEDIUMBLOB", + /* 144 */ "type_name ::= BLOB", + /* 145 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", + /* 146 */ "type_name ::= DECIMAL", + /* 147 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", + /* 148 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 149 */ "tags_def_opt ::=", + /* 150 */ "tags_def_opt ::= tags_def", + /* 151 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", + /* 152 */ "table_options ::=", + /* 153 */ "table_options ::= table_options COMMENT NK_STRING", + /* 154 */ "table_options ::= table_options KEEP integer_list", + /* 155 */ "table_options ::= table_options TTL NK_INTEGER", + /* 156 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 157 */ "table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP", + /* 158 */ "table_options ::= table_options FILE_FACTOR NK_FLOAT", + /* 159 */ "table_options ::= table_options DELAY NK_INTEGER", + /* 160 */ "alter_table_options ::= alter_table_option", + /* 161 */ "alter_table_options ::= alter_table_options alter_table_option", + /* 162 */ "alter_table_option ::= COMMENT NK_STRING", + /* 163 */ "alter_table_option ::= KEEP integer_list", + /* 164 */ "alter_table_option ::= TTL NK_INTEGER", + /* 165 */ "col_name_list ::= col_name", + /* 166 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 167 */ "col_name ::= column_name", + /* 168 */ "cmd ::= SHOW DNODES", + /* 169 */ "cmd ::= SHOW USERS", + /* 170 */ "cmd ::= SHOW DATABASES", + /* 171 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", + /* 172 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", + /* 173 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", + /* 174 */ "cmd ::= SHOW MNODES", + /* 175 */ "cmd ::= SHOW MODULES", + /* 176 */ "cmd ::= SHOW QNODES", + /* 177 */ "cmd ::= SHOW FUNCTIONS", + /* 178 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", + /* 179 */ "cmd ::= SHOW STREAMS", + /* 180 */ "cmd ::= SHOW ACCOUNTS", + /* 181 */ "cmd ::= SHOW APPS", + /* 182 */ "cmd ::= SHOW CONNECTIONS", + /* 183 */ "cmd ::= SHOW LICENCE", + /* 184 */ "cmd ::= SHOW CREATE DATABASE db_name", + /* 185 */ "cmd ::= SHOW CREATE TABLE full_table_name", + /* 186 */ "cmd ::= SHOW CREATE STABLE full_table_name", + /* 187 */ "cmd ::= SHOW QUERIES", + /* 188 */ "cmd ::= SHOW SCORES", + /* 189 */ "cmd ::= SHOW TOPICS", + /* 190 */ "cmd ::= SHOW VARIABLES", + /* 191 */ "cmd ::= SHOW BNODES", + /* 192 */ "cmd ::= SHOW SNODES", + /* 193 */ "db_name_cond_opt ::=", + /* 194 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 195 */ "like_pattern_opt ::=", + /* 196 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 197 */ "table_name_cond ::= table_name", + /* 198 */ "from_db_opt ::=", + /* 199 */ "from_db_opt ::= FROM db_name", + /* 200 */ "func_name_list ::= func_name", + /* 201 */ "func_name_list ::= func_name_list NK_COMMA col_name", + /* 202 */ "func_name ::= function_name", + /* 203 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", + /* 204 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP", + /* 205 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name", + /* 206 */ "index_options ::=", + /* 207 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", + /* 208 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", + /* 209 */ "func_list ::= func", + /* 210 */ "func_list ::= func_list NK_COMMA func", + /* 211 */ "func ::= function_name NK_LP expression_list NK_RP", + /* 212 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", + /* 213 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name", + /* 214 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 215 */ "cmd ::= DESC full_table_name", + /* 216 */ "cmd ::= DESCRIBE full_table_name", + /* 217 */ "cmd ::= RESET QUERY CACHE", + /* 218 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", + /* 219 */ "analyze_opt ::=", + /* 220 */ "analyze_opt ::= ANALYZE", + /* 221 */ "explain_options ::=", + /* 222 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 223 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 224 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", + /* 225 */ "cmd ::= CREATE agg_func_opt FUNCTION function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", + /* 226 */ "cmd ::= DROP FUNCTION function_name", + /* 227 */ "agg_func_opt ::=", + /* 228 */ "agg_func_opt ::= AGGREGATE", + /* 229 */ "bufsize_opt ::=", + /* 230 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", + /* 231 */ "cmd ::= CREATE STREAM stream_name INTO table_name AS query_expression", + /* 232 */ "cmd ::= DROP STREAM stream_name", + /* 233 */ "cmd ::= KILL CONNECTION NK_INTEGER", + /* 234 */ "cmd ::= KILL QUERY NK_INTEGER", + /* 235 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", + /* 236 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", + /* 237 */ "cmd ::= SPLIT VGROUP NK_INTEGER", + /* 238 */ "dnode_list ::= DNODE NK_INTEGER", + /* 239 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", + /* 240 */ "cmd ::= SYNCDB db_name REPLICA", + /* 241 */ "cmd ::= query_expression", + /* 242 */ "literal ::= NK_INTEGER", + /* 243 */ "literal ::= NK_FLOAT", + /* 244 */ "literal ::= NK_STRING", + /* 245 */ "literal ::= NK_BOOL", + /* 246 */ "literal ::= TIMESTAMP NK_STRING", + /* 247 */ "literal ::= duration_literal", + /* 248 */ "literal ::= NULL", + /* 249 */ "duration_literal ::= NK_VARIABLE", + /* 250 */ "signed ::= NK_INTEGER", + /* 251 */ "signed ::= NK_PLUS NK_INTEGER", + /* 252 */ "signed ::= NK_MINUS NK_INTEGER", + /* 253 */ "signed ::= NK_FLOAT", + /* 254 */ "signed ::= NK_PLUS NK_FLOAT", + /* 255 */ "signed ::= NK_MINUS NK_FLOAT", + /* 256 */ "signed_literal ::= signed", + /* 257 */ "signed_literal ::= NK_STRING", + /* 258 */ "signed_literal ::= NK_BOOL", + /* 259 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 260 */ "signed_literal ::= duration_literal", + /* 261 */ "signed_literal ::= NULL", + /* 262 */ "literal_list ::= signed_literal", + /* 263 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 264 */ "db_name ::= NK_ID", + /* 265 */ "table_name ::= NK_ID", + /* 266 */ "column_name ::= NK_ID", + /* 267 */ "function_name ::= NK_ID", + /* 268 */ "function_name ::= FIRST", + /* 269 */ "function_name ::= LAST", + /* 270 */ "table_alias ::= NK_ID", + /* 271 */ "column_alias ::= NK_ID", + /* 272 */ "user_name ::= NK_ID", + /* 273 */ "index_name ::= NK_ID", + /* 274 */ "topic_name ::= NK_ID", + /* 275 */ "stream_name ::= NK_ID", + /* 276 */ "expression ::= literal", + /* 277 */ "expression ::= pseudo_column", + /* 278 */ "expression ::= column_reference", + /* 279 */ "expression ::= function_name NK_LP expression_list NK_RP", + /* 280 */ "expression ::= function_name NK_LP NK_STAR NK_RP", + /* 281 */ "expression ::= subquery", + /* 282 */ "expression ::= NK_LP expression NK_RP", + /* 283 */ "expression ::= NK_PLUS expression", + /* 284 */ "expression ::= NK_MINUS expression", + /* 285 */ "expression ::= expression NK_PLUS expression", + /* 286 */ "expression ::= expression NK_MINUS expression", + /* 287 */ "expression ::= expression NK_STAR expression", + /* 288 */ "expression ::= expression NK_SLASH expression", + /* 289 */ "expression ::= expression NK_REM expression", + /* 290 */ "expression_list ::= expression", + /* 291 */ "expression_list ::= expression_list NK_COMMA expression", + /* 292 */ "column_reference ::= column_name", + /* 293 */ "column_reference ::= table_name NK_DOT column_name", + /* 294 */ "pseudo_column ::= NOW", + /* 295 */ "pseudo_column ::= ROWTS", + /* 296 */ "pseudo_column ::= TBNAME", + /* 297 */ "pseudo_column ::= QSTARTTS", + /* 298 */ "pseudo_column ::= QENDTS", + /* 299 */ "pseudo_column ::= WSTARTTS", + /* 300 */ "pseudo_column ::= WENDTS", + /* 301 */ "pseudo_column ::= WDURATION", + /* 302 */ "predicate ::= expression compare_op expression", + /* 303 */ "predicate ::= expression BETWEEN expression AND expression", + /* 304 */ "predicate ::= expression NOT BETWEEN expression AND expression", + /* 305 */ "predicate ::= expression IS NULL", + /* 306 */ "predicate ::= expression IS NOT NULL", + /* 307 */ "predicate ::= expression in_op in_predicate_value", + /* 308 */ "compare_op ::= NK_LT", + /* 309 */ "compare_op ::= NK_GT", + /* 310 */ "compare_op ::= NK_LE", + /* 311 */ "compare_op ::= NK_GE", + /* 312 */ "compare_op ::= NK_NE", + /* 313 */ "compare_op ::= NK_EQ", + /* 314 */ "compare_op ::= LIKE", + /* 315 */ "compare_op ::= NOT LIKE", + /* 316 */ "compare_op ::= MATCH", + /* 317 */ "compare_op ::= NMATCH", + /* 318 */ "in_op ::= IN", + /* 319 */ "in_op ::= NOT IN", + /* 320 */ "in_predicate_value ::= NK_LP expression_list NK_RP", + /* 321 */ "boolean_value_expression ::= boolean_primary", + /* 322 */ "boolean_value_expression ::= NOT boolean_primary", + /* 323 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 324 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 325 */ "boolean_primary ::= predicate", + /* 326 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 327 */ "common_expression ::= expression", + /* 328 */ "common_expression ::= boolean_value_expression", + /* 329 */ "from_clause ::= FROM table_reference_list", + /* 330 */ "table_reference_list ::= table_reference", + /* 331 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 332 */ "table_reference ::= table_primary", + /* 333 */ "table_reference ::= joined_table", + /* 334 */ "table_primary ::= table_name alias_opt", + /* 335 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 336 */ "table_primary ::= subquery alias_opt", + /* 337 */ "table_primary ::= parenthesized_joined_table", + /* 338 */ "alias_opt ::=", + /* 339 */ "alias_opt ::= table_alias", + /* 340 */ "alias_opt ::= AS table_alias", + /* 341 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 342 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 343 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 344 */ "join_type ::=", + /* 345 */ "join_type ::= INNER", + /* 346 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt", + /* 347 */ "set_quantifier_opt ::=", + /* 348 */ "set_quantifier_opt ::= DISTINCT", + /* 349 */ "set_quantifier_opt ::= ALL", + /* 350 */ "select_list ::= NK_STAR", + /* 351 */ "select_list ::= select_sublist", + /* 352 */ "select_sublist ::= select_item", + /* 353 */ "select_sublist ::= select_sublist NK_COMMA select_item", + /* 354 */ "select_item ::= common_expression", + /* 355 */ "select_item ::= common_expression column_alias", + /* 356 */ "select_item ::= common_expression AS column_alias", + /* 357 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 358 */ "where_clause_opt ::=", + /* 359 */ "where_clause_opt ::= WHERE search_condition", + /* 360 */ "partition_by_clause_opt ::=", + /* 361 */ "partition_by_clause_opt ::= PARTITION BY expression_list", + /* 362 */ "twindow_clause_opt ::=", + /* 363 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 364 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", + /* 365 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 366 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 367 */ "sliding_opt ::=", + /* 368 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 369 */ "fill_opt ::=", + /* 370 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 371 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 372 */ "fill_mode ::= NONE", + /* 373 */ "fill_mode ::= PREV", + /* 374 */ "fill_mode ::= NULL", + /* 375 */ "fill_mode ::= LINEAR", + /* 376 */ "fill_mode ::= NEXT", + /* 377 */ "group_by_clause_opt ::=", + /* 378 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 379 */ "group_by_list ::= expression", + /* 380 */ "group_by_list ::= group_by_list NK_COMMA expression", + /* 381 */ "having_clause_opt ::=", + /* 382 */ "having_clause_opt ::= HAVING search_condition", + /* 383 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 384 */ "query_expression_body ::= query_primary", + /* 385 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 386 */ "query_primary ::= query_specification", + /* 387 */ "order_by_clause_opt ::=", + /* 388 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 389 */ "slimit_clause_opt ::=", + /* 390 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 391 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 392 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 393 */ "limit_clause_opt ::=", + /* 394 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 395 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 396 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 397 */ "subquery ::= NK_LP query_expression NK_RP", + /* 398 */ "search_condition ::= common_expression", + /* 399 */ "sort_specification_list ::= sort_specification", + /* 400 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 401 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 402 */ "ordering_specification_opt ::=", + /* 403 */ "ordering_specification_opt ::= ASC", + /* 404 */ "ordering_specification_opt ::= DESC", + /* 405 */ "null_ordering_opt ::=", + /* 406 */ "null_ordering_opt ::= NULLS FIRST", + /* 407 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -1616,156 +1643,156 @@ static void yy_destructor( */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ - case 202: /* cmd */ - case 205: /* literal */ - case 212: /* db_options */ - case 214: /* alter_db_options */ - case 219: /* retention */ - case 220: /* full_table_name */ - case 223: /* table_options */ - case 227: /* alter_table_clause */ - case 228: /* alter_table_options */ - case 231: /* create_subtable_clause */ - case 234: /* drop_table_clause */ - case 237: /* column_def */ - case 240: /* col_name */ - case 241: /* db_name_cond_opt */ - case 242: /* like_pattern_opt */ - case 243: /* table_name_cond */ - case 244: /* from_db_opt */ - case 245: /* func_name */ - case 248: /* index_options */ - case 250: /* duration_literal */ - case 251: /* sliding_opt */ - case 252: /* func */ - case 255: /* query_expression */ - case 257: /* explain_options */ - case 262: /* signed */ - case 263: /* signed_literal */ - case 266: /* expression */ - case 267: /* pseudo_column */ - case 268: /* column_reference */ - case 269: /* subquery */ - case 270: /* predicate */ - case 273: /* in_predicate_value */ - case 274: /* boolean_value_expression */ - case 275: /* boolean_primary */ - case 276: /* common_expression */ - case 277: /* from_clause */ - case 278: /* table_reference_list */ - case 279: /* table_reference */ - case 280: /* table_primary */ - case 281: /* joined_table */ - case 283: /* parenthesized_joined_table */ - case 285: /* search_condition */ - case 286: /* query_specification */ - case 289: /* where_clause_opt */ - case 291: /* twindow_clause_opt */ - case 293: /* having_clause_opt */ - case 295: /* select_item */ - case 296: /* fill_opt */ - case 299: /* query_expression_body */ - case 301: /* slimit_clause_opt */ - case 302: /* limit_clause_opt */ - case 303: /* query_primary */ - case 305: /* sort_specification */ + case 207: /* cmd */ + case 210: /* literal */ + case 217: /* db_options */ + case 219: /* alter_db_options */ + case 224: /* retention */ + case 225: /* full_table_name */ + case 228: /* table_options */ + case 232: /* alter_table_clause */ + case 233: /* alter_table_options */ + case 236: /* create_subtable_clause */ + case 239: /* drop_table_clause */ + case 242: /* column_def */ + case 245: /* col_name */ + case 246: /* db_name_cond_opt */ + case 247: /* like_pattern_opt */ + case 248: /* table_name_cond */ + case 249: /* from_db_opt */ + case 250: /* func_name */ + case 253: /* index_options */ + case 255: /* duration_literal */ + case 256: /* sliding_opt */ + case 257: /* func */ + case 260: /* query_expression */ + case 262: /* explain_options */ + case 267: /* signed */ + case 268: /* signed_literal */ + case 271: /* expression */ + case 272: /* pseudo_column */ + case 273: /* column_reference */ + case 274: /* subquery */ + case 275: /* predicate */ + case 278: /* in_predicate_value */ + case 279: /* boolean_value_expression */ + case 280: /* boolean_primary */ + case 281: /* common_expression */ + case 282: /* from_clause */ + case 283: /* table_reference_list */ + case 284: /* table_reference */ + case 285: /* table_primary */ + case 286: /* joined_table */ + case 288: /* parenthesized_joined_table */ + case 290: /* search_condition */ + case 291: /* query_specification */ + case 294: /* where_clause_opt */ + case 296: /* twindow_clause_opt */ + case 298: /* having_clause_opt */ + case 300: /* select_item */ + case 301: /* fill_opt */ + case 304: /* query_expression_body */ + case 306: /* slimit_clause_opt */ + case 307: /* limit_clause_opt */ + case 308: /* query_primary */ + case 310: /* sort_specification */ { - nodesDestroyNode((yypminor->yy168)); + nodesDestroyNode((yypminor->yy564)); } break; - case 203: /* account_options */ - case 204: /* alter_account_options */ - case 206: /* alter_account_option */ - case 259: /* bufsize_opt */ + case 208: /* account_options */ + case 209: /* alter_account_options */ + case 211: /* alter_account_option */ + case 264: /* bufsize_opt */ { } break; - case 207: /* user_name */ - case 208: /* dnode_endpoint */ - case 209: /* dnode_host_name */ - case 211: /* db_name */ - case 229: /* column_name */ - case 236: /* table_name */ - case 246: /* function_name */ - case 247: /* index_name */ - case 254: /* topic_name */ - case 260: /* stream_name */ - case 264: /* table_alias */ - case 265: /* column_alias */ - case 282: /* alias_opt */ + case 212: /* user_name */ + case 213: /* dnode_endpoint */ + case 214: /* dnode_host_name */ + case 216: /* db_name */ + case 234: /* column_name */ + case 241: /* table_name */ + case 251: /* function_name */ + case 252: /* index_name */ + case 259: /* topic_name */ + case 265: /* stream_name */ + case 269: /* table_alias */ + case 270: /* column_alias */ + case 287: /* alias_opt */ { } break; - case 210: /* not_exists_opt */ - case 213: /* exists_opt */ - case 256: /* analyze_opt */ - case 258: /* agg_func_opt */ - case 287: /* set_quantifier_opt */ + case 215: /* not_exists_opt */ + case 218: /* exists_opt */ + case 261: /* analyze_opt */ + case 263: /* agg_func_opt */ + case 292: /* set_quantifier_opt */ { } break; - case 215: /* integer_list */ - case 216: /* variable_list */ - case 217: /* retention_list */ - case 221: /* column_def_list */ - case 222: /* tags_def_opt */ - case 224: /* multi_create_clause */ - case 225: /* tags_def */ - case 226: /* multi_drop_clause */ - case 232: /* specific_tags_opt */ - case 233: /* literal_list */ - case 235: /* col_name_list */ - case 238: /* func_name_list */ - case 249: /* func_list */ - case 253: /* expression_list */ - case 261: /* dnode_list */ - case 288: /* select_list */ - case 290: /* partition_by_clause_opt */ - case 292: /* group_by_clause_opt */ - case 294: /* select_sublist */ - case 298: /* group_by_list */ - case 300: /* order_by_clause_opt */ - case 304: /* sort_specification_list */ + case 220: /* integer_list */ + case 221: /* variable_list */ + case 222: /* retention_list */ + case 226: /* column_def_list */ + case 227: /* tags_def_opt */ + case 229: /* multi_create_clause */ + case 230: /* tags_def */ + case 231: /* multi_drop_clause */ + case 237: /* specific_tags_opt */ + case 238: /* literal_list */ + case 240: /* col_name_list */ + case 243: /* func_name_list */ + case 254: /* func_list */ + case 258: /* expression_list */ + case 266: /* dnode_list */ + case 293: /* select_list */ + case 295: /* partition_by_clause_opt */ + case 297: /* group_by_clause_opt */ + case 299: /* select_sublist */ + case 303: /* group_by_list */ + case 305: /* order_by_clause_opt */ + case 309: /* sort_specification_list */ { - nodesDestroyList((yypminor->yy376)); + nodesDestroyList((yypminor->yy476)); } break; - case 218: /* alter_db_option */ - case 239: /* alter_table_option */ + case 223: /* alter_db_option */ + case 244: /* alter_table_option */ { } break; - case 230: /* type_name */ + case 235: /* type_name */ { } break; - case 271: /* compare_op */ - case 272: /* in_op */ + case 276: /* compare_op */ + case 277: /* in_op */ { } break; - case 284: /* join_type */ + case 289: /* join_type */ { } break; - case 297: /* fill_mode */ + case 302: /* fill_mode */ { } break; - case 306: /* ordering_specification_opt */ + case 311: /* ordering_specification_opt */ { } break; - case 307: /* null_ordering_opt */ + case 312: /* null_ordering_opt */ { } @@ -2064,406 +2091,414 @@ 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[] = { - { 202, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ - { 202, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ - { 203, 0 }, /* (2) account_options ::= */ - { 203, -3 }, /* (3) account_options ::= account_options PPS literal */ - { 203, -3 }, /* (4) account_options ::= account_options TSERIES literal */ - { 203, -3 }, /* (5) account_options ::= account_options STORAGE literal */ - { 203, -3 }, /* (6) account_options ::= account_options STREAMS literal */ - { 203, -3 }, /* (7) account_options ::= account_options QTIME literal */ - { 203, -3 }, /* (8) account_options ::= account_options DBS literal */ - { 203, -3 }, /* (9) account_options ::= account_options USERS literal */ - { 203, -3 }, /* (10) account_options ::= account_options CONNS literal */ - { 203, -3 }, /* (11) account_options ::= account_options STATE literal */ - { 204, -1 }, /* (12) alter_account_options ::= alter_account_option */ - { 204, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ - { 206, -2 }, /* (14) alter_account_option ::= PASS literal */ - { 206, -2 }, /* (15) alter_account_option ::= PPS literal */ - { 206, -2 }, /* (16) alter_account_option ::= TSERIES literal */ - { 206, -2 }, /* (17) alter_account_option ::= STORAGE literal */ - { 206, -2 }, /* (18) alter_account_option ::= STREAMS literal */ - { 206, -2 }, /* (19) alter_account_option ::= QTIME literal */ - { 206, -2 }, /* (20) alter_account_option ::= DBS literal */ - { 206, -2 }, /* (21) alter_account_option ::= USERS literal */ - { 206, -2 }, /* (22) alter_account_option ::= CONNS literal */ - { 206, -2 }, /* (23) alter_account_option ::= STATE literal */ - { 202, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ - { 202, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ - { 202, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ - { 202, -3 }, /* (27) cmd ::= DROP USER user_name */ - { 202, -3 }, /* (28) cmd ::= CREATE DNODE dnode_endpoint */ - { 202, -5 }, /* (29) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ - { 202, -3 }, /* (30) cmd ::= DROP DNODE NK_INTEGER */ - { 202, -3 }, /* (31) cmd ::= DROP DNODE dnode_endpoint */ - { 202, -4 }, /* (32) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ - { 202, -5 }, /* (33) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ - { 202, -4 }, /* (34) cmd ::= ALTER ALL DNODES NK_STRING */ - { 202, -5 }, /* (35) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ - { 208, -1 }, /* (36) dnode_endpoint ::= NK_STRING */ - { 209, -1 }, /* (37) dnode_host_name ::= NK_ID */ - { 209, -1 }, /* (38) dnode_host_name ::= NK_IPTOKEN */ - { 202, -3 }, /* (39) cmd ::= ALTER LOCAL NK_STRING */ - { 202, -4 }, /* (40) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - { 202, -5 }, /* (41) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - { 202, -5 }, /* (42) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - { 202, -5 }, /* (43) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - { 202, -4 }, /* (44) cmd ::= DROP DATABASE exists_opt db_name */ - { 202, -2 }, /* (45) cmd ::= USE db_name */ - { 202, -4 }, /* (46) cmd ::= ALTER DATABASE db_name alter_db_options */ - { 210, -3 }, /* (47) not_exists_opt ::= IF NOT EXISTS */ - { 210, 0 }, /* (48) not_exists_opt ::= */ - { 213, -2 }, /* (49) exists_opt ::= IF EXISTS */ - { 213, 0 }, /* (50) exists_opt ::= */ - { 212, 0 }, /* (51) db_options ::= */ - { 212, -3 }, /* (52) db_options ::= db_options BLOCKS NK_INTEGER */ - { 212, -3 }, /* (53) db_options ::= db_options CACHE NK_INTEGER */ - { 212, -3 }, /* (54) db_options ::= db_options CACHELAST NK_INTEGER */ - { 212, -3 }, /* (55) db_options ::= db_options COMP NK_INTEGER */ - { 212, -3 }, /* (56) db_options ::= db_options DAYS NK_INTEGER */ - { 212, -3 }, /* (57) db_options ::= db_options DAYS NK_VARIABLE */ - { 212, -3 }, /* (58) db_options ::= db_options FSYNC NK_INTEGER */ - { 212, -3 }, /* (59) db_options ::= db_options MAXROWS NK_INTEGER */ - { 212, -3 }, /* (60) db_options ::= db_options MINROWS NK_INTEGER */ - { 212, -3 }, /* (61) db_options ::= db_options KEEP integer_list */ - { 212, -3 }, /* (62) db_options ::= db_options KEEP variable_list */ - { 212, -3 }, /* (63) db_options ::= db_options PRECISION NK_STRING */ - { 212, -3 }, /* (64) db_options ::= db_options QUORUM NK_INTEGER */ - { 212, -3 }, /* (65) db_options ::= db_options REPLICA NK_INTEGER */ - { 212, -3 }, /* (66) db_options ::= db_options TTL NK_INTEGER */ - { 212, -3 }, /* (67) db_options ::= db_options WAL NK_INTEGER */ - { 212, -3 }, /* (68) db_options ::= db_options VGROUPS NK_INTEGER */ - { 212, -3 }, /* (69) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - { 212, -3 }, /* (70) db_options ::= db_options STREAM_MODE NK_INTEGER */ - { 212, -3 }, /* (71) db_options ::= db_options RETENTIONS retention_list */ - { 214, -1 }, /* (72) alter_db_options ::= alter_db_option */ - { 214, -2 }, /* (73) alter_db_options ::= alter_db_options alter_db_option */ - { 218, -2 }, /* (74) alter_db_option ::= BLOCKS NK_INTEGER */ - { 218, -2 }, /* (75) alter_db_option ::= FSYNC NK_INTEGER */ - { 218, -2 }, /* (76) alter_db_option ::= KEEP integer_list */ - { 218, -2 }, /* (77) alter_db_option ::= KEEP variable_list */ - { 218, -2 }, /* (78) alter_db_option ::= WAL NK_INTEGER */ - { 218, -2 }, /* (79) alter_db_option ::= QUORUM NK_INTEGER */ - { 218, -2 }, /* (80) alter_db_option ::= CACHELAST NK_INTEGER */ - { 218, -2 }, /* (81) alter_db_option ::= REPLICA NK_INTEGER */ - { 215, -1 }, /* (82) integer_list ::= NK_INTEGER */ - { 215, -3 }, /* (83) integer_list ::= integer_list NK_COMMA NK_INTEGER */ - { 216, -1 }, /* (84) variable_list ::= NK_VARIABLE */ - { 216, -3 }, /* (85) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ - { 217, -1 }, /* (86) retention_list ::= retention */ - { 217, -3 }, /* (87) retention_list ::= retention_list NK_COMMA retention */ - { 219, -3 }, /* (88) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ - { 202, -9 }, /* (89) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - { 202, -3 }, /* (90) cmd ::= CREATE TABLE multi_create_clause */ - { 202, -9 }, /* (91) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - { 202, -3 }, /* (92) cmd ::= DROP TABLE multi_drop_clause */ - { 202, -4 }, /* (93) cmd ::= DROP STABLE exists_opt full_table_name */ - { 202, -3 }, /* (94) cmd ::= ALTER TABLE alter_table_clause */ - { 202, -3 }, /* (95) cmd ::= ALTER STABLE alter_table_clause */ - { 227, -2 }, /* (96) alter_table_clause ::= full_table_name alter_table_options */ - { 227, -5 }, /* (97) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - { 227, -4 }, /* (98) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - { 227, -5 }, /* (99) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - { 227, -5 }, /* (100) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - { 227, -5 }, /* (101) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - { 227, -4 }, /* (102) alter_table_clause ::= full_table_name DROP TAG column_name */ - { 227, -5 }, /* (103) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - { 227, -5 }, /* (104) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - { 227, -6 }, /* (105) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ - { 224, -1 }, /* (106) multi_create_clause ::= create_subtable_clause */ - { 224, -2 }, /* (107) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 231, -9 }, /* (108) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ - { 226, -1 }, /* (109) multi_drop_clause ::= drop_table_clause */ - { 226, -2 }, /* (110) multi_drop_clause ::= multi_drop_clause drop_table_clause */ - { 234, -2 }, /* (111) drop_table_clause ::= exists_opt full_table_name */ - { 232, 0 }, /* (112) specific_tags_opt ::= */ - { 232, -3 }, /* (113) specific_tags_opt ::= NK_LP col_name_list NK_RP */ - { 220, -1 }, /* (114) full_table_name ::= table_name */ - { 220, -3 }, /* (115) full_table_name ::= db_name NK_DOT table_name */ - { 221, -1 }, /* (116) column_def_list ::= column_def */ - { 221, -3 }, /* (117) column_def_list ::= column_def_list NK_COMMA column_def */ - { 237, -2 }, /* (118) column_def ::= column_name type_name */ - { 237, -4 }, /* (119) column_def ::= column_name type_name COMMENT NK_STRING */ - { 230, -1 }, /* (120) type_name ::= BOOL */ - { 230, -1 }, /* (121) type_name ::= TINYINT */ - { 230, -1 }, /* (122) type_name ::= SMALLINT */ - { 230, -1 }, /* (123) type_name ::= INT */ - { 230, -1 }, /* (124) type_name ::= INTEGER */ - { 230, -1 }, /* (125) type_name ::= BIGINT */ - { 230, -1 }, /* (126) type_name ::= FLOAT */ - { 230, -1 }, /* (127) type_name ::= DOUBLE */ - { 230, -4 }, /* (128) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - { 230, -1 }, /* (129) type_name ::= TIMESTAMP */ - { 230, -4 }, /* (130) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - { 230, -2 }, /* (131) type_name ::= TINYINT UNSIGNED */ - { 230, -2 }, /* (132) type_name ::= SMALLINT UNSIGNED */ - { 230, -2 }, /* (133) type_name ::= INT UNSIGNED */ - { 230, -2 }, /* (134) type_name ::= BIGINT UNSIGNED */ - { 230, -1 }, /* (135) type_name ::= JSON */ - { 230, -4 }, /* (136) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - { 230, -1 }, /* (137) type_name ::= MEDIUMBLOB */ - { 230, -1 }, /* (138) type_name ::= BLOB */ - { 230, -4 }, /* (139) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - { 230, -1 }, /* (140) type_name ::= DECIMAL */ - { 230, -4 }, /* (141) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - { 230, -6 }, /* (142) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - { 222, 0 }, /* (143) tags_def_opt ::= */ - { 222, -1 }, /* (144) tags_def_opt ::= tags_def */ - { 225, -4 }, /* (145) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - { 223, 0 }, /* (146) table_options ::= */ - { 223, -3 }, /* (147) table_options ::= table_options COMMENT NK_STRING */ - { 223, -3 }, /* (148) table_options ::= table_options KEEP integer_list */ - { 223, -3 }, /* (149) table_options ::= table_options TTL NK_INTEGER */ - { 223, -5 }, /* (150) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - { 223, -5 }, /* (151) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ - { 223, -3 }, /* (152) table_options ::= table_options FILE_FACTOR NK_FLOAT */ - { 223, -3 }, /* (153) table_options ::= table_options DELAY NK_INTEGER */ - { 228, -1 }, /* (154) alter_table_options ::= alter_table_option */ - { 228, -2 }, /* (155) alter_table_options ::= alter_table_options alter_table_option */ - { 239, -2 }, /* (156) alter_table_option ::= COMMENT NK_STRING */ - { 239, -2 }, /* (157) alter_table_option ::= KEEP integer_list */ - { 239, -2 }, /* (158) alter_table_option ::= TTL NK_INTEGER */ - { 235, -1 }, /* (159) col_name_list ::= col_name */ - { 235, -3 }, /* (160) col_name_list ::= col_name_list NK_COMMA col_name */ - { 240, -1 }, /* (161) col_name ::= column_name */ - { 202, -2 }, /* (162) cmd ::= SHOW DNODES */ - { 202, -2 }, /* (163) cmd ::= SHOW USERS */ - { 202, -2 }, /* (164) cmd ::= SHOW DATABASES */ - { 202, -4 }, /* (165) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - { 202, -4 }, /* (166) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - { 202, -3 }, /* (167) cmd ::= SHOW db_name_cond_opt VGROUPS */ - { 202, -2 }, /* (168) cmd ::= SHOW MNODES */ - { 202, -2 }, /* (169) cmd ::= SHOW MODULES */ - { 202, -2 }, /* (170) cmd ::= SHOW QNODES */ - { 202, -2 }, /* (171) cmd ::= SHOW FUNCTIONS */ - { 202, -5 }, /* (172) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - { 202, -2 }, /* (173) cmd ::= SHOW STREAMS */ - { 202, -2 }, /* (174) cmd ::= SHOW ACCOUNTS */ - { 202, -2 }, /* (175) cmd ::= SHOW APPS */ - { 202, -2 }, /* (176) cmd ::= SHOW CONNECTIONS */ - { 202, -2 }, /* (177) cmd ::= SHOW LICENCE */ - { 202, -4 }, /* (178) cmd ::= SHOW CREATE DATABASE db_name */ - { 202, -4 }, /* (179) cmd ::= SHOW CREATE TABLE full_table_name */ - { 202, -4 }, /* (180) cmd ::= SHOW CREATE STABLE full_table_name */ - { 202, -2 }, /* (181) cmd ::= SHOW QUERIES */ - { 202, -2 }, /* (182) cmd ::= SHOW SCORES */ - { 202, -2 }, /* (183) cmd ::= SHOW TOPICS */ - { 202, -2 }, /* (184) cmd ::= SHOW VARIABLES */ - { 241, 0 }, /* (185) db_name_cond_opt ::= */ - { 241, -2 }, /* (186) db_name_cond_opt ::= db_name NK_DOT */ - { 242, 0 }, /* (187) like_pattern_opt ::= */ - { 242, -2 }, /* (188) like_pattern_opt ::= LIKE NK_STRING */ - { 243, -1 }, /* (189) table_name_cond ::= table_name */ - { 244, 0 }, /* (190) from_db_opt ::= */ - { 244, -2 }, /* (191) from_db_opt ::= FROM db_name */ - { 238, -1 }, /* (192) func_name_list ::= func_name */ - { 238, -3 }, /* (193) func_name_list ::= func_name_list NK_COMMA col_name */ - { 245, -1 }, /* (194) func_name ::= function_name */ - { 202, -8 }, /* (195) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ - { 202, -10 }, /* (196) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ - { 202, -6 }, /* (197) cmd ::= DROP INDEX exists_opt index_name ON table_name */ - { 248, 0 }, /* (198) index_options ::= */ - { 248, -9 }, /* (199) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ - { 248, -11 }, /* (200) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ - { 249, -1 }, /* (201) func_list ::= func */ - { 249, -3 }, /* (202) func_list ::= func_list NK_COMMA func */ - { 252, -4 }, /* (203) func ::= function_name NK_LP expression_list NK_RP */ - { 202, -6 }, /* (204) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ - { 202, -6 }, /* (205) cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ - { 202, -4 }, /* (206) cmd ::= DROP TOPIC exists_opt topic_name */ - { 202, -2 }, /* (207) cmd ::= DESC full_table_name */ - { 202, -2 }, /* (208) cmd ::= DESCRIBE full_table_name */ - { 202, -3 }, /* (209) cmd ::= RESET QUERY CACHE */ - { 202, -4 }, /* (210) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ - { 256, 0 }, /* (211) analyze_opt ::= */ - { 256, -1 }, /* (212) analyze_opt ::= ANALYZE */ - { 257, 0 }, /* (213) explain_options ::= */ - { 257, -3 }, /* (214) explain_options ::= explain_options VERBOSE NK_BOOL */ - { 257, -3 }, /* (215) explain_options ::= explain_options RATIO NK_FLOAT */ - { 202, -6 }, /* (216) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ - { 202, -9 }, /* (217) cmd ::= CREATE agg_func_opt FUNCTION function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ - { 202, -3 }, /* (218) cmd ::= DROP FUNCTION function_name */ - { 258, 0 }, /* (219) agg_func_opt ::= */ - { 258, -1 }, /* (220) agg_func_opt ::= AGGREGATE */ - { 259, 0 }, /* (221) bufsize_opt ::= */ - { 259, -2 }, /* (222) bufsize_opt ::= BUFSIZE NK_INTEGER */ - { 202, -7 }, /* (223) cmd ::= CREATE STREAM stream_name INTO table_name AS query_expression */ - { 202, -3 }, /* (224) cmd ::= DROP STREAM stream_name */ - { 202, -3 }, /* (225) cmd ::= KILL CONNECTION NK_INTEGER */ - { 202, -3 }, /* (226) cmd ::= KILL QUERY NK_INTEGER */ - { 202, -4 }, /* (227) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - { 202, -4 }, /* (228) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - { 202, -3 }, /* (229) cmd ::= SPLIT VGROUP NK_INTEGER */ - { 261, -2 }, /* (230) dnode_list ::= DNODE NK_INTEGER */ - { 261, -3 }, /* (231) dnode_list ::= dnode_list DNODE NK_INTEGER */ - { 202, -3 }, /* (232) cmd ::= SYNCDB db_name REPLICA */ - { 202, -1 }, /* (233) cmd ::= query_expression */ - { 205, -1 }, /* (234) literal ::= NK_INTEGER */ - { 205, -1 }, /* (235) literal ::= NK_FLOAT */ - { 205, -1 }, /* (236) literal ::= NK_STRING */ - { 205, -1 }, /* (237) literal ::= NK_BOOL */ - { 205, -2 }, /* (238) literal ::= TIMESTAMP NK_STRING */ - { 205, -1 }, /* (239) literal ::= duration_literal */ - { 205, -1 }, /* (240) literal ::= NULL */ - { 250, -1 }, /* (241) duration_literal ::= NK_VARIABLE */ - { 262, -1 }, /* (242) signed ::= NK_INTEGER */ - { 262, -2 }, /* (243) signed ::= NK_PLUS NK_INTEGER */ - { 262, -2 }, /* (244) signed ::= NK_MINUS NK_INTEGER */ - { 262, -1 }, /* (245) signed ::= NK_FLOAT */ - { 262, -2 }, /* (246) signed ::= NK_PLUS NK_FLOAT */ - { 262, -2 }, /* (247) signed ::= NK_MINUS NK_FLOAT */ - { 263, -1 }, /* (248) signed_literal ::= signed */ - { 263, -1 }, /* (249) signed_literal ::= NK_STRING */ - { 263, -1 }, /* (250) signed_literal ::= NK_BOOL */ - { 263, -2 }, /* (251) signed_literal ::= TIMESTAMP NK_STRING */ - { 263, -1 }, /* (252) signed_literal ::= duration_literal */ - { 263, -1 }, /* (253) signed_literal ::= NULL */ - { 233, -1 }, /* (254) literal_list ::= signed_literal */ - { 233, -3 }, /* (255) literal_list ::= literal_list NK_COMMA signed_literal */ - { 211, -1 }, /* (256) db_name ::= NK_ID */ - { 236, -1 }, /* (257) table_name ::= NK_ID */ - { 229, -1 }, /* (258) column_name ::= NK_ID */ - { 246, -1 }, /* (259) function_name ::= NK_ID */ - { 246, -1 }, /* (260) function_name ::= FIRST */ - { 246, -1 }, /* (261) function_name ::= LAST */ - { 264, -1 }, /* (262) table_alias ::= NK_ID */ - { 265, -1 }, /* (263) column_alias ::= NK_ID */ - { 207, -1 }, /* (264) user_name ::= NK_ID */ - { 247, -1 }, /* (265) index_name ::= NK_ID */ - { 254, -1 }, /* (266) topic_name ::= NK_ID */ - { 260, -1 }, /* (267) stream_name ::= NK_ID */ - { 266, -1 }, /* (268) expression ::= literal */ - { 266, -1 }, /* (269) expression ::= pseudo_column */ - { 266, -1 }, /* (270) expression ::= column_reference */ - { 266, -4 }, /* (271) expression ::= function_name NK_LP expression_list NK_RP */ - { 266, -4 }, /* (272) expression ::= function_name NK_LP NK_STAR NK_RP */ - { 266, -1 }, /* (273) expression ::= subquery */ - { 266, -3 }, /* (274) expression ::= NK_LP expression NK_RP */ - { 266, -2 }, /* (275) expression ::= NK_PLUS expression */ - { 266, -2 }, /* (276) expression ::= NK_MINUS expression */ - { 266, -3 }, /* (277) expression ::= expression NK_PLUS expression */ - { 266, -3 }, /* (278) expression ::= expression NK_MINUS expression */ - { 266, -3 }, /* (279) expression ::= expression NK_STAR expression */ - { 266, -3 }, /* (280) expression ::= expression NK_SLASH expression */ - { 266, -3 }, /* (281) expression ::= expression NK_REM expression */ - { 253, -1 }, /* (282) expression_list ::= expression */ - { 253, -3 }, /* (283) expression_list ::= expression_list NK_COMMA expression */ - { 268, -1 }, /* (284) column_reference ::= column_name */ - { 268, -3 }, /* (285) column_reference ::= table_name NK_DOT column_name */ - { 267, -1 }, /* (286) pseudo_column ::= NOW */ - { 267, -1 }, /* (287) pseudo_column ::= ROWTS */ - { 267, -1 }, /* (288) pseudo_column ::= TBNAME */ - { 267, -1 }, /* (289) pseudo_column ::= QSTARTTS */ - { 267, -1 }, /* (290) pseudo_column ::= QENDTS */ - { 267, -1 }, /* (291) pseudo_column ::= WSTARTTS */ - { 267, -1 }, /* (292) pseudo_column ::= WENDTS */ - { 267, -1 }, /* (293) pseudo_column ::= WDURATION */ - { 270, -3 }, /* (294) predicate ::= expression compare_op expression */ - { 270, -5 }, /* (295) predicate ::= expression BETWEEN expression AND expression */ - { 270, -6 }, /* (296) predicate ::= expression NOT BETWEEN expression AND expression */ - { 270, -3 }, /* (297) predicate ::= expression IS NULL */ - { 270, -4 }, /* (298) predicate ::= expression IS NOT NULL */ - { 270, -3 }, /* (299) predicate ::= expression in_op in_predicate_value */ - { 271, -1 }, /* (300) compare_op ::= NK_LT */ - { 271, -1 }, /* (301) compare_op ::= NK_GT */ - { 271, -1 }, /* (302) compare_op ::= NK_LE */ - { 271, -1 }, /* (303) compare_op ::= NK_GE */ - { 271, -1 }, /* (304) compare_op ::= NK_NE */ - { 271, -1 }, /* (305) compare_op ::= NK_EQ */ - { 271, -1 }, /* (306) compare_op ::= LIKE */ - { 271, -2 }, /* (307) compare_op ::= NOT LIKE */ - { 271, -1 }, /* (308) compare_op ::= MATCH */ - { 271, -1 }, /* (309) compare_op ::= NMATCH */ - { 272, -1 }, /* (310) in_op ::= IN */ - { 272, -2 }, /* (311) in_op ::= NOT IN */ - { 273, -3 }, /* (312) in_predicate_value ::= NK_LP expression_list NK_RP */ - { 274, -1 }, /* (313) boolean_value_expression ::= boolean_primary */ - { 274, -2 }, /* (314) boolean_value_expression ::= NOT boolean_primary */ - { 274, -3 }, /* (315) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 274, -3 }, /* (316) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 275, -1 }, /* (317) boolean_primary ::= predicate */ - { 275, -3 }, /* (318) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 276, -1 }, /* (319) common_expression ::= expression */ - { 276, -1 }, /* (320) common_expression ::= boolean_value_expression */ - { 277, -2 }, /* (321) from_clause ::= FROM table_reference_list */ - { 278, -1 }, /* (322) table_reference_list ::= table_reference */ - { 278, -3 }, /* (323) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 279, -1 }, /* (324) table_reference ::= table_primary */ - { 279, -1 }, /* (325) table_reference ::= joined_table */ - { 280, -2 }, /* (326) table_primary ::= table_name alias_opt */ - { 280, -4 }, /* (327) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 280, -2 }, /* (328) table_primary ::= subquery alias_opt */ - { 280, -1 }, /* (329) table_primary ::= parenthesized_joined_table */ - { 282, 0 }, /* (330) alias_opt ::= */ - { 282, -1 }, /* (331) alias_opt ::= table_alias */ - { 282, -2 }, /* (332) alias_opt ::= AS table_alias */ - { 283, -3 }, /* (333) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 283, -3 }, /* (334) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 281, -6 }, /* (335) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 284, 0 }, /* (336) join_type ::= */ - { 284, -1 }, /* (337) join_type ::= INNER */ - { 286, -9 }, /* (338) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - { 287, 0 }, /* (339) set_quantifier_opt ::= */ - { 287, -1 }, /* (340) set_quantifier_opt ::= DISTINCT */ - { 287, -1 }, /* (341) set_quantifier_opt ::= ALL */ - { 288, -1 }, /* (342) select_list ::= NK_STAR */ - { 288, -1 }, /* (343) select_list ::= select_sublist */ - { 294, -1 }, /* (344) select_sublist ::= select_item */ - { 294, -3 }, /* (345) select_sublist ::= select_sublist NK_COMMA select_item */ - { 295, -1 }, /* (346) select_item ::= common_expression */ - { 295, -2 }, /* (347) select_item ::= common_expression column_alias */ - { 295, -3 }, /* (348) select_item ::= common_expression AS column_alias */ - { 295, -3 }, /* (349) select_item ::= table_name NK_DOT NK_STAR */ - { 289, 0 }, /* (350) where_clause_opt ::= */ - { 289, -2 }, /* (351) where_clause_opt ::= WHERE search_condition */ - { 290, 0 }, /* (352) partition_by_clause_opt ::= */ - { 290, -3 }, /* (353) partition_by_clause_opt ::= PARTITION BY expression_list */ - { 291, 0 }, /* (354) twindow_clause_opt ::= */ - { 291, -6 }, /* (355) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - { 291, -4 }, /* (356) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ - { 291, -6 }, /* (357) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 291, -8 }, /* (358) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 251, 0 }, /* (359) sliding_opt ::= */ - { 251, -4 }, /* (360) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 296, 0 }, /* (361) fill_opt ::= */ - { 296, -4 }, /* (362) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 296, -6 }, /* (363) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 297, -1 }, /* (364) fill_mode ::= NONE */ - { 297, -1 }, /* (365) fill_mode ::= PREV */ - { 297, -1 }, /* (366) fill_mode ::= NULL */ - { 297, -1 }, /* (367) fill_mode ::= LINEAR */ - { 297, -1 }, /* (368) fill_mode ::= NEXT */ - { 292, 0 }, /* (369) group_by_clause_opt ::= */ - { 292, -3 }, /* (370) group_by_clause_opt ::= GROUP BY group_by_list */ - { 298, -1 }, /* (371) group_by_list ::= expression */ - { 298, -3 }, /* (372) group_by_list ::= group_by_list NK_COMMA expression */ - { 293, 0 }, /* (373) having_clause_opt ::= */ - { 293, -2 }, /* (374) having_clause_opt ::= HAVING search_condition */ - { 255, -4 }, /* (375) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 299, -1 }, /* (376) query_expression_body ::= query_primary */ - { 299, -4 }, /* (377) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - { 303, -1 }, /* (378) query_primary ::= query_specification */ - { 300, 0 }, /* (379) order_by_clause_opt ::= */ - { 300, -3 }, /* (380) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 301, 0 }, /* (381) slimit_clause_opt ::= */ - { 301, -2 }, /* (382) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 301, -4 }, /* (383) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 301, -4 }, /* (384) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 302, 0 }, /* (385) limit_clause_opt ::= */ - { 302, -2 }, /* (386) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 302, -4 }, /* (387) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 302, -4 }, /* (388) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 269, -3 }, /* (389) subquery ::= NK_LP query_expression NK_RP */ - { 285, -1 }, /* (390) search_condition ::= common_expression */ - { 304, -1 }, /* (391) sort_specification_list ::= sort_specification */ - { 304, -3 }, /* (392) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 305, -3 }, /* (393) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - { 306, 0 }, /* (394) ordering_specification_opt ::= */ - { 306, -1 }, /* (395) ordering_specification_opt ::= ASC */ - { 306, -1 }, /* (396) ordering_specification_opt ::= DESC */ - { 307, 0 }, /* (397) null_ordering_opt ::= */ - { 307, -2 }, /* (398) null_ordering_opt ::= NULLS FIRST */ - { 307, -2 }, /* (399) null_ordering_opt ::= NULLS LAST */ + { 207, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ + { 207, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ + { 208, 0 }, /* (2) account_options ::= */ + { 208, -3 }, /* (3) account_options ::= account_options PPS literal */ + { 208, -3 }, /* (4) account_options ::= account_options TSERIES literal */ + { 208, -3 }, /* (5) account_options ::= account_options STORAGE literal */ + { 208, -3 }, /* (6) account_options ::= account_options STREAMS literal */ + { 208, -3 }, /* (7) account_options ::= account_options QTIME literal */ + { 208, -3 }, /* (8) account_options ::= account_options DBS literal */ + { 208, -3 }, /* (9) account_options ::= account_options USERS literal */ + { 208, -3 }, /* (10) account_options ::= account_options CONNS literal */ + { 208, -3 }, /* (11) account_options ::= account_options STATE literal */ + { 209, -1 }, /* (12) alter_account_options ::= alter_account_option */ + { 209, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ + { 211, -2 }, /* (14) alter_account_option ::= PASS literal */ + { 211, -2 }, /* (15) alter_account_option ::= PPS literal */ + { 211, -2 }, /* (16) alter_account_option ::= TSERIES literal */ + { 211, -2 }, /* (17) alter_account_option ::= STORAGE literal */ + { 211, -2 }, /* (18) alter_account_option ::= STREAMS literal */ + { 211, -2 }, /* (19) alter_account_option ::= QTIME literal */ + { 211, -2 }, /* (20) alter_account_option ::= DBS literal */ + { 211, -2 }, /* (21) alter_account_option ::= USERS literal */ + { 211, -2 }, /* (22) alter_account_option ::= CONNS literal */ + { 211, -2 }, /* (23) alter_account_option ::= STATE literal */ + { 207, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ + { 207, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ + { 207, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ + { 207, -3 }, /* (27) cmd ::= DROP USER user_name */ + { 207, -3 }, /* (28) cmd ::= CREATE DNODE dnode_endpoint */ + { 207, -5 }, /* (29) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ + { 207, -3 }, /* (30) cmd ::= DROP DNODE NK_INTEGER */ + { 207, -3 }, /* (31) cmd ::= DROP DNODE dnode_endpoint */ + { 207, -4 }, /* (32) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + { 207, -5 }, /* (33) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + { 207, -4 }, /* (34) cmd ::= ALTER ALL DNODES NK_STRING */ + { 207, -5 }, /* (35) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + { 213, -1 }, /* (36) dnode_endpoint ::= NK_STRING */ + { 214, -1 }, /* (37) dnode_host_name ::= NK_ID */ + { 214, -1 }, /* (38) dnode_host_name ::= NK_IPTOKEN */ + { 207, -3 }, /* (39) cmd ::= ALTER LOCAL NK_STRING */ + { 207, -4 }, /* (40) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + { 207, -5 }, /* (41) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + { 207, -5 }, /* (42) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + { 207, -5 }, /* (43) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + { 207, -5 }, /* (44) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + { 207, -5 }, /* (45) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + { 207, -5 }, /* (46) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + { 207, -5 }, /* (47) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + { 207, -5 }, /* (48) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + { 207, -5 }, /* (49) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + { 207, -4 }, /* (50) cmd ::= DROP DATABASE exists_opt db_name */ + { 207, -2 }, /* (51) cmd ::= USE db_name */ + { 207, -4 }, /* (52) cmd ::= ALTER DATABASE db_name alter_db_options */ + { 215, -3 }, /* (53) not_exists_opt ::= IF NOT EXISTS */ + { 215, 0 }, /* (54) not_exists_opt ::= */ + { 218, -2 }, /* (55) exists_opt ::= IF EXISTS */ + { 218, 0 }, /* (56) exists_opt ::= */ + { 217, 0 }, /* (57) db_options ::= */ + { 217, -3 }, /* (58) db_options ::= db_options BLOCKS NK_INTEGER */ + { 217, -3 }, /* (59) db_options ::= db_options CACHE NK_INTEGER */ + { 217, -3 }, /* (60) db_options ::= db_options CACHELAST NK_INTEGER */ + { 217, -3 }, /* (61) db_options ::= db_options COMP NK_INTEGER */ + { 217, -3 }, /* (62) db_options ::= db_options DAYS NK_INTEGER */ + { 217, -3 }, /* (63) db_options ::= db_options DAYS NK_VARIABLE */ + { 217, -3 }, /* (64) db_options ::= db_options FSYNC NK_INTEGER */ + { 217, -3 }, /* (65) db_options ::= db_options MAXROWS NK_INTEGER */ + { 217, -3 }, /* (66) db_options ::= db_options MINROWS NK_INTEGER */ + { 217, -3 }, /* (67) db_options ::= db_options KEEP integer_list */ + { 217, -3 }, /* (68) db_options ::= db_options KEEP variable_list */ + { 217, -3 }, /* (69) db_options ::= db_options PRECISION NK_STRING */ + { 217, -3 }, /* (70) db_options ::= db_options QUORUM NK_INTEGER */ + { 217, -3 }, /* (71) db_options ::= db_options REPLICA NK_INTEGER */ + { 217, -3 }, /* (72) db_options ::= db_options TTL NK_INTEGER */ + { 217, -3 }, /* (73) db_options ::= db_options WAL NK_INTEGER */ + { 217, -3 }, /* (74) db_options ::= db_options VGROUPS NK_INTEGER */ + { 217, -3 }, /* (75) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + { 217, -3 }, /* (76) db_options ::= db_options STREAM_MODE NK_INTEGER */ + { 217, -3 }, /* (77) db_options ::= db_options RETENTIONS retention_list */ + { 219, -1 }, /* (78) alter_db_options ::= alter_db_option */ + { 219, -2 }, /* (79) alter_db_options ::= alter_db_options alter_db_option */ + { 223, -2 }, /* (80) alter_db_option ::= BLOCKS NK_INTEGER */ + { 223, -2 }, /* (81) alter_db_option ::= FSYNC NK_INTEGER */ + { 223, -2 }, /* (82) alter_db_option ::= KEEP integer_list */ + { 223, -2 }, /* (83) alter_db_option ::= KEEP variable_list */ + { 223, -2 }, /* (84) alter_db_option ::= WAL NK_INTEGER */ + { 223, -2 }, /* (85) alter_db_option ::= QUORUM NK_INTEGER */ + { 223, -2 }, /* (86) alter_db_option ::= CACHELAST NK_INTEGER */ + { 223, -2 }, /* (87) alter_db_option ::= REPLICA NK_INTEGER */ + { 220, -1 }, /* (88) integer_list ::= NK_INTEGER */ + { 220, -3 }, /* (89) integer_list ::= integer_list NK_COMMA NK_INTEGER */ + { 221, -1 }, /* (90) variable_list ::= NK_VARIABLE */ + { 221, -3 }, /* (91) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + { 222, -1 }, /* (92) retention_list ::= retention */ + { 222, -3 }, /* (93) retention_list ::= retention_list NK_COMMA retention */ + { 224, -3 }, /* (94) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + { 207, -9 }, /* (95) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + { 207, -3 }, /* (96) cmd ::= CREATE TABLE multi_create_clause */ + { 207, -9 }, /* (97) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + { 207, -3 }, /* (98) cmd ::= DROP TABLE multi_drop_clause */ + { 207, -4 }, /* (99) cmd ::= DROP STABLE exists_opt full_table_name */ + { 207, -3 }, /* (100) cmd ::= ALTER TABLE alter_table_clause */ + { 207, -3 }, /* (101) cmd ::= ALTER STABLE alter_table_clause */ + { 232, -2 }, /* (102) alter_table_clause ::= full_table_name alter_table_options */ + { 232, -5 }, /* (103) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + { 232, -4 }, /* (104) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + { 232, -5 }, /* (105) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + { 232, -5 }, /* (106) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + { 232, -5 }, /* (107) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + { 232, -4 }, /* (108) alter_table_clause ::= full_table_name DROP TAG column_name */ + { 232, -5 }, /* (109) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + { 232, -5 }, /* (110) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + { 232, -6 }, /* (111) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ + { 229, -1 }, /* (112) multi_create_clause ::= create_subtable_clause */ + { 229, -2 }, /* (113) multi_create_clause ::= multi_create_clause create_subtable_clause */ + { 236, -9 }, /* (114) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ + { 231, -1 }, /* (115) multi_drop_clause ::= drop_table_clause */ + { 231, -2 }, /* (116) multi_drop_clause ::= multi_drop_clause drop_table_clause */ + { 239, -2 }, /* (117) drop_table_clause ::= exists_opt full_table_name */ + { 237, 0 }, /* (118) specific_tags_opt ::= */ + { 237, -3 }, /* (119) specific_tags_opt ::= NK_LP col_name_list NK_RP */ + { 225, -1 }, /* (120) full_table_name ::= table_name */ + { 225, -3 }, /* (121) full_table_name ::= db_name NK_DOT table_name */ + { 226, -1 }, /* (122) column_def_list ::= column_def */ + { 226, -3 }, /* (123) column_def_list ::= column_def_list NK_COMMA column_def */ + { 242, -2 }, /* (124) column_def ::= column_name type_name */ + { 242, -4 }, /* (125) column_def ::= column_name type_name COMMENT NK_STRING */ + { 235, -1 }, /* (126) type_name ::= BOOL */ + { 235, -1 }, /* (127) type_name ::= TINYINT */ + { 235, -1 }, /* (128) type_name ::= SMALLINT */ + { 235, -1 }, /* (129) type_name ::= INT */ + { 235, -1 }, /* (130) type_name ::= INTEGER */ + { 235, -1 }, /* (131) type_name ::= BIGINT */ + { 235, -1 }, /* (132) type_name ::= FLOAT */ + { 235, -1 }, /* (133) type_name ::= DOUBLE */ + { 235, -4 }, /* (134) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + { 235, -1 }, /* (135) type_name ::= TIMESTAMP */ + { 235, -4 }, /* (136) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + { 235, -2 }, /* (137) type_name ::= TINYINT UNSIGNED */ + { 235, -2 }, /* (138) type_name ::= SMALLINT UNSIGNED */ + { 235, -2 }, /* (139) type_name ::= INT UNSIGNED */ + { 235, -2 }, /* (140) type_name ::= BIGINT UNSIGNED */ + { 235, -1 }, /* (141) type_name ::= JSON */ + { 235, -4 }, /* (142) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + { 235, -1 }, /* (143) type_name ::= MEDIUMBLOB */ + { 235, -1 }, /* (144) type_name ::= BLOB */ + { 235, -4 }, /* (145) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + { 235, -1 }, /* (146) type_name ::= DECIMAL */ + { 235, -4 }, /* (147) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + { 235, -6 }, /* (148) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + { 227, 0 }, /* (149) tags_def_opt ::= */ + { 227, -1 }, /* (150) tags_def_opt ::= tags_def */ + { 230, -4 }, /* (151) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + { 228, 0 }, /* (152) table_options ::= */ + { 228, -3 }, /* (153) table_options ::= table_options COMMENT NK_STRING */ + { 228, -3 }, /* (154) table_options ::= table_options KEEP integer_list */ + { 228, -3 }, /* (155) table_options ::= table_options TTL NK_INTEGER */ + { 228, -5 }, /* (156) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + { 228, -5 }, /* (157) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ + { 228, -3 }, /* (158) table_options ::= table_options FILE_FACTOR NK_FLOAT */ + { 228, -3 }, /* (159) table_options ::= table_options DELAY NK_INTEGER */ + { 233, -1 }, /* (160) alter_table_options ::= alter_table_option */ + { 233, -2 }, /* (161) alter_table_options ::= alter_table_options alter_table_option */ + { 244, -2 }, /* (162) alter_table_option ::= COMMENT NK_STRING */ + { 244, -2 }, /* (163) alter_table_option ::= KEEP integer_list */ + { 244, -2 }, /* (164) alter_table_option ::= TTL NK_INTEGER */ + { 240, -1 }, /* (165) col_name_list ::= col_name */ + { 240, -3 }, /* (166) col_name_list ::= col_name_list NK_COMMA col_name */ + { 245, -1 }, /* (167) col_name ::= column_name */ + { 207, -2 }, /* (168) cmd ::= SHOW DNODES */ + { 207, -2 }, /* (169) cmd ::= SHOW USERS */ + { 207, -2 }, /* (170) cmd ::= SHOW DATABASES */ + { 207, -4 }, /* (171) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + { 207, -4 }, /* (172) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + { 207, -3 }, /* (173) cmd ::= SHOW db_name_cond_opt VGROUPS */ + { 207, -2 }, /* (174) cmd ::= SHOW MNODES */ + { 207, -2 }, /* (175) cmd ::= SHOW MODULES */ + { 207, -2 }, /* (176) cmd ::= SHOW QNODES */ + { 207, -2 }, /* (177) cmd ::= SHOW FUNCTIONS */ + { 207, -5 }, /* (178) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + { 207, -2 }, /* (179) cmd ::= SHOW STREAMS */ + { 207, -2 }, /* (180) cmd ::= SHOW ACCOUNTS */ + { 207, -2 }, /* (181) cmd ::= SHOW APPS */ + { 207, -2 }, /* (182) cmd ::= SHOW CONNECTIONS */ + { 207, -2 }, /* (183) cmd ::= SHOW LICENCE */ + { 207, -4 }, /* (184) cmd ::= SHOW CREATE DATABASE db_name */ + { 207, -4 }, /* (185) cmd ::= SHOW CREATE TABLE full_table_name */ + { 207, -4 }, /* (186) cmd ::= SHOW CREATE STABLE full_table_name */ + { 207, -2 }, /* (187) cmd ::= SHOW QUERIES */ + { 207, -2 }, /* (188) cmd ::= SHOW SCORES */ + { 207, -2 }, /* (189) cmd ::= SHOW TOPICS */ + { 207, -2 }, /* (190) cmd ::= SHOW VARIABLES */ + { 207, -2 }, /* (191) cmd ::= SHOW BNODES */ + { 207, -2 }, /* (192) cmd ::= SHOW SNODES */ + { 246, 0 }, /* (193) db_name_cond_opt ::= */ + { 246, -2 }, /* (194) db_name_cond_opt ::= db_name NK_DOT */ + { 247, 0 }, /* (195) like_pattern_opt ::= */ + { 247, -2 }, /* (196) like_pattern_opt ::= LIKE NK_STRING */ + { 248, -1 }, /* (197) table_name_cond ::= table_name */ + { 249, 0 }, /* (198) from_db_opt ::= */ + { 249, -2 }, /* (199) from_db_opt ::= FROM db_name */ + { 243, -1 }, /* (200) func_name_list ::= func_name */ + { 243, -3 }, /* (201) func_name_list ::= func_name_list NK_COMMA col_name */ + { 250, -1 }, /* (202) func_name ::= function_name */ + { 207, -8 }, /* (203) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ + { 207, -10 }, /* (204) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ + { 207, -6 }, /* (205) cmd ::= DROP INDEX exists_opt index_name ON table_name */ + { 253, 0 }, /* (206) index_options ::= */ + { 253, -9 }, /* (207) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ + { 253, -11 }, /* (208) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ + { 254, -1 }, /* (209) func_list ::= func */ + { 254, -3 }, /* (210) func_list ::= func_list NK_COMMA func */ + { 257, -4 }, /* (211) func ::= function_name NK_LP expression_list NK_RP */ + { 207, -6 }, /* (212) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ + { 207, -6 }, /* (213) cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ + { 207, -4 }, /* (214) cmd ::= DROP TOPIC exists_opt topic_name */ + { 207, -2 }, /* (215) cmd ::= DESC full_table_name */ + { 207, -2 }, /* (216) cmd ::= DESCRIBE full_table_name */ + { 207, -3 }, /* (217) cmd ::= RESET QUERY CACHE */ + { 207, -4 }, /* (218) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ + { 261, 0 }, /* (219) analyze_opt ::= */ + { 261, -1 }, /* (220) analyze_opt ::= ANALYZE */ + { 262, 0 }, /* (221) explain_options ::= */ + { 262, -3 }, /* (222) explain_options ::= explain_options VERBOSE NK_BOOL */ + { 262, -3 }, /* (223) explain_options ::= explain_options RATIO NK_FLOAT */ + { 207, -6 }, /* (224) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ + { 207, -9 }, /* (225) cmd ::= CREATE agg_func_opt FUNCTION function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ + { 207, -3 }, /* (226) cmd ::= DROP FUNCTION function_name */ + { 263, 0 }, /* (227) agg_func_opt ::= */ + { 263, -1 }, /* (228) agg_func_opt ::= AGGREGATE */ + { 264, 0 }, /* (229) bufsize_opt ::= */ + { 264, -2 }, /* (230) bufsize_opt ::= BUFSIZE NK_INTEGER */ + { 207, -7 }, /* (231) cmd ::= CREATE STREAM stream_name INTO table_name AS query_expression */ + { 207, -3 }, /* (232) cmd ::= DROP STREAM stream_name */ + { 207, -3 }, /* (233) cmd ::= KILL CONNECTION NK_INTEGER */ + { 207, -3 }, /* (234) cmd ::= KILL QUERY NK_INTEGER */ + { 207, -4 }, /* (235) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + { 207, -4 }, /* (236) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + { 207, -3 }, /* (237) cmd ::= SPLIT VGROUP NK_INTEGER */ + { 266, -2 }, /* (238) dnode_list ::= DNODE NK_INTEGER */ + { 266, -3 }, /* (239) dnode_list ::= dnode_list DNODE NK_INTEGER */ + { 207, -3 }, /* (240) cmd ::= SYNCDB db_name REPLICA */ + { 207, -1 }, /* (241) cmd ::= query_expression */ + { 210, -1 }, /* (242) literal ::= NK_INTEGER */ + { 210, -1 }, /* (243) literal ::= NK_FLOAT */ + { 210, -1 }, /* (244) literal ::= NK_STRING */ + { 210, -1 }, /* (245) literal ::= NK_BOOL */ + { 210, -2 }, /* (246) literal ::= TIMESTAMP NK_STRING */ + { 210, -1 }, /* (247) literal ::= duration_literal */ + { 210, -1 }, /* (248) literal ::= NULL */ + { 255, -1 }, /* (249) duration_literal ::= NK_VARIABLE */ + { 267, -1 }, /* (250) signed ::= NK_INTEGER */ + { 267, -2 }, /* (251) signed ::= NK_PLUS NK_INTEGER */ + { 267, -2 }, /* (252) signed ::= NK_MINUS NK_INTEGER */ + { 267, -1 }, /* (253) signed ::= NK_FLOAT */ + { 267, -2 }, /* (254) signed ::= NK_PLUS NK_FLOAT */ + { 267, -2 }, /* (255) signed ::= NK_MINUS NK_FLOAT */ + { 268, -1 }, /* (256) signed_literal ::= signed */ + { 268, -1 }, /* (257) signed_literal ::= NK_STRING */ + { 268, -1 }, /* (258) signed_literal ::= NK_BOOL */ + { 268, -2 }, /* (259) signed_literal ::= TIMESTAMP NK_STRING */ + { 268, -1 }, /* (260) signed_literal ::= duration_literal */ + { 268, -1 }, /* (261) signed_literal ::= NULL */ + { 238, -1 }, /* (262) literal_list ::= signed_literal */ + { 238, -3 }, /* (263) literal_list ::= literal_list NK_COMMA signed_literal */ + { 216, -1 }, /* (264) db_name ::= NK_ID */ + { 241, -1 }, /* (265) table_name ::= NK_ID */ + { 234, -1 }, /* (266) column_name ::= NK_ID */ + { 251, -1 }, /* (267) function_name ::= NK_ID */ + { 251, -1 }, /* (268) function_name ::= FIRST */ + { 251, -1 }, /* (269) function_name ::= LAST */ + { 269, -1 }, /* (270) table_alias ::= NK_ID */ + { 270, -1 }, /* (271) column_alias ::= NK_ID */ + { 212, -1 }, /* (272) user_name ::= NK_ID */ + { 252, -1 }, /* (273) index_name ::= NK_ID */ + { 259, -1 }, /* (274) topic_name ::= NK_ID */ + { 265, -1 }, /* (275) stream_name ::= NK_ID */ + { 271, -1 }, /* (276) expression ::= literal */ + { 271, -1 }, /* (277) expression ::= pseudo_column */ + { 271, -1 }, /* (278) expression ::= column_reference */ + { 271, -4 }, /* (279) expression ::= function_name NK_LP expression_list NK_RP */ + { 271, -4 }, /* (280) expression ::= function_name NK_LP NK_STAR NK_RP */ + { 271, -1 }, /* (281) expression ::= subquery */ + { 271, -3 }, /* (282) expression ::= NK_LP expression NK_RP */ + { 271, -2 }, /* (283) expression ::= NK_PLUS expression */ + { 271, -2 }, /* (284) expression ::= NK_MINUS expression */ + { 271, -3 }, /* (285) expression ::= expression NK_PLUS expression */ + { 271, -3 }, /* (286) expression ::= expression NK_MINUS expression */ + { 271, -3 }, /* (287) expression ::= expression NK_STAR expression */ + { 271, -3 }, /* (288) expression ::= expression NK_SLASH expression */ + { 271, -3 }, /* (289) expression ::= expression NK_REM expression */ + { 258, -1 }, /* (290) expression_list ::= expression */ + { 258, -3 }, /* (291) expression_list ::= expression_list NK_COMMA expression */ + { 273, -1 }, /* (292) column_reference ::= column_name */ + { 273, -3 }, /* (293) column_reference ::= table_name NK_DOT column_name */ + { 272, -1 }, /* (294) pseudo_column ::= NOW */ + { 272, -1 }, /* (295) pseudo_column ::= ROWTS */ + { 272, -1 }, /* (296) pseudo_column ::= TBNAME */ + { 272, -1 }, /* (297) pseudo_column ::= QSTARTTS */ + { 272, -1 }, /* (298) pseudo_column ::= QENDTS */ + { 272, -1 }, /* (299) pseudo_column ::= WSTARTTS */ + { 272, -1 }, /* (300) pseudo_column ::= WENDTS */ + { 272, -1 }, /* (301) pseudo_column ::= WDURATION */ + { 275, -3 }, /* (302) predicate ::= expression compare_op expression */ + { 275, -5 }, /* (303) predicate ::= expression BETWEEN expression AND expression */ + { 275, -6 }, /* (304) predicate ::= expression NOT BETWEEN expression AND expression */ + { 275, -3 }, /* (305) predicate ::= expression IS NULL */ + { 275, -4 }, /* (306) predicate ::= expression IS NOT NULL */ + { 275, -3 }, /* (307) predicate ::= expression in_op in_predicate_value */ + { 276, -1 }, /* (308) compare_op ::= NK_LT */ + { 276, -1 }, /* (309) compare_op ::= NK_GT */ + { 276, -1 }, /* (310) compare_op ::= NK_LE */ + { 276, -1 }, /* (311) compare_op ::= NK_GE */ + { 276, -1 }, /* (312) compare_op ::= NK_NE */ + { 276, -1 }, /* (313) compare_op ::= NK_EQ */ + { 276, -1 }, /* (314) compare_op ::= LIKE */ + { 276, -2 }, /* (315) compare_op ::= NOT LIKE */ + { 276, -1 }, /* (316) compare_op ::= MATCH */ + { 276, -1 }, /* (317) compare_op ::= NMATCH */ + { 277, -1 }, /* (318) in_op ::= IN */ + { 277, -2 }, /* (319) in_op ::= NOT IN */ + { 278, -3 }, /* (320) in_predicate_value ::= NK_LP expression_list NK_RP */ + { 279, -1 }, /* (321) boolean_value_expression ::= boolean_primary */ + { 279, -2 }, /* (322) boolean_value_expression ::= NOT boolean_primary */ + { 279, -3 }, /* (323) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 279, -3 }, /* (324) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 280, -1 }, /* (325) boolean_primary ::= predicate */ + { 280, -3 }, /* (326) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 281, -1 }, /* (327) common_expression ::= expression */ + { 281, -1 }, /* (328) common_expression ::= boolean_value_expression */ + { 282, -2 }, /* (329) from_clause ::= FROM table_reference_list */ + { 283, -1 }, /* (330) table_reference_list ::= table_reference */ + { 283, -3 }, /* (331) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 284, -1 }, /* (332) table_reference ::= table_primary */ + { 284, -1 }, /* (333) table_reference ::= joined_table */ + { 285, -2 }, /* (334) table_primary ::= table_name alias_opt */ + { 285, -4 }, /* (335) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 285, -2 }, /* (336) table_primary ::= subquery alias_opt */ + { 285, -1 }, /* (337) table_primary ::= parenthesized_joined_table */ + { 287, 0 }, /* (338) alias_opt ::= */ + { 287, -1 }, /* (339) alias_opt ::= table_alias */ + { 287, -2 }, /* (340) alias_opt ::= AS table_alias */ + { 288, -3 }, /* (341) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 288, -3 }, /* (342) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 286, -6 }, /* (343) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 289, 0 }, /* (344) join_type ::= */ + { 289, -1 }, /* (345) join_type ::= INNER */ + { 291, -9 }, /* (346) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + { 292, 0 }, /* (347) set_quantifier_opt ::= */ + { 292, -1 }, /* (348) set_quantifier_opt ::= DISTINCT */ + { 292, -1 }, /* (349) set_quantifier_opt ::= ALL */ + { 293, -1 }, /* (350) select_list ::= NK_STAR */ + { 293, -1 }, /* (351) select_list ::= select_sublist */ + { 299, -1 }, /* (352) select_sublist ::= select_item */ + { 299, -3 }, /* (353) select_sublist ::= select_sublist NK_COMMA select_item */ + { 300, -1 }, /* (354) select_item ::= common_expression */ + { 300, -2 }, /* (355) select_item ::= common_expression column_alias */ + { 300, -3 }, /* (356) select_item ::= common_expression AS column_alias */ + { 300, -3 }, /* (357) select_item ::= table_name NK_DOT NK_STAR */ + { 294, 0 }, /* (358) where_clause_opt ::= */ + { 294, -2 }, /* (359) where_clause_opt ::= WHERE search_condition */ + { 295, 0 }, /* (360) partition_by_clause_opt ::= */ + { 295, -3 }, /* (361) partition_by_clause_opt ::= PARTITION BY expression_list */ + { 296, 0 }, /* (362) twindow_clause_opt ::= */ + { 296, -6 }, /* (363) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + { 296, -4 }, /* (364) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ + { 296, -6 }, /* (365) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 296, -8 }, /* (366) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 256, 0 }, /* (367) sliding_opt ::= */ + { 256, -4 }, /* (368) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 301, 0 }, /* (369) fill_opt ::= */ + { 301, -4 }, /* (370) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 301, -6 }, /* (371) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 302, -1 }, /* (372) fill_mode ::= NONE */ + { 302, -1 }, /* (373) fill_mode ::= PREV */ + { 302, -1 }, /* (374) fill_mode ::= NULL */ + { 302, -1 }, /* (375) fill_mode ::= LINEAR */ + { 302, -1 }, /* (376) fill_mode ::= NEXT */ + { 297, 0 }, /* (377) group_by_clause_opt ::= */ + { 297, -3 }, /* (378) group_by_clause_opt ::= GROUP BY group_by_list */ + { 303, -1 }, /* (379) group_by_list ::= expression */ + { 303, -3 }, /* (380) group_by_list ::= group_by_list NK_COMMA expression */ + { 298, 0 }, /* (381) having_clause_opt ::= */ + { 298, -2 }, /* (382) having_clause_opt ::= HAVING search_condition */ + { 260, -4 }, /* (383) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 304, -1 }, /* (384) query_expression_body ::= query_primary */ + { 304, -4 }, /* (385) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + { 308, -1 }, /* (386) query_primary ::= query_specification */ + { 305, 0 }, /* (387) order_by_clause_opt ::= */ + { 305, -3 }, /* (388) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 306, 0 }, /* (389) slimit_clause_opt ::= */ + { 306, -2 }, /* (390) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 306, -4 }, /* (391) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 306, -4 }, /* (392) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 307, 0 }, /* (393) limit_clause_opt ::= */ + { 307, -2 }, /* (394) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 307, -4 }, /* (395) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 307, -4 }, /* (396) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 274, -3 }, /* (397) subquery ::= NK_LP query_expression NK_RP */ + { 290, -1 }, /* (398) search_condition ::= common_expression */ + { 309, -1 }, /* (399) sort_specification_list ::= sort_specification */ + { 309, -3 }, /* (400) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 310, -3 }, /* (401) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + { 311, 0 }, /* (402) ordering_specification_opt ::= */ + { 311, -1 }, /* (403) ordering_specification_opt ::= ASC */ + { 311, -1 }, /* (404) ordering_specification_opt ::= DESC */ + { 312, 0 }, /* (405) null_ordering_opt ::= */ + { 312, -2 }, /* (406) null_ordering_opt ::= NULLS FIRST */ + { 312, -2 }, /* (407) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -2552,11 +2587,11 @@ static YYACTIONTYPE yy_reduce( YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ { pCxt->valid = false; generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,203,&yymsp[0].minor); + yy_destructor(yypParser,208,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ { pCxt->valid = false; generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,204,&yymsp[0].minor); + yy_destructor(yypParser,209,&yymsp[0].minor); break; case 2: /* account_options ::= */ { } @@ -2570,20 +2605,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,203,&yymsp[-2].minor); +{ yy_destructor(yypParser,208,&yymsp[-2].minor); { } - yy_destructor(yypParser,205,&yymsp[0].minor); + yy_destructor(yypParser,210,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ -{ yy_destructor(yypParser,206,&yymsp[0].minor); +{ yy_destructor(yypParser,211,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ -{ yy_destructor(yypParser,204,&yymsp[-1].minor); +{ yy_destructor(yypParser,209,&yymsp[-1].minor); { } - yy_destructor(yypParser,206,&yymsp[0].minor); + yy_destructor(yypParser,211,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ @@ -2597,31 +2632,31 @@ 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,205,&yymsp[0].minor); + yy_destructor(yypParser,210,&yymsp[0].minor); break; case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy393, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy21, &yymsp[0].minor.yy0); } break; case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy393, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy21, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } break; case 26: /* cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy393, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy21, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } break; case 27: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy393); } +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy21); } break; case 28: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy393, NULL); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy21, NULL); } break; case 29: /* cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy393, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy21, &yymsp[0].minor.yy0); } break; case 30: /* cmd ::= DROP DNODE NK_INTEGER */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy0); } break; case 31: /* cmd ::= DROP DNODE dnode_endpoint */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy393); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy21); } break; case 32: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } @@ -2638,20 +2673,20 @@ static YYACTIONTYPE yy_reduce( case 36: /* dnode_endpoint ::= NK_STRING */ case 37: /* dnode_host_name ::= NK_ID */ yytestcase(yyruleno==37); case 38: /* dnode_host_name ::= NK_IPTOKEN */ yytestcase(yyruleno==38); - case 256: /* db_name ::= NK_ID */ yytestcase(yyruleno==256); - case 257: /* table_name ::= NK_ID */ yytestcase(yyruleno==257); - case 258: /* column_name ::= NK_ID */ yytestcase(yyruleno==258); - case 259: /* function_name ::= NK_ID */ yytestcase(yyruleno==259); - case 260: /* function_name ::= FIRST */ yytestcase(yyruleno==260); - case 261: /* function_name ::= LAST */ yytestcase(yyruleno==261); - case 262: /* table_alias ::= NK_ID */ yytestcase(yyruleno==262); - case 263: /* column_alias ::= NK_ID */ yytestcase(yyruleno==263); - case 264: /* user_name ::= NK_ID */ yytestcase(yyruleno==264); - case 265: /* index_name ::= NK_ID */ yytestcase(yyruleno==265); - case 266: /* topic_name ::= NK_ID */ yytestcase(yyruleno==266); - case 267: /* stream_name ::= NK_ID */ yytestcase(yyruleno==267); -{ yylhsminor.yy393 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy393 = yylhsminor.yy393; + case 264: /* db_name ::= NK_ID */ yytestcase(yyruleno==264); + case 265: /* table_name ::= NK_ID */ yytestcase(yyruleno==265); + case 266: /* column_name ::= NK_ID */ yytestcase(yyruleno==266); + case 267: /* function_name ::= NK_ID */ yytestcase(yyruleno==267); + case 268: /* function_name ::= FIRST */ yytestcase(yyruleno==268); + case 269: /* function_name ::= LAST */ yytestcase(yyruleno==269); + case 270: /* table_alias ::= NK_ID */ yytestcase(yyruleno==270); + case 271: /* column_alias ::= NK_ID */ yytestcase(yyruleno==271); + case 272: /* user_name ::= NK_ID */ yytestcase(yyruleno==272); + case 273: /* index_name ::= NK_ID */ yytestcase(yyruleno==273); + case 274: /* topic_name ::= NK_ID */ yytestcase(yyruleno==274); + case 275: /* stream_name ::= NK_ID */ yytestcase(yyruleno==275); +{ yylhsminor.yy21 = yymsp[0].minor.yy0; } + yymsp[0].minor.yy21 = yylhsminor.yy21; break; case 39: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } @@ -2660,1083 +2695,1107 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 41: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ -{ pCxt->pRootNode = createCreateQnodeStmt(pCxt, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 42: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ -{ pCxt->pRootNode = createDropQnodeStmt(pCxt, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); } break; - case 43: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy537, &yymsp[-1].minor.yy393, yymsp[0].minor.yy168); } + case 43: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ +{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); } break; - case 44: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy537, &yymsp[0].minor.yy393); } + case 44: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ +{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); } break; - case 45: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy393); } + case 45: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ +{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); } break; - case 46: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy393, yymsp[0].minor.yy168); } + case 46: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ +{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); } break; - case 47: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy537 = true; } + case 47: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ +{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); } break; - case 48: /* not_exists_opt ::= */ - case 50: /* exists_opt ::= */ yytestcase(yyruleno==50); - case 211: /* analyze_opt ::= */ yytestcase(yyruleno==211); - case 219: /* agg_func_opt ::= */ yytestcase(yyruleno==219); - case 339: /* set_quantifier_opt ::= */ yytestcase(yyruleno==339); -{ yymsp[1].minor.yy537 = false; } + case 48: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ +{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } break; - case 49: /* exists_opt ::= IF EXISTS */ -{ yymsp[-1].minor.yy537 = true; } + case 49: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy173, &yymsp[-1].minor.yy21, yymsp[0].minor.yy564); } break; - case 51: /* db_options ::= */ -{ yymsp[1].minor.yy168 = createDatabaseOptions(pCxt); } + case 50: /* cmd ::= DROP DATABASE exists_opt db_name */ +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy21); } break; - case 52: /* db_options ::= db_options BLOCKS NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pNumOfBlocks = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 51: /* cmd ::= USE db_name */ +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy21); } break; - case 53: /* db_options ::= db_options CACHE NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pCacheBlockSize = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 52: /* cmd ::= ALTER DATABASE db_name alter_db_options */ +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy21, yymsp[0].minor.yy564); } break; - case 54: /* db_options ::= db_options CACHELAST NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pCachelast = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 53: /* not_exists_opt ::= IF NOT EXISTS */ +{ yymsp[-2].minor.yy173 = true; } break; - case 55: /* db_options ::= db_options COMP NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pCompressionLevel = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 54: /* not_exists_opt ::= */ + case 56: /* exists_opt ::= */ yytestcase(yyruleno==56); + case 219: /* analyze_opt ::= */ yytestcase(yyruleno==219); + case 227: /* agg_func_opt ::= */ yytestcase(yyruleno==227); + case 347: /* set_quantifier_opt ::= */ yytestcase(yyruleno==347); +{ yymsp[1].minor.yy173 = false; } break; - case 56: /* db_options ::= db_options DAYS NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pDaysPerFile = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 55: /* exists_opt ::= IF EXISTS */ +{ yymsp[-1].minor.yy173 = true; } break; - case 57: /* db_options ::= db_options DAYS NK_VARIABLE */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pDaysPerFile = (SValueNode*)createDurationValueNode(pCxt, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 57: /* db_options ::= */ +{ yymsp[1].minor.yy564 = createDatabaseOptions(pCxt); } break; - case 58: /* db_options ::= db_options FSYNC NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pFsyncPeriod = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 58: /* db_options ::= db_options BLOCKS NK_INTEGER */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pNumOfBlocks = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 59: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pMaxRowsPerBlock = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 59: /* db_options ::= db_options CACHE NK_INTEGER */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pCacheBlockSize = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 60: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pMinRowsPerBlock = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 60: /* db_options ::= db_options CACHELAST NK_INTEGER */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pCachelast = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 61: /* db_options ::= db_options KEEP integer_list */ - case 62: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==62); -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pKeep = yymsp[0].minor.yy376; yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 61: /* db_options ::= db_options COMP NK_INTEGER */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pCompressionLevel = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 63: /* db_options ::= db_options PRECISION NK_STRING */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pPrecision = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; - break; - case 64: /* db_options ::= db_options QUORUM NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pQuorum = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; - break; - case 65: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pReplica = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; - break; - case 66: /* db_options ::= db_options TTL NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pTtl = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; - break; - case 67: /* db_options ::= db_options WAL NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pWalLevel = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; - break; - case 68: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pNumOfVgroups = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 62: /* db_options ::= db_options DAYS NK_INTEGER */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pDaysPerFile = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 69: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pSingleStable = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; - break; - case 70: /* db_options ::= db_options STREAM_MODE NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pStreamMode = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; - break; - case 71: /* db_options ::= db_options RETENTIONS retention_list */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy168)->pRetentions = yymsp[0].minor.yy376; yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; - break; - case 72: /* alter_db_options ::= alter_db_option */ -{ yylhsminor.yy168 = createDatabaseOptions(pCxt); yylhsminor.yy168 = setDatabaseAlterOption(pCxt, yylhsminor.yy168, &yymsp[0].minor.yy277); } - yymsp[0].minor.yy168 = yylhsminor.yy168; - break; - case 73: /* alter_db_options ::= alter_db_options alter_db_option */ -{ yylhsminor.yy168 = setDatabaseAlterOption(pCxt, yymsp[-1].minor.yy168, &yymsp[0].minor.yy277); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; - break; - case 74: /* alter_db_option ::= BLOCKS NK_INTEGER */ -{ yymsp[-1].minor.yy277.type = DB_OPTION_BLOCKS; yymsp[-1].minor.yy277.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - break; - case 75: /* alter_db_option ::= FSYNC NK_INTEGER */ -{ yymsp[-1].minor.yy277.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy277.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - break; - case 76: /* alter_db_option ::= KEEP integer_list */ - case 77: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==77); -{ yymsp[-1].minor.yy277.type = DB_OPTION_KEEP; yymsp[-1].minor.yy277.pList = yymsp[0].minor.yy376; } - break; - case 78: /* alter_db_option ::= WAL NK_INTEGER */ -{ yymsp[-1].minor.yy277.type = DB_OPTION_WAL; yymsp[-1].minor.yy277.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - break; - case 79: /* alter_db_option ::= QUORUM NK_INTEGER */ -{ yymsp[-1].minor.yy277.type = DB_OPTION_QUORUM; yymsp[-1].minor.yy277.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - break; - case 80: /* alter_db_option ::= CACHELAST NK_INTEGER */ -{ yymsp[-1].minor.yy277.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy277.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - break; - case 81: /* alter_db_option ::= REPLICA NK_INTEGER */ -{ yymsp[-1].minor.yy277.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy277.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - break; - case 82: /* integer_list ::= NK_INTEGER */ -{ yylhsminor.yy376 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy376 = yylhsminor.yy376; - break; - case 83: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ - case 231: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==231); -{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-2].minor.yy376, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy376 = yylhsminor.yy376; - break; - case 84: /* variable_list ::= NK_VARIABLE */ -{ yylhsminor.yy376 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy376 = yylhsminor.yy376; - break; - case 85: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-2].minor.yy376, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy376 = yylhsminor.yy376; - break; - case 86: /* retention_list ::= retention */ - case 106: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==106); - case 109: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==109); - case 116: /* column_def_list ::= column_def */ yytestcase(yyruleno==116); - case 159: /* col_name_list ::= col_name */ yytestcase(yyruleno==159); - case 192: /* func_name_list ::= func_name */ yytestcase(yyruleno==192); - case 201: /* func_list ::= func */ yytestcase(yyruleno==201); - case 254: /* literal_list ::= signed_literal */ yytestcase(yyruleno==254); - case 344: /* select_sublist ::= select_item */ yytestcase(yyruleno==344); - case 391: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==391); -{ yylhsminor.yy376 = createNodeList(pCxt, yymsp[0].minor.yy168); } - yymsp[0].minor.yy376 = yylhsminor.yy376; - break; - case 87: /* retention_list ::= retention_list NK_COMMA retention */ - case 117: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==117); - case 160: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==160); - case 193: /* func_name_list ::= func_name_list NK_COMMA col_name */ yytestcase(yyruleno==193); - case 202: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==202); - case 255: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==255); - case 345: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==345); - case 392: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==392); -{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-2].minor.yy376, yymsp[0].minor.yy168); } - yymsp[-2].minor.yy376 = yylhsminor.yy376; - break; - case 88: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ -{ yylhsminor.yy168 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; - break; - case 89: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - case 91: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==91); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy537, yymsp[-5].minor.yy168, yymsp[-3].minor.yy376, yymsp[-1].minor.yy376, yymsp[0].minor.yy168); } - break; - case 90: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy376); } - break; - case 92: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy376); } - break; - case 93: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy537, yymsp[0].minor.yy168); } - break; - case 94: /* cmd ::= ALTER TABLE alter_table_clause */ - case 95: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==95); - case 233: /* cmd ::= query_expression */ yytestcase(yyruleno==233); -{ pCxt->pRootNode = yymsp[0].minor.yy168; } - break; - case 96: /* alter_table_clause ::= full_table_name alter_table_options */ -{ yylhsminor.yy168 = createAlterTableOption(pCxt, yymsp[-1].minor.yy168, yymsp[0].minor.yy168); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; - break; - case 97: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -{ yylhsminor.yy168 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy168, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy393, yymsp[0].minor.yy224); } - yymsp[-4].minor.yy168 = yylhsminor.yy168; - break; - case 98: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ -{ yylhsminor.yy168 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy168, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy393); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; - break; - case 99: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -{ yylhsminor.yy168 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy168, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy393, yymsp[0].minor.yy224); } - yymsp[-4].minor.yy168 = yylhsminor.yy168; + case 63: /* db_options ::= db_options DAYS NK_VARIABLE */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pDaysPerFile = (SValueNode*)createDurationValueNode(pCxt, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 100: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -{ yylhsminor.yy168 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy168, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy393, &yymsp[0].minor.yy393); } - yymsp[-4].minor.yy168 = yylhsminor.yy168; + case 64: /* db_options ::= db_options FSYNC NK_INTEGER */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pFsyncPeriod = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 101: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -{ yylhsminor.yy168 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy168, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy393, yymsp[0].minor.yy224); } - yymsp[-4].minor.yy168 = yylhsminor.yy168; + case 65: /* db_options ::= db_options MAXROWS NK_INTEGER */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pMaxRowsPerBlock = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 102: /* alter_table_clause ::= full_table_name DROP TAG column_name */ -{ yylhsminor.yy168 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy168, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy393); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; + case 66: /* db_options ::= db_options MINROWS NK_INTEGER */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pMinRowsPerBlock = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 103: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -{ yylhsminor.yy168 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy168, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy393, yymsp[0].minor.yy224); } - yymsp[-4].minor.yy168 = yylhsminor.yy168; + case 67: /* db_options ::= db_options KEEP integer_list */ + case 68: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==68); +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pKeep = yymsp[0].minor.yy476; yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 104: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -{ yylhsminor.yy168 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy168, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy393, &yymsp[0].minor.yy393); } - yymsp[-4].minor.yy168 = yylhsminor.yy168; + case 69: /* db_options ::= db_options PRECISION NK_STRING */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pPrecision = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 105: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ -{ yylhsminor.yy168 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy168, &yymsp[-2].minor.yy393, yymsp[0].minor.yy168); } - yymsp[-5].minor.yy168 = yylhsminor.yy168; + case 70: /* db_options ::= db_options QUORUM NK_INTEGER */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pQuorum = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 107: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 110: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==110); -{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-1].minor.yy376, yymsp[0].minor.yy168); } - yymsp[-1].minor.yy376 = yylhsminor.yy376; + case 71: /* db_options ::= db_options REPLICA NK_INTEGER */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pReplica = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 108: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ -{ yylhsminor.yy168 = createCreateSubTableClause(pCxt, yymsp[-8].minor.yy537, yymsp[-7].minor.yy168, yymsp[-5].minor.yy168, yymsp[-4].minor.yy376, yymsp[-1].minor.yy376); } - yymsp[-8].minor.yy168 = yylhsminor.yy168; + case 72: /* db_options ::= db_options TTL NK_INTEGER */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pTtl = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 111: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy168 = createDropTableClause(pCxt, yymsp[-1].minor.yy537, yymsp[0].minor.yy168); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + case 73: /* db_options ::= db_options WAL NK_INTEGER */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pWalLevel = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; + break; + case 74: /* db_options ::= db_options VGROUPS NK_INTEGER */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pNumOfVgroups = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 112: /* specific_tags_opt ::= */ - case 143: /* tags_def_opt ::= */ yytestcase(yyruleno==143); - case 352: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==352); - case 369: /* group_by_clause_opt ::= */ yytestcase(yyruleno==369); - case 379: /* order_by_clause_opt ::= */ yytestcase(yyruleno==379); -{ yymsp[1].minor.yy376 = NULL; } + case 75: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pSingleStable = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; + break; + case 76: /* db_options ::= db_options STREAM_MODE NK_INTEGER */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pStreamMode = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; + break; + case 77: /* db_options ::= db_options RETENTIONS retention_list */ +{ ((SDatabaseOptions*)yymsp[-2].minor.yy564)->pRetentions = yymsp[0].minor.yy476; yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; + break; + case 78: /* alter_db_options ::= alter_db_option */ +{ yylhsminor.yy564 = createDatabaseOptions(pCxt); yylhsminor.yy564 = setDatabaseAlterOption(pCxt, yylhsminor.yy564, &yymsp[0].minor.yy289); } + yymsp[0].minor.yy564 = yylhsminor.yy564; + break; + case 79: /* alter_db_options ::= alter_db_options alter_db_option */ +{ yylhsminor.yy564 = setDatabaseAlterOption(pCxt, yymsp[-1].minor.yy564, &yymsp[0].minor.yy289); } + yymsp[-1].minor.yy564 = yylhsminor.yy564; + break; + case 80: /* alter_db_option ::= BLOCKS NK_INTEGER */ +{ yymsp[-1].minor.yy289.type = DB_OPTION_BLOCKS; yymsp[-1].minor.yy289.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + break; + case 81: /* alter_db_option ::= FSYNC NK_INTEGER */ +{ yymsp[-1].minor.yy289.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy289.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + break; + case 82: /* alter_db_option ::= KEEP integer_list */ + case 83: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==83); +{ yymsp[-1].minor.yy289.type = DB_OPTION_KEEP; yymsp[-1].minor.yy289.pList = yymsp[0].minor.yy476; } + break; + case 84: /* alter_db_option ::= WAL NK_INTEGER */ +{ yymsp[-1].minor.yy289.type = DB_OPTION_WAL; yymsp[-1].minor.yy289.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + break; + case 85: /* alter_db_option ::= QUORUM NK_INTEGER */ +{ yymsp[-1].minor.yy289.type = DB_OPTION_QUORUM; yymsp[-1].minor.yy289.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + break; + case 86: /* alter_db_option ::= CACHELAST NK_INTEGER */ +{ yymsp[-1].minor.yy289.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy289.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + break; + case 87: /* alter_db_option ::= REPLICA NK_INTEGER */ +{ yymsp[-1].minor.yy289.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy289.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + break; + case 88: /* integer_list ::= NK_INTEGER */ +{ yylhsminor.yy476 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy476 = yylhsminor.yy476; + break; + case 89: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ + case 239: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==239); +{ yylhsminor.yy476 = addNodeToList(pCxt, yymsp[-2].minor.yy476, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy476 = yylhsminor.yy476; + break; + case 90: /* variable_list ::= NK_VARIABLE */ +{ yylhsminor.yy476 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy476 = yylhsminor.yy476; + break; + case 91: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ +{ yylhsminor.yy476 = addNodeToList(pCxt, yymsp[-2].minor.yy476, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy476 = yylhsminor.yy476; + break; + case 92: /* retention_list ::= retention */ + case 112: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==112); + case 115: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==115); + case 122: /* column_def_list ::= column_def */ yytestcase(yyruleno==122); + case 165: /* col_name_list ::= col_name */ yytestcase(yyruleno==165); + case 200: /* func_name_list ::= func_name */ yytestcase(yyruleno==200); + case 209: /* func_list ::= func */ yytestcase(yyruleno==209); + case 262: /* literal_list ::= signed_literal */ yytestcase(yyruleno==262); + case 352: /* select_sublist ::= select_item */ yytestcase(yyruleno==352); + case 399: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==399); +{ yylhsminor.yy476 = createNodeList(pCxt, yymsp[0].minor.yy564); } + yymsp[0].minor.yy476 = yylhsminor.yy476; + break; + case 93: /* retention_list ::= retention_list NK_COMMA retention */ + case 123: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==123); + case 166: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==166); + case 201: /* func_name_list ::= func_name_list NK_COMMA col_name */ yytestcase(yyruleno==201); + case 210: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==210); + case 263: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==263); + case 353: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==353); + case 400: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==400); +{ yylhsminor.yy476 = addNodeToList(pCxt, yymsp[-2].minor.yy476, yymsp[0].minor.yy564); } + yymsp[-2].minor.yy476 = yylhsminor.yy476; + break; + case 94: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ +{ yylhsminor.yy564 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy564 = yylhsminor.yy564; + break; + case 95: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + case 97: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==97); +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy173, yymsp[-5].minor.yy564, yymsp[-3].minor.yy476, yymsp[-1].minor.yy476, yymsp[0].minor.yy564); } + break; + case 96: /* cmd ::= CREATE TABLE multi_create_clause */ +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy476); } + break; + case 98: /* cmd ::= DROP TABLE multi_drop_clause */ +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy476); } + break; + case 99: /* cmd ::= DROP STABLE exists_opt full_table_name */ +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy173, yymsp[0].minor.yy564); } + break; + case 100: /* cmd ::= ALTER TABLE alter_table_clause */ + case 101: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==101); + case 241: /* cmd ::= query_expression */ yytestcase(yyruleno==241); +{ pCxt->pRootNode = yymsp[0].minor.yy564; } + break; + case 102: /* alter_table_clause ::= full_table_name alter_table_options */ +{ yylhsminor.yy564 = createAlterTableOption(pCxt, yymsp[-1].minor.yy564, yymsp[0].minor.yy564); } + yymsp[-1].minor.yy564 = yylhsminor.yy564; + break; + case 103: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ +{ yylhsminor.yy564 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy564, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy21, yymsp[0].minor.yy288); } + yymsp[-4].minor.yy564 = yylhsminor.yy564; + break; + case 104: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ +{ yylhsminor.yy564 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy564, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy21); } + yymsp[-3].minor.yy564 = yylhsminor.yy564; + break; + case 105: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ +{ yylhsminor.yy564 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy564, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy21, yymsp[0].minor.yy288); } + yymsp[-4].minor.yy564 = yylhsminor.yy564; break; - case 113: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ -{ yymsp[-2].minor.yy376 = yymsp[-1].minor.yy376; } + case 106: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ +{ yylhsminor.yy564 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy564, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy21, &yymsp[0].minor.yy21); } + yymsp[-4].minor.yy564 = yylhsminor.yy564; break; - case 114: /* full_table_name ::= table_name */ -{ yylhsminor.yy168 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy393, NULL); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + case 107: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ +{ yylhsminor.yy564 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy564, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy21, yymsp[0].minor.yy288); } + yymsp[-4].minor.yy564 = yylhsminor.yy564; break; - case 115: /* full_table_name ::= db_name NK_DOT table_name */ -{ yylhsminor.yy168 = createRealTableNode(pCxt, &yymsp[-2].minor.yy393, &yymsp[0].minor.yy393, NULL); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 108: /* alter_table_clause ::= full_table_name DROP TAG column_name */ +{ yylhsminor.yy564 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy564, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy21); } + yymsp[-3].minor.yy564 = yylhsminor.yy564; break; - case 118: /* column_def ::= column_name type_name */ -{ yylhsminor.yy168 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy393, yymsp[0].minor.yy224, NULL); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + case 109: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ +{ yylhsminor.yy564 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy564, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy21, yymsp[0].minor.yy288); } + yymsp[-4].minor.yy564 = yylhsminor.yy564; break; - case 119: /* column_def ::= column_name type_name COMMENT NK_STRING */ -{ yylhsminor.yy168 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy393, yymsp[-2].minor.yy224, &yymsp[0].minor.yy0); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; + case 110: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ +{ yylhsminor.yy564 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy564, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy21, &yymsp[0].minor.yy21); } + yymsp[-4].minor.yy564 = yylhsminor.yy564; break; - case 120: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_BOOL); } + case 111: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ +{ yylhsminor.yy564 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy564, &yymsp[-2].minor.yy21, yymsp[0].minor.yy564); } + yymsp[-5].minor.yy564 = yylhsminor.yy564; break; - case 121: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_TINYINT); } + case 113: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ + case 116: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==116); +{ yylhsminor.yy476 = addNodeToList(pCxt, yymsp[-1].minor.yy476, yymsp[0].minor.yy564); } + yymsp[-1].minor.yy476 = yylhsminor.yy476; break; - case 122: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_SMALLINT); } + case 114: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ +{ yylhsminor.yy564 = createCreateSubTableClause(pCxt, yymsp[-8].minor.yy173, yymsp[-7].minor.yy564, yymsp[-5].minor.yy564, yymsp[-4].minor.yy476, yymsp[-1].minor.yy476); } + yymsp[-8].minor.yy564 = yylhsminor.yy564; break; - case 123: /* type_name ::= INT */ - case 124: /* type_name ::= INTEGER */ yytestcase(yyruleno==124); -{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_INT); } + case 117: /* drop_table_clause ::= exists_opt full_table_name */ +{ yylhsminor.yy564 = createDropTableClause(pCxt, yymsp[-1].minor.yy173, yymsp[0].minor.yy564); } + yymsp[-1].minor.yy564 = yylhsminor.yy564; break; - case 125: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_BIGINT); } + case 118: /* specific_tags_opt ::= */ + case 149: /* tags_def_opt ::= */ yytestcase(yyruleno==149); + case 360: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==360); + case 377: /* group_by_clause_opt ::= */ yytestcase(yyruleno==377); + case 387: /* order_by_clause_opt ::= */ yytestcase(yyruleno==387); +{ yymsp[1].minor.yy476 = NULL; } break; - case 126: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_FLOAT); } + case 119: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ +{ yymsp[-2].minor.yy476 = yymsp[-1].minor.yy476; } break; - case 127: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_DOUBLE); } + case 120: /* full_table_name ::= table_name */ +{ yylhsminor.yy564 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy21, NULL); } + yymsp[0].minor.yy564 = yylhsminor.yy564; break; - case 128: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy224 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } + case 121: /* full_table_name ::= db_name NK_DOT table_name */ +{ yylhsminor.yy564 = createRealTableNode(pCxt, &yymsp[-2].minor.yy21, &yymsp[0].minor.yy21, NULL); } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 129: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } + case 124: /* column_def ::= column_name type_name */ +{ yylhsminor.yy564 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy21, yymsp[0].minor.yy288, NULL); } + yymsp[-1].minor.yy564 = yylhsminor.yy564; break; - case 130: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy224 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } + case 125: /* column_def ::= column_name type_name COMMENT NK_STRING */ +{ yylhsminor.yy564 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy21, yymsp[-2].minor.yy288, &yymsp[0].minor.yy0); } + yymsp[-3].minor.yy564 = yylhsminor.yy564; break; - case 131: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy224 = createDataType(TSDB_DATA_TYPE_UTINYINT); } + case 126: /* type_name ::= BOOL */ +{ yymsp[0].minor.yy288 = createDataType(TSDB_DATA_TYPE_BOOL); } break; - case 132: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy224 = createDataType(TSDB_DATA_TYPE_USMALLINT); } + case 127: /* type_name ::= TINYINT */ +{ yymsp[0].minor.yy288 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; - case 133: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy224 = createDataType(TSDB_DATA_TYPE_UINT); } + case 128: /* type_name ::= SMALLINT */ +{ yymsp[0].minor.yy288 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; - case 134: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy224 = createDataType(TSDB_DATA_TYPE_UBIGINT); } + case 129: /* type_name ::= INT */ + case 130: /* type_name ::= INTEGER */ yytestcase(yyruleno==130); +{ yymsp[0].minor.yy288 = createDataType(TSDB_DATA_TYPE_INT); } break; - case 135: /* type_name ::= JSON */ -{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_JSON); } + case 131: /* type_name ::= BIGINT */ +{ yymsp[0].minor.yy288 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; - case 136: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy224 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } + case 132: /* type_name ::= FLOAT */ +{ yymsp[0].minor.yy288 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; - case 137: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } + case 133: /* type_name ::= DOUBLE */ +{ yymsp[0].minor.yy288 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; - case 138: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_BLOB); } + case 134: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy288 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; - case 139: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy224 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } + case 135: /* type_name ::= TIMESTAMP */ +{ yymsp[0].minor.yy288 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; - case 140: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 136: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy288 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; - case 141: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy224 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 137: /* type_name ::= TINYINT UNSIGNED */ +{ yymsp[-1].minor.yy288 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; - case 142: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy224 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 138: /* type_name ::= SMALLINT UNSIGNED */ +{ yymsp[-1].minor.yy288 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; - case 144: /* tags_def_opt ::= tags_def */ - case 343: /* select_list ::= select_sublist */ yytestcase(yyruleno==343); -{ yylhsminor.yy376 = yymsp[0].minor.yy376; } - yymsp[0].minor.yy376 = yylhsminor.yy376; + case 139: /* type_name ::= INT UNSIGNED */ +{ yymsp[-1].minor.yy288 = createDataType(TSDB_DATA_TYPE_UINT); } break; - case 145: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ -{ yymsp[-3].minor.yy376 = yymsp[-1].minor.yy376; } + case 140: /* type_name ::= BIGINT UNSIGNED */ +{ yymsp[-1].minor.yy288 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; - case 146: /* table_options ::= */ -{ yymsp[1].minor.yy168 = createTableOptions(pCxt); } + case 141: /* type_name ::= JSON */ +{ yymsp[0].minor.yy288 = createDataType(TSDB_DATA_TYPE_JSON); } break; - case 147: /* table_options ::= table_options COMMENT NK_STRING */ -{ ((STableOptions*)yymsp[-2].minor.yy168)->pComments = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 142: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy288 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; - case 148: /* table_options ::= table_options KEEP integer_list */ -{ ((STableOptions*)yymsp[-2].minor.yy168)->pKeep = yymsp[0].minor.yy376; yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 143: /* type_name ::= MEDIUMBLOB */ +{ yymsp[0].minor.yy288 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; - case 149: /* table_options ::= table_options TTL NK_INTEGER */ -{ ((STableOptions*)yymsp[-2].minor.yy168)->pTtl = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 144: /* type_name ::= BLOB */ +{ yymsp[0].minor.yy288 = createDataType(TSDB_DATA_TYPE_BLOB); } break; - case 150: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ ((STableOptions*)yymsp[-4].minor.yy168)->pSma = yymsp[-1].minor.yy376; yylhsminor.yy168 = yymsp[-4].minor.yy168; } - yymsp[-4].minor.yy168 = yylhsminor.yy168; + case 145: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy288 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; - case 151: /* table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ -{ ((STableOptions*)yymsp[-4].minor.yy168)->pFuncs = yymsp[-1].minor.yy376; yylhsminor.yy168 = yymsp[-4].minor.yy168; } - yymsp[-4].minor.yy168 = yylhsminor.yy168; + case 146: /* type_name ::= DECIMAL */ +{ yymsp[0].minor.yy288 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 152: /* table_options ::= table_options FILE_FACTOR NK_FLOAT */ -{ ((STableOptions*)yymsp[-2].minor.yy168)->pFilesFactor = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 147: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy288 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 153: /* table_options ::= table_options DELAY NK_INTEGER */ -{ ((STableOptions*)yymsp[-2].minor.yy168)->pDelay = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy168 = yymsp[-2].minor.yy168; } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 148: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ +{ yymsp[-5].minor.yy288 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 154: /* alter_table_options ::= alter_table_option */ -{ yylhsminor.yy168 = createTableOptions(pCxt); yylhsminor.yy168 = setTableAlterOption(pCxt, yylhsminor.yy168, &yymsp[0].minor.yy277); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + case 150: /* tags_def_opt ::= tags_def */ + case 351: /* select_list ::= select_sublist */ yytestcase(yyruleno==351); +{ yylhsminor.yy476 = yymsp[0].minor.yy476; } + yymsp[0].minor.yy476 = yylhsminor.yy476; break; - case 155: /* alter_table_options ::= alter_table_options alter_table_option */ -{ yylhsminor.yy168 = setTableAlterOption(pCxt, yymsp[-1].minor.yy168, &yymsp[0].minor.yy277); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + case 151: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ +{ yymsp[-3].minor.yy476 = yymsp[-1].minor.yy476; } break; - case 156: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy277.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy277.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + case 152: /* table_options ::= */ +{ yymsp[1].minor.yy564 = createTableOptions(pCxt); } break; - case 157: /* alter_table_option ::= KEEP integer_list */ -{ yymsp[-1].minor.yy277.type = TABLE_OPTION_KEEP; yymsp[-1].minor.yy277.pList = yymsp[0].minor.yy376; } + case 153: /* table_options ::= table_options COMMENT NK_STRING */ +{ ((STableOptions*)yymsp[-2].minor.yy564)->pComments = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 158: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy277.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy277.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + case 154: /* table_options ::= table_options KEEP integer_list */ +{ ((STableOptions*)yymsp[-2].minor.yy564)->pKeep = yymsp[0].minor.yy476; yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 161: /* col_name ::= column_name */ -{ yylhsminor.yy168 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy393); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + case 155: /* table_options ::= table_options TTL NK_INTEGER */ +{ ((STableOptions*)yymsp[-2].minor.yy564)->pTtl = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 162: /* cmd ::= SHOW DNODES */ + case 156: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ +{ ((STableOptions*)yymsp[-4].minor.yy564)->pSma = yymsp[-1].minor.yy476; yylhsminor.yy564 = yymsp[-4].minor.yy564; } + yymsp[-4].minor.yy564 = yylhsminor.yy564; + break; + case 157: /* table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ +{ ((STableOptions*)yymsp[-4].minor.yy564)->pFuncs = yymsp[-1].minor.yy476; yylhsminor.yy564 = yymsp[-4].minor.yy564; } + yymsp[-4].minor.yy564 = yylhsminor.yy564; + break; + case 158: /* table_options ::= table_options FILE_FACTOR NK_FLOAT */ +{ ((STableOptions*)yymsp[-2].minor.yy564)->pFilesFactor = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; + break; + case 159: /* table_options ::= table_options DELAY NK_INTEGER */ +{ ((STableOptions*)yymsp[-2].minor.yy564)->pDelay = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy564 = yymsp[-2].minor.yy564; } + yymsp[-2].minor.yy564 = yylhsminor.yy564; + break; + case 160: /* alter_table_options ::= alter_table_option */ +{ yylhsminor.yy564 = createTableOptions(pCxt); yylhsminor.yy564 = setTableAlterOption(pCxt, yylhsminor.yy564, &yymsp[0].minor.yy289); } + yymsp[0].minor.yy564 = yylhsminor.yy564; + break; + case 161: /* alter_table_options ::= alter_table_options alter_table_option */ +{ yylhsminor.yy564 = setTableAlterOption(pCxt, yymsp[-1].minor.yy564, &yymsp[0].minor.yy289); } + yymsp[-1].minor.yy564 = yylhsminor.yy564; + break; + case 162: /* alter_table_option ::= COMMENT NK_STRING */ +{ yymsp[-1].minor.yy289.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy289.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + break; + case 163: /* alter_table_option ::= KEEP integer_list */ +{ yymsp[-1].minor.yy289.type = TABLE_OPTION_KEEP; yymsp[-1].minor.yy289.pList = yymsp[0].minor.yy476; } + break; + case 164: /* alter_table_option ::= TTL NK_INTEGER */ +{ yymsp[-1].minor.yy289.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy289.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + break; + case 167: /* col_name ::= column_name */ +{ yylhsminor.yy564 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy21); } + yymsp[0].minor.yy564 = yylhsminor.yy564; + break; + case 168: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT, NULL, NULL); } break; - case 163: /* cmd ::= SHOW USERS */ + case 169: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT, NULL, NULL); } break; - case 164: /* cmd ::= SHOW DATABASES */ + case 170: /* cmd ::= SHOW DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT, NULL, NULL); } break; - case 165: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy168, yymsp[0].minor.yy168); } + case 171: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy564, yymsp[0].minor.yy564); } break; - case 166: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy168, yymsp[0].minor.yy168); } + case 172: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy564, yymsp[0].minor.yy564); } break; - case 167: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy168, NULL); } + case 173: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy564, NULL); } break; - case 168: /* cmd ::= SHOW MNODES */ + case 174: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT, NULL, NULL); } break; - case 169: /* cmd ::= SHOW MODULES */ + case 175: /* cmd ::= SHOW MODULES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MODULES_STMT, NULL, NULL); } break; - case 170: /* cmd ::= SHOW QNODES */ + case 176: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT, NULL, NULL); } break; - case 171: /* cmd ::= SHOW FUNCTIONS */ + case 177: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT, NULL, NULL); } break; - case 172: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy168, yymsp[0].minor.yy168); } + case 178: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy564, yymsp[0].minor.yy564); } break; - case 173: /* cmd ::= SHOW STREAMS */ + case 179: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT, NULL, NULL); } break; - case 174: /* cmd ::= SHOW ACCOUNTS */ + case 180: /* cmd ::= SHOW ACCOUNTS */ { pCxt->valid = false; generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } break; - case 175: /* cmd ::= SHOW APPS */ + case 181: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT, NULL, NULL); } break; - case 176: /* cmd ::= SHOW CONNECTIONS */ + case 182: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT, NULL, NULL); } break; - case 177: /* cmd ::= SHOW LICENCE */ + case 183: /* cmd ::= SHOW LICENCE */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCE_STMT, NULL, NULL); } break; - case 178: /* cmd ::= SHOW CREATE DATABASE db_name */ -{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy393); } + case 184: /* cmd ::= SHOW CREATE DATABASE db_name */ +{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy21); } break; - case 179: /* cmd ::= SHOW CREATE TABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy168); } + case 185: /* cmd ::= SHOW CREATE TABLE full_table_name */ +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy564); } break; - case 180: /* cmd ::= SHOW CREATE STABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy168); } + case 186: /* cmd ::= SHOW CREATE STABLE full_table_name */ +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy564); } break; - case 181: /* cmd ::= SHOW QUERIES */ + case 187: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT, NULL, NULL); } break; - case 182: /* cmd ::= SHOW SCORES */ + case 188: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT, NULL, NULL); } break; - case 183: /* cmd ::= SHOW TOPICS */ + case 189: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT, NULL, NULL); } break; - case 184: /* cmd ::= SHOW VARIABLES */ + case 190: /* cmd ::= SHOW VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLE_STMT, NULL, NULL); } break; - case 185: /* db_name_cond_opt ::= */ - case 190: /* from_db_opt ::= */ yytestcase(yyruleno==190); -{ yymsp[1].minor.yy168 = createDefaultDatabaseCondValue(pCxt); } + case 191: /* cmd ::= SHOW BNODES */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT, NULL, NULL); } + break; + case 192: /* cmd ::= SHOW SNODES */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT, NULL, NULL); } + break; + case 193: /* db_name_cond_opt ::= */ + case 198: /* from_db_opt ::= */ yytestcase(yyruleno==198); +{ yymsp[1].minor.yy564 = createDefaultDatabaseCondValue(pCxt); } break; - case 186: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy393); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + case 194: /* db_name_cond_opt ::= db_name NK_DOT */ +{ yylhsminor.yy564 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy21); } + yymsp[-1].minor.yy564 = yylhsminor.yy564; break; - case 187: /* like_pattern_opt ::= */ - case 198: /* index_options ::= */ yytestcase(yyruleno==198); - case 350: /* where_clause_opt ::= */ yytestcase(yyruleno==350); - case 354: /* twindow_clause_opt ::= */ yytestcase(yyruleno==354); - case 359: /* sliding_opt ::= */ yytestcase(yyruleno==359); - case 361: /* fill_opt ::= */ yytestcase(yyruleno==361); - case 373: /* having_clause_opt ::= */ yytestcase(yyruleno==373); - case 381: /* slimit_clause_opt ::= */ yytestcase(yyruleno==381); - case 385: /* limit_clause_opt ::= */ yytestcase(yyruleno==385); -{ yymsp[1].minor.yy168 = NULL; } + case 195: /* like_pattern_opt ::= */ + case 206: /* index_options ::= */ yytestcase(yyruleno==206); + case 358: /* where_clause_opt ::= */ yytestcase(yyruleno==358); + case 362: /* twindow_clause_opt ::= */ yytestcase(yyruleno==362); + case 367: /* sliding_opt ::= */ yytestcase(yyruleno==367); + case 369: /* fill_opt ::= */ yytestcase(yyruleno==369); + case 381: /* having_clause_opt ::= */ yytestcase(yyruleno==381); + case 389: /* slimit_clause_opt ::= */ yytestcase(yyruleno==389); + case 393: /* limit_clause_opt ::= */ yytestcase(yyruleno==393); +{ yymsp[1].minor.yy564 = NULL; } break; - case 188: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + case 196: /* like_pattern_opt ::= LIKE NK_STRING */ +{ yymsp[-1].minor.yy564 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; - case 189: /* table_name_cond ::= table_name */ -{ yylhsminor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy393); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + case 197: /* table_name_cond ::= table_name */ +{ yylhsminor.yy564 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy21); } + yymsp[0].minor.yy564 = yylhsminor.yy564; break; - case 191: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy393); } + case 199: /* from_db_opt ::= FROM db_name */ +{ yymsp[-1].minor.yy564 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy21); } break; - case 194: /* func_name ::= function_name */ -{ yylhsminor.yy168 = createFunctionNode(pCxt, &yymsp[0].minor.yy393, NULL); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + case 202: /* func_name ::= function_name */ +{ yylhsminor.yy564 = createFunctionNode(pCxt, &yymsp[0].minor.yy21, NULL); } + yymsp[0].minor.yy564 = yylhsminor.yy564; break; - case 195: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy537, &yymsp[-3].minor.yy393, &yymsp[-1].minor.yy393, NULL, yymsp[0].minor.yy168); } + case 203: /* 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.yy21, &yymsp[-1].minor.yy21, NULL, yymsp[0].minor.yy564); } break; - case 196: /* cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, yymsp[-6].minor.yy537, &yymsp[-5].minor.yy393, &yymsp[-3].minor.yy393, yymsp[-1].minor.yy376, NULL); } + case 204: /* cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, yymsp[-6].minor.yy173, &yymsp[-5].minor.yy21, &yymsp[-3].minor.yy21, yymsp[-1].minor.yy476, NULL); } break; - case 197: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy537, &yymsp[-2].minor.yy393, &yymsp[0].minor.yy393); } + case 205: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy173, &yymsp[-2].minor.yy21, &yymsp[0].minor.yy21); } break; - case 199: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ -{ yymsp[-8].minor.yy168 = createIndexOption(pCxt, yymsp[-6].minor.yy376, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), NULL, yymsp[0].minor.yy168); } + case 207: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ +{ yymsp[-8].minor.yy564 = createIndexOption(pCxt, yymsp[-6].minor.yy476, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), NULL, yymsp[0].minor.yy564); } break; - case 200: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ -{ yymsp[-10].minor.yy168 = createIndexOption(pCxt, yymsp[-8].minor.yy376, releaseRawExprNode(pCxt, yymsp[-4].minor.yy168), releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), yymsp[0].minor.yy168); } + case 208: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ +{ yymsp[-10].minor.yy564 = createIndexOption(pCxt, yymsp[-8].minor.yy476, releaseRawExprNode(pCxt, yymsp[-4].minor.yy564), releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), yymsp[0].minor.yy564); } break; - case 203: /* func ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy168 = createFunctionNode(pCxt, &yymsp[-3].minor.yy393, yymsp[-1].minor.yy376); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; + case 211: /* func ::= function_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy564 = createFunctionNode(pCxt, &yymsp[-3].minor.yy21, yymsp[-1].minor.yy476); } + yymsp[-3].minor.yy564 = yylhsminor.yy564; break; - case 204: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy537, &yymsp[-2].minor.yy393, yymsp[0].minor.yy168, NULL); } + case 212: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy173, &yymsp[-2].minor.yy21, yymsp[0].minor.yy564, NULL); } break; - case 205: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy537, &yymsp[-2].minor.yy393, NULL, &yymsp[0].minor.yy393); } + case 213: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy173, &yymsp[-2].minor.yy21, NULL, &yymsp[0].minor.yy21); } break; - case 206: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy537, &yymsp[0].minor.yy393); } + case 214: /* cmd ::= DROP TOPIC exists_opt topic_name */ +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy21); } break; - case 207: /* cmd ::= DESC full_table_name */ - case 208: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==208); -{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy168); } + case 215: /* cmd ::= DESC full_table_name */ + case 216: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==216); +{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy564); } break; - case 209: /* cmd ::= RESET QUERY CACHE */ + case 217: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; - case 210: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ -{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy537, yymsp[-1].minor.yy168, yymsp[0].minor.yy168); } + case 218: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy173, yymsp[-1].minor.yy564, yymsp[0].minor.yy564); } break; - case 212: /* analyze_opt ::= ANALYZE */ - case 220: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==220); - case 340: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==340); -{ yymsp[0].minor.yy537 = true; } + case 220: /* analyze_opt ::= ANALYZE */ + case 228: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==228); + case 348: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==348); +{ yymsp[0].minor.yy173 = true; } break; - case 213: /* explain_options ::= */ -{ yymsp[1].minor.yy168 = createDefaultExplainOptions(pCxt); } + case 221: /* explain_options ::= */ +{ yymsp[1].minor.yy564 = createDefaultExplainOptions(pCxt); } break; - case 214: /* explain_options ::= explain_options VERBOSE NK_BOOL */ -{ yylhsminor.yy168 = setExplainVerbose(pCxt, yymsp[-2].minor.yy168, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 222: /* explain_options ::= explain_options VERBOSE NK_BOOL */ +{ yylhsminor.yy564 = setExplainVerbose(pCxt, yymsp[-2].minor.yy564, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 215: /* explain_options ::= explain_options RATIO NK_FLOAT */ -{ yylhsminor.yy168 = setExplainRatio(pCxt, yymsp[-2].minor.yy168, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 223: /* explain_options ::= explain_options RATIO NK_FLOAT */ +{ yylhsminor.yy564 = setExplainRatio(pCxt, yymsp[-2].minor.yy564, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 216: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ -{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy376); } + case 224: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ +{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy476); } break; - case 217: /* cmd ::= CREATE agg_func_opt FUNCTION function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ -{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy537, &yymsp[-5].minor.yy393, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy224, yymsp[0].minor.yy508); } + case 225: /* cmd ::= CREATE agg_func_opt FUNCTION function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ +{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy173, &yymsp[-5].minor.yy21, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy288, yymsp[0].minor.yy620); } break; - case 218: /* cmd ::= DROP FUNCTION function_name */ -{ pCxt->pRootNode = createDropFunctionStmt(pCxt, &yymsp[0].minor.yy393); } + case 226: /* cmd ::= DROP FUNCTION function_name */ +{ pCxt->pRootNode = createDropFunctionStmt(pCxt, &yymsp[0].minor.yy21); } break; - case 221: /* bufsize_opt ::= */ -{ yymsp[1].minor.yy508 = 0; } + case 229: /* bufsize_opt ::= */ +{ yymsp[1].minor.yy620 = 0; } break; - case 222: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ -{ yymsp[-1].minor.yy508 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + case 230: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ +{ yymsp[-1].minor.yy620 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } break; - case 223: /* cmd ::= CREATE STREAM stream_name INTO table_name AS query_expression */ -{ pCxt->pRootNode = createCreateStreamStmt(pCxt, &yymsp[-4].minor.yy393, &yymsp[-2].minor.yy393, yymsp[0].minor.yy168); } + case 231: /* cmd ::= CREATE STREAM stream_name INTO table_name AS query_expression */ +{ pCxt->pRootNode = createCreateStreamStmt(pCxt, &yymsp[-4].minor.yy21, &yymsp[-2].minor.yy21, yymsp[0].minor.yy564); } break; - case 224: /* cmd ::= DROP STREAM stream_name */ -{ pCxt->pRootNode = createDropStreamStmt(pCxt, &yymsp[0].minor.yy393); } + case 232: /* cmd ::= DROP STREAM stream_name */ +{ pCxt->pRootNode = createDropStreamStmt(pCxt, &yymsp[0].minor.yy21); } break; - case 225: /* cmd ::= KILL CONNECTION NK_INTEGER */ + case 233: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; - case 226: /* cmd ::= KILL QUERY NK_INTEGER */ + case 234: /* cmd ::= KILL QUERY NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_QUERY_STMT, &yymsp[0].minor.yy0); } break; - case 227: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + case 235: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 228: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy376); } + case 236: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ +{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy476); } break; - case 229: /* cmd ::= SPLIT VGROUP NK_INTEGER */ + case 237: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 230: /* dnode_list ::= DNODE NK_INTEGER */ -{ yymsp[-1].minor.yy376 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - break; - case 232: /* cmd ::= SYNCDB db_name REPLICA */ -{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy393); } - break; - case 234: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy168 = yylhsminor.yy168; - break; - case 235: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy168 = yylhsminor.yy168; - break; - case 236: /* literal ::= NK_STRING */ -{ yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy168 = yylhsminor.yy168; - break; - case 237: /* literal ::= NK_BOOL */ -{ yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy168 = yylhsminor.yy168; - break; - case 238: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; - break; - case 239: /* literal ::= duration_literal */ - case 248: /* signed_literal ::= signed */ yytestcase(yyruleno==248); - case 268: /* expression ::= literal */ yytestcase(yyruleno==268); - case 269: /* expression ::= pseudo_column */ yytestcase(yyruleno==269); - case 270: /* expression ::= column_reference */ yytestcase(yyruleno==270); - case 273: /* expression ::= subquery */ yytestcase(yyruleno==273); - case 313: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==313); - case 317: /* boolean_primary ::= predicate */ yytestcase(yyruleno==317); - case 319: /* common_expression ::= expression */ yytestcase(yyruleno==319); - case 320: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==320); - case 322: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==322); - case 324: /* table_reference ::= table_primary */ yytestcase(yyruleno==324); - case 325: /* table_reference ::= joined_table */ yytestcase(yyruleno==325); - case 329: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==329); - case 376: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==376); - case 378: /* query_primary ::= query_specification */ yytestcase(yyruleno==378); -{ yylhsminor.yy168 = yymsp[0].minor.yy168; } - yymsp[0].minor.yy168 = yylhsminor.yy168; - break; - case 240: /* literal ::= NULL */ -{ yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL)); } - yymsp[0].minor.yy168 = yylhsminor.yy168; - break; - case 241: /* duration_literal ::= NK_VARIABLE */ -{ yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy168 = yylhsminor.yy168; - break; - case 242: /* signed ::= NK_INTEGER */ -{ yylhsminor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy168 = yylhsminor.yy168; - break; - case 243: /* signed ::= NK_PLUS NK_INTEGER */ -{ yymsp[-1].minor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - break; - case 244: /* signed ::= NK_MINUS NK_INTEGER */ + case 238: /* dnode_list ::= DNODE NK_INTEGER */ +{ yymsp[-1].minor.yy476 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + break; + case 240: /* cmd ::= SYNCDB db_name REPLICA */ +{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy21); } + break; + case 242: /* literal ::= NK_INTEGER */ +{ yylhsminor.yy564 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy564 = yylhsminor.yy564; + break; + case 243: /* literal ::= NK_FLOAT */ +{ yylhsminor.yy564 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy564 = yylhsminor.yy564; + break; + case 244: /* literal ::= NK_STRING */ +{ yylhsminor.yy564 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy564 = yylhsminor.yy564; + break; + case 245: /* literal ::= NK_BOOL */ +{ yylhsminor.yy564 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy564 = yylhsminor.yy564; + break; + case 246: /* literal ::= TIMESTAMP NK_STRING */ +{ yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } + yymsp[-1].minor.yy564 = yylhsminor.yy564; + break; + case 247: /* literal ::= duration_literal */ + case 256: /* signed_literal ::= signed */ yytestcase(yyruleno==256); + case 276: /* expression ::= literal */ yytestcase(yyruleno==276); + case 277: /* expression ::= pseudo_column */ yytestcase(yyruleno==277); + case 278: /* expression ::= column_reference */ yytestcase(yyruleno==278); + case 281: /* expression ::= subquery */ yytestcase(yyruleno==281); + case 321: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==321); + case 325: /* boolean_primary ::= predicate */ yytestcase(yyruleno==325); + case 327: /* common_expression ::= expression */ yytestcase(yyruleno==327); + case 328: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==328); + case 330: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==330); + case 332: /* table_reference ::= table_primary */ yytestcase(yyruleno==332); + case 333: /* table_reference ::= joined_table */ yytestcase(yyruleno==333); + case 337: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==337); + case 384: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==384); + case 386: /* query_primary ::= query_specification */ yytestcase(yyruleno==386); +{ yylhsminor.yy564 = yymsp[0].minor.yy564; } + yymsp[0].minor.yy564 = yylhsminor.yy564; + break; + case 248: /* literal ::= NULL */ +{ yylhsminor.yy564 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL)); } + yymsp[0].minor.yy564 = yylhsminor.yy564; + break; + case 249: /* duration_literal ::= NK_VARIABLE */ +{ yylhsminor.yy564 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy564 = yylhsminor.yy564; + break; + case 250: /* signed ::= NK_INTEGER */ +{ yylhsminor.yy564 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy564 = yylhsminor.yy564; + break; + case 251: /* signed ::= NK_PLUS NK_INTEGER */ +{ yymsp[-1].minor.yy564 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + break; + case 252: /* 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.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + yylhsminor.yy564 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + yymsp[-1].minor.yy564 = yylhsminor.yy564; break; - case 245: /* signed ::= NK_FLOAT */ -{ yylhsminor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + case 253: /* signed ::= NK_FLOAT */ +{ yylhsminor.yy564 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy564 = yylhsminor.yy564; break; - case 246: /* signed ::= NK_PLUS NK_FLOAT */ -{ yymsp[-1].minor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + case 254: /* signed ::= NK_PLUS NK_FLOAT */ +{ yymsp[-1].minor.yy564 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; - case 247: /* signed ::= NK_MINUS NK_FLOAT */ + case 255: /* 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.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + yylhsminor.yy564 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + yymsp[-1].minor.yy564 = yylhsminor.yy564; break; - case 249: /* signed_literal ::= NK_STRING */ -{ yylhsminor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + case 257: /* signed_literal ::= NK_STRING */ +{ yylhsminor.yy564 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy564 = yylhsminor.yy564; break; - case 250: /* signed_literal ::= NK_BOOL */ -{ yylhsminor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + case 258: /* signed_literal ::= NK_BOOL */ +{ yylhsminor.yy564 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy564 = yylhsminor.yy564; break; - case 251: /* signed_literal ::= TIMESTAMP NK_STRING */ -{ yymsp[-1].minor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } + case 259: /* signed_literal ::= TIMESTAMP NK_STRING */ +{ yymsp[-1].minor.yy564 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 252: /* signed_literal ::= duration_literal */ - case 390: /* search_condition ::= common_expression */ yytestcase(yyruleno==390); -{ yylhsminor.yy168 = releaseRawExprNode(pCxt, yymsp[0].minor.yy168); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + case 260: /* signed_literal ::= duration_literal */ + case 398: /* search_condition ::= common_expression */ yytestcase(yyruleno==398); +{ yylhsminor.yy564 = releaseRawExprNode(pCxt, yymsp[0].minor.yy564); } + yymsp[0].minor.yy564 = yylhsminor.yy564; break; - case 253: /* signed_literal ::= NULL */ -{ yymsp[0].minor.yy168 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL); } + case 261: /* signed_literal ::= NULL */ +{ yymsp[0].minor.yy564 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL); } break; - case 271: /* expression ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy393, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy393, yymsp[-1].minor.yy376)); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; + case 279: /* expression ::= function_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy21, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy21, yymsp[-1].minor.yy476)); } + yymsp[-3].minor.yy564 = yylhsminor.yy564; break; - case 272: /* expression ::= function_name NK_LP NK_STAR NK_RP */ -{ yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy393, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy393, createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy0)))); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; + case 280: /* expression ::= function_name NK_LP NK_STAR NK_RP */ +{ yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy21, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy21, createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy0)))); } + yymsp[-3].minor.yy564 = yylhsminor.yy564; break; - case 274: /* expression ::= NK_LP expression NK_RP */ - case 318: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==318); -{ yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy168)); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 282: /* expression ::= NK_LP expression NK_RP */ + case 326: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==326); +{ yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy564)); } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 275: /* expression ::= NK_PLUS expression */ + case 283: /* expression ::= NK_PLUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy168)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); + yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy564)); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + yymsp[-1].minor.yy564 = yylhsminor.yy564; break; - case 276: /* expression ::= NK_MINUS expression */ + case 284: /* expression ::= NK_MINUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy168), NULL)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); + yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy564), NULL)); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + yymsp[-1].minor.yy564 = yylhsminor.yy564; break; - case 277: /* expression ::= expression NK_PLUS expression */ + case 285: /* expression ::= expression NK_PLUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); + yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 278: /* expression ::= expression NK_MINUS expression */ + case 286: /* expression ::= expression NK_MINUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); + yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 279: /* expression ::= expression NK_STAR expression */ + case 287: /* expression ::= expression NK_STAR expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); + yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 280: /* expression ::= expression NK_SLASH expression */ + case 288: /* expression ::= expression NK_SLASH expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); + yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 281: /* expression ::= expression NK_REM expression */ + case 289: /* expression ::= expression NK_REM expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); + yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; - break; - case 282: /* expression_list ::= expression */ -{ yylhsminor.yy376 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy168)); } - yymsp[0].minor.yy376 = yylhsminor.yy376; - break; - case 283: /* expression_list ::= expression_list NK_COMMA expression */ -{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-2].minor.yy376, releaseRawExprNode(pCxt, yymsp[0].minor.yy168)); } - yymsp[-2].minor.yy376 = yylhsminor.yy376; - break; - case 284: /* column_reference ::= column_name */ -{ yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy393, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy393)); } - yymsp[0].minor.yy168 = yylhsminor.yy168; - break; - case 285: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy393, &yymsp[0].minor.yy393, createColumnNode(pCxt, &yymsp[-2].minor.yy393, &yymsp[0].minor.yy393)); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; - break; - case 286: /* pseudo_column ::= NOW */ - case 287: /* pseudo_column ::= ROWTS */ yytestcase(yyruleno==287); - case 288: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==288); - case 289: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==289); - case 290: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==290); - case 291: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==291); - case 292: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==292); - case 293: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==293); -{ yylhsminor.yy168 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } - yymsp[0].minor.yy168 = yylhsminor.yy168; - break; - case 294: /* predicate ::= expression compare_op expression */ - case 299: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==299); + yymsp[-2].minor.yy564 = yylhsminor.yy564; + break; + case 290: /* expression_list ::= expression */ +{ yylhsminor.yy476 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy564)); } + yymsp[0].minor.yy476 = yylhsminor.yy476; + break; + case 291: /* expression_list ::= expression_list NK_COMMA expression */ +{ yylhsminor.yy476 = addNodeToList(pCxt, yymsp[-2].minor.yy476, releaseRawExprNode(pCxt, yymsp[0].minor.yy564)); } + yymsp[-2].minor.yy476 = yylhsminor.yy476; + break; + case 292: /* column_reference ::= column_name */ +{ yylhsminor.yy564 = createRawExprNode(pCxt, &yymsp[0].minor.yy21, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy21)); } + yymsp[0].minor.yy564 = yylhsminor.yy564; + break; + case 293: /* column_reference ::= table_name NK_DOT column_name */ +{ yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy21, &yymsp[0].minor.yy21, createColumnNode(pCxt, &yymsp[-2].minor.yy21, &yymsp[0].minor.yy21)); } + yymsp[-2].minor.yy564 = yylhsminor.yy564; + break; + case 294: /* pseudo_column ::= NOW */ + case 295: /* pseudo_column ::= ROWTS */ yytestcase(yyruleno==295); + case 296: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==296); + case 297: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==297); + case 298: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==298); + case 299: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==299); + case 300: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==300); + case 301: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==301); +{ yylhsminor.yy564 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } + yymsp[0].minor.yy564 = yylhsminor.yy564; + break; + case 302: /* predicate ::= expression compare_op expression */ + case 307: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==307); { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy436, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); + yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy468, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 295: /* predicate ::= expression BETWEEN expression AND expression */ + case 303: /* predicate ::= expression BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy168), releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy564); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); + yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy564), releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); } - yymsp[-4].minor.yy168 = yylhsminor.yy168; + yymsp[-4].minor.yy564 = yylhsminor.yy564; break; - case 296: /* predicate ::= expression NOT BETWEEN expression AND expression */ + case 304: /* predicate ::= expression NOT BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[-5].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy564); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); + yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), releaseRawExprNode(pCxt, yymsp[-5].minor.yy564), releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); } - yymsp[-5].minor.yy168 = yylhsminor.yy168; + yymsp[-5].minor.yy564 = yylhsminor.yy564; break; - case 297: /* predicate ::= expression IS NULL */ + case 305: /* predicate ::= expression IS NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); + yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), NULL)); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 298: /* predicate ::= expression IS NOT NULL */ + case 306: /* predicate ::= expression IS NOT NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy168), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy564); + yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy564), NULL)); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; + yymsp[-3].minor.yy564 = yylhsminor.yy564; break; - case 300: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy436 = OP_TYPE_LOWER_THAN; } + case 308: /* compare_op ::= NK_LT */ +{ yymsp[0].minor.yy468 = OP_TYPE_LOWER_THAN; } break; - case 301: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy436 = OP_TYPE_GREATER_THAN; } + case 309: /* compare_op ::= NK_GT */ +{ yymsp[0].minor.yy468 = OP_TYPE_GREATER_THAN; } break; - case 302: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy436 = OP_TYPE_LOWER_EQUAL; } + case 310: /* compare_op ::= NK_LE */ +{ yymsp[0].minor.yy468 = OP_TYPE_LOWER_EQUAL; } break; - case 303: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy436 = OP_TYPE_GREATER_EQUAL; } + case 311: /* compare_op ::= NK_GE */ +{ yymsp[0].minor.yy468 = OP_TYPE_GREATER_EQUAL; } break; - case 304: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy436 = OP_TYPE_NOT_EQUAL; } + case 312: /* compare_op ::= NK_NE */ +{ yymsp[0].minor.yy468 = OP_TYPE_NOT_EQUAL; } break; - case 305: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy436 = OP_TYPE_EQUAL; } + case 313: /* compare_op ::= NK_EQ */ +{ yymsp[0].minor.yy468 = OP_TYPE_EQUAL; } break; - case 306: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy436 = OP_TYPE_LIKE; } + case 314: /* compare_op ::= LIKE */ +{ yymsp[0].minor.yy468 = OP_TYPE_LIKE; } break; - case 307: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy436 = OP_TYPE_NOT_LIKE; } + case 315: /* compare_op ::= NOT LIKE */ +{ yymsp[-1].minor.yy468 = OP_TYPE_NOT_LIKE; } break; - case 308: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy436 = OP_TYPE_MATCH; } + case 316: /* compare_op ::= MATCH */ +{ yymsp[0].minor.yy468 = OP_TYPE_MATCH; } break; - case 309: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy436 = OP_TYPE_NMATCH; } + case 317: /* compare_op ::= NMATCH */ +{ yymsp[0].minor.yy468 = OP_TYPE_NMATCH; } break; - case 310: /* in_op ::= IN */ -{ yymsp[0].minor.yy436 = OP_TYPE_IN; } + case 318: /* in_op ::= IN */ +{ yymsp[0].minor.yy468 = OP_TYPE_IN; } break; - case 311: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy436 = OP_TYPE_NOT_IN; } + case 319: /* in_op ::= NOT IN */ +{ yymsp[-1].minor.yy468 = OP_TYPE_NOT_IN; } break; - case 312: /* in_predicate_value ::= NK_LP expression_list NK_RP */ -{ yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy376)); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 320: /* in_predicate_value ::= NK_LP expression_list NK_RP */ +{ yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy476)); } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 314: /* boolean_value_expression ::= NOT boolean_primary */ + case 322: /* boolean_value_expression ::= NOT boolean_primary */ { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy168), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); + yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy564), NULL)); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + yymsp[-1].minor.yy564 = yylhsminor.yy564; break; - case 315: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 323: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); + yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 316: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 324: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy168); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy564); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); + yylhsminor.yy564 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 321: /* from_clause ::= FROM table_reference_list */ - case 351: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==351); - case 374: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==374); -{ yymsp[-1].minor.yy168 = yymsp[0].minor.yy168; } + case 329: /* from_clause ::= FROM table_reference_list */ + case 359: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==359); + case 382: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==382); +{ yymsp[-1].minor.yy564 = yymsp[0].minor.yy564; } break; - case 323: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy168 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy168, yymsp[0].minor.yy168, NULL); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 331: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +{ yylhsminor.yy564 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy564, yymsp[0].minor.yy564, NULL); } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 326: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy168 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy393, &yymsp[0].minor.yy393); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + case 334: /* table_primary ::= table_name alias_opt */ +{ yylhsminor.yy564 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy21, &yymsp[0].minor.yy21); } + yymsp[-1].minor.yy564 = yylhsminor.yy564; break; - case 327: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy168 = createRealTableNode(pCxt, &yymsp[-3].minor.yy393, &yymsp[-1].minor.yy393, &yymsp[0].minor.yy393); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; + case 335: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +{ yylhsminor.yy564 = createRealTableNode(pCxt, &yymsp[-3].minor.yy21, &yymsp[-1].minor.yy21, &yymsp[0].minor.yy21); } + yymsp[-3].minor.yy564 = yylhsminor.yy564; break; - case 328: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy168 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy168), &yymsp[0].minor.yy393); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + case 336: /* table_primary ::= subquery alias_opt */ +{ yylhsminor.yy564 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy564), &yymsp[0].minor.yy21); } + yymsp[-1].minor.yy564 = yylhsminor.yy564; break; - case 330: /* alias_opt ::= */ -{ yymsp[1].minor.yy393 = nil_token; } + case 338: /* alias_opt ::= */ +{ yymsp[1].minor.yy21 = nil_token; } break; - case 331: /* alias_opt ::= table_alias */ -{ yylhsminor.yy393 = yymsp[0].minor.yy393; } - yymsp[0].minor.yy393 = yylhsminor.yy393; + case 339: /* alias_opt ::= table_alias */ +{ yylhsminor.yy21 = yymsp[0].minor.yy21; } + yymsp[0].minor.yy21 = yylhsminor.yy21; break; - case 332: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy393 = yymsp[0].minor.yy393; } + case 340: /* alias_opt ::= AS table_alias */ +{ yymsp[-1].minor.yy21 = yymsp[0].minor.yy21; } break; - case 333: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 334: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==334); -{ yymsp[-2].minor.yy168 = yymsp[-1].minor.yy168; } + case 341: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 342: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==342); +{ yymsp[-2].minor.yy564 = yymsp[-1].minor.yy564; } break; - case 335: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -{ yylhsminor.yy168 = createJoinTableNode(pCxt, yymsp[-4].minor.yy596, yymsp[-5].minor.yy168, yymsp[-2].minor.yy168, yymsp[0].minor.yy168); } - yymsp[-5].minor.yy168 = yylhsminor.yy168; + case 343: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ +{ yylhsminor.yy564 = createJoinTableNode(pCxt, yymsp[-4].minor.yy440, yymsp[-5].minor.yy564, yymsp[-2].minor.yy564, yymsp[0].minor.yy564); } + yymsp[-5].minor.yy564 = yylhsminor.yy564; break; - case 336: /* join_type ::= */ -{ yymsp[1].minor.yy596 = JOIN_TYPE_INNER; } + case 344: /* join_type ::= */ +{ yymsp[1].minor.yy440 = JOIN_TYPE_INNER; } break; - case 337: /* join_type ::= INNER */ -{ yymsp[0].minor.yy596 = JOIN_TYPE_INNER; } + case 345: /* join_type ::= INNER */ +{ yymsp[0].minor.yy440 = JOIN_TYPE_INNER; } break; - case 338: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + case 346: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ { - yymsp[-8].minor.yy168 = createSelectStmt(pCxt, yymsp[-7].minor.yy537, yymsp[-6].minor.yy376, yymsp[-5].minor.yy168); - yymsp[-8].minor.yy168 = addWhereClause(pCxt, yymsp[-8].minor.yy168, yymsp[-4].minor.yy168); - yymsp[-8].minor.yy168 = addPartitionByClause(pCxt, yymsp[-8].minor.yy168, yymsp[-3].minor.yy376); - yymsp[-8].minor.yy168 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy168, yymsp[-2].minor.yy168); - yymsp[-8].minor.yy168 = addGroupByClause(pCxt, yymsp[-8].minor.yy168, yymsp[-1].minor.yy376); - yymsp[-8].minor.yy168 = addHavingClause(pCxt, yymsp[-8].minor.yy168, yymsp[0].minor.yy168); + yymsp[-8].minor.yy564 = createSelectStmt(pCxt, yymsp[-7].minor.yy173, yymsp[-6].minor.yy476, yymsp[-5].minor.yy564); + yymsp[-8].minor.yy564 = addWhereClause(pCxt, yymsp[-8].minor.yy564, yymsp[-4].minor.yy564); + yymsp[-8].minor.yy564 = addPartitionByClause(pCxt, yymsp[-8].minor.yy564, yymsp[-3].minor.yy476); + yymsp[-8].minor.yy564 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy564, yymsp[-2].minor.yy564); + yymsp[-8].minor.yy564 = addGroupByClause(pCxt, yymsp[-8].minor.yy564, yymsp[-1].minor.yy476); + yymsp[-8].minor.yy564 = addHavingClause(pCxt, yymsp[-8].minor.yy564, yymsp[0].minor.yy564); } break; - case 341: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy537 = false; } + case 349: /* set_quantifier_opt ::= ALL */ +{ yymsp[0].minor.yy173 = false; } break; - case 342: /* select_list ::= NK_STAR */ -{ yymsp[0].minor.yy376 = NULL; } + case 350: /* select_list ::= NK_STAR */ +{ yymsp[0].minor.yy476 = NULL; } break; - case 346: /* select_item ::= common_expression */ + case 354: /* select_item ::= common_expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy168); - yylhsminor.yy168 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy168), &t); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy564); + yylhsminor.yy564 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy564), &t); } - yymsp[0].minor.yy168 = yylhsminor.yy168; + yymsp[0].minor.yy564 = yylhsminor.yy564; break; - case 347: /* select_item ::= common_expression column_alias */ -{ yylhsminor.yy168 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy168), &yymsp[0].minor.yy393); } - yymsp[-1].minor.yy168 = yylhsminor.yy168; + case 355: /* select_item ::= common_expression column_alias */ +{ yylhsminor.yy564 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy564), &yymsp[0].minor.yy21); } + yymsp[-1].minor.yy564 = yylhsminor.yy564; break; - case 348: /* select_item ::= common_expression AS column_alias */ -{ yylhsminor.yy168 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), &yymsp[0].minor.yy393); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 356: /* select_item ::= common_expression AS column_alias */ +{ yylhsminor.yy564 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), &yymsp[0].minor.yy21); } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 349: /* select_item ::= table_name NK_DOT NK_STAR */ -{ yylhsminor.yy168 = createColumnNode(pCxt, &yymsp[-2].minor.yy393, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 357: /* select_item ::= table_name NK_DOT NK_STAR */ +{ yylhsminor.yy564 = createColumnNode(pCxt, &yymsp[-2].minor.yy21, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 353: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 370: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==370); - case 380: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==380); -{ yymsp[-2].minor.yy376 = yymsp[0].minor.yy376; } + case 361: /* partition_by_clause_opt ::= PARTITION BY expression_list */ + case 378: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==378); + case 388: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==388); +{ yymsp[-2].minor.yy476 = yymsp[0].minor.yy476; } break; - case 355: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -{ yymsp[-5].minor.yy168 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy168), releaseRawExprNode(pCxt, yymsp[-1].minor.yy168)); } + case 363: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ +{ yymsp[-5].minor.yy564 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy564), releaseRawExprNode(pCxt, yymsp[-1].minor.yy564)); } break; - case 356: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ -{ yymsp[-3].minor.yy168 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy168)); } + case 364: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ +{ yymsp[-3].minor.yy564 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy564)); } break; - case 357: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy168 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy168), NULL, yymsp[-1].minor.yy168, yymsp[0].minor.yy168); } + case 365: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-5].minor.yy564 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy564), NULL, yymsp[-1].minor.yy564, yymsp[0].minor.yy564); } break; - case 358: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-7].minor.yy168 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy168), releaseRawExprNode(pCxt, yymsp[-3].minor.yy168), yymsp[-1].minor.yy168, yymsp[0].minor.yy168); } + case 366: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-7].minor.yy564 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy564), releaseRawExprNode(pCxt, yymsp[-3].minor.yy564), yymsp[-1].minor.yy564, yymsp[0].minor.yy564); } break; - case 360: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ -{ yymsp[-3].minor.yy168 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy168); } + case 368: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ +{ yymsp[-3].minor.yy564 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy564); } break; - case 362: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy168 = createFillNode(pCxt, yymsp[-1].minor.yy382, NULL); } + case 370: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +{ yymsp[-3].minor.yy564 = createFillNode(pCxt, yymsp[-1].minor.yy268, NULL); } break; - case 363: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ -{ yymsp[-5].minor.yy168 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy376)); } + case 371: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ +{ yymsp[-5].minor.yy564 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy476)); } break; - case 364: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy382 = FILL_MODE_NONE; } + case 372: /* fill_mode ::= NONE */ +{ yymsp[0].minor.yy268 = FILL_MODE_NONE; } break; - case 365: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy382 = FILL_MODE_PREV; } + case 373: /* fill_mode ::= PREV */ +{ yymsp[0].minor.yy268 = FILL_MODE_PREV; } break; - case 366: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy382 = FILL_MODE_NULL; } + case 374: /* fill_mode ::= NULL */ +{ yymsp[0].minor.yy268 = FILL_MODE_NULL; } break; - case 367: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy382 = FILL_MODE_LINEAR; } + case 375: /* fill_mode ::= LINEAR */ +{ yymsp[0].minor.yy268 = FILL_MODE_LINEAR; } break; - case 368: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy382 = FILL_MODE_NEXT; } + case 376: /* fill_mode ::= NEXT */ +{ yymsp[0].minor.yy268 = FILL_MODE_NEXT; } break; - case 371: /* group_by_list ::= expression */ -{ yylhsminor.yy376 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } - yymsp[0].minor.yy376 = yylhsminor.yy376; + case 379: /* group_by_list ::= expression */ +{ yylhsminor.yy476 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); } + yymsp[0].minor.yy476 = yylhsminor.yy476; break; - case 372: /* group_by_list ::= group_by_list NK_COMMA expression */ -{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-2].minor.yy376, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy168))); } - yymsp[-2].minor.yy376 = yylhsminor.yy376; + case 380: /* group_by_list ::= group_by_list NK_COMMA expression */ +{ yylhsminor.yy476 = addNodeToList(pCxt, yymsp[-2].minor.yy476, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy564))); } + yymsp[-2].minor.yy476 = yylhsminor.yy476; break; - case 375: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 383: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { - yylhsminor.yy168 = addOrderByClause(pCxt, yymsp[-3].minor.yy168, yymsp[-2].minor.yy376); - yylhsminor.yy168 = addSlimitClause(pCxt, yylhsminor.yy168, yymsp[-1].minor.yy168); - yylhsminor.yy168 = addLimitClause(pCxt, yylhsminor.yy168, yymsp[0].minor.yy168); + yylhsminor.yy564 = addOrderByClause(pCxt, yymsp[-3].minor.yy564, yymsp[-2].minor.yy476); + yylhsminor.yy564 = addSlimitClause(pCxt, yylhsminor.yy564, yymsp[-1].minor.yy564); + yylhsminor.yy564 = addLimitClause(pCxt, yylhsminor.yy564, yymsp[0].minor.yy564); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; + yymsp[-3].minor.yy564 = yylhsminor.yy564; break; - case 377: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ -{ yylhsminor.yy168 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy168, yymsp[0].minor.yy168); } - yymsp[-3].minor.yy168 = yylhsminor.yy168; + case 385: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ +{ yylhsminor.yy564 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy564, yymsp[0].minor.yy564); } + yymsp[-3].minor.yy564 = yylhsminor.yy564; break; - case 382: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 386: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==386); -{ yymsp[-1].minor.yy168 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 390: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 394: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==394); +{ yymsp[-1].minor.yy564 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 383: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 387: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==387); -{ yymsp[-3].minor.yy168 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 391: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 395: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==395); +{ yymsp[-3].minor.yy564 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 384: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 388: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==388); -{ yymsp[-3].minor.yy168 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 392: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 396: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==396); +{ yymsp[-3].minor.yy564 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 389: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy168 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy168); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 397: /* subquery ::= NK_LP query_expression NK_RP */ +{ yylhsminor.yy564 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy564); } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 393: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy168 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy168), yymsp[-1].minor.yy554, yymsp[0].minor.yy81); } - yymsp[-2].minor.yy168 = yylhsminor.yy168; + case 401: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ +{ yylhsminor.yy564 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy564), yymsp[-1].minor.yy256, yymsp[0].minor.yy525); } + yymsp[-2].minor.yy564 = yylhsminor.yy564; break; - case 394: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy554 = ORDER_ASC; } + case 402: /* ordering_specification_opt ::= */ +{ yymsp[1].minor.yy256 = ORDER_ASC; } break; - case 395: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy554 = ORDER_ASC; } + case 403: /* ordering_specification_opt ::= ASC */ +{ yymsp[0].minor.yy256 = ORDER_ASC; } break; - case 396: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy554 = ORDER_DESC; } + case 404: /* ordering_specification_opt ::= DESC */ +{ yymsp[0].minor.yy256 = ORDER_DESC; } break; - case 397: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy81 = NULL_ORDER_DEFAULT; } + case 405: /* null_ordering_opt ::= */ +{ yymsp[1].minor.yy525 = NULL_ORDER_DEFAULT; } break; - case 398: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy81 = NULL_ORDER_FIRST; } + case 406: /* null_ordering_opt ::= NULLS FIRST */ +{ yymsp[-1].minor.yy525 = NULL_ORDER_FIRST; } break; - case 399: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy81 = NULL_ORDER_LAST; } + case 407: /* null_ordering_opt ::= NULLS LAST */ +{ yymsp[-1].minor.yy525 = NULL_ORDER_LAST; } break; default: break; diff --git a/source/libs/parser/test/parserAstTest.cpp b/source/libs/parser/test/parserAstTest.cpp index 87582f9eba..d7e9b4a24d 100644 --- a/source/libs/parser/test/parserAstTest.cpp +++ b/source/libs/parser/test/parserAstTest.cpp @@ -648,6 +648,48 @@ TEST_F(ParserTest, dropQnode) { ASSERT_TRUE(run()); } +TEST_F(ParserTest, createBnode) { + setDatabase("root", "test"); + + bind("create bnode on dnode 1"); + ASSERT_TRUE(run()); +} + +TEST_F(ParserTest, dropBnode) { + setDatabase("root", "test"); + + bind("drop bnode on dnode 1"); + ASSERT_TRUE(run()); +} + +TEST_F(ParserTest, createSnode) { + setDatabase("root", "test"); + + bind("create snode on dnode 1"); + ASSERT_TRUE(run()); +} + +TEST_F(ParserTest, dropSnode) { + setDatabase("root", "test"); + + bind("drop snode on dnode 1"); + ASSERT_TRUE(run()); +} + +TEST_F(ParserTest, createMnode) { + setDatabase("root", "test"); + + bind("create mnode on dnode 1"); + ASSERT_TRUE(run()); +} + +TEST_F(ParserTest, dropMnode) { + setDatabase("root", "test"); + + bind("drop mnode on dnode 1"); + ASSERT_TRUE(run()); +} + TEST_F(ParserTest, createTopic) { setDatabase("root", "test"); diff --git a/source/libs/planner/test/plannerTest.cpp b/source/libs/planner/test/plannerTest.cpp index 5f84eec36a..697c562b1e 100644 --- a/source/libs/planner/test/plannerTest.cpp +++ b/source/libs/planner/test/plannerTest.cpp @@ -259,6 +259,16 @@ TEST_F(PlannerTest, orderBy) { ASSERT_TRUE(run()); } +TEST_F(PlannerTest, groupByOrderBy) { + setDatabase("root", "test"); + + bind("select count(*), sum(c1) from t1 order by sum(c1)"); + ASSERT_TRUE(run()); + + bind("select count(*), sum(c1) a from t1 order by a"); + ASSERT_TRUE(run()); +} + TEST_F(PlannerTest, distinct) { setDatabase("root", "test"); -- GitLab