diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 6ace51f58e8e2a2d56cb7f97294e54cab6887eaa..8738ba20d4247f86d299008ad3d9225f93439ef8 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -73,194 +73,195 @@ #define TK_MNODE 55 #define TK_DATABASE 56 #define TK_USE 57 -#define TK_IF 58 -#define TK_NOT 59 -#define TK_EXISTS 60 -#define TK_BUFFER 61 -#define TK_CACHELAST 62 -#define TK_COMP 63 -#define TK_DURATION 64 -#define TK_NK_VARIABLE 65 -#define TK_FSYNC 66 -#define TK_MAXROWS 67 -#define TK_MINROWS 68 -#define TK_KEEP 69 -#define TK_PAGES 70 -#define TK_PAGESIZE 71 -#define TK_PRECISION 72 -#define TK_REPLICA 73 -#define TK_STRICT 74 -#define TK_WAL 75 -#define TK_VGROUPS 76 -#define TK_SINGLE_STABLE 77 -#define TK_RETENTIONS 78 -#define TK_SCHEMALESS 79 -#define TK_NK_COLON 80 -#define TK_TABLE 81 -#define TK_NK_LP 82 -#define TK_NK_RP 83 -#define TK_STABLE 84 -#define TK_ADD 85 -#define TK_COLUMN 86 -#define TK_MODIFY 87 -#define TK_RENAME 88 -#define TK_TAG 89 -#define TK_SET 90 -#define TK_NK_EQ 91 -#define TK_USING 92 -#define TK_TAGS 93 -#define TK_COMMENT 94 -#define TK_BOOL 95 -#define TK_TINYINT 96 -#define TK_SMALLINT 97 -#define TK_INT 98 -#define TK_INTEGER 99 -#define TK_BIGINT 100 -#define TK_FLOAT 101 -#define TK_DOUBLE 102 -#define TK_BINARY 103 -#define TK_TIMESTAMP 104 -#define TK_NCHAR 105 -#define TK_UNSIGNED 106 -#define TK_JSON 107 -#define TK_VARCHAR 108 -#define TK_MEDIUMBLOB 109 -#define TK_BLOB 110 -#define TK_VARBINARY 111 -#define TK_DECIMAL 112 -#define TK_MAX_DELAY 113 -#define TK_WATERMARK 114 -#define TK_ROLLUP 115 -#define TK_TTL 116 -#define TK_SMA 117 -#define TK_FIRST 118 -#define TK_LAST 119 -#define TK_SHOW 120 -#define TK_DATABASES 121 -#define TK_TABLES 122 -#define TK_STABLES 123 -#define TK_MNODES 124 -#define TK_MODULES 125 -#define TK_QNODES 126 -#define TK_FUNCTIONS 127 -#define TK_INDEXES 128 -#define TK_ACCOUNTS 129 -#define TK_APPS 130 -#define TK_CONNECTIONS 131 -#define TK_LICENCE 132 -#define TK_GRANTS 133 -#define TK_QUERIES 134 -#define TK_SCORES 135 -#define TK_TOPICS 136 -#define TK_VARIABLES 137 -#define TK_BNODES 138 -#define TK_SNODES 139 -#define TK_CLUSTER 140 -#define TK_TRANSACTIONS 141 -#define TK_DISTRIBUTED 142 -#define TK_CONSUMERS 143 -#define TK_SUBSCRIPTIONS 144 -#define TK_LIKE 145 -#define TK_INDEX 146 -#define TK_FUNCTION 147 -#define TK_INTERVAL 148 -#define TK_TOPIC 149 -#define TK_AS 150 -#define TK_WITH 151 -#define TK_META 152 -#define TK_CONSUMER 153 -#define TK_GROUP 154 -#define TK_DESC 155 -#define TK_DESCRIBE 156 -#define TK_RESET 157 -#define TK_QUERY 158 -#define TK_CACHE 159 -#define TK_EXPLAIN 160 -#define TK_ANALYZE 161 -#define TK_VERBOSE 162 -#define TK_NK_BOOL 163 -#define TK_RATIO 164 -#define TK_NK_FLOAT 165 -#define TK_COMPACT 166 -#define TK_VNODES 167 -#define TK_IN 168 -#define TK_OUTPUTTYPE 169 -#define TK_AGGREGATE 170 -#define TK_BUFSIZE 171 -#define TK_STREAM 172 -#define TK_INTO 173 -#define TK_TRIGGER 174 -#define TK_AT_ONCE 175 -#define TK_WINDOW_CLOSE 176 -#define TK_KILL 177 -#define TK_CONNECTION 178 -#define TK_TRANSACTION 179 -#define TK_BALANCE 180 -#define TK_VGROUP 181 -#define TK_MERGE 182 -#define TK_REDISTRIBUTE 183 -#define TK_SPLIT 184 -#define TK_SYNCDB 185 -#define TK_DELETE 186 -#define TK_NULL 187 -#define TK_NK_QUESTION 188 -#define TK_NK_ARROW 189 -#define TK_ROWTS 190 -#define TK_TBNAME 191 -#define TK_QSTARTTS 192 -#define TK_QENDTS 193 -#define TK_WSTARTTS 194 -#define TK_WENDTS 195 -#define TK_WDURATION 196 -#define TK_CAST 197 -#define TK_NOW 198 -#define TK_TODAY 199 -#define TK_TIMEZONE 200 -#define TK_COUNT 201 -#define TK_LAST_ROW 202 -#define TK_BETWEEN 203 -#define TK_IS 204 -#define TK_NK_LT 205 -#define TK_NK_GT 206 -#define TK_NK_LE 207 -#define TK_NK_GE 208 -#define TK_NK_NE 209 -#define TK_MATCH 210 -#define TK_NMATCH 211 -#define TK_CONTAINS 212 -#define TK_JOIN 213 -#define TK_INNER 214 -#define TK_SELECT 215 -#define TK_DISTINCT 216 -#define TK_WHERE 217 -#define TK_PARTITION 218 -#define TK_BY 219 -#define TK_SESSION 220 -#define TK_STATE_WINDOW 221 -#define TK_SLIDING 222 -#define TK_FILL 223 -#define TK_VALUE 224 -#define TK_NONE 225 -#define TK_PREV 226 -#define TK_LINEAR 227 -#define TK_NEXT 228 -#define TK_HAVING 229 -#define TK_RANGE 230 -#define TK_EVERY 231 -#define TK_ORDER 232 -#define TK_SLIMIT 233 -#define TK_SOFFSET 234 -#define TK_LIMIT 235 -#define TK_OFFSET 236 -#define TK_ASC 237 -#define TK_NULLS 238 -#define TK_ID 239 -#define TK_NK_BITNOT 240 -#define TK_INSERT 241 -#define TK_VALUES 242 -#define TK_IMPORT 243 -#define TK_NK_SEMI 244 -#define TK_FILE 245 +#define TK_FLUSH 58 +#define TK_IF 59 +#define TK_NOT 60 +#define TK_EXISTS 61 +#define TK_BUFFER 62 +#define TK_CACHELAST 63 +#define TK_COMP 64 +#define TK_DURATION 65 +#define TK_NK_VARIABLE 66 +#define TK_FSYNC 67 +#define TK_MAXROWS 68 +#define TK_MINROWS 69 +#define TK_KEEP 70 +#define TK_PAGES 71 +#define TK_PAGESIZE 72 +#define TK_PRECISION 73 +#define TK_REPLICA 74 +#define TK_STRICT 75 +#define TK_WAL 76 +#define TK_VGROUPS 77 +#define TK_SINGLE_STABLE 78 +#define TK_RETENTIONS 79 +#define TK_SCHEMALESS 80 +#define TK_NK_COLON 81 +#define TK_TABLE 82 +#define TK_NK_LP 83 +#define TK_NK_RP 84 +#define TK_STABLE 85 +#define TK_ADD 86 +#define TK_COLUMN 87 +#define TK_MODIFY 88 +#define TK_RENAME 89 +#define TK_TAG 90 +#define TK_SET 91 +#define TK_NK_EQ 92 +#define TK_USING 93 +#define TK_TAGS 94 +#define TK_COMMENT 95 +#define TK_BOOL 96 +#define TK_TINYINT 97 +#define TK_SMALLINT 98 +#define TK_INT 99 +#define TK_INTEGER 100 +#define TK_BIGINT 101 +#define TK_FLOAT 102 +#define TK_DOUBLE 103 +#define TK_BINARY 104 +#define TK_TIMESTAMP 105 +#define TK_NCHAR 106 +#define TK_UNSIGNED 107 +#define TK_JSON 108 +#define TK_VARCHAR 109 +#define TK_MEDIUMBLOB 110 +#define TK_BLOB 111 +#define TK_VARBINARY 112 +#define TK_DECIMAL 113 +#define TK_MAX_DELAY 114 +#define TK_WATERMARK 115 +#define TK_ROLLUP 116 +#define TK_TTL 117 +#define TK_SMA 118 +#define TK_FIRST 119 +#define TK_LAST 120 +#define TK_SHOW 121 +#define TK_DATABASES 122 +#define TK_TABLES 123 +#define TK_STABLES 124 +#define TK_MNODES 125 +#define TK_MODULES 126 +#define TK_QNODES 127 +#define TK_FUNCTIONS 128 +#define TK_INDEXES 129 +#define TK_ACCOUNTS 130 +#define TK_APPS 131 +#define TK_CONNECTIONS 132 +#define TK_LICENCE 133 +#define TK_GRANTS 134 +#define TK_QUERIES 135 +#define TK_SCORES 136 +#define TK_TOPICS 137 +#define TK_VARIABLES 138 +#define TK_BNODES 139 +#define TK_SNODES 140 +#define TK_CLUSTER 141 +#define TK_TRANSACTIONS 142 +#define TK_DISTRIBUTED 143 +#define TK_CONSUMERS 144 +#define TK_SUBSCRIPTIONS 145 +#define TK_LIKE 146 +#define TK_INDEX 147 +#define TK_FUNCTION 148 +#define TK_INTERVAL 149 +#define TK_TOPIC 150 +#define TK_AS 151 +#define TK_WITH 152 +#define TK_META 153 +#define TK_CONSUMER 154 +#define TK_GROUP 155 +#define TK_DESC 156 +#define TK_DESCRIBE 157 +#define TK_RESET 158 +#define TK_QUERY 159 +#define TK_CACHE 160 +#define TK_EXPLAIN 161 +#define TK_ANALYZE 162 +#define TK_VERBOSE 163 +#define TK_NK_BOOL 164 +#define TK_RATIO 165 +#define TK_NK_FLOAT 166 +#define TK_COMPACT 167 +#define TK_VNODES 168 +#define TK_IN 169 +#define TK_OUTPUTTYPE 170 +#define TK_AGGREGATE 171 +#define TK_BUFSIZE 172 +#define TK_STREAM 173 +#define TK_INTO 174 +#define TK_TRIGGER 175 +#define TK_AT_ONCE 176 +#define TK_WINDOW_CLOSE 177 +#define TK_KILL 178 +#define TK_CONNECTION 179 +#define TK_TRANSACTION 180 +#define TK_BALANCE 181 +#define TK_VGROUP 182 +#define TK_MERGE 183 +#define TK_REDISTRIBUTE 184 +#define TK_SPLIT 185 +#define TK_SYNCDB 186 +#define TK_DELETE 187 +#define TK_NULL 188 +#define TK_NK_QUESTION 189 +#define TK_NK_ARROW 190 +#define TK_ROWTS 191 +#define TK_TBNAME 192 +#define TK_QSTARTTS 193 +#define TK_QENDTS 194 +#define TK_WSTARTTS 195 +#define TK_WENDTS 196 +#define TK_WDURATION 197 +#define TK_CAST 198 +#define TK_NOW 199 +#define TK_TODAY 200 +#define TK_TIMEZONE 201 +#define TK_COUNT 202 +#define TK_LAST_ROW 203 +#define TK_BETWEEN 204 +#define TK_IS 205 +#define TK_NK_LT 206 +#define TK_NK_GT 207 +#define TK_NK_LE 208 +#define TK_NK_GE 209 +#define TK_NK_NE 210 +#define TK_MATCH 211 +#define TK_NMATCH 212 +#define TK_CONTAINS 213 +#define TK_JOIN 214 +#define TK_INNER 215 +#define TK_SELECT 216 +#define TK_DISTINCT 217 +#define TK_WHERE 218 +#define TK_PARTITION 219 +#define TK_BY 220 +#define TK_SESSION 221 +#define TK_STATE_WINDOW 222 +#define TK_SLIDING 223 +#define TK_FILL 224 +#define TK_VALUE 225 +#define TK_NONE 226 +#define TK_PREV 227 +#define TK_LINEAR 228 +#define TK_NEXT 229 +#define TK_HAVING 230 +#define TK_RANGE 231 +#define TK_EVERY 232 +#define TK_ORDER 233 +#define TK_SLIMIT 234 +#define TK_SOFFSET 235 +#define TK_LIMIT 236 +#define TK_OFFSET 237 +#define TK_ASC 238 +#define TK_NULLS 239 +#define TK_ID 240 +#define TK_NK_BITNOT 241 +#define TK_INSERT 242 +#define TK_VALUES 243 +#define TK_IMPORT 244 +#define TK_NK_SEMI 245 +#define TK_FILE 246 #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 e473daad8dc672ac30c80de3d2e5cf16524db339..880ea9af3f062ab64330e92dc88d1ae265dcd43c 100644 --- a/include/libs/nodes/cmdnodes.h +++ b/include/libs/nodes/cmdnodes.h @@ -97,6 +97,11 @@ typedef struct SAlterDatabaseStmt { SDatabaseOptions* pOptions; } SAlterDatabaseStmt; +typedef struct SFlushDatabaseStmt { + ENodeType type; + char dbName[TSDB_DB_NAME_LEN]; +} SFlushDatabaseStmt; + typedef struct STableOptions { ENodeType type; bool commentNull; diff --git a/include/libs/nodes/nodes.h b/include/libs/nodes/nodes.h index 2153f59bf84c48460c215a84b53b6e67dea7e3c7..0b71cec88843b9e7a4608cbf54cad1a56b832b9f 100644 --- a/include/libs/nodes/nodes.h +++ b/include/libs/nodes/nodes.h @@ -111,6 +111,7 @@ typedef enum ENodeType { QUERY_NODE_CREATE_DATABASE_STMT, QUERY_NODE_DROP_DATABASE_STMT, QUERY_NODE_ALTER_DATABASE_STMT, + QUERY_NODE_FLUSH_DATABASE_STMT, QUERY_NODE_CREATE_TABLE_STMT, QUERY_NODE_CREATE_SUBTABLE_CLAUSE, QUERY_NODE_CREATE_MULTI_TABLE_STMT, diff --git a/source/libs/nodes/src/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c index be6faa92cbfb109d936bfc99dc9ea64ecc03aec1..9c37b6b7a3e017686994e84d7834dd8d06075009 100644 --- a/source/libs/nodes/src/nodesUtilFuncs.c +++ b/source/libs/nodes/src/nodesUtilFuncs.c @@ -102,6 +102,8 @@ SNode* nodesMakeNode(ENodeType type) { return makeNode(type, sizeof(SDropDatabaseStmt)); case QUERY_NODE_ALTER_DATABASE_STMT: return makeNode(type, sizeof(SAlterDatabaseStmt)); + case QUERY_NODE_FLUSH_DATABASE_STMT: + return makeNode(type, sizeof(SFlushDatabaseStmt)); case QUERY_NODE_CREATE_TABLE_STMT: return makeNode(type, sizeof(SCreateTableStmt)); case QUERY_NODE_CREATE_SUBTABLE_CLAUSE: @@ -540,6 +542,8 @@ void nodesDestroyNode(SNode* pNode) { case QUERY_NODE_ALTER_DATABASE_STMT: nodesDestroyNode((SNode*)((SAlterDatabaseStmt*)pNode)->pOptions); break; + case QUERY_NODE_FLUSH_DATABASE_STMT: // no pointer field + break; case QUERY_NODE_CREATE_TABLE_STMT: { SCreateTableStmt* pStmt = (SCreateTableStmt*)pNode; nodesDestroyList(pStmt->pCols); diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index 4585a59612867deb6b01805c74f02db45f45a68a..c58e1d5dc0334a7c8e3308724b9e5488043dfb59 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -135,6 +135,7 @@ SNode* setAlterDatabaseOption(SAstCreateContext* pCxt, SNode* pOptions, SAlterOp SNode* createCreateDatabaseStmt(SAstCreateContext* pCxt, bool ignoreExists, SToken* pDbName, SNode* pOptions); SNode* createDropDatabaseStmt(SAstCreateContext* pCxt, bool ignoreNotExists, SToken* pDbName); SNode* createAlterDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName, SNode* pOptions); +SNode* createFlushDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName); SNode* createDefaultTableOptions(SAstCreateContext* pCxt); SNode* createAlterTableOptions(SAstCreateContext* pCxt); SNode* setTableOption(SAstCreateContext* pCxt, SNode* pOptions, ETableOptionType type, void* pVal); diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index a27d0e9164414af8f60459de35b7b672ce215fab..79622c1fa2a2a8b0d0a5b2158e2d43cc9d628492 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -157,6 +157,7 @@ cmd ::= CREATE DATABASE not_exists_opt(A) db_name(B) db_options(C). cmd ::= DROP DATABASE exists_opt(A) db_name(B). { pCxt->pRootNode = createDropDatabaseStmt(pCxt, A, &B); } cmd ::= USE db_name(A). { pCxt->pRootNode = createUseDatabaseStmt(pCxt, &A); } cmd ::= ALTER DATABASE db_name(A) alter_db_options(B). { pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &A, B); } +cmd ::= FLUSH DATABASE db_name(A). { pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &A); } %type not_exists_opt { bool } %destructor not_exists_opt { } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 9709a8b1eafc669f8c3fe683d9ac8b787a0eed9e..48ea2af2722667af23671d62cf24253b2ab09bf4 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -903,6 +903,17 @@ SNode* createAlterDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName, SNode* return (SNode*)pStmt; } +SNode* createFlushDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName) { + CHECK_PARSER_STATUS(pCxt); + if (!checkDbName(pCxt, pDbName, false)) { + return NULL; + } + SAlterDatabaseStmt* pStmt = (SAlterDatabaseStmt*)nodesMakeNode(QUERY_NODE_FLUSH_DATABASE_STMT); + CHECK_OUT_OF_MEM(pStmt); + COPY_STRING_FORM_ID_TOKEN(pStmt->dbName, pDbName); + return (SNode*)pStmt; +} + SNode* createDefaultTableOptions(SAstCreateContext* pCxt) { CHECK_PARSER_STATUS(pCxt); STableOptions* pOptions = (STableOptions*)nodesMakeNode(QUERY_NODE_TABLE_OPTIONS); diff --git a/source/libs/parser/src/parAstParser.c b/source/libs/parser/src/parAstParser.c index 80ca411e0e991594b1c7ebc86ebf0ffbb08dcf7e..99046a7223290a61d2571dfb0be99de5f15138ef 100644 --- a/source/libs/parser/src/parAstParser.c +++ b/source/libs/parser/src/parAstParser.c @@ -195,6 +195,10 @@ static int32_t collectMetaKeyFromAlterDatabase(SCollectMetaKeyCxt* pCxt, SAlterD return reserveDbCfgInCache(pCxt->pParseCxt->acctId, pStmt->dbName, pCxt->pMetaCache); } +static int32_t collectMetaKeyFromFlushDatabase(SCollectMetaKeyCxt* pCxt, SFlushDatabaseStmt* pStmt) { + return reserveDbVgInfoInCache(pCxt->pParseCxt->acctId, pStmt->dbName, pCxt->pMetaCache); +} + static int32_t collectMetaKeyFromCreateTable(SCollectMetaKeyCxt* pCxt, SCreateTableStmt* pStmt) { int32_t code = reserveDbCfgInCache(pCxt->pParseCxt->acctId, pStmt->dbName, pCxt->pMetaCache); if (TSDB_CODE_SUCCESS == code && NULL == pStmt->pTags) { @@ -475,6 +479,8 @@ static int32_t collectMetaKeyFromQuery(SCollectMetaKeyCxt* pCxt, SNode* pStmt) { return collectMetaKeyFromSelect(pCxt, (SSelectStmt*)pStmt); case QUERY_NODE_ALTER_DATABASE_STMT: return collectMetaKeyFromAlterDatabase(pCxt, (SAlterDatabaseStmt*)pStmt); + case QUERY_NODE_FLUSH_DATABASE_STMT: + return collectMetaKeyFromFlushDatabase(pCxt, (SFlushDatabaseStmt*)pStmt); case QUERY_NODE_CREATE_TABLE_STMT: return collectMetaKeyFromCreateTable(pCxt, (SCreateTableStmt*)pStmt); case QUERY_NODE_CREATE_MULTI_TABLE_STMT: diff --git a/source/libs/parser/src/parTokenizer.c b/source/libs/parser/src/parTokenizer.c index 6726bb7dfda60afcd1d099a5f5860267174d0cf5..44eb18e4cb2cc3244ab0b5007bc196a49161a3de 100644 --- a/source/libs/parser/src/parTokenizer.c +++ b/source/libs/parser/src/parTokenizer.c @@ -87,6 +87,7 @@ static SKeyword keywordTable[] = { {"FILL", TK_FILL}, {"FIRST", TK_FIRST}, {"FLOAT", TK_FLOAT}, + {"FLUSH", TK_FLUSH}, {"FROM", TK_FROM}, {"FSYNC", TK_FSYNC}, {"FUNCTION", TK_FUNCTION}, diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 45240536e3398e7134e376377bedd9222d188130..8903a34e6489ec5185813fe8e5199a945d948eea 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -5863,6 +5863,67 @@ static int32_t rewriteAlterTable(STranslateContext* pCxt, SQuery* pQuery) { return code; } +static int32_t serializeFlushVgroup(SVgroupInfo* pVg, SArray* pBufArray) { + int32_t len = sizeof(SMsgHead); + void* buf = taosMemoryMalloc(len); + if (NULL == buf) { + return TSDB_CODE_OUT_OF_MEMORY; + } + ((SMsgHead*)buf)->vgId = htonl(pVg->vgId); + ((SMsgHead*)buf)->contLen = htonl(len); + + SVgDataBlocks* pVgData = taosMemoryCalloc(1, sizeof(SVgDataBlocks)); + if (NULL == pVgData) { + taosMemoryFree(buf); + return TSDB_CODE_OUT_OF_MEMORY; + } + pVgData->vg = *pVg; + pVgData->pData = buf; + pVgData->size = len; + taosArrayPush(pBufArray, &pVgData); + + return TSDB_CODE_SUCCESS; +} + +static int32_t serializeFlushDb(SArray* pVgs, SArray** pOutput) { + int32_t numOfVgs = taosArrayGetSize(pVgs); + + SArray* pBufArray = taosArrayInit(numOfVgs, sizeof(void*)); + if (NULL == pBufArray) { + return TSDB_CODE_OUT_OF_MEMORY; + } + + for (int32_t i = 0; i < numOfVgs; ++i) { + int32_t code = serializeFlushVgroup((SVgroupInfo*)taosArrayGet(pVgs, i), pBufArray); + if (TSDB_CODE_SUCCESS != code) { + taosArrayDestroy(pBufArray); + return code; + } + } + + *pOutput = pBufArray; + return TSDB_CODE_SUCCESS; +} + +static int32_t rewriteFlushDatabase(STranslateContext* pCxt, SQuery* pQuery) { + SFlushDatabaseStmt* pStmt = (SFlushDatabaseStmt*)pQuery->pRoot; + + SArray* pBufArray = NULL; + SArray* pVgs = NULL; + int32_t code = getDBVgInfo(pCxt, pStmt->dbName, &pVgs); + if (TSDB_CODE_SUCCESS == code) { + code = serializeFlushDb(pVgs, &pBufArray); + } + if (TSDB_CODE_SUCCESS == code) { + code = rewriteToVnodeModifyOpStmt(pQuery, pBufArray); + } + if (TSDB_CODE_SUCCESS != code) { + taosArrayDestroy(pBufArray); + } + taosArrayDestroy(pVgs); + return code; +} + static int32_t rewriteQuery(STranslateContext* pCxt, SQuery* pQuery) { int32_t code = TSDB_CODE_SUCCESS; switch (nodeType(pQuery->pRoot)) { @@ -5911,6 +5972,9 @@ static int32_t rewriteQuery(STranslateContext* pCxt, SQuery* pQuery) { case QUERY_NODE_ALTER_TABLE_STMT: code = rewriteAlterTable(pCxt, pQuery); break; + case QUERY_NODE_FLUSH_DATABASE_STMT: + code = rewriteFlushDatabase(pCxt, pQuery); + break; default: break; } diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index 225d163f5370ea659401eeedee33b73bff1fcba1..8466267ad252f7e20d2ba844ee2168fb9ea1165e 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -104,26 +104,26 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 370 +#define YYNOCODE 371 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - ENullOrder yy77; - SAlterOption yy85; - int32_t yy100; - SToken yy109; - EOrder yy178; - int64_t yy209; - int8_t yy323; - SNodeList* yy404; - bool yy437; - EOperatorType yy440; - SNode* yy452; - SDataType yy504; - EJoinType yy532; - EFillMode yy614; + SAlterOption yy81; + int64_t yy179; + ENullOrder yy193; + bool yy215; + EFillMode yy256; + EOrder yy372; + int8_t yy439; + SDataType yy490; + int32_t yy550; + EJoinType yy568; + SNodeList* yy656; + EOperatorType yy688; + SNode* yy714; + SToken yy729; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -139,17 +139,17 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 653 -#define YYNRULE 477 -#define YYNTOKEN 246 -#define YY_MAX_SHIFT 652 -#define YY_MIN_SHIFTREDUCE 947 -#define YY_MAX_SHIFTREDUCE 1423 -#define YY_ERROR_ACTION 1424 -#define YY_ACCEPT_ACTION 1425 -#define YY_NO_ACTION 1426 -#define YY_MIN_REDUCE 1427 -#define YY_MAX_REDUCE 1903 +#define YYNSTATE 656 +#define YYNRULE 478 +#define YYNTOKEN 247 +#define YY_MAX_SHIFT 655 +#define YY_MIN_SHIFTREDUCE 950 +#define YY_MAX_SHIFTREDUCE 1427 +#define YY_ERROR_ACTION 1428 +#define YY_ACCEPT_ACTION 1429 +#define YY_NO_ACTION 1430 +#define YY_MIN_REDUCE 1431 +#define YY_MAX_REDUCE 1908 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -216,623 +216,674 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (2208) +#define YY_ACTTAB_COUNT (2427) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 422, 1661, 423, 1462, 430, 1730, 423, 1462, 317, 1881, - /* 10 */ 141, 1425, 39, 37, 1518, 373, 1727, 69, 1552, 1550, - /* 20 */ 326, 1428, 1230, 1880, 379, 1730, 1367, 1878, 334, 1727, - /* 30 */ 115, 140, 1254, 1439, 1743, 1228, 1727, 338, 566, 1556, - /* 40 */ 1606, 1608, 101, 1723, 1729, 100, 99, 98, 97, 96, - /* 50 */ 95, 94, 93, 92, 570, 1881, 1723, 1729, 61, 14, - /* 60 */ 1309, 296, 1761, 1723, 1729, 1236, 1254, 570, 1761, 156, - /* 70 */ 550, 566, 343, 1878, 570, 1713, 519, 549, 39, 37, - /* 80 */ 1360, 427, 1, 504, 1255, 1230, 326, 1252, 1230, 33, - /* 90 */ 32, 439, 530, 40, 38, 36, 35, 34, 1228, 1743, - /* 100 */ 43, 1228, 151, 1774, 649, 520, 87, 1744, 552, 1746, - /* 110 */ 1747, 548, 1881, 570, 518, 1600, 1814, 69, 1301, 1302, - /* 120 */ 298, 1810, 60, 1881, 1255, 14, 156, 1761, 1236, 1881, - /* 130 */ 1878, 1236, 1881, 567, 567, 547, 60, 156, 526, 1557, - /* 140 */ 1713, 1878, 549, 157, 111, 161, 158, 1878, 2, 101, - /* 150 */ 1878, 460, 100, 99, 98, 97, 96, 95, 94, 93, - /* 160 */ 92, 1561, 1561, 1231, 1394, 1229, 119, 649, 1774, 604, - /* 170 */ 649, 287, 1744, 552, 1746, 1747, 548, 546, 570, 543, - /* 180 */ 1786, 1323, 1129, 1130, 1301, 1302, 1450, 1234, 1235, 534, - /* 190 */ 1283, 1284, 1286, 1287, 1288, 1289, 1290, 545, 568, 1298, - /* 200 */ 1299, 1300, 1303, 1285, 1328, 166, 117, 295, 1829, 1252, - /* 210 */ 40, 38, 36, 35, 34, 159, 405, 1427, 1236, 417, - /* 220 */ 528, 153, 1822, 1823, 567, 1827, 1231, 1713, 1229, 1231, - /* 230 */ 67, 1229, 1826, 66, 1384, 377, 390, 1285, 418, 27, - /* 240 */ 392, 110, 109, 108, 107, 106, 105, 104, 103, 102, - /* 250 */ 1234, 1235, 1561, 1234, 1235, 159, 1283, 1284, 1286, 1287, - /* 260 */ 1288, 1289, 1290, 545, 568, 1298, 1299, 1300, 1303, 159, - /* 270 */ 383, 512, 1382, 1383, 1385, 1386, 33, 32, 39, 37, - /* 280 */ 40, 38, 36, 35, 34, 1254, 326, 608, 1230, 1533, - /* 290 */ 1087, 593, 592, 591, 1091, 590, 1093, 1094, 589, 1096, - /* 300 */ 586, 1228, 1102, 583, 1104, 1105, 580, 577, 11, 10, - /* 310 */ 416, 22, 566, 411, 410, 409, 408, 407, 404, 403, - /* 320 */ 402, 401, 400, 396, 395, 394, 393, 387, 386, 385, - /* 330 */ 384, 1236, 381, 380, 39, 37, 1743, 1253, 310, 30, - /* 340 */ 240, 997, 326, 996, 1230, 33, 32, 209, 8, 40, - /* 350 */ 38, 36, 35, 34, 474, 473, 458, 1228, 1731, 472, - /* 360 */ 980, 1256, 116, 469, 1761, 567, 468, 467, 466, 1727, - /* 370 */ 649, 998, 550, 60, 42, 73, 111, 1713, 596, 549, - /* 380 */ 535, 14, 497, 465, 1301, 1302, 311, 1236, 309, 308, - /* 390 */ 1335, 462, 412, 1561, 530, 464, 1723, 1729, 515, 479, - /* 400 */ 984, 985, 1881, 1449, 2, 1774, 1440, 570, 87, 1744, - /* 410 */ 552, 1746, 1747, 548, 489, 570, 1879, 463, 1814, 567, - /* 420 */ 1878, 567, 298, 1810, 84, 553, 649, 1492, 201, 1231, - /* 430 */ 378, 1229, 382, 329, 1881, 607, 1658, 120, 170, 169, - /* 440 */ 1301, 1302, 482, 1448, 1713, 1553, 476, 1561, 156, 1561, - /* 450 */ 490, 200, 1878, 1234, 1235, 1546, 1283, 1284, 1286, 1287, - /* 460 */ 1288, 1289, 1290, 545, 568, 1298, 1299, 1300, 1303, 330, - /* 470 */ 521, 516, 39, 37, 1304, 421, 55, 138, 425, 54, - /* 480 */ 326, 159, 1230, 567, 1713, 1231, 1563, 1229, 474, 473, - /* 490 */ 1881, 231, 1420, 472, 397, 1228, 116, 469, 526, 1519, - /* 500 */ 468, 467, 466, 526, 156, 58, 159, 159, 1878, 1234, - /* 510 */ 1235, 1561, 1283, 1284, 1286, 1287, 1288, 1289, 1290, 545, - /* 520 */ 568, 1298, 1299, 1300, 1303, 1236, 119, 39, 37, 1607, - /* 530 */ 1608, 119, 567, 364, 1257, 326, 1447, 1230, 984, 985, - /* 540 */ 33, 32, 9, 398, 40, 38, 36, 35, 34, 202, - /* 550 */ 1228, 33, 32, 366, 362, 40, 38, 36, 35, 34, - /* 560 */ 1561, 567, 429, 1743, 649, 425, 117, 336, 997, 1446, - /* 570 */ 996, 117, 438, 1657, 1419, 138, 305, 1713, 1301, 1302, - /* 580 */ 1236, 154, 1822, 1823, 1563, 1827, 155, 1822, 1823, 1561, - /* 590 */ 1827, 1761, 602, 39, 37, 235, 567, 9, 998, 550, - /* 600 */ 1445, 326, 1444, 1230, 1713, 464, 549, 1558, 71, 304, - /* 610 */ 1713, 129, 128, 599, 598, 597, 1228, 567, 506, 649, - /* 620 */ 471, 470, 1479, 1231, 1561, 1229, 1374, 463, 1690, 36, - /* 630 */ 35, 34, 1774, 1301, 1302, 288, 1744, 552, 1746, 1747, - /* 640 */ 548, 1713, 570, 1713, 475, 1561, 1236, 1234, 1235, 1049, - /* 650 */ 1283, 1284, 1286, 1287, 1288, 1289, 1290, 545, 568, 1298, - /* 660 */ 1299, 1300, 1303, 2, 212, 567, 567, 33, 32, 1254, - /* 670 */ 567, 40, 38, 36, 35, 34, 498, 502, 1231, 1051, - /* 680 */ 1229, 564, 33, 32, 1651, 649, 40, 38, 36, 35, - /* 690 */ 34, 620, 618, 1561, 1561, 168, 1834, 1355, 1561, 1301, - /* 700 */ 1302, 1538, 1234, 1235, 1548, 1283, 1284, 1286, 1287, 1288, - /* 710 */ 1289, 1290, 545, 568, 1298, 1299, 1300, 1303, 299, 60, - /* 720 */ 567, 33, 32, 652, 339, 40, 38, 36, 35, 34, - /* 730 */ 1544, 565, 138, 299, 532, 205, 1613, 262, 567, 1539, - /* 740 */ 488, 1563, 1268, 331, 1231, 1443, 1229, 1613, 1561, 256, - /* 750 */ 1321, 149, 1611, 486, 337, 484, 642, 638, 634, 630, - /* 760 */ 260, 244, 1743, 1611, 1537, 1321, 1561, 1442, 1234, 1235, - /* 770 */ 1441, 1283, 1284, 1286, 1287, 1288, 1289, 1290, 545, 568, - /* 780 */ 1298, 1299, 1300, 1303, 138, 85, 1713, 139, 254, 553, - /* 790 */ 1761, 1438, 273, 1564, 1359, 602, 1268, 439, 550, 372, - /* 800 */ 1659, 371, 567, 1713, 1322, 549, 271, 57, 1713, 1829, - /* 810 */ 56, 1713, 544, 340, 129, 128, 599, 598, 597, 1322, - /* 820 */ 1437, 563, 604, 1212, 1213, 1656, 171, 1327, 305, 1613, - /* 830 */ 1561, 1774, 1713, 1825, 88, 1744, 552, 1746, 1747, 548, - /* 840 */ 1285, 570, 1327, 1489, 1814, 1612, 1436, 1435, 319, 1810, - /* 850 */ 1894, 60, 159, 211, 78, 1701, 7, 595, 1434, 1849, - /* 860 */ 1433, 1713, 29, 324, 1316, 1317, 1318, 1319, 1320, 1324, - /* 870 */ 1325, 1326, 245, 246, 1204, 1554, 204, 29, 324, 1316, - /* 880 */ 1317, 1318, 1319, 1320, 1324, 1325, 1326, 1713, 1713, 86, - /* 890 */ 33, 32, 513, 1432, 40, 38, 36, 35, 34, 1713, - /* 900 */ 1743, 1713, 352, 1431, 626, 625, 624, 341, 1829, 623, - /* 910 */ 622, 621, 121, 616, 615, 614, 613, 612, 611, 610, - /* 920 */ 609, 131, 605, 619, 64, 63, 376, 1430, 1761, 165, - /* 930 */ 208, 542, 1824, 304, 1713, 370, 529, 333, 332, 600, - /* 940 */ 537, 1713, 1604, 549, 1713, 601, 294, 1244, 1604, 360, - /* 950 */ 1239, 358, 354, 350, 162, 345, 267, 457, 72, 1591, - /* 960 */ 1237, 1743, 193, 367, 195, 191, 223, 194, 1713, 1774, - /* 970 */ 1536, 1474, 88, 1744, 552, 1746, 1747, 548, 197, 570, - /* 980 */ 199, 196, 1814, 198, 159, 1472, 319, 1810, 152, 1761, - /* 990 */ 1236, 52, 501, 477, 11, 10, 1238, 529, 491, 50, - /* 1000 */ 232, 1762, 1713, 83, 549, 26, 1358, 480, 505, 1842, - /* 1010 */ 1733, 33, 32, 80, 28, 40, 38, 36, 35, 34, - /* 1020 */ 33, 32, 1743, 342, 40, 38, 36, 35, 34, 571, - /* 1030 */ 1774, 1355, 137, 88, 1744, 552, 1746, 1747, 548, 1381, - /* 1040 */ 570, 1422, 1423, 1814, 1463, 1601, 1735, 319, 1810, 152, - /* 1050 */ 1761, 1845, 216, 41, 527, 234, 237, 239, 550, 1313, - /* 1060 */ 41, 5, 41, 1713, 602, 549, 242, 344, 3, 1252, - /* 1070 */ 1843, 123, 347, 351, 126, 127, 50, 1743, 306, 1049, - /* 1080 */ 1242, 575, 126, 129, 128, 599, 598, 597, 1245, 1468, - /* 1090 */ 1240, 1774, 218, 1329, 88, 1744, 552, 1746, 1747, 548, - /* 1100 */ 1291, 570, 1180, 127, 1814, 1761, 247, 112, 319, 1810, - /* 1110 */ 1894, 559, 1248, 550, 253, 1080, 266, 307, 1713, 1872, - /* 1120 */ 549, 1108, 1112, 568, 1298, 1299, 1241, 1196, 126, 263, - /* 1130 */ 1743, 1021, 399, 538, 1653, 167, 406, 644, 1258, 1743, - /* 1140 */ 414, 413, 415, 1119, 419, 1261, 1774, 1117, 431, 88, - /* 1150 */ 1744, 552, 1746, 1747, 548, 420, 570, 1743, 1761, 1814, - /* 1160 */ 428, 1022, 174, 319, 1810, 1894, 550, 1761, 130, 1260, - /* 1170 */ 433, 1713, 176, 549, 1833, 550, 432, 1262, 434, 179, - /* 1180 */ 1713, 181, 549, 1259, 437, 1761, 459, 183, 530, 436, - /* 1190 */ 68, 440, 186, 550, 461, 91, 1551, 530, 1713, 1774, - /* 1200 */ 549, 190, 280, 1744, 552, 1746, 1747, 548, 1774, 570, - /* 1210 */ 1547, 280, 1744, 552, 1746, 1747, 548, 192, 570, 132, - /* 1220 */ 133, 1549, 1743, 1545, 134, 135, 1774, 297, 1881, 89, - /* 1230 */ 1744, 552, 1746, 1747, 548, 1695, 570, 1881, 1743, 1814, - /* 1240 */ 264, 203, 158, 1813, 1810, 492, 1878, 1743, 493, 496, - /* 1250 */ 1761, 156, 1257, 206, 499, 1878, 503, 316, 550, 210, - /* 1260 */ 514, 1846, 509, 1713, 556, 549, 1761, 1856, 214, 511, - /* 1270 */ 217, 318, 6, 517, 550, 1761, 523, 510, 1836, 1713, - /* 1280 */ 224, 549, 508, 550, 507, 1855, 1355, 118, 1713, 226, - /* 1290 */ 549, 1774, 222, 227, 89, 1744, 552, 1746, 1747, 548, - /* 1300 */ 1743, 570, 146, 225, 1814, 1256, 1830, 1774, 541, 1810, - /* 1310 */ 142, 1744, 552, 1746, 1747, 548, 1774, 570, 44, 89, - /* 1320 */ 1744, 552, 1746, 1747, 548, 539, 570, 1877, 1761, 1814, - /* 1330 */ 188, 536, 320, 18, 1811, 124, 550, 233, 236, 228, - /* 1340 */ 1795, 1713, 125, 549, 144, 554, 555, 1897, 533, 456, - /* 1350 */ 452, 448, 444, 187, 1743, 531, 1895, 1694, 1663, 557, - /* 1360 */ 540, 328, 560, 1743, 561, 249, 251, 238, 562, 1774, - /* 1370 */ 265, 77, 283, 1744, 552, 1746, 1747, 548, 70, 570, - /* 1380 */ 1562, 185, 1761, 79, 573, 268, 1534, 645, 259, 1605, - /* 1390 */ 550, 1761, 646, 648, 51, 1713, 145, 549, 289, 550, - /* 1400 */ 272, 291, 290, 270, 1713, 1707, 549, 1706, 62, 1705, - /* 1410 */ 346, 522, 348, 1743, 1702, 349, 1223, 1224, 323, 163, - /* 1420 */ 353, 1700, 355, 1774, 1743, 356, 142, 1744, 552, 1746, - /* 1430 */ 1747, 548, 1774, 570, 357, 288, 1744, 552, 1746, 1747, - /* 1440 */ 548, 1761, 570, 184, 177, 1699, 182, 359, 1698, 547, - /* 1450 */ 435, 361, 1761, 1697, 1713, 363, 549, 1696, 365, 1680, - /* 1460 */ 550, 164, 368, 369, 1199, 1713, 1198, 549, 1674, 175, - /* 1470 */ 1673, 374, 1896, 375, 1672, 1671, 1743, 1168, 1646, 325, - /* 1480 */ 1645, 1644, 1774, 65, 1643, 287, 1744, 552, 1746, 1747, - /* 1490 */ 548, 1642, 570, 1774, 1787, 1641, 288, 1744, 552, 1746, - /* 1500 */ 1747, 548, 1640, 570, 1761, 1639, 388, 389, 1638, 391, - /* 1510 */ 1637, 1636, 550, 1635, 1634, 1633, 1632, 1713, 1631, 549, - /* 1520 */ 1630, 1629, 1628, 1627, 1626, 1625, 1624, 122, 1623, 1743, - /* 1530 */ 1622, 327, 1621, 1620, 1619, 1618, 1617, 1616, 1743, 1170, - /* 1540 */ 1615, 1614, 1491, 1459, 150, 1774, 172, 1743, 288, 1744, - /* 1550 */ 552, 1746, 1747, 548, 1458, 570, 1688, 1761, 113, 987, - /* 1560 */ 986, 1682, 1670, 1669, 180, 550, 1761, 1655, 1540, 173, - /* 1570 */ 1713, 1490, 549, 424, 550, 1761, 1488, 426, 114, 1713, - /* 1580 */ 1486, 549, 1484, 550, 1482, 441, 178, 443, 1713, 1471, - /* 1590 */ 549, 442, 445, 1470, 447, 449, 1455, 1542, 1774, 1743, - /* 1600 */ 446, 274, 1744, 552, 1746, 1747, 548, 1774, 570, 451, - /* 1610 */ 275, 1744, 552, 1746, 1747, 548, 1774, 570, 453, 276, - /* 1620 */ 1744, 552, 1746, 1747, 548, 1015, 570, 1761, 450, 49, - /* 1630 */ 455, 1122, 454, 1123, 1541, 550, 1048, 1047, 1046, 1045, - /* 1640 */ 1713, 1743, 549, 617, 1480, 1042, 1041, 1040, 189, 619, - /* 1650 */ 312, 1475, 313, 1473, 478, 314, 481, 1454, 483, 1453, - /* 1660 */ 485, 1743, 1452, 487, 1687, 90, 1206, 1681, 1774, 1761, - /* 1670 */ 494, 282, 1744, 552, 1746, 1747, 548, 550, 570, 1668, - /* 1680 */ 1666, 136, 1713, 1743, 549, 1667, 1665, 1664, 15, 1761, - /* 1690 */ 4, 1408, 41, 47, 10, 23, 213, 550, 1396, 207, - /* 1700 */ 143, 53, 1713, 215, 549, 1380, 219, 221, 24, 220, - /* 1710 */ 1774, 1761, 1373, 284, 1744, 552, 1746, 1747, 548, 550, - /* 1720 */ 570, 500, 495, 315, 1713, 74, 549, 1733, 16, 1352, - /* 1730 */ 1774, 25, 46, 277, 1744, 552, 1746, 1747, 548, 1743, - /* 1740 */ 570, 1351, 230, 147, 17, 1407, 1413, 321, 1743, 1412, - /* 1750 */ 1411, 1402, 1774, 322, 19, 285, 1744, 552, 1746, 1747, - /* 1760 */ 548, 1314, 570, 148, 1276, 1293, 31, 1761, 160, 1662, - /* 1770 */ 1654, 250, 1732, 1292, 241, 550, 1761, 45, 1378, 551, - /* 1780 */ 1713, 12, 549, 558, 550, 13, 20, 21, 243, 1713, - /* 1790 */ 248, 549, 80, 255, 1246, 75, 572, 574, 1743, 1295, - /* 1800 */ 252, 76, 1777, 569, 1101, 48, 335, 1743, 1774, 578, - /* 1810 */ 1109, 278, 1744, 552, 1746, 1747, 548, 1774, 570, 576, - /* 1820 */ 286, 1744, 552, 1746, 1747, 548, 1761, 570, 1106, 1103, - /* 1830 */ 579, 581, 582, 584, 550, 1761, 587, 1097, 585, 1713, - /* 1840 */ 1095, 549, 588, 550, 1100, 1099, 1086, 1098, 1713, 594, - /* 1850 */ 549, 1118, 257, 1114, 1013, 81, 603, 1743, 82, 59, - /* 1860 */ 1037, 606, 258, 1035, 1055, 1034, 1743, 1774, 1033, 1032, - /* 1870 */ 279, 1744, 552, 1746, 1747, 548, 1774, 570, 1031, 292, - /* 1880 */ 1744, 552, 1746, 1747, 548, 1761, 570, 1030, 1029, 1028, - /* 1890 */ 1050, 1052, 1025, 550, 1761, 1024, 1023, 1020, 1713, 1019, - /* 1900 */ 549, 1018, 550, 1487, 627, 628, 629, 1713, 1485, 549, - /* 1910 */ 631, 633, 1483, 635, 1481, 632, 637, 636, 1743, 639, - /* 1920 */ 640, 641, 1469, 643, 977, 1451, 1774, 1743, 261, 293, - /* 1930 */ 1744, 552, 1746, 1747, 548, 1774, 570, 647, 1755, 1744, - /* 1940 */ 552, 1746, 1747, 548, 650, 570, 1761, 1426, 1232, 269, - /* 1950 */ 651, 1426, 1426, 1426, 550, 1761, 1426, 1426, 1426, 1713, - /* 1960 */ 1426, 549, 1426, 550, 1426, 1426, 1426, 1426, 1713, 1426, - /* 1970 */ 549, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, - /* 1980 */ 1743, 1426, 1426, 1426, 1426, 1426, 1426, 1774, 1426, 1743, - /* 1990 */ 1754, 1744, 552, 1746, 1747, 548, 1774, 570, 1743, 1753, - /* 2000 */ 1744, 552, 1746, 1747, 548, 1426, 570, 1743, 1761, 1426, - /* 2010 */ 526, 1426, 1426, 1426, 1426, 1426, 550, 1761, 1426, 1426, - /* 2020 */ 1426, 1713, 1426, 549, 1426, 550, 1761, 1426, 1426, 1426, - /* 2030 */ 1713, 1426, 549, 1426, 550, 1761, 1426, 1426, 119, 1713, - /* 2040 */ 1426, 549, 1426, 550, 1426, 1426, 1426, 1426, 1713, 1774, - /* 2050 */ 549, 1426, 302, 1744, 552, 1746, 1747, 548, 1774, 570, - /* 2060 */ 530, 301, 1744, 552, 1746, 1747, 548, 1774, 570, 1426, - /* 2070 */ 303, 1744, 552, 1746, 1747, 548, 1774, 570, 117, 300, - /* 2080 */ 1744, 552, 1746, 1747, 548, 1743, 570, 1426, 1426, 1426, - /* 2090 */ 1426, 1426, 1426, 229, 1822, 525, 1426, 524, 1426, 526, - /* 2100 */ 1881, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, - /* 2110 */ 1426, 1426, 1426, 1761, 158, 1426, 1426, 1426, 1878, 1426, - /* 2120 */ 1426, 550, 1426, 1426, 1426, 1426, 1713, 119, 549, 1426, - /* 2130 */ 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, - /* 2140 */ 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 530, - /* 2150 */ 1426, 1426, 1426, 1426, 1774, 1426, 1426, 281, 1744, 552, - /* 2160 */ 1746, 1747, 548, 1426, 570, 1426, 1426, 117, 1426, 1426, - /* 2170 */ 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, - /* 2180 */ 1426, 1426, 229, 1822, 525, 1426, 524, 1426, 1426, 1881, - /* 2190 */ 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, 1426, - /* 2200 */ 1426, 1426, 1426, 156, 1426, 1426, 1426, 1878, + /* 0 */ 425, 1886, 426, 1466, 433, 570, 426, 1466, 140, 331, + /* 10 */ 1443, 380, 39, 37, 1555, 1885, 111, 138, 1735, 1883, + /* 20 */ 327, 318, 1234, 463, 569, 1735, 1568, 529, 335, 1732, + /* 30 */ 36, 35, 34, 1566, 101, 1232, 1732, 100, 99, 98, + /* 40 */ 97, 96, 95, 94, 93, 92, 33, 32, 297, 1748, + /* 50 */ 40, 38, 36, 35, 34, 119, 1728, 1734, 1666, 374, + /* 60 */ 14, 30, 241, 1728, 1734, 1748, 1240, 573, 40, 38, + /* 70 */ 36, 35, 34, 1000, 573, 999, 430, 1766, 442, 39, + /* 80 */ 37, 1364, 1256, 1, 523, 553, 60, 327, 461, 1234, + /* 90 */ 1718, 569, 552, 1766, 141, 117, 1259, 60, 1523, 1886, + /* 100 */ 569, 550, 1232, 1001, 570, 652, 1718, 533, 552, 531, + /* 110 */ 153, 1827, 1828, 156, 1832, 161, 1258, 1883, 1779, 1305, + /* 120 */ 1306, 87, 1749, 555, 1751, 1752, 551, 14, 573, 983, + /* 130 */ 1454, 1819, 1566, 1240, 1779, 299, 1815, 288, 1749, 555, + /* 140 */ 1751, 1752, 551, 549, 573, 546, 1791, 1886, 655, 166, + /* 150 */ 2, 33, 32, 1738, 43, 40, 38, 36, 35, 34, + /* 160 */ 1766, 158, 263, 42, 1235, 1883, 1233, 61, 522, 987, + /* 170 */ 988, 1718, 652, 58, 311, 67, 149, 373, 66, 372, + /* 180 */ 1453, 645, 641, 637, 633, 261, 1305, 1306, 1238, 1239, + /* 190 */ 1740, 1287, 1288, 1290, 1291, 1292, 1293, 1294, 548, 571, + /* 200 */ 1302, 1303, 1304, 1307, 1557, 1259, 521, 529, 296, 339, + /* 210 */ 1256, 85, 1611, 1613, 255, 1732, 159, 406, 1371, 159, + /* 220 */ 418, 1718, 1886, 312, 1258, 310, 309, 1398, 465, 605, + /* 230 */ 159, 1235, 467, 1233, 1656, 119, 157, 391, 203, 419, + /* 240 */ 1883, 393, 1728, 1734, 210, 168, 60, 566, 129, 128, + /* 250 */ 602, 601, 600, 573, 466, 1238, 1239, 607, 1287, 1288, + /* 260 */ 1290, 1291, 1292, 1293, 1294, 548, 571, 1302, 1303, 1304, + /* 270 */ 1307, 60, 384, 73, 1257, 117, 33, 32, 570, 212, + /* 280 */ 40, 38, 36, 35, 34, 39, 37, 1496, 69, 378, + /* 290 */ 154, 1827, 1828, 327, 1832, 1234, 159, 71, 305, 1240, + /* 300 */ 1208, 115, 205, 1736, 1133, 1134, 1566, 611, 1232, 1538, + /* 310 */ 1561, 599, 417, 610, 1732, 412, 411, 410, 409, 408, + /* 320 */ 405, 404, 403, 402, 401, 397, 396, 395, 394, 388, + /* 330 */ 387, 386, 385, 14, 382, 381, 39, 37, 1234, 1240, + /* 340 */ 1748, 1728, 1734, 1363, 327, 69, 1234, 1388, 1618, 477, + /* 350 */ 476, 1232, 573, 1551, 475, 332, 2, 116, 472, 1232, + /* 360 */ 518, 471, 470, 469, 1616, 33, 32, 1562, 1766, 40, + /* 370 */ 38, 36, 35, 34, 11, 10, 553, 1886, 652, 159, + /* 380 */ 138, 1718, 1240, 552, 515, 1386, 1387, 1389, 1390, 1569, + /* 390 */ 1240, 1884, 1305, 1306, 556, 1883, 1289, 570, 533, 1452, + /* 400 */ 22, 1544, 330, 535, 159, 1663, 1451, 8, 379, 1779, + /* 410 */ 1612, 1613, 87, 1749, 555, 1751, 1752, 551, 1450, 573, + /* 420 */ 570, 652, 1819, 570, 1424, 1566, 299, 1815, 337, 652, + /* 430 */ 1260, 383, 524, 519, 398, 245, 138, 1235, 1886, 1233, + /* 440 */ 1718, 477, 476, 1305, 1306, 1568, 475, 1718, 1566, 116, + /* 450 */ 472, 1566, 156, 471, 470, 469, 1883, 1339, 1053, 1718, + /* 460 */ 442, 1238, 1239, 365, 1287, 1288, 1290, 1291, 1292, 1293, + /* 470 */ 1294, 548, 571, 1302, 1303, 1304, 1307, 39, 37, 1308, + /* 480 */ 1235, 570, 1233, 367, 363, 327, 1618, 1234, 1235, 1055, + /* 490 */ 1233, 340, 399, 338, 1449, 1313, 556, 1216, 1217, 138, + /* 500 */ 1232, 1258, 1616, 1553, 1238, 1239, 1423, 1664, 1568, 1566, + /* 510 */ 1327, 1549, 1238, 1239, 1748, 1287, 1288, 1290, 1291, 1292, + /* 520 */ 1293, 1294, 548, 571, 1302, 1303, 1304, 1307, 39, 37, + /* 530 */ 1000, 1240, 999, 1332, 424, 1718, 327, 428, 1234, 206, + /* 540 */ 159, 547, 1766, 529, 39, 37, 246, 247, 9, 1431, + /* 550 */ 532, 1232, 327, 1448, 1234, 1718, 1362, 552, 33, 32, + /* 560 */ 1001, 232, 40, 38, 36, 35, 34, 1232, 27, 1748, + /* 570 */ 652, 119, 1447, 110, 109, 108, 107, 106, 105, 104, + /* 580 */ 103, 102, 1240, 1779, 1305, 1306, 88, 1749, 555, 1751, + /* 590 */ 1752, 551, 570, 573, 1718, 84, 1819, 1766, 1240, 9, + /* 600 */ 320, 1815, 152, 441, 491, 553, 598, 305, 120, 1446, + /* 610 */ 1718, 117, 552, 1718, 233, 2, 1558, 489, 1261, 487, + /* 620 */ 1566, 652, 508, 1847, 474, 473, 155, 1827, 1828, 1235, + /* 630 */ 1832, 1233, 623, 621, 1378, 1305, 1306, 652, 1779, 507, + /* 640 */ 1542, 142, 1749, 555, 1751, 1752, 551, 1543, 573, 500, + /* 650 */ 1718, 1305, 1306, 1238, 1239, 413, 1287, 1288, 1290, 1291, + /* 660 */ 1292, 1293, 1294, 548, 571, 1302, 1303, 1304, 1307, 1444, + /* 670 */ 33, 32, 570, 1289, 40, 38, 36, 35, 34, 1886, + /* 680 */ 1235, 236, 1233, 1563, 33, 32, 534, 1900, 40, 38, + /* 690 */ 36, 35, 34, 156, 1839, 1359, 1235, 1883, 1233, 607, + /* 700 */ 1566, 170, 169, 432, 1238, 1239, 428, 1287, 1288, 1290, + /* 710 */ 1291, 1292, 1293, 1294, 548, 571, 1302, 1303, 1304, 1307, + /* 720 */ 1238, 1239, 7, 1287, 1288, 1290, 1291, 1292, 1293, 1294, + /* 730 */ 548, 571, 1302, 1303, 1304, 1307, 139, 151, 493, 33, + /* 740 */ 32, 274, 605, 40, 38, 36, 35, 34, 1834, 213, + /* 750 */ 1605, 603, 1445, 1442, 1609, 272, 57, 1493, 1432, 56, + /* 760 */ 1272, 129, 128, 602, 601, 600, 1524, 1441, 1440, 1748, + /* 770 */ 1439, 1834, 1831, 1438, 1834, 172, 421, 1437, 1886, 101, + /* 780 */ 1258, 78, 100, 99, 98, 97, 96, 95, 94, 93, + /* 790 */ 92, 300, 156, 1718, 1718, 1830, 1883, 1766, 1829, 1243, + /* 800 */ 1662, 60, 1559, 306, 1661, 532, 1436, 306, 1718, 1718, + /* 810 */ 1718, 1718, 552, 137, 1718, 1272, 1706, 1435, 1718, 629, + /* 820 */ 628, 627, 342, 1325, 626, 625, 624, 121, 619, 618, + /* 830 */ 617, 616, 615, 614, 613, 612, 131, 608, 1779, 86, + /* 840 */ 1434, 88, 1749, 555, 1751, 1752, 551, 1718, 573, 604, + /* 850 */ 545, 1819, 1609, 1618, 26, 320, 1815, 152, 1718, 268, + /* 860 */ 33, 32, 1596, 353, 40, 38, 36, 35, 34, 1617, + /* 870 */ 1429, 987, 988, 467, 64, 63, 377, 1326, 1848, 165, + /* 880 */ 28, 1718, 1748, 52, 504, 371, 33, 32, 622, 1483, + /* 890 */ 40, 38, 36, 35, 34, 466, 295, 516, 1359, 361, + /* 900 */ 1331, 359, 355, 351, 162, 346, 1478, 537, 33, 32, + /* 910 */ 1766, 478, 40, 38, 36, 35, 34, 194, 553, 1242, + /* 920 */ 192, 570, 570, 1718, 196, 552, 1476, 195, 480, 368, + /* 930 */ 1246, 344, 1695, 501, 159, 29, 325, 1320, 1321, 1322, + /* 940 */ 1323, 1324, 1328, 1329, 1330, 1541, 50, 1748, 483, 1566, + /* 950 */ 1566, 1779, 1289, 460, 88, 1749, 555, 1751, 1752, 551, + /* 960 */ 300, 573, 198, 570, 1819, 197, 11, 10, 320, 1815, + /* 970 */ 1899, 1886, 494, 200, 111, 1766, 199, 217, 1317, 1854, + /* 980 */ 224, 468, 540, 553, 209, 156, 41, 1385, 1718, 1883, + /* 990 */ 552, 1566, 1325, 1091, 596, 595, 594, 1095, 593, 1097, + /* 1000 */ 1098, 592, 1100, 589, 570, 1106, 586, 1108, 1109, 583, + /* 1010 */ 580, 1426, 1427, 72, 570, 505, 1779, 570, 219, 88, + /* 1020 */ 1749, 555, 1751, 1752, 551, 567, 573, 1333, 568, 1819, + /* 1030 */ 1767, 41, 1566, 320, 1815, 1899, 41, 243, 123, 83, + /* 1040 */ 605, 126, 1566, 570, 1877, 1566, 1326, 570, 1748, 80, + /* 1050 */ 1245, 482, 127, 1472, 257, 50, 578, 1025, 341, 129, + /* 1060 */ 128, 602, 601, 600, 343, 1467, 492, 1606, 1850, 1331, + /* 1070 */ 530, 1566, 1295, 126, 235, 1566, 1766, 1184, 248, 562, + /* 1080 */ 202, 5, 254, 238, 553, 240, 3, 529, 1026, 1718, + /* 1090 */ 1748, 552, 345, 1084, 485, 1256, 267, 1112, 479, 538, + /* 1100 */ 127, 647, 112, 201, 29, 325, 1320, 1321, 1322, 1323, + /* 1110 */ 1324, 1328, 1329, 1330, 1116, 119, 126, 1779, 1766, 348, + /* 1120 */ 88, 1749, 555, 1751, 1752, 551, 553, 573, 352, 55, + /* 1130 */ 1819, 1718, 54, 552, 320, 1815, 1899, 533, 307, 1053, + /* 1140 */ 308, 1123, 1200, 1121, 264, 1838, 400, 167, 533, 1658, + /* 1150 */ 415, 1748, 407, 414, 416, 117, 420, 130, 1262, 1779, + /* 1160 */ 422, 423, 281, 1749, 555, 1751, 1752, 551, 529, 573, + /* 1170 */ 230, 1827, 528, 431, 527, 1265, 541, 1886, 175, 1766, + /* 1180 */ 434, 177, 1264, 435, 436, 1266, 180, 553, 1886, 437, + /* 1190 */ 439, 158, 1718, 182, 552, 1883, 119, 1263, 440, 184, + /* 1200 */ 68, 462, 158, 187, 443, 1748, 1883, 464, 1556, 533, + /* 1210 */ 191, 1552, 298, 193, 132, 495, 91, 496, 533, 265, + /* 1220 */ 1779, 204, 133, 281, 1749, 555, 1751, 1752, 551, 1554, + /* 1230 */ 573, 1550, 134, 1766, 207, 135, 117, 502, 1700, 506, + /* 1240 */ 1261, 553, 211, 499, 1851, 517, 1718, 1748, 552, 1886, + /* 1250 */ 512, 230, 1827, 528, 559, 527, 6, 514, 1886, 317, + /* 1260 */ 319, 1861, 1860, 156, 215, 218, 520, 1883, 1841, 526, + /* 1270 */ 1748, 223, 156, 513, 1779, 1766, 1883, 89, 1749, 555, + /* 1280 */ 1751, 1752, 551, 553, 573, 511, 510, 1819, 1718, 228, + /* 1290 */ 552, 1818, 1815, 1359, 146, 225, 118, 1260, 1766, 44, + /* 1300 */ 226, 542, 539, 1835, 18, 321, 553, 229, 124, 557, + /* 1310 */ 558, 1718, 563, 552, 1699, 227, 1779, 125, 1668, 89, + /* 1320 */ 1749, 555, 1751, 1752, 551, 1800, 573, 1748, 560, 1819, + /* 1330 */ 329, 250, 1882, 544, 1815, 234, 564, 565, 536, 1779, + /* 1340 */ 1902, 237, 89, 1749, 555, 1751, 1752, 551, 239, 573, + /* 1350 */ 543, 252, 1819, 266, 77, 1766, 1567, 1816, 79, 269, + /* 1360 */ 1610, 1539, 576, 553, 648, 649, 260, 651, 1718, 1748, + /* 1370 */ 552, 51, 290, 273, 292, 291, 1712, 145, 271, 1711, + /* 1380 */ 62, 1748, 509, 1710, 347, 1707, 349, 350, 1227, 1228, + /* 1390 */ 163, 354, 1705, 356, 357, 358, 1779, 1766, 1704, 289, + /* 1400 */ 1749, 555, 1751, 1752, 551, 553, 573, 360, 1703, 1766, + /* 1410 */ 1718, 364, 552, 362, 1702, 1701, 366, 553, 1685, 164, + /* 1420 */ 369, 370, 1718, 1679, 552, 1203, 1202, 1678, 375, 376, + /* 1430 */ 1677, 1676, 1172, 1651, 1650, 1649, 65, 1648, 1779, 1647, + /* 1440 */ 1646, 284, 1749, 555, 1751, 1752, 551, 1645, 573, 1644, + /* 1450 */ 1779, 389, 390, 142, 1749, 555, 1751, 1752, 551, 1643, + /* 1460 */ 573, 392, 1642, 1641, 1640, 1639, 1638, 1637, 1636, 1635, + /* 1470 */ 1634, 1633, 1632, 1631, 1748, 1174, 1622, 1621, 122, 1628, + /* 1480 */ 525, 1630, 1629, 1627, 1626, 1625, 1624, 1623, 1620, 1619, + /* 1490 */ 1497, 1495, 1748, 1463, 171, 113, 173, 427, 150, 1901, + /* 1500 */ 1462, 1693, 1766, 429, 1687, 1675, 990, 181, 989, 1674, + /* 1510 */ 553, 1660, 1545, 1019, 174, 1718, 1494, 552, 1492, 114, + /* 1520 */ 1766, 1490, 1488, 1486, 1475, 445, 1474, 1459, 550, 324, + /* 1530 */ 444, 448, 1547, 1718, 1748, 552, 179, 446, 450, 1546, + /* 1540 */ 49, 452, 454, 1779, 53, 456, 289, 1749, 555, 1751, + /* 1550 */ 1752, 551, 1126, 573, 449, 453, 458, 1748, 620, 1484, + /* 1560 */ 457, 1779, 1766, 1127, 288, 1749, 555, 1751, 1752, 551, + /* 1570 */ 553, 573, 1052, 1792, 622, 1718, 1051, 552, 1050, 1049, + /* 1580 */ 313, 1046, 1045, 1044, 1479, 1766, 314, 481, 1477, 326, + /* 1590 */ 484, 315, 190, 553, 1458, 486, 1457, 488, 1718, 1456, + /* 1600 */ 552, 189, 490, 1779, 1692, 90, 289, 1749, 555, 1751, + /* 1610 */ 1752, 551, 328, 573, 1210, 144, 1686, 497, 1673, 1748, + /* 1620 */ 459, 455, 451, 447, 188, 1671, 1779, 1672, 136, 289, + /* 1630 */ 1749, 555, 1751, 1752, 551, 1670, 573, 1669, 1400, 15, + /* 1640 */ 4, 41, 16, 47, 23, 221, 214, 1766, 25, 216, + /* 1650 */ 70, 1384, 222, 186, 1377, 553, 143, 220, 24, 74, + /* 1660 */ 1718, 1748, 552, 1738, 45, 498, 1356, 208, 231, 46, + /* 1670 */ 1355, 316, 17, 1417, 147, 1406, 1412, 1411, 503, 322, + /* 1680 */ 13, 1416, 1415, 323, 10, 1297, 19, 1296, 1779, 1766, + /* 1690 */ 31, 275, 1749, 555, 1751, 1752, 551, 553, 573, 148, + /* 1700 */ 160, 1280, 1718, 12, 552, 242, 20, 21, 1667, 1659, + /* 1710 */ 251, 1748, 80, 253, 1382, 185, 178, 244, 183, 249, + /* 1720 */ 1737, 1318, 438, 75, 554, 1748, 561, 256, 76, 1250, + /* 1730 */ 1779, 577, 1782, 276, 1749, 555, 1751, 1752, 551, 1766, + /* 1740 */ 573, 176, 1299, 572, 48, 575, 1113, 553, 336, 579, + /* 1750 */ 581, 1110, 1718, 1766, 552, 582, 584, 1107, 585, 587, + /* 1760 */ 1101, 553, 1099, 588, 590, 1090, 1718, 591, 552, 81, + /* 1770 */ 1105, 1104, 1103, 82, 1122, 1102, 258, 59, 597, 1748, + /* 1780 */ 1779, 1118, 606, 277, 1749, 555, 1751, 1752, 551, 1017, + /* 1790 */ 573, 1041, 1059, 259, 1779, 609, 1039, 283, 1749, 555, + /* 1800 */ 1751, 1752, 551, 1038, 573, 1037, 1036, 1766, 1035, 1034, + /* 1810 */ 1033, 1032, 1056, 1054, 1029, 553, 1028, 1027, 1024, 1023, + /* 1820 */ 1718, 1748, 552, 1022, 1491, 630, 1489, 631, 632, 634, + /* 1830 */ 636, 1487, 635, 638, 640, 1485, 642, 1473, 644, 639, + /* 1840 */ 1748, 646, 980, 643, 1455, 262, 650, 654, 1779, 1766, + /* 1850 */ 1236, 285, 1749, 555, 1751, 1752, 551, 553, 573, 1430, + /* 1860 */ 270, 653, 1718, 1748, 552, 1430, 1430, 1430, 1766, 1430, + /* 1870 */ 1430, 1430, 1430, 1430, 1430, 1430, 553, 1430, 1430, 1430, + /* 1880 */ 1430, 1718, 1748, 552, 1430, 1430, 1430, 1430, 1430, 1430, + /* 1890 */ 1779, 1766, 1430, 278, 1749, 555, 1751, 1752, 551, 553, + /* 1900 */ 573, 1430, 1430, 1430, 1718, 1430, 552, 1430, 1430, 1779, + /* 1910 */ 1766, 1430, 286, 1749, 555, 1751, 1752, 551, 553, 573, + /* 1920 */ 1430, 1430, 1430, 1718, 1430, 552, 1430, 1430, 1430, 1430, + /* 1930 */ 1430, 1430, 1779, 1430, 1430, 279, 1749, 555, 1751, 1752, + /* 1940 */ 551, 1430, 573, 1748, 1430, 1430, 1430, 1430, 1430, 1430, + /* 1950 */ 1430, 1779, 1430, 1430, 287, 1749, 555, 1751, 1752, 551, + /* 1960 */ 1430, 573, 1748, 1430, 1430, 1430, 1430, 1430, 1430, 1430, + /* 1970 */ 1430, 1766, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 553, + /* 1980 */ 1430, 1430, 1430, 1430, 1718, 1748, 552, 1430, 1430, 1430, + /* 1990 */ 1766, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 553, 1430, + /* 2000 */ 1430, 1430, 1430, 1718, 1748, 552, 1430, 1430, 1430, 1430, + /* 2010 */ 1430, 1430, 1779, 1766, 1430, 280, 1749, 555, 1751, 1752, + /* 2020 */ 551, 553, 573, 1430, 1430, 1430, 1718, 1430, 552, 1430, + /* 2030 */ 1430, 1779, 1766, 1430, 293, 1749, 555, 1751, 1752, 551, + /* 2040 */ 553, 573, 1430, 1430, 1430, 1718, 1430, 552, 1430, 1430, + /* 2050 */ 1430, 1430, 1430, 1430, 1779, 1430, 1430, 294, 1749, 555, + /* 2060 */ 1751, 1752, 551, 1430, 573, 1430, 1748, 1430, 1430, 1430, + /* 2070 */ 1430, 1430, 1430, 1779, 1430, 1430, 1760, 1749, 555, 1751, + /* 2080 */ 1752, 551, 1430, 573, 1430, 1430, 1430, 1430, 1430, 1430, + /* 2090 */ 1430, 1748, 1430, 1430, 1766, 1430, 1430, 1430, 1430, 1430, + /* 2100 */ 1430, 1430, 553, 1430, 1430, 1430, 1430, 1718, 1748, 552, + /* 2110 */ 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1766, + /* 2120 */ 1430, 1430, 1430, 1430, 1430, 1430, 1430, 553, 1430, 1430, + /* 2130 */ 1430, 1430, 1718, 1748, 552, 1779, 1766, 1430, 1759, 1749, + /* 2140 */ 555, 1751, 1752, 551, 553, 573, 1430, 1430, 1430, 1718, + /* 2150 */ 1748, 552, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, + /* 2160 */ 1779, 1766, 1430, 1758, 1749, 555, 1751, 1752, 551, 553, + /* 2170 */ 573, 1430, 1430, 1430, 1718, 1430, 552, 1779, 1766, 1430, + /* 2180 */ 303, 1749, 555, 1751, 1752, 551, 553, 573, 1430, 1430, + /* 2190 */ 1430, 1718, 1430, 552, 1430, 1430, 1430, 1430, 1430, 1430, + /* 2200 */ 1430, 1430, 1779, 1430, 1430, 302, 1749, 555, 1751, 1752, + /* 2210 */ 551, 1430, 573, 1748, 1430, 1430, 1430, 1430, 1430, 1779, + /* 2220 */ 1430, 1430, 304, 1749, 555, 1751, 1752, 551, 1430, 573, + /* 2230 */ 1748, 1430, 1430, 1430, 1430, 1430, 1430, 334, 333, 1430, + /* 2240 */ 1430, 1766, 1430, 1430, 1430, 1430, 1430, 1248, 1430, 553, + /* 2250 */ 1430, 1430, 1430, 1430, 1718, 1430, 552, 1430, 1766, 1430, + /* 2260 */ 1241, 1430, 1430, 1430, 1430, 1430, 553, 1430, 1430, 1430, + /* 2270 */ 1430, 1718, 1430, 552, 1430, 1430, 1430, 1430, 1430, 1430, + /* 2280 */ 1430, 1430, 1779, 1430, 1430, 301, 1749, 555, 1751, 1752, + /* 2290 */ 551, 1240, 573, 1430, 1430, 1430, 1430, 1430, 1430, 1779, + /* 2300 */ 1430, 1430, 282, 1749, 555, 1751, 1752, 551, 1430, 573, + /* 2310 */ 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, + /* 2320 */ 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, + /* 2330 */ 574, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, + /* 2340 */ 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, + /* 2350 */ 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, + /* 2360 */ 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, + /* 2370 */ 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, + /* 2380 */ 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1249, + /* 2390 */ 1430, 1244, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, + /* 2400 */ 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, 1430, + /* 2410 */ 1430, 1430, 1430, 1252, 1430, 1430, 1430, 1430, 1430, 1430, + /* 2420 */ 1430, 1430, 1430, 1430, 571, 1302, 1303, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 253, 0, 255, 256, 253, 279, 255, 256, 282, 347, - /* 10 */ 262, 246, 12, 13, 266, 307, 290, 261, 279, 278, - /* 20 */ 20, 0, 22, 361, 257, 279, 14, 365, 282, 290, - /* 30 */ 274, 248, 20, 250, 249, 35, 290, 288, 20, 283, - /* 40 */ 291, 292, 21, 317, 318, 24, 25, 26, 27, 28, - /* 50 */ 29, 30, 31, 32, 328, 347, 317, 318, 4, 59, - /* 60 */ 14, 294, 277, 317, 318, 65, 20, 328, 277, 361, - /* 70 */ 285, 20, 307, 365, 328, 290, 285, 292, 12, 13, - /* 80 */ 14, 14, 82, 307, 20, 22, 20, 20, 22, 8, - /* 90 */ 9, 58, 307, 12, 13, 14, 15, 16, 35, 249, - /* 100 */ 82, 35, 276, 318, 104, 20, 321, 322, 323, 324, - /* 110 */ 325, 326, 347, 328, 323, 289, 331, 261, 118, 119, - /* 120 */ 335, 336, 82, 347, 20, 59, 361, 277, 65, 347, - /* 130 */ 365, 65, 347, 257, 257, 285, 82, 361, 257, 283, - /* 140 */ 290, 365, 292, 361, 268, 268, 361, 365, 82, 21, - /* 150 */ 365, 275, 24, 25, 26, 27, 28, 29, 30, 31, - /* 160 */ 32, 285, 285, 163, 83, 165, 285, 104, 318, 58, - /* 170 */ 104, 321, 322, 323, 324, 325, 326, 327, 328, 329, - /* 180 */ 330, 145, 118, 119, 118, 119, 249, 187, 188, 43, - /* 190 */ 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, - /* 200 */ 200, 201, 202, 191, 168, 56, 325, 18, 319, 20, - /* 210 */ 12, 13, 14, 15, 16, 215, 27, 0, 65, 30, - /* 220 */ 339, 340, 341, 342, 257, 344, 163, 290, 165, 163, - /* 230 */ 81, 165, 343, 84, 187, 268, 47, 191, 49, 203, - /* 240 */ 51, 24, 25, 26, 27, 28, 29, 30, 31, 32, - /* 250 */ 187, 188, 285, 187, 188, 215, 190, 191, 192, 193, - /* 260 */ 194, 195, 196, 197, 198, 199, 200, 201, 202, 215, - /* 270 */ 81, 224, 225, 226, 227, 228, 8, 9, 12, 13, - /* 280 */ 12, 13, 14, 15, 16, 20, 20, 265, 22, 267, - /* 290 */ 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, - /* 300 */ 105, 35, 107, 108, 109, 110, 111, 112, 1, 2, - /* 310 */ 121, 43, 20, 124, 125, 126, 127, 128, 129, 130, - /* 320 */ 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, - /* 330 */ 141, 65, 143, 144, 12, 13, 249, 20, 37, 332, - /* 340 */ 333, 20, 20, 22, 22, 8, 9, 56, 82, 12, - /* 350 */ 13, 14, 15, 16, 61, 62, 35, 35, 279, 66, - /* 360 */ 4, 20, 69, 70, 277, 257, 73, 74, 75, 290, - /* 370 */ 104, 50, 285, 82, 82, 84, 268, 290, 93, 292, - /* 380 */ 234, 59, 311, 275, 118, 119, 85, 65, 87, 88, - /* 390 */ 83, 90, 76, 285, 307, 94, 317, 318, 148, 4, - /* 400 */ 44, 45, 347, 249, 82, 318, 250, 328, 321, 322, - /* 410 */ 323, 324, 325, 326, 19, 328, 361, 116, 331, 257, - /* 420 */ 365, 257, 335, 336, 259, 292, 104, 0, 33, 163, - /* 430 */ 268, 165, 268, 300, 347, 65, 303, 272, 122, 123, - /* 440 */ 118, 119, 47, 249, 290, 280, 51, 285, 361, 285, - /* 450 */ 307, 56, 365, 187, 188, 278, 190, 191, 192, 193, - /* 460 */ 194, 195, 196, 197, 198, 199, 200, 201, 202, 269, - /* 470 */ 220, 221, 12, 13, 14, 254, 81, 277, 257, 84, - /* 480 */ 20, 215, 22, 257, 290, 163, 286, 165, 61, 62, - /* 490 */ 347, 150, 155, 66, 268, 35, 69, 70, 257, 266, - /* 500 */ 73, 74, 75, 257, 361, 3, 215, 215, 365, 187, - /* 510 */ 188, 285, 190, 191, 192, 193, 194, 195, 196, 197, - /* 520 */ 198, 199, 200, 201, 202, 65, 285, 12, 13, 291, - /* 530 */ 292, 285, 257, 158, 20, 20, 249, 22, 44, 45, - /* 540 */ 8, 9, 82, 268, 12, 13, 14, 15, 16, 114, - /* 550 */ 35, 8, 9, 178, 179, 12, 13, 14, 15, 16, - /* 560 */ 285, 257, 254, 249, 104, 257, 325, 269, 20, 249, - /* 570 */ 22, 325, 268, 302, 237, 277, 305, 290, 118, 119, - /* 580 */ 65, 340, 341, 342, 286, 344, 340, 341, 342, 285, - /* 590 */ 344, 277, 94, 12, 13, 368, 257, 82, 50, 285, - /* 600 */ 249, 20, 249, 22, 290, 94, 292, 268, 173, 174, - /* 610 */ 290, 113, 114, 115, 116, 117, 35, 257, 304, 104, - /* 620 */ 263, 264, 0, 163, 285, 165, 83, 116, 268, 14, - /* 630 */ 15, 16, 318, 118, 119, 321, 322, 323, 324, 325, - /* 640 */ 326, 290, 328, 290, 22, 285, 65, 187, 188, 35, - /* 650 */ 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, - /* 660 */ 200, 201, 202, 82, 150, 257, 257, 8, 9, 20, - /* 670 */ 257, 12, 13, 14, 15, 16, 268, 268, 163, 65, - /* 680 */ 165, 268, 8, 9, 285, 104, 12, 13, 14, 15, - /* 690 */ 16, 263, 264, 285, 285, 296, 213, 214, 285, 118, - /* 700 */ 119, 0, 187, 188, 278, 190, 191, 192, 193, 194, - /* 710 */ 195, 196, 197, 198, 199, 200, 201, 202, 59, 82, - /* 720 */ 257, 8, 9, 19, 269, 12, 13, 14, 15, 16, - /* 730 */ 278, 268, 277, 59, 232, 278, 277, 33, 257, 0, - /* 740 */ 21, 286, 83, 284, 163, 249, 165, 277, 285, 268, - /* 750 */ 91, 47, 293, 34, 284, 36, 52, 53, 54, 55, - /* 760 */ 56, 113, 249, 293, 0, 91, 285, 249, 187, 188, - /* 770 */ 249, 190, 191, 192, 193, 194, 195, 196, 197, 198, - /* 780 */ 199, 200, 201, 202, 277, 81, 290, 18, 84, 292, - /* 790 */ 277, 249, 23, 286, 4, 94, 83, 58, 285, 162, - /* 800 */ 303, 164, 257, 290, 145, 292, 37, 38, 290, 319, - /* 810 */ 41, 290, 278, 268, 113, 114, 115, 116, 117, 145, - /* 820 */ 249, 117, 58, 175, 176, 302, 57, 168, 305, 277, - /* 830 */ 285, 318, 290, 343, 321, 322, 323, 324, 325, 326, - /* 840 */ 191, 328, 168, 0, 331, 293, 249, 249, 335, 336, - /* 850 */ 337, 82, 215, 149, 259, 0, 39, 278, 249, 346, - /* 860 */ 249, 290, 203, 204, 205, 206, 207, 208, 209, 210, - /* 870 */ 211, 212, 113, 114, 170, 280, 172, 203, 204, 205, - /* 880 */ 206, 207, 208, 209, 210, 211, 212, 290, 290, 120, - /* 890 */ 8, 9, 359, 249, 12, 13, 14, 15, 16, 290, - /* 900 */ 249, 290, 47, 249, 61, 62, 63, 64, 319, 66, - /* 910 */ 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - /* 920 */ 77, 78, 79, 43, 155, 156, 157, 249, 277, 160, - /* 930 */ 56, 59, 343, 174, 290, 166, 285, 12, 13, 287, - /* 940 */ 43, 290, 290, 292, 290, 287, 177, 22, 290, 180, - /* 950 */ 35, 182, 183, 184, 185, 186, 270, 258, 84, 273, - /* 960 */ 35, 249, 86, 83, 86, 89, 354, 89, 290, 318, - /* 970 */ 0, 0, 321, 322, 323, 324, 325, 326, 86, 328, - /* 980 */ 86, 89, 331, 89, 215, 0, 335, 336, 337, 277, - /* 990 */ 65, 150, 151, 22, 1, 2, 35, 285, 314, 43, - /* 1000 */ 349, 277, 290, 82, 292, 2, 216, 22, 357, 358, - /* 1010 */ 46, 8, 9, 92, 2, 12, 13, 14, 15, 16, - /* 1020 */ 8, 9, 249, 258, 12, 13, 14, 15, 16, 104, - /* 1030 */ 318, 214, 150, 321, 322, 323, 324, 325, 326, 83, - /* 1040 */ 328, 118, 119, 331, 256, 289, 82, 335, 336, 337, - /* 1050 */ 277, 320, 43, 43, 345, 362, 362, 362, 285, 187, - /* 1060 */ 43, 217, 43, 290, 94, 292, 43, 316, 348, 20, - /* 1070 */ 358, 43, 257, 47, 43, 43, 43, 249, 315, 35, - /* 1080 */ 165, 43, 43, 113, 114, 115, 116, 117, 163, 0, - /* 1090 */ 165, 318, 83, 83, 321, 322, 323, 324, 325, 326, - /* 1100 */ 83, 328, 83, 43, 331, 277, 83, 43, 335, 336, - /* 1110 */ 337, 83, 187, 285, 83, 83, 83, 263, 290, 346, - /* 1120 */ 292, 83, 83, 198, 199, 200, 165, 161, 43, 309, - /* 1130 */ 249, 35, 257, 236, 257, 42, 297, 48, 20, 249, - /* 1140 */ 145, 295, 295, 83, 257, 20, 318, 83, 313, 321, - /* 1150 */ 322, 323, 324, 325, 326, 251, 328, 249, 277, 331, - /* 1160 */ 251, 65, 261, 335, 336, 337, 285, 277, 83, 20, - /* 1170 */ 306, 290, 261, 292, 346, 285, 292, 20, 308, 261, - /* 1180 */ 290, 261, 292, 20, 298, 277, 251, 261, 307, 306, - /* 1190 */ 261, 257, 261, 285, 277, 257, 277, 307, 290, 318, - /* 1200 */ 292, 277, 321, 322, 323, 324, 325, 326, 318, 328, - /* 1210 */ 277, 321, 322, 323, 324, 325, 326, 277, 328, 277, - /* 1220 */ 277, 277, 249, 277, 277, 277, 318, 251, 347, 321, - /* 1230 */ 322, 323, 324, 325, 326, 290, 328, 347, 249, 331, - /* 1240 */ 313, 259, 361, 335, 336, 171, 365, 249, 312, 292, - /* 1250 */ 277, 361, 20, 259, 257, 365, 257, 306, 285, 259, - /* 1260 */ 223, 320, 290, 290, 222, 292, 277, 353, 301, 290, - /* 1270 */ 301, 290, 229, 290, 285, 277, 154, 231, 356, 290, - /* 1280 */ 352, 292, 230, 285, 218, 353, 214, 285, 290, 350, - /* 1290 */ 292, 318, 355, 316, 321, 322, 323, 324, 325, 326, - /* 1300 */ 249, 328, 353, 351, 331, 20, 319, 318, 335, 336, - /* 1310 */ 321, 322, 323, 324, 325, 326, 318, 328, 42, 321, - /* 1320 */ 322, 323, 324, 325, 326, 235, 328, 364, 277, 331, - /* 1330 */ 33, 233, 238, 82, 336, 301, 285, 363, 363, 338, - /* 1340 */ 334, 290, 301, 292, 47, 290, 290, 369, 364, 52, - /* 1350 */ 53, 54, 55, 56, 249, 366, 367, 290, 290, 290, - /* 1360 */ 364, 290, 147, 249, 299, 285, 259, 363, 298, 318, - /* 1370 */ 273, 259, 321, 322, 323, 324, 325, 326, 81, 328, - /* 1380 */ 285, 84, 277, 82, 281, 257, 267, 36, 259, 290, - /* 1390 */ 285, 277, 252, 251, 310, 290, 305, 292, 271, 285, - /* 1400 */ 247, 271, 271, 260, 290, 0, 292, 0, 42, 0, - /* 1410 */ 73, 360, 35, 249, 0, 181, 35, 35, 304, 35, - /* 1420 */ 181, 0, 35, 318, 249, 35, 321, 322, 323, 324, - /* 1430 */ 325, 326, 318, 328, 181, 321, 322, 323, 324, 325, - /* 1440 */ 326, 277, 328, 146, 147, 0, 149, 181, 0, 285, - /* 1450 */ 153, 35, 277, 0, 290, 22, 292, 0, 35, 0, - /* 1460 */ 285, 82, 168, 167, 165, 290, 163, 292, 0, 172, - /* 1470 */ 0, 159, 367, 158, 0, 0, 249, 46, 0, 304, - /* 1480 */ 0, 0, 318, 142, 0, 321, 322, 323, 324, 325, - /* 1490 */ 326, 0, 328, 318, 330, 0, 321, 322, 323, 324, - /* 1500 */ 325, 326, 0, 328, 277, 0, 137, 35, 0, 137, - /* 1510 */ 0, 0, 285, 0, 0, 0, 0, 290, 0, 292, - /* 1520 */ 0, 0, 0, 0, 0, 0, 0, 42, 0, 249, - /* 1530 */ 0, 304, 0, 0, 0, 0, 0, 0, 249, 22, - /* 1540 */ 0, 0, 0, 0, 43, 318, 42, 249, 321, 322, - /* 1550 */ 323, 324, 325, 326, 0, 328, 0, 277, 39, 14, - /* 1560 */ 14, 0, 0, 0, 154, 285, 277, 0, 0, 40, - /* 1570 */ 290, 0, 292, 46, 285, 277, 0, 46, 39, 290, - /* 1580 */ 0, 292, 0, 285, 0, 35, 39, 39, 290, 0, - /* 1590 */ 292, 47, 35, 0, 39, 35, 0, 0, 318, 249, - /* 1600 */ 47, 321, 322, 323, 324, 325, 326, 318, 328, 39, - /* 1610 */ 321, 322, 323, 324, 325, 326, 318, 328, 35, 321, - /* 1620 */ 322, 323, 324, 325, 326, 60, 328, 277, 47, 91, - /* 1630 */ 39, 22, 47, 35, 0, 285, 35, 35, 35, 35, - /* 1640 */ 290, 249, 292, 43, 0, 35, 35, 35, 89, 43, - /* 1650 */ 22, 0, 22, 0, 49, 22, 35, 0, 35, 0, - /* 1660 */ 35, 249, 0, 22, 0, 20, 35, 0, 318, 277, - /* 1670 */ 22, 321, 322, 323, 324, 325, 326, 285, 328, 0, - /* 1680 */ 0, 169, 290, 249, 292, 0, 0, 0, 219, 277, - /* 1690 */ 43, 35, 43, 43, 2, 82, 82, 285, 83, 147, - /* 1700 */ 82, 150, 290, 83, 292, 83, 82, 46, 82, 43, - /* 1710 */ 318, 277, 83, 321, 322, 323, 324, 325, 326, 285, - /* 1720 */ 328, 152, 150, 150, 290, 82, 292, 46, 219, 83, - /* 1730 */ 318, 43, 43, 321, 322, 323, 324, 325, 326, 249, - /* 1740 */ 328, 83, 46, 46, 43, 35, 83, 35, 249, 35, - /* 1750 */ 35, 83, 318, 35, 43, 321, 322, 323, 324, 325, - /* 1760 */ 326, 187, 328, 46, 22, 83, 82, 277, 46, 0, - /* 1770 */ 0, 39, 46, 83, 83, 285, 277, 213, 83, 189, - /* 1780 */ 290, 82, 292, 148, 285, 219, 82, 82, 82, 290, - /* 1790 */ 82, 292, 92, 46, 22, 82, 93, 35, 249, 83, - /* 1800 */ 146, 82, 82, 82, 106, 82, 35, 249, 318, 35, - /* 1810 */ 83, 321, 322, 323, 324, 325, 326, 318, 328, 82, - /* 1820 */ 321, 322, 323, 324, 325, 326, 277, 328, 83, 83, - /* 1830 */ 82, 35, 82, 35, 285, 277, 35, 83, 82, 290, - /* 1840 */ 83, 292, 82, 285, 106, 106, 22, 106, 290, 94, - /* 1850 */ 292, 35, 43, 22, 60, 82, 59, 249, 82, 82, - /* 1860 */ 35, 80, 43, 35, 65, 35, 249, 318, 35, 35, - /* 1870 */ 321, 322, 323, 324, 325, 326, 318, 328, 35, 321, - /* 1880 */ 322, 323, 324, 325, 326, 277, 328, 22, 35, 35, - /* 1890 */ 35, 65, 35, 285, 277, 35, 35, 35, 290, 35, - /* 1900 */ 292, 35, 285, 0, 35, 47, 39, 290, 0, 292, - /* 1910 */ 35, 39, 0, 35, 0, 47, 39, 47, 249, 35, - /* 1920 */ 47, 39, 0, 35, 35, 0, 318, 249, 22, 321, - /* 1930 */ 322, 323, 324, 325, 326, 318, 328, 21, 321, 322, - /* 1940 */ 323, 324, 325, 326, 21, 328, 277, 370, 22, 22, - /* 1950 */ 20, 370, 370, 370, 285, 277, 370, 370, 370, 290, - /* 1960 */ 370, 292, 370, 285, 370, 370, 370, 370, 290, 370, - /* 1970 */ 292, 370, 370, 370, 370, 370, 370, 370, 370, 370, - /* 1980 */ 249, 370, 370, 370, 370, 370, 370, 318, 370, 249, - /* 1990 */ 321, 322, 323, 324, 325, 326, 318, 328, 249, 321, - /* 2000 */ 322, 323, 324, 325, 326, 370, 328, 249, 277, 370, - /* 2010 */ 257, 370, 370, 370, 370, 370, 285, 277, 370, 370, - /* 2020 */ 370, 290, 370, 292, 370, 285, 277, 370, 370, 370, - /* 2030 */ 290, 370, 292, 370, 285, 277, 370, 370, 285, 290, - /* 2040 */ 370, 292, 370, 285, 370, 370, 370, 370, 290, 318, - /* 2050 */ 292, 370, 321, 322, 323, 324, 325, 326, 318, 328, - /* 2060 */ 307, 321, 322, 323, 324, 325, 326, 318, 328, 370, - /* 2070 */ 321, 322, 323, 324, 325, 326, 318, 328, 325, 321, - /* 2080 */ 322, 323, 324, 325, 326, 249, 328, 370, 370, 370, - /* 2090 */ 370, 370, 370, 340, 341, 342, 370, 344, 370, 257, - /* 2100 */ 347, 370, 370, 370, 370, 370, 370, 370, 370, 370, - /* 2110 */ 370, 370, 370, 277, 361, 370, 370, 370, 365, 370, - /* 2120 */ 370, 285, 370, 370, 370, 370, 290, 285, 292, 370, - /* 2130 */ 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, - /* 2140 */ 370, 370, 370, 370, 370, 370, 370, 370, 370, 307, - /* 2150 */ 370, 370, 370, 370, 318, 370, 370, 321, 322, 323, - /* 2160 */ 324, 325, 326, 370, 328, 370, 370, 325, 370, 370, - /* 2170 */ 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, - /* 2180 */ 370, 370, 340, 341, 342, 370, 344, 370, 370, 347, - /* 2190 */ 370, 370, 370, 370, 370, 370, 370, 370, 370, 370, - /* 2200 */ 370, 370, 370, 361, 370, 370, 370, 365, + /* 0 */ 254, 348, 256, 257, 254, 258, 256, 257, 249, 270, + /* 10 */ 251, 258, 12, 13, 279, 362, 269, 278, 280, 366, + /* 20 */ 20, 283, 22, 276, 20, 280, 287, 258, 283, 291, + /* 30 */ 14, 15, 16, 286, 21, 35, 291, 24, 25, 26, + /* 40 */ 27, 28, 29, 30, 31, 32, 8, 9, 295, 250, + /* 50 */ 12, 13, 14, 15, 16, 286, 318, 319, 0, 308, + /* 60 */ 60, 333, 334, 318, 319, 250, 66, 329, 12, 13, + /* 70 */ 14, 15, 16, 20, 329, 22, 14, 278, 59, 12, + /* 80 */ 13, 14, 20, 83, 20, 286, 83, 20, 35, 22, + /* 90 */ 291, 20, 293, 278, 263, 326, 20, 83, 267, 348, + /* 100 */ 20, 286, 35, 50, 258, 105, 291, 308, 293, 340, + /* 110 */ 341, 342, 343, 362, 345, 269, 20, 366, 319, 119, + /* 120 */ 120, 322, 323, 324, 325, 326, 327, 60, 329, 4, + /* 130 */ 250, 332, 286, 66, 319, 336, 337, 322, 323, 324, + /* 140 */ 325, 326, 327, 328, 329, 330, 331, 348, 19, 56, + /* 150 */ 83, 8, 9, 46, 83, 12, 13, 14, 15, 16, + /* 160 */ 278, 362, 33, 83, 164, 366, 166, 4, 286, 44, + /* 170 */ 45, 291, 105, 3, 37, 82, 47, 163, 85, 165, + /* 180 */ 250, 52, 53, 54, 55, 56, 119, 120, 188, 189, + /* 190 */ 83, 191, 192, 193, 194, 195, 196, 197, 198, 199, + /* 200 */ 200, 201, 202, 203, 280, 20, 324, 258, 18, 289, + /* 210 */ 20, 82, 292, 293, 85, 291, 216, 27, 14, 216, + /* 220 */ 30, 291, 348, 86, 20, 88, 89, 84, 91, 95, + /* 230 */ 216, 164, 95, 166, 286, 286, 362, 47, 115, 49, + /* 240 */ 366, 51, 318, 319, 56, 297, 83, 118, 114, 115, + /* 250 */ 116, 117, 118, 329, 117, 188, 189, 59, 191, 192, + /* 260 */ 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, + /* 270 */ 203, 83, 82, 85, 20, 326, 8, 9, 258, 150, + /* 280 */ 12, 13, 14, 15, 16, 12, 13, 0, 262, 269, + /* 290 */ 341, 342, 343, 20, 345, 22, 216, 174, 175, 66, + /* 300 */ 171, 275, 173, 280, 119, 120, 286, 266, 35, 268, + /* 310 */ 284, 94, 122, 66, 291, 125, 126, 127, 128, 129, + /* 320 */ 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, + /* 330 */ 140, 141, 142, 60, 144, 145, 12, 13, 22, 66, + /* 340 */ 250, 318, 319, 4, 20, 262, 22, 188, 278, 62, + /* 350 */ 63, 35, 329, 279, 67, 285, 83, 70, 71, 35, + /* 360 */ 149, 74, 75, 76, 294, 8, 9, 284, 278, 12, + /* 370 */ 13, 14, 15, 16, 1, 2, 286, 348, 105, 216, + /* 380 */ 278, 291, 66, 293, 225, 226, 227, 228, 229, 287, + /* 390 */ 66, 362, 119, 120, 293, 366, 192, 258, 308, 250, + /* 400 */ 43, 0, 301, 233, 216, 304, 250, 83, 269, 319, + /* 410 */ 292, 293, 322, 323, 324, 325, 326, 327, 250, 329, + /* 420 */ 258, 105, 332, 258, 156, 286, 336, 337, 270, 105, + /* 430 */ 20, 269, 221, 222, 269, 114, 278, 164, 348, 166, + /* 440 */ 291, 62, 63, 119, 120, 287, 67, 291, 286, 70, + /* 450 */ 71, 286, 362, 74, 75, 76, 366, 84, 35, 291, + /* 460 */ 59, 188, 189, 159, 191, 192, 193, 194, 195, 196, + /* 470 */ 197, 198, 199, 200, 201, 202, 203, 12, 13, 14, + /* 480 */ 164, 258, 166, 179, 180, 20, 278, 22, 164, 66, + /* 490 */ 166, 270, 269, 285, 250, 14, 293, 176, 177, 278, + /* 500 */ 35, 20, 294, 279, 188, 189, 238, 304, 287, 286, + /* 510 */ 146, 279, 188, 189, 250, 191, 192, 193, 194, 195, + /* 520 */ 196, 197, 198, 199, 200, 201, 202, 203, 12, 13, + /* 530 */ 20, 66, 22, 169, 255, 291, 20, 258, 22, 279, + /* 540 */ 216, 279, 278, 258, 12, 13, 114, 115, 83, 0, + /* 550 */ 286, 35, 20, 250, 22, 291, 217, 293, 8, 9, + /* 560 */ 50, 151, 12, 13, 14, 15, 16, 35, 204, 250, + /* 570 */ 105, 286, 250, 24, 25, 26, 27, 28, 29, 30, + /* 580 */ 31, 32, 66, 319, 119, 120, 322, 323, 324, 325, + /* 590 */ 326, 327, 258, 329, 291, 260, 332, 278, 66, 83, + /* 600 */ 336, 337, 338, 269, 21, 286, 279, 175, 273, 250, + /* 610 */ 291, 326, 293, 291, 350, 83, 281, 34, 20, 36, + /* 620 */ 286, 105, 358, 359, 264, 265, 341, 342, 343, 164, + /* 630 */ 345, 166, 264, 265, 84, 119, 120, 105, 319, 308, + /* 640 */ 0, 322, 323, 324, 325, 326, 327, 0, 329, 312, + /* 650 */ 291, 119, 120, 188, 189, 77, 191, 192, 193, 194, + /* 660 */ 195, 196, 197, 198, 199, 200, 201, 202, 203, 251, + /* 670 */ 8, 9, 258, 192, 12, 13, 14, 15, 16, 348, + /* 680 */ 164, 369, 166, 269, 8, 9, 367, 368, 12, 13, + /* 690 */ 14, 15, 16, 362, 214, 215, 164, 366, 166, 59, + /* 700 */ 286, 123, 124, 255, 188, 189, 258, 191, 192, 193, + /* 710 */ 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, + /* 720 */ 188, 189, 39, 191, 192, 193, 194, 195, 196, 197, + /* 730 */ 198, 199, 200, 201, 202, 203, 18, 277, 308, 8, + /* 740 */ 9, 23, 95, 12, 13, 14, 15, 16, 320, 151, + /* 750 */ 290, 288, 250, 250, 291, 37, 38, 0, 0, 41, + /* 760 */ 84, 114, 115, 116, 117, 118, 267, 250, 250, 250, + /* 770 */ 250, 320, 344, 250, 320, 57, 58, 250, 348, 21, + /* 780 */ 20, 260, 24, 25, 26, 27, 28, 29, 30, 31, + /* 790 */ 32, 60, 362, 291, 291, 344, 366, 278, 344, 35, + /* 800 */ 303, 83, 281, 306, 303, 286, 250, 306, 291, 291, + /* 810 */ 291, 291, 293, 151, 291, 84, 0, 250, 291, 62, + /* 820 */ 63, 64, 65, 92, 67, 68, 69, 70, 71, 72, + /* 830 */ 73, 74, 75, 76, 77, 78, 79, 80, 319, 121, + /* 840 */ 250, 322, 323, 324, 325, 326, 327, 291, 329, 288, + /* 850 */ 60, 332, 291, 278, 2, 336, 337, 338, 291, 271, + /* 860 */ 8, 9, 274, 47, 12, 13, 14, 15, 16, 294, + /* 870 */ 247, 44, 45, 95, 156, 157, 158, 146, 359, 161, + /* 880 */ 2, 291, 250, 151, 152, 167, 8, 9, 43, 0, + /* 890 */ 12, 13, 14, 15, 16, 117, 178, 360, 215, 181, + /* 900 */ 169, 183, 184, 185, 186, 187, 0, 43, 8, 9, + /* 910 */ 278, 22, 12, 13, 14, 15, 16, 87, 286, 35, + /* 920 */ 90, 258, 258, 291, 87, 293, 0, 90, 22, 84, + /* 930 */ 166, 308, 269, 269, 216, 204, 205, 206, 207, 208, + /* 940 */ 209, 210, 211, 212, 213, 0, 43, 250, 22, 286, + /* 950 */ 286, 319, 192, 259, 322, 323, 324, 325, 326, 327, + /* 960 */ 60, 329, 87, 258, 332, 90, 1, 2, 336, 337, + /* 970 */ 338, 348, 315, 87, 269, 278, 90, 43, 188, 347, + /* 980 */ 355, 276, 43, 286, 56, 362, 43, 84, 291, 366, + /* 990 */ 293, 286, 92, 96, 97, 98, 99, 100, 101, 102, + /* 1000 */ 103, 104, 105, 106, 258, 108, 109, 110, 111, 112, + /* 1010 */ 113, 119, 120, 85, 258, 269, 319, 258, 84, 322, + /* 1020 */ 323, 324, 325, 326, 327, 269, 329, 84, 269, 332, + /* 1030 */ 278, 43, 286, 336, 337, 338, 43, 43, 43, 83, + /* 1040 */ 95, 43, 286, 258, 347, 286, 146, 258, 250, 93, + /* 1050 */ 166, 4, 43, 0, 269, 43, 43, 35, 269, 114, + /* 1060 */ 115, 116, 117, 118, 259, 257, 19, 290, 321, 169, + /* 1070 */ 346, 286, 84, 43, 363, 286, 278, 84, 84, 84, + /* 1080 */ 33, 218, 84, 363, 286, 363, 349, 258, 66, 291, + /* 1090 */ 250, 293, 317, 84, 47, 20, 84, 84, 51, 235, + /* 1100 */ 43, 48, 43, 56, 204, 205, 206, 207, 208, 209, + /* 1110 */ 210, 211, 212, 213, 84, 286, 43, 319, 278, 258, + /* 1120 */ 322, 323, 324, 325, 326, 327, 286, 329, 47, 82, + /* 1130 */ 332, 291, 85, 293, 336, 337, 338, 308, 316, 35, + /* 1140 */ 264, 84, 162, 84, 310, 347, 258, 42, 308, 258, + /* 1150 */ 146, 250, 298, 296, 296, 326, 258, 84, 20, 319, + /* 1160 */ 258, 252, 322, 323, 324, 325, 326, 327, 258, 329, + /* 1170 */ 341, 342, 343, 252, 345, 20, 237, 348, 262, 278, + /* 1180 */ 314, 262, 20, 293, 307, 20, 262, 286, 348, 309, + /* 1190 */ 307, 362, 291, 262, 293, 366, 286, 20, 299, 262, + /* 1200 */ 262, 252, 362, 262, 258, 250, 366, 278, 278, 308, + /* 1210 */ 278, 278, 252, 278, 278, 172, 258, 313, 308, 314, + /* 1220 */ 319, 260, 278, 322, 323, 324, 325, 326, 327, 278, + /* 1230 */ 329, 278, 278, 278, 260, 278, 326, 258, 291, 258, + /* 1240 */ 20, 286, 260, 293, 321, 224, 291, 250, 293, 348, + /* 1250 */ 291, 341, 342, 343, 223, 345, 230, 291, 348, 307, + /* 1260 */ 291, 354, 354, 362, 302, 302, 291, 366, 357, 155, + /* 1270 */ 250, 356, 362, 232, 319, 278, 366, 322, 323, 324, + /* 1280 */ 325, 326, 327, 286, 329, 231, 219, 332, 291, 317, + /* 1290 */ 293, 336, 337, 215, 354, 353, 286, 20, 278, 42, + /* 1300 */ 352, 236, 234, 320, 83, 239, 286, 339, 302, 291, + /* 1310 */ 291, 291, 148, 293, 291, 351, 319, 302, 291, 322, + /* 1320 */ 323, 324, 325, 326, 327, 335, 329, 250, 291, 332, + /* 1330 */ 291, 286, 365, 336, 337, 364, 300, 299, 365, 319, + /* 1340 */ 370, 364, 322, 323, 324, 325, 326, 327, 364, 329, + /* 1350 */ 365, 260, 332, 274, 260, 278, 286, 337, 83, 258, + /* 1360 */ 291, 268, 282, 286, 36, 253, 260, 252, 291, 250, + /* 1370 */ 293, 311, 272, 248, 272, 272, 0, 306, 261, 0, + /* 1380 */ 42, 250, 305, 0, 74, 0, 35, 182, 35, 35, + /* 1390 */ 35, 182, 0, 35, 35, 182, 319, 278, 0, 322, + /* 1400 */ 323, 324, 325, 326, 327, 286, 329, 182, 0, 278, + /* 1410 */ 291, 22, 293, 35, 0, 0, 35, 286, 0, 83, + /* 1420 */ 169, 168, 291, 0, 293, 166, 164, 0, 160, 159, + /* 1430 */ 0, 0, 46, 0, 0, 0, 143, 0, 319, 0, + /* 1440 */ 0, 322, 323, 324, 325, 326, 327, 0, 329, 0, + /* 1450 */ 319, 138, 35, 322, 323, 324, 325, 326, 327, 0, + /* 1460 */ 329, 138, 0, 0, 0, 0, 0, 0, 0, 0, + /* 1470 */ 0, 0, 0, 0, 250, 22, 0, 0, 42, 0, + /* 1480 */ 361, 0, 0, 0, 0, 0, 0, 0, 0, 0, + /* 1490 */ 0, 0, 250, 0, 56, 39, 42, 46, 43, 368, + /* 1500 */ 0, 0, 278, 46, 0, 0, 14, 155, 14, 0, + /* 1510 */ 286, 0, 0, 61, 40, 291, 0, 293, 0, 39, + /* 1520 */ 278, 0, 0, 0, 0, 47, 0, 0, 286, 305, + /* 1530 */ 35, 35, 0, 291, 250, 293, 39, 39, 39, 0, + /* 1540 */ 92, 35, 39, 319, 151, 35, 322, 323, 324, 325, + /* 1550 */ 326, 327, 22, 329, 47, 47, 39, 250, 43, 0, + /* 1560 */ 47, 319, 278, 35, 322, 323, 324, 325, 326, 327, + /* 1570 */ 286, 329, 35, 331, 43, 291, 35, 293, 35, 35, + /* 1580 */ 22, 35, 35, 35, 0, 278, 22, 49, 0, 305, + /* 1590 */ 35, 22, 90, 286, 0, 35, 0, 35, 291, 0, + /* 1600 */ 293, 33, 22, 319, 0, 20, 322, 323, 324, 325, + /* 1610 */ 326, 327, 305, 329, 35, 47, 0, 22, 0, 250, + /* 1620 */ 52, 53, 54, 55, 56, 0, 319, 0, 170, 322, + /* 1630 */ 323, 324, 325, 326, 327, 0, 329, 0, 84, 220, + /* 1640 */ 43, 43, 220, 43, 83, 43, 83, 278, 43, 84, + /* 1650 */ 82, 84, 46, 85, 84, 286, 83, 83, 83, 83, + /* 1660 */ 291, 250, 293, 46, 214, 151, 84, 148, 46, 43, + /* 1670 */ 84, 151, 43, 84, 46, 84, 35, 35, 153, 35, + /* 1680 */ 220, 35, 35, 35, 2, 84, 43, 84, 319, 278, + /* 1690 */ 83, 322, 323, 324, 325, 326, 327, 286, 329, 46, + /* 1700 */ 46, 22, 291, 83, 293, 84, 83, 83, 0, 0, + /* 1710 */ 39, 250, 93, 147, 84, 147, 148, 83, 150, 83, + /* 1720 */ 46, 188, 154, 83, 190, 250, 149, 46, 83, 22, + /* 1730 */ 319, 35, 83, 322, 323, 324, 325, 326, 327, 278, + /* 1740 */ 329, 173, 84, 83, 83, 94, 84, 286, 35, 83, + /* 1750 */ 35, 84, 291, 278, 293, 83, 35, 84, 83, 35, + /* 1760 */ 84, 286, 84, 83, 35, 22, 291, 83, 293, 83, + /* 1770 */ 107, 107, 107, 83, 35, 107, 43, 83, 95, 250, + /* 1780 */ 319, 22, 60, 322, 323, 324, 325, 326, 327, 61, + /* 1790 */ 329, 35, 66, 43, 319, 81, 35, 322, 323, 324, + /* 1800 */ 325, 326, 327, 35, 329, 35, 35, 278, 35, 22, + /* 1810 */ 35, 35, 66, 35, 35, 286, 35, 35, 35, 35, + /* 1820 */ 291, 250, 293, 35, 0, 35, 0, 47, 39, 35, + /* 1830 */ 39, 0, 47, 35, 39, 0, 35, 0, 39, 47, + /* 1840 */ 250, 35, 35, 47, 0, 22, 21, 20, 319, 278, + /* 1850 */ 22, 322, 323, 324, 325, 326, 327, 286, 329, 371, + /* 1860 */ 22, 21, 291, 250, 293, 371, 371, 371, 278, 371, + /* 1870 */ 371, 371, 371, 371, 371, 371, 286, 371, 371, 371, + /* 1880 */ 371, 291, 250, 293, 371, 371, 371, 371, 371, 371, + /* 1890 */ 319, 278, 371, 322, 323, 324, 325, 326, 327, 286, + /* 1900 */ 329, 371, 371, 371, 291, 371, 293, 371, 371, 319, + /* 1910 */ 278, 371, 322, 323, 324, 325, 326, 327, 286, 329, + /* 1920 */ 371, 371, 371, 291, 371, 293, 371, 371, 371, 371, + /* 1930 */ 371, 371, 319, 371, 371, 322, 323, 324, 325, 326, + /* 1940 */ 327, 371, 329, 250, 371, 371, 371, 371, 371, 371, + /* 1950 */ 371, 319, 371, 371, 322, 323, 324, 325, 326, 327, + /* 1960 */ 371, 329, 250, 371, 371, 371, 371, 371, 371, 371, + /* 1970 */ 371, 278, 371, 371, 371, 371, 371, 371, 371, 286, + /* 1980 */ 371, 371, 371, 371, 291, 250, 293, 371, 371, 371, + /* 1990 */ 278, 371, 371, 371, 371, 371, 371, 371, 286, 371, + /* 2000 */ 371, 371, 371, 291, 250, 293, 371, 371, 371, 371, + /* 2010 */ 371, 371, 319, 278, 371, 322, 323, 324, 325, 326, + /* 2020 */ 327, 286, 329, 371, 371, 371, 291, 371, 293, 371, + /* 2030 */ 371, 319, 278, 371, 322, 323, 324, 325, 326, 327, + /* 2040 */ 286, 329, 371, 371, 371, 291, 371, 293, 371, 371, + /* 2050 */ 371, 371, 371, 371, 319, 371, 371, 322, 323, 324, + /* 2060 */ 325, 326, 327, 371, 329, 371, 250, 371, 371, 371, + /* 2070 */ 371, 371, 371, 319, 371, 371, 322, 323, 324, 325, + /* 2080 */ 326, 327, 371, 329, 371, 371, 371, 371, 371, 371, + /* 2090 */ 371, 250, 371, 371, 278, 371, 371, 371, 371, 371, + /* 2100 */ 371, 371, 286, 371, 371, 371, 371, 291, 250, 293, + /* 2110 */ 371, 371, 371, 371, 371, 371, 371, 371, 371, 278, + /* 2120 */ 371, 371, 371, 371, 371, 371, 371, 286, 371, 371, + /* 2130 */ 371, 371, 291, 250, 293, 319, 278, 371, 322, 323, + /* 2140 */ 324, 325, 326, 327, 286, 329, 371, 371, 371, 291, + /* 2150 */ 250, 293, 371, 371, 371, 371, 371, 371, 371, 371, + /* 2160 */ 319, 278, 371, 322, 323, 324, 325, 326, 327, 286, + /* 2170 */ 329, 371, 371, 371, 291, 371, 293, 319, 278, 371, + /* 2180 */ 322, 323, 324, 325, 326, 327, 286, 329, 371, 371, + /* 2190 */ 371, 291, 371, 293, 371, 371, 371, 371, 371, 371, + /* 2200 */ 371, 371, 319, 371, 371, 322, 323, 324, 325, 326, + /* 2210 */ 327, 371, 329, 250, 371, 371, 371, 371, 371, 319, + /* 2220 */ 371, 371, 322, 323, 324, 325, 326, 327, 371, 329, + /* 2230 */ 250, 371, 371, 371, 371, 371, 371, 12, 13, 371, + /* 2240 */ 371, 278, 371, 371, 371, 371, 371, 22, 371, 286, + /* 2250 */ 371, 371, 371, 371, 291, 371, 293, 371, 278, 371, + /* 2260 */ 35, 371, 371, 371, 371, 371, 286, 371, 371, 371, + /* 2270 */ 371, 291, 371, 293, 371, 371, 371, 371, 371, 371, + /* 2280 */ 371, 371, 319, 371, 371, 322, 323, 324, 325, 326, + /* 2290 */ 327, 66, 329, 371, 371, 371, 371, 371, 371, 319, + /* 2300 */ 371, 371, 322, 323, 324, 325, 326, 327, 371, 329, + /* 2310 */ 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, + /* 2320 */ 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, + /* 2330 */ 105, 371, 371, 371, 371, 371, 371, 371, 371, 371, + /* 2340 */ 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, + /* 2350 */ 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, + /* 2360 */ 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, + /* 2370 */ 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, + /* 2380 */ 371, 371, 371, 371, 371, 371, 371, 371, 371, 164, + /* 2390 */ 371, 166, 371, 371, 371, 371, 371, 371, 371, 371, + /* 2400 */ 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, + /* 2410 */ 371, 371, 371, 188, 371, 371, 371, 371, 371, 371, + /* 2420 */ 371, 371, 371, 371, 199, 200, 201, 371, 371, 371, + /* 2430 */ 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, + /* 2440 */ 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, + /* 2450 */ 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, + /* 2460 */ 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, + /* 2470 */ 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, + /* 2480 */ 371, 371, 371, 371, 371, }; -#define YY_SHIFT_COUNT (652) +#define YY_SHIFT_COUNT (655) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (1930) +#define YY_SHIFT_MAX (2225) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 769, 0, 0, 66, 322, 322, 322, 322, 266, 266, - /* 10 */ 322, 322, 460, 515, 581, 515, 515, 515, 515, 515, - /* 20 */ 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, - /* 30 */ 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, - /* 40 */ 515, 515, 292, 292, 18, 18, 18, 925, 925, 925, - /* 50 */ 925, 637, 291, 40, 51, 51, 356, 356, 54, 64, - /* 60 */ 40, 40, 51, 51, 51, 51, 51, 51, 51, 51, - /* 70 */ 33, 51, 51, 51, 85, 104, 265, 51, 51, 265, - /* 80 */ 51, 265, 265, 265, 51, 111, 189, 659, 674, 674, - /* 90 */ 128, 293, 63, 63, 63, 63, 63, 63, 63, 63, - /* 100 */ 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, - /* 110 */ 63, 301, 64, 67, 67, 739, 614, 341, 341, 341, - /* 120 */ 764, 614, 317, 104, 1, 1, 265, 265, 153, 153, - /* 130 */ 285, 370, 195, 195, 195, 195, 195, 195, 195, 704, - /* 140 */ 21, 427, 337, 47, 321, 435, 250, 12, 46, 548, - /* 150 */ 494, 511, 514, 483, 817, 483, 502, 502, 502, 790, - /* 160 */ 649, 844, 1049, 1026, 1044, 966, 1049, 1049, 1093, 995, - /* 170 */ 995, 1049, 1118, 1118, 1125, 33, 104, 33, 1149, 1157, - /* 180 */ 33, 1149, 33, 1163, 33, 33, 1049, 33, 1118, 265, - /* 190 */ 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, - /* 200 */ 1049, 1118, 153, 1125, 111, 1074, 104, 111, 1049, 1049, - /* 210 */ 1149, 111, 1232, 153, 1037, 1042, 153, 1037, 1042, 153, - /* 220 */ 153, 265, 1043, 1122, 1037, 1046, 1052, 1066, 844, 1072, - /* 230 */ 317, 1285, 1276, 1090, 1098, 1094, 1090, 1098, 1090, 1098, - /* 240 */ 1251, 1042, 153, 153, 153, 153, 153, 1042, 153, 1215, - /* 250 */ 317, 1163, 111, 285, 111, 317, 1301, 153, 370, 1049, - /* 260 */ 111, 1351, 1118, 2208, 2208, 2208, 2208, 2208, 2208, 2208, - /* 270 */ 843, 1297, 217, 395, 81, 268, 543, 1003, 1012, 882, - /* 280 */ 713, 532, 532, 532, 532, 532, 532, 532, 532, 701, - /* 290 */ 970, 498, 198, 198, 375, 149, 316, 719, 307, 36, - /* 300 */ 615, 615, 615, 615, 648, 759, 855, 880, 876, 878, - /* 310 */ 892, 894, 622, 971, 985, 874, 841, 956, 1009, 993, - /* 320 */ 923, 146, 897, 1010, 872, 1017, 964, 1019, 1023, 1028, - /* 330 */ 1031, 1032, 915, 961, 1033, 1038, 1039, 1060, 1064, 1085, - /* 340 */ 921, 1096, 1089, 1405, 1407, 1366, 1409, 1337, 1414, 1377, - /* 350 */ 1234, 1381, 1382, 1384, 1239, 1421, 1387, 1390, 1253, 1445, - /* 360 */ 1266, 1448, 1416, 1453, 1433, 1457, 1423, 1459, 1379, 1294, - /* 370 */ 1296, 1299, 1303, 1468, 1470, 1312, 1315, 1474, 1475, 1431, - /* 380 */ 1478, 1480, 1481, 1341, 1484, 1491, 1495, 1502, 1505, 1369, - /* 390 */ 1472, 1508, 1372, 1510, 1511, 1513, 1514, 1515, 1516, 1518, - /* 400 */ 1520, 1521, 1522, 1523, 1524, 1525, 1526, 1485, 1528, 1530, - /* 410 */ 1532, 1533, 1534, 1535, 1517, 1536, 1537, 1540, 1541, 1542, - /* 420 */ 1543, 1504, 1519, 1501, 1545, 1527, 1546, 1531, 1554, 1529, - /* 430 */ 1539, 1556, 1561, 1562, 1547, 1410, 1563, 1567, 1568, 1565, - /* 440 */ 1571, 1576, 1550, 1544, 1548, 1580, 1557, 1553, 1555, 1582, - /* 450 */ 1560, 1581, 1570, 1584, 1583, 1585, 1591, 1589, 1593, 1596, - /* 460 */ 1597, 1538, 1559, 1598, 1609, 1634, 1601, 1602, 1603, 1604, - /* 470 */ 1600, 1606, 1610, 1611, 1612, 1644, 1628, 1651, 1630, 1605, - /* 480 */ 1653, 1633, 1621, 1657, 1623, 1659, 1625, 1662, 1641, 1645, - /* 490 */ 1664, 1551, 1631, 1667, 1512, 1648, 1572, 1552, 1679, 1680, - /* 500 */ 1573, 1569, 1685, 1686, 1687, 1647, 1649, 1469, 1613, 1615, - /* 510 */ 1614, 1620, 1650, 1622, 1618, 1624, 1626, 1629, 1666, 1661, - /* 520 */ 1681, 1643, 1688, 1509, 1646, 1658, 1696, 1564, 1689, 1697, - /* 530 */ 1663, 1701, 1566, 1668, 1656, 1710, 1712, 1714, 1715, 1718, - /* 540 */ 1668, 1692, 1574, 1711, 1682, 1684, 1690, 1717, 1699, 1704, - /* 550 */ 1722, 1742, 1590, 1705, 1691, 1695, 1706, 1769, 1708, 1635, - /* 560 */ 1713, 1770, 1732, 1654, 1719, 1700, 1726, 1747, 1720, 1716, - /* 570 */ 1721, 1772, 1723, 1703, 1727, 1762, 1771, 1737, 1745, 1774, - /* 580 */ 1748, 1746, 1796, 1750, 1754, 1798, 1756, 1757, 1801, 1760, - /* 590 */ 1698, 1738, 1739, 1741, 1824, 1755, 1773, 1776, 1816, 1777, - /* 600 */ 1809, 1809, 1831, 1794, 1797, 1825, 1799, 1781, 1819, 1828, - /* 610 */ 1830, 1833, 1834, 1843, 1865, 1853, 1854, 1826, 1600, 1855, - /* 620 */ 1606, 1857, 1860, 1861, 1862, 1864, 1866, 1903, 1869, 1858, - /* 630 */ 1867, 1908, 1875, 1868, 1872, 1912, 1878, 1870, 1877, 1914, - /* 640 */ 1884, 1873, 1882, 1922, 1888, 1889, 1925, 1906, 1916, 1926, - /* 650 */ 1927, 1923, 1930, + /* 0 */ 718, 0, 0, 67, 273, 273, 273, 273, 324, 324, + /* 10 */ 273, 273, 465, 516, 532, 516, 516, 516, 516, 516, + /* 20 */ 516, 516, 516, 516, 516, 516, 516, 516, 516, 516, + /* 30 */ 516, 516, 516, 516, 516, 516, 516, 516, 516, 516, + /* 40 */ 516, 516, 80, 80, 71, 71, 71, 2225, 2225, 2225, + /* 50 */ 2225, 14, 188, 3, 4, 4, 125, 125, 163, 185, + /* 60 */ 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, + /* 70 */ 19, 4, 4, 4, 64, 76, 96, 4, 4, 96, + /* 80 */ 4, 96, 96, 96, 4, 198, 190, 731, 900, 900, + /* 90 */ 13, 379, 316, 316, 316, 316, 316, 316, 316, 316, + /* 100 */ 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, + /* 110 */ 316, 137, 185, 62, 62, 401, 423, 410, 410, 410, + /* 120 */ 640, 423, 254, 76, 58, 58, 96, 96, 233, 233, + /* 130 */ 217, 247, 897, 897, 897, 897, 897, 897, 897, 129, + /* 140 */ 758, 287, 268, 159, 53, 123, 211, 204, 481, 510, + /* 150 */ 827, 778, 598, 480, 683, 480, 170, 170, 170, 339, + /* 160 */ 760, 863, 1075, 1081, 1104, 980, 1075, 1075, 1105, 1004, + /* 170 */ 1004, 1075, 1075, 1138, 1138, 1155, 19, 76, 19, 1162, + /* 180 */ 1165, 19, 1162, 19, 1177, 19, 19, 1075, 19, 1138, + /* 190 */ 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, + /* 200 */ 96, 1075, 1138, 233, 1155, 198, 1043, 76, 198, 1075, + /* 210 */ 1075, 1162, 198, 1220, 233, 1021, 1031, 233, 1021, 1031, + /* 220 */ 233, 233, 96, 1026, 1114, 1021, 1041, 1054, 1067, 863, + /* 230 */ 1078, 254, 1277, 1257, 1065, 1068, 1066, 1065, 1068, 1065, + /* 240 */ 1068, 1221, 1031, 233, 233, 233, 233, 233, 1031, 233, + /* 250 */ 1164, 254, 1177, 198, 217, 198, 254, 1275, 233, 247, + /* 260 */ 1075, 198, 1328, 1138, 2427, 2427, 2427, 2427, 2427, 2427, + /* 270 */ 2427, 757, 1568, 549, 1047, 143, 357, 550, 852, 878, + /* 280 */ 662, 676, 38, 38, 38, 38, 38, 38, 38, 38, + /* 290 */ 647, 945, 134, 56, 56, 304, 93, 578, 583, 373, + /* 300 */ 364, 16, 16, 16, 16, 321, 432, 816, 845, 830, + /* 310 */ 837, 875, 886, 889, 906, 926, 928, 732, 903, 934, + /* 320 */ 965, 892, 864, 939, 943, 790, 988, 107, 993, 994, + /* 330 */ 995, 998, 1009, 764, 884, 1012, 1013, 1030, 1057, 1059, + /* 340 */ 1073, 956, 1022, 1053, 1376, 1379, 1338, 1383, 1310, 1385, + /* 350 */ 1351, 1205, 1353, 1354, 1355, 1209, 1392, 1358, 1359, 1213, + /* 360 */ 1398, 1225, 1408, 1378, 1414, 1389, 1415, 1381, 1418, 1336, + /* 370 */ 1251, 1253, 1259, 1262, 1423, 1427, 1268, 1270, 1430, 1431, + /* 380 */ 1386, 1433, 1434, 1435, 1293, 1437, 1439, 1440, 1447, 1449, + /* 390 */ 1313, 1417, 1459, 1323, 1462, 1463, 1464, 1465, 1466, 1467, + /* 400 */ 1468, 1469, 1470, 1471, 1472, 1473, 1481, 1482, 1436, 1479, + /* 410 */ 1483, 1484, 1485, 1486, 1487, 1453, 1476, 1477, 1488, 1489, + /* 420 */ 1490, 1438, 1491, 1493, 1454, 1456, 1455, 1492, 1451, 1494, + /* 430 */ 1457, 1500, 1474, 1480, 1501, 1504, 1505, 1497, 1352, 1509, + /* 440 */ 1511, 1512, 1452, 1516, 1518, 1495, 1478, 1498, 1521, 1496, + /* 450 */ 1507, 1499, 1522, 1506, 1508, 1503, 1523, 1510, 1513, 1517, + /* 460 */ 1524, 1526, 1527, 1532, 1448, 1502, 1528, 1530, 1539, 1537, + /* 470 */ 1541, 1543, 1544, 1515, 1531, 1546, 1547, 1548, 1559, 1558, + /* 480 */ 1584, 1564, 1538, 1588, 1569, 1555, 1594, 1560, 1596, 1562, + /* 490 */ 1599, 1580, 1585, 1604, 1393, 1579, 1616, 1458, 1595, 1514, + /* 500 */ 1519, 1618, 1625, 1520, 1525, 1627, 1635, 1637, 1597, 1598, + /* 510 */ 1419, 1561, 1554, 1563, 1565, 1600, 1567, 1573, 1574, 1575, + /* 520 */ 1570, 1602, 1606, 1617, 1576, 1605, 1422, 1582, 1586, 1622, + /* 530 */ 1450, 1626, 1628, 1589, 1629, 1460, 1591, 1641, 1642, 1644, + /* 540 */ 1646, 1647, 1648, 1591, 1682, 1533, 1643, 1601, 1607, 1603, + /* 550 */ 1653, 1620, 1623, 1654, 1679, 1534, 1624, 1621, 1630, 1634, + /* 560 */ 1708, 1636, 1577, 1640, 1709, 1671, 1566, 1645, 1619, 1674, + /* 570 */ 1681, 1649, 1658, 1660, 1707, 1661, 1651, 1662, 1696, 1713, + /* 580 */ 1666, 1667, 1715, 1672, 1673, 1721, 1675, 1676, 1724, 1680, + /* 590 */ 1678, 1729, 1684, 1663, 1664, 1665, 1668, 1743, 1683, 1686, + /* 600 */ 1690, 1739, 1694, 1733, 1733, 1759, 1728, 1722, 1756, 1726, + /* 610 */ 1714, 1750, 1761, 1768, 1770, 1771, 1773, 1787, 1775, 1776, + /* 620 */ 1746, 1515, 1778, 1531, 1779, 1781, 1782, 1783, 1784, 1788, + /* 630 */ 1824, 1790, 1780, 1789, 1826, 1794, 1785, 1791, 1831, 1798, + /* 640 */ 1792, 1795, 1835, 1801, 1796, 1799, 1837, 1806, 1807, 1844, + /* 650 */ 1823, 1825, 1828, 1838, 1840, 1827, }; -#define YY_REDUCE_COUNT (269) -#define YY_REDUCE_MIN (-338) -#define YY_REDUCE_MAX (1842) +#define YY_REDUCE_COUNT (270) +#define YY_REDUCE_MIN (-347) +#define YY_REDUCE_MAX (1980) static const short yy_reduce_ofst[] = { - /* 0 */ -235, -215, 87, 651, 712, 513, 773, 828, 881, 890, - /* 10 */ 908, 973, -150, 989, 998, 314, 1051, 1105, 1114, 1164, - /* 20 */ 1175, 1227, 1280, 1289, 1298, 1350, 1392, 1412, 1434, 1490, - /* 30 */ 1499, 1549, 1558, 1608, 1617, 1669, 1678, 1731, 1740, 1749, - /* 40 */ 1758, 1836, 1753, 1842, -119, 241, 246, -274, -254, -261, - /* 50 */ 79, -292, -224, 143, -124, 108, -253, -249, -338, -251, - /* 60 */ -218, 55, -123, -33, 162, 164, 226, 275, 304, 339, - /* 70 */ -244, 360, 408, 409, -209, 133, 200, 413, 463, 459, - /* 80 */ 481, 298, 470, 455, 545, 165, -233, 7, 7, 7, - /* 90 */ -217, -252, -63, 154, 194, 287, 320, 351, 353, 496, - /* 100 */ 518, 521, 542, 571, 597, 598, 609, 611, 644, 654, - /* 110 */ 678, -174, 238, 221, 308, -144, 357, -111, 490, 589, - /* 120 */ 595, 428, 399, 497, 271, 523, 507, 552, 652, 658, - /* 130 */ 686, 22, -259, 177, 426, 452, 457, 534, 579, 71, - /* 140 */ 156, 233, 227, 533, 699, 684, 612, 724, 724, 765, - /* 150 */ 788, 756, 731, 709, 709, 709, 693, 694, 695, 720, - /* 160 */ 724, 751, 815, 763, 854, 820, 875, 877, 839, 846, - /* 170 */ 847, 887, 904, 909, 835, 901, 884, 911, 864, 870, - /* 180 */ 918, 883, 920, 886, 926, 929, 934, 931, 935, 917, - /* 190 */ 919, 924, 933, 940, 942, 943, 944, 946, 947, 948, - /* 200 */ 938, 976, 945, 927, 982, 936, 957, 994, 997, 999, - /* 210 */ 951, 1000, 941, 972, 914, 967, 979, 932, 969, 981, - /* 220 */ 983, 724, 922, 937, 949, 928, 952, 939, 977, 709, - /* 230 */ 1002, 987, 1001, 963, 974, 978, 984, 975, 996, 1004, - /* 240 */ 1006, 1034, 1055, 1056, 1067, 1068, 1069, 1041, 1071, 1065, - /* 250 */ 1080, 1070, 1107, 1097, 1112, 1095, 1103, 1099, 1119, 1128, - /* 260 */ 1129, 1140, 1142, 1084, 1091, 1127, 1130, 1131, 1143, 1153, + /* 0 */ 623, -201, 90, 264, 519, 632, 697, 798, 840, 901, + /* 10 */ 955, 997, -185, 319, 1020, 1077, 1119, 1131, 1224, 1242, + /* 20 */ 1284, 1307, 1369, 1411, 1461, 1475, 1529, 1571, 1590, 1613, + /* 30 */ 1632, 1693, 1712, 1735, 1754, 1816, 1841, 1858, 1883, 1900, + /* 40 */ 1963, 1980, 829, 910, -231, -51, 285, -262, -255, -76, + /* 50 */ 23, -249, 331, 430, -253, 705, -254, -250, -347, -80, + /* 60 */ -126, 29, -154, 20, 139, 162, 165, 223, 334, 414, + /* 70 */ 26, 663, 664, 746, -118, 101, -261, 756, 759, 70, + /* 80 */ 785, 158, 208, 221, 789, 335, -247, -272, -272, -272, + /* 90 */ -241, -169, -120, -70, 149, 156, 168, 244, 303, 322, + /* 100 */ 359, 502, 503, 517, 518, 520, 523, 527, 556, 567, + /* 110 */ 590, 460, 118, 279, 448, 83, 360, 428, 451, 454, + /* 120 */ 521, 368, -52, 203, 497, 501, 102, 575, 463, 561, + /* 130 */ 588, 41, -265, 74, 224, 232, 260, 262, 327, 337, + /* 140 */ 418, 499, 312, 537, 694, 657, 625, 752, 752, 805, + /* 150 */ 808, 777, 747, 724, 724, 724, 711, 720, 722, 737, + /* 160 */ 752, 775, 861, 822, 876, 834, 888, 891, 854, 857, + /* 170 */ 858, 898, 902, 909, 921, 866, 916, 890, 919, 877, + /* 180 */ 880, 924, 883, 931, 899, 937, 938, 946, 941, 949, + /* 190 */ 929, 930, 932, 933, 935, 936, 944, 951, 953, 954, + /* 200 */ 957, 958, 960, 947, 905, 961, 904, 950, 974, 979, + /* 210 */ 981, 952, 982, 923, 959, 907, 962, 966, 908, 963, + /* 220 */ 969, 975, 752, 911, 915, 940, 942, 948, 964, 972, + /* 230 */ 724, 1010, 983, 968, 967, 971, 970, 973, 977, 985, + /* 240 */ 984, 990, 1006, 1018, 1019, 1023, 1027, 1037, 1015, 1039, + /* 250 */ 1036, 1045, 1038, 1091, 1079, 1094, 1070, 1080, 1069, 1093, + /* 260 */ 1101, 1106, 1112, 1115, 1060, 1071, 1100, 1102, 1103, 1117, + /* 270 */ 1125, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 10 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 20 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 30 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 40 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 50 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 60 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 70 */ 1496, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 80 */ 1424, 1424, 1424, 1424, 1424, 1494, 1647, 1424, 1816, 1424, - /* 90 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 100 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 110 */ 1424, 1424, 1424, 1424, 1424, 1496, 1424, 1828, 1828, 1828, - /* 120 */ 1494, 1424, 1424, 1424, 1691, 1691, 1424, 1424, 1424, 1424, - /* 130 */ 1590, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1683, - /* 140 */ 1424, 1424, 1898, 1424, 1424, 1689, 1852, 1424, 1424, 1424, - /* 150 */ 1424, 1543, 1844, 1820, 1834, 1821, 1883, 1883, 1883, 1837, - /* 160 */ 1424, 1848, 1424, 1424, 1424, 1675, 1424, 1424, 1652, 1649, - /* 170 */ 1649, 1424, 1424, 1424, 1424, 1496, 1424, 1496, 1424, 1424, - /* 180 */ 1496, 1424, 1496, 1424, 1496, 1496, 1424, 1496, 1424, 1424, - /* 190 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 200 */ 1424, 1424, 1424, 1424, 1494, 1685, 1424, 1494, 1424, 1424, - /* 210 */ 1424, 1494, 1424, 1424, 1859, 1857, 1424, 1859, 1857, 1424, - /* 220 */ 1424, 1424, 1871, 1867, 1859, 1875, 1873, 1850, 1848, 1834, - /* 230 */ 1424, 1424, 1818, 1889, 1885, 1901, 1889, 1885, 1889, 1885, - /* 240 */ 1424, 1857, 1424, 1424, 1424, 1424, 1424, 1857, 1424, 1424, - /* 250 */ 1424, 1424, 1494, 1424, 1494, 1424, 1559, 1424, 1424, 1424, - /* 260 */ 1494, 1456, 1424, 1677, 1691, 1593, 1593, 1593, 1497, 1429, - /* 270 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 280 */ 1424, 1760, 1870, 1869, 1792, 1791, 1790, 1788, 1759, 1424, - /* 290 */ 1424, 1555, 1758, 1757, 1424, 1424, 1424, 1424, 1424, 1424, - /* 300 */ 1751, 1752, 1750, 1749, 1424, 1424, 1424, 1424, 1424, 1424, - /* 310 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1817, - /* 320 */ 1424, 1886, 1890, 1424, 1424, 1424, 1734, 1424, 1424, 1424, - /* 330 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 340 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 350 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 360 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 370 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 380 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 390 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 400 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 410 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 420 */ 1424, 1424, 1424, 1461, 1424, 1424, 1424, 1424, 1424, 1424, - /* 430 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 440 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 450 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 460 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 470 */ 1524, 1523, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 480 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 490 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 500 */ 1424, 1424, 1424, 1424, 1424, 1841, 1851, 1424, 1424, 1424, - /* 510 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 520 */ 1734, 1424, 1868, 1424, 1827, 1823, 1424, 1424, 1819, 1424, - /* 530 */ 1424, 1884, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 540 */ 1424, 1812, 1424, 1785, 1424, 1424, 1424, 1424, 1424, 1424, - /* 550 */ 1424, 1424, 1745, 1424, 1424, 1424, 1424, 1695, 1424, 1424, - /* 560 */ 1424, 1424, 1424, 1424, 1424, 1424, 1733, 1424, 1776, 1424, - /* 570 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1587, 1424, 1424, - /* 580 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 590 */ 1572, 1570, 1569, 1568, 1424, 1565, 1424, 1424, 1424, 1424, - /* 600 */ 1596, 1595, 1424, 1424, 1424, 1424, 1424, 1424, 1516, 1424, - /* 610 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1507, 1424, - /* 620 */ 1506, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 630 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 640 */ 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, 1424, - /* 650 */ 1424, 1424, 1424, + /* 0 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 10 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 20 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 30 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 40 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 50 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 60 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 70 */ 1501, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 80 */ 1428, 1428, 1428, 1428, 1428, 1499, 1652, 1428, 1821, 1428, + /* 90 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 100 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 110 */ 1428, 1428, 1428, 1428, 1428, 1501, 1428, 1833, 1833, 1833, + /* 120 */ 1499, 1428, 1428, 1428, 1696, 1696, 1428, 1428, 1428, 1428, + /* 130 */ 1595, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1688, + /* 140 */ 1428, 1428, 1903, 1428, 1428, 1694, 1857, 1428, 1428, 1428, + /* 150 */ 1428, 1548, 1849, 1825, 1839, 1826, 1888, 1888, 1888, 1842, + /* 160 */ 1428, 1853, 1428, 1428, 1428, 1680, 1428, 1428, 1657, 1654, + /* 170 */ 1654, 1428, 1428, 1428, 1428, 1428, 1501, 1428, 1501, 1428, + /* 180 */ 1428, 1501, 1428, 1501, 1428, 1501, 1501, 1428, 1501, 1428, + /* 190 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 200 */ 1428, 1428, 1428, 1428, 1428, 1499, 1690, 1428, 1499, 1428, + /* 210 */ 1428, 1428, 1499, 1428, 1428, 1864, 1862, 1428, 1864, 1862, + /* 220 */ 1428, 1428, 1428, 1876, 1872, 1864, 1880, 1878, 1855, 1853, + /* 230 */ 1839, 1428, 1428, 1823, 1894, 1890, 1906, 1894, 1890, 1894, + /* 240 */ 1890, 1428, 1862, 1428, 1428, 1428, 1428, 1428, 1862, 1428, + /* 250 */ 1428, 1428, 1428, 1499, 1428, 1499, 1428, 1564, 1428, 1428, + /* 260 */ 1428, 1499, 1460, 1428, 1682, 1696, 1598, 1598, 1598, 1502, + /* 270 */ 1433, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 280 */ 1428, 1428, 1765, 1875, 1874, 1797, 1796, 1795, 1793, 1764, + /* 290 */ 1428, 1428, 1560, 1763, 1762, 1428, 1428, 1428, 1428, 1428, + /* 300 */ 1428, 1756, 1757, 1755, 1754, 1428, 1428, 1428, 1428, 1428, + /* 310 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 320 */ 1822, 1428, 1891, 1895, 1428, 1428, 1428, 1739, 1428, 1428, + /* 330 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 340 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 350 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 360 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 370 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 380 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 390 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 400 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 410 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 420 */ 1428, 1428, 1428, 1428, 1428, 1428, 1465, 1428, 1428, 1428, + /* 430 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 440 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 450 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 460 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 470 */ 1428, 1428, 1428, 1529, 1528, 1428, 1428, 1428, 1428, 1428, + /* 480 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 490 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 500 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1846, 1856, + /* 510 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 520 */ 1428, 1428, 1428, 1739, 1428, 1873, 1428, 1832, 1828, 1428, + /* 530 */ 1428, 1824, 1428, 1428, 1889, 1428, 1428, 1428, 1428, 1428, + /* 540 */ 1428, 1428, 1428, 1428, 1817, 1428, 1790, 1428, 1428, 1428, + /* 550 */ 1428, 1428, 1428, 1428, 1428, 1750, 1428, 1428, 1428, 1428, + /* 560 */ 1700, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1738, + /* 570 */ 1428, 1781, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 580 */ 1592, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 590 */ 1428, 1428, 1428, 1577, 1575, 1574, 1573, 1428, 1570, 1428, + /* 600 */ 1428, 1428, 1428, 1601, 1600, 1428, 1428, 1428, 1428, 1428, + /* 610 */ 1428, 1521, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 620 */ 1428, 1512, 1428, 1511, 1428, 1428, 1428, 1428, 1428, 1428, + /* 630 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 640 */ 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, 1428, + /* 650 */ 1428, 1428, 1428, 1428, 1428, 1428, }; /********** End of lemon-generated parsing tables *****************************/ @@ -910,6 +961,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* MNODE => nothing */ 0, /* DATABASE => nothing */ 0, /* USE => nothing */ + 0, /* FLUSH => nothing */ 0, /* IF => nothing */ 0, /* NOT => nothing */ 0, /* EXISTS => nothing */ @@ -1092,12 +1144,12 @@ static const YYCODETYPE yyFallback[] = { 0, /* ASC => nothing */ 0, /* NULLS => nothing */ 0, /* ID => nothing */ - 239, /* NK_BITNOT => ID */ - 239, /* INSERT => ID */ - 239, /* VALUES => ID */ - 239, /* IMPORT => ID */ - 239, /* NK_SEMI => ID */ - 239, /* FILE => ID */ + 240, /* NK_BITNOT => ID */ + 240, /* INSERT => ID */ + 240, /* VALUES => ID */ + 240, /* IMPORT => ID */ + 240, /* NK_SEMI => ID */ + 240, /* FILE => ID */ }; #endif /* YYFALLBACK */ @@ -1243,318 +1295,319 @@ static const char *const yyTokenName[] = { /* 55 */ "MNODE", /* 56 */ "DATABASE", /* 57 */ "USE", - /* 58 */ "IF", - /* 59 */ "NOT", - /* 60 */ "EXISTS", - /* 61 */ "BUFFER", - /* 62 */ "CACHELAST", - /* 63 */ "COMP", - /* 64 */ "DURATION", - /* 65 */ "NK_VARIABLE", - /* 66 */ "FSYNC", - /* 67 */ "MAXROWS", - /* 68 */ "MINROWS", - /* 69 */ "KEEP", - /* 70 */ "PAGES", - /* 71 */ "PAGESIZE", - /* 72 */ "PRECISION", - /* 73 */ "REPLICA", - /* 74 */ "STRICT", - /* 75 */ "WAL", - /* 76 */ "VGROUPS", - /* 77 */ "SINGLE_STABLE", - /* 78 */ "RETENTIONS", - /* 79 */ "SCHEMALESS", - /* 80 */ "NK_COLON", - /* 81 */ "TABLE", - /* 82 */ "NK_LP", - /* 83 */ "NK_RP", - /* 84 */ "STABLE", - /* 85 */ "ADD", - /* 86 */ "COLUMN", - /* 87 */ "MODIFY", - /* 88 */ "RENAME", - /* 89 */ "TAG", - /* 90 */ "SET", - /* 91 */ "NK_EQ", - /* 92 */ "USING", - /* 93 */ "TAGS", - /* 94 */ "COMMENT", - /* 95 */ "BOOL", - /* 96 */ "TINYINT", - /* 97 */ "SMALLINT", - /* 98 */ "INT", - /* 99 */ "INTEGER", - /* 100 */ "BIGINT", - /* 101 */ "FLOAT", - /* 102 */ "DOUBLE", - /* 103 */ "BINARY", - /* 104 */ "TIMESTAMP", - /* 105 */ "NCHAR", - /* 106 */ "UNSIGNED", - /* 107 */ "JSON", - /* 108 */ "VARCHAR", - /* 109 */ "MEDIUMBLOB", - /* 110 */ "BLOB", - /* 111 */ "VARBINARY", - /* 112 */ "DECIMAL", - /* 113 */ "MAX_DELAY", - /* 114 */ "WATERMARK", - /* 115 */ "ROLLUP", - /* 116 */ "TTL", - /* 117 */ "SMA", - /* 118 */ "FIRST", - /* 119 */ "LAST", - /* 120 */ "SHOW", - /* 121 */ "DATABASES", - /* 122 */ "TABLES", - /* 123 */ "STABLES", - /* 124 */ "MNODES", - /* 125 */ "MODULES", - /* 126 */ "QNODES", - /* 127 */ "FUNCTIONS", - /* 128 */ "INDEXES", - /* 129 */ "ACCOUNTS", - /* 130 */ "APPS", - /* 131 */ "CONNECTIONS", - /* 132 */ "LICENCE", - /* 133 */ "GRANTS", - /* 134 */ "QUERIES", - /* 135 */ "SCORES", - /* 136 */ "TOPICS", - /* 137 */ "VARIABLES", - /* 138 */ "BNODES", - /* 139 */ "SNODES", - /* 140 */ "CLUSTER", - /* 141 */ "TRANSACTIONS", - /* 142 */ "DISTRIBUTED", - /* 143 */ "CONSUMERS", - /* 144 */ "SUBSCRIPTIONS", - /* 145 */ "LIKE", - /* 146 */ "INDEX", - /* 147 */ "FUNCTION", - /* 148 */ "INTERVAL", - /* 149 */ "TOPIC", - /* 150 */ "AS", - /* 151 */ "WITH", - /* 152 */ "META", - /* 153 */ "CONSUMER", - /* 154 */ "GROUP", - /* 155 */ "DESC", - /* 156 */ "DESCRIBE", - /* 157 */ "RESET", - /* 158 */ "QUERY", - /* 159 */ "CACHE", - /* 160 */ "EXPLAIN", - /* 161 */ "ANALYZE", - /* 162 */ "VERBOSE", - /* 163 */ "NK_BOOL", - /* 164 */ "RATIO", - /* 165 */ "NK_FLOAT", - /* 166 */ "COMPACT", - /* 167 */ "VNODES", - /* 168 */ "IN", - /* 169 */ "OUTPUTTYPE", - /* 170 */ "AGGREGATE", - /* 171 */ "BUFSIZE", - /* 172 */ "STREAM", - /* 173 */ "INTO", - /* 174 */ "TRIGGER", - /* 175 */ "AT_ONCE", - /* 176 */ "WINDOW_CLOSE", - /* 177 */ "KILL", - /* 178 */ "CONNECTION", - /* 179 */ "TRANSACTION", - /* 180 */ "BALANCE", - /* 181 */ "VGROUP", - /* 182 */ "MERGE", - /* 183 */ "REDISTRIBUTE", - /* 184 */ "SPLIT", - /* 185 */ "SYNCDB", - /* 186 */ "DELETE", - /* 187 */ "NULL", - /* 188 */ "NK_QUESTION", - /* 189 */ "NK_ARROW", - /* 190 */ "ROWTS", - /* 191 */ "TBNAME", - /* 192 */ "QSTARTTS", - /* 193 */ "QENDTS", - /* 194 */ "WSTARTTS", - /* 195 */ "WENDTS", - /* 196 */ "WDURATION", - /* 197 */ "CAST", - /* 198 */ "NOW", - /* 199 */ "TODAY", - /* 200 */ "TIMEZONE", - /* 201 */ "COUNT", - /* 202 */ "LAST_ROW", - /* 203 */ "BETWEEN", - /* 204 */ "IS", - /* 205 */ "NK_LT", - /* 206 */ "NK_GT", - /* 207 */ "NK_LE", - /* 208 */ "NK_GE", - /* 209 */ "NK_NE", - /* 210 */ "MATCH", - /* 211 */ "NMATCH", - /* 212 */ "CONTAINS", - /* 213 */ "JOIN", - /* 214 */ "INNER", - /* 215 */ "SELECT", - /* 216 */ "DISTINCT", - /* 217 */ "WHERE", - /* 218 */ "PARTITION", - /* 219 */ "BY", - /* 220 */ "SESSION", - /* 221 */ "STATE_WINDOW", - /* 222 */ "SLIDING", - /* 223 */ "FILL", - /* 224 */ "VALUE", - /* 225 */ "NONE", - /* 226 */ "PREV", - /* 227 */ "LINEAR", - /* 228 */ "NEXT", - /* 229 */ "HAVING", - /* 230 */ "RANGE", - /* 231 */ "EVERY", - /* 232 */ "ORDER", - /* 233 */ "SLIMIT", - /* 234 */ "SOFFSET", - /* 235 */ "LIMIT", - /* 236 */ "OFFSET", - /* 237 */ "ASC", - /* 238 */ "NULLS", - /* 239 */ "ID", - /* 240 */ "NK_BITNOT", - /* 241 */ "INSERT", - /* 242 */ "VALUES", - /* 243 */ "IMPORT", - /* 244 */ "NK_SEMI", - /* 245 */ "FILE", - /* 246 */ "cmd", - /* 247 */ "account_options", - /* 248 */ "alter_account_options", - /* 249 */ "literal", - /* 250 */ "alter_account_option", - /* 251 */ "user_name", - /* 252 */ "sysinfo_opt", - /* 253 */ "privileges", - /* 254 */ "priv_level", - /* 255 */ "priv_type_list", - /* 256 */ "priv_type", - /* 257 */ "db_name", - /* 258 */ "dnode_endpoint", - /* 259 */ "not_exists_opt", - /* 260 */ "db_options", - /* 261 */ "exists_opt", - /* 262 */ "alter_db_options", - /* 263 */ "integer_list", - /* 264 */ "variable_list", - /* 265 */ "retention_list", - /* 266 */ "alter_db_option", - /* 267 */ "retention", - /* 268 */ "full_table_name", - /* 269 */ "column_def_list", - /* 270 */ "tags_def_opt", - /* 271 */ "table_options", - /* 272 */ "multi_create_clause", - /* 273 */ "tags_def", - /* 274 */ "multi_drop_clause", - /* 275 */ "alter_table_clause", - /* 276 */ "alter_table_options", - /* 277 */ "column_name", - /* 278 */ "type_name", - /* 279 */ "signed_literal", - /* 280 */ "create_subtable_clause", - /* 281 */ "specific_tags_opt", - /* 282 */ "literal_list", - /* 283 */ "drop_table_clause", - /* 284 */ "col_name_list", - /* 285 */ "table_name", - /* 286 */ "column_def", - /* 287 */ "duration_list", - /* 288 */ "rollup_func_list", - /* 289 */ "alter_table_option", - /* 290 */ "duration_literal", - /* 291 */ "rollup_func_name", - /* 292 */ "function_name", - /* 293 */ "col_name", - /* 294 */ "db_name_cond_opt", - /* 295 */ "like_pattern_opt", - /* 296 */ "table_name_cond", - /* 297 */ "from_db_opt", - /* 298 */ "index_name", - /* 299 */ "index_options", - /* 300 */ "func_list", - /* 301 */ "sliding_opt", - /* 302 */ "sma_stream_opt", - /* 303 */ "func", - /* 304 */ "expression_list", - /* 305 */ "stream_options", - /* 306 */ "topic_name", - /* 307 */ "query_expression", - /* 308 */ "cgroup_name", - /* 309 */ "analyze_opt", - /* 310 */ "explain_options", - /* 311 */ "agg_func_opt", - /* 312 */ "bufsize_opt", - /* 313 */ "stream_name", - /* 314 */ "into_opt", - /* 315 */ "dnode_list", - /* 316 */ "where_clause_opt", - /* 317 */ "signed", - /* 318 */ "literal_func", - /* 319 */ "table_alias", - /* 320 */ "column_alias", - /* 321 */ "expression", - /* 322 */ "pseudo_column", - /* 323 */ "column_reference", - /* 324 */ "function_expression", - /* 325 */ "subquery", - /* 326 */ "star_func", - /* 327 */ "star_func_para_list", - /* 328 */ "noarg_func", - /* 329 */ "other_para_list", - /* 330 */ "star_func_para", - /* 331 */ "predicate", - /* 332 */ "compare_op", - /* 333 */ "in_op", - /* 334 */ "in_predicate_value", - /* 335 */ "boolean_value_expression", - /* 336 */ "boolean_primary", - /* 337 */ "common_expression", - /* 338 */ "from_clause_opt", - /* 339 */ "table_reference_list", - /* 340 */ "table_reference", - /* 341 */ "table_primary", - /* 342 */ "joined_table", - /* 343 */ "alias_opt", - /* 344 */ "parenthesized_joined_table", - /* 345 */ "join_type", - /* 346 */ "search_condition", - /* 347 */ "query_specification", - /* 348 */ "set_quantifier_opt", - /* 349 */ "select_list", - /* 350 */ "partition_by_clause_opt", - /* 351 */ "range_opt", - /* 352 */ "every_opt", - /* 353 */ "fill_opt", - /* 354 */ "twindow_clause_opt", - /* 355 */ "group_by_clause_opt", - /* 356 */ "having_clause_opt", - /* 357 */ "select_sublist", - /* 358 */ "select_item", - /* 359 */ "fill_mode", - /* 360 */ "group_by_list", - /* 361 */ "query_expression_body", - /* 362 */ "order_by_clause_opt", - /* 363 */ "slimit_clause_opt", - /* 364 */ "limit_clause_opt", - /* 365 */ "query_primary", - /* 366 */ "sort_specification_list", - /* 367 */ "sort_specification", - /* 368 */ "ordering_specification_opt", - /* 369 */ "null_ordering_opt", + /* 58 */ "FLUSH", + /* 59 */ "IF", + /* 60 */ "NOT", + /* 61 */ "EXISTS", + /* 62 */ "BUFFER", + /* 63 */ "CACHELAST", + /* 64 */ "COMP", + /* 65 */ "DURATION", + /* 66 */ "NK_VARIABLE", + /* 67 */ "FSYNC", + /* 68 */ "MAXROWS", + /* 69 */ "MINROWS", + /* 70 */ "KEEP", + /* 71 */ "PAGES", + /* 72 */ "PAGESIZE", + /* 73 */ "PRECISION", + /* 74 */ "REPLICA", + /* 75 */ "STRICT", + /* 76 */ "WAL", + /* 77 */ "VGROUPS", + /* 78 */ "SINGLE_STABLE", + /* 79 */ "RETENTIONS", + /* 80 */ "SCHEMALESS", + /* 81 */ "NK_COLON", + /* 82 */ "TABLE", + /* 83 */ "NK_LP", + /* 84 */ "NK_RP", + /* 85 */ "STABLE", + /* 86 */ "ADD", + /* 87 */ "COLUMN", + /* 88 */ "MODIFY", + /* 89 */ "RENAME", + /* 90 */ "TAG", + /* 91 */ "SET", + /* 92 */ "NK_EQ", + /* 93 */ "USING", + /* 94 */ "TAGS", + /* 95 */ "COMMENT", + /* 96 */ "BOOL", + /* 97 */ "TINYINT", + /* 98 */ "SMALLINT", + /* 99 */ "INT", + /* 100 */ "INTEGER", + /* 101 */ "BIGINT", + /* 102 */ "FLOAT", + /* 103 */ "DOUBLE", + /* 104 */ "BINARY", + /* 105 */ "TIMESTAMP", + /* 106 */ "NCHAR", + /* 107 */ "UNSIGNED", + /* 108 */ "JSON", + /* 109 */ "VARCHAR", + /* 110 */ "MEDIUMBLOB", + /* 111 */ "BLOB", + /* 112 */ "VARBINARY", + /* 113 */ "DECIMAL", + /* 114 */ "MAX_DELAY", + /* 115 */ "WATERMARK", + /* 116 */ "ROLLUP", + /* 117 */ "TTL", + /* 118 */ "SMA", + /* 119 */ "FIRST", + /* 120 */ "LAST", + /* 121 */ "SHOW", + /* 122 */ "DATABASES", + /* 123 */ "TABLES", + /* 124 */ "STABLES", + /* 125 */ "MNODES", + /* 126 */ "MODULES", + /* 127 */ "QNODES", + /* 128 */ "FUNCTIONS", + /* 129 */ "INDEXES", + /* 130 */ "ACCOUNTS", + /* 131 */ "APPS", + /* 132 */ "CONNECTIONS", + /* 133 */ "LICENCE", + /* 134 */ "GRANTS", + /* 135 */ "QUERIES", + /* 136 */ "SCORES", + /* 137 */ "TOPICS", + /* 138 */ "VARIABLES", + /* 139 */ "BNODES", + /* 140 */ "SNODES", + /* 141 */ "CLUSTER", + /* 142 */ "TRANSACTIONS", + /* 143 */ "DISTRIBUTED", + /* 144 */ "CONSUMERS", + /* 145 */ "SUBSCRIPTIONS", + /* 146 */ "LIKE", + /* 147 */ "INDEX", + /* 148 */ "FUNCTION", + /* 149 */ "INTERVAL", + /* 150 */ "TOPIC", + /* 151 */ "AS", + /* 152 */ "WITH", + /* 153 */ "META", + /* 154 */ "CONSUMER", + /* 155 */ "GROUP", + /* 156 */ "DESC", + /* 157 */ "DESCRIBE", + /* 158 */ "RESET", + /* 159 */ "QUERY", + /* 160 */ "CACHE", + /* 161 */ "EXPLAIN", + /* 162 */ "ANALYZE", + /* 163 */ "VERBOSE", + /* 164 */ "NK_BOOL", + /* 165 */ "RATIO", + /* 166 */ "NK_FLOAT", + /* 167 */ "COMPACT", + /* 168 */ "VNODES", + /* 169 */ "IN", + /* 170 */ "OUTPUTTYPE", + /* 171 */ "AGGREGATE", + /* 172 */ "BUFSIZE", + /* 173 */ "STREAM", + /* 174 */ "INTO", + /* 175 */ "TRIGGER", + /* 176 */ "AT_ONCE", + /* 177 */ "WINDOW_CLOSE", + /* 178 */ "KILL", + /* 179 */ "CONNECTION", + /* 180 */ "TRANSACTION", + /* 181 */ "BALANCE", + /* 182 */ "VGROUP", + /* 183 */ "MERGE", + /* 184 */ "REDISTRIBUTE", + /* 185 */ "SPLIT", + /* 186 */ "SYNCDB", + /* 187 */ "DELETE", + /* 188 */ "NULL", + /* 189 */ "NK_QUESTION", + /* 190 */ "NK_ARROW", + /* 191 */ "ROWTS", + /* 192 */ "TBNAME", + /* 193 */ "QSTARTTS", + /* 194 */ "QENDTS", + /* 195 */ "WSTARTTS", + /* 196 */ "WENDTS", + /* 197 */ "WDURATION", + /* 198 */ "CAST", + /* 199 */ "NOW", + /* 200 */ "TODAY", + /* 201 */ "TIMEZONE", + /* 202 */ "COUNT", + /* 203 */ "LAST_ROW", + /* 204 */ "BETWEEN", + /* 205 */ "IS", + /* 206 */ "NK_LT", + /* 207 */ "NK_GT", + /* 208 */ "NK_LE", + /* 209 */ "NK_GE", + /* 210 */ "NK_NE", + /* 211 */ "MATCH", + /* 212 */ "NMATCH", + /* 213 */ "CONTAINS", + /* 214 */ "JOIN", + /* 215 */ "INNER", + /* 216 */ "SELECT", + /* 217 */ "DISTINCT", + /* 218 */ "WHERE", + /* 219 */ "PARTITION", + /* 220 */ "BY", + /* 221 */ "SESSION", + /* 222 */ "STATE_WINDOW", + /* 223 */ "SLIDING", + /* 224 */ "FILL", + /* 225 */ "VALUE", + /* 226 */ "NONE", + /* 227 */ "PREV", + /* 228 */ "LINEAR", + /* 229 */ "NEXT", + /* 230 */ "HAVING", + /* 231 */ "RANGE", + /* 232 */ "EVERY", + /* 233 */ "ORDER", + /* 234 */ "SLIMIT", + /* 235 */ "SOFFSET", + /* 236 */ "LIMIT", + /* 237 */ "OFFSET", + /* 238 */ "ASC", + /* 239 */ "NULLS", + /* 240 */ "ID", + /* 241 */ "NK_BITNOT", + /* 242 */ "INSERT", + /* 243 */ "VALUES", + /* 244 */ "IMPORT", + /* 245 */ "NK_SEMI", + /* 246 */ "FILE", + /* 247 */ "cmd", + /* 248 */ "account_options", + /* 249 */ "alter_account_options", + /* 250 */ "literal", + /* 251 */ "alter_account_option", + /* 252 */ "user_name", + /* 253 */ "sysinfo_opt", + /* 254 */ "privileges", + /* 255 */ "priv_level", + /* 256 */ "priv_type_list", + /* 257 */ "priv_type", + /* 258 */ "db_name", + /* 259 */ "dnode_endpoint", + /* 260 */ "not_exists_opt", + /* 261 */ "db_options", + /* 262 */ "exists_opt", + /* 263 */ "alter_db_options", + /* 264 */ "integer_list", + /* 265 */ "variable_list", + /* 266 */ "retention_list", + /* 267 */ "alter_db_option", + /* 268 */ "retention", + /* 269 */ "full_table_name", + /* 270 */ "column_def_list", + /* 271 */ "tags_def_opt", + /* 272 */ "table_options", + /* 273 */ "multi_create_clause", + /* 274 */ "tags_def", + /* 275 */ "multi_drop_clause", + /* 276 */ "alter_table_clause", + /* 277 */ "alter_table_options", + /* 278 */ "column_name", + /* 279 */ "type_name", + /* 280 */ "signed_literal", + /* 281 */ "create_subtable_clause", + /* 282 */ "specific_tags_opt", + /* 283 */ "literal_list", + /* 284 */ "drop_table_clause", + /* 285 */ "col_name_list", + /* 286 */ "table_name", + /* 287 */ "column_def", + /* 288 */ "duration_list", + /* 289 */ "rollup_func_list", + /* 290 */ "alter_table_option", + /* 291 */ "duration_literal", + /* 292 */ "rollup_func_name", + /* 293 */ "function_name", + /* 294 */ "col_name", + /* 295 */ "db_name_cond_opt", + /* 296 */ "like_pattern_opt", + /* 297 */ "table_name_cond", + /* 298 */ "from_db_opt", + /* 299 */ "index_name", + /* 300 */ "index_options", + /* 301 */ "func_list", + /* 302 */ "sliding_opt", + /* 303 */ "sma_stream_opt", + /* 304 */ "func", + /* 305 */ "expression_list", + /* 306 */ "stream_options", + /* 307 */ "topic_name", + /* 308 */ "query_expression", + /* 309 */ "cgroup_name", + /* 310 */ "analyze_opt", + /* 311 */ "explain_options", + /* 312 */ "agg_func_opt", + /* 313 */ "bufsize_opt", + /* 314 */ "stream_name", + /* 315 */ "into_opt", + /* 316 */ "dnode_list", + /* 317 */ "where_clause_opt", + /* 318 */ "signed", + /* 319 */ "literal_func", + /* 320 */ "table_alias", + /* 321 */ "column_alias", + /* 322 */ "expression", + /* 323 */ "pseudo_column", + /* 324 */ "column_reference", + /* 325 */ "function_expression", + /* 326 */ "subquery", + /* 327 */ "star_func", + /* 328 */ "star_func_para_list", + /* 329 */ "noarg_func", + /* 330 */ "other_para_list", + /* 331 */ "star_func_para", + /* 332 */ "predicate", + /* 333 */ "compare_op", + /* 334 */ "in_op", + /* 335 */ "in_predicate_value", + /* 336 */ "boolean_value_expression", + /* 337 */ "boolean_primary", + /* 338 */ "common_expression", + /* 339 */ "from_clause_opt", + /* 340 */ "table_reference_list", + /* 341 */ "table_reference", + /* 342 */ "table_primary", + /* 343 */ "joined_table", + /* 344 */ "alias_opt", + /* 345 */ "parenthesized_joined_table", + /* 346 */ "join_type", + /* 347 */ "search_condition", + /* 348 */ "query_specification", + /* 349 */ "set_quantifier_opt", + /* 350 */ "select_list", + /* 351 */ "partition_by_clause_opt", + /* 352 */ "range_opt", + /* 353 */ "every_opt", + /* 354 */ "fill_opt", + /* 355 */ "twindow_clause_opt", + /* 356 */ "group_by_clause_opt", + /* 357 */ "having_clause_opt", + /* 358 */ "select_sublist", + /* 359 */ "select_item", + /* 360 */ "fill_mode", + /* 361 */ "group_by_list", + /* 362 */ "query_expression_body", + /* 363 */ "order_by_clause_opt", + /* 364 */ "slimit_clause_opt", + /* 365 */ "limit_clause_opt", + /* 366 */ "query_primary", + /* 367 */ "sort_specification_list", + /* 368 */ "sort_specification", + /* 369 */ "ordering_specification_opt", + /* 370 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -1628,417 +1681,418 @@ static const char *const yyRuleName[] = { /* 63 */ "cmd ::= DROP DATABASE exists_opt db_name", /* 64 */ "cmd ::= USE db_name", /* 65 */ "cmd ::= ALTER DATABASE db_name alter_db_options", - /* 66 */ "not_exists_opt ::= IF NOT EXISTS", - /* 67 */ "not_exists_opt ::=", - /* 68 */ "exists_opt ::= IF EXISTS", - /* 69 */ "exists_opt ::=", - /* 70 */ "db_options ::=", - /* 71 */ "db_options ::= db_options BUFFER NK_INTEGER", - /* 72 */ "db_options ::= db_options CACHELAST NK_INTEGER", - /* 73 */ "db_options ::= db_options COMP NK_INTEGER", - /* 74 */ "db_options ::= db_options DURATION NK_INTEGER", - /* 75 */ "db_options ::= db_options DURATION NK_VARIABLE", - /* 76 */ "db_options ::= db_options FSYNC NK_INTEGER", - /* 77 */ "db_options ::= db_options MAXROWS NK_INTEGER", - /* 78 */ "db_options ::= db_options MINROWS NK_INTEGER", - /* 79 */ "db_options ::= db_options KEEP integer_list", - /* 80 */ "db_options ::= db_options KEEP variable_list", - /* 81 */ "db_options ::= db_options PAGES NK_INTEGER", - /* 82 */ "db_options ::= db_options PAGESIZE NK_INTEGER", - /* 83 */ "db_options ::= db_options PRECISION NK_STRING", - /* 84 */ "db_options ::= db_options REPLICA NK_INTEGER", - /* 85 */ "db_options ::= db_options STRICT NK_INTEGER", - /* 86 */ "db_options ::= db_options WAL NK_INTEGER", - /* 87 */ "db_options ::= db_options VGROUPS NK_INTEGER", - /* 88 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", - /* 89 */ "db_options ::= db_options RETENTIONS retention_list", - /* 90 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", - /* 91 */ "alter_db_options ::= alter_db_option", - /* 92 */ "alter_db_options ::= alter_db_options alter_db_option", - /* 93 */ "alter_db_option ::= BUFFER NK_INTEGER", - /* 94 */ "alter_db_option ::= CACHELAST NK_INTEGER", - /* 95 */ "alter_db_option ::= FSYNC NK_INTEGER", - /* 96 */ "alter_db_option ::= KEEP integer_list", - /* 97 */ "alter_db_option ::= KEEP variable_list", - /* 98 */ "alter_db_option ::= PAGES NK_INTEGER", - /* 99 */ "alter_db_option ::= REPLICA NK_INTEGER", - /* 100 */ "alter_db_option ::= STRICT NK_INTEGER", - /* 101 */ "alter_db_option ::= WAL NK_INTEGER", - /* 102 */ "integer_list ::= NK_INTEGER", - /* 103 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", - /* 104 */ "variable_list ::= NK_VARIABLE", - /* 105 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", - /* 106 */ "retention_list ::= retention", - /* 107 */ "retention_list ::= retention_list NK_COMMA retention", - /* 108 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", - /* 109 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", - /* 110 */ "cmd ::= CREATE TABLE multi_create_clause", - /* 111 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", - /* 112 */ "cmd ::= DROP TABLE multi_drop_clause", - /* 113 */ "cmd ::= DROP STABLE exists_opt full_table_name", - /* 114 */ "cmd ::= ALTER TABLE alter_table_clause", - /* 115 */ "cmd ::= ALTER STABLE alter_table_clause", - /* 116 */ "alter_table_clause ::= full_table_name alter_table_options", - /* 117 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", - /* 118 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", - /* 119 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", - /* 120 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", - /* 121 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", - /* 122 */ "alter_table_clause ::= full_table_name DROP TAG column_name", - /* 123 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", - /* 124 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", - /* 125 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", - /* 126 */ "multi_create_clause ::= create_subtable_clause", - /* 127 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", - /* 128 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options", - /* 129 */ "multi_drop_clause ::= drop_table_clause", - /* 130 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", - /* 131 */ "drop_table_clause ::= exists_opt full_table_name", - /* 132 */ "specific_tags_opt ::=", - /* 133 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", - /* 134 */ "full_table_name ::= table_name", - /* 135 */ "full_table_name ::= db_name NK_DOT table_name", - /* 136 */ "column_def_list ::= column_def", - /* 137 */ "column_def_list ::= column_def_list NK_COMMA column_def", - /* 138 */ "column_def ::= column_name type_name", - /* 139 */ "column_def ::= column_name type_name COMMENT NK_STRING", - /* 140 */ "type_name ::= BOOL", - /* 141 */ "type_name ::= TINYINT", - /* 142 */ "type_name ::= SMALLINT", - /* 143 */ "type_name ::= INT", - /* 144 */ "type_name ::= INTEGER", - /* 145 */ "type_name ::= BIGINT", - /* 146 */ "type_name ::= FLOAT", - /* 147 */ "type_name ::= DOUBLE", - /* 148 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", - /* 149 */ "type_name ::= TIMESTAMP", - /* 150 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", - /* 151 */ "type_name ::= TINYINT UNSIGNED", - /* 152 */ "type_name ::= SMALLINT UNSIGNED", - /* 153 */ "type_name ::= INT UNSIGNED", - /* 154 */ "type_name ::= BIGINT UNSIGNED", - /* 155 */ "type_name ::= JSON", - /* 156 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", - /* 157 */ "type_name ::= MEDIUMBLOB", - /* 158 */ "type_name ::= BLOB", - /* 159 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", - /* 160 */ "type_name ::= DECIMAL", - /* 161 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", - /* 162 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 163 */ "tags_def_opt ::=", - /* 164 */ "tags_def_opt ::= tags_def", - /* 165 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", - /* 166 */ "table_options ::=", - /* 167 */ "table_options ::= table_options COMMENT NK_STRING", - /* 168 */ "table_options ::= table_options MAX_DELAY duration_list", - /* 169 */ "table_options ::= table_options WATERMARK duration_list", - /* 170 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", - /* 171 */ "table_options ::= table_options TTL NK_INTEGER", - /* 172 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", - /* 173 */ "alter_table_options ::= alter_table_option", - /* 174 */ "alter_table_options ::= alter_table_options alter_table_option", - /* 175 */ "alter_table_option ::= COMMENT NK_STRING", - /* 176 */ "alter_table_option ::= TTL NK_INTEGER", - /* 177 */ "duration_list ::= duration_literal", - /* 178 */ "duration_list ::= duration_list NK_COMMA duration_literal", - /* 179 */ "rollup_func_list ::= rollup_func_name", - /* 180 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", - /* 181 */ "rollup_func_name ::= function_name", - /* 182 */ "rollup_func_name ::= FIRST", - /* 183 */ "rollup_func_name ::= LAST", - /* 184 */ "col_name_list ::= col_name", - /* 185 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 186 */ "col_name ::= column_name", - /* 187 */ "cmd ::= SHOW DNODES", - /* 188 */ "cmd ::= SHOW USERS", - /* 189 */ "cmd ::= SHOW DATABASES", - /* 190 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", - /* 191 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", - /* 192 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", - /* 193 */ "cmd ::= SHOW MNODES", - /* 194 */ "cmd ::= SHOW MODULES", - /* 195 */ "cmd ::= SHOW QNODES", - /* 196 */ "cmd ::= SHOW FUNCTIONS", - /* 197 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", - /* 198 */ "cmd ::= SHOW STREAMS", - /* 199 */ "cmd ::= SHOW ACCOUNTS", - /* 200 */ "cmd ::= SHOW APPS", - /* 201 */ "cmd ::= SHOW CONNECTIONS", - /* 202 */ "cmd ::= SHOW LICENCE", - /* 203 */ "cmd ::= SHOW GRANTS", - /* 204 */ "cmd ::= SHOW CREATE DATABASE db_name", - /* 205 */ "cmd ::= SHOW CREATE TABLE full_table_name", - /* 206 */ "cmd ::= SHOW CREATE STABLE full_table_name", - /* 207 */ "cmd ::= SHOW QUERIES", - /* 208 */ "cmd ::= SHOW SCORES", - /* 209 */ "cmd ::= SHOW TOPICS", - /* 210 */ "cmd ::= SHOW VARIABLES", - /* 211 */ "cmd ::= SHOW LOCAL VARIABLES", - /* 212 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES", - /* 213 */ "cmd ::= SHOW BNODES", - /* 214 */ "cmd ::= SHOW SNODES", - /* 215 */ "cmd ::= SHOW CLUSTER", - /* 216 */ "cmd ::= SHOW TRANSACTIONS", - /* 217 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", - /* 218 */ "cmd ::= SHOW CONSUMERS", - /* 219 */ "cmd ::= SHOW SUBSCRIPTIONS", - /* 220 */ "db_name_cond_opt ::=", - /* 221 */ "db_name_cond_opt ::= db_name NK_DOT", - /* 222 */ "like_pattern_opt ::=", - /* 223 */ "like_pattern_opt ::= LIKE NK_STRING", - /* 224 */ "table_name_cond ::= table_name", - /* 225 */ "from_db_opt ::=", - /* 226 */ "from_db_opt ::= FROM db_name", - /* 227 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", - /* 228 */ "cmd ::= DROP INDEX exists_opt index_name", - /* 229 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", - /* 230 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt", - /* 231 */ "func_list ::= func", - /* 232 */ "func_list ::= func_list NK_COMMA func", - /* 233 */ "func ::= function_name NK_LP expression_list NK_RP", - /* 234 */ "sma_stream_opt ::=", - /* 235 */ "sma_stream_opt ::= stream_options WATERMARK duration_literal", - /* 236 */ "sma_stream_opt ::= stream_options MAX_DELAY duration_literal", - /* 237 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", - /* 238 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name", - /* 239 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name", - /* 240 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name", - /* 241 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name", - /* 242 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 243 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", - /* 244 */ "cmd ::= DESC full_table_name", - /* 245 */ "cmd ::= DESCRIBE full_table_name", - /* 246 */ "cmd ::= RESET QUERY CACHE", - /* 247 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", - /* 248 */ "analyze_opt ::=", - /* 249 */ "analyze_opt ::= ANALYZE", - /* 250 */ "explain_options ::=", - /* 251 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 252 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 253 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", - /* 254 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", - /* 255 */ "cmd ::= DROP FUNCTION exists_opt function_name", - /* 256 */ "agg_func_opt ::=", - /* 257 */ "agg_func_opt ::= AGGREGATE", - /* 258 */ "bufsize_opt ::=", - /* 259 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", - /* 260 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression", - /* 261 */ "cmd ::= DROP STREAM exists_opt stream_name", - /* 262 */ "into_opt ::=", - /* 263 */ "into_opt ::= INTO full_table_name", - /* 264 */ "stream_options ::=", - /* 265 */ "stream_options ::= stream_options TRIGGER AT_ONCE", - /* 266 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", - /* 267 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", - /* 268 */ "stream_options ::= stream_options WATERMARK duration_literal", - /* 269 */ "cmd ::= KILL CONNECTION NK_INTEGER", - /* 270 */ "cmd ::= KILL QUERY NK_STRING", - /* 271 */ "cmd ::= KILL TRANSACTION NK_INTEGER", - /* 272 */ "cmd ::= BALANCE VGROUP", - /* 273 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", - /* 274 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", - /* 275 */ "cmd ::= SPLIT VGROUP NK_INTEGER", - /* 276 */ "dnode_list ::= DNODE NK_INTEGER", - /* 277 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", - /* 278 */ "cmd ::= SYNCDB db_name REPLICA", - /* 279 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", - /* 280 */ "cmd ::= query_expression", - /* 281 */ "literal ::= NK_INTEGER", - /* 282 */ "literal ::= NK_FLOAT", - /* 283 */ "literal ::= NK_STRING", - /* 284 */ "literal ::= NK_BOOL", - /* 285 */ "literal ::= TIMESTAMP NK_STRING", - /* 286 */ "literal ::= duration_literal", - /* 287 */ "literal ::= NULL", - /* 288 */ "literal ::= NK_QUESTION", - /* 289 */ "duration_literal ::= NK_VARIABLE", - /* 290 */ "signed ::= NK_INTEGER", - /* 291 */ "signed ::= NK_PLUS NK_INTEGER", - /* 292 */ "signed ::= NK_MINUS NK_INTEGER", - /* 293 */ "signed ::= NK_FLOAT", - /* 294 */ "signed ::= NK_PLUS NK_FLOAT", - /* 295 */ "signed ::= NK_MINUS NK_FLOAT", - /* 296 */ "signed_literal ::= signed", - /* 297 */ "signed_literal ::= NK_STRING", - /* 298 */ "signed_literal ::= NK_BOOL", - /* 299 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 300 */ "signed_literal ::= duration_literal", - /* 301 */ "signed_literal ::= NULL", - /* 302 */ "signed_literal ::= literal_func", - /* 303 */ "literal_list ::= signed_literal", - /* 304 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 305 */ "db_name ::= NK_ID", - /* 306 */ "table_name ::= NK_ID", - /* 307 */ "column_name ::= NK_ID", - /* 308 */ "function_name ::= NK_ID", - /* 309 */ "table_alias ::= NK_ID", - /* 310 */ "column_alias ::= NK_ID", - /* 311 */ "user_name ::= NK_ID", - /* 312 */ "index_name ::= NK_ID", - /* 313 */ "topic_name ::= NK_ID", - /* 314 */ "stream_name ::= NK_ID", - /* 315 */ "cgroup_name ::= NK_ID", - /* 316 */ "expression ::= literal", - /* 317 */ "expression ::= pseudo_column", - /* 318 */ "expression ::= column_reference", - /* 319 */ "expression ::= function_expression", - /* 320 */ "expression ::= subquery", - /* 321 */ "expression ::= NK_LP expression NK_RP", - /* 322 */ "expression ::= NK_PLUS expression", - /* 323 */ "expression ::= NK_MINUS expression", - /* 324 */ "expression ::= expression NK_PLUS expression", - /* 325 */ "expression ::= expression NK_MINUS expression", - /* 326 */ "expression ::= expression NK_STAR expression", - /* 327 */ "expression ::= expression NK_SLASH expression", - /* 328 */ "expression ::= expression NK_REM expression", - /* 329 */ "expression ::= column_reference NK_ARROW NK_STRING", - /* 330 */ "expression ::= expression NK_BITAND expression", - /* 331 */ "expression ::= expression NK_BITOR expression", - /* 332 */ "expression_list ::= expression", - /* 333 */ "expression_list ::= expression_list NK_COMMA expression", - /* 334 */ "column_reference ::= column_name", - /* 335 */ "column_reference ::= table_name NK_DOT column_name", - /* 336 */ "pseudo_column ::= ROWTS", - /* 337 */ "pseudo_column ::= TBNAME", - /* 338 */ "pseudo_column ::= table_name NK_DOT TBNAME", - /* 339 */ "pseudo_column ::= QSTARTTS", - /* 340 */ "pseudo_column ::= QENDTS", - /* 341 */ "pseudo_column ::= WSTARTTS", - /* 342 */ "pseudo_column ::= WENDTS", - /* 343 */ "pseudo_column ::= WDURATION", - /* 344 */ "function_expression ::= function_name NK_LP expression_list NK_RP", - /* 345 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", - /* 346 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP", - /* 347 */ "function_expression ::= literal_func", - /* 348 */ "literal_func ::= noarg_func NK_LP NK_RP", - /* 349 */ "literal_func ::= NOW", - /* 350 */ "noarg_func ::= NOW", - /* 351 */ "noarg_func ::= TODAY", - /* 352 */ "noarg_func ::= TIMEZONE", - /* 353 */ "star_func ::= COUNT", - /* 354 */ "star_func ::= FIRST", - /* 355 */ "star_func ::= LAST", - /* 356 */ "star_func ::= LAST_ROW", - /* 357 */ "star_func_para_list ::= NK_STAR", - /* 358 */ "star_func_para_list ::= other_para_list", - /* 359 */ "other_para_list ::= star_func_para", - /* 360 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", - /* 361 */ "star_func_para ::= expression", - /* 362 */ "star_func_para ::= table_name NK_DOT NK_STAR", - /* 363 */ "predicate ::= expression compare_op expression", - /* 364 */ "predicate ::= expression BETWEEN expression AND expression", - /* 365 */ "predicate ::= expression NOT BETWEEN expression AND expression", - /* 366 */ "predicate ::= expression IS NULL", - /* 367 */ "predicate ::= expression IS NOT NULL", - /* 368 */ "predicate ::= expression in_op in_predicate_value", - /* 369 */ "compare_op ::= NK_LT", - /* 370 */ "compare_op ::= NK_GT", - /* 371 */ "compare_op ::= NK_LE", - /* 372 */ "compare_op ::= NK_GE", - /* 373 */ "compare_op ::= NK_NE", - /* 374 */ "compare_op ::= NK_EQ", - /* 375 */ "compare_op ::= LIKE", - /* 376 */ "compare_op ::= NOT LIKE", - /* 377 */ "compare_op ::= MATCH", - /* 378 */ "compare_op ::= NMATCH", - /* 379 */ "compare_op ::= CONTAINS", - /* 380 */ "in_op ::= IN", - /* 381 */ "in_op ::= NOT IN", - /* 382 */ "in_predicate_value ::= NK_LP expression_list NK_RP", - /* 383 */ "boolean_value_expression ::= boolean_primary", - /* 384 */ "boolean_value_expression ::= NOT boolean_primary", - /* 385 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 386 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 387 */ "boolean_primary ::= predicate", - /* 388 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 389 */ "common_expression ::= expression", - /* 390 */ "common_expression ::= boolean_value_expression", - /* 391 */ "from_clause_opt ::=", - /* 392 */ "from_clause_opt ::= FROM table_reference_list", - /* 393 */ "table_reference_list ::= table_reference", - /* 394 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 395 */ "table_reference ::= table_primary", - /* 396 */ "table_reference ::= joined_table", - /* 397 */ "table_primary ::= table_name alias_opt", - /* 398 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 399 */ "table_primary ::= subquery alias_opt", - /* 400 */ "table_primary ::= parenthesized_joined_table", - /* 401 */ "alias_opt ::=", - /* 402 */ "alias_opt ::= table_alias", - /* 403 */ "alias_opt ::= AS table_alias", - /* 404 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 405 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 406 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 407 */ "join_type ::=", - /* 408 */ "join_type ::= INNER", - /* 409 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt", - /* 410 */ "set_quantifier_opt ::=", - /* 411 */ "set_quantifier_opt ::= DISTINCT", - /* 412 */ "set_quantifier_opt ::= ALL", - /* 413 */ "select_list ::= NK_STAR", - /* 414 */ "select_list ::= select_sublist", - /* 415 */ "select_sublist ::= select_item", - /* 416 */ "select_sublist ::= select_sublist NK_COMMA select_item", - /* 417 */ "select_item ::= common_expression", - /* 418 */ "select_item ::= common_expression column_alias", - /* 419 */ "select_item ::= common_expression AS column_alias", - /* 420 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 421 */ "where_clause_opt ::=", - /* 422 */ "where_clause_opt ::= WHERE search_condition", - /* 423 */ "partition_by_clause_opt ::=", - /* 424 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 425 */ "twindow_clause_opt ::=", - /* 426 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 427 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", - /* 428 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 429 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 430 */ "sliding_opt ::=", - /* 431 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 432 */ "fill_opt ::=", - /* 433 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 434 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 435 */ "fill_mode ::= NONE", - /* 436 */ "fill_mode ::= PREV", - /* 437 */ "fill_mode ::= NULL", - /* 438 */ "fill_mode ::= LINEAR", - /* 439 */ "fill_mode ::= NEXT", - /* 440 */ "group_by_clause_opt ::=", - /* 441 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 442 */ "group_by_list ::= expression", - /* 443 */ "group_by_list ::= group_by_list NK_COMMA expression", - /* 444 */ "having_clause_opt ::=", - /* 445 */ "having_clause_opt ::= HAVING search_condition", - /* 446 */ "range_opt ::=", - /* 447 */ "range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP", - /* 448 */ "every_opt ::=", - /* 449 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", - /* 450 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 451 */ "query_expression_body ::= query_primary", - /* 452 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 453 */ "query_expression_body ::= query_expression_body UNION query_expression_body", - /* 454 */ "query_primary ::= query_specification", - /* 455 */ "query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP", - /* 456 */ "order_by_clause_opt ::=", - /* 457 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 458 */ "slimit_clause_opt ::=", - /* 459 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 460 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 461 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 462 */ "limit_clause_opt ::=", - /* 463 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 464 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 465 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 466 */ "subquery ::= NK_LP query_expression NK_RP", - /* 467 */ "search_condition ::= common_expression", - /* 468 */ "sort_specification_list ::= sort_specification", - /* 469 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 470 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 471 */ "ordering_specification_opt ::=", - /* 472 */ "ordering_specification_opt ::= ASC", - /* 473 */ "ordering_specification_opt ::= DESC", - /* 474 */ "null_ordering_opt ::=", - /* 475 */ "null_ordering_opt ::= NULLS FIRST", - /* 476 */ "null_ordering_opt ::= NULLS LAST", + /* 66 */ "cmd ::= FLUSH DATABASE db_name", + /* 67 */ "not_exists_opt ::= IF NOT EXISTS", + /* 68 */ "not_exists_opt ::=", + /* 69 */ "exists_opt ::= IF EXISTS", + /* 70 */ "exists_opt ::=", + /* 71 */ "db_options ::=", + /* 72 */ "db_options ::= db_options BUFFER NK_INTEGER", + /* 73 */ "db_options ::= db_options CACHELAST NK_INTEGER", + /* 74 */ "db_options ::= db_options COMP NK_INTEGER", + /* 75 */ "db_options ::= db_options DURATION NK_INTEGER", + /* 76 */ "db_options ::= db_options DURATION NK_VARIABLE", + /* 77 */ "db_options ::= db_options FSYNC NK_INTEGER", + /* 78 */ "db_options ::= db_options MAXROWS NK_INTEGER", + /* 79 */ "db_options ::= db_options MINROWS NK_INTEGER", + /* 80 */ "db_options ::= db_options KEEP integer_list", + /* 81 */ "db_options ::= db_options KEEP variable_list", + /* 82 */ "db_options ::= db_options PAGES NK_INTEGER", + /* 83 */ "db_options ::= db_options PAGESIZE NK_INTEGER", + /* 84 */ "db_options ::= db_options PRECISION NK_STRING", + /* 85 */ "db_options ::= db_options REPLICA NK_INTEGER", + /* 86 */ "db_options ::= db_options STRICT NK_INTEGER", + /* 87 */ "db_options ::= db_options WAL NK_INTEGER", + /* 88 */ "db_options ::= db_options VGROUPS NK_INTEGER", + /* 89 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", + /* 90 */ "db_options ::= db_options RETENTIONS retention_list", + /* 91 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", + /* 92 */ "alter_db_options ::= alter_db_option", + /* 93 */ "alter_db_options ::= alter_db_options alter_db_option", + /* 94 */ "alter_db_option ::= BUFFER NK_INTEGER", + /* 95 */ "alter_db_option ::= CACHELAST NK_INTEGER", + /* 96 */ "alter_db_option ::= FSYNC NK_INTEGER", + /* 97 */ "alter_db_option ::= KEEP integer_list", + /* 98 */ "alter_db_option ::= KEEP variable_list", + /* 99 */ "alter_db_option ::= PAGES NK_INTEGER", + /* 100 */ "alter_db_option ::= REPLICA NK_INTEGER", + /* 101 */ "alter_db_option ::= STRICT NK_INTEGER", + /* 102 */ "alter_db_option ::= WAL NK_INTEGER", + /* 103 */ "integer_list ::= NK_INTEGER", + /* 104 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", + /* 105 */ "variable_list ::= NK_VARIABLE", + /* 106 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", + /* 107 */ "retention_list ::= retention", + /* 108 */ "retention_list ::= retention_list NK_COMMA retention", + /* 109 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", + /* 110 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", + /* 111 */ "cmd ::= CREATE TABLE multi_create_clause", + /* 112 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", + /* 113 */ "cmd ::= DROP TABLE multi_drop_clause", + /* 114 */ "cmd ::= DROP STABLE exists_opt full_table_name", + /* 115 */ "cmd ::= ALTER TABLE alter_table_clause", + /* 116 */ "cmd ::= ALTER STABLE alter_table_clause", + /* 117 */ "alter_table_clause ::= full_table_name alter_table_options", + /* 118 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", + /* 119 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", + /* 120 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", + /* 121 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", + /* 122 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", + /* 123 */ "alter_table_clause ::= full_table_name DROP TAG column_name", + /* 124 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", + /* 125 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", + /* 126 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", + /* 127 */ "multi_create_clause ::= create_subtable_clause", + /* 128 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", + /* 129 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options", + /* 130 */ "multi_drop_clause ::= drop_table_clause", + /* 131 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", + /* 132 */ "drop_table_clause ::= exists_opt full_table_name", + /* 133 */ "specific_tags_opt ::=", + /* 134 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", + /* 135 */ "full_table_name ::= table_name", + /* 136 */ "full_table_name ::= db_name NK_DOT table_name", + /* 137 */ "column_def_list ::= column_def", + /* 138 */ "column_def_list ::= column_def_list NK_COMMA column_def", + /* 139 */ "column_def ::= column_name type_name", + /* 140 */ "column_def ::= column_name type_name COMMENT NK_STRING", + /* 141 */ "type_name ::= BOOL", + /* 142 */ "type_name ::= TINYINT", + /* 143 */ "type_name ::= SMALLINT", + /* 144 */ "type_name ::= INT", + /* 145 */ "type_name ::= INTEGER", + /* 146 */ "type_name ::= BIGINT", + /* 147 */ "type_name ::= FLOAT", + /* 148 */ "type_name ::= DOUBLE", + /* 149 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", + /* 150 */ "type_name ::= TIMESTAMP", + /* 151 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", + /* 152 */ "type_name ::= TINYINT UNSIGNED", + /* 153 */ "type_name ::= SMALLINT UNSIGNED", + /* 154 */ "type_name ::= INT UNSIGNED", + /* 155 */ "type_name ::= BIGINT UNSIGNED", + /* 156 */ "type_name ::= JSON", + /* 157 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", + /* 158 */ "type_name ::= MEDIUMBLOB", + /* 159 */ "type_name ::= BLOB", + /* 160 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", + /* 161 */ "type_name ::= DECIMAL", + /* 162 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", + /* 163 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 164 */ "tags_def_opt ::=", + /* 165 */ "tags_def_opt ::= tags_def", + /* 166 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", + /* 167 */ "table_options ::=", + /* 168 */ "table_options ::= table_options COMMENT NK_STRING", + /* 169 */ "table_options ::= table_options MAX_DELAY duration_list", + /* 170 */ "table_options ::= table_options WATERMARK duration_list", + /* 171 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", + /* 172 */ "table_options ::= table_options TTL NK_INTEGER", + /* 173 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 174 */ "alter_table_options ::= alter_table_option", + /* 175 */ "alter_table_options ::= alter_table_options alter_table_option", + /* 176 */ "alter_table_option ::= COMMENT NK_STRING", + /* 177 */ "alter_table_option ::= TTL NK_INTEGER", + /* 178 */ "duration_list ::= duration_literal", + /* 179 */ "duration_list ::= duration_list NK_COMMA duration_literal", + /* 180 */ "rollup_func_list ::= rollup_func_name", + /* 181 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", + /* 182 */ "rollup_func_name ::= function_name", + /* 183 */ "rollup_func_name ::= FIRST", + /* 184 */ "rollup_func_name ::= LAST", + /* 185 */ "col_name_list ::= col_name", + /* 186 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 187 */ "col_name ::= column_name", + /* 188 */ "cmd ::= SHOW DNODES", + /* 189 */ "cmd ::= SHOW USERS", + /* 190 */ "cmd ::= SHOW DATABASES", + /* 191 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", + /* 192 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", + /* 193 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", + /* 194 */ "cmd ::= SHOW MNODES", + /* 195 */ "cmd ::= SHOW MODULES", + /* 196 */ "cmd ::= SHOW QNODES", + /* 197 */ "cmd ::= SHOW FUNCTIONS", + /* 198 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", + /* 199 */ "cmd ::= SHOW STREAMS", + /* 200 */ "cmd ::= SHOW ACCOUNTS", + /* 201 */ "cmd ::= SHOW APPS", + /* 202 */ "cmd ::= SHOW CONNECTIONS", + /* 203 */ "cmd ::= SHOW LICENCE", + /* 204 */ "cmd ::= SHOW GRANTS", + /* 205 */ "cmd ::= SHOW CREATE DATABASE db_name", + /* 206 */ "cmd ::= SHOW CREATE TABLE full_table_name", + /* 207 */ "cmd ::= SHOW CREATE STABLE full_table_name", + /* 208 */ "cmd ::= SHOW QUERIES", + /* 209 */ "cmd ::= SHOW SCORES", + /* 210 */ "cmd ::= SHOW TOPICS", + /* 211 */ "cmd ::= SHOW VARIABLES", + /* 212 */ "cmd ::= SHOW LOCAL VARIABLES", + /* 213 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES", + /* 214 */ "cmd ::= SHOW BNODES", + /* 215 */ "cmd ::= SHOW SNODES", + /* 216 */ "cmd ::= SHOW CLUSTER", + /* 217 */ "cmd ::= SHOW TRANSACTIONS", + /* 218 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", + /* 219 */ "cmd ::= SHOW CONSUMERS", + /* 220 */ "cmd ::= SHOW SUBSCRIPTIONS", + /* 221 */ "db_name_cond_opt ::=", + /* 222 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 223 */ "like_pattern_opt ::=", + /* 224 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 225 */ "table_name_cond ::= table_name", + /* 226 */ "from_db_opt ::=", + /* 227 */ "from_db_opt ::= FROM db_name", + /* 228 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", + /* 229 */ "cmd ::= DROP INDEX exists_opt index_name", + /* 230 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", + /* 231 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt", + /* 232 */ "func_list ::= func", + /* 233 */ "func_list ::= func_list NK_COMMA func", + /* 234 */ "func ::= function_name NK_LP expression_list NK_RP", + /* 235 */ "sma_stream_opt ::=", + /* 236 */ "sma_stream_opt ::= stream_options WATERMARK duration_literal", + /* 237 */ "sma_stream_opt ::= stream_options MAX_DELAY duration_literal", + /* 238 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", + /* 239 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name", + /* 240 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name", + /* 241 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name", + /* 242 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name", + /* 243 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 244 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", + /* 245 */ "cmd ::= DESC full_table_name", + /* 246 */ "cmd ::= DESCRIBE full_table_name", + /* 247 */ "cmd ::= RESET QUERY CACHE", + /* 248 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", + /* 249 */ "analyze_opt ::=", + /* 250 */ "analyze_opt ::= ANALYZE", + /* 251 */ "explain_options ::=", + /* 252 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 253 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 254 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", + /* 255 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", + /* 256 */ "cmd ::= DROP FUNCTION exists_opt function_name", + /* 257 */ "agg_func_opt ::=", + /* 258 */ "agg_func_opt ::= AGGREGATE", + /* 259 */ "bufsize_opt ::=", + /* 260 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", + /* 261 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression", + /* 262 */ "cmd ::= DROP STREAM exists_opt stream_name", + /* 263 */ "into_opt ::=", + /* 264 */ "into_opt ::= INTO full_table_name", + /* 265 */ "stream_options ::=", + /* 266 */ "stream_options ::= stream_options TRIGGER AT_ONCE", + /* 267 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", + /* 268 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", + /* 269 */ "stream_options ::= stream_options WATERMARK duration_literal", + /* 270 */ "cmd ::= KILL CONNECTION NK_INTEGER", + /* 271 */ "cmd ::= KILL QUERY NK_STRING", + /* 272 */ "cmd ::= KILL TRANSACTION NK_INTEGER", + /* 273 */ "cmd ::= BALANCE VGROUP", + /* 274 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", + /* 275 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", + /* 276 */ "cmd ::= SPLIT VGROUP NK_INTEGER", + /* 277 */ "dnode_list ::= DNODE NK_INTEGER", + /* 278 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", + /* 279 */ "cmd ::= SYNCDB db_name REPLICA", + /* 280 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", + /* 281 */ "cmd ::= query_expression", + /* 282 */ "literal ::= NK_INTEGER", + /* 283 */ "literal ::= NK_FLOAT", + /* 284 */ "literal ::= NK_STRING", + /* 285 */ "literal ::= NK_BOOL", + /* 286 */ "literal ::= TIMESTAMP NK_STRING", + /* 287 */ "literal ::= duration_literal", + /* 288 */ "literal ::= NULL", + /* 289 */ "literal ::= NK_QUESTION", + /* 290 */ "duration_literal ::= NK_VARIABLE", + /* 291 */ "signed ::= NK_INTEGER", + /* 292 */ "signed ::= NK_PLUS NK_INTEGER", + /* 293 */ "signed ::= NK_MINUS NK_INTEGER", + /* 294 */ "signed ::= NK_FLOAT", + /* 295 */ "signed ::= NK_PLUS NK_FLOAT", + /* 296 */ "signed ::= NK_MINUS NK_FLOAT", + /* 297 */ "signed_literal ::= signed", + /* 298 */ "signed_literal ::= NK_STRING", + /* 299 */ "signed_literal ::= NK_BOOL", + /* 300 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 301 */ "signed_literal ::= duration_literal", + /* 302 */ "signed_literal ::= NULL", + /* 303 */ "signed_literal ::= literal_func", + /* 304 */ "literal_list ::= signed_literal", + /* 305 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 306 */ "db_name ::= NK_ID", + /* 307 */ "table_name ::= NK_ID", + /* 308 */ "column_name ::= NK_ID", + /* 309 */ "function_name ::= NK_ID", + /* 310 */ "table_alias ::= NK_ID", + /* 311 */ "column_alias ::= NK_ID", + /* 312 */ "user_name ::= NK_ID", + /* 313 */ "index_name ::= NK_ID", + /* 314 */ "topic_name ::= NK_ID", + /* 315 */ "stream_name ::= NK_ID", + /* 316 */ "cgroup_name ::= NK_ID", + /* 317 */ "expression ::= literal", + /* 318 */ "expression ::= pseudo_column", + /* 319 */ "expression ::= column_reference", + /* 320 */ "expression ::= function_expression", + /* 321 */ "expression ::= subquery", + /* 322 */ "expression ::= NK_LP expression NK_RP", + /* 323 */ "expression ::= NK_PLUS expression", + /* 324 */ "expression ::= NK_MINUS expression", + /* 325 */ "expression ::= expression NK_PLUS expression", + /* 326 */ "expression ::= expression NK_MINUS expression", + /* 327 */ "expression ::= expression NK_STAR expression", + /* 328 */ "expression ::= expression NK_SLASH expression", + /* 329 */ "expression ::= expression NK_REM expression", + /* 330 */ "expression ::= column_reference NK_ARROW NK_STRING", + /* 331 */ "expression ::= expression NK_BITAND expression", + /* 332 */ "expression ::= expression NK_BITOR expression", + /* 333 */ "expression_list ::= expression", + /* 334 */ "expression_list ::= expression_list NK_COMMA expression", + /* 335 */ "column_reference ::= column_name", + /* 336 */ "column_reference ::= table_name NK_DOT column_name", + /* 337 */ "pseudo_column ::= ROWTS", + /* 338 */ "pseudo_column ::= TBNAME", + /* 339 */ "pseudo_column ::= table_name NK_DOT TBNAME", + /* 340 */ "pseudo_column ::= QSTARTTS", + /* 341 */ "pseudo_column ::= QENDTS", + /* 342 */ "pseudo_column ::= WSTARTTS", + /* 343 */ "pseudo_column ::= WENDTS", + /* 344 */ "pseudo_column ::= WDURATION", + /* 345 */ "function_expression ::= function_name NK_LP expression_list NK_RP", + /* 346 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", + /* 347 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP", + /* 348 */ "function_expression ::= literal_func", + /* 349 */ "literal_func ::= noarg_func NK_LP NK_RP", + /* 350 */ "literal_func ::= NOW", + /* 351 */ "noarg_func ::= NOW", + /* 352 */ "noarg_func ::= TODAY", + /* 353 */ "noarg_func ::= TIMEZONE", + /* 354 */ "star_func ::= COUNT", + /* 355 */ "star_func ::= FIRST", + /* 356 */ "star_func ::= LAST", + /* 357 */ "star_func ::= LAST_ROW", + /* 358 */ "star_func_para_list ::= NK_STAR", + /* 359 */ "star_func_para_list ::= other_para_list", + /* 360 */ "other_para_list ::= star_func_para", + /* 361 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", + /* 362 */ "star_func_para ::= expression", + /* 363 */ "star_func_para ::= table_name NK_DOT NK_STAR", + /* 364 */ "predicate ::= expression compare_op expression", + /* 365 */ "predicate ::= expression BETWEEN expression AND expression", + /* 366 */ "predicate ::= expression NOT BETWEEN expression AND expression", + /* 367 */ "predicate ::= expression IS NULL", + /* 368 */ "predicate ::= expression IS NOT NULL", + /* 369 */ "predicate ::= expression in_op in_predicate_value", + /* 370 */ "compare_op ::= NK_LT", + /* 371 */ "compare_op ::= NK_GT", + /* 372 */ "compare_op ::= NK_LE", + /* 373 */ "compare_op ::= NK_GE", + /* 374 */ "compare_op ::= NK_NE", + /* 375 */ "compare_op ::= NK_EQ", + /* 376 */ "compare_op ::= LIKE", + /* 377 */ "compare_op ::= NOT LIKE", + /* 378 */ "compare_op ::= MATCH", + /* 379 */ "compare_op ::= NMATCH", + /* 380 */ "compare_op ::= CONTAINS", + /* 381 */ "in_op ::= IN", + /* 382 */ "in_op ::= NOT IN", + /* 383 */ "in_predicate_value ::= NK_LP expression_list NK_RP", + /* 384 */ "boolean_value_expression ::= boolean_primary", + /* 385 */ "boolean_value_expression ::= NOT boolean_primary", + /* 386 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 387 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 388 */ "boolean_primary ::= predicate", + /* 389 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 390 */ "common_expression ::= expression", + /* 391 */ "common_expression ::= boolean_value_expression", + /* 392 */ "from_clause_opt ::=", + /* 393 */ "from_clause_opt ::= FROM table_reference_list", + /* 394 */ "table_reference_list ::= table_reference", + /* 395 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 396 */ "table_reference ::= table_primary", + /* 397 */ "table_reference ::= joined_table", + /* 398 */ "table_primary ::= table_name alias_opt", + /* 399 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 400 */ "table_primary ::= subquery alias_opt", + /* 401 */ "table_primary ::= parenthesized_joined_table", + /* 402 */ "alias_opt ::=", + /* 403 */ "alias_opt ::= table_alias", + /* 404 */ "alias_opt ::= AS table_alias", + /* 405 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 406 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 407 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 408 */ "join_type ::=", + /* 409 */ "join_type ::= INNER", + /* 410 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt", + /* 411 */ "set_quantifier_opt ::=", + /* 412 */ "set_quantifier_opt ::= DISTINCT", + /* 413 */ "set_quantifier_opt ::= ALL", + /* 414 */ "select_list ::= NK_STAR", + /* 415 */ "select_list ::= select_sublist", + /* 416 */ "select_sublist ::= select_item", + /* 417 */ "select_sublist ::= select_sublist NK_COMMA select_item", + /* 418 */ "select_item ::= common_expression", + /* 419 */ "select_item ::= common_expression column_alias", + /* 420 */ "select_item ::= common_expression AS column_alias", + /* 421 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 422 */ "where_clause_opt ::=", + /* 423 */ "where_clause_opt ::= WHERE search_condition", + /* 424 */ "partition_by_clause_opt ::=", + /* 425 */ "partition_by_clause_opt ::= PARTITION BY expression_list", + /* 426 */ "twindow_clause_opt ::=", + /* 427 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 428 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", + /* 429 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 430 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 431 */ "sliding_opt ::=", + /* 432 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 433 */ "fill_opt ::=", + /* 434 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 435 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 436 */ "fill_mode ::= NONE", + /* 437 */ "fill_mode ::= PREV", + /* 438 */ "fill_mode ::= NULL", + /* 439 */ "fill_mode ::= LINEAR", + /* 440 */ "fill_mode ::= NEXT", + /* 441 */ "group_by_clause_opt ::=", + /* 442 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 443 */ "group_by_list ::= expression", + /* 444 */ "group_by_list ::= group_by_list NK_COMMA expression", + /* 445 */ "having_clause_opt ::=", + /* 446 */ "having_clause_opt ::= HAVING search_condition", + /* 447 */ "range_opt ::=", + /* 448 */ "range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP", + /* 449 */ "every_opt ::=", + /* 450 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", + /* 451 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 452 */ "query_expression_body ::= query_primary", + /* 453 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 454 */ "query_expression_body ::= query_expression_body UNION query_expression_body", + /* 455 */ "query_primary ::= query_specification", + /* 456 */ "query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP", + /* 457 */ "order_by_clause_opt ::=", + /* 458 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 459 */ "slimit_clause_opt ::=", + /* 460 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 461 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 462 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 463 */ "limit_clause_opt ::=", + /* 464 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 465 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 466 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 467 */ "subquery ::= NK_LP query_expression NK_RP", + /* 468 */ "search_condition ::= common_expression", + /* 469 */ "sort_specification_list ::= sort_specification", + /* 470 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 471 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 472 */ "ordering_specification_opt ::=", + /* 473 */ "ordering_specification_opt ::= ASC", + /* 474 */ "ordering_specification_opt ::= DESC", + /* 475 */ "null_ordering_opt ::=", + /* 476 */ "null_ordering_opt ::= NULLS FIRST", + /* 477 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -2165,182 +2219,182 @@ static void yy_destructor( */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ - case 246: /* cmd */ - case 249: /* literal */ - case 260: /* db_options */ - case 262: /* alter_db_options */ - case 267: /* retention */ - case 268: /* full_table_name */ - case 271: /* table_options */ - case 275: /* alter_table_clause */ - case 276: /* alter_table_options */ - case 279: /* signed_literal */ - case 280: /* create_subtable_clause */ - case 283: /* drop_table_clause */ - case 286: /* column_def */ - case 290: /* duration_literal */ - case 291: /* rollup_func_name */ - case 293: /* col_name */ - case 294: /* db_name_cond_opt */ - case 295: /* like_pattern_opt */ - case 296: /* table_name_cond */ - case 297: /* from_db_opt */ - case 299: /* index_options */ - case 301: /* sliding_opt */ - case 302: /* sma_stream_opt */ - case 303: /* func */ - case 305: /* stream_options */ - case 307: /* query_expression */ - case 310: /* explain_options */ - case 314: /* into_opt */ - case 316: /* where_clause_opt */ - case 317: /* signed */ - case 318: /* literal_func */ - case 321: /* expression */ - case 322: /* pseudo_column */ - case 323: /* column_reference */ - case 324: /* function_expression */ - case 325: /* subquery */ - case 330: /* star_func_para */ - case 331: /* predicate */ - case 334: /* in_predicate_value */ - case 335: /* boolean_value_expression */ - case 336: /* boolean_primary */ - case 337: /* common_expression */ - case 338: /* from_clause_opt */ - case 339: /* table_reference_list */ - case 340: /* table_reference */ - case 341: /* table_primary */ - case 342: /* joined_table */ - case 344: /* parenthesized_joined_table */ - case 346: /* search_condition */ - case 347: /* query_specification */ - case 351: /* range_opt */ - case 352: /* every_opt */ - case 353: /* fill_opt */ - case 354: /* twindow_clause_opt */ - case 356: /* having_clause_opt */ - case 358: /* select_item */ - case 361: /* query_expression_body */ - case 363: /* slimit_clause_opt */ - case 364: /* limit_clause_opt */ - case 365: /* query_primary */ - case 367: /* sort_specification */ + case 247: /* cmd */ + case 250: /* literal */ + case 261: /* db_options */ + case 263: /* alter_db_options */ + case 268: /* retention */ + case 269: /* full_table_name */ + case 272: /* table_options */ + case 276: /* alter_table_clause */ + case 277: /* alter_table_options */ + case 280: /* signed_literal */ + case 281: /* create_subtable_clause */ + case 284: /* drop_table_clause */ + case 287: /* column_def */ + case 291: /* duration_literal */ + case 292: /* rollup_func_name */ + case 294: /* col_name */ + case 295: /* db_name_cond_opt */ + case 296: /* like_pattern_opt */ + case 297: /* table_name_cond */ + case 298: /* from_db_opt */ + case 300: /* index_options */ + case 302: /* sliding_opt */ + case 303: /* sma_stream_opt */ + case 304: /* func */ + case 306: /* stream_options */ + case 308: /* query_expression */ + case 311: /* explain_options */ + case 315: /* into_opt */ + case 317: /* where_clause_opt */ + case 318: /* signed */ + case 319: /* literal_func */ + case 322: /* expression */ + case 323: /* pseudo_column */ + case 324: /* column_reference */ + case 325: /* function_expression */ + case 326: /* subquery */ + case 331: /* star_func_para */ + case 332: /* predicate */ + case 335: /* in_predicate_value */ + case 336: /* boolean_value_expression */ + case 337: /* boolean_primary */ + case 338: /* common_expression */ + case 339: /* from_clause_opt */ + case 340: /* table_reference_list */ + case 341: /* table_reference */ + case 342: /* table_primary */ + case 343: /* joined_table */ + case 345: /* parenthesized_joined_table */ + case 347: /* search_condition */ + case 348: /* query_specification */ + case 352: /* range_opt */ + case 353: /* every_opt */ + case 354: /* fill_opt */ + case 355: /* twindow_clause_opt */ + case 357: /* having_clause_opt */ + case 359: /* select_item */ + case 362: /* query_expression_body */ + case 364: /* slimit_clause_opt */ + case 365: /* limit_clause_opt */ + case 366: /* query_primary */ + case 368: /* sort_specification */ { - nodesDestroyNode((yypminor->yy452)); + nodesDestroyNode((yypminor->yy714)); } break; - case 247: /* account_options */ - case 248: /* alter_account_options */ - case 250: /* alter_account_option */ - case 312: /* bufsize_opt */ + case 248: /* account_options */ + case 249: /* alter_account_options */ + case 251: /* alter_account_option */ + case 313: /* bufsize_opt */ { } break; - case 251: /* user_name */ - case 254: /* priv_level */ - case 257: /* db_name */ - case 258: /* dnode_endpoint */ - case 277: /* column_name */ - case 285: /* table_name */ - case 292: /* function_name */ - case 298: /* index_name */ - case 306: /* topic_name */ - case 308: /* cgroup_name */ - case 313: /* stream_name */ - case 319: /* table_alias */ - case 320: /* column_alias */ - case 326: /* star_func */ - case 328: /* noarg_func */ - case 343: /* alias_opt */ + case 252: /* user_name */ + case 255: /* priv_level */ + case 258: /* db_name */ + case 259: /* dnode_endpoint */ + case 278: /* column_name */ + case 286: /* table_name */ + case 293: /* function_name */ + case 299: /* index_name */ + case 307: /* topic_name */ + case 309: /* cgroup_name */ + case 314: /* stream_name */ + case 320: /* table_alias */ + case 321: /* column_alias */ + case 327: /* star_func */ + case 329: /* noarg_func */ + case 344: /* alias_opt */ { } break; - case 252: /* sysinfo_opt */ + case 253: /* sysinfo_opt */ { } break; - case 253: /* privileges */ - case 255: /* priv_type_list */ - case 256: /* priv_type */ + case 254: /* privileges */ + case 256: /* priv_type_list */ + case 257: /* priv_type */ { } break; - case 259: /* not_exists_opt */ - case 261: /* exists_opt */ - case 309: /* analyze_opt */ - case 311: /* agg_func_opt */ - case 348: /* set_quantifier_opt */ + case 260: /* not_exists_opt */ + case 262: /* exists_opt */ + case 310: /* analyze_opt */ + case 312: /* agg_func_opt */ + case 349: /* set_quantifier_opt */ { } break; - case 263: /* integer_list */ - case 264: /* variable_list */ - case 265: /* retention_list */ - case 269: /* column_def_list */ - case 270: /* tags_def_opt */ - case 272: /* multi_create_clause */ - case 273: /* tags_def */ - case 274: /* multi_drop_clause */ - case 281: /* specific_tags_opt */ - case 282: /* literal_list */ - case 284: /* col_name_list */ - case 287: /* duration_list */ - case 288: /* rollup_func_list */ - case 300: /* func_list */ - case 304: /* expression_list */ - case 315: /* dnode_list */ - case 327: /* star_func_para_list */ - case 329: /* other_para_list */ - case 349: /* select_list */ - case 350: /* partition_by_clause_opt */ - case 355: /* group_by_clause_opt */ - case 357: /* select_sublist */ - case 360: /* group_by_list */ - case 362: /* order_by_clause_opt */ - case 366: /* sort_specification_list */ + case 264: /* integer_list */ + case 265: /* variable_list */ + case 266: /* retention_list */ + case 270: /* column_def_list */ + case 271: /* tags_def_opt */ + case 273: /* multi_create_clause */ + case 274: /* tags_def */ + case 275: /* multi_drop_clause */ + case 282: /* specific_tags_opt */ + case 283: /* literal_list */ + case 285: /* col_name_list */ + case 288: /* duration_list */ + case 289: /* rollup_func_list */ + case 301: /* func_list */ + case 305: /* expression_list */ + case 316: /* dnode_list */ + case 328: /* star_func_para_list */ + case 330: /* other_para_list */ + case 350: /* select_list */ + case 351: /* partition_by_clause_opt */ + case 356: /* group_by_clause_opt */ + case 358: /* select_sublist */ + case 361: /* group_by_list */ + case 363: /* order_by_clause_opt */ + case 367: /* sort_specification_list */ { - nodesDestroyList((yypminor->yy404)); + nodesDestroyList((yypminor->yy656)); } break; - case 266: /* alter_db_option */ - case 289: /* alter_table_option */ + case 267: /* alter_db_option */ + case 290: /* alter_table_option */ { } break; - case 278: /* type_name */ + case 279: /* type_name */ { } break; - case 332: /* compare_op */ - case 333: /* in_op */ + case 333: /* compare_op */ + case 334: /* in_op */ { } break; - case 345: /* join_type */ + case 346: /* join_type */ { } break; - case 359: /* fill_mode */ + case 360: /* fill_mode */ { } break; - case 368: /* ordering_specification_opt */ + case 369: /* ordering_specification_opt */ { } break; - case 369: /* null_ordering_opt */ + case 370: /* null_ordering_opt */ { } @@ -2639,483 +2693,484 @@ 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[] = { - { 246, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ - { 246, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ - { 247, 0 }, /* (2) account_options ::= */ - { 247, -3 }, /* (3) account_options ::= account_options PPS literal */ - { 247, -3 }, /* (4) account_options ::= account_options TSERIES literal */ - { 247, -3 }, /* (5) account_options ::= account_options STORAGE literal */ - { 247, -3 }, /* (6) account_options ::= account_options STREAMS literal */ - { 247, -3 }, /* (7) account_options ::= account_options QTIME literal */ - { 247, -3 }, /* (8) account_options ::= account_options DBS literal */ - { 247, -3 }, /* (9) account_options ::= account_options USERS literal */ - { 247, -3 }, /* (10) account_options ::= account_options CONNS literal */ - { 247, -3 }, /* (11) account_options ::= account_options STATE literal */ - { 248, -1 }, /* (12) alter_account_options ::= alter_account_option */ - { 248, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ - { 250, -2 }, /* (14) alter_account_option ::= PASS literal */ - { 250, -2 }, /* (15) alter_account_option ::= PPS literal */ - { 250, -2 }, /* (16) alter_account_option ::= TSERIES literal */ - { 250, -2 }, /* (17) alter_account_option ::= STORAGE literal */ - { 250, -2 }, /* (18) alter_account_option ::= STREAMS literal */ - { 250, -2 }, /* (19) alter_account_option ::= QTIME literal */ - { 250, -2 }, /* (20) alter_account_option ::= DBS literal */ - { 250, -2 }, /* (21) alter_account_option ::= USERS literal */ - { 250, -2 }, /* (22) alter_account_option ::= CONNS literal */ - { 250, -2 }, /* (23) alter_account_option ::= STATE literal */ - { 246, -6 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ - { 246, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ - { 246, -5 }, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ - { 246, -5 }, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ - { 246, -3 }, /* (28) cmd ::= DROP USER user_name */ - { 252, 0 }, /* (29) sysinfo_opt ::= */ - { 252, -2 }, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */ - { 246, -6 }, /* (31) cmd ::= GRANT privileges ON priv_level TO user_name */ - { 246, -6 }, /* (32) cmd ::= REVOKE privileges ON priv_level FROM user_name */ - { 253, -1 }, /* (33) privileges ::= ALL */ - { 253, -1 }, /* (34) privileges ::= priv_type_list */ - { 255, -1 }, /* (35) priv_type_list ::= priv_type */ - { 255, -3 }, /* (36) priv_type_list ::= priv_type_list NK_COMMA priv_type */ - { 256, -1 }, /* (37) priv_type ::= READ */ - { 256, -1 }, /* (38) priv_type ::= WRITE */ - { 254, -3 }, /* (39) priv_level ::= NK_STAR NK_DOT NK_STAR */ - { 254, -3 }, /* (40) priv_level ::= db_name NK_DOT NK_STAR */ - { 246, -3 }, /* (41) cmd ::= CREATE DNODE dnode_endpoint */ - { 246, -5 }, /* (42) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ - { 246, -3 }, /* (43) cmd ::= DROP DNODE NK_INTEGER */ - { 246, -3 }, /* (44) cmd ::= DROP DNODE dnode_endpoint */ - { 246, -4 }, /* (45) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ - { 246, -5 }, /* (46) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ - { 246, -4 }, /* (47) cmd ::= ALTER ALL DNODES NK_STRING */ - { 246, -5 }, /* (48) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ - { 258, -1 }, /* (49) dnode_endpoint ::= NK_STRING */ - { 258, -1 }, /* (50) dnode_endpoint ::= NK_ID */ - { 258, -1 }, /* (51) dnode_endpoint ::= NK_IPTOKEN */ - { 246, -3 }, /* (52) cmd ::= ALTER LOCAL NK_STRING */ - { 246, -4 }, /* (53) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - { 246, -5 }, /* (54) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - { 246, -5 }, /* (55) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - { 246, -5 }, /* (56) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ - { 246, -5 }, /* (57) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ - { 246, -5 }, /* (58) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ - { 246, -5 }, /* (59) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ - { 246, -5 }, /* (60) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ - { 246, -5 }, /* (61) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ - { 246, -5 }, /* (62) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - { 246, -4 }, /* (63) cmd ::= DROP DATABASE exists_opt db_name */ - { 246, -2 }, /* (64) cmd ::= USE db_name */ - { 246, -4 }, /* (65) cmd ::= ALTER DATABASE db_name alter_db_options */ - { 259, -3 }, /* (66) not_exists_opt ::= IF NOT EXISTS */ - { 259, 0 }, /* (67) not_exists_opt ::= */ - { 261, -2 }, /* (68) exists_opt ::= IF EXISTS */ - { 261, 0 }, /* (69) exists_opt ::= */ - { 260, 0 }, /* (70) db_options ::= */ - { 260, -3 }, /* (71) db_options ::= db_options BUFFER NK_INTEGER */ - { 260, -3 }, /* (72) db_options ::= db_options CACHELAST NK_INTEGER */ - { 260, -3 }, /* (73) db_options ::= db_options COMP NK_INTEGER */ - { 260, -3 }, /* (74) db_options ::= db_options DURATION NK_INTEGER */ - { 260, -3 }, /* (75) db_options ::= db_options DURATION NK_VARIABLE */ - { 260, -3 }, /* (76) db_options ::= db_options FSYNC NK_INTEGER */ - { 260, -3 }, /* (77) db_options ::= db_options MAXROWS NK_INTEGER */ - { 260, -3 }, /* (78) db_options ::= db_options MINROWS NK_INTEGER */ - { 260, -3 }, /* (79) db_options ::= db_options KEEP integer_list */ - { 260, -3 }, /* (80) db_options ::= db_options KEEP variable_list */ - { 260, -3 }, /* (81) db_options ::= db_options PAGES NK_INTEGER */ - { 260, -3 }, /* (82) db_options ::= db_options PAGESIZE NK_INTEGER */ - { 260, -3 }, /* (83) db_options ::= db_options PRECISION NK_STRING */ - { 260, -3 }, /* (84) db_options ::= db_options REPLICA NK_INTEGER */ - { 260, -3 }, /* (85) db_options ::= db_options STRICT NK_INTEGER */ - { 260, -3 }, /* (86) db_options ::= db_options WAL NK_INTEGER */ - { 260, -3 }, /* (87) db_options ::= db_options VGROUPS NK_INTEGER */ - { 260, -3 }, /* (88) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - { 260, -3 }, /* (89) db_options ::= db_options RETENTIONS retention_list */ - { 260, -3 }, /* (90) db_options ::= db_options SCHEMALESS NK_INTEGER */ - { 262, -1 }, /* (91) alter_db_options ::= alter_db_option */ - { 262, -2 }, /* (92) alter_db_options ::= alter_db_options alter_db_option */ - { 266, -2 }, /* (93) alter_db_option ::= BUFFER NK_INTEGER */ - { 266, -2 }, /* (94) alter_db_option ::= CACHELAST NK_INTEGER */ - { 266, -2 }, /* (95) alter_db_option ::= FSYNC NK_INTEGER */ - { 266, -2 }, /* (96) alter_db_option ::= KEEP integer_list */ - { 266, -2 }, /* (97) alter_db_option ::= KEEP variable_list */ - { 266, -2 }, /* (98) alter_db_option ::= PAGES NK_INTEGER */ - { 266, -2 }, /* (99) alter_db_option ::= REPLICA NK_INTEGER */ - { 266, -2 }, /* (100) alter_db_option ::= STRICT NK_INTEGER */ - { 266, -2 }, /* (101) alter_db_option ::= WAL NK_INTEGER */ - { 263, -1 }, /* (102) integer_list ::= NK_INTEGER */ - { 263, -3 }, /* (103) integer_list ::= integer_list NK_COMMA NK_INTEGER */ - { 264, -1 }, /* (104) variable_list ::= NK_VARIABLE */ - { 264, -3 }, /* (105) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ - { 265, -1 }, /* (106) retention_list ::= retention */ - { 265, -3 }, /* (107) retention_list ::= retention_list NK_COMMA retention */ - { 267, -3 }, /* (108) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ - { 246, -9 }, /* (109) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - { 246, -3 }, /* (110) cmd ::= CREATE TABLE multi_create_clause */ - { 246, -9 }, /* (111) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - { 246, -3 }, /* (112) cmd ::= DROP TABLE multi_drop_clause */ - { 246, -4 }, /* (113) cmd ::= DROP STABLE exists_opt full_table_name */ - { 246, -3 }, /* (114) cmd ::= ALTER TABLE alter_table_clause */ - { 246, -3 }, /* (115) cmd ::= ALTER STABLE alter_table_clause */ - { 275, -2 }, /* (116) alter_table_clause ::= full_table_name alter_table_options */ - { 275, -5 }, /* (117) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - { 275, -4 }, /* (118) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - { 275, -5 }, /* (119) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - { 275, -5 }, /* (120) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - { 275, -5 }, /* (121) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - { 275, -4 }, /* (122) alter_table_clause ::= full_table_name DROP TAG column_name */ - { 275, -5 }, /* (123) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - { 275, -5 }, /* (124) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - { 275, -6 }, /* (125) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ - { 272, -1 }, /* (126) multi_create_clause ::= create_subtable_clause */ - { 272, -2 }, /* (127) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 280, -10 }, /* (128) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ - { 274, -1 }, /* (129) multi_drop_clause ::= drop_table_clause */ - { 274, -2 }, /* (130) multi_drop_clause ::= multi_drop_clause drop_table_clause */ - { 283, -2 }, /* (131) drop_table_clause ::= exists_opt full_table_name */ - { 281, 0 }, /* (132) specific_tags_opt ::= */ - { 281, -3 }, /* (133) specific_tags_opt ::= NK_LP col_name_list NK_RP */ - { 268, -1 }, /* (134) full_table_name ::= table_name */ - { 268, -3 }, /* (135) full_table_name ::= db_name NK_DOT table_name */ - { 269, -1 }, /* (136) column_def_list ::= column_def */ - { 269, -3 }, /* (137) column_def_list ::= column_def_list NK_COMMA column_def */ - { 286, -2 }, /* (138) column_def ::= column_name type_name */ - { 286, -4 }, /* (139) column_def ::= column_name type_name COMMENT NK_STRING */ - { 278, -1 }, /* (140) type_name ::= BOOL */ - { 278, -1 }, /* (141) type_name ::= TINYINT */ - { 278, -1 }, /* (142) type_name ::= SMALLINT */ - { 278, -1 }, /* (143) type_name ::= INT */ - { 278, -1 }, /* (144) type_name ::= INTEGER */ - { 278, -1 }, /* (145) type_name ::= BIGINT */ - { 278, -1 }, /* (146) type_name ::= FLOAT */ - { 278, -1 }, /* (147) type_name ::= DOUBLE */ - { 278, -4 }, /* (148) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - { 278, -1 }, /* (149) type_name ::= TIMESTAMP */ - { 278, -4 }, /* (150) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - { 278, -2 }, /* (151) type_name ::= TINYINT UNSIGNED */ - { 278, -2 }, /* (152) type_name ::= SMALLINT UNSIGNED */ - { 278, -2 }, /* (153) type_name ::= INT UNSIGNED */ - { 278, -2 }, /* (154) type_name ::= BIGINT UNSIGNED */ - { 278, -1 }, /* (155) type_name ::= JSON */ - { 278, -4 }, /* (156) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - { 278, -1 }, /* (157) type_name ::= MEDIUMBLOB */ - { 278, -1 }, /* (158) type_name ::= BLOB */ - { 278, -4 }, /* (159) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - { 278, -1 }, /* (160) type_name ::= DECIMAL */ - { 278, -4 }, /* (161) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - { 278, -6 }, /* (162) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - { 270, 0 }, /* (163) tags_def_opt ::= */ - { 270, -1 }, /* (164) tags_def_opt ::= tags_def */ - { 273, -4 }, /* (165) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - { 271, 0 }, /* (166) table_options ::= */ - { 271, -3 }, /* (167) table_options ::= table_options COMMENT NK_STRING */ - { 271, -3 }, /* (168) table_options ::= table_options MAX_DELAY duration_list */ - { 271, -3 }, /* (169) table_options ::= table_options WATERMARK duration_list */ - { 271, -5 }, /* (170) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ - { 271, -3 }, /* (171) table_options ::= table_options TTL NK_INTEGER */ - { 271, -5 }, /* (172) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - { 276, -1 }, /* (173) alter_table_options ::= alter_table_option */ - { 276, -2 }, /* (174) alter_table_options ::= alter_table_options alter_table_option */ - { 289, -2 }, /* (175) alter_table_option ::= COMMENT NK_STRING */ - { 289, -2 }, /* (176) alter_table_option ::= TTL NK_INTEGER */ - { 287, -1 }, /* (177) duration_list ::= duration_literal */ - { 287, -3 }, /* (178) duration_list ::= duration_list NK_COMMA duration_literal */ - { 288, -1 }, /* (179) rollup_func_list ::= rollup_func_name */ - { 288, -3 }, /* (180) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - { 291, -1 }, /* (181) rollup_func_name ::= function_name */ - { 291, -1 }, /* (182) rollup_func_name ::= FIRST */ - { 291, -1 }, /* (183) rollup_func_name ::= LAST */ - { 284, -1 }, /* (184) col_name_list ::= col_name */ - { 284, -3 }, /* (185) col_name_list ::= col_name_list NK_COMMA col_name */ - { 293, -1 }, /* (186) col_name ::= column_name */ - { 246, -2 }, /* (187) cmd ::= SHOW DNODES */ - { 246, -2 }, /* (188) cmd ::= SHOW USERS */ - { 246, -2 }, /* (189) cmd ::= SHOW DATABASES */ - { 246, -4 }, /* (190) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - { 246, -4 }, /* (191) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - { 246, -3 }, /* (192) cmd ::= SHOW db_name_cond_opt VGROUPS */ - { 246, -2 }, /* (193) cmd ::= SHOW MNODES */ - { 246, -2 }, /* (194) cmd ::= SHOW MODULES */ - { 246, -2 }, /* (195) cmd ::= SHOW QNODES */ - { 246, -2 }, /* (196) cmd ::= SHOW FUNCTIONS */ - { 246, -5 }, /* (197) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - { 246, -2 }, /* (198) cmd ::= SHOW STREAMS */ - { 246, -2 }, /* (199) cmd ::= SHOW ACCOUNTS */ - { 246, -2 }, /* (200) cmd ::= SHOW APPS */ - { 246, -2 }, /* (201) cmd ::= SHOW CONNECTIONS */ - { 246, -2 }, /* (202) cmd ::= SHOW LICENCE */ - { 246, -2 }, /* (203) cmd ::= SHOW GRANTS */ - { 246, -4 }, /* (204) cmd ::= SHOW CREATE DATABASE db_name */ - { 246, -4 }, /* (205) cmd ::= SHOW CREATE TABLE full_table_name */ - { 246, -4 }, /* (206) cmd ::= SHOW CREATE STABLE full_table_name */ - { 246, -2 }, /* (207) cmd ::= SHOW QUERIES */ - { 246, -2 }, /* (208) cmd ::= SHOW SCORES */ - { 246, -2 }, /* (209) cmd ::= SHOW TOPICS */ - { 246, -2 }, /* (210) cmd ::= SHOW VARIABLES */ - { 246, -3 }, /* (211) cmd ::= SHOW LOCAL VARIABLES */ - { 246, -4 }, /* (212) cmd ::= SHOW DNODE NK_INTEGER VARIABLES */ - { 246, -2 }, /* (213) cmd ::= SHOW BNODES */ - { 246, -2 }, /* (214) cmd ::= SHOW SNODES */ - { 246, -2 }, /* (215) cmd ::= SHOW CLUSTER */ - { 246, -2 }, /* (216) cmd ::= SHOW TRANSACTIONS */ - { 246, -4 }, /* (217) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ - { 246, -2 }, /* (218) cmd ::= SHOW CONSUMERS */ - { 246, -2 }, /* (219) cmd ::= SHOW SUBSCRIPTIONS */ - { 294, 0 }, /* (220) db_name_cond_opt ::= */ - { 294, -2 }, /* (221) db_name_cond_opt ::= db_name NK_DOT */ - { 295, 0 }, /* (222) like_pattern_opt ::= */ - { 295, -2 }, /* (223) like_pattern_opt ::= LIKE NK_STRING */ - { 296, -1 }, /* (224) table_name_cond ::= table_name */ - { 297, 0 }, /* (225) from_db_opt ::= */ - { 297, -2 }, /* (226) from_db_opt ::= FROM db_name */ - { 246, -8 }, /* (227) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ - { 246, -4 }, /* (228) cmd ::= DROP INDEX exists_opt index_name */ - { 299, -10 }, /* (229) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ - { 299, -12 }, /* (230) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ - { 300, -1 }, /* (231) func_list ::= func */ - { 300, -3 }, /* (232) func_list ::= func_list NK_COMMA func */ - { 303, -4 }, /* (233) func ::= function_name NK_LP expression_list NK_RP */ - { 302, 0 }, /* (234) sma_stream_opt ::= */ - { 302, -3 }, /* (235) sma_stream_opt ::= stream_options WATERMARK duration_literal */ - { 302, -3 }, /* (236) sma_stream_opt ::= stream_options MAX_DELAY duration_literal */ - { 246, -6 }, /* (237) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ - { 246, -7 }, /* (238) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ - { 246, -9 }, /* (239) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ - { 246, -7 }, /* (240) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ - { 246, -9 }, /* (241) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ - { 246, -4 }, /* (242) cmd ::= DROP TOPIC exists_opt topic_name */ - { 246, -7 }, /* (243) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - { 246, -2 }, /* (244) cmd ::= DESC full_table_name */ - { 246, -2 }, /* (245) cmd ::= DESCRIBE full_table_name */ - { 246, -3 }, /* (246) cmd ::= RESET QUERY CACHE */ - { 246, -4 }, /* (247) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ - { 309, 0 }, /* (248) analyze_opt ::= */ - { 309, -1 }, /* (249) analyze_opt ::= ANALYZE */ - { 310, 0 }, /* (250) explain_options ::= */ - { 310, -3 }, /* (251) explain_options ::= explain_options VERBOSE NK_BOOL */ - { 310, -3 }, /* (252) explain_options ::= explain_options RATIO NK_FLOAT */ - { 246, -6 }, /* (253) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ - { 246, -10 }, /* (254) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ - { 246, -4 }, /* (255) cmd ::= DROP FUNCTION exists_opt function_name */ - { 311, 0 }, /* (256) agg_func_opt ::= */ - { 311, -1 }, /* (257) agg_func_opt ::= AGGREGATE */ - { 312, 0 }, /* (258) bufsize_opt ::= */ - { 312, -2 }, /* (259) bufsize_opt ::= BUFSIZE NK_INTEGER */ - { 246, -8 }, /* (260) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ - { 246, -4 }, /* (261) cmd ::= DROP STREAM exists_opt stream_name */ - { 314, 0 }, /* (262) into_opt ::= */ - { 314, -2 }, /* (263) into_opt ::= INTO full_table_name */ - { 305, 0 }, /* (264) stream_options ::= */ - { 305, -3 }, /* (265) stream_options ::= stream_options TRIGGER AT_ONCE */ - { 305, -3 }, /* (266) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - { 305, -4 }, /* (267) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - { 305, -3 }, /* (268) stream_options ::= stream_options WATERMARK duration_literal */ - { 246, -3 }, /* (269) cmd ::= KILL CONNECTION NK_INTEGER */ - { 246, -3 }, /* (270) cmd ::= KILL QUERY NK_STRING */ - { 246, -3 }, /* (271) cmd ::= KILL TRANSACTION NK_INTEGER */ - { 246, -2 }, /* (272) cmd ::= BALANCE VGROUP */ - { 246, -4 }, /* (273) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - { 246, -4 }, /* (274) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - { 246, -3 }, /* (275) cmd ::= SPLIT VGROUP NK_INTEGER */ - { 315, -2 }, /* (276) dnode_list ::= DNODE NK_INTEGER */ - { 315, -3 }, /* (277) dnode_list ::= dnode_list DNODE NK_INTEGER */ - { 246, -3 }, /* (278) cmd ::= SYNCDB db_name REPLICA */ - { 246, -4 }, /* (279) cmd ::= DELETE FROM full_table_name where_clause_opt */ - { 246, -1 }, /* (280) cmd ::= query_expression */ - { 249, -1 }, /* (281) literal ::= NK_INTEGER */ - { 249, -1 }, /* (282) literal ::= NK_FLOAT */ - { 249, -1 }, /* (283) literal ::= NK_STRING */ - { 249, -1 }, /* (284) literal ::= NK_BOOL */ - { 249, -2 }, /* (285) literal ::= TIMESTAMP NK_STRING */ - { 249, -1 }, /* (286) literal ::= duration_literal */ - { 249, -1 }, /* (287) literal ::= NULL */ - { 249, -1 }, /* (288) literal ::= NK_QUESTION */ - { 290, -1 }, /* (289) duration_literal ::= NK_VARIABLE */ - { 317, -1 }, /* (290) signed ::= NK_INTEGER */ - { 317, -2 }, /* (291) signed ::= NK_PLUS NK_INTEGER */ - { 317, -2 }, /* (292) signed ::= NK_MINUS NK_INTEGER */ - { 317, -1 }, /* (293) signed ::= NK_FLOAT */ - { 317, -2 }, /* (294) signed ::= NK_PLUS NK_FLOAT */ - { 317, -2 }, /* (295) signed ::= NK_MINUS NK_FLOAT */ - { 279, -1 }, /* (296) signed_literal ::= signed */ - { 279, -1 }, /* (297) signed_literal ::= NK_STRING */ - { 279, -1 }, /* (298) signed_literal ::= NK_BOOL */ - { 279, -2 }, /* (299) signed_literal ::= TIMESTAMP NK_STRING */ - { 279, -1 }, /* (300) signed_literal ::= duration_literal */ - { 279, -1 }, /* (301) signed_literal ::= NULL */ - { 279, -1 }, /* (302) signed_literal ::= literal_func */ - { 282, -1 }, /* (303) literal_list ::= signed_literal */ - { 282, -3 }, /* (304) literal_list ::= literal_list NK_COMMA signed_literal */ - { 257, -1 }, /* (305) db_name ::= NK_ID */ - { 285, -1 }, /* (306) table_name ::= NK_ID */ - { 277, -1 }, /* (307) column_name ::= NK_ID */ - { 292, -1 }, /* (308) function_name ::= NK_ID */ - { 319, -1 }, /* (309) table_alias ::= NK_ID */ - { 320, -1 }, /* (310) column_alias ::= NK_ID */ - { 251, -1 }, /* (311) user_name ::= NK_ID */ - { 298, -1 }, /* (312) index_name ::= NK_ID */ - { 306, -1 }, /* (313) topic_name ::= NK_ID */ - { 313, -1 }, /* (314) stream_name ::= NK_ID */ - { 308, -1 }, /* (315) cgroup_name ::= NK_ID */ - { 321, -1 }, /* (316) expression ::= literal */ - { 321, -1 }, /* (317) expression ::= pseudo_column */ - { 321, -1 }, /* (318) expression ::= column_reference */ - { 321, -1 }, /* (319) expression ::= function_expression */ - { 321, -1 }, /* (320) expression ::= subquery */ - { 321, -3 }, /* (321) expression ::= NK_LP expression NK_RP */ - { 321, -2 }, /* (322) expression ::= NK_PLUS expression */ - { 321, -2 }, /* (323) expression ::= NK_MINUS expression */ - { 321, -3 }, /* (324) expression ::= expression NK_PLUS expression */ - { 321, -3 }, /* (325) expression ::= expression NK_MINUS expression */ - { 321, -3 }, /* (326) expression ::= expression NK_STAR expression */ - { 321, -3 }, /* (327) expression ::= expression NK_SLASH expression */ - { 321, -3 }, /* (328) expression ::= expression NK_REM expression */ - { 321, -3 }, /* (329) expression ::= column_reference NK_ARROW NK_STRING */ - { 321, -3 }, /* (330) expression ::= expression NK_BITAND expression */ - { 321, -3 }, /* (331) expression ::= expression NK_BITOR expression */ - { 304, -1 }, /* (332) expression_list ::= expression */ - { 304, -3 }, /* (333) expression_list ::= expression_list NK_COMMA expression */ - { 323, -1 }, /* (334) column_reference ::= column_name */ - { 323, -3 }, /* (335) column_reference ::= table_name NK_DOT column_name */ - { 322, -1 }, /* (336) pseudo_column ::= ROWTS */ - { 322, -1 }, /* (337) pseudo_column ::= TBNAME */ - { 322, -3 }, /* (338) pseudo_column ::= table_name NK_DOT TBNAME */ - { 322, -1 }, /* (339) pseudo_column ::= QSTARTTS */ - { 322, -1 }, /* (340) pseudo_column ::= QENDTS */ - { 322, -1 }, /* (341) pseudo_column ::= WSTARTTS */ - { 322, -1 }, /* (342) pseudo_column ::= WENDTS */ - { 322, -1 }, /* (343) pseudo_column ::= WDURATION */ - { 324, -4 }, /* (344) function_expression ::= function_name NK_LP expression_list NK_RP */ - { 324, -4 }, /* (345) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - { 324, -6 }, /* (346) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ - { 324, -1 }, /* (347) function_expression ::= literal_func */ - { 318, -3 }, /* (348) literal_func ::= noarg_func NK_LP NK_RP */ - { 318, -1 }, /* (349) literal_func ::= NOW */ - { 328, -1 }, /* (350) noarg_func ::= NOW */ - { 328, -1 }, /* (351) noarg_func ::= TODAY */ - { 328, -1 }, /* (352) noarg_func ::= TIMEZONE */ - { 326, -1 }, /* (353) star_func ::= COUNT */ - { 326, -1 }, /* (354) star_func ::= FIRST */ - { 326, -1 }, /* (355) star_func ::= LAST */ - { 326, -1 }, /* (356) star_func ::= LAST_ROW */ - { 327, -1 }, /* (357) star_func_para_list ::= NK_STAR */ - { 327, -1 }, /* (358) star_func_para_list ::= other_para_list */ - { 329, -1 }, /* (359) other_para_list ::= star_func_para */ - { 329, -3 }, /* (360) other_para_list ::= other_para_list NK_COMMA star_func_para */ - { 330, -1 }, /* (361) star_func_para ::= expression */ - { 330, -3 }, /* (362) star_func_para ::= table_name NK_DOT NK_STAR */ - { 331, -3 }, /* (363) predicate ::= expression compare_op expression */ - { 331, -5 }, /* (364) predicate ::= expression BETWEEN expression AND expression */ - { 331, -6 }, /* (365) predicate ::= expression NOT BETWEEN expression AND expression */ - { 331, -3 }, /* (366) predicate ::= expression IS NULL */ - { 331, -4 }, /* (367) predicate ::= expression IS NOT NULL */ - { 331, -3 }, /* (368) predicate ::= expression in_op in_predicate_value */ - { 332, -1 }, /* (369) compare_op ::= NK_LT */ - { 332, -1 }, /* (370) compare_op ::= NK_GT */ - { 332, -1 }, /* (371) compare_op ::= NK_LE */ - { 332, -1 }, /* (372) compare_op ::= NK_GE */ - { 332, -1 }, /* (373) compare_op ::= NK_NE */ - { 332, -1 }, /* (374) compare_op ::= NK_EQ */ - { 332, -1 }, /* (375) compare_op ::= LIKE */ - { 332, -2 }, /* (376) compare_op ::= NOT LIKE */ - { 332, -1 }, /* (377) compare_op ::= MATCH */ - { 332, -1 }, /* (378) compare_op ::= NMATCH */ - { 332, -1 }, /* (379) compare_op ::= CONTAINS */ - { 333, -1 }, /* (380) in_op ::= IN */ - { 333, -2 }, /* (381) in_op ::= NOT IN */ - { 334, -3 }, /* (382) in_predicate_value ::= NK_LP expression_list NK_RP */ - { 335, -1 }, /* (383) boolean_value_expression ::= boolean_primary */ - { 335, -2 }, /* (384) boolean_value_expression ::= NOT boolean_primary */ - { 335, -3 }, /* (385) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 335, -3 }, /* (386) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 336, -1 }, /* (387) boolean_primary ::= predicate */ - { 336, -3 }, /* (388) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 337, -1 }, /* (389) common_expression ::= expression */ - { 337, -1 }, /* (390) common_expression ::= boolean_value_expression */ - { 338, 0 }, /* (391) from_clause_opt ::= */ - { 338, -2 }, /* (392) from_clause_opt ::= FROM table_reference_list */ - { 339, -1 }, /* (393) table_reference_list ::= table_reference */ - { 339, -3 }, /* (394) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 340, -1 }, /* (395) table_reference ::= table_primary */ - { 340, -1 }, /* (396) table_reference ::= joined_table */ - { 341, -2 }, /* (397) table_primary ::= table_name alias_opt */ - { 341, -4 }, /* (398) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 341, -2 }, /* (399) table_primary ::= subquery alias_opt */ - { 341, -1 }, /* (400) table_primary ::= parenthesized_joined_table */ - { 343, 0 }, /* (401) alias_opt ::= */ - { 343, -1 }, /* (402) alias_opt ::= table_alias */ - { 343, -2 }, /* (403) alias_opt ::= AS table_alias */ - { 344, -3 }, /* (404) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 344, -3 }, /* (405) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 342, -6 }, /* (406) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 345, 0 }, /* (407) join_type ::= */ - { 345, -1 }, /* (408) join_type ::= INNER */ - { 347, -12 }, /* (409) query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - { 348, 0 }, /* (410) set_quantifier_opt ::= */ - { 348, -1 }, /* (411) set_quantifier_opt ::= DISTINCT */ - { 348, -1 }, /* (412) set_quantifier_opt ::= ALL */ - { 349, -1 }, /* (413) select_list ::= NK_STAR */ - { 349, -1 }, /* (414) select_list ::= select_sublist */ - { 357, -1 }, /* (415) select_sublist ::= select_item */ - { 357, -3 }, /* (416) select_sublist ::= select_sublist NK_COMMA select_item */ - { 358, -1 }, /* (417) select_item ::= common_expression */ - { 358, -2 }, /* (418) select_item ::= common_expression column_alias */ - { 358, -3 }, /* (419) select_item ::= common_expression AS column_alias */ - { 358, -3 }, /* (420) select_item ::= table_name NK_DOT NK_STAR */ - { 316, 0 }, /* (421) where_clause_opt ::= */ - { 316, -2 }, /* (422) where_clause_opt ::= WHERE search_condition */ - { 350, 0 }, /* (423) partition_by_clause_opt ::= */ - { 350, -3 }, /* (424) partition_by_clause_opt ::= PARTITION BY expression_list */ - { 354, 0 }, /* (425) twindow_clause_opt ::= */ - { 354, -6 }, /* (426) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - { 354, -4 }, /* (427) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ - { 354, -6 }, /* (428) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 354, -8 }, /* (429) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 301, 0 }, /* (430) sliding_opt ::= */ - { 301, -4 }, /* (431) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 353, 0 }, /* (432) fill_opt ::= */ - { 353, -4 }, /* (433) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 353, -6 }, /* (434) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 359, -1 }, /* (435) fill_mode ::= NONE */ - { 359, -1 }, /* (436) fill_mode ::= PREV */ - { 359, -1 }, /* (437) fill_mode ::= NULL */ - { 359, -1 }, /* (438) fill_mode ::= LINEAR */ - { 359, -1 }, /* (439) fill_mode ::= NEXT */ - { 355, 0 }, /* (440) group_by_clause_opt ::= */ - { 355, -3 }, /* (441) group_by_clause_opt ::= GROUP BY group_by_list */ - { 360, -1 }, /* (442) group_by_list ::= expression */ - { 360, -3 }, /* (443) group_by_list ::= group_by_list NK_COMMA expression */ - { 356, 0 }, /* (444) having_clause_opt ::= */ - { 356, -2 }, /* (445) having_clause_opt ::= HAVING search_condition */ - { 351, 0 }, /* (446) range_opt ::= */ - { 351, -6 }, /* (447) range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ - { 352, 0 }, /* (448) every_opt ::= */ - { 352, -4 }, /* (449) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - { 307, -4 }, /* (450) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 361, -1 }, /* (451) query_expression_body ::= query_primary */ - { 361, -4 }, /* (452) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - { 361, -3 }, /* (453) query_expression_body ::= query_expression_body UNION query_expression_body */ - { 365, -1 }, /* (454) query_primary ::= query_specification */ - { 365, -6 }, /* (455) query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ - { 362, 0 }, /* (456) order_by_clause_opt ::= */ - { 362, -3 }, /* (457) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 363, 0 }, /* (458) slimit_clause_opt ::= */ - { 363, -2 }, /* (459) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 363, -4 }, /* (460) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 363, -4 }, /* (461) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 364, 0 }, /* (462) limit_clause_opt ::= */ - { 364, -2 }, /* (463) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 364, -4 }, /* (464) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 364, -4 }, /* (465) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 325, -3 }, /* (466) subquery ::= NK_LP query_expression NK_RP */ - { 346, -1 }, /* (467) search_condition ::= common_expression */ - { 366, -1 }, /* (468) sort_specification_list ::= sort_specification */ - { 366, -3 }, /* (469) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 367, -3 }, /* (470) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - { 368, 0 }, /* (471) ordering_specification_opt ::= */ - { 368, -1 }, /* (472) ordering_specification_opt ::= ASC */ - { 368, -1 }, /* (473) ordering_specification_opt ::= DESC */ - { 369, 0 }, /* (474) null_ordering_opt ::= */ - { 369, -2 }, /* (475) null_ordering_opt ::= NULLS FIRST */ - { 369, -2 }, /* (476) null_ordering_opt ::= NULLS LAST */ + { 247, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ + { 247, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ + { 248, 0 }, /* (2) account_options ::= */ + { 248, -3 }, /* (3) account_options ::= account_options PPS literal */ + { 248, -3 }, /* (4) account_options ::= account_options TSERIES literal */ + { 248, -3 }, /* (5) account_options ::= account_options STORAGE literal */ + { 248, -3 }, /* (6) account_options ::= account_options STREAMS literal */ + { 248, -3 }, /* (7) account_options ::= account_options QTIME literal */ + { 248, -3 }, /* (8) account_options ::= account_options DBS literal */ + { 248, -3 }, /* (9) account_options ::= account_options USERS literal */ + { 248, -3 }, /* (10) account_options ::= account_options CONNS literal */ + { 248, -3 }, /* (11) account_options ::= account_options STATE literal */ + { 249, -1 }, /* (12) alter_account_options ::= alter_account_option */ + { 249, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ + { 251, -2 }, /* (14) alter_account_option ::= PASS literal */ + { 251, -2 }, /* (15) alter_account_option ::= PPS literal */ + { 251, -2 }, /* (16) alter_account_option ::= TSERIES literal */ + { 251, -2 }, /* (17) alter_account_option ::= STORAGE literal */ + { 251, -2 }, /* (18) alter_account_option ::= STREAMS literal */ + { 251, -2 }, /* (19) alter_account_option ::= QTIME literal */ + { 251, -2 }, /* (20) alter_account_option ::= DBS literal */ + { 251, -2 }, /* (21) alter_account_option ::= USERS literal */ + { 251, -2 }, /* (22) alter_account_option ::= CONNS literal */ + { 251, -2 }, /* (23) alter_account_option ::= STATE literal */ + { 247, -6 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ + { 247, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ + { 247, -5 }, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ + { 247, -5 }, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ + { 247, -3 }, /* (28) cmd ::= DROP USER user_name */ + { 253, 0 }, /* (29) sysinfo_opt ::= */ + { 253, -2 }, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */ + { 247, -6 }, /* (31) cmd ::= GRANT privileges ON priv_level TO user_name */ + { 247, -6 }, /* (32) cmd ::= REVOKE privileges ON priv_level FROM user_name */ + { 254, -1 }, /* (33) privileges ::= ALL */ + { 254, -1 }, /* (34) privileges ::= priv_type_list */ + { 256, -1 }, /* (35) priv_type_list ::= priv_type */ + { 256, -3 }, /* (36) priv_type_list ::= priv_type_list NK_COMMA priv_type */ + { 257, -1 }, /* (37) priv_type ::= READ */ + { 257, -1 }, /* (38) priv_type ::= WRITE */ + { 255, -3 }, /* (39) priv_level ::= NK_STAR NK_DOT NK_STAR */ + { 255, -3 }, /* (40) priv_level ::= db_name NK_DOT NK_STAR */ + { 247, -3 }, /* (41) cmd ::= CREATE DNODE dnode_endpoint */ + { 247, -5 }, /* (42) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ + { 247, -3 }, /* (43) cmd ::= DROP DNODE NK_INTEGER */ + { 247, -3 }, /* (44) cmd ::= DROP DNODE dnode_endpoint */ + { 247, -4 }, /* (45) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + { 247, -5 }, /* (46) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + { 247, -4 }, /* (47) cmd ::= ALTER ALL DNODES NK_STRING */ + { 247, -5 }, /* (48) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + { 259, -1 }, /* (49) dnode_endpoint ::= NK_STRING */ + { 259, -1 }, /* (50) dnode_endpoint ::= NK_ID */ + { 259, -1 }, /* (51) dnode_endpoint ::= NK_IPTOKEN */ + { 247, -3 }, /* (52) cmd ::= ALTER LOCAL NK_STRING */ + { 247, -4 }, /* (53) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + { 247, -5 }, /* (54) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + { 247, -5 }, /* (55) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + { 247, -5 }, /* (56) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + { 247, -5 }, /* (57) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + { 247, -5 }, /* (58) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + { 247, -5 }, /* (59) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + { 247, -5 }, /* (60) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + { 247, -5 }, /* (61) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + { 247, -5 }, /* (62) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + { 247, -4 }, /* (63) cmd ::= DROP DATABASE exists_opt db_name */ + { 247, -2 }, /* (64) cmd ::= USE db_name */ + { 247, -4 }, /* (65) cmd ::= ALTER DATABASE db_name alter_db_options */ + { 247, -3 }, /* (66) cmd ::= FLUSH DATABASE db_name */ + { 260, -3 }, /* (67) not_exists_opt ::= IF NOT EXISTS */ + { 260, 0 }, /* (68) not_exists_opt ::= */ + { 262, -2 }, /* (69) exists_opt ::= IF EXISTS */ + { 262, 0 }, /* (70) exists_opt ::= */ + { 261, 0 }, /* (71) db_options ::= */ + { 261, -3 }, /* (72) db_options ::= db_options BUFFER NK_INTEGER */ + { 261, -3 }, /* (73) db_options ::= db_options CACHELAST NK_INTEGER */ + { 261, -3 }, /* (74) db_options ::= db_options COMP NK_INTEGER */ + { 261, -3 }, /* (75) db_options ::= db_options DURATION NK_INTEGER */ + { 261, -3 }, /* (76) db_options ::= db_options DURATION NK_VARIABLE */ + { 261, -3 }, /* (77) db_options ::= db_options FSYNC NK_INTEGER */ + { 261, -3 }, /* (78) db_options ::= db_options MAXROWS NK_INTEGER */ + { 261, -3 }, /* (79) db_options ::= db_options MINROWS NK_INTEGER */ + { 261, -3 }, /* (80) db_options ::= db_options KEEP integer_list */ + { 261, -3 }, /* (81) db_options ::= db_options KEEP variable_list */ + { 261, -3 }, /* (82) db_options ::= db_options PAGES NK_INTEGER */ + { 261, -3 }, /* (83) db_options ::= db_options PAGESIZE NK_INTEGER */ + { 261, -3 }, /* (84) db_options ::= db_options PRECISION NK_STRING */ + { 261, -3 }, /* (85) db_options ::= db_options REPLICA NK_INTEGER */ + { 261, -3 }, /* (86) db_options ::= db_options STRICT NK_INTEGER */ + { 261, -3 }, /* (87) db_options ::= db_options WAL NK_INTEGER */ + { 261, -3 }, /* (88) db_options ::= db_options VGROUPS NK_INTEGER */ + { 261, -3 }, /* (89) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + { 261, -3 }, /* (90) db_options ::= db_options RETENTIONS retention_list */ + { 261, -3 }, /* (91) db_options ::= db_options SCHEMALESS NK_INTEGER */ + { 263, -1 }, /* (92) alter_db_options ::= alter_db_option */ + { 263, -2 }, /* (93) alter_db_options ::= alter_db_options alter_db_option */ + { 267, -2 }, /* (94) alter_db_option ::= BUFFER NK_INTEGER */ + { 267, -2 }, /* (95) alter_db_option ::= CACHELAST NK_INTEGER */ + { 267, -2 }, /* (96) alter_db_option ::= FSYNC NK_INTEGER */ + { 267, -2 }, /* (97) alter_db_option ::= KEEP integer_list */ + { 267, -2 }, /* (98) alter_db_option ::= KEEP variable_list */ + { 267, -2 }, /* (99) alter_db_option ::= PAGES NK_INTEGER */ + { 267, -2 }, /* (100) alter_db_option ::= REPLICA NK_INTEGER */ + { 267, -2 }, /* (101) alter_db_option ::= STRICT NK_INTEGER */ + { 267, -2 }, /* (102) alter_db_option ::= WAL NK_INTEGER */ + { 264, -1 }, /* (103) integer_list ::= NK_INTEGER */ + { 264, -3 }, /* (104) integer_list ::= integer_list NK_COMMA NK_INTEGER */ + { 265, -1 }, /* (105) variable_list ::= NK_VARIABLE */ + { 265, -3 }, /* (106) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + { 266, -1 }, /* (107) retention_list ::= retention */ + { 266, -3 }, /* (108) retention_list ::= retention_list NK_COMMA retention */ + { 268, -3 }, /* (109) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + { 247, -9 }, /* (110) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + { 247, -3 }, /* (111) cmd ::= CREATE TABLE multi_create_clause */ + { 247, -9 }, /* (112) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + { 247, -3 }, /* (113) cmd ::= DROP TABLE multi_drop_clause */ + { 247, -4 }, /* (114) cmd ::= DROP STABLE exists_opt full_table_name */ + { 247, -3 }, /* (115) cmd ::= ALTER TABLE alter_table_clause */ + { 247, -3 }, /* (116) cmd ::= ALTER STABLE alter_table_clause */ + { 276, -2 }, /* (117) alter_table_clause ::= full_table_name alter_table_options */ + { 276, -5 }, /* (118) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + { 276, -4 }, /* (119) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + { 276, -5 }, /* (120) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + { 276, -5 }, /* (121) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + { 276, -5 }, /* (122) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + { 276, -4 }, /* (123) alter_table_clause ::= full_table_name DROP TAG column_name */ + { 276, -5 }, /* (124) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + { 276, -5 }, /* (125) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + { 276, -6 }, /* (126) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ + { 273, -1 }, /* (127) multi_create_clause ::= create_subtable_clause */ + { 273, -2 }, /* (128) multi_create_clause ::= multi_create_clause create_subtable_clause */ + { 281, -10 }, /* (129) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ + { 275, -1 }, /* (130) multi_drop_clause ::= drop_table_clause */ + { 275, -2 }, /* (131) multi_drop_clause ::= multi_drop_clause drop_table_clause */ + { 284, -2 }, /* (132) drop_table_clause ::= exists_opt full_table_name */ + { 282, 0 }, /* (133) specific_tags_opt ::= */ + { 282, -3 }, /* (134) specific_tags_opt ::= NK_LP col_name_list NK_RP */ + { 269, -1 }, /* (135) full_table_name ::= table_name */ + { 269, -3 }, /* (136) full_table_name ::= db_name NK_DOT table_name */ + { 270, -1 }, /* (137) column_def_list ::= column_def */ + { 270, -3 }, /* (138) column_def_list ::= column_def_list NK_COMMA column_def */ + { 287, -2 }, /* (139) column_def ::= column_name type_name */ + { 287, -4 }, /* (140) column_def ::= column_name type_name COMMENT NK_STRING */ + { 279, -1 }, /* (141) type_name ::= BOOL */ + { 279, -1 }, /* (142) type_name ::= TINYINT */ + { 279, -1 }, /* (143) type_name ::= SMALLINT */ + { 279, -1 }, /* (144) type_name ::= INT */ + { 279, -1 }, /* (145) type_name ::= INTEGER */ + { 279, -1 }, /* (146) type_name ::= BIGINT */ + { 279, -1 }, /* (147) type_name ::= FLOAT */ + { 279, -1 }, /* (148) type_name ::= DOUBLE */ + { 279, -4 }, /* (149) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + { 279, -1 }, /* (150) type_name ::= TIMESTAMP */ + { 279, -4 }, /* (151) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + { 279, -2 }, /* (152) type_name ::= TINYINT UNSIGNED */ + { 279, -2 }, /* (153) type_name ::= SMALLINT UNSIGNED */ + { 279, -2 }, /* (154) type_name ::= INT UNSIGNED */ + { 279, -2 }, /* (155) type_name ::= BIGINT UNSIGNED */ + { 279, -1 }, /* (156) type_name ::= JSON */ + { 279, -4 }, /* (157) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + { 279, -1 }, /* (158) type_name ::= MEDIUMBLOB */ + { 279, -1 }, /* (159) type_name ::= BLOB */ + { 279, -4 }, /* (160) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + { 279, -1 }, /* (161) type_name ::= DECIMAL */ + { 279, -4 }, /* (162) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + { 279, -6 }, /* (163) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + { 271, 0 }, /* (164) tags_def_opt ::= */ + { 271, -1 }, /* (165) tags_def_opt ::= tags_def */ + { 274, -4 }, /* (166) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + { 272, 0 }, /* (167) table_options ::= */ + { 272, -3 }, /* (168) table_options ::= table_options COMMENT NK_STRING */ + { 272, -3 }, /* (169) table_options ::= table_options MAX_DELAY duration_list */ + { 272, -3 }, /* (170) table_options ::= table_options WATERMARK duration_list */ + { 272, -5 }, /* (171) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + { 272, -3 }, /* (172) table_options ::= table_options TTL NK_INTEGER */ + { 272, -5 }, /* (173) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + { 277, -1 }, /* (174) alter_table_options ::= alter_table_option */ + { 277, -2 }, /* (175) alter_table_options ::= alter_table_options alter_table_option */ + { 290, -2 }, /* (176) alter_table_option ::= COMMENT NK_STRING */ + { 290, -2 }, /* (177) alter_table_option ::= TTL NK_INTEGER */ + { 288, -1 }, /* (178) duration_list ::= duration_literal */ + { 288, -3 }, /* (179) duration_list ::= duration_list NK_COMMA duration_literal */ + { 289, -1 }, /* (180) rollup_func_list ::= rollup_func_name */ + { 289, -3 }, /* (181) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + { 292, -1 }, /* (182) rollup_func_name ::= function_name */ + { 292, -1 }, /* (183) rollup_func_name ::= FIRST */ + { 292, -1 }, /* (184) rollup_func_name ::= LAST */ + { 285, -1 }, /* (185) col_name_list ::= col_name */ + { 285, -3 }, /* (186) col_name_list ::= col_name_list NK_COMMA col_name */ + { 294, -1 }, /* (187) col_name ::= column_name */ + { 247, -2 }, /* (188) cmd ::= SHOW DNODES */ + { 247, -2 }, /* (189) cmd ::= SHOW USERS */ + { 247, -2 }, /* (190) cmd ::= SHOW DATABASES */ + { 247, -4 }, /* (191) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + { 247, -4 }, /* (192) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + { 247, -3 }, /* (193) cmd ::= SHOW db_name_cond_opt VGROUPS */ + { 247, -2 }, /* (194) cmd ::= SHOW MNODES */ + { 247, -2 }, /* (195) cmd ::= SHOW MODULES */ + { 247, -2 }, /* (196) cmd ::= SHOW QNODES */ + { 247, -2 }, /* (197) cmd ::= SHOW FUNCTIONS */ + { 247, -5 }, /* (198) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + { 247, -2 }, /* (199) cmd ::= SHOW STREAMS */ + { 247, -2 }, /* (200) cmd ::= SHOW ACCOUNTS */ + { 247, -2 }, /* (201) cmd ::= SHOW APPS */ + { 247, -2 }, /* (202) cmd ::= SHOW CONNECTIONS */ + { 247, -2 }, /* (203) cmd ::= SHOW LICENCE */ + { 247, -2 }, /* (204) cmd ::= SHOW GRANTS */ + { 247, -4 }, /* (205) cmd ::= SHOW CREATE DATABASE db_name */ + { 247, -4 }, /* (206) cmd ::= SHOW CREATE TABLE full_table_name */ + { 247, -4 }, /* (207) cmd ::= SHOW CREATE STABLE full_table_name */ + { 247, -2 }, /* (208) cmd ::= SHOW QUERIES */ + { 247, -2 }, /* (209) cmd ::= SHOW SCORES */ + { 247, -2 }, /* (210) cmd ::= SHOW TOPICS */ + { 247, -2 }, /* (211) cmd ::= SHOW VARIABLES */ + { 247, -3 }, /* (212) cmd ::= SHOW LOCAL VARIABLES */ + { 247, -4 }, /* (213) cmd ::= SHOW DNODE NK_INTEGER VARIABLES */ + { 247, -2 }, /* (214) cmd ::= SHOW BNODES */ + { 247, -2 }, /* (215) cmd ::= SHOW SNODES */ + { 247, -2 }, /* (216) cmd ::= SHOW CLUSTER */ + { 247, -2 }, /* (217) cmd ::= SHOW TRANSACTIONS */ + { 247, -4 }, /* (218) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + { 247, -2 }, /* (219) cmd ::= SHOW CONSUMERS */ + { 247, -2 }, /* (220) cmd ::= SHOW SUBSCRIPTIONS */ + { 295, 0 }, /* (221) db_name_cond_opt ::= */ + { 295, -2 }, /* (222) db_name_cond_opt ::= db_name NK_DOT */ + { 296, 0 }, /* (223) like_pattern_opt ::= */ + { 296, -2 }, /* (224) like_pattern_opt ::= LIKE NK_STRING */ + { 297, -1 }, /* (225) table_name_cond ::= table_name */ + { 298, 0 }, /* (226) from_db_opt ::= */ + { 298, -2 }, /* (227) from_db_opt ::= FROM db_name */ + { 247, -8 }, /* (228) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ + { 247, -4 }, /* (229) cmd ::= DROP INDEX exists_opt index_name */ + { 300, -10 }, /* (230) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ + { 300, -12 }, /* (231) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ + { 301, -1 }, /* (232) func_list ::= func */ + { 301, -3 }, /* (233) func_list ::= func_list NK_COMMA func */ + { 304, -4 }, /* (234) func ::= function_name NK_LP expression_list NK_RP */ + { 303, 0 }, /* (235) sma_stream_opt ::= */ + { 303, -3 }, /* (236) sma_stream_opt ::= stream_options WATERMARK duration_literal */ + { 303, -3 }, /* (237) sma_stream_opt ::= stream_options MAX_DELAY duration_literal */ + { 247, -6 }, /* (238) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ + { 247, -7 }, /* (239) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ + { 247, -9 }, /* (240) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ + { 247, -7 }, /* (241) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ + { 247, -9 }, /* (242) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ + { 247, -4 }, /* (243) cmd ::= DROP TOPIC exists_opt topic_name */ + { 247, -7 }, /* (244) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + { 247, -2 }, /* (245) cmd ::= DESC full_table_name */ + { 247, -2 }, /* (246) cmd ::= DESCRIBE full_table_name */ + { 247, -3 }, /* (247) cmd ::= RESET QUERY CACHE */ + { 247, -4 }, /* (248) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ + { 310, 0 }, /* (249) analyze_opt ::= */ + { 310, -1 }, /* (250) analyze_opt ::= ANALYZE */ + { 311, 0 }, /* (251) explain_options ::= */ + { 311, -3 }, /* (252) explain_options ::= explain_options VERBOSE NK_BOOL */ + { 311, -3 }, /* (253) explain_options ::= explain_options RATIO NK_FLOAT */ + { 247, -6 }, /* (254) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ + { 247, -10 }, /* (255) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ + { 247, -4 }, /* (256) cmd ::= DROP FUNCTION exists_opt function_name */ + { 312, 0 }, /* (257) agg_func_opt ::= */ + { 312, -1 }, /* (258) agg_func_opt ::= AGGREGATE */ + { 313, 0 }, /* (259) bufsize_opt ::= */ + { 313, -2 }, /* (260) bufsize_opt ::= BUFSIZE NK_INTEGER */ + { 247, -8 }, /* (261) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ + { 247, -4 }, /* (262) cmd ::= DROP STREAM exists_opt stream_name */ + { 315, 0 }, /* (263) into_opt ::= */ + { 315, -2 }, /* (264) into_opt ::= INTO full_table_name */ + { 306, 0 }, /* (265) stream_options ::= */ + { 306, -3 }, /* (266) stream_options ::= stream_options TRIGGER AT_ONCE */ + { 306, -3 }, /* (267) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + { 306, -4 }, /* (268) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + { 306, -3 }, /* (269) stream_options ::= stream_options WATERMARK duration_literal */ + { 247, -3 }, /* (270) cmd ::= KILL CONNECTION NK_INTEGER */ + { 247, -3 }, /* (271) cmd ::= KILL QUERY NK_STRING */ + { 247, -3 }, /* (272) cmd ::= KILL TRANSACTION NK_INTEGER */ + { 247, -2 }, /* (273) cmd ::= BALANCE VGROUP */ + { 247, -4 }, /* (274) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + { 247, -4 }, /* (275) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + { 247, -3 }, /* (276) cmd ::= SPLIT VGROUP NK_INTEGER */ + { 316, -2 }, /* (277) dnode_list ::= DNODE NK_INTEGER */ + { 316, -3 }, /* (278) dnode_list ::= dnode_list DNODE NK_INTEGER */ + { 247, -3 }, /* (279) cmd ::= SYNCDB db_name REPLICA */ + { 247, -4 }, /* (280) cmd ::= DELETE FROM full_table_name where_clause_opt */ + { 247, -1 }, /* (281) cmd ::= query_expression */ + { 250, -1 }, /* (282) literal ::= NK_INTEGER */ + { 250, -1 }, /* (283) literal ::= NK_FLOAT */ + { 250, -1 }, /* (284) literal ::= NK_STRING */ + { 250, -1 }, /* (285) literal ::= NK_BOOL */ + { 250, -2 }, /* (286) literal ::= TIMESTAMP NK_STRING */ + { 250, -1 }, /* (287) literal ::= duration_literal */ + { 250, -1 }, /* (288) literal ::= NULL */ + { 250, -1 }, /* (289) literal ::= NK_QUESTION */ + { 291, -1 }, /* (290) duration_literal ::= NK_VARIABLE */ + { 318, -1 }, /* (291) signed ::= NK_INTEGER */ + { 318, -2 }, /* (292) signed ::= NK_PLUS NK_INTEGER */ + { 318, -2 }, /* (293) signed ::= NK_MINUS NK_INTEGER */ + { 318, -1 }, /* (294) signed ::= NK_FLOAT */ + { 318, -2 }, /* (295) signed ::= NK_PLUS NK_FLOAT */ + { 318, -2 }, /* (296) signed ::= NK_MINUS NK_FLOAT */ + { 280, -1 }, /* (297) signed_literal ::= signed */ + { 280, -1 }, /* (298) signed_literal ::= NK_STRING */ + { 280, -1 }, /* (299) signed_literal ::= NK_BOOL */ + { 280, -2 }, /* (300) signed_literal ::= TIMESTAMP NK_STRING */ + { 280, -1 }, /* (301) signed_literal ::= duration_literal */ + { 280, -1 }, /* (302) signed_literal ::= NULL */ + { 280, -1 }, /* (303) signed_literal ::= literal_func */ + { 283, -1 }, /* (304) literal_list ::= signed_literal */ + { 283, -3 }, /* (305) literal_list ::= literal_list NK_COMMA signed_literal */ + { 258, -1 }, /* (306) db_name ::= NK_ID */ + { 286, -1 }, /* (307) table_name ::= NK_ID */ + { 278, -1 }, /* (308) column_name ::= NK_ID */ + { 293, -1 }, /* (309) function_name ::= NK_ID */ + { 320, -1 }, /* (310) table_alias ::= NK_ID */ + { 321, -1 }, /* (311) column_alias ::= NK_ID */ + { 252, -1 }, /* (312) user_name ::= NK_ID */ + { 299, -1 }, /* (313) index_name ::= NK_ID */ + { 307, -1 }, /* (314) topic_name ::= NK_ID */ + { 314, -1 }, /* (315) stream_name ::= NK_ID */ + { 309, -1 }, /* (316) cgroup_name ::= NK_ID */ + { 322, -1 }, /* (317) expression ::= literal */ + { 322, -1 }, /* (318) expression ::= pseudo_column */ + { 322, -1 }, /* (319) expression ::= column_reference */ + { 322, -1 }, /* (320) expression ::= function_expression */ + { 322, -1 }, /* (321) expression ::= subquery */ + { 322, -3 }, /* (322) expression ::= NK_LP expression NK_RP */ + { 322, -2 }, /* (323) expression ::= NK_PLUS expression */ + { 322, -2 }, /* (324) expression ::= NK_MINUS expression */ + { 322, -3 }, /* (325) expression ::= expression NK_PLUS expression */ + { 322, -3 }, /* (326) expression ::= expression NK_MINUS expression */ + { 322, -3 }, /* (327) expression ::= expression NK_STAR expression */ + { 322, -3 }, /* (328) expression ::= expression NK_SLASH expression */ + { 322, -3 }, /* (329) expression ::= expression NK_REM expression */ + { 322, -3 }, /* (330) expression ::= column_reference NK_ARROW NK_STRING */ + { 322, -3 }, /* (331) expression ::= expression NK_BITAND expression */ + { 322, -3 }, /* (332) expression ::= expression NK_BITOR expression */ + { 305, -1 }, /* (333) expression_list ::= expression */ + { 305, -3 }, /* (334) expression_list ::= expression_list NK_COMMA expression */ + { 324, -1 }, /* (335) column_reference ::= column_name */ + { 324, -3 }, /* (336) column_reference ::= table_name NK_DOT column_name */ + { 323, -1 }, /* (337) pseudo_column ::= ROWTS */ + { 323, -1 }, /* (338) pseudo_column ::= TBNAME */ + { 323, -3 }, /* (339) pseudo_column ::= table_name NK_DOT TBNAME */ + { 323, -1 }, /* (340) pseudo_column ::= QSTARTTS */ + { 323, -1 }, /* (341) pseudo_column ::= QENDTS */ + { 323, -1 }, /* (342) pseudo_column ::= WSTARTTS */ + { 323, -1 }, /* (343) pseudo_column ::= WENDTS */ + { 323, -1 }, /* (344) pseudo_column ::= WDURATION */ + { 325, -4 }, /* (345) function_expression ::= function_name NK_LP expression_list NK_RP */ + { 325, -4 }, /* (346) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + { 325, -6 }, /* (347) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ + { 325, -1 }, /* (348) function_expression ::= literal_func */ + { 319, -3 }, /* (349) literal_func ::= noarg_func NK_LP NK_RP */ + { 319, -1 }, /* (350) literal_func ::= NOW */ + { 329, -1 }, /* (351) noarg_func ::= NOW */ + { 329, -1 }, /* (352) noarg_func ::= TODAY */ + { 329, -1 }, /* (353) noarg_func ::= TIMEZONE */ + { 327, -1 }, /* (354) star_func ::= COUNT */ + { 327, -1 }, /* (355) star_func ::= FIRST */ + { 327, -1 }, /* (356) star_func ::= LAST */ + { 327, -1 }, /* (357) star_func ::= LAST_ROW */ + { 328, -1 }, /* (358) star_func_para_list ::= NK_STAR */ + { 328, -1 }, /* (359) star_func_para_list ::= other_para_list */ + { 330, -1 }, /* (360) other_para_list ::= star_func_para */ + { 330, -3 }, /* (361) other_para_list ::= other_para_list NK_COMMA star_func_para */ + { 331, -1 }, /* (362) star_func_para ::= expression */ + { 331, -3 }, /* (363) star_func_para ::= table_name NK_DOT NK_STAR */ + { 332, -3 }, /* (364) predicate ::= expression compare_op expression */ + { 332, -5 }, /* (365) predicate ::= expression BETWEEN expression AND expression */ + { 332, -6 }, /* (366) predicate ::= expression NOT BETWEEN expression AND expression */ + { 332, -3 }, /* (367) predicate ::= expression IS NULL */ + { 332, -4 }, /* (368) predicate ::= expression IS NOT NULL */ + { 332, -3 }, /* (369) predicate ::= expression in_op in_predicate_value */ + { 333, -1 }, /* (370) compare_op ::= NK_LT */ + { 333, -1 }, /* (371) compare_op ::= NK_GT */ + { 333, -1 }, /* (372) compare_op ::= NK_LE */ + { 333, -1 }, /* (373) compare_op ::= NK_GE */ + { 333, -1 }, /* (374) compare_op ::= NK_NE */ + { 333, -1 }, /* (375) compare_op ::= NK_EQ */ + { 333, -1 }, /* (376) compare_op ::= LIKE */ + { 333, -2 }, /* (377) compare_op ::= NOT LIKE */ + { 333, -1 }, /* (378) compare_op ::= MATCH */ + { 333, -1 }, /* (379) compare_op ::= NMATCH */ + { 333, -1 }, /* (380) compare_op ::= CONTAINS */ + { 334, -1 }, /* (381) in_op ::= IN */ + { 334, -2 }, /* (382) in_op ::= NOT IN */ + { 335, -3 }, /* (383) in_predicate_value ::= NK_LP expression_list NK_RP */ + { 336, -1 }, /* (384) boolean_value_expression ::= boolean_primary */ + { 336, -2 }, /* (385) boolean_value_expression ::= NOT boolean_primary */ + { 336, -3 }, /* (386) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 336, -3 }, /* (387) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 337, -1 }, /* (388) boolean_primary ::= predicate */ + { 337, -3 }, /* (389) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 338, -1 }, /* (390) common_expression ::= expression */ + { 338, -1 }, /* (391) common_expression ::= boolean_value_expression */ + { 339, 0 }, /* (392) from_clause_opt ::= */ + { 339, -2 }, /* (393) from_clause_opt ::= FROM table_reference_list */ + { 340, -1 }, /* (394) table_reference_list ::= table_reference */ + { 340, -3 }, /* (395) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 341, -1 }, /* (396) table_reference ::= table_primary */ + { 341, -1 }, /* (397) table_reference ::= joined_table */ + { 342, -2 }, /* (398) table_primary ::= table_name alias_opt */ + { 342, -4 }, /* (399) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 342, -2 }, /* (400) table_primary ::= subquery alias_opt */ + { 342, -1 }, /* (401) table_primary ::= parenthesized_joined_table */ + { 344, 0 }, /* (402) alias_opt ::= */ + { 344, -1 }, /* (403) alias_opt ::= table_alias */ + { 344, -2 }, /* (404) alias_opt ::= AS table_alias */ + { 345, -3 }, /* (405) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 345, -3 }, /* (406) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 343, -6 }, /* (407) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 346, 0 }, /* (408) join_type ::= */ + { 346, -1 }, /* (409) join_type ::= INNER */ + { 348, -12 }, /* (410) query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + { 349, 0 }, /* (411) set_quantifier_opt ::= */ + { 349, -1 }, /* (412) set_quantifier_opt ::= DISTINCT */ + { 349, -1 }, /* (413) set_quantifier_opt ::= ALL */ + { 350, -1 }, /* (414) select_list ::= NK_STAR */ + { 350, -1 }, /* (415) select_list ::= select_sublist */ + { 358, -1 }, /* (416) select_sublist ::= select_item */ + { 358, -3 }, /* (417) select_sublist ::= select_sublist NK_COMMA select_item */ + { 359, -1 }, /* (418) select_item ::= common_expression */ + { 359, -2 }, /* (419) select_item ::= common_expression column_alias */ + { 359, -3 }, /* (420) select_item ::= common_expression AS column_alias */ + { 359, -3 }, /* (421) select_item ::= table_name NK_DOT NK_STAR */ + { 317, 0 }, /* (422) where_clause_opt ::= */ + { 317, -2 }, /* (423) where_clause_opt ::= WHERE search_condition */ + { 351, 0 }, /* (424) partition_by_clause_opt ::= */ + { 351, -3 }, /* (425) partition_by_clause_opt ::= PARTITION BY expression_list */ + { 355, 0 }, /* (426) twindow_clause_opt ::= */ + { 355, -6 }, /* (427) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + { 355, -4 }, /* (428) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ + { 355, -6 }, /* (429) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 355, -8 }, /* (430) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 302, 0 }, /* (431) sliding_opt ::= */ + { 302, -4 }, /* (432) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 354, 0 }, /* (433) fill_opt ::= */ + { 354, -4 }, /* (434) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 354, -6 }, /* (435) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 360, -1 }, /* (436) fill_mode ::= NONE */ + { 360, -1 }, /* (437) fill_mode ::= PREV */ + { 360, -1 }, /* (438) fill_mode ::= NULL */ + { 360, -1 }, /* (439) fill_mode ::= LINEAR */ + { 360, -1 }, /* (440) fill_mode ::= NEXT */ + { 356, 0 }, /* (441) group_by_clause_opt ::= */ + { 356, -3 }, /* (442) group_by_clause_opt ::= GROUP BY group_by_list */ + { 361, -1 }, /* (443) group_by_list ::= expression */ + { 361, -3 }, /* (444) group_by_list ::= group_by_list NK_COMMA expression */ + { 357, 0 }, /* (445) having_clause_opt ::= */ + { 357, -2 }, /* (446) having_clause_opt ::= HAVING search_condition */ + { 352, 0 }, /* (447) range_opt ::= */ + { 352, -6 }, /* (448) range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ + { 353, 0 }, /* (449) every_opt ::= */ + { 353, -4 }, /* (450) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + { 308, -4 }, /* (451) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 362, -1 }, /* (452) query_expression_body ::= query_primary */ + { 362, -4 }, /* (453) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + { 362, -3 }, /* (454) query_expression_body ::= query_expression_body UNION query_expression_body */ + { 366, -1 }, /* (455) query_primary ::= query_specification */ + { 366, -6 }, /* (456) query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ + { 363, 0 }, /* (457) order_by_clause_opt ::= */ + { 363, -3 }, /* (458) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 364, 0 }, /* (459) slimit_clause_opt ::= */ + { 364, -2 }, /* (460) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 364, -4 }, /* (461) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 364, -4 }, /* (462) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 365, 0 }, /* (463) limit_clause_opt ::= */ + { 365, -2 }, /* (464) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 365, -4 }, /* (465) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 365, -4 }, /* (466) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 326, -3 }, /* (467) subquery ::= NK_LP query_expression NK_RP */ + { 347, -1 }, /* (468) search_condition ::= common_expression */ + { 367, -1 }, /* (469) sort_specification_list ::= sort_specification */ + { 367, -3 }, /* (470) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 368, -3 }, /* (471) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + { 369, 0 }, /* (472) ordering_specification_opt ::= */ + { 369, -1 }, /* (473) ordering_specification_opt ::= ASC */ + { 369, -1 }, /* (474) ordering_specification_opt ::= DESC */ + { 370, 0 }, /* (475) null_ordering_opt ::= */ + { 370, -2 }, /* (476) null_ordering_opt ::= NULLS FIRST */ + { 370, -2 }, /* (477) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -3204,11 +3259,11 @@ static YYACTIONTYPE yy_reduce( YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,247,&yymsp[0].minor); + yy_destructor(yypParser,248,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,248,&yymsp[0].minor); + yy_destructor(yypParser,249,&yymsp[0].minor); break; case 2: /* account_options ::= */ { } @@ -3222,20 +3277,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,247,&yymsp[-2].minor); +{ yy_destructor(yypParser,248,&yymsp[-2].minor); { } - yy_destructor(yypParser,249,&yymsp[0].minor); + yy_destructor(yypParser,250,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ -{ yy_destructor(yypParser,250,&yymsp[0].minor); +{ yy_destructor(yypParser,251,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ -{ yy_destructor(yypParser,248,&yymsp[-1].minor); +{ yy_destructor(yypParser,249,&yymsp[-1].minor); { } - yy_destructor(yypParser,250,&yymsp[0].minor); + yy_destructor(yypParser,251,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ @@ -3249,72 +3304,72 @@ static YYACTIONTYPE yy_reduce( case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22); case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); { } - yy_destructor(yypParser,249,&yymsp[0].minor); + yy_destructor(yypParser,250,&yymsp[0].minor); break; case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ -{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy109, &yymsp[-1].minor.yy0, yymsp[0].minor.yy323); } +{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy729, &yymsp[-1].minor.yy0, yymsp[0].minor.yy439); } break; case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy109, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy729, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } break; case 26: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy109, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy729, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } break; case 27: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy109, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy729, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } break; case 28: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy109); } +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy729); } break; case 29: /* sysinfo_opt ::= */ -{ yymsp[1].minor.yy323 = 1; } +{ yymsp[1].minor.yy439 = 1; } break; case 30: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ -{ yymsp[-1].minor.yy323 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } +{ yymsp[-1].minor.yy439 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } break; case 31: /* cmd ::= GRANT privileges ON priv_level TO user_name */ -{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy209, &yymsp[-2].minor.yy109, &yymsp[0].minor.yy109); } +{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy179, &yymsp[-2].minor.yy729, &yymsp[0].minor.yy729); } break; case 32: /* cmd ::= REVOKE privileges ON priv_level FROM user_name */ -{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy209, &yymsp[-2].minor.yy109, &yymsp[0].minor.yy109); } +{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy179, &yymsp[-2].minor.yy729, &yymsp[0].minor.yy729); } break; case 33: /* privileges ::= ALL */ -{ yymsp[0].minor.yy209 = PRIVILEGE_TYPE_ALL; } +{ yymsp[0].minor.yy179 = PRIVILEGE_TYPE_ALL; } break; case 34: /* privileges ::= priv_type_list */ case 35: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==35); -{ yylhsminor.yy209 = yymsp[0].minor.yy209; } - yymsp[0].minor.yy209 = yylhsminor.yy209; +{ yylhsminor.yy179 = yymsp[0].minor.yy179; } + yymsp[0].minor.yy179 = yylhsminor.yy179; break; case 36: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ -{ yylhsminor.yy209 = yymsp[-2].minor.yy209 | yymsp[0].minor.yy209; } - yymsp[-2].minor.yy209 = yylhsminor.yy209; +{ yylhsminor.yy179 = yymsp[-2].minor.yy179 | yymsp[0].minor.yy179; } + yymsp[-2].minor.yy179 = yylhsminor.yy179; break; case 37: /* priv_type ::= READ */ -{ yymsp[0].minor.yy209 = PRIVILEGE_TYPE_READ; } +{ yymsp[0].minor.yy179 = PRIVILEGE_TYPE_READ; } break; case 38: /* priv_type ::= WRITE */ -{ yymsp[0].minor.yy209 = PRIVILEGE_TYPE_WRITE; } +{ yymsp[0].minor.yy179 = PRIVILEGE_TYPE_WRITE; } break; case 39: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ -{ yylhsminor.yy109 = yymsp[-2].minor.yy0; } - yymsp[-2].minor.yy109 = yylhsminor.yy109; +{ yylhsminor.yy729 = yymsp[-2].minor.yy0; } + yymsp[-2].minor.yy729 = yylhsminor.yy729; break; case 40: /* priv_level ::= db_name NK_DOT NK_STAR */ -{ yylhsminor.yy109 = yymsp[-2].minor.yy109; } - yymsp[-2].minor.yy109 = yylhsminor.yy109; +{ yylhsminor.yy729 = yymsp[-2].minor.yy729; } + yymsp[-2].minor.yy729 = yylhsminor.yy729; break; case 41: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy109, NULL); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy729, NULL); } break; case 42: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy109, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy729, &yymsp[0].minor.yy0); } break; case 43: /* cmd ::= DROP DNODE NK_INTEGER */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy0); } break; case 44: /* cmd ::= DROP DNODE dnode_endpoint */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy109); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy729); } break; case 45: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } @@ -3331,26 +3386,26 @@ static YYACTIONTYPE yy_reduce( case 49: /* dnode_endpoint ::= NK_STRING */ case 50: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==50); case 51: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==51); - case 305: /* db_name ::= NK_ID */ yytestcase(yyruleno==305); - case 306: /* table_name ::= NK_ID */ yytestcase(yyruleno==306); - case 307: /* column_name ::= NK_ID */ yytestcase(yyruleno==307); - case 308: /* function_name ::= NK_ID */ yytestcase(yyruleno==308); - case 309: /* table_alias ::= NK_ID */ yytestcase(yyruleno==309); - case 310: /* column_alias ::= NK_ID */ yytestcase(yyruleno==310); - case 311: /* user_name ::= NK_ID */ yytestcase(yyruleno==311); - case 312: /* index_name ::= NK_ID */ yytestcase(yyruleno==312); - case 313: /* topic_name ::= NK_ID */ yytestcase(yyruleno==313); - case 314: /* stream_name ::= NK_ID */ yytestcase(yyruleno==314); - case 315: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==315); - case 350: /* noarg_func ::= NOW */ yytestcase(yyruleno==350); - case 351: /* noarg_func ::= TODAY */ yytestcase(yyruleno==351); - case 352: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==352); - case 353: /* star_func ::= COUNT */ yytestcase(yyruleno==353); - case 354: /* star_func ::= FIRST */ yytestcase(yyruleno==354); - case 355: /* star_func ::= LAST */ yytestcase(yyruleno==355); - case 356: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==356); -{ yylhsminor.yy109 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy109 = yylhsminor.yy109; + case 306: /* db_name ::= NK_ID */ yytestcase(yyruleno==306); + case 307: /* table_name ::= NK_ID */ yytestcase(yyruleno==307); + case 308: /* column_name ::= NK_ID */ yytestcase(yyruleno==308); + case 309: /* function_name ::= NK_ID */ yytestcase(yyruleno==309); + case 310: /* table_alias ::= NK_ID */ yytestcase(yyruleno==310); + case 311: /* column_alias ::= NK_ID */ yytestcase(yyruleno==311); + case 312: /* user_name ::= NK_ID */ yytestcase(yyruleno==312); + case 313: /* index_name ::= NK_ID */ yytestcase(yyruleno==313); + case 314: /* topic_name ::= NK_ID */ yytestcase(yyruleno==314); + case 315: /* stream_name ::= NK_ID */ yytestcase(yyruleno==315); + case 316: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==316); + case 351: /* noarg_func ::= NOW */ yytestcase(yyruleno==351); + case 352: /* noarg_func ::= TODAY */ yytestcase(yyruleno==352); + case 353: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==353); + case 354: /* star_func ::= COUNT */ yytestcase(yyruleno==354); + case 355: /* star_func ::= FIRST */ yytestcase(yyruleno==355); + case 356: /* star_func ::= LAST */ yytestcase(yyruleno==356); + case 357: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==357); +{ yylhsminor.yy729 = yymsp[0].minor.yy0; } + yymsp[0].minor.yy729 = yylhsminor.yy729; break; case 52: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } @@ -3383,1215 +3438,1218 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 62: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy437, &yymsp[-1].minor.yy109, yymsp[0].minor.yy452); } +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy215, &yymsp[-1].minor.yy729, yymsp[0].minor.yy714); } break; case 63: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy437, &yymsp[0].minor.yy109); } +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy215, &yymsp[0].minor.yy729); } break; case 64: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy109); } +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy729); } break; case 65: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy109, yymsp[0].minor.yy452); } +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy729, yymsp[0].minor.yy714); } + break; + case 66: /* cmd ::= FLUSH DATABASE db_name */ +{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy729); } + break; + case 67: /* not_exists_opt ::= IF NOT EXISTS */ +{ yymsp[-2].minor.yy215 = true; } + break; + case 68: /* not_exists_opt ::= */ + case 70: /* exists_opt ::= */ yytestcase(yyruleno==70); + case 249: /* analyze_opt ::= */ yytestcase(yyruleno==249); + case 257: /* agg_func_opt ::= */ yytestcase(yyruleno==257); + case 411: /* set_quantifier_opt ::= */ yytestcase(yyruleno==411); +{ yymsp[1].minor.yy215 = false; } break; - case 66: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy437 = true; } + case 69: /* exists_opt ::= IF EXISTS */ +{ yymsp[-1].minor.yy215 = true; } break; - case 67: /* not_exists_opt ::= */ - case 69: /* exists_opt ::= */ yytestcase(yyruleno==69); - case 248: /* analyze_opt ::= */ yytestcase(yyruleno==248); - case 256: /* agg_func_opt ::= */ yytestcase(yyruleno==256); - case 410: /* set_quantifier_opt ::= */ yytestcase(yyruleno==410); -{ yymsp[1].minor.yy437 = false; } + case 71: /* db_options ::= */ +{ yymsp[1].minor.yy714 = createDefaultDatabaseOptions(pCxt); } break; - case 68: /* exists_opt ::= IF EXISTS */ -{ yymsp[-1].minor.yy437 = true; } + case 72: /* db_options ::= db_options BUFFER NK_INTEGER */ +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 70: /* db_options ::= */ -{ yymsp[1].minor.yy452 = createDefaultDatabaseOptions(pCxt); } + case 73: /* db_options ::= db_options CACHELAST NK_INTEGER */ +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 71: /* db_options ::= db_options BUFFER NK_INTEGER */ -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 74: /* db_options ::= db_options COMP NK_INTEGER */ +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_COMP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 72: /* db_options ::= db_options CACHELAST NK_INTEGER */ -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 75: /* db_options ::= db_options DURATION NK_INTEGER */ + case 76: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==76); +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 73: /* db_options ::= db_options COMP NK_INTEGER */ -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_COMP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 77: /* db_options ::= db_options FSYNC NK_INTEGER */ +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 74: /* db_options ::= db_options DURATION NK_INTEGER */ - case 75: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==75); -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 78: /* db_options ::= db_options MAXROWS NK_INTEGER */ +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 76: /* db_options ::= db_options FSYNC NK_INTEGER */ -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 79: /* db_options ::= db_options MINROWS NK_INTEGER */ +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 77: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 80: /* db_options ::= db_options KEEP integer_list */ + case 81: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==81); +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_KEEP, yymsp[0].minor.yy656); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 78: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 82: /* db_options ::= db_options PAGES NK_INTEGER */ +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 79: /* db_options ::= db_options KEEP integer_list */ - case 80: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==80); -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_KEEP, yymsp[0].minor.yy404); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; - break; - case 81: /* db_options ::= db_options PAGES NK_INTEGER */ -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; - break; - case 82: /* db_options ::= db_options PAGESIZE NK_INTEGER */ -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; - break; - case 83: /* db_options ::= db_options PRECISION NK_STRING */ -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; - break; - case 84: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; - break; - case 85: /* db_options ::= db_options STRICT NK_INTEGER */ -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_STRICT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; - break; - case 86: /* db_options ::= db_options WAL NK_INTEGER */ -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_WAL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; - break; - case 87: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; - break; - case 88: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; - break; - case 89: /* db_options ::= db_options RETENTIONS retention_list */ -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_RETENTIONS, yymsp[0].minor.yy404); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; - break; - case 90: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ -{ yylhsminor.yy452 = setDatabaseOption(pCxt, yymsp[-2].minor.yy452, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; - break; - case 91: /* alter_db_options ::= alter_db_option */ -{ yylhsminor.yy452 = createAlterDatabaseOptions(pCxt); yylhsminor.yy452 = setAlterDatabaseOption(pCxt, yylhsminor.yy452, &yymsp[0].minor.yy85); } - yymsp[0].minor.yy452 = yylhsminor.yy452; - break; - case 92: /* alter_db_options ::= alter_db_options alter_db_option */ -{ yylhsminor.yy452 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy452, &yymsp[0].minor.yy85); } - yymsp[-1].minor.yy452 = yylhsminor.yy452; - break; - case 93: /* alter_db_option ::= BUFFER NK_INTEGER */ -{ yymsp[-1].minor.yy85.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy85.val = yymsp[0].minor.yy0; } - break; - case 94: /* alter_db_option ::= CACHELAST NK_INTEGER */ -{ yymsp[-1].minor.yy85.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy85.val = yymsp[0].minor.yy0; } - break; - case 95: /* alter_db_option ::= FSYNC NK_INTEGER */ -{ yymsp[-1].minor.yy85.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy85.val = yymsp[0].minor.yy0; } - break; - case 96: /* alter_db_option ::= KEEP integer_list */ - case 97: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==97); -{ yymsp[-1].minor.yy85.type = DB_OPTION_KEEP; yymsp[-1].minor.yy85.pList = yymsp[0].minor.yy404; } - break; - case 98: /* alter_db_option ::= PAGES NK_INTEGER */ -{ yymsp[-1].minor.yy85.type = DB_OPTION_PAGES; yymsp[-1].minor.yy85.val = yymsp[0].minor.yy0; } - break; - case 99: /* alter_db_option ::= REPLICA NK_INTEGER */ -{ yymsp[-1].minor.yy85.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy85.val = yymsp[0].minor.yy0; } - break; - case 100: /* alter_db_option ::= STRICT NK_INTEGER */ -{ yymsp[-1].minor.yy85.type = DB_OPTION_STRICT; yymsp[-1].minor.yy85.val = yymsp[0].minor.yy0; } - break; - case 101: /* alter_db_option ::= WAL NK_INTEGER */ -{ yymsp[-1].minor.yy85.type = DB_OPTION_WAL; yymsp[-1].minor.yy85.val = yymsp[0].minor.yy0; } - break; - case 102: /* integer_list ::= NK_INTEGER */ -{ yylhsminor.yy404 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy404 = yylhsminor.yy404; - break; - case 103: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ - case 277: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==277); -{ yylhsminor.yy404 = addNodeToList(pCxt, yymsp[-2].minor.yy404, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy404 = yylhsminor.yy404; - break; - case 104: /* variable_list ::= NK_VARIABLE */ -{ yylhsminor.yy404 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy404 = yylhsminor.yy404; - break; - case 105: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -{ yylhsminor.yy404 = addNodeToList(pCxt, yymsp[-2].minor.yy404, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy404 = yylhsminor.yy404; - break; - case 106: /* retention_list ::= retention */ - case 126: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==126); - case 129: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==129); - case 136: /* column_def_list ::= column_def */ yytestcase(yyruleno==136); - case 179: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==179); - case 184: /* col_name_list ::= col_name */ yytestcase(yyruleno==184); - case 231: /* func_list ::= func */ yytestcase(yyruleno==231); - case 303: /* literal_list ::= signed_literal */ yytestcase(yyruleno==303); - case 359: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==359); - case 415: /* select_sublist ::= select_item */ yytestcase(yyruleno==415); - case 468: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==468); -{ yylhsminor.yy404 = createNodeList(pCxt, yymsp[0].minor.yy452); } - yymsp[0].minor.yy404 = yylhsminor.yy404; - break; - case 107: /* retention_list ::= retention_list NK_COMMA retention */ - case 137: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==137); - case 180: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==180); - case 185: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==185); - case 232: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==232); - case 304: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==304); - case 360: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==360); - case 416: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==416); - case 469: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==469); -{ yylhsminor.yy404 = addNodeToList(pCxt, yymsp[-2].minor.yy404, yymsp[0].minor.yy452); } - yymsp[-2].minor.yy404 = yylhsminor.yy404; - break; - case 108: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ -{ yylhsminor.yy452 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; - break; - case 109: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - case 111: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==111); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy437, yymsp[-5].minor.yy452, yymsp[-3].minor.yy404, yymsp[-1].minor.yy404, yymsp[0].minor.yy452); } - break; - case 110: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy404); } - break; - case 112: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy404); } - break; - case 113: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy437, yymsp[0].minor.yy452); } - break; - case 114: /* cmd ::= ALTER TABLE alter_table_clause */ - case 115: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==115); - case 280: /* cmd ::= query_expression */ yytestcase(yyruleno==280); -{ pCxt->pRootNode = yymsp[0].minor.yy452; } - break; - case 116: /* alter_table_clause ::= full_table_name alter_table_options */ -{ yylhsminor.yy452 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } - yymsp[-1].minor.yy452 = yylhsminor.yy452; - break; - case 117: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -{ yylhsminor.yy452 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy452, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy109, yymsp[0].minor.yy504); } - yymsp[-4].minor.yy452 = yylhsminor.yy452; - break; - case 118: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ -{ yylhsminor.yy452 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy452, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy109); } - yymsp[-3].minor.yy452 = yylhsminor.yy452; - break; - case 119: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -{ yylhsminor.yy452 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy452, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy109, yymsp[0].minor.yy504); } - yymsp[-4].minor.yy452 = yylhsminor.yy452; + case 83: /* db_options ::= db_options PAGESIZE NK_INTEGER */ +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; + break; + case 84: /* db_options ::= db_options PRECISION NK_STRING */ +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; + break; + case 85: /* db_options ::= db_options REPLICA NK_INTEGER */ +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; + break; + case 86: /* db_options ::= db_options STRICT NK_INTEGER */ +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_STRICT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; + break; + case 87: /* db_options ::= db_options WAL NK_INTEGER */ +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_WAL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; + break; + case 88: /* db_options ::= db_options VGROUPS NK_INTEGER */ +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; + break; + case 89: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; + break; + case 90: /* db_options ::= db_options RETENTIONS retention_list */ +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_RETENTIONS, yymsp[0].minor.yy656); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; + break; + case 91: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ +{ yylhsminor.yy714 = setDatabaseOption(pCxt, yymsp[-2].minor.yy714, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; + break; + case 92: /* alter_db_options ::= alter_db_option */ +{ yylhsminor.yy714 = createAlterDatabaseOptions(pCxt); yylhsminor.yy714 = setAlterDatabaseOption(pCxt, yylhsminor.yy714, &yymsp[0].minor.yy81); } + yymsp[0].minor.yy714 = yylhsminor.yy714; + break; + case 93: /* alter_db_options ::= alter_db_options alter_db_option */ +{ yylhsminor.yy714 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy714, &yymsp[0].minor.yy81); } + yymsp[-1].minor.yy714 = yylhsminor.yy714; + break; + case 94: /* alter_db_option ::= BUFFER NK_INTEGER */ +{ yymsp[-1].minor.yy81.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy81.val = yymsp[0].minor.yy0; } + break; + case 95: /* alter_db_option ::= CACHELAST NK_INTEGER */ +{ yymsp[-1].minor.yy81.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy81.val = yymsp[0].minor.yy0; } + break; + case 96: /* alter_db_option ::= FSYNC NK_INTEGER */ +{ yymsp[-1].minor.yy81.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy81.val = yymsp[0].minor.yy0; } + break; + case 97: /* alter_db_option ::= KEEP integer_list */ + case 98: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==98); +{ yymsp[-1].minor.yy81.type = DB_OPTION_KEEP; yymsp[-1].minor.yy81.pList = yymsp[0].minor.yy656; } + break; + case 99: /* alter_db_option ::= PAGES NK_INTEGER */ +{ yymsp[-1].minor.yy81.type = DB_OPTION_PAGES; yymsp[-1].minor.yy81.val = yymsp[0].minor.yy0; } + break; + case 100: /* alter_db_option ::= REPLICA NK_INTEGER */ +{ yymsp[-1].minor.yy81.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy81.val = yymsp[0].minor.yy0; } + break; + case 101: /* alter_db_option ::= STRICT NK_INTEGER */ +{ yymsp[-1].minor.yy81.type = DB_OPTION_STRICT; yymsp[-1].minor.yy81.val = yymsp[0].minor.yy0; } + break; + case 102: /* alter_db_option ::= WAL NK_INTEGER */ +{ yymsp[-1].minor.yy81.type = DB_OPTION_WAL; yymsp[-1].minor.yy81.val = yymsp[0].minor.yy0; } + break; + case 103: /* integer_list ::= NK_INTEGER */ +{ yylhsminor.yy656 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy656 = yylhsminor.yy656; + break; + case 104: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ + case 278: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==278); +{ yylhsminor.yy656 = addNodeToList(pCxt, yymsp[-2].minor.yy656, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy656 = yylhsminor.yy656; + break; + case 105: /* variable_list ::= NK_VARIABLE */ +{ yylhsminor.yy656 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy656 = yylhsminor.yy656; + break; + case 106: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ +{ yylhsminor.yy656 = addNodeToList(pCxt, yymsp[-2].minor.yy656, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy656 = yylhsminor.yy656; + break; + case 107: /* retention_list ::= retention */ + case 127: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==127); + case 130: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==130); + case 137: /* column_def_list ::= column_def */ yytestcase(yyruleno==137); + case 180: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==180); + case 185: /* col_name_list ::= col_name */ yytestcase(yyruleno==185); + case 232: /* func_list ::= func */ yytestcase(yyruleno==232); + case 304: /* literal_list ::= signed_literal */ yytestcase(yyruleno==304); + case 360: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==360); + case 416: /* select_sublist ::= select_item */ yytestcase(yyruleno==416); + case 469: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==469); +{ yylhsminor.yy656 = createNodeList(pCxt, yymsp[0].minor.yy714); } + yymsp[0].minor.yy656 = yylhsminor.yy656; + break; + case 108: /* retention_list ::= retention_list NK_COMMA retention */ + case 138: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==138); + case 181: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==181); + case 186: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==186); + case 233: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==233); + case 305: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==305); + case 361: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==361); + case 417: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==417); + case 470: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==470); +{ yylhsminor.yy656 = addNodeToList(pCxt, yymsp[-2].minor.yy656, yymsp[0].minor.yy714); } + yymsp[-2].minor.yy656 = yylhsminor.yy656; + break; + case 109: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ +{ yylhsminor.yy714 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; + break; + case 110: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + case 112: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==112); +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy215, yymsp[-5].minor.yy714, yymsp[-3].minor.yy656, yymsp[-1].minor.yy656, yymsp[0].minor.yy714); } + break; + case 111: /* cmd ::= CREATE TABLE multi_create_clause */ +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy656); } + break; + case 113: /* cmd ::= DROP TABLE multi_drop_clause */ +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy656); } + break; + case 114: /* cmd ::= DROP STABLE exists_opt full_table_name */ +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy215, yymsp[0].minor.yy714); } + break; + case 115: /* cmd ::= ALTER TABLE alter_table_clause */ + case 116: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==116); + case 281: /* cmd ::= query_expression */ yytestcase(yyruleno==281); +{ pCxt->pRootNode = yymsp[0].minor.yy714; } + break; + case 117: /* alter_table_clause ::= full_table_name alter_table_options */ +{ yylhsminor.yy714 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy714, yymsp[0].minor.yy714); } + yymsp[-1].minor.yy714 = yylhsminor.yy714; + break; + case 118: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ +{ yylhsminor.yy714 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy714, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy729, yymsp[0].minor.yy490); } + yymsp[-4].minor.yy714 = yylhsminor.yy714; + break; + case 119: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ +{ yylhsminor.yy714 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy714, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy729); } + yymsp[-3].minor.yy714 = yylhsminor.yy714; + break; + case 120: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ +{ yylhsminor.yy714 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy714, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy729, yymsp[0].minor.yy490); } + yymsp[-4].minor.yy714 = yylhsminor.yy714; break; - case 120: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -{ yylhsminor.yy452 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy452, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy109, &yymsp[0].minor.yy109); } - yymsp[-4].minor.yy452 = yylhsminor.yy452; - break; - case 121: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -{ yylhsminor.yy452 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy452, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy109, yymsp[0].minor.yy504); } - yymsp[-4].minor.yy452 = yylhsminor.yy452; - break; - case 122: /* alter_table_clause ::= full_table_name DROP TAG column_name */ -{ yylhsminor.yy452 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy452, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy109); } - yymsp[-3].minor.yy452 = yylhsminor.yy452; + case 121: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ +{ yylhsminor.yy714 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy714, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy729, &yymsp[0].minor.yy729); } + yymsp[-4].minor.yy714 = yylhsminor.yy714; + break; + case 122: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ +{ yylhsminor.yy714 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy714, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy729, yymsp[0].minor.yy490); } + yymsp[-4].minor.yy714 = yylhsminor.yy714; + break; + case 123: /* alter_table_clause ::= full_table_name DROP TAG column_name */ +{ yylhsminor.yy714 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy714, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy729); } + yymsp[-3].minor.yy714 = yylhsminor.yy714; break; - case 123: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -{ yylhsminor.yy452 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy452, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy109, yymsp[0].minor.yy504); } - yymsp[-4].minor.yy452 = yylhsminor.yy452; + case 124: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ +{ yylhsminor.yy714 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy714, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy729, yymsp[0].minor.yy490); } + yymsp[-4].minor.yy714 = yylhsminor.yy714; break; - case 124: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -{ yylhsminor.yy452 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy452, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy109, &yymsp[0].minor.yy109); } - yymsp[-4].minor.yy452 = yylhsminor.yy452; - break; - case 125: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ -{ yylhsminor.yy452 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy452, &yymsp[-2].minor.yy109, yymsp[0].minor.yy452); } - yymsp[-5].minor.yy452 = yylhsminor.yy452; + case 125: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ +{ yylhsminor.yy714 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy714, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy729, &yymsp[0].minor.yy729); } + yymsp[-4].minor.yy714 = yylhsminor.yy714; + break; + case 126: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ +{ yylhsminor.yy714 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy714, &yymsp[-2].minor.yy729, yymsp[0].minor.yy714); } + yymsp[-5].minor.yy714 = yylhsminor.yy714; break; - case 127: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 130: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==130); -{ yylhsminor.yy404 = addNodeToList(pCxt, yymsp[-1].minor.yy404, yymsp[0].minor.yy452); } - yymsp[-1].minor.yy404 = yylhsminor.yy404; + case 128: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ + case 131: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==131); +{ yylhsminor.yy656 = addNodeToList(pCxt, yymsp[-1].minor.yy656, yymsp[0].minor.yy714); } + yymsp[-1].minor.yy656 = yylhsminor.yy656; break; - case 128: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ -{ yylhsminor.yy452 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy437, yymsp[-8].minor.yy452, yymsp[-6].minor.yy452, yymsp[-5].minor.yy404, yymsp[-2].minor.yy404, yymsp[0].minor.yy452); } - yymsp[-9].minor.yy452 = yylhsminor.yy452; + case 129: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ +{ yylhsminor.yy714 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy215, yymsp[-8].minor.yy714, yymsp[-6].minor.yy714, yymsp[-5].minor.yy656, yymsp[-2].minor.yy656, yymsp[0].minor.yy714); } + yymsp[-9].minor.yy714 = yylhsminor.yy714; break; - case 131: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy452 = createDropTableClause(pCxt, yymsp[-1].minor.yy437, yymsp[0].minor.yy452); } - yymsp[-1].minor.yy452 = yylhsminor.yy452; + case 132: /* drop_table_clause ::= exists_opt full_table_name */ +{ yylhsminor.yy714 = createDropTableClause(pCxt, yymsp[-1].minor.yy215, yymsp[0].minor.yy714); } + yymsp[-1].minor.yy714 = yylhsminor.yy714; break; - case 132: /* specific_tags_opt ::= */ - case 163: /* tags_def_opt ::= */ yytestcase(yyruleno==163); - case 423: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==423); - case 440: /* group_by_clause_opt ::= */ yytestcase(yyruleno==440); - case 456: /* order_by_clause_opt ::= */ yytestcase(yyruleno==456); -{ yymsp[1].minor.yy404 = NULL; } + case 133: /* specific_tags_opt ::= */ + case 164: /* tags_def_opt ::= */ yytestcase(yyruleno==164); + case 424: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==424); + case 441: /* group_by_clause_opt ::= */ yytestcase(yyruleno==441); + case 457: /* order_by_clause_opt ::= */ yytestcase(yyruleno==457); +{ yymsp[1].minor.yy656 = NULL; } break; - case 133: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ -{ yymsp[-2].minor.yy404 = yymsp[-1].minor.yy404; } + case 134: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ +{ yymsp[-2].minor.yy656 = yymsp[-1].minor.yy656; } break; - case 134: /* full_table_name ::= table_name */ -{ yylhsminor.yy452 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy109, NULL); } - yymsp[0].minor.yy452 = yylhsminor.yy452; + case 135: /* full_table_name ::= table_name */ +{ yylhsminor.yy714 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy729, NULL); } + yymsp[0].minor.yy714 = yylhsminor.yy714; break; - case 135: /* full_table_name ::= db_name NK_DOT table_name */ -{ yylhsminor.yy452 = createRealTableNode(pCxt, &yymsp[-2].minor.yy109, &yymsp[0].minor.yy109, NULL); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 136: /* full_table_name ::= db_name NK_DOT table_name */ +{ yylhsminor.yy714 = createRealTableNode(pCxt, &yymsp[-2].minor.yy729, &yymsp[0].minor.yy729, NULL); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 138: /* column_def ::= column_name type_name */ -{ yylhsminor.yy452 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy109, yymsp[0].minor.yy504, NULL); } - yymsp[-1].minor.yy452 = yylhsminor.yy452; + case 139: /* column_def ::= column_name type_name */ +{ yylhsminor.yy714 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy729, yymsp[0].minor.yy490, NULL); } + yymsp[-1].minor.yy714 = yylhsminor.yy714; break; - case 139: /* column_def ::= column_name type_name COMMENT NK_STRING */ -{ yylhsminor.yy452 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy109, yymsp[-2].minor.yy504, &yymsp[0].minor.yy0); } - yymsp[-3].minor.yy452 = yylhsminor.yy452; + case 140: /* column_def ::= column_name type_name COMMENT NK_STRING */ +{ yylhsminor.yy714 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy729, yymsp[-2].minor.yy490, &yymsp[0].minor.yy0); } + yymsp[-3].minor.yy714 = yylhsminor.yy714; break; - case 140: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_BOOL); } + case 141: /* type_name ::= BOOL */ +{ yymsp[0].minor.yy490 = createDataType(TSDB_DATA_TYPE_BOOL); } break; - case 141: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_TINYINT); } + case 142: /* type_name ::= TINYINT */ +{ yymsp[0].minor.yy490 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; - case 142: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_SMALLINT); } + case 143: /* type_name ::= SMALLINT */ +{ yymsp[0].minor.yy490 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; - case 143: /* type_name ::= INT */ - case 144: /* type_name ::= INTEGER */ yytestcase(yyruleno==144); -{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_INT); } + case 144: /* type_name ::= INT */ + case 145: /* type_name ::= INTEGER */ yytestcase(yyruleno==145); +{ yymsp[0].minor.yy490 = createDataType(TSDB_DATA_TYPE_INT); } break; - case 145: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_BIGINT); } + case 146: /* type_name ::= BIGINT */ +{ yymsp[0].minor.yy490 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; - case 146: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_FLOAT); } + case 147: /* type_name ::= FLOAT */ +{ yymsp[0].minor.yy490 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; - case 147: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_DOUBLE); } + case 148: /* type_name ::= DOUBLE */ +{ yymsp[0].minor.yy490 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; - case 148: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy504 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } + case 149: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy490 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; - case 149: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } + case 150: /* type_name ::= TIMESTAMP */ +{ yymsp[0].minor.yy490 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; - case 150: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy504 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } + case 151: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy490 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; - case 151: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy504 = createDataType(TSDB_DATA_TYPE_UTINYINT); } + case 152: /* type_name ::= TINYINT UNSIGNED */ +{ yymsp[-1].minor.yy490 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; - case 152: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy504 = createDataType(TSDB_DATA_TYPE_USMALLINT); } + case 153: /* type_name ::= SMALLINT UNSIGNED */ +{ yymsp[-1].minor.yy490 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; - case 153: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy504 = createDataType(TSDB_DATA_TYPE_UINT); } + case 154: /* type_name ::= INT UNSIGNED */ +{ yymsp[-1].minor.yy490 = createDataType(TSDB_DATA_TYPE_UINT); } break; - case 154: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy504 = createDataType(TSDB_DATA_TYPE_UBIGINT); } + case 155: /* type_name ::= BIGINT UNSIGNED */ +{ yymsp[-1].minor.yy490 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; - case 155: /* type_name ::= JSON */ -{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_JSON); } + case 156: /* type_name ::= JSON */ +{ yymsp[0].minor.yy490 = createDataType(TSDB_DATA_TYPE_JSON); } break; - case 156: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy504 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } + case 157: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy490 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; - case 157: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } + case 158: /* type_name ::= MEDIUMBLOB */ +{ yymsp[0].minor.yy490 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; - case 158: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_BLOB); } + case 159: /* type_name ::= BLOB */ +{ yymsp[0].minor.yy490 = createDataType(TSDB_DATA_TYPE_BLOB); } break; - case 159: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy504 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } + case 160: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy490 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; - case 160: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy504 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 161: /* type_name ::= DECIMAL */ +{ yymsp[0].minor.yy490 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 161: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy504 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 162: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy490 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 162: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy504 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 163: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ +{ yymsp[-5].minor.yy490 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 164: /* tags_def_opt ::= tags_def */ - case 358: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==358); - case 414: /* select_list ::= select_sublist */ yytestcase(yyruleno==414); -{ yylhsminor.yy404 = yymsp[0].minor.yy404; } - yymsp[0].minor.yy404 = yylhsminor.yy404; + case 165: /* tags_def_opt ::= tags_def */ + case 359: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==359); + case 415: /* select_list ::= select_sublist */ yytestcase(yyruleno==415); +{ yylhsminor.yy656 = yymsp[0].minor.yy656; } + yymsp[0].minor.yy656 = yylhsminor.yy656; break; - case 165: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ -{ yymsp[-3].minor.yy404 = yymsp[-1].minor.yy404; } + case 166: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ +{ yymsp[-3].minor.yy656 = yymsp[-1].minor.yy656; } break; - case 166: /* table_options ::= */ -{ yymsp[1].minor.yy452 = createDefaultTableOptions(pCxt); } + case 167: /* table_options ::= */ +{ yymsp[1].minor.yy714 = createDefaultTableOptions(pCxt); } break; - case 167: /* table_options ::= table_options COMMENT NK_STRING */ -{ yylhsminor.yy452 = setTableOption(pCxt, yymsp[-2].minor.yy452, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 168: /* table_options ::= table_options COMMENT NK_STRING */ +{ yylhsminor.yy714 = setTableOption(pCxt, yymsp[-2].minor.yy714, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 168: /* table_options ::= table_options MAX_DELAY duration_list */ -{ yylhsminor.yy452 = setTableOption(pCxt, yymsp[-2].minor.yy452, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy404); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 169: /* table_options ::= table_options MAX_DELAY duration_list */ +{ yylhsminor.yy714 = setTableOption(pCxt, yymsp[-2].minor.yy714, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy656); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 169: /* table_options ::= table_options WATERMARK duration_list */ -{ yylhsminor.yy452 = setTableOption(pCxt, yymsp[-2].minor.yy452, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy404); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 170: /* table_options ::= table_options WATERMARK duration_list */ +{ yylhsminor.yy714 = setTableOption(pCxt, yymsp[-2].minor.yy714, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy656); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 170: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -{ yylhsminor.yy452 = setTableOption(pCxt, yymsp[-4].minor.yy452, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy404); } - yymsp[-4].minor.yy452 = yylhsminor.yy452; + case 171: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ +{ yylhsminor.yy714 = setTableOption(pCxt, yymsp[-4].minor.yy714, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy656); } + yymsp[-4].minor.yy714 = yylhsminor.yy714; break; - case 171: /* table_options ::= table_options TTL NK_INTEGER */ -{ yylhsminor.yy452 = setTableOption(pCxt, yymsp[-2].minor.yy452, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 172: /* table_options ::= table_options TTL NK_INTEGER */ +{ yylhsminor.yy714 = setTableOption(pCxt, yymsp[-2].minor.yy714, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 172: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ yylhsminor.yy452 = setTableOption(pCxt, yymsp[-4].minor.yy452, TABLE_OPTION_SMA, yymsp[-1].minor.yy404); } - yymsp[-4].minor.yy452 = yylhsminor.yy452; + case 173: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ +{ yylhsminor.yy714 = setTableOption(pCxt, yymsp[-4].minor.yy714, TABLE_OPTION_SMA, yymsp[-1].minor.yy656); } + yymsp[-4].minor.yy714 = yylhsminor.yy714; break; - case 173: /* alter_table_options ::= alter_table_option */ -{ yylhsminor.yy452 = createAlterTableOptions(pCxt); yylhsminor.yy452 = setTableOption(pCxt, yylhsminor.yy452, yymsp[0].minor.yy85.type, &yymsp[0].minor.yy85.val); } - yymsp[0].minor.yy452 = yylhsminor.yy452; + case 174: /* alter_table_options ::= alter_table_option */ +{ yylhsminor.yy714 = createAlterTableOptions(pCxt); yylhsminor.yy714 = setTableOption(pCxt, yylhsminor.yy714, yymsp[0].minor.yy81.type, &yymsp[0].minor.yy81.val); } + yymsp[0].minor.yy714 = yylhsminor.yy714; break; - case 174: /* alter_table_options ::= alter_table_options alter_table_option */ -{ yylhsminor.yy452 = setTableOption(pCxt, yymsp[-1].minor.yy452, yymsp[0].minor.yy85.type, &yymsp[0].minor.yy85.val); } - yymsp[-1].minor.yy452 = yylhsminor.yy452; + case 175: /* alter_table_options ::= alter_table_options alter_table_option */ +{ yylhsminor.yy714 = setTableOption(pCxt, yymsp[-1].minor.yy714, yymsp[0].minor.yy81.type, &yymsp[0].minor.yy81.val); } + yymsp[-1].minor.yy714 = yylhsminor.yy714; break; - case 175: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy85.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy85.val = yymsp[0].minor.yy0; } + case 176: /* alter_table_option ::= COMMENT NK_STRING */ +{ yymsp[-1].minor.yy81.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy81.val = yymsp[0].minor.yy0; } break; - case 176: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy85.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy85.val = yymsp[0].minor.yy0; } + case 177: /* alter_table_option ::= TTL NK_INTEGER */ +{ yymsp[-1].minor.yy81.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy81.val = yymsp[0].minor.yy0; } break; - case 177: /* duration_list ::= duration_literal */ - case 332: /* expression_list ::= expression */ yytestcase(yyruleno==332); -{ yylhsminor.yy404 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy452)); } - yymsp[0].minor.yy404 = yylhsminor.yy404; + case 178: /* duration_list ::= duration_literal */ + case 333: /* expression_list ::= expression */ yytestcase(yyruleno==333); +{ yylhsminor.yy656 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy714)); } + yymsp[0].minor.yy656 = yylhsminor.yy656; break; - case 178: /* duration_list ::= duration_list NK_COMMA duration_literal */ - case 333: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==333); -{ yylhsminor.yy404 = addNodeToList(pCxt, yymsp[-2].minor.yy404, releaseRawExprNode(pCxt, yymsp[0].minor.yy452)); } - yymsp[-2].minor.yy404 = yylhsminor.yy404; + case 179: /* duration_list ::= duration_list NK_COMMA duration_literal */ + case 334: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==334); +{ yylhsminor.yy656 = addNodeToList(pCxt, yymsp[-2].minor.yy656, releaseRawExprNode(pCxt, yymsp[0].minor.yy714)); } + yymsp[-2].minor.yy656 = yylhsminor.yy656; break; - case 181: /* rollup_func_name ::= function_name */ -{ yylhsminor.yy452 = createFunctionNode(pCxt, &yymsp[0].minor.yy109, NULL); } - yymsp[0].minor.yy452 = yylhsminor.yy452; + case 182: /* rollup_func_name ::= function_name */ +{ yylhsminor.yy714 = createFunctionNode(pCxt, &yymsp[0].minor.yy729, NULL); } + yymsp[0].minor.yy714 = yylhsminor.yy714; break; - case 182: /* rollup_func_name ::= FIRST */ - case 183: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==183); -{ yylhsminor.yy452 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy452 = yylhsminor.yy452; + case 183: /* rollup_func_name ::= FIRST */ + case 184: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==184); +{ yylhsminor.yy714 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy714 = yylhsminor.yy714; break; - case 186: /* col_name ::= column_name */ -{ yylhsminor.yy452 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy109); } - yymsp[0].minor.yy452 = yylhsminor.yy452; + case 187: /* col_name ::= column_name */ +{ yylhsminor.yy714 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy729); } + yymsp[0].minor.yy714 = yylhsminor.yy714; break; - case 187: /* cmd ::= SHOW DNODES */ + case 188: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } break; - case 188: /* cmd ::= SHOW USERS */ + case 189: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } break; - case 189: /* cmd ::= SHOW DATABASES */ + case 190: /* cmd ::= SHOW DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); } break; - case 190: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy452, yymsp[0].minor.yy452, OP_TYPE_LIKE); } + case 191: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy714, yymsp[0].minor.yy714, OP_TYPE_LIKE); } break; - case 191: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy452, yymsp[0].minor.yy452, OP_TYPE_LIKE); } + case 192: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy714, yymsp[0].minor.yy714, OP_TYPE_LIKE); } break; - case 192: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy452, NULL, OP_TYPE_LIKE); } + case 193: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy714, NULL, OP_TYPE_LIKE); } break; - case 193: /* cmd ::= SHOW MNODES */ + case 194: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } break; - case 194: /* cmd ::= SHOW MODULES */ + case 195: /* cmd ::= SHOW MODULES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MODULES_STMT); } break; - case 195: /* cmd ::= SHOW QNODES */ + case 196: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } break; - case 196: /* cmd ::= SHOW FUNCTIONS */ + case 197: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } break; - case 197: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy452, yymsp[-1].minor.yy452, OP_TYPE_EQUAL); } + case 198: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy714, yymsp[-1].minor.yy714, OP_TYPE_EQUAL); } break; - case 198: /* cmd ::= SHOW STREAMS */ + case 199: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } break; - case 199: /* cmd ::= SHOW ACCOUNTS */ + case 200: /* cmd ::= SHOW ACCOUNTS */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } break; - case 200: /* cmd ::= SHOW APPS */ + case 201: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } break; - case 201: /* cmd ::= SHOW CONNECTIONS */ + case 202: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } break; - case 202: /* cmd ::= SHOW LICENCE */ - case 203: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==203); + case 203: /* cmd ::= SHOW LICENCE */ + case 204: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==204); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCE_STMT); } break; - case 204: /* cmd ::= SHOW CREATE DATABASE db_name */ -{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy109); } + case 205: /* cmd ::= SHOW CREATE DATABASE db_name */ +{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy729); } break; - case 205: /* cmd ::= SHOW CREATE TABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy452); } + case 206: /* cmd ::= SHOW CREATE TABLE full_table_name */ +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy714); } break; - case 206: /* cmd ::= SHOW CREATE STABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy452); } + case 207: /* cmd ::= SHOW CREATE STABLE full_table_name */ +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy714); } break; - case 207: /* cmd ::= SHOW QUERIES */ + case 208: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } break; - case 208: /* cmd ::= SHOW SCORES */ + case 209: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } break; - case 209: /* cmd ::= SHOW TOPICS */ + case 210: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } break; - case 210: /* cmd ::= SHOW VARIABLES */ + case 211: /* cmd ::= SHOW VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } break; - case 211: /* cmd ::= SHOW LOCAL VARIABLES */ + case 212: /* cmd ::= SHOW LOCAL VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } break; - case 212: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES */ + case 213: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES */ { pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-1].minor.yy0)); } break; - case 213: /* cmd ::= SHOW BNODES */ + case 214: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } break; - case 214: /* cmd ::= SHOW SNODES */ + case 215: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } break; - case 215: /* cmd ::= SHOW CLUSTER */ + case 216: /* cmd ::= SHOW CLUSTER */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } break; - case 216: /* cmd ::= SHOW TRANSACTIONS */ + case 217: /* cmd ::= SHOW TRANSACTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } break; - case 217: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy452); } + case 218: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ +{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy714); } break; - case 218: /* cmd ::= SHOW CONSUMERS */ + case 219: /* cmd ::= SHOW CONSUMERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } break; - case 219: /* cmd ::= SHOW SUBSCRIPTIONS */ + case 220: /* cmd ::= SHOW SUBSCRIPTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } break; - case 220: /* db_name_cond_opt ::= */ - case 225: /* from_db_opt ::= */ yytestcase(yyruleno==225); -{ yymsp[1].minor.yy452 = createDefaultDatabaseCondValue(pCxt); } + case 221: /* db_name_cond_opt ::= */ + case 226: /* from_db_opt ::= */ yytestcase(yyruleno==226); +{ yymsp[1].minor.yy714 = createDefaultDatabaseCondValue(pCxt); } break; - case 221: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy109); } - yymsp[-1].minor.yy452 = yylhsminor.yy452; + case 222: /* db_name_cond_opt ::= db_name NK_DOT */ +{ yylhsminor.yy714 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy729); } + yymsp[-1].minor.yy714 = yylhsminor.yy714; break; - case 222: /* like_pattern_opt ::= */ - case 262: /* into_opt ::= */ yytestcase(yyruleno==262); - case 391: /* from_clause_opt ::= */ yytestcase(yyruleno==391); - case 421: /* where_clause_opt ::= */ yytestcase(yyruleno==421); - case 425: /* twindow_clause_opt ::= */ yytestcase(yyruleno==425); - case 430: /* sliding_opt ::= */ yytestcase(yyruleno==430); - case 432: /* fill_opt ::= */ yytestcase(yyruleno==432); - case 444: /* having_clause_opt ::= */ yytestcase(yyruleno==444); - case 446: /* range_opt ::= */ yytestcase(yyruleno==446); - case 448: /* every_opt ::= */ yytestcase(yyruleno==448); - case 458: /* slimit_clause_opt ::= */ yytestcase(yyruleno==458); - case 462: /* limit_clause_opt ::= */ yytestcase(yyruleno==462); -{ yymsp[1].minor.yy452 = NULL; } + case 223: /* like_pattern_opt ::= */ + case 263: /* into_opt ::= */ yytestcase(yyruleno==263); + case 392: /* from_clause_opt ::= */ yytestcase(yyruleno==392); + case 422: /* where_clause_opt ::= */ yytestcase(yyruleno==422); + case 426: /* twindow_clause_opt ::= */ yytestcase(yyruleno==426); + case 431: /* sliding_opt ::= */ yytestcase(yyruleno==431); + case 433: /* fill_opt ::= */ yytestcase(yyruleno==433); + case 445: /* having_clause_opt ::= */ yytestcase(yyruleno==445); + case 447: /* range_opt ::= */ yytestcase(yyruleno==447); + case 449: /* every_opt ::= */ yytestcase(yyruleno==449); + case 459: /* slimit_clause_opt ::= */ yytestcase(yyruleno==459); + case 463: /* limit_clause_opt ::= */ yytestcase(yyruleno==463); +{ yymsp[1].minor.yy714 = NULL; } break; - case 223: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + case 224: /* like_pattern_opt ::= LIKE NK_STRING */ +{ yymsp[-1].minor.yy714 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; - case 224: /* table_name_cond ::= table_name */ -{ yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy109); } - yymsp[0].minor.yy452 = yylhsminor.yy452; + case 225: /* table_name_cond ::= table_name */ +{ yylhsminor.yy714 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy729); } + yymsp[0].minor.yy714 = yylhsminor.yy714; break; - case 226: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy109); } + case 227: /* from_db_opt ::= FROM db_name */ +{ yymsp[-1].minor.yy714 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy729); } break; - case 227: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy437, &yymsp[-3].minor.yy109, &yymsp[-1].minor.yy109, NULL, yymsp[0].minor.yy452); } + case 228: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy215, &yymsp[-3].minor.yy729, &yymsp[-1].minor.yy729, NULL, yymsp[0].minor.yy714); } break; - case 228: /* cmd ::= DROP INDEX exists_opt index_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy437, &yymsp[0].minor.yy109); } + case 229: /* cmd ::= DROP INDEX exists_opt index_name */ +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy215, &yymsp[0].minor.yy729); } break; - case 229: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ -{ yymsp[-9].minor.yy452 = createIndexOption(pCxt, yymsp[-7].minor.yy404, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), NULL, yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } + case 230: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ +{ yymsp[-9].minor.yy714 = createIndexOption(pCxt, yymsp[-7].minor.yy656, releaseRawExprNode(pCxt, yymsp[-3].minor.yy714), NULL, yymsp[-1].minor.yy714, yymsp[0].minor.yy714); } break; - case 230: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ -{ yymsp[-11].minor.yy452 = createIndexOption(pCxt, yymsp[-9].minor.yy404, releaseRawExprNode(pCxt, yymsp[-5].minor.yy452), releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } + case 231: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ +{ yymsp[-11].minor.yy714 = createIndexOption(pCxt, yymsp[-9].minor.yy656, releaseRawExprNode(pCxt, yymsp[-5].minor.yy714), releaseRawExprNode(pCxt, yymsp[-3].minor.yy714), yymsp[-1].minor.yy714, yymsp[0].minor.yy714); } break; - case 233: /* func ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy452 = createFunctionNode(pCxt, &yymsp[-3].minor.yy109, yymsp[-1].minor.yy404); } - yymsp[-3].minor.yy452 = yylhsminor.yy452; + case 234: /* func ::= function_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy714 = createFunctionNode(pCxt, &yymsp[-3].minor.yy729, yymsp[-1].minor.yy656); } + yymsp[-3].minor.yy714 = yylhsminor.yy714; break; - case 234: /* sma_stream_opt ::= */ - case 264: /* stream_options ::= */ yytestcase(yyruleno==264); -{ yymsp[1].minor.yy452 = createStreamOptions(pCxt); } + case 235: /* sma_stream_opt ::= */ + case 265: /* stream_options ::= */ yytestcase(yyruleno==265); +{ yymsp[1].minor.yy714 = createStreamOptions(pCxt); } break; - case 235: /* sma_stream_opt ::= stream_options WATERMARK duration_literal */ - case 268: /* stream_options ::= stream_options WATERMARK duration_literal */ yytestcase(yyruleno==268); -{ ((SStreamOptions*)yymsp[-2].minor.yy452)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = yymsp[-2].minor.yy452; } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 236: /* sma_stream_opt ::= stream_options WATERMARK duration_literal */ + case 269: /* stream_options ::= stream_options WATERMARK duration_literal */ yytestcase(yyruleno==269); +{ ((SStreamOptions*)yymsp[-2].minor.yy714)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy714); yylhsminor.yy714 = yymsp[-2].minor.yy714; } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 236: /* sma_stream_opt ::= stream_options MAX_DELAY duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy452)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = yymsp[-2].minor.yy452; } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 237: /* sma_stream_opt ::= stream_options MAX_DELAY duration_literal */ +{ ((SStreamOptions*)yymsp[-2].minor.yy714)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy714); yylhsminor.yy714 = yymsp[-2].minor.yy714; } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 237: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ -{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy437, &yymsp[-2].minor.yy109, yymsp[0].minor.yy452); } + case 238: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ +{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy215, &yymsp[-2].minor.yy729, yymsp[0].minor.yy714); } break; - case 238: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ -{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy437, &yymsp[-3].minor.yy109, &yymsp[0].minor.yy109, false); } + case 239: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ +{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy215, &yymsp[-3].minor.yy729, &yymsp[0].minor.yy729, false); } break; - case 239: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ -{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-6].minor.yy437, &yymsp[-5].minor.yy109, &yymsp[0].minor.yy109, true); } + case 240: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ +{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-6].minor.yy215, &yymsp[-5].minor.yy729, &yymsp[0].minor.yy729, true); } break; - case 240: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ -{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-4].minor.yy437, &yymsp[-3].minor.yy109, yymsp[0].minor.yy452, false); } + case 241: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ +{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-4].minor.yy215, &yymsp[-3].minor.yy729, yymsp[0].minor.yy714, false); } break; - case 241: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ -{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-6].minor.yy437, &yymsp[-5].minor.yy109, yymsp[0].minor.yy452, true); } + case 242: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ +{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-6].minor.yy215, &yymsp[-5].minor.yy729, yymsp[0].minor.yy714, true); } break; - case 242: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy437, &yymsp[0].minor.yy109); } + case 243: /* cmd ::= DROP TOPIC exists_opt topic_name */ +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy215, &yymsp[0].minor.yy729); } break; - case 243: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy437, &yymsp[-2].minor.yy109, &yymsp[0].minor.yy109); } + case 244: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ +{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy215, &yymsp[-2].minor.yy729, &yymsp[0].minor.yy729); } break; - case 244: /* cmd ::= DESC full_table_name */ - case 245: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==245); -{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy452); } + case 245: /* cmd ::= DESC full_table_name */ + case 246: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==246); +{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy714); } break; - case 246: /* cmd ::= RESET QUERY CACHE */ + case 247: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; - case 247: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ -{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy437, yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } + case 248: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy215, yymsp[-1].minor.yy714, yymsp[0].minor.yy714); } break; - case 249: /* analyze_opt ::= ANALYZE */ - case 257: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==257); - case 411: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==411); -{ yymsp[0].minor.yy437 = true; } + case 250: /* analyze_opt ::= ANALYZE */ + case 258: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==258); + case 412: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==412); +{ yymsp[0].minor.yy215 = true; } break; - case 250: /* explain_options ::= */ -{ yymsp[1].minor.yy452 = createDefaultExplainOptions(pCxt); } + case 251: /* explain_options ::= */ +{ yymsp[1].minor.yy714 = createDefaultExplainOptions(pCxt); } break; - case 251: /* explain_options ::= explain_options VERBOSE NK_BOOL */ -{ yylhsminor.yy452 = setExplainVerbose(pCxt, yymsp[-2].minor.yy452, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 252: /* explain_options ::= explain_options VERBOSE NK_BOOL */ +{ yylhsminor.yy714 = setExplainVerbose(pCxt, yymsp[-2].minor.yy714, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 252: /* explain_options ::= explain_options RATIO NK_FLOAT */ -{ yylhsminor.yy452 = setExplainRatio(pCxt, yymsp[-2].minor.yy452, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 253: /* explain_options ::= explain_options RATIO NK_FLOAT */ +{ yylhsminor.yy714 = setExplainRatio(pCxt, yymsp[-2].minor.yy714, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 253: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ -{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy404); } + case 254: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ +{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy656); } break; - case 254: /* cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ -{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-6].minor.yy437, yymsp[-8].minor.yy437, &yymsp[-5].minor.yy109, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy504, yymsp[0].minor.yy100); } + case 255: /* cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ +{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-6].minor.yy215, yymsp[-8].minor.yy215, &yymsp[-5].minor.yy729, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy490, yymsp[0].minor.yy550); } break; - case 255: /* cmd ::= DROP FUNCTION exists_opt function_name */ -{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy437, &yymsp[0].minor.yy109); } + case 256: /* cmd ::= DROP FUNCTION exists_opt function_name */ +{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy215, &yymsp[0].minor.yy729); } break; - case 258: /* bufsize_opt ::= */ -{ yymsp[1].minor.yy100 = 0; } + case 259: /* bufsize_opt ::= */ +{ yymsp[1].minor.yy550 = 0; } break; - case 259: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ -{ yymsp[-1].minor.yy100 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } + case 260: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ +{ yymsp[-1].minor.yy550 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; - case 260: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ -{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy437, &yymsp[-4].minor.yy109, yymsp[-2].minor.yy452, yymsp[-3].minor.yy452, yymsp[0].minor.yy452); } + case 261: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ +{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy215, &yymsp[-4].minor.yy729, yymsp[-2].minor.yy714, yymsp[-3].minor.yy714, yymsp[0].minor.yy714); } break; - case 261: /* cmd ::= DROP STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy437, &yymsp[0].minor.yy109); } + case 262: /* cmd ::= DROP STREAM exists_opt stream_name */ +{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy215, &yymsp[0].minor.yy729); } break; - case 263: /* into_opt ::= INTO full_table_name */ - case 392: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==392); - case 422: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==422); - case 445: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==445); -{ yymsp[-1].minor.yy452 = yymsp[0].minor.yy452; } + case 264: /* into_opt ::= INTO full_table_name */ + case 393: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==393); + case 423: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==423); + case 446: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==446); +{ yymsp[-1].minor.yy714 = yymsp[0].minor.yy714; } break; - case 265: /* stream_options ::= stream_options TRIGGER AT_ONCE */ -{ ((SStreamOptions*)yymsp[-2].minor.yy452)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy452 = yymsp[-2].minor.yy452; } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 266: /* stream_options ::= stream_options TRIGGER AT_ONCE */ +{ ((SStreamOptions*)yymsp[-2].minor.yy714)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy714 = yymsp[-2].minor.yy714; } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 266: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ -{ ((SStreamOptions*)yymsp[-2].minor.yy452)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy452 = yymsp[-2].minor.yy452; } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 267: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ +{ ((SStreamOptions*)yymsp[-2].minor.yy714)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy714 = yymsp[-2].minor.yy714; } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 267: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -{ ((SStreamOptions*)yymsp[-3].minor.yy452)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy452)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy452); yylhsminor.yy452 = yymsp[-3].minor.yy452; } - yymsp[-3].minor.yy452 = yylhsminor.yy452; + case 268: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ +{ ((SStreamOptions*)yymsp[-3].minor.yy714)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy714)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy714); yylhsminor.yy714 = yymsp[-3].minor.yy714; } + yymsp[-3].minor.yy714 = yylhsminor.yy714; break; - case 269: /* cmd ::= KILL CONNECTION NK_INTEGER */ + case 270: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; - case 270: /* cmd ::= KILL QUERY NK_STRING */ + case 271: /* cmd ::= KILL QUERY NK_STRING */ { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 271: /* cmd ::= KILL TRANSACTION NK_INTEGER */ + case 272: /* cmd ::= KILL TRANSACTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } break; - case 272: /* cmd ::= BALANCE VGROUP */ + case 273: /* cmd ::= BALANCE VGROUP */ { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } break; - case 273: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + case 274: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 274: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy404); } + case 275: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ +{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy656); } break; - case 275: /* cmd ::= SPLIT VGROUP NK_INTEGER */ + case 276: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 276: /* dnode_list ::= DNODE NK_INTEGER */ -{ yymsp[-1].minor.yy404 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - break; - case 278: /* cmd ::= SYNCDB db_name REPLICA */ -{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy109); } - break; - case 279: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ -{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } - break; - case 281: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy452 = yylhsminor.yy452; - break; - case 282: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy452 = yylhsminor.yy452; - break; - case 283: /* literal ::= NK_STRING */ -{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy452 = yylhsminor.yy452; - break; - case 284: /* literal ::= NK_BOOL */ -{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy452 = yylhsminor.yy452; - break; - case 285: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy452 = yylhsminor.yy452; - break; - case 286: /* literal ::= duration_literal */ - case 296: /* signed_literal ::= signed */ yytestcase(yyruleno==296); - case 316: /* expression ::= literal */ yytestcase(yyruleno==316); - case 317: /* expression ::= pseudo_column */ yytestcase(yyruleno==317); - case 318: /* expression ::= column_reference */ yytestcase(yyruleno==318); - case 319: /* expression ::= function_expression */ yytestcase(yyruleno==319); - case 320: /* expression ::= subquery */ yytestcase(yyruleno==320); - case 347: /* function_expression ::= literal_func */ yytestcase(yyruleno==347); - case 383: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==383); - case 387: /* boolean_primary ::= predicate */ yytestcase(yyruleno==387); - case 389: /* common_expression ::= expression */ yytestcase(yyruleno==389); - case 390: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==390); - case 393: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==393); - case 395: /* table_reference ::= table_primary */ yytestcase(yyruleno==395); - case 396: /* table_reference ::= joined_table */ yytestcase(yyruleno==396); - case 400: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==400); - case 451: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==451); - case 454: /* query_primary ::= query_specification */ yytestcase(yyruleno==454); -{ yylhsminor.yy452 = yymsp[0].minor.yy452; } - yymsp[0].minor.yy452 = yylhsminor.yy452; - break; - case 287: /* literal ::= NULL */ -{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy452 = yylhsminor.yy452; - break; - case 288: /* literal ::= NK_QUESTION */ -{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy452 = yylhsminor.yy452; - break; - case 289: /* duration_literal ::= NK_VARIABLE */ -{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy452 = yylhsminor.yy452; - break; - case 290: /* signed ::= NK_INTEGER */ -{ yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy452 = yylhsminor.yy452; - break; - case 291: /* signed ::= NK_PLUS NK_INTEGER */ -{ yymsp[-1].minor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - break; - case 292: /* signed ::= NK_MINUS NK_INTEGER */ + case 277: /* dnode_list ::= DNODE NK_INTEGER */ +{ yymsp[-1].minor.yy656 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + break; + case 279: /* cmd ::= SYNCDB db_name REPLICA */ +{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy729); } + break; + case 280: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ +{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy714, yymsp[0].minor.yy714); } + break; + case 282: /* literal ::= NK_INTEGER */ +{ yylhsminor.yy714 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy714 = yylhsminor.yy714; + break; + case 283: /* literal ::= NK_FLOAT */ +{ yylhsminor.yy714 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy714 = yylhsminor.yy714; + break; + case 284: /* literal ::= NK_STRING */ +{ yylhsminor.yy714 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy714 = yylhsminor.yy714; + break; + case 285: /* literal ::= NK_BOOL */ +{ yylhsminor.yy714 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy714 = yylhsminor.yy714; + break; + case 286: /* literal ::= TIMESTAMP NK_STRING */ +{ yylhsminor.yy714 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } + yymsp[-1].minor.yy714 = yylhsminor.yy714; + break; + case 287: /* literal ::= duration_literal */ + case 297: /* signed_literal ::= signed */ yytestcase(yyruleno==297); + case 317: /* expression ::= literal */ yytestcase(yyruleno==317); + case 318: /* expression ::= pseudo_column */ yytestcase(yyruleno==318); + case 319: /* expression ::= column_reference */ yytestcase(yyruleno==319); + case 320: /* expression ::= function_expression */ yytestcase(yyruleno==320); + case 321: /* expression ::= subquery */ yytestcase(yyruleno==321); + case 348: /* function_expression ::= literal_func */ yytestcase(yyruleno==348); + case 384: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==384); + case 388: /* boolean_primary ::= predicate */ yytestcase(yyruleno==388); + case 390: /* common_expression ::= expression */ yytestcase(yyruleno==390); + case 391: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==391); + case 394: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==394); + case 396: /* table_reference ::= table_primary */ yytestcase(yyruleno==396); + case 397: /* table_reference ::= joined_table */ yytestcase(yyruleno==397); + case 401: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==401); + case 452: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==452); + case 455: /* query_primary ::= query_specification */ yytestcase(yyruleno==455); +{ yylhsminor.yy714 = yymsp[0].minor.yy714; } + yymsp[0].minor.yy714 = yylhsminor.yy714; + break; + case 288: /* literal ::= NULL */ +{ yylhsminor.yy714 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy714 = yylhsminor.yy714; + break; + case 289: /* literal ::= NK_QUESTION */ +{ yylhsminor.yy714 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy714 = yylhsminor.yy714; + break; + case 290: /* duration_literal ::= NK_VARIABLE */ +{ yylhsminor.yy714 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy714 = yylhsminor.yy714; + break; + case 291: /* signed ::= NK_INTEGER */ +{ yylhsminor.yy714 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy714 = yylhsminor.yy714; + break; + case 292: /* signed ::= NK_PLUS NK_INTEGER */ +{ yymsp[-1].minor.yy714 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + break; + case 293: /* 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.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + yylhsminor.yy714 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } - yymsp[-1].minor.yy452 = yylhsminor.yy452; + yymsp[-1].minor.yy714 = yylhsminor.yy714; break; - case 293: /* signed ::= NK_FLOAT */ -{ yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy452 = yylhsminor.yy452; + case 294: /* signed ::= NK_FLOAT */ +{ yylhsminor.yy714 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy714 = yylhsminor.yy714; break; - case 294: /* signed ::= NK_PLUS NK_FLOAT */ -{ yymsp[-1].minor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + case 295: /* signed ::= NK_PLUS NK_FLOAT */ +{ yymsp[-1].minor.yy714 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; - case 295: /* signed ::= NK_MINUS NK_FLOAT */ + case 296: /* 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.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + yylhsminor.yy714 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } - yymsp[-1].minor.yy452 = yylhsminor.yy452; + yymsp[-1].minor.yy714 = yylhsminor.yy714; break; - case 297: /* signed_literal ::= NK_STRING */ -{ yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy452 = yylhsminor.yy452; + case 298: /* signed_literal ::= NK_STRING */ +{ yylhsminor.yy714 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy714 = yylhsminor.yy714; break; - case 298: /* signed_literal ::= NK_BOOL */ -{ yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy452 = yylhsminor.yy452; + case 299: /* signed_literal ::= NK_BOOL */ +{ yylhsminor.yy714 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy714 = yylhsminor.yy714; break; - case 299: /* signed_literal ::= TIMESTAMP NK_STRING */ -{ yymsp[-1].minor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } + case 300: /* signed_literal ::= TIMESTAMP NK_STRING */ +{ yymsp[-1].minor.yy714 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 300: /* signed_literal ::= duration_literal */ - case 302: /* signed_literal ::= literal_func */ yytestcase(yyruleno==302); - case 361: /* star_func_para ::= expression */ yytestcase(yyruleno==361); - case 417: /* select_item ::= common_expression */ yytestcase(yyruleno==417); - case 467: /* search_condition ::= common_expression */ yytestcase(yyruleno==467); -{ yylhsminor.yy452 = releaseRawExprNode(pCxt, yymsp[0].minor.yy452); } - yymsp[0].minor.yy452 = yylhsminor.yy452; + case 301: /* signed_literal ::= duration_literal */ + case 303: /* signed_literal ::= literal_func */ yytestcase(yyruleno==303); + case 362: /* star_func_para ::= expression */ yytestcase(yyruleno==362); + case 418: /* select_item ::= common_expression */ yytestcase(yyruleno==418); + case 468: /* search_condition ::= common_expression */ yytestcase(yyruleno==468); +{ yylhsminor.yy714 = releaseRawExprNode(pCxt, yymsp[0].minor.yy714); } + yymsp[0].minor.yy714 = yylhsminor.yy714; break; - case 301: /* signed_literal ::= NULL */ -{ yylhsminor.yy452 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy452 = yylhsminor.yy452; + case 302: /* signed_literal ::= NULL */ +{ yylhsminor.yy714 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy714 = yylhsminor.yy714; break; - case 321: /* expression ::= NK_LP expression NK_RP */ - case 388: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==388); -{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy452)); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 322: /* expression ::= NK_LP expression NK_RP */ + case 389: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==389); +{ yylhsminor.yy714 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy714)); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 322: /* expression ::= NK_PLUS expression */ + case 323: /* expression ::= NK_PLUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy452)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy714)); } - yymsp[-1].minor.yy452 = yylhsminor.yy452; + yymsp[-1].minor.yy714 = yylhsminor.yy714; break; - case 323: /* expression ::= NK_MINUS expression */ + case 324: /* expression ::= NK_MINUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy452), NULL)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy714), NULL)); } - yymsp[-1].minor.yy452 = yylhsminor.yy452; + yymsp[-1].minor.yy714 = yylhsminor.yy714; break; - case 324: /* expression ::= expression NK_PLUS expression */ + case 325: /* expression ::= expression NK_PLUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy714); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy714), releaseRawExprNode(pCxt, yymsp[0].minor.yy714))); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 325: /* expression ::= expression NK_MINUS expression */ + case 326: /* expression ::= expression NK_MINUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy714); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy714), releaseRawExprNode(pCxt, yymsp[0].minor.yy714))); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 326: /* expression ::= expression NK_STAR expression */ + case 327: /* expression ::= expression NK_STAR expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy714); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy714), releaseRawExprNode(pCxt, yymsp[0].minor.yy714))); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 327: /* expression ::= expression NK_SLASH expression */ + case 328: /* expression ::= expression NK_SLASH expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy714); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy714), releaseRawExprNode(pCxt, yymsp[0].minor.yy714))); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 328: /* expression ::= expression NK_REM expression */ + case 329: /* expression ::= expression NK_REM expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy714); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy714), releaseRawExprNode(pCxt, yymsp[0].minor.yy714))); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 329: /* expression ::= column_reference NK_ARROW NK_STRING */ + case 330: /* expression ::= column_reference NK_ARROW NK_STRING */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy714), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 330: /* expression ::= expression NK_BITAND expression */ + case 331: /* expression ::= expression NK_BITAND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy714); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy714), releaseRawExprNode(pCxt, yymsp[0].minor.yy714))); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 331: /* expression ::= expression NK_BITOR expression */ + case 332: /* expression ::= expression NK_BITOR expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy714); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy714), releaseRawExprNode(pCxt, yymsp[0].minor.yy714))); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; - break; - case 334: /* column_reference ::= column_name */ -{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy109, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy109)); } - yymsp[0].minor.yy452 = yylhsminor.yy452; - break; - case 335: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy109, &yymsp[0].minor.yy109, createColumnNode(pCxt, &yymsp[-2].minor.yy109, &yymsp[0].minor.yy109)); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; - break; - case 336: /* pseudo_column ::= ROWTS */ - case 337: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==337); - case 339: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==339); - case 340: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==340); - case 341: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==341); - case 342: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==342); - case 343: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==343); - case 349: /* literal_func ::= NOW */ yytestcase(yyruleno==349); -{ yylhsminor.yy452 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } - yymsp[0].minor.yy452 = yylhsminor.yy452; - break; - case 338: /* pseudo_column ::= table_name NK_DOT TBNAME */ -{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy109, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy109)))); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; - break; - case 344: /* function_expression ::= function_name NK_LP expression_list NK_RP */ - case 345: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==345); -{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy109, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy109, yymsp[-1].minor.yy404)); } - yymsp[-3].minor.yy452 = yylhsminor.yy452; - break; - case 346: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ -{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), yymsp[-1].minor.yy504)); } - yymsp[-5].minor.yy452 = yylhsminor.yy452; - break; - case 348: /* literal_func ::= noarg_func NK_LP NK_RP */ -{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy109, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy109, NULL)); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; - break; - case 357: /* star_func_para_list ::= NK_STAR */ -{ yylhsminor.yy404 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy404 = yylhsminor.yy404; - break; - case 362: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 420: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==420); -{ yylhsminor.yy452 = createColumnNode(pCxt, &yymsp[-2].minor.yy109, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; - break; - case 363: /* predicate ::= expression compare_op expression */ - case 368: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==368); + yymsp[-2].minor.yy714 = yylhsminor.yy714; + break; + case 335: /* column_reference ::= column_name */ +{ yylhsminor.yy714 = createRawExprNode(pCxt, &yymsp[0].minor.yy729, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy729)); } + yymsp[0].minor.yy714 = yylhsminor.yy714; + break; + case 336: /* column_reference ::= table_name NK_DOT column_name */ +{ yylhsminor.yy714 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy729, &yymsp[0].minor.yy729, createColumnNode(pCxt, &yymsp[-2].minor.yy729, &yymsp[0].minor.yy729)); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; + break; + case 337: /* pseudo_column ::= ROWTS */ + case 338: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==338); + case 340: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==340); + case 341: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==341); + case 342: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==342); + case 343: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==343); + case 344: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==344); + case 350: /* literal_func ::= NOW */ yytestcase(yyruleno==350); +{ yylhsminor.yy714 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } + yymsp[0].minor.yy714 = yylhsminor.yy714; + break; + case 339: /* pseudo_column ::= table_name NK_DOT TBNAME */ +{ yylhsminor.yy714 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy729, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy729)))); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; + break; + case 345: /* function_expression ::= function_name NK_LP expression_list NK_RP */ + case 346: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==346); +{ yylhsminor.yy714 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy729, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy729, yymsp[-1].minor.yy656)); } + yymsp[-3].minor.yy714 = yylhsminor.yy714; + break; + case 347: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ +{ yylhsminor.yy714 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy714), yymsp[-1].minor.yy490)); } + yymsp[-5].minor.yy714 = yylhsminor.yy714; + break; + case 349: /* literal_func ::= noarg_func NK_LP NK_RP */ +{ yylhsminor.yy714 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy729, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy729, NULL)); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; + break; + case 358: /* star_func_para_list ::= NK_STAR */ +{ yylhsminor.yy656 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy656 = yylhsminor.yy656; + break; + case 363: /* star_func_para ::= table_name NK_DOT NK_STAR */ + case 421: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==421); +{ yylhsminor.yy714 = createColumnNode(pCxt, &yymsp[-2].minor.yy729, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; + break; + case 364: /* predicate ::= expression compare_op expression */ + case 369: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==369); { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy440, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy714); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy688, releaseRawExprNode(pCxt, yymsp[-2].minor.yy714), releaseRawExprNode(pCxt, yymsp[0].minor.yy714))); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 364: /* predicate ::= expression BETWEEN expression AND expression */ + case 365: /* predicate ::= expression BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy452); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy452), releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy714); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy714), releaseRawExprNode(pCxt, yymsp[-2].minor.yy714), releaseRawExprNode(pCxt, yymsp[0].minor.yy714))); } - yymsp[-4].minor.yy452 = yylhsminor.yy452; + yymsp[-4].minor.yy714 = yylhsminor.yy714; break; - case 365: /* predicate ::= expression NOT BETWEEN expression AND expression */ + case 366: /* predicate ::= expression NOT BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy452); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy452), releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy714); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy714), releaseRawExprNode(pCxt, yymsp[-2].minor.yy714), releaseRawExprNode(pCxt, yymsp[0].minor.yy714))); } - yymsp[-5].minor.yy452 = yylhsminor.yy452; + yymsp[-5].minor.yy714 = yylhsminor.yy714; break; - case 366: /* predicate ::= expression IS NULL */ + case 367: /* predicate ::= expression IS NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy714), NULL)); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 367: /* predicate ::= expression IS NOT NULL */ + case 368: /* predicate ::= expression IS NOT NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy714), NULL)); } - yymsp[-3].minor.yy452 = yylhsminor.yy452; + yymsp[-3].minor.yy714 = yylhsminor.yy714; break; - case 369: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy440 = OP_TYPE_LOWER_THAN; } + case 370: /* compare_op ::= NK_LT */ +{ yymsp[0].minor.yy688 = OP_TYPE_LOWER_THAN; } break; - case 370: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy440 = OP_TYPE_GREATER_THAN; } + case 371: /* compare_op ::= NK_GT */ +{ yymsp[0].minor.yy688 = OP_TYPE_GREATER_THAN; } break; - case 371: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy440 = OP_TYPE_LOWER_EQUAL; } + case 372: /* compare_op ::= NK_LE */ +{ yymsp[0].minor.yy688 = OP_TYPE_LOWER_EQUAL; } break; - case 372: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy440 = OP_TYPE_GREATER_EQUAL; } + case 373: /* compare_op ::= NK_GE */ +{ yymsp[0].minor.yy688 = OP_TYPE_GREATER_EQUAL; } break; - case 373: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy440 = OP_TYPE_NOT_EQUAL; } + case 374: /* compare_op ::= NK_NE */ +{ yymsp[0].minor.yy688 = OP_TYPE_NOT_EQUAL; } break; - case 374: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy440 = OP_TYPE_EQUAL; } + case 375: /* compare_op ::= NK_EQ */ +{ yymsp[0].minor.yy688 = OP_TYPE_EQUAL; } break; - case 375: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy440 = OP_TYPE_LIKE; } + case 376: /* compare_op ::= LIKE */ +{ yymsp[0].minor.yy688 = OP_TYPE_LIKE; } break; - case 376: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy440 = OP_TYPE_NOT_LIKE; } + case 377: /* compare_op ::= NOT LIKE */ +{ yymsp[-1].minor.yy688 = OP_TYPE_NOT_LIKE; } break; - case 377: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy440 = OP_TYPE_MATCH; } + case 378: /* compare_op ::= MATCH */ +{ yymsp[0].minor.yy688 = OP_TYPE_MATCH; } break; - case 378: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy440 = OP_TYPE_NMATCH; } + case 379: /* compare_op ::= NMATCH */ +{ yymsp[0].minor.yy688 = OP_TYPE_NMATCH; } break; - case 379: /* compare_op ::= CONTAINS */ -{ yymsp[0].minor.yy440 = OP_TYPE_JSON_CONTAINS; } + case 380: /* compare_op ::= CONTAINS */ +{ yymsp[0].minor.yy688 = OP_TYPE_JSON_CONTAINS; } break; - case 380: /* in_op ::= IN */ -{ yymsp[0].minor.yy440 = OP_TYPE_IN; } + case 381: /* in_op ::= IN */ +{ yymsp[0].minor.yy688 = OP_TYPE_IN; } break; - case 381: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy440 = OP_TYPE_NOT_IN; } + case 382: /* in_op ::= NOT IN */ +{ yymsp[-1].minor.yy688 = OP_TYPE_NOT_IN; } break; - case 382: /* in_predicate_value ::= NK_LP expression_list NK_RP */ -{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy404)); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 383: /* in_predicate_value ::= NK_LP expression_list NK_RP */ +{ yylhsminor.yy714 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy656)); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 384: /* boolean_value_expression ::= NOT boolean_primary */ + case 385: /* boolean_value_expression ::= NOT boolean_primary */ { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy452), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy714), NULL)); } - yymsp[-1].minor.yy452 = yylhsminor.yy452; + yymsp[-1].minor.yy714 = yylhsminor.yy714; break; - case 385: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 386: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy714); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy714), releaseRawExprNode(pCxt, yymsp[0].minor.yy714))); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 386: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 387: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy452); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy452); - yylhsminor.yy452 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy714); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy714); + yylhsminor.yy714 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy714), releaseRawExprNode(pCxt, yymsp[0].minor.yy714))); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 394: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy452 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy452, yymsp[0].minor.yy452, NULL); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 395: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +{ yylhsminor.yy714 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy714, yymsp[0].minor.yy714, NULL); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 397: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy452 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy109, &yymsp[0].minor.yy109); } - yymsp[-1].minor.yy452 = yylhsminor.yy452; + case 398: /* table_primary ::= table_name alias_opt */ +{ yylhsminor.yy714 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy729, &yymsp[0].minor.yy729); } + yymsp[-1].minor.yy714 = yylhsminor.yy714; break; - case 398: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy452 = createRealTableNode(pCxt, &yymsp[-3].minor.yy109, &yymsp[-1].minor.yy109, &yymsp[0].minor.yy109); } - yymsp[-3].minor.yy452 = yylhsminor.yy452; + case 399: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +{ yylhsminor.yy714 = createRealTableNode(pCxt, &yymsp[-3].minor.yy729, &yymsp[-1].minor.yy729, &yymsp[0].minor.yy729); } + yymsp[-3].minor.yy714 = yylhsminor.yy714; break; - case 399: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy452 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy452), &yymsp[0].minor.yy109); } - yymsp[-1].minor.yy452 = yylhsminor.yy452; + case 400: /* table_primary ::= subquery alias_opt */ +{ yylhsminor.yy714 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy714), &yymsp[0].minor.yy729); } + yymsp[-1].minor.yy714 = yylhsminor.yy714; break; - case 401: /* alias_opt ::= */ -{ yymsp[1].minor.yy109 = nil_token; } + case 402: /* alias_opt ::= */ +{ yymsp[1].minor.yy729 = nil_token; } break; - case 402: /* alias_opt ::= table_alias */ -{ yylhsminor.yy109 = yymsp[0].minor.yy109; } - yymsp[0].minor.yy109 = yylhsminor.yy109; + case 403: /* alias_opt ::= table_alias */ +{ yylhsminor.yy729 = yymsp[0].minor.yy729; } + yymsp[0].minor.yy729 = yylhsminor.yy729; break; - case 403: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy109 = yymsp[0].minor.yy109; } + case 404: /* alias_opt ::= AS table_alias */ +{ yymsp[-1].minor.yy729 = yymsp[0].minor.yy729; } break; - case 404: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 405: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==405); -{ yymsp[-2].minor.yy452 = yymsp[-1].minor.yy452; } + case 405: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 406: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==406); +{ yymsp[-2].minor.yy714 = yymsp[-1].minor.yy714; } break; - case 406: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -{ yylhsminor.yy452 = createJoinTableNode(pCxt, yymsp[-4].minor.yy532, yymsp[-5].minor.yy452, yymsp[-2].minor.yy452, yymsp[0].minor.yy452); } - yymsp[-5].minor.yy452 = yylhsminor.yy452; + case 407: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ +{ yylhsminor.yy714 = createJoinTableNode(pCxt, yymsp[-4].minor.yy568, yymsp[-5].minor.yy714, yymsp[-2].minor.yy714, yymsp[0].minor.yy714); } + yymsp[-5].minor.yy714 = yylhsminor.yy714; break; - case 407: /* join_type ::= */ -{ yymsp[1].minor.yy532 = JOIN_TYPE_INNER; } + case 408: /* join_type ::= */ +{ yymsp[1].minor.yy568 = JOIN_TYPE_INNER; } break; - case 408: /* join_type ::= INNER */ -{ yymsp[0].minor.yy532 = JOIN_TYPE_INNER; } + case 409: /* join_type ::= INNER */ +{ yymsp[0].minor.yy568 = JOIN_TYPE_INNER; } break; - case 409: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + case 410: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ { - yymsp[-11].minor.yy452 = createSelectStmt(pCxt, yymsp[-10].minor.yy437, yymsp[-9].minor.yy404, yymsp[-8].minor.yy452); - yymsp[-11].minor.yy452 = addWhereClause(pCxt, yymsp[-11].minor.yy452, yymsp[-7].minor.yy452); - yymsp[-11].minor.yy452 = addPartitionByClause(pCxt, yymsp[-11].minor.yy452, yymsp[-6].minor.yy404); - yymsp[-11].minor.yy452 = addWindowClauseClause(pCxt, yymsp[-11].minor.yy452, yymsp[-2].minor.yy452); - yymsp[-11].minor.yy452 = addGroupByClause(pCxt, yymsp[-11].minor.yy452, yymsp[-1].minor.yy404); - yymsp[-11].minor.yy452 = addHavingClause(pCxt, yymsp[-11].minor.yy452, yymsp[0].minor.yy452); - yymsp[-11].minor.yy452 = addRangeClause(pCxt, yymsp[-11].minor.yy452, yymsp[-5].minor.yy452); - yymsp[-11].minor.yy452 = addEveryClause(pCxt, yymsp[-11].minor.yy452, yymsp[-4].minor.yy452); - yymsp[-11].minor.yy452 = addFillClause(pCxt, yymsp[-11].minor.yy452, yymsp[-3].minor.yy452); + yymsp[-11].minor.yy714 = createSelectStmt(pCxt, yymsp[-10].minor.yy215, yymsp[-9].minor.yy656, yymsp[-8].minor.yy714); + yymsp[-11].minor.yy714 = addWhereClause(pCxt, yymsp[-11].minor.yy714, yymsp[-7].minor.yy714); + yymsp[-11].minor.yy714 = addPartitionByClause(pCxt, yymsp[-11].minor.yy714, yymsp[-6].minor.yy656); + yymsp[-11].minor.yy714 = addWindowClauseClause(pCxt, yymsp[-11].minor.yy714, yymsp[-2].minor.yy714); + yymsp[-11].minor.yy714 = addGroupByClause(pCxt, yymsp[-11].minor.yy714, yymsp[-1].minor.yy656); + yymsp[-11].minor.yy714 = addHavingClause(pCxt, yymsp[-11].minor.yy714, yymsp[0].minor.yy714); + yymsp[-11].minor.yy714 = addRangeClause(pCxt, yymsp[-11].minor.yy714, yymsp[-5].minor.yy714); + yymsp[-11].minor.yy714 = addEveryClause(pCxt, yymsp[-11].minor.yy714, yymsp[-4].minor.yy714); + yymsp[-11].minor.yy714 = addFillClause(pCxt, yymsp[-11].minor.yy714, yymsp[-3].minor.yy714); } break; - case 412: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy437 = false; } + case 413: /* set_quantifier_opt ::= ALL */ +{ yymsp[0].minor.yy215 = false; } break; - case 413: /* select_list ::= NK_STAR */ -{ yymsp[0].minor.yy404 = NULL; } + case 414: /* select_list ::= NK_STAR */ +{ yymsp[0].minor.yy656 = NULL; } break; - case 418: /* select_item ::= common_expression column_alias */ -{ yylhsminor.yy452 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy452), &yymsp[0].minor.yy109); } - yymsp[-1].minor.yy452 = yylhsminor.yy452; + case 419: /* select_item ::= common_expression column_alias */ +{ yylhsminor.yy714 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy714), &yymsp[0].minor.yy729); } + yymsp[-1].minor.yy714 = yylhsminor.yy714; break; - case 419: /* select_item ::= common_expression AS column_alias */ -{ yylhsminor.yy452 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), &yymsp[0].minor.yy109); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 420: /* select_item ::= common_expression AS column_alias */ +{ yylhsminor.yy714 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy714), &yymsp[0].minor.yy729); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 424: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 441: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==441); - case 457: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==457); -{ yymsp[-2].minor.yy404 = yymsp[0].minor.yy404; } + case 425: /* partition_by_clause_opt ::= PARTITION BY expression_list */ + case 442: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==442); + case 458: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==458); +{ yymsp[-2].minor.yy656 = yymsp[0].minor.yy656; } break; - case 426: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -{ yymsp[-5].minor.yy452 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), releaseRawExprNode(pCxt, yymsp[-1].minor.yy452)); } + case 427: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ +{ yymsp[-5].minor.yy714 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy714), releaseRawExprNode(pCxt, yymsp[-1].minor.yy714)); } break; - case 427: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ -{ yymsp[-3].minor.yy452 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy452)); } + case 428: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ +{ yymsp[-3].minor.yy714 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy714)); } break; - case 428: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy452 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), NULL, yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } + case 429: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-5].minor.yy714 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy714), NULL, yymsp[-1].minor.yy714, yymsp[0].minor.yy714); } break; - case 429: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-7].minor.yy452 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy452), releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), yymsp[-1].minor.yy452, yymsp[0].minor.yy452); } + case 430: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-7].minor.yy714 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy714), releaseRawExprNode(pCxt, yymsp[-3].minor.yy714), yymsp[-1].minor.yy714, yymsp[0].minor.yy714); } break; - case 431: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - case 449: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==449); -{ yymsp[-3].minor.yy452 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy452); } + case 432: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + case 450: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==450); +{ yymsp[-3].minor.yy714 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy714); } break; - case 433: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy452 = createFillNode(pCxt, yymsp[-1].minor.yy614, NULL); } + case 434: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +{ yymsp[-3].minor.yy714 = createFillNode(pCxt, yymsp[-1].minor.yy256, NULL); } break; - case 434: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ -{ yymsp[-5].minor.yy452 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy404)); } + case 435: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ +{ yymsp[-5].minor.yy714 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy656)); } break; - case 435: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy614 = FILL_MODE_NONE; } + case 436: /* fill_mode ::= NONE */ +{ yymsp[0].minor.yy256 = FILL_MODE_NONE; } break; - case 436: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy614 = FILL_MODE_PREV; } + case 437: /* fill_mode ::= PREV */ +{ yymsp[0].minor.yy256 = FILL_MODE_PREV; } break; - case 437: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy614 = FILL_MODE_NULL; } + case 438: /* fill_mode ::= NULL */ +{ yymsp[0].minor.yy256 = FILL_MODE_NULL; } break; - case 438: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy614 = FILL_MODE_LINEAR; } + case 439: /* fill_mode ::= LINEAR */ +{ yymsp[0].minor.yy256 = FILL_MODE_LINEAR; } break; - case 439: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy614 = FILL_MODE_NEXT; } + case 440: /* fill_mode ::= NEXT */ +{ yymsp[0].minor.yy256 = FILL_MODE_NEXT; } break; - case 442: /* group_by_list ::= expression */ -{ yylhsminor.yy404 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } - yymsp[0].minor.yy404 = yylhsminor.yy404; + case 443: /* group_by_list ::= expression */ +{ yylhsminor.yy656 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy714))); } + yymsp[0].minor.yy656 = yylhsminor.yy656; break; - case 443: /* group_by_list ::= group_by_list NK_COMMA expression */ -{ yylhsminor.yy404 = addNodeToList(pCxt, yymsp[-2].minor.yy404, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy452))); } - yymsp[-2].minor.yy404 = yylhsminor.yy404; + case 444: /* group_by_list ::= group_by_list NK_COMMA expression */ +{ yylhsminor.yy656 = addNodeToList(pCxt, yymsp[-2].minor.yy656, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy714))); } + yymsp[-2].minor.yy656 = yylhsminor.yy656; break; - case 447: /* range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ -{ yymsp[-5].minor.yy452 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy452), releaseRawExprNode(pCxt, yymsp[-1].minor.yy452)); } + case 448: /* range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ +{ yymsp[-5].minor.yy714 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy714), releaseRawExprNode(pCxt, yymsp[-1].minor.yy714)); } break; - case 450: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 451: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { - yylhsminor.yy452 = addOrderByClause(pCxt, yymsp[-3].minor.yy452, yymsp[-2].minor.yy404); - yylhsminor.yy452 = addSlimitClause(pCxt, yylhsminor.yy452, yymsp[-1].minor.yy452); - yylhsminor.yy452 = addLimitClause(pCxt, yylhsminor.yy452, yymsp[0].minor.yy452); + yylhsminor.yy714 = addOrderByClause(pCxt, yymsp[-3].minor.yy714, yymsp[-2].minor.yy656); + yylhsminor.yy714 = addSlimitClause(pCxt, yylhsminor.yy714, yymsp[-1].minor.yy714); + yylhsminor.yy714 = addLimitClause(pCxt, yylhsminor.yy714, yymsp[0].minor.yy714); } - yymsp[-3].minor.yy452 = yylhsminor.yy452; + yymsp[-3].minor.yy714 = yylhsminor.yy714; break; - case 452: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ -{ yylhsminor.yy452 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy452, yymsp[0].minor.yy452); } - yymsp[-3].minor.yy452 = yylhsminor.yy452; + case 453: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ +{ yylhsminor.yy714 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy714, yymsp[0].minor.yy714); } + yymsp[-3].minor.yy714 = yylhsminor.yy714; break; - case 453: /* query_expression_body ::= query_expression_body UNION query_expression_body */ -{ yylhsminor.yy452 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy452, yymsp[0].minor.yy452); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 454: /* query_expression_body ::= query_expression_body UNION query_expression_body */ +{ yylhsminor.yy714 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy714, yymsp[0].minor.yy714); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 455: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ -{ yymsp[-5].minor.yy452 = yymsp[-4].minor.yy452; } - yy_destructor(yypParser,362,&yymsp[-3].minor); - yy_destructor(yypParser,363,&yymsp[-2].minor); - yy_destructor(yypParser,364,&yymsp[-1].minor); + case 456: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ +{ yymsp[-5].minor.yy714 = yymsp[-4].minor.yy714; } + yy_destructor(yypParser,363,&yymsp[-3].minor); + yy_destructor(yypParser,364,&yymsp[-2].minor); + yy_destructor(yypParser,365,&yymsp[-1].minor); break; - case 459: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 463: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==463); -{ yymsp[-1].minor.yy452 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 460: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 464: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==464); +{ yymsp[-1].minor.yy714 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 460: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 464: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==464); -{ yymsp[-3].minor.yy452 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 461: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 465: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==465); +{ yymsp[-3].minor.yy714 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 461: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 465: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==465); -{ yymsp[-3].minor.yy452 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 462: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 466: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==466); +{ yymsp[-3].minor.yy714 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 466: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy452 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy452); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 467: /* subquery ::= NK_LP query_expression NK_RP */ +{ yylhsminor.yy714 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy714); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 470: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy452 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy452), yymsp[-1].minor.yy178, yymsp[0].minor.yy77); } - yymsp[-2].minor.yy452 = yylhsminor.yy452; + case 471: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ +{ yylhsminor.yy714 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy714), yymsp[-1].minor.yy372, yymsp[0].minor.yy193); } + yymsp[-2].minor.yy714 = yylhsminor.yy714; break; - case 471: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy178 = ORDER_ASC; } + case 472: /* ordering_specification_opt ::= */ +{ yymsp[1].minor.yy372 = ORDER_ASC; } break; - case 472: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy178 = ORDER_ASC; } + case 473: /* ordering_specification_opt ::= ASC */ +{ yymsp[0].minor.yy372 = ORDER_ASC; } break; - case 473: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy178 = ORDER_DESC; } + case 474: /* ordering_specification_opt ::= DESC */ +{ yymsp[0].minor.yy372 = ORDER_DESC; } break; - case 474: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy77 = NULL_ORDER_DEFAULT; } + case 475: /* null_ordering_opt ::= */ +{ yymsp[1].minor.yy193 = NULL_ORDER_DEFAULT; } break; - case 475: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy77 = NULL_ORDER_FIRST; } + case 476: /* null_ordering_opt ::= NULLS FIRST */ +{ yymsp[-1].minor.yy193 = NULL_ORDER_FIRST; } break; - case 476: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy77 = NULL_ORDER_LAST; } + case 477: /* null_ordering_opt ::= NULLS LAST */ +{ yymsp[-1].minor.yy193 = NULL_ORDER_LAST; } break; default: break; diff --git a/source/libs/planner/src/planLogicCreater.c b/source/libs/planner/src/planLogicCreater.c index 396a7b61935023ac987d6771c41bfe3451960663..291849bce1fddd663e3012bdea51373c8932eefc 100644 --- a/source/libs/planner/src/planLogicCreater.c +++ b/source/libs/planner/src/planLogicCreater.c @@ -1101,6 +1101,8 @@ static int32_t getMsgType(ENodeType sqlType) { return TDMT_VND_DROP_TABLE; case QUERY_NODE_ALTER_TABLE_STMT: return TDMT_VND_ALTER_TABLE; + case QUERY_NODE_FLUSH_DATABASE_STMT: + return TDMT_VND_COMMIT; default: break; } diff --git a/source/libs/scheduler/src/schRemote.c b/source/libs/scheduler/src/schRemote.c index 0bd747785cb162ed6ad10b7c7fc6f5f77ab28d9e..b13f6b1ad6ac2f58b1091911e21a379d32fc6fd6 100644 --- a/source/libs/scheduler/src/schRemote.c +++ b/source/libs/scheduler/src/schRemote.c @@ -448,6 +448,10 @@ int32_t schHandleDropCallback(void *param, const SDataBuf *pMsg, int32_t code) { return TSDB_CODE_SUCCESS; } +int32_t schHandleCommitCallback(void *param, const SDataBuf *pMsg, int32_t code) { + return schHandleCallback(param, pMsg, TDMT_VND_COMMIT_RSP, code); +} + int32_t schHandleLinkBrokenCallback(void *param, const SDataBuf *pMsg, int32_t code) { SSchCallbackParamHeader *head = (SSchCallbackParamHeader *)param; rpcReleaseHandle(pMsg->handle, TAOS_CONN_CLIENT); @@ -586,6 +590,9 @@ int32_t schGetCallbackFp(int32_t msgType, __async_send_cb_fn_t *fp) { case TDMT_VND_QUERY_HEARTBEAT: *fp = schHandleHbCallback; break; + case TDMT_VND_COMMIT: + *fp = schHandleCommitCallback; + break; case TDMT_SCH_LINK_BROKEN: *fp = schHandleLinkBrokenCallback; break; @@ -1000,7 +1007,8 @@ int32_t schBuildAndSendMsg(SSchJob *pJob, SSchTask *pTask, SQueryNodeAddr *addr, case TDMT_VND_CREATE_TABLE: case TDMT_VND_DROP_TABLE: case TDMT_VND_ALTER_TABLE: - case TDMT_VND_SUBMIT: { + case TDMT_VND_SUBMIT: + case TDMT_VND_COMMIT: { msgSize = pTask->msgLen; msg = taosMemoryCalloc(1, msgSize); if (NULL == msg) {