From 1d62834e5c29c0f5efe748db511e22d1156d44b4 Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Mon, 26 Sep 2022 18:39:47 +0800 Subject: [PATCH] feat(stream): tag and child table name improvement --- include/common/tmsg.h | 15 +- include/common/ttokendef.h | 444 +- include/libs/nodes/cmdnodes.h | 3 + include/libs/nodes/plannodes.h | 12 +- include/libs/nodes/querynodes.h | 2 + source/common/src/tmsg.c | 41 +- source/libs/executor/inc/executorimpl.h | 2 +- source/libs/executor/src/executorimpl.c | 33 +- source/libs/executor/src/groupoperator.c | 10 +- source/libs/nodes/src/nodesCloneFuncs.c | 4 + source/libs/nodes/src/nodesCodeFuncs.c | 65 +- source/libs/nodes/src/nodesMsgFuncs.c | 64 +- source/libs/nodes/src/nodesTraverseFuncs.c | 4 + source/libs/nodes/src/nodesUtilFuncs.c | 2 + source/libs/parser/inc/parAst.h | 4 +- source/libs/parser/inc/sql.y | 25 +- source/libs/parser/src/parAstCreater.c | 7 +- source/libs/parser/src/parCalcConst.c | 6 + source/libs/parser/src/parTokenizer.c | 2 + source/libs/parser/src/parTranslater.c | 117 +- source/libs/parser/src/sql.c | 6175 ++++++++++--------- source/libs/parser/test/parInitialCTest.cpp | 38 + source/libs/parser/test/parShowToUse.cpp | 9 +- source/libs/planner/src/planLogicCreater.c | 14 + source/libs/planner/src/planOptimizer.c | 2 + source/libs/planner/src/planPhysiCreater.c | 48 +- source/libs/planner/test/planOtherTest.cpp | 6 + 27 files changed, 3819 insertions(+), 3335 deletions(-) diff --git a/include/common/tmsg.h b/include/common/tmsg.h index d11fd4da10..49db88d703 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -866,7 +866,8 @@ int32_t tSerializeSDbCfgReq(void* buf, int32_t bufLen, SDbCfgReq* pReq); int32_t tDeserializeSDbCfgReq(void* buf, int32_t bufLen, SDbCfgReq* pReq); typedef struct { - char db[TSDB_DB_FNAME_LEN]; + char db[TSDB_DB_FNAME_LEN]; + int32_t maxSpeed; } STrimDbReq; int32_t tSerializeSTrimDbReq(void* buf, int32_t bufLen, STrimDbReq* pReq); @@ -1426,10 +1427,10 @@ typedef struct { typedef struct { SExplainRsp rsp; - uint64_t qId; - uint64_t tId; - int64_t rId; - int32_t eId; + uint64_t qId; + uint64_t tId; + int64_t rId; + int32_t eId; } SExplainLocalRsp; typedef struct STableScanAnalyzeInfo { @@ -1446,7 +1447,7 @@ typedef struct STableScanAnalyzeInfo { int32_t tSerializeSExplainRsp(void* buf, int32_t bufLen, SExplainRsp* pRsp); int32_t tDeserializeSExplainRsp(void* buf, int32_t bufLen, SExplainRsp* pRsp); -void tFreeSExplainRsp(SExplainRsp *pRsp); +void tFreeSExplainRsp(SExplainRsp* pRsp); typedef struct { char fqdn[TSDB_FQDN_LEN]; // end point, hostname:port @@ -1729,6 +1730,8 @@ typedef struct { int64_t maxDelay; int64_t watermark; int8_t igExpired; + int32_t numOfTags; + SArray* pTags; // array of SField } SCMCreateStreamReq; typedef struct { diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 0111b03aac..f40ff275ca 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -107,227 +107,229 @@ #define TK_TABLE_PREFIX 89 #define TK_TABLE_SUFFIX 90 #define TK_NK_COLON 91 -#define TK_TABLE 92 -#define TK_NK_LP 93 -#define TK_NK_RP 94 -#define TK_STABLE 95 -#define TK_ADD 96 -#define TK_COLUMN 97 -#define TK_MODIFY 98 -#define TK_RENAME 99 -#define TK_TAG 100 -#define TK_SET 101 -#define TK_NK_EQ 102 -#define TK_USING 103 -#define TK_TAGS 104 -#define TK_COMMENT 105 -#define TK_BOOL 106 -#define TK_TINYINT 107 -#define TK_SMALLINT 108 -#define TK_INT 109 -#define TK_INTEGER 110 -#define TK_BIGINT 111 -#define TK_FLOAT 112 -#define TK_DOUBLE 113 -#define TK_BINARY 114 -#define TK_TIMESTAMP 115 -#define TK_NCHAR 116 -#define TK_UNSIGNED 117 -#define TK_JSON 118 -#define TK_VARCHAR 119 -#define TK_MEDIUMBLOB 120 -#define TK_BLOB 121 -#define TK_VARBINARY 122 -#define TK_DECIMAL 123 -#define TK_MAX_DELAY 124 -#define TK_WATERMARK 125 -#define TK_ROLLUP 126 -#define TK_TTL 127 -#define TK_SMA 128 -#define TK_FIRST 129 -#define TK_LAST 130 -#define TK_SHOW 131 -#define TK_DATABASES 132 -#define TK_TABLES 133 -#define TK_STABLES 134 -#define TK_MNODES 135 -#define TK_MODULES 136 -#define TK_QNODES 137 -#define TK_FUNCTIONS 138 -#define TK_INDEXES 139 -#define TK_ACCOUNTS 140 -#define TK_APPS 141 -#define TK_CONNECTIONS 142 -#define TK_LICENCES 143 -#define TK_GRANTS 144 -#define TK_QUERIES 145 -#define TK_SCORES 146 -#define TK_TOPICS 147 -#define TK_VARIABLES 148 -#define TK_BNODES 149 -#define TK_SNODES 150 -#define TK_CLUSTER 151 -#define TK_TRANSACTIONS 152 -#define TK_DISTRIBUTED 153 -#define TK_CONSUMERS 154 -#define TK_SUBSCRIPTIONS 155 -#define TK_VNODES 156 -#define TK_LIKE 157 -#define TK_INDEX 158 -#define TK_FUNCTION 159 -#define TK_INTERVAL 160 -#define TK_TOPIC 161 -#define TK_AS 162 -#define TK_WITH 163 -#define TK_META 164 -#define TK_CONSUMER 165 -#define TK_GROUP 166 -#define TK_DESC 167 -#define TK_DESCRIBE 168 -#define TK_RESET 169 -#define TK_QUERY 170 -#define TK_CACHE 171 -#define TK_EXPLAIN 172 -#define TK_ANALYZE 173 -#define TK_VERBOSE 174 -#define TK_NK_BOOL 175 -#define TK_RATIO 176 -#define TK_NK_FLOAT 177 -#define TK_OUTPUTTYPE 178 -#define TK_AGGREGATE 179 -#define TK_BUFSIZE 180 -#define TK_STREAM 181 -#define TK_INTO 182 -#define TK_TRIGGER 183 -#define TK_AT_ONCE 184 -#define TK_WINDOW_CLOSE 185 -#define TK_IGNORE 186 -#define TK_EXPIRED 187 -#define TK_KILL 188 -#define TK_CONNECTION 189 -#define TK_TRANSACTION 190 -#define TK_BALANCE 191 -#define TK_VGROUP 192 -#define TK_MERGE 193 -#define TK_REDISTRIBUTE 194 -#define TK_SPLIT 195 -#define TK_DELETE 196 -#define TK_INSERT 197 -#define TK_NULL 198 -#define TK_NK_QUESTION 199 -#define TK_NK_ARROW 200 -#define TK_ROWTS 201 -#define TK_TBNAME 202 -#define TK_QSTART 203 -#define TK_QEND 204 -#define TK_QDURATION 205 -#define TK_WSTART 206 -#define TK_WEND 207 -#define TK_WDURATION 208 -#define TK_CAST 209 -#define TK_NOW 210 -#define TK_TODAY 211 -#define TK_TIMEZONE 212 -#define TK_CLIENT_VERSION 213 -#define TK_SERVER_VERSION 214 -#define TK_SERVER_STATUS 215 -#define TK_CURRENT_USER 216 -#define TK_COUNT 217 -#define TK_LAST_ROW 218 -#define TK_CASE 219 -#define TK_END 220 -#define TK_WHEN 221 -#define TK_THEN 222 -#define TK_ELSE 223 -#define TK_BETWEEN 224 -#define TK_IS 225 -#define TK_NK_LT 226 -#define TK_NK_GT 227 -#define TK_NK_LE 228 -#define TK_NK_GE 229 -#define TK_NK_NE 230 -#define TK_MATCH 231 -#define TK_NMATCH 232 -#define TK_CONTAINS 233 -#define TK_IN 234 -#define TK_JOIN 235 -#define TK_INNER 236 -#define TK_SELECT 237 -#define TK_DISTINCT 238 -#define TK_WHERE 239 -#define TK_PARTITION 240 -#define TK_BY 241 -#define TK_SESSION 242 -#define TK_STATE_WINDOW 243 -#define TK_SLIDING 244 -#define TK_FILL 245 -#define TK_VALUE 246 -#define TK_NONE 247 -#define TK_PREV 248 -#define TK_LINEAR 249 -#define TK_NEXT 250 -#define TK_HAVING 251 -#define TK_RANGE 252 -#define TK_EVERY 253 -#define TK_ORDER 254 -#define TK_SLIMIT 255 -#define TK_SOFFSET 256 -#define TK_LIMIT 257 -#define TK_OFFSET 258 -#define TK_ASC 259 -#define TK_NULLS 260 -#define TK_ABORT 261 -#define TK_AFTER 262 -#define TK_ATTACH 263 -#define TK_BEFORE 264 -#define TK_BEGIN 265 -#define TK_BITAND 266 -#define TK_BITNOT 267 -#define TK_BITOR 268 -#define TK_BLOCKS 269 -#define TK_CHANGE 270 -#define TK_COMMA 271 -#define TK_COMPACT 272 -#define TK_CONCAT 273 -#define TK_CONFLICT 274 -#define TK_COPY 275 -#define TK_DEFERRED 276 -#define TK_DELIMITERS 277 -#define TK_DETACH 278 -#define TK_DIVIDE 279 -#define TK_DOT 280 -#define TK_EACH 281 -#define TK_FAIL 282 -#define TK_FILE 283 -#define TK_FOR 284 -#define TK_GLOB 285 -#define TK_ID 286 -#define TK_IMMEDIATE 287 -#define TK_IMPORT 288 -#define TK_INITIALLY 289 -#define TK_INSTEAD 290 -#define TK_ISNULL 291 -#define TK_KEY 292 -#define TK_NK_BITNOT 293 -#define TK_NK_SEMI 294 -#define TK_NOTNULL 295 -#define TK_OF 296 -#define TK_PLUS 297 -#define TK_PRIVILEGE 298 -#define TK_RAISE 299 -#define TK_REPLACE 300 -#define TK_RESTRICT 301 -#define TK_ROW 302 -#define TK_SEMI 303 -#define TK_STAR 304 -#define TK_STATEMENT 305 -#define TK_STRING 306 -#define TK_TIMES 307 -#define TK_UPDATE 308 -#define TK_VALUES 309 -#define TK_VARIABLE 310 -#define TK_VIEW 311 -#define TK_WAL 312 +#define TK_MAX_SPEED 92 +#define TK_TABLE 93 +#define TK_NK_LP 94 +#define TK_NK_RP 95 +#define TK_STABLE 96 +#define TK_ADD 97 +#define TK_COLUMN 98 +#define TK_MODIFY 99 +#define TK_RENAME 100 +#define TK_TAG 101 +#define TK_SET 102 +#define TK_NK_EQ 103 +#define TK_USING 104 +#define TK_TAGS 105 +#define TK_COMMENT 106 +#define TK_BOOL 107 +#define TK_TINYINT 108 +#define TK_SMALLINT 109 +#define TK_INT 110 +#define TK_INTEGER 111 +#define TK_BIGINT 112 +#define TK_FLOAT 113 +#define TK_DOUBLE 114 +#define TK_BINARY 115 +#define TK_TIMESTAMP 116 +#define TK_NCHAR 117 +#define TK_UNSIGNED 118 +#define TK_JSON 119 +#define TK_VARCHAR 120 +#define TK_MEDIUMBLOB 121 +#define TK_BLOB 122 +#define TK_VARBINARY 123 +#define TK_DECIMAL 124 +#define TK_MAX_DELAY 125 +#define TK_WATERMARK 126 +#define TK_ROLLUP 127 +#define TK_TTL 128 +#define TK_SMA 129 +#define TK_FIRST 130 +#define TK_LAST 131 +#define TK_SHOW 132 +#define TK_DATABASES 133 +#define TK_TABLES 134 +#define TK_STABLES 135 +#define TK_MNODES 136 +#define TK_MODULES 137 +#define TK_QNODES 138 +#define TK_FUNCTIONS 139 +#define TK_INDEXES 140 +#define TK_ACCOUNTS 141 +#define TK_APPS 142 +#define TK_CONNECTIONS 143 +#define TK_LICENCES 144 +#define TK_GRANTS 145 +#define TK_QUERIES 146 +#define TK_SCORES 147 +#define TK_TOPICS 148 +#define TK_VARIABLES 149 +#define TK_BNODES 150 +#define TK_SNODES 151 +#define TK_CLUSTER 152 +#define TK_TRANSACTIONS 153 +#define TK_DISTRIBUTED 154 +#define TK_CONSUMERS 155 +#define TK_SUBSCRIPTIONS 156 +#define TK_VNODES 157 +#define TK_LIKE 158 +#define TK_INDEX 159 +#define TK_FUNCTION 160 +#define TK_INTERVAL 161 +#define TK_TOPIC 162 +#define TK_AS 163 +#define TK_WITH 164 +#define TK_META 165 +#define TK_CONSUMER 166 +#define TK_GROUP 167 +#define TK_DESC 168 +#define TK_DESCRIBE 169 +#define TK_RESET 170 +#define TK_QUERY 171 +#define TK_CACHE 172 +#define TK_EXPLAIN 173 +#define TK_ANALYZE 174 +#define TK_VERBOSE 175 +#define TK_NK_BOOL 176 +#define TK_RATIO 177 +#define TK_NK_FLOAT 178 +#define TK_OUTPUTTYPE 179 +#define TK_AGGREGATE 180 +#define TK_BUFSIZE 181 +#define TK_STREAM 182 +#define TK_INTO 183 +#define TK_TRIGGER 184 +#define TK_AT_ONCE 185 +#define TK_WINDOW_CLOSE 186 +#define TK_IGNORE 187 +#define TK_EXPIRED 188 +#define TK_SUBTABLE 189 +#define TK_KILL 190 +#define TK_CONNECTION 191 +#define TK_TRANSACTION 192 +#define TK_BALANCE 193 +#define TK_VGROUP 194 +#define TK_MERGE 195 +#define TK_REDISTRIBUTE 196 +#define TK_SPLIT 197 +#define TK_DELETE 198 +#define TK_INSERT 199 +#define TK_NULL 200 +#define TK_NK_QUESTION 201 +#define TK_NK_ARROW 202 +#define TK_ROWTS 203 +#define TK_TBNAME 204 +#define TK_QSTART 205 +#define TK_QEND 206 +#define TK_QDURATION 207 +#define TK_WSTART 208 +#define TK_WEND 209 +#define TK_WDURATION 210 +#define TK_CAST 211 +#define TK_NOW 212 +#define TK_TODAY 213 +#define TK_TIMEZONE 214 +#define TK_CLIENT_VERSION 215 +#define TK_SERVER_VERSION 216 +#define TK_SERVER_STATUS 217 +#define TK_CURRENT_USER 218 +#define TK_COUNT 219 +#define TK_LAST_ROW 220 +#define TK_CASE 221 +#define TK_END 222 +#define TK_WHEN 223 +#define TK_THEN 224 +#define TK_ELSE 225 +#define TK_BETWEEN 226 +#define TK_IS 227 +#define TK_NK_LT 228 +#define TK_NK_GT 229 +#define TK_NK_LE 230 +#define TK_NK_GE 231 +#define TK_NK_NE 232 +#define TK_MATCH 233 +#define TK_NMATCH 234 +#define TK_CONTAINS 235 +#define TK_IN 236 +#define TK_JOIN 237 +#define TK_INNER 238 +#define TK_SELECT 239 +#define TK_DISTINCT 240 +#define TK_WHERE 241 +#define TK_PARTITION 242 +#define TK_BY 243 +#define TK_SESSION 244 +#define TK_STATE_WINDOW 245 +#define TK_SLIDING 246 +#define TK_FILL 247 +#define TK_VALUE 248 +#define TK_NONE 249 +#define TK_PREV 250 +#define TK_LINEAR 251 +#define TK_NEXT 252 +#define TK_HAVING 253 +#define TK_RANGE 254 +#define TK_EVERY 255 +#define TK_ORDER 256 +#define TK_SLIMIT 257 +#define TK_SOFFSET 258 +#define TK_LIMIT 259 +#define TK_OFFSET 260 +#define TK_ASC 261 +#define TK_NULLS 262 +#define TK_ABORT 263 +#define TK_AFTER 264 +#define TK_ATTACH 265 +#define TK_BEFORE 266 +#define TK_BEGIN 267 +#define TK_BITAND 268 +#define TK_BITNOT 269 +#define TK_BITOR 270 +#define TK_BLOCKS 271 +#define TK_CHANGE 272 +#define TK_COMMA 273 +#define TK_COMPACT 274 +#define TK_CONCAT 275 +#define TK_CONFLICT 276 +#define TK_COPY 277 +#define TK_DEFERRED 278 +#define TK_DELIMITERS 279 +#define TK_DETACH 280 +#define TK_DIVIDE 281 +#define TK_DOT 282 +#define TK_EACH 283 +#define TK_FAIL 284 +#define TK_FILE 285 +#define TK_FOR 286 +#define TK_GLOB 287 +#define TK_ID 288 +#define TK_IMMEDIATE 289 +#define TK_IMPORT 290 +#define TK_INITIALLY 291 +#define TK_INSTEAD 292 +#define TK_ISNULL 293 +#define TK_KEY 294 +#define TK_NK_BITNOT 295 +#define TK_NK_SEMI 296 +#define TK_NOTNULL 297 +#define TK_OF 298 +#define TK_PLUS 299 +#define TK_PRIVILEGE 300 +#define TK_RAISE 301 +#define TK_REPLACE 302 +#define TK_RESTRICT 303 +#define TK_ROW 304 +#define TK_SEMI 305 +#define TK_STAR 306 +#define TK_STATEMENT 307 +#define TK_STRING 308 +#define TK_TIMES 309 +#define TK_UPDATE 310 +#define TK_VALUES 311 +#define TK_VARIABLE 312 +#define TK_VIEW 313 +#define TK_WAL 314 #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 22e92b2e80..0752512951 100644 --- a/include/libs/nodes/cmdnodes.h +++ b/include/libs/nodes/cmdnodes.h @@ -119,6 +119,7 @@ typedef struct SFlushDatabaseStmt { typedef struct STrimDatabaseStmt { ENodeType type; char dbName[TSDB_DB_NAME_LEN]; + int32_t maxSpeed; } STrimDatabaseStmt; typedef struct STableOptions { @@ -383,6 +384,8 @@ typedef struct SCreateStreamStmt { bool ignoreExists; SStreamOptions* pOptions; SNode* pQuery; + SNodeList* pTags; + SNode* pSubtable; } SCreateStreamStmt; typedef struct SDropStreamStmt { diff --git a/include/libs/nodes/plannodes.h b/include/libs/nodes/plannodes.h index a531eeffde..e6e34648f9 100644 --- a/include/libs/nodes/plannodes.h +++ b/include/libs/nodes/plannodes.h @@ -94,6 +94,8 @@ typedef struct SScanLogicNode { SArray* pSmaIndexes; SNodeList* pGroupTags; bool groupSort; + SNodeList* pTags; // for create stream + SNode* pSubtable; // for create stream int8_t cacheLastMode; bool hasNormalCols; // neither tag column nor primary key tag column bool sortPrimaryKey; @@ -233,6 +235,8 @@ typedef struct SSortLogicNode { typedef struct SPartitionLogicNode { SLogicNode node; SNodeList* pPartitionKeys; + SNodeList* pTags; + SNode* pSubtable; } SPartitionLogicNode; typedef enum ESubplanType { @@ -332,6 +336,8 @@ typedef struct STableScanPhysiNode { SNodeList* pDynamicScanFuncs; SNodeList* pGroupTags; bool groupSort; + SNodeList* pTags; + SNode* pSubtable; int64_t interval; int64_t offset; int64_t sliding; @@ -495,7 +501,11 @@ typedef struct SPartitionPhysiNode { SNodeList* pTargets; } SPartitionPhysiNode; -typedef SPartitionPhysiNode SStreamPartitionPhysiNode; +typedef struct SStreamPartitionPhysiNode { + SPartitionPhysiNode part; + SNodeList* pTags; + SNode* pSubtable; +} SStreamPartitionPhysiNode; typedef struct SDataSinkNode { ENodeType type; diff --git a/include/libs/nodes/querynodes.h b/include/libs/nodes/querynodes.h index 9b150159fd..5ee097bd92 100644 --- a/include/libs/nodes/querynodes.h +++ b/include/libs/nodes/querynodes.h @@ -261,6 +261,8 @@ typedef struct SSelectStmt { SNode* pFromTable; SNode* pWhere; SNodeList* pPartitionByList; + SNodeList* pTags; // for create stream + SNode* pSubtable; // for create stream SNode* pWindow; SNodeList* pGroupByList; // SGroupingSetNode SNode* pHaving; diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index e4f3a89272..f4ffc4c996 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -2682,6 +2682,7 @@ int32_t tSerializeSTrimDbReq(void *buf, int32_t bufLen, STrimDbReq *pReq) { if (tStartEncode(&encoder) < 0) return -1; if (tEncodeCStr(&encoder, pReq->db) < 0) return -1; + if (tEncodeI32(&encoder, pReq->maxSpeed) < 0) return -1; tEndEncode(&encoder); int32_t tlen = encoder.pos; @@ -2695,6 +2696,7 @@ int32_t tDeserializeSTrimDbReq(void *buf, int32_t bufLen, STrimDbReq *pReq) { if (tStartDecode(&decoder) < 0) return -1; if (tDecodeCStrTo(&decoder, pReq->db) < 0) return -1; + if (tDecodeI32(&decoder, &pReq->maxSpeed) < 0) return -1; tEndDecode(&decoder); tDecoderClear(&decoder); @@ -3347,12 +3349,12 @@ int32_t tDeserializeSSTbHbRsp(void *buf, int32_t bufLen, SSTbHbRsp *pRsp) { return 0; } -void tFreeSTableMetaRsp(void *pRsp) { +void tFreeSTableMetaRsp(void *pRsp) { if (NULL == pRsp) { return; } - - taosMemoryFreeClear(((STableMetaRsp *)pRsp)->pSchemas); + + taosMemoryFreeClear(((STableMetaRsp *)pRsp)->pSchemas); } void tFreeSTableIndexRsp(void *info) { @@ -4373,8 +4375,7 @@ int32_t tDeserializeSExplainRsp(void *buf, int32_t bufLen, SExplainRsp *pRsp) { if (tDecodeDouble(&decoder, &pRsp->subplanInfo[i].totalCost) < 0) return -1; if (tDecodeU64(&decoder, &pRsp->subplanInfo[i].numOfRows) < 0) return -1; if (tDecodeU32(&decoder, &pRsp->subplanInfo[i].verboseLen) < 0) return -1; - if (tDecodeBinaryAlloc(&decoder, &pRsp->subplanInfo[i].verboseInfo, NULL) < 0) - return -1; + if (tDecodeBinaryAlloc(&decoder, &pRsp->subplanInfo[i].verboseInfo, NULL) < 0) return -1; } tEndDecode(&decoder); @@ -4826,6 +4827,14 @@ int32_t tSerializeSCMCreateStreamReq(void *buf, int32_t bufLen, const SCMCreateS if (tEncodeI8(&encoder, pReq->igExpired) < 0) return -1; if (sqlLen > 0 && tEncodeCStr(&encoder, pReq->sql) < 0) return -1; if (astLen > 0 && tEncodeCStr(&encoder, pReq->ast) < 0) return -1; + if (tEncodeI32(&encoder, pReq->numOfTags) < 0) return -1; + for (int32_t i = 0; i < pReq->numOfTags; ++i) { + SField *pField = taosArrayGet(pReq->pTags, i); + if (tEncodeI8(&encoder, pField->type) < 0) return -1; + if (tEncodeI8(&encoder, pField->flags) < 0) return -1; + if (tEncodeI32(&encoder, pField->bytes) < 0) return -1; + if (tEncodeCStr(&encoder, pField->name) < 0) return -1; + } tEndEncode(&encoder); @@ -4864,6 +4873,28 @@ int32_t tDeserializeSCMCreateStreamReq(void *buf, int32_t bufLen, SCMCreateStrea if (pReq->ast == NULL) return -1; if (tDecodeCStrTo(&decoder, pReq->ast) < 0) return -1; } + + if (tDecodeI32(&decoder, &pReq->numOfTags) < 0) return -1; + if (pReq->numOfTags > 0) { + pReq->pTags = taosArrayInit(pReq->numOfTags, sizeof(SField)); + if (pReq->pTags == NULL) { + terrno = TSDB_CODE_OUT_OF_MEMORY; + return -1; + } + + for (int32_t i = 0; i < pReq->numOfTags; ++i) { + SField field = {0}; + if (tDecodeI8(&decoder, &field.type) < 0) return -1; + if (tDecodeI8(&decoder, &field.flags) < 0) return -1; + if (tDecodeI32(&decoder, &field.bytes) < 0) return -1; + if (tDecodeCStrTo(&decoder, field.name) < 0) return -1; + if (taosArrayPush(pReq->pTags, &field) == NULL) { + terrno = TSDB_CODE_OUT_OF_MEMORY; + return -1; + } + } + } + tEndDecode(&decoder); tDecoderClear(&decoder); diff --git a/source/libs/executor/inc/executorimpl.h b/source/libs/executor/inc/executorimpl.h index dc98b05479..12e00a0a06 100644 --- a/source/libs/executor/inc/executorimpl.h +++ b/source/libs/executor/inc/executorimpl.h @@ -990,7 +990,7 @@ SOperatorInfo* createStatewindowOperatorInfo(SOperatorInfo* downstream, SStateWi SOperatorInfo* createPartitionOperatorInfo(SOperatorInfo* downstream, SPartitionPhysiNode* pPartNode, SExecTaskInfo* pTaskInfo); -SOperatorInfo* createStreamPartitionOperatorInfo(SOperatorInfo* downstream, SPartitionPhysiNode* pPartNode, +SOperatorInfo* createStreamPartitionOperatorInfo(SOperatorInfo* downstream, SStreamPartitionPhysiNode* pPartNode, SExecTaskInfo* pTaskInfo); SOperatorInfo* createTimeSliceOperatorInfo(SOperatorInfo* downstream, SPhysiNode* pNode, SExecTaskInfo* pTaskInfo); diff --git a/source/libs/executor/src/executorimpl.c b/source/libs/executor/src/executorimpl.c index 7fcd41dc3e..a0729bdf3b 100644 --- a/source/libs/executor/src/executorimpl.c +++ b/source/libs/executor/src/executorimpl.c @@ -1110,7 +1110,8 @@ void setResultRowInitCtx(SResultRow* pResult, SqlFunctionCtx* pCtx, int32_t numO } } -static void extractQualifiedTupleByFilterResult(SSDataBlock* pBlock, const SColumnInfoData* p, bool keep, int32_t status); +static void extractQualifiedTupleByFilterResult(SSDataBlock* pBlock, const SColumnInfoData* p, bool keep, + int32_t status); void doFilter(const SNode* pFilterNode, SSDataBlock* pBlock, const SArray* pColMatchInfo) { if (pFilterNode == NULL || pBlock->info.rows == 0) { @@ -1120,12 +1121,12 @@ void doFilter(const SNode* pFilterNode, SSDataBlock* pBlock, const SArray* pColM SFilterInfo* filter = NULL; // todo move to the initialization function - int32_t code = filterInitFromNode((SNode*)pFilterNode, &filter, 0); + int32_t code = filterInitFromNode((SNode*)pFilterNode, &filter, 0); SFilterColumnParam param1 = {.numOfCols = taosArrayGetSize(pBlock->pDataBlock), .pDataBlock = pBlock->pDataBlock}; code = filterSetDataFromSlotId(filter, ¶m1); SColumnInfoData* p = NULL; - int32_t status = 0; + int32_t status = 0; // todo the keep seems never to be True?? bool keep = filterExecute(filter, pBlock, &p, NULL, param1.numOfCols, &status); @@ -1201,7 +1202,7 @@ void extractQualifiedTupleByFilterResult(SSDataBlock* pBlock, const SColumnInfoD } } - void doSetTableGroupOutputBuf(SOperatorInfo* pOperator, int32_t numOfOutput, uint64_t groupId) { +void doSetTableGroupOutputBuf(SOperatorInfo* pOperator, int32_t numOfOutput, uint64_t groupId) { // for simple group by query without interval, all the tables belong to one group result. SExecTaskInfo* pTaskInfo = pOperator->pTaskInfo; SAggOperatorInfo* pAggInfo = pOperator->info; @@ -1787,7 +1788,9 @@ static int32_t doSendFetchDataRequest(SExchangeInfo* pExchangeInfo, SExecTaskInf if (pSource->localExec) { SDataBuf pBuf = {0}; - int32_t code = (*pTaskInfo->localFetch.fp)(pTaskInfo->localFetch.handle, pSource->schedId, pTaskInfo->id.queryId, pSource->taskId, 0, pSource->execId, &pBuf.pData, pTaskInfo->localFetch.explainRes); + int32_t code = + (*pTaskInfo->localFetch.fp)(pTaskInfo->localFetch.handle, pSource->schedId, pTaskInfo->id.queryId, + pSource->taskId, 0, pSource->execId, &pBuf.pData, pTaskInfo->localFetch.explainRes); loadRemoteDataCallback(pWrapper, &pBuf, code); taosMemoryFree(pWrapper); } else { @@ -1798,8 +1801,8 @@ static int32_t doSendFetchDataRequest(SExchangeInfo* pExchangeInfo, SExecTaskInf } qDebug("%s build fetch msg and send to vgId:%d, ep:%s, taskId:0x%" PRIx64 ", execId:%d, %d/%" PRIzu, - GET_TASKID(pTaskInfo), pSource->addr.nodeId, pSource->addr.epSet.eps[0].fqdn, pSource->taskId, pSource->execId, - sourceIndex, totalSources); + GET_TASKID(pTaskInfo), pSource->addr.nodeId, pSource->addr.epSet.eps[0].fqdn, pSource->taskId, + pSource->execId, sourceIndex, totalSources); pMsg->header.vgId = htonl(pSource->addr.nodeId); pMsg->sId = htobe64(pSource->schedId); @@ -1824,9 +1827,10 @@ static int32_t doSendFetchDataRequest(SExchangeInfo* pExchangeInfo, SExecTaskInf pMsgSendInfo->fp = loadRemoteDataCallback; int64_t transporterId = 0; - int32_t code = asyncSendMsgToServer(pExchangeInfo->pTransporter, &pSource->addr.epSet, &transporterId, pMsgSendInfo); + int32_t code = + asyncSendMsgToServer(pExchangeInfo->pTransporter, &pSource->addr.epSet, &transporterId, pMsgSendInfo); } - + return TSDB_CODE_SUCCESS; } @@ -3356,9 +3360,7 @@ static void cleanupTableSchemaInfo(SSchemaInfo* pSchemaInfo) { tDeleteSSchemaWrapper(pSchemaInfo->qsw); } -static void cleanupStreamInfo(SStreamTaskInfo* pStreamInfo) { - tDeleteSSchemaWrapper(pStreamInfo->schema); -} +static void cleanupStreamInfo(SStreamTaskInfo* pStreamInfo) { tDeleteSSchemaWrapper(pStreamInfo->schema); } static int32_t sortTableGroup(STableListInfo* pTableListInfo) { taosArrayClear(pTableListInfo->pGroupList); @@ -3539,7 +3541,8 @@ SOperatorInfo* createOperatorTree(SPhysiNode* pPhyNode, SExecTaskInfo* pTaskInfo STableScanInfo* pScanInfo = pOperator->info; pTaskInfo->cost.pRecoder = &pScanInfo->readRecorder; } else if (QUERY_NODE_PHYSICAL_PLAN_EXCHANGE == type) { - pOperator = createExchangeOperatorInfo(pHandle ? pHandle->pMsgCb->clientRpc : NULL, (SExchangePhysiNode*)pPhyNode, pTaskInfo); + pOperator = createExchangeOperatorInfo(pHandle ? pHandle->pMsgCb->clientRpc : NULL, (SExchangePhysiNode*)pPhyNode, + pTaskInfo); } else if (QUERY_NODE_PHYSICAL_PLAN_STREAM_SCAN == type) { STableScanPhysiNode* pTableScanNode = (STableScanPhysiNode*)pPhyNode; if (pHandle->vnode) { @@ -3729,7 +3732,7 @@ SOperatorInfo* createOperatorTree(SPhysiNode* pPhyNode, SExecTaskInfo* pTaskInfo } else if (QUERY_NODE_PHYSICAL_PLAN_PARTITION == type) { pOptr = createPartitionOperatorInfo(ops[0], (SPartitionPhysiNode*)pPhyNode, pTaskInfo); } else if (QUERY_NODE_PHYSICAL_PLAN_STREAM_PARTITION == type) { - pOptr = createStreamPartitionOperatorInfo(ops[0], (SPartitionPhysiNode*)pPhyNode, pTaskInfo); + pOptr = createStreamPartitionOperatorInfo(ops[0], (SStreamPartitionPhysiNode*)pPhyNode, pTaskInfo); } else if (QUERY_NODE_PHYSICAL_PLAN_MERGE_STATE == type) { SStateWinodwPhysiNode* pStateNode = (SStateWinodwPhysiNode*)pPhyNode; pOptr = createStatewindowOperatorInfo(ops[0], pStateNode, pTaskInfo); @@ -4058,7 +4061,7 @@ void doDestroyTask(SExecTaskInfo* pTaskInfo) { if (!pTaskInfo->localFetch.localExec) { nodesDestroyNode((SNode*)pTaskInfo->pSubplan); } - + taosMemoryFreeClear(pTaskInfo->sql); taosMemoryFreeClear(pTaskInfo->id.str); taosMemoryFreeClear(pTaskInfo); diff --git a/source/libs/executor/src/groupoperator.c b/source/libs/executor/src/groupoperator.c index 5eb6557dbd..7cb641a943 100644 --- a/source/libs/executor/src/groupoperator.c +++ b/source/libs/executor/src/groupoperator.c @@ -989,11 +989,11 @@ SOperatorInfo* createStreamPartitionOperatorInfo(SOperatorInfo* downstream, SStr goto _error; } int32_t code = TSDB_CODE_SUCCESS; - pInfo->partitionSup.pGroupCols = extractPartitionColInfo(pPartNode->pPartitionKeys); + pInfo->partitionSup.pGroupCols = extractPartitionColInfo(pPartNode->part.pPartitionKeys); - if (pPartNode->pExprs != NULL) { + if (pPartNode->part.pExprs != NULL) { int32_t num = 0; - SExprInfo* pCalExprInfo = createExprInfo(pPartNode->pExprs, NULL, &num); + SExprInfo* pCalExprInfo = createExprInfo(pPartNode->part.pExprs, NULL, &num); code = initExprSupp(&pInfo->scalarSup, pCalExprInfo, num); if (code != TSDB_CODE_SUCCESS) { goto _error; @@ -1008,7 +1008,7 @@ SOperatorInfo* createStreamPartitionOperatorInfo(SOperatorInfo* downstream, SStr } pInfo->partitionSup.needCalc = true; - SSDataBlock* pResBlock = createResDataBlock(pPartNode->node.pOutputDataBlockDesc); + SSDataBlock* pResBlock = createResDataBlock(pPartNode->part.node.pOutputDataBlockDesc); if (!pResBlock) { goto _error; } @@ -1022,7 +1022,7 @@ SOperatorInfo* createStreamPartitionOperatorInfo(SOperatorInfo* downstream, SStr pInfo->pDelRes = createSpecialDataBlock(STREAM_DELETE_RESULT); int32_t numOfCols = 0; - SExprInfo* pExprInfo = createExprInfo(pPartNode->pTargets, NULL, &numOfCols); + SExprInfo* pExprInfo = createExprInfo(pPartNode->part.pTargets, NULL, &numOfCols); pOperator->name = "StreamPartitionOperator"; pOperator->blocking = false; diff --git a/source/libs/nodes/src/nodesCloneFuncs.c b/source/libs/nodes/src/nodesCloneFuncs.c index c145952778..7cad5df3a1 100644 --- a/source/libs/nodes/src/nodesCloneFuncs.c +++ b/source/libs/nodes/src/nodesCloneFuncs.c @@ -381,6 +381,8 @@ static int32_t logicScanCopy(const SScanLogicNode* pSrc, SScanLogicNode* pDst) { COPY_SCALAR_FIELD(igExpired); CLONE_NODE_LIST_FIELD(pGroupTags); COPY_SCALAR_FIELD(groupSort); + CLONE_NODE_LIST_FIELD(pTags); + CLONE_NODE_FIELD(pSubtable); return TSDB_CODE_SUCCESS; } @@ -488,6 +490,8 @@ static int32_t logicSortCopy(const SSortLogicNode* pSrc, SSortLogicNode* pDst) { static int32_t logicPartitionCopy(const SPartitionLogicNode* pSrc, SPartitionLogicNode* pDst) { COPY_BASE_OBJECT_FIELD(node, logicNodeCopy); CLONE_NODE_LIST_FIELD(pPartitionKeys); + CLONE_NODE_LIST_FIELD(pTags); + CLONE_NODE_FIELD(pSubtable); return TSDB_CODE_SUCCESS; } diff --git a/source/libs/nodes/src/nodesCodeFuncs.c b/source/libs/nodes/src/nodesCodeFuncs.c index af6c1757a9..78afadb75c 100644 --- a/source/libs/nodes/src/nodesCodeFuncs.c +++ b/source/libs/nodes/src/nodesCodeFuncs.c @@ -1538,6 +1538,8 @@ static const char* jkTableScanPhysiPlanWatermark = "Watermark"; static const char* jkTableScanPhysiPlanIgnoreExpired = "IgnoreExpired"; static const char* jkTableScanPhysiPlanGroupTags = "GroupTags"; static const char* jkTableScanPhysiPlanGroupSort = "GroupSort"; +static const char* jkTableScanPhysiPlanTags = "Tags"; +static const char* jkTableScanPhysiPlanSubtable = "Subtable"; static const char* jkTableScanPhysiPlanAssignBlockUid = "AssignBlockUid"; static int32_t physiTableScanNodeToJson(const void* pObj, SJson* pJson) { @@ -1595,6 +1597,12 @@ static int32_t physiTableScanNodeToJson(const void* pObj, SJson* pJson) { if (TSDB_CODE_SUCCESS == code) { code = tjsonAddBoolToObject(pJson, jkTableScanPhysiPlanGroupSort, pNode->groupSort); } + if (TSDB_CODE_SUCCESS == code) { + code = nodeListToJson(pJson, jkTableScanPhysiPlanTags, pNode->pTags); + } + if (TSDB_CODE_SUCCESS == code) { + code = tjsonAddObject(pJson, jkTableScanPhysiPlanSubtable, nodeToJson, pNode->pSubtable); + } if (TSDB_CODE_SUCCESS == code) { code = tjsonAddBoolToObject(pJson, jkTableScanPhysiPlanAssignBlockUid, pNode->assignBlockUid); } @@ -1657,6 +1665,12 @@ static int32_t jsonToPhysiTableScanNode(const SJson* pJson, void* pObj) { if (TSDB_CODE_SUCCESS == code) { code = tjsonGetBoolValue(pJson, jkTableScanPhysiPlanGroupSort, &pNode->groupSort); } + if (TSDB_CODE_SUCCESS == code) { + code = jsonToNodeList(pJson, jkTableScanPhysiPlanTags, &pNode->pTags); + } + if (TSDB_CODE_SUCCESS == code) { + code = jsonToNodeObject(pJson, jkTableScanPhysiPlanSubtable, &pNode->pSubtable); + } if (TSDB_CODE_SUCCESS == code) { code = tjsonGetBoolValue(pJson, jkTableScanPhysiPlanAssignBlockUid, &pNode->assignBlockUid); } @@ -2270,6 +2284,37 @@ static int32_t jsonToPhysiPartitionNode(const SJson* pJson, void* pObj) { return code; } +static const char* jkStreamPartitionPhysiPlanTags = "Tags"; +static const char* jkStreamPartitionPhysiPlanSubtable = "Subtable"; + +static int32_t physiStreamPartitionNodeToJson(const void* pObj, SJson* pJson) { + const SStreamPartitionPhysiNode* pNode = (const SStreamPartitionPhysiNode*)pObj; + + int32_t code = physiPartitionNodeToJson(pObj, pJson); + if (TSDB_CODE_SUCCESS == code) { + code = nodeListToJson(pJson, jkStreamPartitionPhysiPlanTags, pNode->pTags); + } + if (TSDB_CODE_SUCCESS == code) { + code = tjsonAddObject(pJson, jkStreamPartitionPhysiPlanSubtable, nodeToJson, pNode->pSubtable); + } + + return code; +} + +static int32_t jsonToPhysiStreamPartitionNode(const SJson* pJson, void* pObj) { + SStreamPartitionPhysiNode* pNode = (SStreamPartitionPhysiNode*)pObj; + + int32_t code = jsonToPhysiPartitionNode(pJson, pObj); + if (TSDB_CODE_SUCCESS == code) { + code = jsonToNodeList(pJson, jkStreamPartitionPhysiPlanTags, &pNode->pTags); + } + if (TSDB_CODE_SUCCESS == code) { + code = jsonToNodeObject(pJson, jkStreamPartitionPhysiPlanSubtable, &pNode->pSubtable); + } + + return code; +} + static const char* jkIndefRowsFuncPhysiPlanExprs = "Exprs"; static const char* jkIndefRowsFuncPhysiPlanFuncs = "Funcs"; @@ -4109,6 +4154,8 @@ static const char* jkSelectStmtProjections = "Projections"; static const char* jkSelectStmtFrom = "From"; static const char* jkSelectStmtWhere = "Where"; static const char* jkSelectStmtPartitionBy = "PartitionBy"; +static const char* jkSelectStmtTags = "Tags"; +static const char* jkSelectStmtSubtable = "Subtable"; static const char* jkSelectStmtWindow = "Window"; static const char* jkSelectStmtGroupBy = "GroupBy"; static const char* jkSelectStmtHaving = "Having"; @@ -4134,6 +4181,12 @@ static int32_t selectStmtToJson(const void* pObj, SJson* pJson) { if (TSDB_CODE_SUCCESS == code) { code = nodeListToJson(pJson, jkSelectStmtPartitionBy, pNode->pPartitionByList); } + if (TSDB_CODE_SUCCESS == code) { + code = nodeListToJson(pJson, jkSelectStmtTags, pNode->pTags); + } + if (TSDB_CODE_SUCCESS == code) { + code = tjsonAddObject(pJson, jkSelectStmtSubtable, nodeToJson, pNode->pSubtable); + } if (TSDB_CODE_SUCCESS == code) { code = tjsonAddObject(pJson, jkSelectStmtWindow, nodeToJson, pNode->pWindow); } @@ -4178,6 +4231,12 @@ static int32_t jsonToSelectStmt(const SJson* pJson, void* pObj) { if (TSDB_CODE_SUCCESS == code) { code = jsonToNodeList(pJson, jkSelectStmtPartitionBy, &pNode->pPartitionByList); } + if (TSDB_CODE_SUCCESS == code) { + code = jsonToNodeList(pJson, jkSelectStmtTags, &pNode->pTags); + } + if (TSDB_CODE_SUCCESS == code) { + code = jsonToNodeObject(pJson, jkSelectStmtSubtable, &pNode->pSubtable); + } if (TSDB_CODE_SUCCESS == code) { code = jsonToNodeObject(pJson, jkSelectStmtWindow, &pNode->pWindow); } @@ -4586,8 +4645,9 @@ static int32_t specificNodeToJson(const void* pObj, SJson* pJson) { case QUERY_NODE_PHYSICAL_PLAN_STREAM_STATE: return physiStateWindowNodeToJson(pObj, pJson); case QUERY_NODE_PHYSICAL_PLAN_PARTITION: - case QUERY_NODE_PHYSICAL_PLAN_STREAM_PARTITION: return physiPartitionNodeToJson(pObj, pJson); + case QUERY_NODE_PHYSICAL_PLAN_STREAM_PARTITION: + return physiStreamPartitionNodeToJson(pObj, pJson); case QUERY_NODE_PHYSICAL_PLAN_INDEF_ROWS_FUNC: return physiIndefRowsFuncNodeToJson(pObj, pJson); case QUERY_NODE_PHYSICAL_PLAN_INTERP_FUNC: @@ -4738,8 +4798,9 @@ static int32_t jsonToSpecificNode(const SJson* pJson, void* pObj) { case QUERY_NODE_PHYSICAL_PLAN_STREAM_STATE: return jsonToPhysiStateWindowNode(pJson, pObj); case QUERY_NODE_PHYSICAL_PLAN_PARTITION: - case QUERY_NODE_PHYSICAL_PLAN_STREAM_PARTITION: return jsonToPhysiPartitionNode(pJson, pObj); + case QUERY_NODE_PHYSICAL_PLAN_STREAM_PARTITION: + return jsonToPhysiStreamPartitionNode(pJson, pObj); case QUERY_NODE_PHYSICAL_PLAN_INDEF_ROWS_FUNC: return jsonToPhysiIndefRowsFuncNode(pJson, pObj); case QUERY_NODE_PHYSICAL_PLAN_INTERP_FUNC: diff --git a/source/libs/nodes/src/nodesMsgFuncs.c b/source/libs/nodes/src/nodesMsgFuncs.c index 0c6b11a765..989a4f5925 100644 --- a/source/libs/nodes/src/nodesMsgFuncs.c +++ b/source/libs/nodes/src/nodesMsgFuncs.c @@ -1993,7 +1993,9 @@ enum { PHY_TABLE_SCAN_CODE_SCAN = 1, PHY_TABLE_SCAN_CODE_INLINE_ATTRS, PHY_TABLE_SCAN_CODE_DYN_SCAN_FUNCS, - PHY_TABLE_SCAN_CODE_GROUP_TAGS + PHY_TABLE_SCAN_CODE_GROUP_TAGS, + PHY_TABLE_SCAN_CODE_TAGS, + PHY_TABLE_SCAN_CODE_SUBTABLE }; static int32_t physiTableScanNodeInlineToMsg(const void* pObj, STlvEncoder* pEncoder) { @@ -2062,6 +2064,12 @@ static int32_t physiTableScanNodeToMsg(const void* pObj, STlvEncoder* pEncoder) if (TSDB_CODE_SUCCESS == code) { code = tlvEncodeObj(pEncoder, PHY_TABLE_SCAN_CODE_GROUP_TAGS, nodeListToMsg, pNode->pGroupTags); } + if (TSDB_CODE_SUCCESS == code) { + code = tlvEncodeObj(pEncoder, PHY_TABLE_SCAN_CODE_TAGS, nodeListToMsg, pNode->pTags); + } + if (TSDB_CODE_SUCCESS == code) { + code = tlvEncodeObj(pEncoder, PHY_TABLE_SCAN_CODE_SUBTABLE, nodeToMsg, pNode->pSubtable); + } return code; } @@ -2138,6 +2146,12 @@ static int32_t msgToPhysiTableScanNode(STlvDecoder* pDecoder, void* pObj) { case PHY_TABLE_SCAN_CODE_GROUP_TAGS: code = msgToNodeListFromTlv(pTlv, (void**)&pNode->pGroupTags); break; + case PHY_TABLE_SCAN_CODE_TAGS: + code = msgToNodeListFromTlv(pTlv, (void**)&pNode->pTags); + break; + case PHY_TABLE_SCAN_CODE_SUBTABLE: + code = msgToNodeFromTlv(pTlv, (void**)&pNode->pSubtable); + break; default: break; } @@ -2914,6 +2928,46 @@ static int32_t msgToPhysiPartitionNode(STlvDecoder* pDecoder, void* pObj) { return code; } +enum { PHY_STREAM_PARTITION_CODE_BASE_NODE = 1, PHY_STREAM_PARTITION_CODE_TAGS, PHY_STREAM_PARTITION_CODE_SUBTABLE }; + +static int32_t physiStreamPartitionNodeToMsg(const void* pObj, STlvEncoder* pEncoder) { + const SStreamPartitionPhysiNode* pNode = (const SStreamPartitionPhysiNode*)pObj; + + int32_t code = tlvEncodeObj(pEncoder, PHY_STREAM_PARTITION_CODE_BASE_NODE, physiPartitionNodeToMsg, &pNode->part); + if (TSDB_CODE_SUCCESS == code) { + code = tlvEncodeObj(pEncoder, PHY_STREAM_PARTITION_CODE_TAGS, nodeListToMsg, pNode->pTags); + } + if (TSDB_CODE_SUCCESS == code) { + code = tlvEncodeObj(pEncoder, PHY_STREAM_PARTITION_CODE_SUBTABLE, nodeToMsg, pNode->pSubtable); + } + + return code; +} + +static int32_t msgToPhysiStreamPartitionNode(STlvDecoder* pDecoder, void* pObj) { + SStreamPartitionPhysiNode* pNode = (SStreamPartitionPhysiNode*)pObj; + + int32_t code = TSDB_CODE_SUCCESS; + STlv* pTlv = NULL; + tlvForEach(pDecoder, pTlv, code) { + switch (pTlv->type) { + case PHY_STREAM_PARTITION_CODE_BASE_NODE: + code = tlvDecodeObjFromTlv(pTlv, msgToPhysiPartitionNode, &pNode->part); + break; + case PHY_STREAM_PARTITION_CODE_TAGS: + code = msgToNodeListFromTlv(pTlv, (void**)&pNode->pTags); + break; + case PHY_STREAM_PARTITION_CODE_SUBTABLE: + code = msgToNodeFromTlv(pTlv, (void**)&pNode->pSubtable); + break; + default: + break; + } + } + + return code; +} + enum { PHY_INDEF_ROWS_FUNC_CODE_BASE_NODE = 1, PHY_INDEF_ROWS_FUNC_CODE_EXPRS, PHY_INDEF_ROWS_FUNC_CODE_FUNCS }; static int32_t physiIndefRowsFuncNodeToMsg(const void* pObj, STlvEncoder* pEncoder) { @@ -3592,9 +3646,11 @@ static int32_t specificNodeToMsg(const void* pObj, STlvEncoder* pEncoder) { code = physiStateWindowNodeToMsg(pObj, pEncoder); break; case QUERY_NODE_PHYSICAL_PLAN_PARTITION: - case QUERY_NODE_PHYSICAL_PLAN_STREAM_PARTITION: code = physiPartitionNodeToMsg(pObj, pEncoder); break; + case QUERY_NODE_PHYSICAL_PLAN_STREAM_PARTITION: + code = physiStreamPartitionNodeToMsg(pObj, pEncoder); + break; case QUERY_NODE_PHYSICAL_PLAN_INDEF_ROWS_FUNC: code = physiIndefRowsFuncNodeToMsg(pObj, pEncoder); break; @@ -3727,9 +3783,11 @@ static int32_t msgToSpecificNode(STlvDecoder* pDecoder, void* pObj) { code = msgToPhysiStateWindowNode(pDecoder, pObj); break; case QUERY_NODE_PHYSICAL_PLAN_PARTITION: - case QUERY_NODE_PHYSICAL_PLAN_STREAM_PARTITION: code = msgToPhysiPartitionNode(pDecoder, pObj); break; + case QUERY_NODE_PHYSICAL_PLAN_STREAM_PARTITION: + code = msgToPhysiStreamPartitionNode(pDecoder, pObj); + break; case QUERY_NODE_PHYSICAL_PLAN_INDEF_ROWS_FUNC: code = msgToPhysiIndefRowsFuncNode(pDecoder, pObj); break; diff --git a/source/libs/nodes/src/nodesTraverseFuncs.c b/source/libs/nodes/src/nodesTraverseFuncs.c index 8ea80344fc..9f851f6a3f 100644 --- a/source/libs/nodes/src/nodesTraverseFuncs.c +++ b/source/libs/nodes/src/nodesTraverseFuncs.c @@ -378,6 +378,8 @@ void nodesWalkSelectStmt(SSelectStmt* pSelect, ESqlClause clause, FNodeWalker wa nodesWalkExpr(pSelect->pWhere, walker, pContext); case SQL_CLAUSE_WHERE: nodesWalkExprs(pSelect->pPartitionByList, walker, pContext); + nodesWalkExprs(pSelect->pTags, walker, pContext); + nodesWalkExpr(pSelect->pSubtable, walker, pContext); case SQL_CLAUSE_PARTITION_BY: nodesWalkExpr(pSelect->pWindow, walker, pContext); case SQL_CLAUSE_WINDOW: @@ -412,6 +414,8 @@ void nodesRewriteSelectStmt(SSelectStmt* pSelect, ESqlClause clause, FNodeRewrit nodesRewriteExpr(&(pSelect->pWhere), rewriter, pContext); case SQL_CLAUSE_WHERE: nodesRewriteExprs(pSelect->pPartitionByList, rewriter, pContext); + nodesRewriteExprs(pSelect->pTags, rewriter, pContext); + nodesRewriteExpr(&(pSelect->pSubtable), rewriter, pContext); case SQL_CLAUSE_PARTITION_BY: nodesRewriteExpr(&(pSelect->pWindow), rewriter, pContext); case SQL_CLAUSE_WINDOW: diff --git a/source/libs/nodes/src/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c index 7a04d319ec..71e53bd9be 100644 --- a/source/libs/nodes/src/nodesUtilFuncs.c +++ b/source/libs/nodes/src/nodesUtilFuncs.c @@ -772,6 +772,8 @@ void nodesDestroyNode(SNode* pNode) { nodesDestroyNode(pStmt->pFromTable); nodesDestroyNode(pStmt->pWhere); nodesDestroyList(pStmt->pPartitionByList); + nodesDestroyList(pStmt->pTags); + nodesDestroyNode(pStmt->pSubtable); nodesDestroyNode(pStmt->pWindow); nodesDestroyList(pStmt->pGroupByList); nodesDestroyNode(pStmt->pHaving); diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index dea741cc9b..1a955b3f6b 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -147,7 +147,7 @@ SNode* createCreateDatabaseStmt(SAstCreateContext* pCxt, bool ignoreExists, STok SNode* createDropDatabaseStmt(SAstCreateContext* pCxt, bool ignoreNotExists, SToken* pDbName); SNode* createAlterDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName, SNode* pOptions); SNode* createFlushDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName); -SNode* createTrimDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName); +SNode* createTrimDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName, int32_t maxSpeed); SNode* createDefaultTableOptions(SAstCreateContext* pCxt); SNode* createAlterTableOptions(SAstCreateContext* pCxt); SNode* setTableOption(SAstCreateContext* pCxt, SNode* pOptions, ETableOptionType type, void* pVal); @@ -212,7 +212,7 @@ SNode* createCreateFunctionStmt(SAstCreateContext* pCxt, bool ignoreExists, bool SNode* createDropFunctionStmt(SAstCreateContext* pCxt, bool ignoreNotExists, const SToken* pFuncName); SNode* createStreamOptions(SAstCreateContext* pCxt); SNode* createCreateStreamStmt(SAstCreateContext* pCxt, bool ignoreExists, const SToken* pStreamName, SNode* pRealTable, - SNode* pOptions, SNode* pQuery); + SNode* pOptions, SNodeList* pTags, SNode* pSubtable, SNode* pQuery); SNode* createDropStreamStmt(SAstCreateContext* pCxt, bool ignoreNotExists, const SToken* pStreamName); SNode* createKillStmt(SAstCreateContext* pCxt, ENodeType type, const SToken* pId); SNode* createKillQueryStmt(SAstCreateContext* pCxt, const SToken* pQueryId); diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 3e05583d92..cf465d6d76 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -159,7 +159,7 @@ cmd ::= DROP DATABASE exists_opt(A) db_name(B). cmd ::= USE db_name(A). { pCxt->pRootNode = createUseDatabaseStmt(pCxt, &A); } cmd ::= ALTER DATABASE db_name(A) alter_db_options(B). { pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &A, B); } cmd ::= FLUSH DATABASE db_name(A). { pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &A); } -cmd ::= TRIM DATABASE db_name(A). { pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &A); } +cmd ::= TRIM DATABASE db_name(A) speed_opt(B). { pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &A, B); } %type not_exists_opt { bool } %destructor not_exists_opt { } @@ -246,6 +246,11 @@ retention_list(A) ::= retention_list(B) NK_COMMA retention(C). retention(A) ::= NK_VARIABLE(B) NK_COLON NK_VARIABLE(C). { A = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &B), createDurationValueNode(pCxt, &C)); } +%type speed_opt { int32_t } +%destructor speed_opt { } +speed_opt(A) ::= . { A = 0; } +speed_opt(A) ::= MAX_SPEED NK_INTEGER(B). { A = taosStr2Int32(B.z, NULL, 10); } + /************************************************ create/drop table/stable ********************************************/ cmd ::= CREATE TABLE not_exists_opt(A) full_table_name(B) NK_LP column_def_list(C) NK_RP tags_def_opt(D) table_options(E). { pCxt->pRootNode = createCreateTableStmt(pCxt, A, B, C, D, E); } @@ -501,8 +506,8 @@ bufsize_opt(A) ::= . bufsize_opt(A) ::= BUFSIZE NK_INTEGER(B). { A = taosStr2Int32(B.z, NULL, 10); } /************************************************ create/drop stream **************************************************/ -cmd ::= CREATE STREAM not_exists_opt(E) stream_name(A) - stream_options(B) INTO full_table_name(C) AS query_or_subquery(D). { pCxt->pRootNode = createCreateStreamStmt(pCxt, E, &A, C, B, D); } +cmd ::= CREATE STREAM not_exists_opt(E) stream_name(A) stream_options(B) INTO + full_table_name(C) tags_def_opt(F) subtable_opt(G) AS query_or_subquery(D). { pCxt->pRootNode = createCreateStreamStmt(pCxt, E, &A, C, B, F, G, D); } cmd ::= DROP STREAM exists_opt(A) stream_name(B). { pCxt->pRootNode = createDropStreamStmt(pCxt, A, &B); } stream_options(A) ::= . { A = createStreamOptions(pCxt); } @@ -512,6 +517,9 @@ stream_options(A) ::= stream_options(B) TRIGGER MAX_DELAY duration_literal(C). stream_options(A) ::= stream_options(B) WATERMARK duration_literal(C). { ((SStreamOptions*)B)->pWatermark = releaseRawExprNode(pCxt, C); A = B; } stream_options(A) ::= stream_options(B) IGNORE EXPIRED NK_INTEGER(C). { ((SStreamOptions*)B)->ignoreExpired = taosStr2Int8(C.z, NULL, 10); A = B; } +subtable_opt(A) ::= . { A = NULL; } +subtable_opt(A) ::= SUBTABLE NK_LP expression(B) NK_RP. { A = releaseRawExprNode(pCxt, B); } + /************************************************ kill connection/query ***********************************************/ cmd ::= KILL CONNECTION NK_INTEGER(A). { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &A); } cmd ::= KILL QUERY NK_STRING(A). { pCxt->pRootNode = createKillQueryStmt(pCxt, &A); } @@ -909,7 +917,16 @@ where_clause_opt(A) ::= WHERE search_condition(B). %type partition_by_clause_opt { SNodeList* } %destructor partition_by_clause_opt { nodesDestroyList($$); } partition_by_clause_opt(A) ::= . { A = NULL; } -partition_by_clause_opt(A) ::= PARTITION BY expression_list(B). { A = B; } +partition_by_clause_opt(A) ::= PARTITION BY partition_list(B). { A = B; } + +%type partition_list { SNodeList* } +%destructor partition_list { nodesDestroyList($$); } +partition_list(A) ::= partition_item(B). { A = createNodeList(pCxt, B); } +partition_list(A) ::= partition_list(B) NK_COMMA partition_item(C). { A = addNodeToList(pCxt, B, C); } + +partition_item(A) ::= expr_or_subquery(B). { A = releaseRawExprNode(pCxt, B); } +partition_item(A) ::= expr_or_subquery(B) column_alias(C). { A = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, B), &C); } +partition_item(A) ::= expr_or_subquery(B) AS column_alias(C). { A = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, B), &C); } twindow_clause_opt(A) ::= . { A = NULL; } twindow_clause_opt(A) ::= diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 65afc84c9d..10a066db40 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -1055,7 +1055,7 @@ SNode* createFlushDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName) { return (SNode*)pStmt; } -SNode* createTrimDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName) { +SNode* createTrimDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName, int32_t maxSpeed) { CHECK_PARSER_STATUS(pCxt); if (!checkDbName(pCxt, pDbName, false)) { return NULL; @@ -1063,6 +1063,7 @@ SNode* createTrimDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName) { STrimDatabaseStmt* pStmt = (STrimDatabaseStmt*)nodesMakeNode(QUERY_NODE_TRIM_DATABASE_STMT); CHECK_OUT_OF_MEM(pStmt); COPY_STRING_FORM_ID_TOKEN(pStmt->dbName, pDbName); + pStmt->maxSpeed = maxSpeed; return (SNode*)pStmt; } @@ -1700,7 +1701,7 @@ SNode* createStreamOptions(SAstCreateContext* pCxt) { } SNode* createCreateStreamStmt(SAstCreateContext* pCxt, bool ignoreExists, const SToken* pStreamName, SNode* pRealTable, - SNode* pOptions, SNode* pQuery) { + SNode* pOptions, SNodeList* pTags, SNode* pSubtable, SNode* pQuery) { CHECK_PARSER_STATUS(pCxt); SCreateStreamStmt* pStmt = (SCreateStreamStmt*)nodesMakeNode(QUERY_NODE_CREATE_STREAM_STMT); CHECK_OUT_OF_MEM(pStmt); @@ -1713,6 +1714,8 @@ SNode* createCreateStreamStmt(SAstCreateContext* pCxt, bool ignoreExists, const pStmt->ignoreExists = ignoreExists; pStmt->pOptions = (SStreamOptions*)pOptions; pStmt->pQuery = pQuery; + pStmt->pTags = pTags; + pStmt->pSubtable = pSubtable; return (SNode*)pStmt; } diff --git a/source/libs/parser/src/parCalcConst.c b/source/libs/parser/src/parCalcConst.c index a7c08d8f65..efc9d77e67 100644 --- a/source/libs/parser/src/parCalcConst.c +++ b/source/libs/parser/src/parCalcConst.c @@ -275,6 +275,12 @@ static int32_t calcConstSelectFrom(SCalcConstContext* pCxt, SSelectStmt* pSelect if (TSDB_CODE_SUCCESS == code) { code = calcConstList(pSelect->pPartitionByList); } + if (TSDB_CODE_SUCCESS == code) { + code = calcConstList(pSelect->pTags); + } + if (TSDB_CODE_SUCCESS == code) { + code = calcConstNode(&pSelect->pSubtable); + } if (TSDB_CODE_SUCCESS == code) { code = calcConstNode(&pSelect->pWindow); } diff --git a/source/libs/parser/src/parTokenizer.c b/source/libs/parser/src/parTokenizer.c index c51553f7a1..26127be0d6 100644 --- a/source/libs/parser/src/parTokenizer.c +++ b/source/libs/parser/src/parTokenizer.c @@ -129,6 +129,7 @@ static SKeyword keywordTable[] = { {"MATCH", TK_MATCH}, {"MAXROWS", TK_MAXROWS}, {"MAX_DELAY", TK_MAX_DELAY}, + {"MAX_SPEED", TK_MAX_SPEED}, {"MERGE", TK_MERGE}, {"META", TK_META}, {"MINROWS", TK_MINROWS}, @@ -200,6 +201,7 @@ static SKeyword keywordTable[] = { {"STREAMS", TK_STREAMS}, {"STRICT", TK_STRICT}, {"SUBSCRIPTIONS", TK_SUBSCRIPTIONS}, + {"SUBTABLE", TK_SUBTABLE}, {"SYSINFO", TK_SYSINFO}, {"TABLE", TK_TABLE}, {"TABLES", TK_TABLES}, diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 82167e8911..c386ddf6d6 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -3076,7 +3076,14 @@ static int32_t translatePartitionBy(STranslateContext* pCxt, SSelectStmt* pSelec return TSDB_CODE_SUCCESS; } pCxt->currClause = SQL_CLAUSE_PARTITION_BY; - return translateExprList(pCxt, pSelect->pPartitionByList); + int32_t code = translateExprList(pCxt, pSelect->pPartitionByList); + if (TSDB_CODE_SUCCESS == code) { + code = translateExprList(pCxt, pSelect->pTags); + } + if (TSDB_CODE_SUCCESS == code) { + code = translateExpr(pCxt, &pSelect->pSubtable); + } + return code; } static int32_t translateWhere(STranslateContext* pCxt, SSelectStmt* pSelect) { @@ -3968,7 +3975,7 @@ static int32_t translateAlterDatabase(STranslateContext* pCxt, SAlterDatabaseStm } static int32_t translateTrimDatabase(STranslateContext* pCxt, STrimDatabaseStmt* pStmt) { - STrimDbReq req = {0}; + STrimDbReq req = {.maxSpeed = pStmt->maxSpeed}; SName name = {0}; tNameSetDbName(&name, pCxt->pParseCxt->acctId, pStmt->dbName, strlen(pStmt->dbName)); tNameGetFullDbName(&name, req.db); @@ -5211,6 +5218,93 @@ static int32_t addWstartTsToCreateStreamQuery(SNode* pStmt) { return code; } +static int32_t addTagsToCreateStreamQuery(STranslateContext* pCxt, SCreateStreamStmt* pStmt, SSelectStmt* pSelect) { + if (NULL == pStmt->pTags) { + return TSDB_CODE_SUCCESS; + } + + SNode* pTag = NULL; + FOREACH(pTag, pStmt->pTags) { + bool found = false; + SNode* pPart = NULL; + FOREACH(pPart, pSelect->pPartitionByList) { + if (0 == strcmp(((SColumnDefNode*)pTag)->colName, ((SExprNode*)pPart)->userAlias)) { + if (TSDB_CODE_SUCCESS != nodesListMakeStrictAppend(&pSelect->pTags, nodesCloneNode(pPart))) { + return TSDB_CODE_OUT_OF_MEMORY; + } + found = true; + break; + } + } + if (!found) { + return generateDealNodeErrMsg(pCxt, TSDB_CODE_PAR_INVALID_COLUMN, ((SColumnDefNode*)pTag)->colName); + } + } + return TSDB_CODE_SUCCESS; +} + +typedef struct SRewriteSubtableCxt { + STranslateContext* pCxt; + SNodeList* pPartitionList; +} SRewriteSubtableCxt; + +static EDealRes rewriteSubtable(SNode** pNode, void* pContext) { + if (QUERY_NODE_COLUMN == nodeType(*pNode)) { + SRewriteSubtableCxt* pCxt = pContext; + bool found = false; + SNode* pPart = NULL; + FOREACH(pPart, pCxt->pPartitionList) { + if (0 == strcmp(((SColumnNode*)*pNode)->colName, ((SExprNode*)pPart)->userAlias)) { + SNode* pNew = nodesCloneNode(pPart); + if (NULL == pNew) { + pCxt->pCxt->errCode = TSDB_CODE_OUT_OF_MEMORY; + return DEAL_RES_ERROR; + } + nodesDestroyNode(*pNode); + *pNode = pNew; + found = true; + break; + } + if (!found) { + return generateDealNodeErrMsg(pCxt->pCxt, TSDB_CODE_PAR_INVALID_COLUMN, ((SColumnNode*)*pNode)->colName); + } + } + return DEAL_RES_IGNORE_CHILD; + } + return DEAL_RES_CONTINUE; +} + +static int32_t addSubtableNameToCreateStreamQuery(STranslateContext* pCxt, SCreateStreamStmt* pStmt, + SSelectStmt* pSelect) { + if (NULL == pStmt->pSubtable) { + return TSDB_CODE_SUCCESS; + } + pSelect->pSubtable = nodesCloneNode(pStmt->pSubtable); + if (NULL == pSelect->pSubtable) { + return TSDB_CODE_OUT_OF_MEMORY; + } + SRewriteSubtableCxt cxt = {.pCxt = pCxt, .pPartitionList = pSelect->pPartitionByList}; + nodesRewriteExpr(&pSelect->pSubtable, rewriteSubtable, &cxt); + return pCxt->errCode; +} + +static int32_t addSubtableInfoToCreateStreamQuery(STranslateContext* pCxt, SCreateStreamStmt* pStmt) { + SSelectStmt* pSelect = (SSelectStmt*)pStmt->pQuery; + if (NULL == pSelect->pPartitionByList) { + if (NULL != pStmt->pTags || NULL != pStmt->pSubtable) { + return generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_STREAM_QUERY, "Unsupported stream query"); + } + return TSDB_CODE_SUCCESS; + } + + int32_t code = addTagsToCreateStreamQuery(pCxt, pStmt, pSelect); + if (TSDB_CODE_SUCCESS == code) { + code = addSubtableNameToCreateStreamQuery(pCxt, pStmt, pSelect); + } + + return code; +} + static int32_t checkStreamQuery(STranslateContext* pCxt, SSelectStmt* pSelect) { if (TSDB_DATA_TYPE_TIMESTAMP != ((SExprNode*)nodesListGetNode(pSelect->pProjectionList, 0))->resType.type || !pSelect->isTimeLineResult || crossTableWithoutAggOper(pSelect) || NULL != pSelect->pOrderByList || @@ -5220,18 +5314,21 @@ static int32_t checkStreamQuery(STranslateContext* pCxt, SSelectStmt* pSelect) { return TSDB_CODE_SUCCESS; } -static int32_t buildCreateStreamQuery(STranslateContext* pCxt, SNode* pStmt, SCMCreateStreamReq* pReq) { +static int32_t buildCreateStreamQuery(STranslateContext* pCxt, SCreateStreamStmt* pStmt, SCMCreateStreamReq* pReq) { pCxt->createStream = true; - int32_t code = addWstartTsToCreateStreamQuery(pStmt); + int32_t code = addWstartTsToCreateStreamQuery(pStmt->pQuery); if (TSDB_CODE_SUCCESS == code) { - code = translateQuery(pCxt, pStmt); + code = addSubtableInfoToCreateStreamQuery(pCxt, pStmt); } if (TSDB_CODE_SUCCESS == code) { - code = checkStreamQuery(pCxt, (SSelectStmt*)pStmt); + code = translateQuery(pCxt, pStmt->pQuery); } if (TSDB_CODE_SUCCESS == code) { - getSourceDatabase(pStmt, pCxt->pParseCxt->acctId, pReq->sourceDB); - code = nodesNodeToString(pStmt, false, &pReq->ast, NULL); + code = checkStreamQuery(pCxt, (SSelectStmt*)pStmt->pQuery); + } + if (TSDB_CODE_SUCCESS == code) { + getSourceDatabase(pStmt->pQuery, pCxt->pParseCxt->acctId, pReq->sourceDB); + code = nodesNodeToString(pStmt->pQuery, false, &pReq->ast, NULL); } return code; } @@ -5249,7 +5346,7 @@ static int32_t buildCreateStreamReq(STranslateContext* pCxt, SCreateStreamStmt* tNameExtractFullName(&name, pReq->targetStbFullName); } - int32_t code = buildCreateStreamQuery(pCxt, pStmt->pQuery, pReq); + int32_t code = buildCreateStreamQuery(pCxt, pStmt, pReq); if (TSDB_CODE_SUCCESS == code) { pReq->sql = strdup(pCxt->pParseCxt->pSql); if (NULL == pReq->sql) { @@ -5262,6 +5359,8 @@ static int32_t buildCreateStreamReq(STranslateContext* pCxt, SCreateStreamStmt* pReq->maxDelay = (NULL != pStmt->pOptions->pDelay ? ((SValueNode*)pStmt->pOptions->pDelay)->datum.i : 0); pReq->watermark = (NULL != pStmt->pOptions->pWatermark ? ((SValueNode*)pStmt->pOptions->pWatermark)->datum.i : 0); pReq->igExpired = pStmt->pOptions->ignoreExpired; + columnDefNodeToField(pStmt->pTags, &pReq->pTags); + pReq->numOfTags = LIST_LENGTH(pStmt->pTags); } return code; diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index f4ced2799a..2ccdd2cdf2 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 441 +#define YYNOCODE 447 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - EFillMode yy18; - EOperatorType yy128; - bool yy173; - SNodeList* yy334; - int8_t yy341; - int64_t yy459; - ENullOrder yy487; - SAlterOption yy515; - EJoinType yy540; - SNode* yy560; - SDataType yy574; - EOrder yy596; - SToken yy659; - int32_t yy676; + int64_t yy57; + EJoinType yy114; + SNodeList* yy148; + int8_t yy167; + int32_t yy172; + bool yy287; + SAlterOption yy323; + EOrder yy362; + SNode* yy392; + SToken yy677; + EFillMode yy708; + EOperatorType yy758; + ENullOrder yy781; + SDataType yy838; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -139,17 +139,17 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 679 -#define YYNRULE 509 -#define YYNTOKEN 313 -#define YY_MAX_SHIFT 678 -#define YY_MIN_SHIFTREDUCE 1000 -#define YY_MAX_SHIFTREDUCE 1508 -#define YY_ERROR_ACTION 1509 -#define YY_ACCEPT_ACTION 1510 -#define YY_NO_ACTION 1511 -#define YY_MIN_REDUCE 1512 -#define YY_MAX_REDUCE 2020 +#define YYNSTATE 689 +#define YYNRULE 518 +#define YYNTOKEN 315 +#define YY_MAX_SHIFT 688 +#define YY_MIN_SHIFTREDUCE 1016 +#define YY_MAX_SHIFTREDUCE 1533 +#define YY_ERROR_ACTION 1534 +#define YY_ACCEPT_ACTION 1535 +#define YY_NO_ACTION 1536 +#define YY_MIN_REDUCE 1537 +#define YY_MAX_REDUCE 2054 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -216,720 +216,752 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (2662) +#define YY_ACTTAB_COUNT (2818) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 530, 556, 1760, 530, 435, 1829, 436, 1547, 32, 258, - /* 10 */ 1843, 117, 42, 40, 117, 1996, 1825, 1033, 473, 1646, - /* 20 */ 339, 478, 1296, 41, 39, 38, 37, 36, 1657, 1323, - /* 30 */ 1991, 1657, 1323, 1374, 1577, 1294, 571, 571, 1861, 1648, - /* 40 */ 1821, 1827, 327, 555, 166, 1510, 572, 325, 1992, 557, - /* 50 */ 1825, 1811, 1642, 584, 578, 150, 1369, 1037, 1038, 571, - /* 60 */ 443, 16, 436, 1547, 1659, 1861, 60, 1843, 1302, 42, - /* 70 */ 40, 1444, 440, 550, 1821, 1827, 1875, 339, 1319, 1296, - /* 80 */ 95, 1841, 1842, 1844, 588, 1846, 1847, 583, 578, 578, - /* 90 */ 1374, 530, 1294, 1, 163, 1861, 1928, 384, 485, 484, - /* 100 */ 332, 1924, 50, 572, 354, 124, 1498, 56, 1811, 44, - /* 110 */ 584, 549, 152, 1369, 1524, 675, 480, 483, 16, 1657, - /* 120 */ 513, 1955, 479, 344, 1829, 1302, 1702, 1704, 452, 1376, - /* 130 */ 1377, 212, 44, 1875, 301, 1825, 1996, 95, 1841, 1842, - /* 140 */ 1844, 588, 1846, 1847, 583, 1830, 578, 1703, 1704, 1991, - /* 150 */ 1, 163, 45, 1928, 1843, 56, 1825, 332, 1924, 1821, - /* 160 */ 1827, 333, 1997, 166, 532, 1991, 1900, 1992, 557, 1709, - /* 170 */ 168, 257, 675, 578, 257, 1297, 326, 1295, 1954, 1995, - /* 180 */ 1821, 1827, 1861, 1992, 1994, 1707, 1376, 1377, 77, 303, - /* 190 */ 585, 1322, 520, 568, 578, 1811, 154, 584, 1300, 1301, - /* 200 */ 1616, 1351, 1352, 1354, 1355, 1356, 1357, 1358, 1359, 580, - /* 210 */ 576, 1367, 1368, 1370, 1371, 1372, 1373, 1375, 1378, 3, - /* 220 */ 1875, 130, 162, 621, 95, 1841, 1842, 1844, 588, 1846, - /* 230 */ 1847, 583, 1297, 578, 1295, 1696, 127, 169, 137, 1899, - /* 240 */ 1928, 1465, 35, 34, 332, 1924, 41, 39, 38, 37, - /* 250 */ 36, 169, 1050, 169, 1049, 1300, 1301, 128, 1351, 1352, - /* 260 */ 1354, 1355, 1356, 1357, 1358, 1359, 580, 576, 1367, 1368, - /* 270 */ 1370, 1371, 1372, 1373, 1375, 1378, 3, 42, 40, 165, - /* 280 */ 1936, 1937, 1051, 1941, 11, 339, 1321, 1296, 1322, 543, - /* 290 */ 1463, 1464, 1466, 1467, 434, 1843, 169, 438, 1374, 169, - /* 300 */ 1294, 56, 1151, 610, 609, 608, 1155, 607, 1157, 1158, - /* 310 */ 606, 1160, 603, 568, 1166, 600, 1168, 1169, 597, 594, - /* 320 */ 421, 1369, 11, 1861, 9, 219, 16, 1635, 1475, 225, - /* 330 */ 226, 585, 530, 1302, 42, 40, 1811, 613, 584, 546, - /* 340 */ 1709, 130, 339, 171, 1296, 35, 34, 343, 1535, 41, - /* 350 */ 39, 38, 37, 36, 1324, 1374, 1707, 1294, 1, 56, - /* 360 */ 1657, 1875, 56, 1113, 79, 95, 1841, 1842, 1844, 588, - /* 370 */ 1846, 1847, 583, 373, 578, 179, 178, 119, 1369, 1903, - /* 380 */ 675, 1928, 377, 16, 376, 332, 1924, 452, 303, 1811, - /* 390 */ 1302, 520, 375, 371, 1376, 1377, 1115, 1193, 1194, 255, - /* 400 */ 1936, 567, 1513, 566, 35, 34, 1991, 530, 41, 39, - /* 410 */ 38, 37, 36, 442, 617, 1, 438, 1700, 382, 555, - /* 420 */ 166, 552, 547, 107, 1992, 557, 106, 105, 104, 103, - /* 430 */ 102, 101, 100, 99, 98, 1657, 517, 675, 1633, 24, - /* 440 */ 1297, 1448, 1295, 324, 85, 169, 1757, 1321, 1534, 1302, - /* 450 */ 107, 1376, 1377, 106, 105, 104, 103, 102, 101, 100, - /* 460 */ 99, 98, 1321, 1300, 1301, 1650, 1351, 1352, 1354, 1355, - /* 470 */ 1356, 1357, 1358, 1359, 580, 576, 1367, 1368, 1370, 1371, - /* 480 */ 1372, 1373, 1375, 1378, 3, 1512, 11, 35, 34, 1811, - /* 490 */ 530, 41, 39, 38, 37, 36, 234, 1297, 621, 1295, - /* 500 */ 1995, 383, 126, 169, 1505, 1899, 169, 315, 633, 116, - /* 510 */ 115, 114, 113, 112, 111, 110, 109, 108, 1657, 1943, - /* 520 */ 1300, 1301, 551, 1351, 1352, 1354, 1355, 1356, 1357, 1358, - /* 530 */ 1359, 580, 576, 1367, 1368, 1370, 1371, 1372, 1373, 1375, - /* 540 */ 1378, 3, 42, 40, 1709, 224, 1296, 342, 1940, 1644, - /* 550 */ 339, 310, 1296, 482, 481, 150, 563, 75, 75, 1294, - /* 560 */ 1707, 568, 198, 1374, 1659, 1294, 316, 530, 314, 313, - /* 570 */ 123, 475, 1050, 1455, 1049, 477, 156, 1533, 391, 1652, - /* 580 */ 1653, 469, 465, 461, 457, 197, 1369, 471, 556, 130, - /* 590 */ 92, 1843, 1302, 619, 1320, 1657, 1504, 476, 1302, 42, - /* 600 */ 40, 1379, 1051, 125, 1943, 1276, 1277, 339, 1640, 1296, - /* 610 */ 568, 1649, 141, 140, 616, 615, 614, 1991, 1811, 1861, - /* 620 */ 1374, 76, 1294, 8, 195, 128, 530, 585, 215, 1353, - /* 630 */ 555, 166, 1811, 1939, 584, 1992, 557, 406, 130, 675, - /* 640 */ 175, 530, 1532, 1369, 1384, 675, 570, 164, 1936, 1937, - /* 650 */ 1321, 1941, 407, 579, 1657, 1302, 1709, 1875, 499, 1376, - /* 660 */ 1377, 95, 1841, 1842, 1844, 588, 1846, 1847, 583, 1657, - /* 670 */ 578, 497, 1708, 495, 128, 2011, 72, 1928, 530, 71, - /* 680 */ 8, 332, 1924, 1811, 1843, 485, 484, 194, 188, 450, - /* 690 */ 193, 1962, 124, 534, 448, 1900, 167, 1936, 1937, 1297, - /* 700 */ 1941, 1295, 675, 480, 483, 1297, 1657, 1295, 1750, 479, - /* 710 */ 186, 1531, 1861, 38, 37, 36, 1376, 1377, 1634, 174, - /* 720 */ 585, 150, 1300, 1301, 1530, 1811, 508, 584, 1300, 1301, - /* 730 */ 1660, 1351, 1352, 1354, 1355, 1356, 1357, 1358, 1359, 580, - /* 740 */ 576, 1367, 1368, 1370, 1371, 1372, 1373, 1375, 1378, 3, - /* 750 */ 1875, 559, 1811, 1943, 95, 1841, 1842, 1844, 588, 1846, - /* 760 */ 1847, 583, 1297, 578, 1295, 1811, 28, 169, 1901, 1529, - /* 770 */ 1928, 564, 35, 34, 332, 1924, 41, 39, 38, 37, - /* 780 */ 36, 1528, 1938, 1843, 1527, 1300, 1301, 7, 1351, 1352, - /* 790 */ 1354, 1355, 1356, 1357, 1358, 1359, 580, 576, 1367, 1368, - /* 800 */ 1370, 1371, 1372, 1373, 1375, 1378, 3, 42, 40, 1526, - /* 810 */ 1811, 1861, 345, 646, 644, 339, 322, 1296, 618, 585, - /* 820 */ 150, 1700, 1811, 619, 1811, 1811, 584, 30, 1374, 1659, - /* 830 */ 1294, 378, 1353, 35, 34, 1037, 1038, 41, 39, 38, - /* 840 */ 37, 36, 141, 140, 616, 615, 614, 513, 1321, 1875, - /* 850 */ 1811, 1369, 1523, 292, 1841, 1842, 1844, 588, 1846, 1847, - /* 860 */ 583, 218, 578, 1302, 42, 40, 1750, 612, 1756, 517, - /* 870 */ 298, 530, 339, 1755, 1296, 298, 1991, 177, 678, 1758, - /* 880 */ 1522, 634, 451, 1629, 1525, 1374, 1405, 1294, 8, 1997, - /* 890 */ 166, 252, 265, 1811, 1992, 557, 1617, 35, 34, 1657, - /* 900 */ 78, 41, 39, 38, 37, 36, 160, 530, 1369, 477, - /* 910 */ 675, 668, 664, 660, 656, 263, 516, 1521, 1654, 1077, - /* 920 */ 1302, 1811, 35, 34, 1376, 1377, 41, 39, 38, 37, - /* 930 */ 36, 476, 513, 35, 34, 1657, 91, 41, 39, 38, - /* 940 */ 37, 36, 13, 12, 270, 1, 88, 1687, 530, 530, - /* 950 */ 306, 93, 1078, 29, 232, 530, 1305, 530, 1811, 502, - /* 960 */ 509, 1991, 530, 1410, 46, 4, 514, 675, 229, 1441, - /* 970 */ 1297, 139, 1295, 526, 1997, 166, 1657, 1657, 1520, 1992, - /* 980 */ 557, 1376, 1377, 1657, 1437, 1657, 544, 527, 1948, 1437, - /* 990 */ 1657, 1403, 1519, 1300, 1301, 1564, 1351, 1352, 1354, 1355, - /* 1000 */ 1356, 1357, 1358, 1359, 580, 576, 1367, 1368, 1370, 1371, - /* 1010 */ 1372, 1373, 1375, 1378, 3, 530, 300, 486, 1319, 1811, - /* 1020 */ 221, 385, 49, 48, 512, 414, 528, 1297, 426, 1295, - /* 1030 */ 1353, 1518, 1798, 1811, 386, 1417, 352, 1517, 1270, 1516, - /* 1040 */ 214, 203, 1515, 1657, 201, 399, 1404, 427, 1862, 401, - /* 1050 */ 1300, 1301, 513, 1351, 1352, 1354, 1355, 1356, 1357, 1358, - /* 1060 */ 1359, 580, 576, 1367, 1368, 1370, 1371, 1372, 1373, 1375, - /* 1070 */ 1378, 3, 1811, 530, 205, 1559, 149, 204, 1811, 361, - /* 1080 */ 1811, 1991, 530, 1811, 529, 207, 151, 560, 206, 1557, - /* 1090 */ 392, 276, 1632, 259, 1997, 166, 575, 488, 1308, 1992, - /* 1100 */ 557, 1657, 388, 1574, 209, 274, 64, 208, 43, 63, - /* 1110 */ 1657, 491, 223, 31, 336, 1398, 1399, 1400, 1401, 1402, - /* 1120 */ 1406, 1407, 1408, 1409, 470, 182, 431, 429, 13, 12, - /* 1130 */ 425, 1507, 1508, 420, 419, 418, 417, 416, 413, 412, - /* 1140 */ 411, 410, 409, 405, 404, 403, 402, 396, 395, 394, - /* 1150 */ 393, 246, 390, 389, 312, 134, 1996, 350, 138, 1247, - /* 1160 */ 139, 56, 1548, 227, 58, 1996, 652, 651, 650, 649, - /* 1170 */ 349, 238, 648, 647, 131, 642, 641, 640, 639, 638, - /* 1180 */ 637, 636, 635, 143, 631, 630, 629, 348, 347, 626, - /* 1190 */ 625, 624, 623, 622, 1991, 1304, 530, 619, 58, 94, - /* 1200 */ 1697, 1958, 1843, 1440, 43, 1832, 523, 346, 1995, 231, - /* 1210 */ 627, 1144, 1992, 1993, 254, 1462, 141, 140, 616, 615, - /* 1220 */ 614, 1553, 241, 569, 1657, 251, 628, 2, 5, 43, - /* 1230 */ 1861, 592, 1097, 1395, 355, 69, 68, 381, 585, 138, - /* 1240 */ 173, 360, 490, 1811, 311, 584, 139, 1498, 1095, 1411, - /* 1250 */ 120, 351, 1834, 138, 1263, 1360, 299, 500, 176, 369, - /* 1260 */ 387, 367, 363, 359, 356, 353, 266, 513, 1875, 670, - /* 1270 */ 1319, 211, 96, 586, 338, 1844, 588, 1846, 1847, 583, - /* 1280 */ 269, 578, 1172, 501, 1843, 493, 408, 1752, 1928, 487, - /* 1290 */ 1176, 415, 305, 1924, 210, 423, 1991, 1183, 422, 513, - /* 1300 */ 561, 1181, 424, 1991, 142, 169, 428, 430, 432, 1997, - /* 1310 */ 166, 1325, 1861, 1327, 1992, 557, 555, 166, 433, 441, - /* 1320 */ 585, 1992, 557, 444, 185, 1811, 445, 584, 1991, 1326, - /* 1330 */ 62, 187, 446, 61, 1328, 449, 190, 1307, 192, 447, - /* 1340 */ 73, 1997, 166, 74, 1843, 453, 1992, 557, 196, 472, - /* 1350 */ 1875, 1791, 267, 474, 95, 1841, 1842, 1844, 588, 1846, - /* 1360 */ 1847, 583, 1647, 578, 118, 302, 1843, 200, 2011, 1643, - /* 1370 */ 1928, 202, 1861, 144, 332, 1924, 507, 145, 1645, 213, - /* 1380 */ 585, 1641, 146, 147, 1985, 1811, 503, 584, 504, 216, - /* 1390 */ 510, 515, 542, 321, 1861, 524, 220, 135, 518, 1790, - /* 1400 */ 1762, 525, 585, 521, 82, 323, 84, 1811, 1658, 584, - /* 1410 */ 1875, 268, 136, 1324, 95, 1841, 1842, 1844, 588, 1846, - /* 1420 */ 1847, 583, 1843, 578, 545, 236, 240, 1969, 2011, 538, - /* 1430 */ 1928, 540, 1875, 541, 332, 1924, 285, 586, 338, 1844, - /* 1440 */ 588, 1846, 1847, 583, 1947, 578, 1959, 335, 334, 1968, - /* 1450 */ 1861, 328, 548, 6, 554, 536, 537, 1310, 585, 250, - /* 1460 */ 329, 539, 565, 1811, 2014, 584, 562, 1991, 1374, 1437, - /* 1470 */ 1303, 129, 1323, 55, 247, 1950, 245, 157, 248, 86, - /* 1480 */ 555, 166, 249, 1843, 1944, 1992, 557, 1909, 1875, 1990, - /* 1490 */ 590, 1369, 95, 1841, 1842, 1844, 588, 1846, 1847, 583, - /* 1500 */ 1701, 578, 1630, 1302, 271, 1843, 533, 262, 1928, 671, - /* 1510 */ 253, 1861, 332, 1924, 672, 47, 674, 297, 273, 585, - /* 1520 */ 283, 294, 293, 275, 1811, 1805, 584, 66, 1803, 1802, - /* 1530 */ 67, 1799, 357, 1861, 1804, 358, 1288, 1289, 172, 362, - /* 1540 */ 1797, 585, 364, 365, 366, 1796, 1811, 368, 584, 1875, - /* 1550 */ 574, 1795, 370, 96, 1841, 1842, 1844, 588, 1846, 1847, - /* 1560 */ 583, 1794, 578, 372, 1793, 374, 1266, 1265, 1773, 1928, - /* 1570 */ 1772, 1875, 379, 1927, 1924, 96, 1841, 1842, 1844, 588, - /* 1580 */ 1846, 1847, 583, 380, 578, 1771, 1770, 1745, 1235, 1843, - /* 1590 */ 1744, 1928, 1743, 1742, 132, 573, 1924, 1741, 1740, 70, - /* 1600 */ 1739, 1738, 1737, 1736, 1735, 397, 398, 1734, 400, 1733, - /* 1610 */ 1311, 1732, 1306, 1731, 1730, 1729, 1728, 1861, 1727, 1726, - /* 1620 */ 1725, 1724, 1723, 1722, 1721, 582, 1720, 1719, 1718, 1717, - /* 1630 */ 1811, 133, 584, 1314, 1316, 1716, 1715, 1714, 1713, 1237, - /* 1640 */ 1712, 1711, 1710, 1579, 1843, 576, 1367, 1368, 1370, 1371, - /* 1650 */ 1372, 1373, 1578, 1576, 1544, 1875, 437, 1543, 1040, 291, - /* 1660 */ 1841, 1842, 1844, 588, 1846, 1847, 583, 581, 578, 531, - /* 1670 */ 1893, 121, 1861, 183, 184, 1039, 161, 1786, 122, 1780, - /* 1680 */ 585, 180, 1769, 1768, 191, 1811, 181, 584, 189, 1754, - /* 1690 */ 1636, 439, 1575, 1573, 454, 455, 1571, 1843, 458, 1569, - /* 1700 */ 462, 456, 459, 460, 1567, 463, 464, 466, 468, 1070, - /* 1710 */ 1875, 1556, 1555, 467, 153, 1841, 1842, 1844, 588, 1846, - /* 1720 */ 1847, 583, 1540, 578, 1638, 1861, 1187, 1186, 1637, 1112, - /* 1730 */ 1111, 643, 1108, 585, 1565, 1107, 1106, 1560, 1811, 317, - /* 1740 */ 584, 645, 318, 1558, 492, 319, 1539, 1538, 494, 1843, - /* 1750 */ 489, 199, 57, 496, 1537, 498, 97, 1785, 1779, 148, - /* 1760 */ 1272, 1843, 505, 1875, 217, 558, 2012, 96, 1841, 1842, - /* 1770 */ 1844, 588, 1846, 1847, 583, 1843, 578, 1861, 1767, 1765, - /* 1780 */ 1996, 1766, 1764, 1928, 1763, 582, 1280, 1761, 1925, 1861, - /* 1790 */ 1811, 1753, 584, 519, 535, 81, 17, 585, 233, 1386, - /* 1800 */ 10, 222, 1811, 1861, 584, 18, 43, 19, 1385, 228, - /* 1810 */ 244, 585, 80, 88, 230, 1875, 1811, 54, 584, 291, - /* 1820 */ 1841, 1842, 1844, 588, 1846, 1847, 583, 1875, 578, 1843, - /* 1830 */ 1894, 292, 1841, 1842, 1844, 588, 1846, 1847, 583, 511, - /* 1840 */ 578, 1875, 51, 1843, 522, 287, 1841, 1842, 1844, 588, - /* 1850 */ 1846, 1847, 583, 83, 578, 1477, 243, 1861, 25, 235, - /* 1860 */ 1832, 27, 237, 1459, 506, 585, 239, 59, 320, 1461, - /* 1870 */ 1811, 1861, 584, 155, 21, 1492, 337, 1454, 242, 585, - /* 1880 */ 1497, 26, 87, 1491, 1811, 330, 584, 1496, 553, 1498, - /* 1890 */ 1495, 331, 1434, 1843, 1433, 1875, 53, 256, 12, 153, - /* 1900 */ 1841, 1842, 1844, 588, 1846, 1847, 583, 1831, 578, 1875, - /* 1910 */ 1312, 20, 1843, 292, 1841, 1842, 1844, 588, 1846, 1847, - /* 1920 */ 583, 1861, 578, 158, 1396, 1878, 340, 15, 1364, 585, - /* 1930 */ 577, 159, 1362, 1361, 1811, 33, 584, 14, 22, 170, - /* 1940 */ 1861, 1336, 1344, 52, 587, 589, 591, 23, 585, 341, - /* 1950 */ 593, 2013, 1173, 1811, 1170, 584, 595, 1167, 596, 1875, - /* 1960 */ 598, 599, 1843, 292, 1841, 1842, 1844, 588, 1846, 1847, - /* 1970 */ 583, 601, 578, 1161, 602, 604, 1843, 1159, 1875, 605, - /* 1980 */ 1150, 1182, 277, 1841, 1842, 1844, 588, 1846, 1847, 583, - /* 1990 */ 1861, 578, 1165, 1164, 611, 1163, 89, 1162, 585, 90, - /* 2000 */ 65, 1178, 260, 1811, 1861, 584, 1068, 1103, 620, 1102, - /* 2010 */ 1101, 1100, 585, 1099, 632, 1098, 1096, 1811, 1094, 584, - /* 2020 */ 1093, 1092, 1119, 1090, 1089, 261, 1088, 1087, 1875, 1086, - /* 2030 */ 1085, 1843, 278, 1841, 1842, 1844, 588, 1846, 1847, 583, - /* 2040 */ 1084, 578, 1875, 1083, 1114, 1116, 279, 1841, 1842, 1844, - /* 2050 */ 588, 1846, 1847, 583, 1080, 578, 1079, 1843, 1076, 1861, - /* 2060 */ 1075, 1074, 1073, 1572, 653, 655, 1570, 585, 657, 654, - /* 2070 */ 659, 658, 1811, 1568, 584, 661, 663, 662, 1566, 665, - /* 2080 */ 667, 666, 1554, 1843, 669, 1861, 1030, 1536, 677, 264, - /* 2090 */ 673, 1511, 1298, 585, 272, 676, 1511, 1875, 1811, 1511, - /* 2100 */ 584, 286, 1841, 1842, 1844, 588, 1846, 1847, 583, 1843, - /* 2110 */ 578, 1861, 1511, 1511, 1511, 1511, 1511, 1511, 1511, 585, - /* 2120 */ 1511, 1511, 1511, 1875, 1811, 1511, 584, 288, 1841, 1842, - /* 2130 */ 1844, 588, 1846, 1847, 583, 1843, 578, 1861, 1511, 1511, - /* 2140 */ 1511, 1511, 1511, 1511, 1511, 585, 1511, 1511, 1511, 1875, - /* 2150 */ 1811, 1511, 584, 280, 1841, 1842, 1844, 588, 1846, 1847, - /* 2160 */ 583, 1511, 578, 1861, 1511, 1511, 1511, 1511, 1511, 1511, - /* 2170 */ 1511, 585, 1511, 1511, 1511, 1875, 1811, 1511, 584, 289, - /* 2180 */ 1841, 1842, 1844, 588, 1846, 1847, 583, 1843, 578, 1511, - /* 2190 */ 1511, 1511, 1511, 1511, 1511, 1511, 1511, 1511, 1511, 1511, - /* 2200 */ 1511, 1875, 1511, 1843, 1511, 281, 1841, 1842, 1844, 588, - /* 2210 */ 1846, 1847, 583, 1511, 578, 1861, 1511, 1511, 1511, 1511, - /* 2220 */ 1511, 1511, 1511, 585, 1511, 1511, 1511, 1511, 1811, 1511, - /* 2230 */ 584, 1861, 1511, 1511, 1511, 1511, 1511, 1511, 1511, 585, - /* 2240 */ 1511, 1511, 1511, 1511, 1811, 1511, 584, 1511, 1511, 1511, - /* 2250 */ 1511, 1511, 1511, 1875, 1511, 1511, 1511, 290, 1841, 1842, - /* 2260 */ 1844, 588, 1846, 1847, 583, 1843, 578, 1511, 1511, 1875, - /* 2270 */ 1511, 1511, 1511, 282, 1841, 1842, 1844, 588, 1846, 1847, - /* 2280 */ 583, 1843, 578, 1511, 1511, 1511, 1511, 1511, 1511, 1511, - /* 2290 */ 1511, 1511, 1511, 1861, 1511, 1511, 1511, 1511, 1511, 1511, - /* 2300 */ 1511, 585, 1511, 1511, 1511, 1511, 1811, 1511, 584, 1861, - /* 2310 */ 1511, 1511, 1511, 1511, 1511, 1511, 1511, 585, 1511, 1511, - /* 2320 */ 1511, 1511, 1811, 1511, 584, 1511, 1511, 1511, 1511, 1511, - /* 2330 */ 1511, 1875, 1511, 1511, 1843, 295, 1841, 1842, 1844, 588, - /* 2340 */ 1846, 1847, 583, 1511, 578, 1511, 1511, 1875, 1843, 1511, - /* 2350 */ 1511, 296, 1841, 1842, 1844, 588, 1846, 1847, 583, 1511, - /* 2360 */ 578, 1511, 1861, 1511, 1511, 1511, 1511, 1511, 1511, 1511, - /* 2370 */ 585, 1511, 1511, 1511, 1511, 1811, 1861, 584, 1511, 1511, - /* 2380 */ 1511, 1511, 1511, 1511, 585, 1511, 1511, 1511, 1511, 1811, - /* 2390 */ 1511, 584, 1511, 1511, 1511, 1511, 1511, 1511, 1511, 1511, - /* 2400 */ 1875, 1511, 1843, 1511, 1855, 1841, 1842, 1844, 588, 1846, - /* 2410 */ 1847, 583, 1511, 578, 1875, 1511, 1511, 1511, 1854, 1841, - /* 2420 */ 1842, 1844, 588, 1846, 1847, 583, 1843, 578, 1511, 1511, - /* 2430 */ 1861, 1511, 1511, 1511, 1511, 1511, 1511, 1511, 585, 1511, - /* 2440 */ 1511, 1511, 1511, 1811, 1511, 584, 1511, 1511, 1511, 1511, - /* 2450 */ 1511, 1511, 1843, 1511, 1861, 1511, 1511, 1511, 1511, 1511, - /* 2460 */ 1511, 1511, 585, 1511, 1511, 1511, 1511, 1811, 1875, 584, - /* 2470 */ 1511, 1511, 1853, 1841, 1842, 1844, 588, 1846, 1847, 583, - /* 2480 */ 1861, 578, 1511, 1511, 1511, 1511, 1511, 1511, 585, 1511, - /* 2490 */ 1511, 1511, 1875, 1811, 1511, 584, 307, 1841, 1842, 1844, - /* 2500 */ 588, 1846, 1847, 583, 1843, 578, 1511, 1511, 1511, 1511, - /* 2510 */ 1511, 1511, 1511, 1511, 1511, 1511, 1511, 1511, 1875, 1511, - /* 2520 */ 1843, 1511, 308, 1841, 1842, 1844, 588, 1846, 1847, 583, - /* 2530 */ 1511, 578, 1861, 1511, 1511, 1511, 1511, 1511, 1511, 1511, - /* 2540 */ 585, 1511, 1511, 1511, 1511, 1811, 1511, 584, 1861, 1511, - /* 2550 */ 1511, 1511, 1511, 1511, 1511, 1511, 585, 1511, 1511, 1511, - /* 2560 */ 1511, 1811, 1511, 584, 1511, 1511, 1511, 1511, 1511, 1511, - /* 2570 */ 1875, 1511, 1511, 1511, 304, 1841, 1842, 1844, 588, 1846, - /* 2580 */ 1847, 583, 1843, 578, 1511, 1511, 1875, 1511, 1511, 1511, - /* 2590 */ 309, 1841, 1842, 1844, 588, 1846, 1847, 583, 1511, 578, - /* 2600 */ 1511, 1511, 1511, 1511, 1511, 1511, 1511, 1511, 1511, 1511, - /* 2610 */ 1861, 1511, 1511, 1511, 1511, 1511, 1511, 1511, 585, 1511, - /* 2620 */ 1511, 1511, 1511, 1811, 1511, 584, 1511, 1511, 1511, 1511, - /* 2630 */ 1511, 1511, 1511, 1511, 1511, 1511, 1511, 1511, 1511, 1511, - /* 2640 */ 1511, 1511, 1511, 1511, 1511, 1511, 1511, 1511, 1875, 1511, - /* 2650 */ 1511, 1511, 284, 1841, 1842, 1844, 588, 1846, 1847, 583, - /* 2660 */ 1511, 578, + /* 0 */ 1858, 1560, 443, 1858, 444, 1572, 451, 1872, 444, 1572, + /* 10 */ 1675, 1854, 44, 42, 1854, 351, 13, 12, 1729, 1731, + /* 20 */ 346, 1854, 1316, 43, 41, 40, 39, 38, 1342, 2030, + /* 30 */ 155, 77, 1549, 1394, 1049, 1314, 1890, 1850, 1856, 334, + /* 40 */ 1850, 1856, 340, 1840, 582, 125, 1343, 1850, 1856, 1840, + /* 50 */ 588, 594, 30, 588, 1679, 542, 1389, 1929, 37, 36, + /* 60 */ 588, 17, 43, 41, 40, 39, 38, 1872, 1322, 44, + /* 70 */ 42, 1464, 1870, 581, 1053, 1054, 1904, 346, 566, 1316, + /* 80 */ 97, 1871, 1873, 598, 1875, 1876, 593, 1066, 588, 1065, + /* 90 */ 1394, 62, 1314, 167, 1, 1957, 1890, 34, 265, 339, + /* 100 */ 1953, 166, 479, 581, 595, 578, 1341, 2025, 1736, 1840, + /* 110 */ 1437, 594, 172, 1389, 1723, 333, 685, 1067, 17, 527, + /* 120 */ 1983, 1523, 565, 170, 1734, 1322, 331, 2026, 567, 1784, + /* 130 */ 1396, 1397, 596, 460, 132, 179, 1904, 1538, 1211, 1212, + /* 140 */ 98, 345, 1873, 598, 1875, 1876, 593, 46, 588, 1890, + /* 150 */ 442, 1, 1066, 446, 1065, 1957, 58, 560, 109, 312, + /* 160 */ 1953, 108, 107, 106, 105, 104, 103, 102, 101, 100, + /* 170 */ 2025, 130, 74, 685, 1972, 73, 1317, 46, 1315, 47, + /* 180 */ 58, 58, 1067, 7, 1559, 565, 170, 1396, 1397, 264, + /* 190 */ 2026, 567, 580, 168, 1965, 1966, 559, 1970, 1730, 1731, + /* 200 */ 1320, 1321, 1969, 1371, 1372, 1374, 1375, 1376, 1377, 1378, + /* 210 */ 1379, 590, 586, 1387, 1388, 1390, 1391, 1392, 1393, 1395, + /* 220 */ 1398, 3, 203, 1537, 37, 36, 1840, 581, 43, 41, + /* 230 */ 40, 39, 38, 1317, 1342, 1315, 160, 231, 232, 173, + /* 240 */ 1468, 477, 473, 469, 465, 202, 1341, 118, 117, 116, + /* 250 */ 115, 114, 113, 112, 111, 110, 391, 1320, 1321, 26, + /* 260 */ 1371, 1372, 1374, 1375, 1376, 1377, 1378, 1379, 590, 586, + /* 270 */ 1387, 1388, 1390, 1391, 1392, 1393, 1395, 1398, 3, 44, + /* 280 */ 42, 485, 78, 77, 1859, 200, 58, 346, 1558, 1316, + /* 290 */ 450, 1490, 173, 446, 308, 1854, 310, 629, 578, 530, + /* 300 */ 1394, 173, 1314, 484, 109, 217, 1680, 108, 107, 106, + /* 310 */ 105, 104, 103, 102, 101, 100, 144, 143, 626, 625, + /* 320 */ 624, 1850, 1856, 1389, 173, 173, 173, 132, 17, 2030, + /* 330 */ 1840, 1872, 225, 1341, 588, 1322, 44, 42, 1736, 553, + /* 340 */ 1488, 1489, 1491, 1492, 346, 350, 1316, 578, 199, 193, + /* 350 */ 448, 198, 561, 1557, 1734, 456, 1339, 1394, 2025, 1314, + /* 360 */ 1890, 1, 79, 310, 130, 540, 530, 384, 582, 383, + /* 370 */ 58, 191, 81, 1840, 2029, 594, 132, 119, 2026, 2028, + /* 380 */ 1389, 380, 1457, 685, 481, 17, 169, 1965, 1966, 142, + /* 390 */ 1970, 1662, 1322, 1404, 1684, 1840, 1870, 1396, 1397, 1341, + /* 400 */ 1904, 382, 378, 1316, 97, 1871, 1873, 598, 1875, 1876, + /* 410 */ 593, 1556, 588, 121, 631, 556, 1314, 167, 1, 1957, + /* 420 */ 623, 37, 36, 339, 1953, 43, 41, 40, 39, 38, + /* 430 */ 1373, 173, 11, 1344, 9, 262, 1965, 577, 428, 576, + /* 440 */ 685, 51, 2025, 1317, 1984, 1315, 1661, 218, 349, 1322, + /* 450 */ 1714, 460, 332, 1840, 1396, 1397, 153, 565, 170, 1659, + /* 460 */ 153, 1555, 2026, 567, 544, 1686, 1929, 1320, 1321, 1686, + /* 470 */ 1371, 1372, 1374, 1375, 1376, 1377, 1378, 1379, 590, 586, + /* 480 */ 1387, 1388, 1390, 1391, 1392, 1393, 1395, 1398, 3, 230, + /* 490 */ 11, 40, 39, 38, 183, 182, 1340, 685, 562, 557, + /* 500 */ 1317, 322, 1315, 1840, 1169, 620, 619, 618, 1173, 617, + /* 510 */ 1175, 1176, 616, 1178, 613, 173, 1184, 610, 1186, 1187, + /* 520 */ 607, 604, 1129, 1787, 1320, 1321, 1554, 1371, 1372, 1374, + /* 530 */ 1375, 1376, 1377, 1378, 1379, 590, 586, 1387, 1388, 1390, + /* 540 */ 1391, 1392, 1393, 1395, 1398, 3, 44, 42, 540, 1294, + /* 550 */ 1295, 2030, 629, 11, 346, 1131, 1316, 1317, 1322, 1315, + /* 560 */ 52, 323, 1343, 321, 320, 629, 483, 1394, 1840, 1314, + /* 570 */ 485, 144, 143, 626, 625, 624, 241, 1684, 507, 1872, + /* 580 */ 2025, 1320, 1321, 1373, 144, 143, 626, 625, 624, 352, + /* 590 */ 1389, 505, 484, 503, 158, 1341, 2029, 153, 1872, 1641, + /* 600 */ 2026, 2027, 1322, 44, 42, 1399, 1686, 540, 1890, 1660, + /* 610 */ 1783, 346, 305, 1316, 643, 94, 595, 490, 489, 175, + /* 620 */ 1553, 1840, 540, 594, 1394, 1736, 1314, 1890, 8, 127, + /* 630 */ 656, 654, 317, 1425, 389, 595, 1684, 1676, 1552, 1551, + /* 640 */ 1840, 1734, 594, 128, 596, 1548, 1928, 1389, 1904, 540, + /* 650 */ 685, 1684, 292, 345, 1873, 598, 1875, 1876, 593, 1322, + /* 660 */ 588, 119, 1840, 1870, 1396, 1397, 1547, 1904, 486, 631, + /* 670 */ 566, 97, 1871, 1873, 598, 1875, 1876, 593, 1684, 588, + /* 680 */ 1840, 1840, 2025, 1546, 2045, 8, 1957, 1840, 37, 36, + /* 690 */ 339, 1953, 43, 41, 40, 39, 38, 565, 170, 2025, + /* 700 */ 1991, 31, 2026, 567, 540, 264, 1344, 685, 1840, 153, + /* 710 */ 1317, 1430, 1315, 570, 565, 170, 390, 32, 1687, 2026, + /* 720 */ 567, 1396, 1397, 37, 36, 1840, 1461, 43, 41, 40, + /* 730 */ 39, 38, 1545, 1684, 1320, 1321, 1544, 1371, 1372, 1374, + /* 740 */ 1375, 1376, 1377, 1378, 1379, 590, 586, 1387, 1388, 1390, + /* 750 */ 1391, 1392, 1393, 1395, 1398, 3, 540, 37, 36, 1972, + /* 760 */ 1535, 43, 41, 40, 39, 38, 518, 1317, 398, 1315, + /* 770 */ 1782, 87, 305, 173, 1840, 1500, 37, 36, 1840, 1373, + /* 780 */ 43, 41, 40, 39, 38, 1684, 1543, 1968, 1542, 1972, + /* 790 */ 1541, 1320, 1321, 1677, 1371, 1372, 1374, 1375, 1376, 1377, + /* 800 */ 1378, 1379, 590, 586, 1387, 1388, 1390, 1391, 1392, 1393, + /* 810 */ 1395, 1398, 3, 44, 42, 1777, 498, 1967, 1053, 1054, + /* 820 */ 361, 346, 1777, 1316, 1977, 1457, 178, 540, 1840, 540, + /* 830 */ 1840, 508, 1840, 181, 1394, 540, 1314, 523, 540, 413, + /* 840 */ 2029, 414, 527, 540, 1480, 216, 1872, 458, 540, 240, + /* 850 */ 459, 627, 1785, 1325, 1727, 1681, 1684, 1389, 1684, 501, + /* 860 */ 136, 1540, 1673, 495, 1684, 1872, 2025, 1684, 215, 1322, + /* 870 */ 44, 42, 1684, 1736, 1550, 1890, 628, 1684, 346, 1727, + /* 880 */ 1316, 2031, 170, 595, 540, 45, 2026, 567, 1840, 1735, + /* 890 */ 594, 1394, 2030, 1314, 1890, 8, 519, 644, 1827, 1654, + /* 900 */ 540, 1669, 595, 1840, 540, 64, 540, 1840, 63, 594, + /* 910 */ 573, 1870, 524, 1684, 1389, 1904, 235, 685, 536, 156, + /* 920 */ 1871, 1873, 598, 1875, 1876, 593, 1322, 588, 571, 1684, + /* 930 */ 1870, 1396, 1397, 1684, 1904, 1684, 1530, 1265, 97, 1871, + /* 940 */ 1873, 598, 1875, 1876, 593, 368, 588, 493, 492, 48, + /* 950 */ 4, 2045, 1, 1957, 126, 392, 277, 339, 1953, 1714, + /* 960 */ 545, 1994, 1460, 1589, 1642, 488, 491, 2019, 393, 540, + /* 970 */ 208, 487, 210, 206, 685, 209, 585, 1317, 385, 1315, + /* 980 */ 526, 538, 50, 522, 1523, 494, 37, 36, 1396, 1397, + /* 990 */ 43, 41, 40, 39, 38, 523, 1328, 523, 1684, 1532, + /* 1000 */ 1533, 1320, 1321, 1671, 1371, 1372, 1374, 1375, 1376, 1377, + /* 1010 */ 1378, 1379, 590, 586, 1387, 1388, 1390, 1391, 1392, 1393, + /* 1020 */ 1395, 1398, 3, 307, 2025, 1339, 2025, 1584, 1582, 1529, + /* 1030 */ 212, 540, 421, 211, 1317, 433, 1315, 13, 12, 2031, + /* 1040 */ 170, 2031, 170, 539, 2026, 567, 2026, 567, 214, 496, + /* 1050 */ 499, 213, 406, 229, 434, 224, 408, 1667, 1320, 1321, + /* 1060 */ 1684, 1371, 1372, 1374, 1375, 1376, 1377, 1378, 1379, 590, + /* 1070 */ 586, 1387, 1388, 1390, 1391, 1392, 1393, 1395, 1398, 3, + /* 1080 */ 37, 36, 60, 137, 43, 41, 40, 39, 38, 154, + /* 1090 */ 540, 540, 637, 569, 283, 80, 93, 1997, 399, 221, + /* 1100 */ 638, 589, 266, 353, 1324, 233, 90, 141, 281, 66, + /* 1110 */ 395, 1599, 65, 259, 1113, 1415, 142, 622, 60, 1684, + /* 1120 */ 1684, 245, 1111, 1861, 554, 478, 253, 574, 187, 439, + /* 1130 */ 437, 1891, 357, 1573, 1431, 533, 1724, 1987, 432, 1093, + /* 1140 */ 578, 427, 426, 425, 424, 423, 420, 419, 418, 417, + /* 1150 */ 416, 412, 411, 410, 409, 403, 402, 401, 400, 237, + /* 1160 */ 397, 396, 319, 45, 45, 58, 261, 602, 1162, 132, + /* 1170 */ 1487, 1863, 1094, 248, 662, 661, 660, 659, 356, 141, + /* 1180 */ 658, 657, 133, 652, 651, 650, 649, 648, 647, 646, + /* 1190 */ 645, 146, 641, 640, 639, 355, 354, 636, 635, 634, + /* 1200 */ 633, 632, 142, 96, 37, 36, 130, 1578, 43, 41, + /* 1210 */ 40, 39, 38, 122, 1872, 1380, 276, 2, 579, 1190, + /* 1220 */ 141, 258, 5, 362, 318, 367, 1281, 273, 171, 1965, + /* 1230 */ 1966, 1194, 1970, 180, 1339, 152, 415, 394, 1779, 71, + /* 1240 */ 70, 388, 422, 1890, 177, 429, 430, 1327, 435, 436, + /* 1250 */ 431, 595, 184, 438, 1201, 680, 1840, 313, 594, 359, + /* 1260 */ 440, 306, 1345, 441, 376, 1199, 374, 370, 366, 363, + /* 1270 */ 360, 449, 145, 1347, 452, 190, 523, 192, 453, 1870, + /* 1280 */ 1346, 1348, 454, 1904, 195, 455, 1872, 97, 1871, 1873, + /* 1290 */ 598, 1875, 1876, 593, 457, 588, 197, 75, 129, 1423, + /* 1300 */ 140, 1928, 1957, 76, 201, 2025, 339, 1953, 1872, 461, + /* 1310 */ 173, 480, 482, 120, 309, 1890, 1674, 205, 1670, 207, + /* 1320 */ 2031, 170, 147, 595, 148, 2026, 567, 1602, 1840, 1672, + /* 1330 */ 594, 1668, 149, 150, 510, 512, 1818, 1890, 274, 219, + /* 1340 */ 514, 513, 517, 222, 520, 595, 525, 226, 552, 528, + /* 1350 */ 1840, 1870, 594, 328, 1424, 1904, 1817, 1789, 138, 97, + /* 1360 */ 1871, 1873, 598, 1875, 1876, 593, 531, 588, 139, 330, + /* 1370 */ 534, 535, 2045, 1870, 1957, 1872, 84, 1904, 339, 1953, + /* 1380 */ 275, 97, 1871, 1873, 598, 1875, 1876, 593, 1976, 588, + /* 1390 */ 86, 493, 492, 1685, 1932, 1344, 1957, 1988, 126, 555, + /* 1400 */ 339, 1953, 1998, 548, 1890, 243, 550, 551, 6, 488, + /* 1410 */ 491, 335, 595, 558, 247, 487, 358, 1840, 564, 594, + /* 1420 */ 2003, 252, 33, 343, 1418, 1419, 1420, 1421, 1422, 1426, + /* 1430 */ 1427, 1428, 1429, 523, 1979, 2002, 549, 547, 336, 254, + /* 1440 */ 1870, 161, 255, 546, 1904, 256, 257, 1872, 97, 1871, + /* 1450 */ 1873, 598, 1875, 1876, 593, 260, 588, 575, 1457, 572, + /* 1460 */ 131, 1930, 2025, 1957, 2024, 1343, 57, 339, 1953, 2048, + /* 1470 */ 1973, 688, 1938, 88, 600, 1728, 1890, 2031, 170, 1655, + /* 1480 */ 278, 269, 2026, 567, 595, 272, 681, 682, 684, 1840, + /* 1490 */ 49, 594, 304, 280, 1834, 282, 1833, 68, 290, 164, + /* 1500 */ 1832, 1831, 301, 300, 678, 674, 670, 666, 270, 69, + /* 1510 */ 1828, 364, 1870, 365, 1308, 1309, 1904, 176, 369, 1826, + /* 1520 */ 97, 1871, 1873, 598, 1875, 1876, 593, 371, 588, 1872, + /* 1530 */ 372, 373, 1825, 543, 375, 1957, 342, 341, 377, 339, + /* 1540 */ 1953, 1824, 1823, 1822, 379, 95, 1330, 381, 238, 1284, + /* 1550 */ 1283, 1800, 1799, 386, 387, 1798, 1797, 1394, 1890, 1323, + /* 1560 */ 1253, 1772, 1771, 1770, 1769, 134, 595, 1768, 1767, 511, + /* 1570 */ 72, 1840, 1766, 594, 1765, 1764, 1763, 1762, 404, 405, + /* 1580 */ 1389, 537, 1761, 1872, 407, 1760, 523, 1759, 1758, 1757, + /* 1590 */ 1756, 1755, 1322, 1255, 1870, 1754, 1753, 1752, 1904, 1751, + /* 1600 */ 1750, 1749, 98, 1871, 1873, 598, 1875, 1876, 593, 1872, + /* 1610 */ 588, 1748, 1890, 1747, 227, 2025, 1746, 1957, 1745, 1744, + /* 1620 */ 595, 1956, 1953, 135, 1743, 1840, 1742, 594, 1741, 1740, + /* 1630 */ 2031, 170, 1288, 1739, 220, 2026, 567, 1738, 1890, 1737, + /* 1640 */ 584, 1137, 1604, 1603, 1601, 1569, 592, 188, 1870, 1056, + /* 1650 */ 185, 1840, 1904, 594, 186, 165, 98, 1871, 1873, 598, + /* 1660 */ 1875, 1876, 593, 445, 588, 1055, 123, 447, 1568, 1813, + /* 1670 */ 189, 1957, 1807, 124, 1870, 583, 1953, 1796, 1904, 1872, + /* 1680 */ 194, 1795, 298, 1871, 1873, 598, 1875, 1876, 593, 591, + /* 1690 */ 588, 541, 1922, 196, 1781, 1663, 1600, 1598, 1086, 462, + /* 1700 */ 1331, 463, 1326, 1596, 464, 466, 467, 1594, 1890, 470, + /* 1710 */ 468, 1592, 472, 471, 474, 476, 595, 1581, 1580, 1565, + /* 1720 */ 1665, 1840, 475, 594, 1334, 1336, 59, 1205, 1204, 1664, + /* 1730 */ 653, 655, 204, 1128, 1127, 1124, 586, 1387, 1388, 1390, + /* 1740 */ 1391, 1392, 1393, 1872, 1870, 1123, 1122, 1590, 1904, 324, + /* 1750 */ 1585, 497, 157, 1871, 1873, 598, 1875, 1876, 593, 325, + /* 1760 */ 588, 1583, 326, 500, 1564, 502, 1563, 504, 1562, 1872, + /* 1770 */ 506, 99, 1890, 1300, 1812, 1806, 25, 53, 1290, 515, + /* 1780 */ 595, 151, 223, 516, 1794, 1840, 1872, 594, 1792, 2030, + /* 1790 */ 521, 1793, 1791, 1790, 1298, 327, 228, 529, 1890, 18, + /* 1800 */ 1788, 532, 234, 329, 568, 2046, 595, 82, 1870, 1780, + /* 1810 */ 83, 1840, 1904, 594, 236, 1890, 98, 1871, 1873, 598, + /* 1820 */ 1875, 1876, 593, 592, 588, 85, 90, 239, 1840, 1406, + /* 1830 */ 594, 1957, 19, 20, 1870, 15, 1954, 1405, 1904, 1872, + /* 1840 */ 27, 56, 299, 1871, 1873, 598, 1875, 1876, 593, 1502, + /* 1850 */ 588, 1870, 242, 250, 246, 1904, 1872, 244, 1484, 298, + /* 1860 */ 1871, 1873, 598, 1875, 1876, 593, 159, 588, 1890, 1923, + /* 1870 */ 10, 1486, 249, 28, 251, 1479, 595, 1861, 29, 89, + /* 1880 */ 61, 1840, 1522, 594, 22, 1890, 1517, 1516, 337, 1523, + /* 1890 */ 21, 16, 1521, 595, 1520, 338, 1454, 1453, 1840, 54, + /* 1900 */ 594, 263, 1860, 1332, 1870, 55, 1907, 162, 1904, 1416, + /* 1910 */ 12, 1872, 156, 1871, 1873, 598, 1875, 1876, 593, 1384, + /* 1920 */ 588, 1870, 1382, 587, 35, 1904, 163, 1381, 1872, 294, + /* 1930 */ 1871, 1873, 598, 1875, 1876, 593, 14, 588, 23, 174, + /* 1940 */ 1890, 1356, 1364, 24, 597, 599, 601, 348, 595, 1191, + /* 1950 */ 605, 608, 603, 1840, 1995, 594, 611, 1890, 1188, 606, + /* 1960 */ 614, 1185, 344, 609, 612, 595, 1179, 1177, 615, 1168, + /* 1970 */ 1840, 1200, 594, 563, 621, 267, 1870, 91, 92, 1872, + /* 1980 */ 1904, 67, 1183, 1196, 157, 1871, 1873, 598, 1875, 1876, + /* 1990 */ 593, 1182, 588, 1870, 1181, 1084, 1180, 1904, 1872, 630, + /* 2000 */ 1119, 299, 1871, 1873, 598, 1875, 1876, 593, 1890, 588, + /* 2010 */ 1118, 1117, 1116, 347, 1115, 1114, 595, 1112, 1110, 1109, + /* 2020 */ 1108, 1840, 642, 594, 1135, 1106, 1105, 1890, 1104, 268, + /* 2030 */ 1103, 1102, 1101, 1100, 1099, 595, 1132, 2047, 1130, 1096, + /* 2040 */ 1840, 1090, 594, 1095, 1870, 1092, 1091, 1089, 1904, 1597, + /* 2050 */ 663, 1595, 299, 1871, 1873, 598, 1875, 1876, 593, 1872, + /* 2060 */ 588, 665, 667, 509, 664, 668, 1593, 1904, 669, 671, + /* 2070 */ 672, 292, 1871, 1873, 598, 1875, 1876, 593, 673, 588, + /* 2080 */ 1591, 675, 676, 677, 1579, 679, 1561, 1046, 1890, 271, + /* 2090 */ 683, 1536, 1318, 279, 686, 687, 595, 1536, 1536, 1536, + /* 2100 */ 1536, 1840, 1536, 594, 1536, 1536, 1536, 1536, 1536, 1536, + /* 2110 */ 1536, 1536, 1536, 1536, 1536, 1536, 1536, 1872, 1536, 1536, + /* 2120 */ 1536, 1536, 1536, 1536, 1870, 1536, 1536, 1536, 1904, 1536, + /* 2130 */ 1536, 1536, 284, 1871, 1873, 598, 1875, 1876, 593, 1872, + /* 2140 */ 588, 1536, 1536, 1536, 1536, 1536, 1890, 1536, 1536, 1536, + /* 2150 */ 1536, 1536, 1536, 1536, 595, 1536, 1536, 1536, 1536, 1840, + /* 2160 */ 1536, 594, 1536, 1536, 1536, 1536, 1536, 1536, 1890, 1536, + /* 2170 */ 1536, 1536, 1536, 1536, 1536, 1536, 595, 1536, 1536, 1536, + /* 2180 */ 1536, 1840, 1870, 594, 1536, 1536, 1904, 1536, 1536, 1536, + /* 2190 */ 285, 1871, 1873, 598, 1875, 1876, 593, 1536, 588, 1536, + /* 2200 */ 1872, 1536, 1536, 1536, 1870, 1536, 1536, 1536, 1904, 1536, + /* 2210 */ 1536, 1536, 286, 1871, 1873, 598, 1875, 1876, 593, 1872, + /* 2220 */ 588, 1536, 1536, 1536, 1536, 1536, 1536, 1536, 1536, 1890, + /* 2230 */ 1536, 1536, 1536, 1536, 1536, 1536, 1536, 595, 1536, 1536, + /* 2240 */ 1536, 1536, 1840, 1536, 594, 1536, 1536, 1536, 1890, 1536, + /* 2250 */ 1536, 1536, 1536, 1536, 1536, 1536, 595, 1536, 1536, 1536, + /* 2260 */ 1536, 1840, 1536, 594, 1536, 1870, 1536, 1536, 1536, 1904, + /* 2270 */ 1536, 1536, 1872, 293, 1871, 1873, 598, 1875, 1876, 593, + /* 2280 */ 1536, 588, 1536, 1536, 1870, 1536, 1536, 1536, 1904, 1872, + /* 2290 */ 1536, 1536, 295, 1871, 1873, 598, 1875, 1876, 593, 1536, + /* 2300 */ 588, 1890, 1536, 1536, 1536, 1536, 1536, 1536, 1536, 595, + /* 2310 */ 1536, 1536, 1536, 1536, 1840, 1536, 594, 1536, 1890, 1536, + /* 2320 */ 1536, 1536, 1536, 1536, 1536, 1536, 595, 1536, 1536, 1536, + /* 2330 */ 1536, 1840, 1872, 594, 1536, 1536, 1536, 1870, 1536, 1536, + /* 2340 */ 1536, 1904, 1536, 1536, 1536, 287, 1871, 1873, 598, 1875, + /* 2350 */ 1876, 593, 1536, 588, 1870, 1536, 1872, 1536, 1904, 1536, + /* 2360 */ 1536, 1890, 296, 1871, 1873, 598, 1875, 1876, 593, 595, + /* 2370 */ 588, 1536, 1536, 1536, 1840, 1872, 594, 1536, 1536, 1536, + /* 2380 */ 1536, 1536, 1536, 1536, 1536, 1890, 1536, 1536, 1536, 1536, + /* 2390 */ 1536, 1536, 1536, 595, 1536, 1536, 1536, 1870, 1840, 1536, + /* 2400 */ 594, 1904, 1536, 1536, 1890, 288, 1871, 1873, 598, 1875, + /* 2410 */ 1876, 593, 595, 588, 1536, 1536, 1536, 1840, 1536, 594, + /* 2420 */ 1536, 1870, 1536, 1536, 1536, 1904, 1536, 1536, 1536, 297, + /* 2430 */ 1871, 1873, 598, 1875, 1876, 593, 1872, 588, 1536, 1536, + /* 2440 */ 1870, 1536, 1536, 1536, 1904, 1536, 1536, 1536, 289, 1871, + /* 2450 */ 1873, 598, 1875, 1876, 593, 1872, 588, 1536, 1536, 1536, + /* 2460 */ 1536, 1536, 1536, 1536, 1536, 1890, 1536, 1536, 1536, 1536, + /* 2470 */ 1536, 1536, 1536, 595, 1536, 1536, 1536, 1536, 1840, 1536, + /* 2480 */ 594, 1536, 1536, 1536, 1890, 1536, 1536, 1536, 1536, 1536, + /* 2490 */ 1536, 1536, 595, 1536, 1536, 1536, 1536, 1840, 1536, 594, + /* 2500 */ 1536, 1870, 1536, 1536, 1536, 1904, 1536, 1536, 1536, 302, + /* 2510 */ 1871, 1873, 598, 1875, 1876, 593, 1536, 588, 1536, 1872, + /* 2520 */ 1870, 1536, 1536, 1536, 1904, 1536, 1536, 1536, 303, 1871, + /* 2530 */ 1873, 598, 1875, 1876, 593, 1536, 588, 1872, 1536, 1536, + /* 2540 */ 1536, 1536, 1536, 1536, 1536, 1536, 1536, 1536, 1890, 1536, + /* 2550 */ 1536, 1536, 1536, 1536, 1536, 1536, 595, 1536, 1536, 1536, + /* 2560 */ 1536, 1840, 1536, 594, 1536, 1536, 1890, 1536, 1536, 1536, + /* 2570 */ 1536, 1536, 1536, 1536, 595, 1536, 1536, 1536, 1536, 1840, + /* 2580 */ 1872, 594, 1536, 1536, 1870, 1536, 1536, 1536, 1904, 1536, + /* 2590 */ 1536, 1536, 1884, 1871, 1873, 598, 1875, 1876, 593, 1536, + /* 2600 */ 588, 1536, 1870, 1536, 1536, 1536, 1904, 1536, 1536, 1890, + /* 2610 */ 1883, 1871, 1873, 598, 1875, 1876, 593, 595, 588, 1536, + /* 2620 */ 1536, 1536, 1840, 1536, 594, 1536, 1536, 1536, 1536, 1536, + /* 2630 */ 1536, 1536, 1536, 1872, 1536, 1536, 1536, 1536, 1536, 1536, + /* 2640 */ 1536, 1536, 1536, 1536, 1536, 1870, 1536, 1536, 1536, 1904, + /* 2650 */ 1872, 1536, 1536, 1882, 1871, 1873, 598, 1875, 1876, 593, + /* 2660 */ 1536, 588, 1890, 1536, 1536, 1536, 1536, 1536, 1536, 1536, + /* 2670 */ 595, 1536, 1536, 1536, 1536, 1840, 1536, 594, 1536, 1890, + /* 2680 */ 1536, 1536, 1536, 1536, 1536, 1536, 1536, 595, 1536, 1536, + /* 2690 */ 1536, 1536, 1840, 1872, 594, 1536, 1536, 1536, 1870, 1536, + /* 2700 */ 1536, 1536, 1904, 1536, 1536, 1536, 314, 1871, 1873, 598, + /* 2710 */ 1875, 1876, 593, 1536, 588, 1870, 1536, 1872, 1536, 1904, + /* 2720 */ 1536, 1536, 1890, 315, 1871, 1873, 598, 1875, 1876, 593, + /* 2730 */ 595, 588, 1536, 1536, 1536, 1840, 1872, 594, 1536, 1536, + /* 2740 */ 1536, 1536, 1536, 1536, 1536, 1536, 1890, 1536, 1536, 1536, + /* 2750 */ 1536, 1536, 1536, 1536, 595, 1536, 1536, 1536, 1870, 1840, + /* 2760 */ 1536, 594, 1904, 1536, 1536, 1890, 311, 1871, 1873, 598, + /* 2770 */ 1875, 1876, 593, 595, 588, 1536, 1536, 1536, 1840, 1536, + /* 2780 */ 594, 1536, 1870, 1536, 1536, 1536, 1904, 1536, 1536, 1536, + /* 2790 */ 316, 1871, 1873, 598, 1875, 1876, 593, 1536, 588, 1536, + /* 2800 */ 1536, 1870, 1536, 1536, 1536, 1904, 1536, 1536, 1536, 291, + /* 2810 */ 1871, 1873, 598, 1875, 1876, 593, 1536, 588, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 324, 388, 0, 324, 320, 346, 322, 323, 403, 404, - /* 10 */ 316, 335, 12, 13, 335, 3, 357, 4, 342, 345, - /* 20 */ 20, 342, 22, 12, 13, 14, 15, 16, 352, 20, - /* 30 */ 417, 352, 20, 33, 0, 35, 20, 20, 344, 346, - /* 40 */ 381, 382, 383, 430, 431, 313, 352, 336, 435, 436, - /* 50 */ 357, 357, 345, 359, 395, 344, 56, 44, 45, 20, - /* 60 */ 320, 61, 322, 323, 353, 344, 4, 316, 68, 12, - /* 70 */ 13, 14, 14, 352, 381, 382, 382, 20, 20, 22, - /* 80 */ 386, 387, 388, 389, 390, 391, 392, 393, 395, 395, - /* 90 */ 33, 324, 35, 93, 400, 344, 402, 324, 64, 65, - /* 100 */ 406, 407, 335, 352, 372, 71, 94, 93, 357, 93, - /* 110 */ 359, 390, 315, 56, 317, 115, 82, 83, 61, 352, - /* 120 */ 388, 427, 88, 355, 346, 68, 358, 359, 60, 129, - /* 130 */ 130, 125, 93, 382, 361, 357, 388, 386, 387, 388, - /* 140 */ 389, 390, 391, 392, 393, 346, 395, 358, 359, 417, - /* 150 */ 93, 400, 93, 402, 316, 93, 357, 406, 407, 381, - /* 160 */ 382, 383, 430, 431, 399, 417, 401, 435, 436, 344, - /* 170 */ 419, 162, 115, 395, 162, 175, 351, 177, 427, 431, - /* 180 */ 381, 382, 344, 435, 436, 360, 129, 130, 182, 183, - /* 190 */ 352, 20, 186, 324, 395, 357, 329, 359, 198, 199, - /* 200 */ 333, 201, 202, 203, 204, 205, 206, 207, 208, 209, + /* 0 */ 349, 318, 322, 349, 324, 325, 322, 318, 324, 325, + /* 10 */ 349, 360, 12, 13, 360, 358, 1, 2, 361, 362, + /* 20 */ 20, 360, 22, 12, 13, 14, 15, 16, 20, 3, + /* 30 */ 317, 330, 319, 33, 4, 35, 347, 386, 387, 388, + /* 40 */ 386, 387, 388, 360, 355, 344, 20, 386, 387, 360, + /* 50 */ 399, 362, 2, 399, 353, 403, 56, 405, 8, 9, + /* 60 */ 399, 61, 12, 13, 14, 15, 16, 318, 68, 12, + /* 70 */ 13, 14, 383, 20, 44, 45, 387, 20, 392, 22, + /* 80 */ 391, 392, 393, 394, 395, 396, 397, 20, 399, 22, + /* 90 */ 33, 4, 35, 404, 94, 406, 347, 407, 408, 410, + /* 100 */ 411, 346, 35, 20, 355, 326, 20, 421, 347, 360, + /* 110 */ 95, 362, 423, 56, 359, 354, 116, 50, 61, 362, + /* 120 */ 431, 95, 436, 437, 363, 68, 369, 441, 442, 372, + /* 130 */ 130, 131, 383, 60, 355, 56, 387, 0, 130, 131, + /* 140 */ 391, 392, 393, 394, 395, 396, 397, 94, 399, 347, + /* 150 */ 323, 94, 20, 326, 22, 406, 94, 355, 21, 410, + /* 160 */ 411, 24, 25, 26, 27, 28, 29, 30, 31, 32, + /* 170 */ 421, 392, 93, 116, 389, 96, 176, 94, 178, 94, + /* 180 */ 94, 94, 50, 39, 318, 436, 437, 130, 131, 163, + /* 190 */ 441, 442, 413, 414, 415, 416, 394, 418, 361, 362, + /* 200 */ 200, 201, 417, 203, 204, 205, 206, 207, 208, 209, /* 210 */ 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, - /* 220 */ 382, 352, 343, 60, 386, 387, 388, 389, 390, 391, - /* 230 */ 392, 393, 175, 395, 177, 356, 398, 237, 400, 401, - /* 240 */ 402, 198, 8, 9, 406, 407, 12, 13, 14, 15, - /* 250 */ 16, 237, 20, 237, 22, 198, 199, 388, 201, 202, + /* 220 */ 220, 221, 33, 0, 8, 9, 360, 20, 12, 13, + /* 230 */ 14, 15, 16, 176, 20, 178, 47, 125, 126, 239, + /* 240 */ 14, 52, 53, 54, 55, 56, 20, 24, 25, 26, + /* 250 */ 27, 28, 29, 30, 31, 32, 326, 200, 201, 43, /* 260 */ 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, - /* 270 */ 213, 214, 215, 216, 217, 218, 219, 12, 13, 410, - /* 280 */ 411, 412, 50, 414, 221, 20, 20, 22, 20, 246, - /* 290 */ 247, 248, 249, 250, 321, 316, 237, 324, 33, 237, - /* 300 */ 35, 93, 106, 107, 108, 109, 110, 111, 112, 113, - /* 310 */ 114, 115, 116, 324, 118, 119, 120, 121, 122, 123, - /* 320 */ 78, 56, 221, 344, 223, 56, 61, 0, 94, 124, - /* 330 */ 125, 352, 324, 68, 12, 13, 357, 104, 359, 160, - /* 340 */ 344, 352, 20, 335, 22, 8, 9, 351, 316, 12, - /* 350 */ 13, 14, 15, 16, 20, 33, 360, 35, 93, 93, - /* 360 */ 352, 382, 93, 35, 95, 386, 387, 388, 389, 390, - /* 370 */ 391, 392, 393, 170, 395, 133, 134, 388, 56, 400, - /* 380 */ 115, 402, 174, 61, 176, 406, 407, 60, 183, 357, - /* 390 */ 68, 186, 189, 190, 129, 130, 68, 129, 130, 410, - /* 400 */ 411, 412, 0, 414, 8, 9, 417, 324, 12, 13, - /* 410 */ 14, 15, 16, 321, 354, 93, 324, 357, 335, 430, - /* 420 */ 431, 242, 243, 21, 435, 436, 24, 25, 26, 27, - /* 430 */ 28, 29, 30, 31, 32, 352, 359, 115, 0, 43, - /* 440 */ 175, 14, 177, 366, 326, 237, 369, 20, 316, 68, - /* 450 */ 21, 129, 130, 24, 25, 26, 27, 28, 29, 30, - /* 460 */ 31, 32, 20, 198, 199, 347, 201, 202, 203, 204, - /* 470 */ 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, - /* 480 */ 215, 216, 217, 218, 219, 0, 221, 8, 9, 357, - /* 490 */ 324, 12, 13, 14, 15, 16, 162, 175, 60, 177, - /* 500 */ 3, 335, 398, 237, 167, 401, 237, 37, 68, 24, - /* 510 */ 25, 26, 27, 28, 29, 30, 31, 32, 352, 384, - /* 520 */ 198, 199, 20, 201, 202, 203, 204, 205, 206, 207, - /* 530 */ 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, - /* 540 */ 218, 219, 12, 13, 344, 124, 22, 336, 413, 345, - /* 550 */ 20, 351, 22, 330, 331, 344, 43, 328, 328, 35, - /* 560 */ 360, 324, 33, 33, 353, 35, 96, 324, 98, 99, - /* 570 */ 341, 101, 20, 94, 22, 105, 47, 316, 335, 350, - /* 580 */ 350, 52, 53, 54, 55, 56, 56, 35, 388, 352, - /* 590 */ 326, 316, 68, 105, 20, 352, 259, 127, 68, 12, - /* 600 */ 13, 14, 50, 339, 384, 184, 185, 20, 345, 22, - /* 610 */ 324, 347, 124, 125, 126, 127, 128, 417, 357, 344, - /* 620 */ 33, 92, 35, 93, 95, 388, 324, 352, 345, 202, - /* 630 */ 430, 431, 357, 413, 359, 435, 436, 335, 352, 115, - /* 640 */ 56, 324, 316, 56, 14, 115, 409, 410, 411, 412, - /* 650 */ 20, 414, 335, 345, 352, 68, 344, 382, 21, 129, - /* 660 */ 130, 386, 387, 388, 389, 390, 391, 392, 393, 352, - /* 670 */ 395, 34, 360, 36, 388, 400, 92, 402, 324, 95, - /* 680 */ 93, 406, 407, 357, 316, 64, 65, 158, 159, 335, - /* 690 */ 161, 416, 71, 399, 165, 401, 410, 411, 412, 175, - /* 700 */ 414, 177, 115, 82, 83, 175, 352, 177, 352, 88, - /* 710 */ 181, 316, 344, 14, 15, 16, 129, 130, 0, 363, - /* 720 */ 352, 344, 198, 199, 316, 357, 376, 359, 198, 199, - /* 730 */ 353, 201, 202, 203, 204, 205, 206, 207, 208, 209, - /* 740 */ 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, - /* 750 */ 382, 254, 357, 384, 386, 387, 388, 389, 390, 391, - /* 760 */ 392, 393, 175, 395, 177, 357, 2, 237, 400, 316, - /* 770 */ 402, 258, 8, 9, 406, 407, 12, 13, 14, 15, - /* 780 */ 16, 316, 413, 316, 316, 198, 199, 39, 201, 202, - /* 790 */ 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, - /* 800 */ 213, 214, 215, 216, 217, 218, 219, 12, 13, 316, - /* 810 */ 357, 344, 336, 330, 331, 20, 349, 22, 354, 352, - /* 820 */ 344, 357, 357, 105, 357, 357, 359, 2, 33, 353, - /* 830 */ 35, 372, 202, 8, 9, 44, 45, 12, 13, 14, - /* 840 */ 15, 16, 124, 125, 126, 127, 128, 388, 20, 382, - /* 850 */ 357, 56, 316, 386, 387, 388, 389, 390, 391, 392, - /* 860 */ 393, 56, 395, 68, 12, 13, 352, 345, 368, 359, - /* 870 */ 370, 324, 20, 368, 22, 370, 417, 363, 19, 369, - /* 880 */ 316, 332, 335, 334, 317, 33, 157, 35, 93, 430, - /* 890 */ 431, 439, 33, 357, 435, 436, 333, 8, 9, 352, - /* 900 */ 95, 12, 13, 14, 15, 16, 47, 324, 56, 105, - /* 910 */ 115, 52, 53, 54, 55, 56, 372, 316, 335, 35, - /* 920 */ 68, 357, 8, 9, 129, 130, 12, 13, 14, 15, - /* 930 */ 16, 127, 388, 8, 9, 352, 93, 12, 13, 14, - /* 940 */ 15, 16, 1, 2, 337, 93, 103, 340, 324, 324, - /* 950 */ 61, 92, 68, 224, 95, 324, 35, 324, 357, 335, - /* 960 */ 335, 417, 324, 234, 42, 43, 335, 115, 335, 4, - /* 970 */ 175, 43, 177, 335, 430, 431, 352, 352, 316, 435, - /* 980 */ 436, 129, 130, 352, 236, 352, 428, 128, 235, 236, - /* 990 */ 352, 102, 316, 198, 199, 0, 201, 202, 203, 204, - /* 1000 */ 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, - /* 1010 */ 215, 216, 217, 218, 219, 324, 18, 22, 20, 357, - /* 1020 */ 161, 22, 94, 162, 163, 27, 335, 175, 30, 177, - /* 1030 */ 202, 316, 0, 357, 35, 94, 372, 316, 179, 316, - /* 1040 */ 181, 97, 316, 352, 100, 47, 157, 49, 344, 51, - /* 1050 */ 198, 199, 388, 201, 202, 203, 204, 205, 206, 207, - /* 1060 */ 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, - /* 1070 */ 218, 219, 357, 324, 97, 0, 162, 100, 357, 47, - /* 1080 */ 357, 417, 324, 357, 335, 97, 18, 43, 100, 0, - /* 1090 */ 92, 23, 0, 335, 430, 431, 61, 22, 177, 435, - /* 1100 */ 436, 352, 104, 0, 97, 37, 38, 100, 43, 41, - /* 1110 */ 352, 22, 43, 224, 225, 226, 227, 228, 229, 230, - /* 1120 */ 231, 232, 233, 234, 325, 57, 58, 59, 1, 2, - /* 1130 */ 132, 129, 130, 135, 136, 137, 138, 139, 140, 141, - /* 1140 */ 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, - /* 1150 */ 152, 424, 154, 155, 156, 43, 3, 325, 43, 94, - /* 1160 */ 43, 93, 323, 94, 43, 388, 63, 64, 65, 66, - /* 1170 */ 67, 43, 69, 70, 71, 72, 73, 74, 75, 76, - /* 1180 */ 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, - /* 1190 */ 87, 88, 89, 90, 417, 35, 324, 105, 43, 131, - /* 1200 */ 356, 385, 316, 238, 43, 46, 94, 335, 431, 94, - /* 1210 */ 13, 94, 435, 436, 432, 94, 124, 125, 126, 127, - /* 1220 */ 128, 0, 94, 415, 352, 408, 13, 418, 239, 43, - /* 1230 */ 344, 43, 35, 198, 380, 167, 168, 169, 352, 43, - /* 1240 */ 172, 47, 4, 357, 379, 359, 43, 94, 35, 94, - /* 1250 */ 43, 372, 93, 43, 173, 94, 188, 19, 42, 191, - /* 1260 */ 364, 193, 194, 195, 196, 197, 374, 388, 382, 48, - /* 1270 */ 20, 33, 386, 387, 388, 389, 390, 391, 392, 393, - /* 1280 */ 94, 395, 94, 372, 316, 47, 324, 324, 402, 51, - /* 1290 */ 94, 364, 406, 407, 56, 157, 417, 94, 362, 388, - /* 1300 */ 256, 94, 362, 417, 94, 237, 324, 324, 324, 430, - /* 1310 */ 431, 20, 344, 20, 435, 436, 430, 431, 318, 318, - /* 1320 */ 352, 435, 436, 378, 328, 357, 359, 359, 417, 20, - /* 1330 */ 92, 328, 371, 95, 20, 371, 328, 177, 328, 373, - /* 1340 */ 328, 430, 431, 328, 316, 324, 435, 436, 328, 318, - /* 1350 */ 382, 357, 378, 344, 386, 387, 388, 389, 390, 391, - /* 1360 */ 392, 393, 344, 395, 324, 318, 316, 344, 400, 344, - /* 1370 */ 402, 344, 344, 344, 406, 407, 359, 344, 344, 326, - /* 1380 */ 352, 344, 344, 344, 416, 357, 180, 359, 377, 326, - /* 1390 */ 324, 324, 244, 371, 344, 159, 326, 367, 357, 357, - /* 1400 */ 357, 365, 352, 357, 326, 357, 326, 357, 352, 359, - /* 1410 */ 382, 340, 367, 20, 386, 387, 388, 389, 390, 391, - /* 1420 */ 392, 393, 316, 395, 245, 367, 367, 423, 400, 357, - /* 1430 */ 402, 357, 382, 357, 406, 407, 386, 387, 388, 389, - /* 1440 */ 390, 391, 392, 393, 416, 395, 385, 12, 13, 423, - /* 1450 */ 344, 357, 357, 251, 166, 240, 252, 22, 352, 380, - /* 1460 */ 260, 253, 257, 357, 440, 359, 255, 417, 33, 236, - /* 1470 */ 35, 352, 20, 93, 422, 426, 425, 423, 421, 93, - /* 1480 */ 430, 431, 420, 316, 384, 435, 436, 405, 382, 434, - /* 1490 */ 348, 56, 386, 387, 388, 389, 390, 391, 392, 393, - /* 1500 */ 357, 395, 334, 68, 324, 316, 400, 326, 402, 36, - /* 1510 */ 433, 344, 406, 407, 319, 375, 318, 370, 327, 352, - /* 1520 */ 338, 338, 338, 314, 357, 0, 359, 182, 0, 0, - /* 1530 */ 42, 0, 35, 344, 0, 192, 35, 35, 35, 192, - /* 1540 */ 0, 352, 35, 35, 192, 0, 357, 192, 359, 382, - /* 1550 */ 115, 0, 35, 386, 387, 388, 389, 390, 391, 392, - /* 1560 */ 393, 0, 395, 22, 0, 35, 177, 175, 0, 402, - /* 1570 */ 0, 382, 171, 406, 407, 386, 387, 388, 389, 390, - /* 1580 */ 391, 392, 393, 170, 395, 0, 0, 0, 46, 316, - /* 1590 */ 0, 402, 0, 0, 42, 406, 407, 0, 0, 153, - /* 1600 */ 0, 0, 0, 0, 0, 148, 35, 0, 148, 0, - /* 1610 */ 175, 0, 177, 0, 0, 0, 0, 344, 0, 0, - /* 1620 */ 0, 0, 0, 0, 0, 352, 0, 0, 0, 0, - /* 1630 */ 357, 42, 359, 198, 199, 0, 0, 0, 0, 22, - /* 1640 */ 0, 0, 0, 0, 316, 210, 211, 212, 213, 214, - /* 1650 */ 215, 216, 0, 0, 0, 382, 46, 0, 14, 386, - /* 1660 */ 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, - /* 1670 */ 397, 39, 344, 42, 40, 14, 43, 0, 39, 0, - /* 1680 */ 352, 56, 0, 0, 166, 357, 56, 359, 39, 0, - /* 1690 */ 0, 46, 0, 0, 35, 47, 0, 316, 35, 0, - /* 1700 */ 35, 39, 47, 39, 0, 47, 39, 35, 39, 62, - /* 1710 */ 382, 0, 0, 47, 386, 387, 388, 389, 390, 391, - /* 1720 */ 392, 393, 0, 395, 0, 344, 35, 22, 0, 35, - /* 1730 */ 35, 43, 35, 352, 0, 35, 22, 0, 357, 22, - /* 1740 */ 359, 43, 22, 0, 35, 22, 0, 0, 35, 316, - /* 1750 */ 49, 100, 102, 35, 0, 22, 20, 0, 0, 178, - /* 1760 */ 35, 316, 22, 382, 159, 437, 438, 386, 387, 388, - /* 1770 */ 389, 390, 391, 392, 393, 316, 395, 344, 0, 0, - /* 1780 */ 3, 0, 0, 402, 0, 352, 35, 0, 407, 344, - /* 1790 */ 357, 0, 359, 187, 349, 39, 93, 352, 46, 220, - /* 1800 */ 222, 94, 357, 344, 359, 43, 43, 241, 220, 93, - /* 1810 */ 46, 352, 93, 103, 158, 382, 357, 43, 359, 386, - /* 1820 */ 387, 388, 389, 390, 391, 392, 393, 382, 395, 316, - /* 1830 */ 397, 386, 387, 388, 389, 390, 391, 392, 393, 164, - /* 1840 */ 395, 382, 162, 316, 160, 386, 387, 388, 389, 390, - /* 1850 */ 391, 392, 393, 93, 395, 94, 43, 344, 93, 93, - /* 1860 */ 46, 43, 94, 94, 162, 352, 93, 3, 162, 94, - /* 1870 */ 357, 344, 359, 93, 43, 35, 349, 94, 93, 352, - /* 1880 */ 94, 93, 93, 35, 357, 35, 359, 35, 429, 94, - /* 1890 */ 35, 35, 94, 316, 94, 382, 43, 46, 2, 386, - /* 1900 */ 387, 388, 389, 390, 391, 392, 393, 46, 395, 382, - /* 1910 */ 22, 241, 316, 386, 387, 388, 389, 390, 391, 392, - /* 1920 */ 393, 344, 395, 46, 198, 93, 349, 241, 94, 352, - /* 1930 */ 93, 46, 94, 94, 357, 93, 359, 93, 93, 46, - /* 1940 */ 344, 94, 22, 235, 200, 104, 35, 93, 352, 35, - /* 1950 */ 93, 438, 94, 357, 94, 359, 35, 94, 93, 382, - /* 1960 */ 35, 93, 316, 386, 387, 388, 389, 390, 391, 392, - /* 1970 */ 393, 35, 395, 94, 93, 35, 316, 94, 382, 93, - /* 1980 */ 22, 35, 386, 387, 388, 389, 390, 391, 392, 393, - /* 1990 */ 344, 395, 117, 117, 105, 117, 93, 117, 352, 93, - /* 2000 */ 93, 22, 43, 357, 344, 359, 62, 35, 61, 35, - /* 2010 */ 35, 35, 352, 35, 91, 35, 35, 357, 35, 359, - /* 2020 */ 35, 35, 68, 35, 35, 43, 22, 35, 382, 22, - /* 2030 */ 35, 316, 386, 387, 388, 389, 390, 391, 392, 393, - /* 2040 */ 35, 395, 382, 35, 35, 68, 386, 387, 388, 389, - /* 2050 */ 390, 391, 392, 393, 35, 395, 35, 316, 35, 344, - /* 2060 */ 35, 22, 35, 0, 35, 39, 0, 352, 35, 47, - /* 2070 */ 39, 47, 357, 0, 359, 35, 39, 47, 0, 35, - /* 2080 */ 39, 47, 0, 316, 35, 344, 35, 0, 20, 22, - /* 2090 */ 21, 441, 22, 352, 22, 21, 441, 382, 357, 441, - /* 2100 */ 359, 386, 387, 388, 389, 390, 391, 392, 393, 316, - /* 2110 */ 395, 344, 441, 441, 441, 441, 441, 441, 441, 352, - /* 2120 */ 441, 441, 441, 382, 357, 441, 359, 386, 387, 388, - /* 2130 */ 389, 390, 391, 392, 393, 316, 395, 344, 441, 441, - /* 2140 */ 441, 441, 441, 441, 441, 352, 441, 441, 441, 382, - /* 2150 */ 357, 441, 359, 386, 387, 388, 389, 390, 391, 392, - /* 2160 */ 393, 441, 395, 344, 441, 441, 441, 441, 441, 441, - /* 2170 */ 441, 352, 441, 441, 441, 382, 357, 441, 359, 386, - /* 2180 */ 387, 388, 389, 390, 391, 392, 393, 316, 395, 441, - /* 2190 */ 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, - /* 2200 */ 441, 382, 441, 316, 441, 386, 387, 388, 389, 390, - /* 2210 */ 391, 392, 393, 441, 395, 344, 441, 441, 441, 441, - /* 2220 */ 441, 441, 441, 352, 441, 441, 441, 441, 357, 441, - /* 2230 */ 359, 344, 441, 441, 441, 441, 441, 441, 441, 352, - /* 2240 */ 441, 441, 441, 441, 357, 441, 359, 441, 441, 441, - /* 2250 */ 441, 441, 441, 382, 441, 441, 441, 386, 387, 388, - /* 2260 */ 389, 390, 391, 392, 393, 316, 395, 441, 441, 382, - /* 2270 */ 441, 441, 441, 386, 387, 388, 389, 390, 391, 392, - /* 2280 */ 393, 316, 395, 441, 441, 441, 441, 441, 441, 441, - /* 2290 */ 441, 441, 441, 344, 441, 441, 441, 441, 441, 441, - /* 2300 */ 441, 352, 441, 441, 441, 441, 357, 441, 359, 344, - /* 2310 */ 441, 441, 441, 441, 441, 441, 441, 352, 441, 441, - /* 2320 */ 441, 441, 357, 441, 359, 441, 441, 441, 441, 441, - /* 2330 */ 441, 382, 441, 441, 316, 386, 387, 388, 389, 390, - /* 2340 */ 391, 392, 393, 441, 395, 441, 441, 382, 316, 441, - /* 2350 */ 441, 386, 387, 388, 389, 390, 391, 392, 393, 441, - /* 2360 */ 395, 441, 344, 441, 441, 441, 441, 441, 441, 441, - /* 2370 */ 352, 441, 441, 441, 441, 357, 344, 359, 441, 441, - /* 2380 */ 441, 441, 441, 441, 352, 441, 441, 441, 441, 357, - /* 2390 */ 441, 359, 441, 441, 441, 441, 441, 441, 441, 441, - /* 2400 */ 382, 441, 316, 441, 386, 387, 388, 389, 390, 391, - /* 2410 */ 392, 393, 441, 395, 382, 441, 441, 441, 386, 387, - /* 2420 */ 388, 389, 390, 391, 392, 393, 316, 395, 441, 441, - /* 2430 */ 344, 441, 441, 441, 441, 441, 441, 441, 352, 441, - /* 2440 */ 441, 441, 441, 357, 441, 359, 441, 441, 441, 441, - /* 2450 */ 441, 441, 316, 441, 344, 441, 441, 441, 441, 441, - /* 2460 */ 441, 441, 352, 441, 441, 441, 441, 357, 382, 359, - /* 2470 */ 441, 441, 386, 387, 388, 389, 390, 391, 392, 393, - /* 2480 */ 344, 395, 441, 441, 441, 441, 441, 441, 352, 441, - /* 2490 */ 441, 441, 382, 357, 441, 359, 386, 387, 388, 389, - /* 2500 */ 390, 391, 392, 393, 316, 395, 441, 441, 441, 441, - /* 2510 */ 441, 441, 441, 441, 441, 441, 441, 441, 382, 441, - /* 2520 */ 316, 441, 386, 387, 388, 389, 390, 391, 392, 393, - /* 2530 */ 441, 395, 344, 441, 441, 441, 441, 441, 441, 441, - /* 2540 */ 352, 441, 441, 441, 441, 357, 441, 359, 344, 441, - /* 2550 */ 441, 441, 441, 441, 441, 441, 352, 441, 441, 441, - /* 2560 */ 441, 357, 441, 359, 441, 441, 441, 441, 441, 441, - /* 2570 */ 382, 441, 441, 441, 386, 387, 388, 389, 390, 391, - /* 2580 */ 392, 393, 316, 395, 441, 441, 382, 441, 441, 441, - /* 2590 */ 386, 387, 388, 389, 390, 391, 392, 393, 441, 395, - /* 2600 */ 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, - /* 2610 */ 344, 441, 441, 441, 441, 441, 441, 441, 352, 441, - /* 2620 */ 441, 441, 441, 357, 441, 359, 441, 441, 441, 441, - /* 2630 */ 441, 441, 441, 441, 441, 441, 441, 441, 441, 441, - /* 2640 */ 441, 441, 441, 441, 441, 441, 441, 441, 382, 441, - /* 2650 */ 441, 441, 386, 387, 388, 389, 390, 391, 392, 393, - /* 2660 */ 441, 395, + /* 270 */ 213, 214, 215, 216, 217, 218, 219, 220, 221, 12, + /* 280 */ 13, 106, 93, 330, 349, 96, 94, 20, 318, 22, + /* 290 */ 323, 200, 239, 326, 364, 360, 184, 106, 326, 187, + /* 300 */ 33, 239, 35, 128, 21, 126, 353, 24, 25, 26, + /* 310 */ 27, 28, 29, 30, 31, 32, 125, 126, 127, 128, + /* 320 */ 129, 386, 387, 56, 239, 239, 239, 355, 61, 392, + /* 330 */ 360, 318, 56, 20, 399, 68, 12, 13, 347, 248, + /* 340 */ 249, 250, 251, 252, 20, 354, 22, 326, 159, 160, + /* 350 */ 14, 162, 20, 318, 363, 166, 20, 33, 421, 35, + /* 360 */ 347, 94, 183, 184, 392, 326, 187, 175, 355, 177, + /* 370 */ 94, 182, 96, 360, 437, 362, 355, 338, 441, 442, + /* 380 */ 56, 171, 238, 116, 345, 61, 414, 415, 416, 43, + /* 390 */ 418, 0, 68, 14, 355, 360, 383, 130, 131, 20, + /* 400 */ 387, 191, 192, 22, 391, 392, 393, 394, 395, 396, + /* 410 */ 397, 318, 399, 392, 60, 161, 35, 404, 94, 406, + /* 420 */ 105, 8, 9, 410, 411, 12, 13, 14, 15, 16, + /* 430 */ 204, 239, 223, 20, 225, 414, 415, 416, 78, 418, + /* 440 */ 116, 95, 421, 176, 431, 178, 0, 340, 339, 68, + /* 450 */ 343, 60, 339, 360, 130, 131, 347, 436, 437, 0, + /* 460 */ 347, 318, 441, 442, 403, 356, 405, 200, 201, 356, + /* 470 */ 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, + /* 480 */ 213, 214, 215, 216, 217, 218, 219, 220, 221, 125, + /* 490 */ 223, 14, 15, 16, 134, 135, 20, 116, 244, 245, + /* 500 */ 176, 37, 178, 360, 107, 108, 109, 110, 111, 112, + /* 510 */ 113, 114, 115, 116, 117, 239, 119, 120, 121, 122, + /* 520 */ 123, 124, 35, 0, 200, 201, 318, 203, 204, 205, + /* 530 */ 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, + /* 540 */ 216, 217, 218, 219, 220, 221, 12, 13, 326, 185, + /* 550 */ 186, 392, 106, 223, 20, 68, 22, 176, 68, 178, + /* 560 */ 338, 97, 20, 99, 100, 106, 102, 33, 360, 35, + /* 570 */ 106, 125, 126, 127, 128, 129, 163, 355, 21, 318, + /* 580 */ 421, 200, 201, 204, 125, 126, 127, 128, 129, 339, + /* 590 */ 56, 34, 128, 36, 331, 20, 437, 347, 318, 336, + /* 600 */ 441, 442, 68, 12, 13, 14, 356, 326, 347, 0, + /* 610 */ 371, 20, 373, 22, 68, 328, 355, 333, 334, 338, + /* 620 */ 318, 360, 326, 362, 33, 347, 35, 347, 94, 342, + /* 630 */ 333, 334, 354, 158, 338, 355, 355, 350, 318, 318, + /* 640 */ 360, 363, 362, 402, 383, 318, 405, 56, 387, 326, + /* 650 */ 116, 355, 391, 392, 393, 394, 395, 396, 397, 68, + /* 660 */ 399, 338, 360, 383, 130, 131, 318, 387, 345, 60, + /* 670 */ 392, 391, 392, 393, 394, 395, 396, 397, 355, 399, + /* 680 */ 360, 360, 421, 318, 404, 94, 406, 360, 8, 9, + /* 690 */ 410, 411, 12, 13, 14, 15, 16, 436, 437, 421, + /* 700 */ 420, 226, 441, 442, 326, 163, 20, 116, 360, 347, + /* 710 */ 176, 236, 178, 43, 436, 437, 338, 2, 356, 441, + /* 720 */ 442, 130, 131, 8, 9, 360, 4, 12, 13, 14, + /* 730 */ 15, 16, 318, 355, 200, 201, 318, 203, 204, 205, + /* 740 */ 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, + /* 750 */ 216, 217, 218, 219, 220, 221, 326, 8, 9, 389, + /* 760 */ 315, 12, 13, 14, 15, 16, 379, 176, 338, 178, + /* 770 */ 371, 328, 373, 239, 360, 95, 8, 9, 360, 204, + /* 780 */ 12, 13, 14, 15, 16, 355, 318, 417, 318, 389, + /* 790 */ 318, 200, 201, 350, 203, 204, 205, 206, 207, 208, + /* 800 */ 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, + /* 810 */ 219, 220, 221, 12, 13, 355, 4, 417, 44, 45, + /* 820 */ 375, 20, 355, 22, 237, 238, 366, 326, 360, 326, + /* 830 */ 360, 19, 360, 366, 33, 326, 35, 392, 326, 338, + /* 840 */ 3, 338, 362, 326, 95, 33, 318, 338, 326, 163, + /* 850 */ 338, 357, 372, 35, 360, 338, 355, 56, 355, 47, + /* 860 */ 338, 318, 348, 51, 355, 318, 421, 355, 56, 68, + /* 870 */ 12, 13, 355, 347, 319, 347, 357, 355, 20, 360, + /* 880 */ 22, 436, 437, 355, 326, 43, 441, 442, 360, 363, + /* 890 */ 362, 33, 3, 35, 347, 94, 338, 335, 0, 337, + /* 900 */ 326, 348, 355, 360, 326, 93, 326, 360, 96, 362, + /* 910 */ 43, 383, 338, 355, 56, 387, 338, 116, 338, 391, + /* 920 */ 392, 393, 394, 395, 396, 397, 68, 399, 258, 355, + /* 930 */ 383, 130, 131, 355, 387, 355, 168, 95, 391, 392, + /* 940 */ 393, 394, 395, 396, 397, 47, 399, 64, 65, 42, + /* 950 */ 43, 404, 94, 406, 71, 22, 340, 410, 411, 343, + /* 960 */ 432, 433, 240, 0, 336, 82, 83, 420, 35, 326, + /* 970 */ 98, 88, 98, 101, 116, 101, 61, 176, 375, 178, + /* 980 */ 375, 338, 163, 164, 95, 22, 8, 9, 130, 131, + /* 990 */ 12, 13, 14, 15, 16, 392, 178, 392, 355, 130, + /* 1000 */ 131, 200, 201, 348, 203, 204, 205, 206, 207, 208, + /* 1010 */ 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, + /* 1020 */ 219, 220, 221, 18, 421, 20, 421, 0, 0, 261, + /* 1030 */ 98, 326, 27, 101, 176, 30, 178, 1, 2, 436, + /* 1040 */ 437, 436, 437, 338, 441, 442, 441, 442, 98, 22, + /* 1050 */ 22, 101, 47, 43, 49, 56, 51, 348, 200, 201, + /* 1060 */ 355, 203, 204, 205, 206, 207, 208, 209, 210, 211, + /* 1070 */ 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, + /* 1080 */ 8, 9, 43, 43, 12, 13, 14, 15, 16, 18, + /* 1090 */ 326, 326, 13, 256, 23, 96, 94, 390, 93, 348, + /* 1100 */ 13, 348, 338, 338, 35, 95, 104, 43, 37, 38, + /* 1110 */ 105, 0, 41, 445, 35, 200, 43, 348, 43, 355, + /* 1120 */ 355, 43, 35, 46, 434, 327, 428, 260, 57, 58, + /* 1130 */ 59, 347, 327, 325, 95, 95, 359, 390, 133, 35, + /* 1140 */ 326, 136, 137, 138, 139, 140, 141, 142, 143, 144, + /* 1150 */ 145, 146, 147, 148, 149, 150, 151, 152, 153, 95, + /* 1160 */ 155, 156, 157, 43, 43, 94, 438, 43, 95, 355, + /* 1170 */ 95, 94, 68, 95, 63, 64, 65, 66, 67, 43, + /* 1180 */ 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, + /* 1190 */ 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, + /* 1200 */ 89, 90, 43, 132, 8, 9, 392, 0, 12, 13, + /* 1210 */ 14, 15, 16, 43, 318, 95, 95, 422, 419, 95, + /* 1220 */ 43, 412, 241, 385, 384, 47, 174, 377, 414, 415, + /* 1230 */ 416, 95, 418, 42, 20, 163, 326, 367, 326, 168, + /* 1240 */ 169, 170, 367, 347, 173, 365, 158, 178, 92, 332, + /* 1250 */ 365, 355, 326, 326, 95, 48, 360, 61, 362, 375, + /* 1260 */ 326, 190, 20, 320, 193, 95, 195, 196, 197, 198, + /* 1270 */ 199, 320, 95, 20, 381, 330, 392, 330, 362, 383, + /* 1280 */ 20, 20, 374, 387, 330, 376, 318, 391, 392, 393, + /* 1290 */ 394, 395, 396, 397, 374, 399, 330, 330, 402, 103, + /* 1300 */ 404, 405, 406, 330, 330, 421, 410, 411, 318, 326, + /* 1310 */ 239, 320, 347, 326, 320, 347, 347, 347, 347, 347, + /* 1320 */ 436, 437, 347, 355, 347, 441, 442, 0, 360, 347, + /* 1330 */ 362, 347, 347, 347, 189, 382, 360, 347, 381, 328, + /* 1340 */ 380, 181, 362, 328, 326, 355, 326, 328, 246, 360, + /* 1350 */ 360, 383, 362, 374, 158, 387, 360, 360, 370, 391, + /* 1360 */ 392, 393, 394, 395, 396, 397, 360, 399, 370, 360, + /* 1370 */ 160, 368, 404, 383, 406, 318, 328, 387, 410, 411, + /* 1380 */ 343, 391, 392, 393, 394, 395, 396, 397, 420, 399, + /* 1390 */ 328, 64, 65, 355, 404, 20, 406, 390, 71, 247, + /* 1400 */ 410, 411, 390, 360, 347, 370, 360, 360, 253, 82, + /* 1410 */ 83, 360, 355, 360, 370, 88, 375, 360, 167, 362, + /* 1420 */ 427, 429, 226, 227, 228, 229, 230, 231, 232, 233, + /* 1430 */ 234, 235, 236, 392, 430, 427, 255, 254, 262, 426, + /* 1440 */ 383, 427, 425, 242, 387, 424, 385, 318, 391, 392, + /* 1450 */ 393, 394, 395, 396, 397, 439, 399, 259, 238, 257, + /* 1460 */ 355, 404, 421, 406, 440, 20, 94, 410, 411, 446, + /* 1470 */ 389, 19, 409, 94, 351, 360, 347, 436, 437, 337, + /* 1480 */ 326, 328, 441, 442, 355, 33, 36, 321, 320, 360, + /* 1490 */ 378, 362, 373, 329, 0, 316, 0, 183, 341, 47, + /* 1500 */ 0, 0, 341, 341, 52, 53, 54, 55, 56, 42, + /* 1510 */ 0, 35, 383, 194, 35, 35, 387, 35, 194, 0, + /* 1520 */ 391, 392, 393, 394, 395, 396, 397, 35, 399, 318, + /* 1530 */ 35, 194, 0, 404, 194, 406, 12, 13, 35, 410, + /* 1540 */ 411, 0, 0, 0, 22, 93, 22, 35, 96, 178, + /* 1550 */ 176, 0, 0, 172, 171, 0, 0, 33, 347, 35, + /* 1560 */ 46, 0, 0, 0, 0, 42, 355, 0, 0, 375, + /* 1570 */ 154, 360, 0, 362, 0, 0, 0, 0, 149, 35, + /* 1580 */ 56, 129, 0, 318, 149, 0, 392, 0, 0, 0, + /* 1590 */ 0, 0, 68, 22, 383, 0, 0, 0, 387, 0, + /* 1600 */ 0, 0, 391, 392, 393, 394, 395, 396, 397, 318, + /* 1610 */ 399, 0, 347, 0, 162, 421, 0, 406, 0, 0, + /* 1620 */ 355, 410, 411, 42, 0, 360, 0, 362, 0, 0, + /* 1630 */ 436, 437, 180, 0, 182, 441, 442, 0, 347, 0, + /* 1640 */ 116, 35, 0, 0, 0, 0, 355, 42, 383, 14, + /* 1650 */ 56, 360, 387, 362, 56, 43, 391, 392, 393, 394, + /* 1660 */ 395, 396, 397, 46, 399, 14, 39, 46, 0, 0, + /* 1670 */ 40, 406, 0, 39, 383, 410, 411, 0, 387, 318, + /* 1680 */ 39, 0, 391, 392, 393, 394, 395, 396, 397, 398, + /* 1690 */ 399, 400, 401, 167, 0, 0, 0, 0, 62, 35, + /* 1700 */ 176, 47, 178, 0, 39, 35, 47, 0, 347, 35, + /* 1710 */ 39, 0, 39, 47, 35, 39, 355, 0, 0, 0, + /* 1720 */ 0, 360, 47, 362, 200, 201, 103, 35, 22, 0, + /* 1730 */ 43, 43, 101, 35, 35, 35, 212, 213, 214, 215, + /* 1740 */ 216, 217, 218, 318, 383, 35, 22, 0, 387, 22, + /* 1750 */ 0, 49, 391, 392, 393, 394, 395, 396, 397, 22, + /* 1760 */ 399, 0, 22, 35, 0, 35, 0, 35, 0, 318, + /* 1770 */ 22, 20, 347, 95, 0, 0, 94, 163, 35, 22, + /* 1780 */ 355, 179, 160, 163, 0, 360, 318, 362, 0, 3, + /* 1790 */ 165, 0, 0, 0, 35, 163, 95, 188, 347, 94, + /* 1800 */ 0, 161, 94, 352, 443, 444, 355, 94, 383, 0, + /* 1810 */ 39, 360, 387, 362, 159, 347, 391, 392, 393, 394, + /* 1820 */ 395, 396, 397, 355, 399, 94, 104, 46, 360, 222, + /* 1830 */ 362, 406, 43, 43, 383, 243, 411, 222, 387, 318, + /* 1840 */ 94, 43, 391, 392, 393, 394, 395, 396, 397, 95, + /* 1850 */ 399, 383, 94, 43, 94, 387, 318, 95, 95, 391, + /* 1860 */ 392, 393, 394, 395, 396, 397, 94, 399, 347, 401, + /* 1870 */ 224, 95, 94, 94, 46, 95, 355, 46, 43, 94, + /* 1880 */ 3, 360, 95, 362, 43, 347, 35, 35, 35, 95, + /* 1890 */ 243, 243, 35, 355, 35, 35, 95, 95, 360, 237, + /* 1900 */ 362, 46, 46, 22, 383, 43, 94, 46, 387, 200, + /* 1910 */ 2, 318, 391, 392, 393, 394, 395, 396, 397, 95, + /* 1920 */ 399, 383, 95, 94, 94, 387, 46, 95, 318, 391, + /* 1930 */ 392, 393, 394, 395, 396, 397, 94, 399, 94, 46, + /* 1940 */ 347, 95, 22, 94, 202, 105, 35, 35, 355, 95, + /* 1950 */ 35, 35, 94, 360, 433, 362, 35, 347, 95, 94, + /* 1960 */ 35, 95, 352, 94, 94, 355, 95, 95, 94, 22, + /* 1970 */ 360, 35, 362, 435, 106, 43, 383, 94, 94, 318, + /* 1980 */ 387, 94, 118, 22, 391, 392, 393, 394, 395, 396, + /* 1990 */ 397, 118, 399, 383, 118, 62, 118, 387, 318, 61, + /* 2000 */ 35, 391, 392, 393, 394, 395, 396, 397, 347, 399, + /* 2010 */ 35, 35, 35, 352, 35, 35, 355, 35, 35, 35, + /* 2020 */ 35, 360, 91, 362, 68, 35, 35, 347, 22, 43, + /* 2030 */ 35, 22, 35, 35, 35, 355, 68, 444, 35, 35, + /* 2040 */ 360, 22, 362, 35, 383, 35, 35, 35, 387, 0, + /* 2050 */ 35, 0, 391, 392, 393, 394, 395, 396, 397, 318, + /* 2060 */ 399, 39, 35, 383, 47, 47, 0, 387, 39, 35, + /* 2070 */ 47, 391, 392, 393, 394, 395, 396, 397, 39, 399, + /* 2080 */ 0, 35, 47, 39, 0, 35, 0, 35, 347, 22, + /* 2090 */ 21, 447, 22, 22, 21, 20, 355, 447, 447, 447, + /* 2100 */ 447, 360, 447, 362, 447, 447, 447, 447, 447, 447, + /* 2110 */ 447, 447, 447, 447, 447, 447, 447, 318, 447, 447, + /* 2120 */ 447, 447, 447, 447, 383, 447, 447, 447, 387, 447, + /* 2130 */ 447, 447, 391, 392, 393, 394, 395, 396, 397, 318, + /* 2140 */ 399, 447, 447, 447, 447, 447, 347, 447, 447, 447, + /* 2150 */ 447, 447, 447, 447, 355, 447, 447, 447, 447, 360, + /* 2160 */ 447, 362, 447, 447, 447, 447, 447, 447, 347, 447, + /* 2170 */ 447, 447, 447, 447, 447, 447, 355, 447, 447, 447, + /* 2180 */ 447, 360, 383, 362, 447, 447, 387, 447, 447, 447, + /* 2190 */ 391, 392, 393, 394, 395, 396, 397, 447, 399, 447, + /* 2200 */ 318, 447, 447, 447, 383, 447, 447, 447, 387, 447, + /* 2210 */ 447, 447, 391, 392, 393, 394, 395, 396, 397, 318, + /* 2220 */ 399, 447, 447, 447, 447, 447, 447, 447, 447, 347, + /* 2230 */ 447, 447, 447, 447, 447, 447, 447, 355, 447, 447, + /* 2240 */ 447, 447, 360, 447, 362, 447, 447, 447, 347, 447, + /* 2250 */ 447, 447, 447, 447, 447, 447, 355, 447, 447, 447, + /* 2260 */ 447, 360, 447, 362, 447, 383, 447, 447, 447, 387, + /* 2270 */ 447, 447, 318, 391, 392, 393, 394, 395, 396, 397, + /* 2280 */ 447, 399, 447, 447, 383, 447, 447, 447, 387, 318, + /* 2290 */ 447, 447, 391, 392, 393, 394, 395, 396, 397, 447, + /* 2300 */ 399, 347, 447, 447, 447, 447, 447, 447, 447, 355, + /* 2310 */ 447, 447, 447, 447, 360, 447, 362, 447, 347, 447, + /* 2320 */ 447, 447, 447, 447, 447, 447, 355, 447, 447, 447, + /* 2330 */ 447, 360, 318, 362, 447, 447, 447, 383, 447, 447, + /* 2340 */ 447, 387, 447, 447, 447, 391, 392, 393, 394, 395, + /* 2350 */ 396, 397, 447, 399, 383, 447, 318, 447, 387, 447, + /* 2360 */ 447, 347, 391, 392, 393, 394, 395, 396, 397, 355, + /* 2370 */ 399, 447, 447, 447, 360, 318, 362, 447, 447, 447, + /* 2380 */ 447, 447, 447, 447, 447, 347, 447, 447, 447, 447, + /* 2390 */ 447, 447, 447, 355, 447, 447, 447, 383, 360, 447, + /* 2400 */ 362, 387, 447, 447, 347, 391, 392, 393, 394, 395, + /* 2410 */ 396, 397, 355, 399, 447, 447, 447, 360, 447, 362, + /* 2420 */ 447, 383, 447, 447, 447, 387, 447, 447, 447, 391, + /* 2430 */ 392, 393, 394, 395, 396, 397, 318, 399, 447, 447, + /* 2440 */ 383, 447, 447, 447, 387, 447, 447, 447, 391, 392, + /* 2450 */ 393, 394, 395, 396, 397, 318, 399, 447, 447, 447, + /* 2460 */ 447, 447, 447, 447, 447, 347, 447, 447, 447, 447, + /* 2470 */ 447, 447, 447, 355, 447, 447, 447, 447, 360, 447, + /* 2480 */ 362, 447, 447, 447, 347, 447, 447, 447, 447, 447, + /* 2490 */ 447, 447, 355, 447, 447, 447, 447, 360, 447, 362, + /* 2500 */ 447, 383, 447, 447, 447, 387, 447, 447, 447, 391, + /* 2510 */ 392, 393, 394, 395, 396, 397, 447, 399, 447, 318, + /* 2520 */ 383, 447, 447, 447, 387, 447, 447, 447, 391, 392, + /* 2530 */ 393, 394, 395, 396, 397, 447, 399, 318, 447, 447, + /* 2540 */ 447, 447, 447, 447, 447, 447, 447, 447, 347, 447, + /* 2550 */ 447, 447, 447, 447, 447, 447, 355, 447, 447, 447, + /* 2560 */ 447, 360, 447, 362, 447, 447, 347, 447, 447, 447, + /* 2570 */ 447, 447, 447, 447, 355, 447, 447, 447, 447, 360, + /* 2580 */ 318, 362, 447, 447, 383, 447, 447, 447, 387, 447, + /* 2590 */ 447, 447, 391, 392, 393, 394, 395, 396, 397, 447, + /* 2600 */ 399, 447, 383, 447, 447, 447, 387, 447, 447, 347, + /* 2610 */ 391, 392, 393, 394, 395, 396, 397, 355, 399, 447, + /* 2620 */ 447, 447, 360, 447, 362, 447, 447, 447, 447, 447, + /* 2630 */ 447, 447, 447, 318, 447, 447, 447, 447, 447, 447, + /* 2640 */ 447, 447, 447, 447, 447, 383, 447, 447, 447, 387, + /* 2650 */ 318, 447, 447, 391, 392, 393, 394, 395, 396, 397, + /* 2660 */ 447, 399, 347, 447, 447, 447, 447, 447, 447, 447, + /* 2670 */ 355, 447, 447, 447, 447, 360, 447, 362, 447, 347, + /* 2680 */ 447, 447, 447, 447, 447, 447, 447, 355, 447, 447, + /* 2690 */ 447, 447, 360, 318, 362, 447, 447, 447, 383, 447, + /* 2700 */ 447, 447, 387, 447, 447, 447, 391, 392, 393, 394, + /* 2710 */ 395, 396, 397, 447, 399, 383, 447, 318, 447, 387, + /* 2720 */ 447, 447, 347, 391, 392, 393, 394, 395, 396, 397, + /* 2730 */ 355, 399, 447, 447, 447, 360, 318, 362, 447, 447, + /* 2740 */ 447, 447, 447, 447, 447, 447, 347, 447, 447, 447, + /* 2750 */ 447, 447, 447, 447, 355, 447, 447, 447, 383, 360, + /* 2760 */ 447, 362, 387, 447, 447, 347, 391, 392, 393, 394, + /* 2770 */ 395, 396, 397, 355, 399, 447, 447, 447, 360, 447, + /* 2780 */ 362, 447, 383, 447, 447, 447, 387, 447, 447, 447, + /* 2790 */ 391, 392, 393, 394, 395, 396, 397, 447, 399, 447, + /* 2800 */ 447, 383, 447, 447, 447, 387, 447, 447, 447, 391, + /* 2810 */ 392, 393, 394, 395, 396, 397, 447, 399, }; -#define YY_SHIFT_COUNT (678) +#define YY_SHIFT_COUNT (688) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (2087) +#define YY_SHIFT_MAX (2086) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 1068, 0, 57, 265, 57, 322, 322, 322, 530, 322, - /* 10 */ 322, 322, 322, 322, 587, 795, 852, 795, 795, 795, - /* 20 */ 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, - /* 30 */ 795, 795, 795, 795, 795, 795, 795, 795, 795, 795, - /* 40 */ 795, 795, 795, 795, 16, 266, 39, 208, 269, 14, - /* 50 */ 59, 14, 39, 39, 1435, 1435, 14, 1435, 1435, 62, - /* 60 */ 14, 17, 17, 13, 13, 268, 17, 17, 17, 17, - /* 70 */ 17, 17, 17, 17, 17, 17, 68, 17, 17, 17, - /* 80 */ 171, 17, 17, 442, 17, 17, 442, 502, 17, 442, - /* 90 */ 442, 442, 17, 163, 998, 889, 889, 429, 524, 524, - /* 100 */ 524, 524, 524, 524, 524, 524, 524, 524, 524, 524, - /* 110 */ 524, 524, 524, 524, 524, 524, 524, 470, 621, 12, - /* 120 */ 268, 58, 58, 327, 328, 438, 101, 101, 9, 9, - /* 130 */ 9, 328, 574, 574, 171, 2, 2, 63, 442, 442, - /* 140 */ 381, 381, 233, 440, 196, 196, 196, 196, 196, 196, - /* 150 */ 196, 859, 402, 337, 34, 43, 552, 179, 427, 630, - /* 160 */ 232, 791, 804, 334, 753, 748, 497, 753, 922, 965, - /* 170 */ 828, 989, 1194, 1081, 1216, 1250, 1250, 1216, 1138, 1138, - /* 180 */ 1250, 1250, 1250, 1291, 1291, 1293, 68, 171, 68, 1309, - /* 190 */ 1314, 68, 1309, 68, 68, 68, 1250, 68, 1291, 442, - /* 200 */ 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, - /* 210 */ 1250, 1291, 381, 1293, 163, 1206, 171, 163, 1250, 1250, - /* 220 */ 1309, 163, 1148, 381, 381, 381, 381, 1148, 381, 1236, - /* 230 */ 163, 233, 163, 574, 1393, 381, 1179, 1148, 381, 381, - /* 240 */ 1179, 1148, 381, 381, 442, 1202, 1288, 1179, 1208, 1204, - /* 250 */ 1215, 989, 1200, 1205, 1211, 1233, 574, 1452, 1380, 1386, - /* 260 */ 381, 440, 1250, 163, 1473, 1291, 2662, 2662, 2662, 2662, - /* 270 */ 2662, 2662, 2662, 1103, 529, 485, 1238, 234, 396, 479, - /* 280 */ 764, 825, 914, 718, 925, 925, 925, 925, 925, 925, - /* 290 */ 925, 925, 925, 1092, 488, 11, 11, 6, 205, 203, - /* 300 */ 584, 242, 637, 421, 699, 941, 729, 699, 699, 699, - /* 310 */ 928, 1032, 999, 944, 977, 988, 1007, 995, 1075, 1089, - /* 320 */ 805, 861, 1065, 1069, 1112, 1115, 1117, 1121, 1128, 1002, - /* 330 */ 1044, 513, 1127, 1155, 921, 1160, 1035, 1161, 1153, 1159, - /* 340 */ 1186, 1188, 1196, 1203, 1207, 1210, 843, 1197, 1213, 884, - /* 350 */ 1221, 1525, 1534, 1345, 1528, 1529, 1488, 1531, 1497, 1343, - /* 360 */ 1501, 1502, 1503, 1347, 1540, 1507, 1508, 1352, 1545, 1355, - /* 370 */ 1551, 1517, 1561, 1541, 1564, 1530, 1389, 1392, 1568, 1570, - /* 380 */ 1401, 1413, 1585, 1586, 1542, 1587, 1590, 1592, 1552, 1593, - /* 390 */ 1597, 1598, 1446, 1600, 1601, 1602, 1603, 1604, 1457, 1571, - /* 400 */ 1607, 1460, 1609, 1611, 1613, 1614, 1615, 1616, 1618, 1619, - /* 410 */ 1620, 1621, 1622, 1623, 1624, 1626, 1589, 1627, 1628, 1629, - /* 420 */ 1635, 1636, 1637, 1617, 1638, 1640, 1641, 1642, 1643, 1625, - /* 430 */ 1652, 1630, 1653, 1654, 1631, 1632, 1633, 1644, 1610, 1661, - /* 440 */ 1645, 1657, 1634, 1639, 1677, 1679, 1682, 1649, 1518, 1683, - /* 450 */ 1689, 1690, 1647, 1692, 1693, 1659, 1648, 1662, 1696, 1663, - /* 460 */ 1655, 1664, 1699, 1665, 1658, 1667, 1704, 1672, 1666, 1669, - /* 470 */ 1711, 1712, 1722, 1724, 1650, 1651, 1691, 1705, 1728, 1694, - /* 480 */ 1695, 1688, 1698, 1697, 1700, 1714, 1734, 1717, 1737, 1720, - /* 490 */ 1701, 1743, 1723, 1709, 1746, 1713, 1747, 1718, 1754, 1733, - /* 500 */ 1736, 1757, 1680, 1725, 1758, 1581, 1740, 1702, 1605, 1778, - /* 510 */ 1779, 1706, 1675, 1777, 1781, 1782, 1784, 1703, 1707, 1751, - /* 520 */ 1606, 1787, 1716, 1684, 1719, 1791, 1756, 1656, 1760, 1710, - /* 530 */ 1752, 1762, 1579, 1578, 1588, 1763, 1566, 1765, 1761, 1766, - /* 540 */ 1768, 1769, 1773, 1774, 1775, 1780, 1785, 1788, 1783, 1813, - /* 550 */ 1764, 1814, 1789, 1818, 1670, 1786, 1795, 1864, 1831, 1686, - /* 560 */ 1840, 1848, 1850, 1852, 1855, 1856, 1798, 1800, 1851, 1708, - /* 570 */ 1853, 1861, 1877, 1896, 1888, 1726, 1832, 1834, 1837, 1838, - /* 580 */ 1842, 1839, 1885, 1844, 1845, 1893, 1847, 1920, 1744, 1854, - /* 590 */ 1841, 1858, 1911, 1914, 1857, 1860, 1921, 1865, 1863, 1925, - /* 600 */ 1868, 1879, 1936, 1881, 1883, 1940, 1886, 1875, 1876, 1878, - /* 610 */ 1880, 1958, 1889, 1903, 1906, 1946, 1907, 1959, 1959, 1979, - /* 620 */ 1944, 1947, 1972, 1974, 1975, 1976, 1978, 1980, 1981, 1983, - /* 630 */ 1985, 1986, 1954, 1923, 1982, 1988, 1989, 2004, 1992, 2007, - /* 640 */ 1995, 2005, 2008, 1977, 1688, 2009, 1698, 2019, 2021, 2023, - /* 650 */ 2025, 2039, 2027, 2063, 2029, 2022, 2026, 2066, 2033, 2024, - /* 660 */ 2031, 2073, 2040, 2030, 2037, 2078, 2044, 2034, 2041, 2082, - /* 670 */ 2049, 2051, 2087, 2067, 2069, 2070, 2072, 2074, 2068, + /* 0 */ 1071, 0, 57, 267, 57, 324, 324, 324, 534, 324, + /* 10 */ 324, 324, 324, 324, 591, 801, 801, 858, 801, 801, + /* 20 */ 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, + /* 30 */ 801, 801, 801, 801, 801, 801, 801, 801, 801, 801, + /* 40 */ 801, 801, 801, 801, 801, 801, 53, 86, 83, 192, + /* 50 */ 276, 62, 85, 62, 83, 83, 1524, 1524, 62, 1524, + /* 60 */ 1524, 87, 62, 207, 207, 30, 30, 8, 207, 207, + /* 70 */ 207, 207, 207, 207, 207, 207, 207, 207, 73, 207, + /* 80 */ 207, 207, 214, 207, 207, 313, 207, 207, 313, 332, + /* 90 */ 207, 313, 313, 313, 207, 354, 1005, 1196, 1196, 283, + /* 100 */ 381, 381, 381, 381, 381, 381, 381, 381, 381, 381, + /* 110 */ 381, 381, 381, 381, 381, 381, 381, 381, 381, 464, + /* 120 */ 883, 26, 8, 336, 336, 391, 487, 609, 209, 209, + /* 130 */ 542, 542, 542, 487, 476, 476, 315, 214, 523, 523, + /* 140 */ 330, 313, 313, 490, 490, 315, 546, 397, 397, 397, + /* 150 */ 397, 397, 397, 397, 1452, 137, 413, 768, 1327, 91, + /* 160 */ 67, 254, 226, 379, 132, 774, 175, 686, 587, 144, + /* 170 */ 837, 587, 907, 722, 575, 981, 1178, 1052, 1191, 1214, + /* 180 */ 1214, 1191, 1088, 1088, 1156, 1214, 1214, 1214, 1242, 1242, + /* 190 */ 1253, 73, 214, 73, 1260, 1261, 73, 1260, 73, 73, + /* 200 */ 73, 1214, 73, 1242, 313, 313, 313, 313, 313, 313, + /* 210 */ 313, 313, 313, 313, 313, 1214, 1242, 490, 1145, 1253, + /* 220 */ 354, 1160, 214, 354, 1214, 1214, 1260, 354, 1102, 490, + /* 230 */ 490, 490, 490, 1102, 490, 1210, 354, 315, 354, 476, + /* 240 */ 1375, 1375, 490, 1152, 1102, 490, 490, 1152, 1102, 490, + /* 250 */ 490, 313, 1155, 1251, 1152, 1181, 1183, 1201, 981, 1176, + /* 260 */ 1198, 1202, 1220, 476, 1445, 1372, 1379, 490, 546, 1214, + /* 270 */ 354, 1450, 1242, 2818, 2818, 2818, 2818, 2818, 2818, 2818, + /* 280 */ 1111, 189, 223, 812, 680, 216, 749, 50, 715, 1072, + /* 290 */ 446, 978, 978, 978, 978, 978, 978, 978, 978, 978, + /* 300 */ 459, 191, 11, 11, 179, 112, 210, 79, 360, 557, + /* 310 */ 364, 477, 15, 475, 477, 477, 477, 346, 898, 933, + /* 320 */ 872, 874, 932, 950, 963, 1027, 1028, 999, 819, 842, + /* 330 */ 1010, 1040, 1064, 1073, 1075, 1078, 869, 670, 867, 1036, + /* 340 */ 1039, 818, 1069, 915, 1120, 889, 1077, 1121, 1124, 1136, + /* 350 */ 1159, 1170, 1177, 1002, 1079, 1087, 1104, 1207, 1494, 1496, + /* 360 */ 1314, 1500, 1501, 1467, 1510, 1476, 1319, 1479, 1480, 1482, + /* 370 */ 1324, 1519, 1492, 1495, 1337, 1532, 1340, 1541, 1503, 1542, + /* 380 */ 1522, 1543, 1512, 1371, 1374, 1551, 1552, 1381, 1383, 1555, + /* 390 */ 1556, 1514, 1561, 1562, 1563, 1523, 1564, 1567, 1568, 1416, + /* 400 */ 1572, 1574, 1575, 1576, 1577, 1429, 1544, 1582, 1435, 1585, + /* 410 */ 1587, 1588, 1589, 1590, 1591, 1595, 1596, 1597, 1599, 1600, + /* 420 */ 1601, 1611, 1613, 1581, 1616, 1618, 1619, 1624, 1626, 1628, + /* 430 */ 1571, 1629, 1633, 1637, 1639, 1606, 1642, 1594, 1643, 1598, + /* 440 */ 1644, 1645, 1605, 1627, 1612, 1635, 1617, 1651, 1621, 1668, + /* 450 */ 1630, 1634, 1669, 1672, 1677, 1641, 1526, 1681, 1694, 1695, + /* 460 */ 1636, 1696, 1697, 1664, 1654, 1665, 1703, 1670, 1659, 1671, + /* 470 */ 1707, 1674, 1666, 1673, 1711, 1679, 1675, 1676, 1717, 1718, + /* 480 */ 1719, 1720, 1623, 1631, 1692, 1706, 1729, 1698, 1699, 1687, + /* 490 */ 1688, 1700, 1710, 1724, 1747, 1727, 1750, 1737, 1702, 1761, + /* 500 */ 1740, 1728, 1764, 1730, 1766, 1732, 1768, 1748, 1751, 1678, + /* 510 */ 1682, 1774, 1614, 1743, 1775, 1602, 1757, 1620, 1622, 1784, + /* 520 */ 1788, 1632, 1625, 1786, 1791, 1792, 1793, 1705, 1701, 1759, + /* 530 */ 1609, 1800, 1708, 1640, 1713, 1809, 1771, 1655, 1731, 1722, + /* 540 */ 1781, 1789, 1607, 1646, 1615, 1790, 1592, 1746, 1754, 1758, + /* 550 */ 1762, 1763, 1760, 1798, 1776, 1772, 1778, 1779, 1780, 1810, + /* 560 */ 1828, 1831, 1785, 1835, 1647, 1787, 1794, 1877, 1841, 1648, + /* 570 */ 1851, 1852, 1853, 1857, 1859, 1860, 1801, 1802, 1855, 1662, + /* 580 */ 1862, 1856, 1861, 1908, 1881, 1709, 1812, 1824, 1829, 1827, + /* 590 */ 1830, 1832, 1880, 1842, 1844, 1893, 1846, 1920, 1742, 1849, + /* 600 */ 1840, 1854, 1911, 1912, 1858, 1863, 1915, 1865, 1866, 1916, + /* 610 */ 1869, 1871, 1921, 1870, 1872, 1925, 1874, 1864, 1873, 1876, + /* 620 */ 1878, 1947, 1868, 1883, 1884, 1936, 1887, 1932, 1932, 1961, + /* 630 */ 1933, 1938, 1965, 1975, 1976, 1977, 1979, 1980, 1982, 1983, + /* 640 */ 1984, 1985, 1956, 1931, 1986, 1990, 1991, 2006, 1995, 2009, + /* 650 */ 1997, 1998, 1999, 1968, 1687, 2003, 1688, 2004, 2008, 2010, + /* 660 */ 2011, 2019, 2012, 2049, 2015, 2017, 2022, 2051, 2027, 2018, + /* 670 */ 2029, 2066, 2034, 2023, 2039, 2080, 2046, 2035, 2044, 2084, + /* 680 */ 2050, 2052, 2086, 2067, 2069, 2070, 2071, 2073, 2075, }; -#define YY_REDUCE_COUNT (272) -#define YY_REDUCE_MIN (-395) -#define YY_REDUCE_MAX (2266) +#define YY_REDUCE_COUNT (279) +#define YY_REDUCE_MIN (-349) +#define YY_REDUCE_MAX (2418) static const short yy_reduce_ofst[] = { - /* 0 */ -268, 886, -249, -162, -306, 275, 968, 1028, 1050, -21, - /* 10 */ 368, 1106, 1167, 1189, 1273, 1328, 1381, 467, 1433, 1445, - /* 20 */ 1459, 1513, 1527, 1577, 1596, 1646, 1660, 1715, 1741, 1767, - /* 30 */ 1793, 1819, 1871, 1887, 1949, 1965, 2018, 2032, 2086, 2110, - /* 40 */ 2136, 2188, 2204, 2266, -11, 200, 237, 459, 544, 664, - /* 50 */ 879, 911, -131, 286, -341, -222, -387, -307, -201, -252, - /* 60 */ 777, -324, -321, -316, -260, -232, -233, 8, 83, 166, - /* 70 */ 243, 302, 317, 354, 547, 583, 229, 624, 625, 631, - /* 80 */ 77, 633, 638, -289, 691, 749, -175, -279, 758, 211, - /* 90 */ -4, 476, 872, 264, -227, -395, -395, -203, 32, 132, - /* 100 */ 261, 326, 395, 408, 453, 465, 468, 493, 536, 564, - /* 110 */ 601, 662, 676, 715, 721, 723, 726, -121, -133, 135, - /* 120 */ -211, -27, 92, 230, 223, 118, -235, 294, 135, 220, - /* 130 */ 369, 483, 356, 514, 510, 500, 505, 104, 377, 312, - /* 140 */ 60, 464, 607, 549, -326, -293, 204, 263, 283, 308, - /* 150 */ 522, 350, 567, 452, 563, 558, 799, 727, 704, 704, - /* 160 */ 832, 839, 844, 816, 808, 808, 782, 808, 817, 809, - /* 170 */ 704, 854, 865, 892, 896, 962, 963, 927, 936, 940, - /* 180 */ 982, 983, 984, 1000, 1001, 945, 996, 967, 1003, 961, - /* 190 */ 966, 1008, 964, 1010, 1012, 1015, 1021, 1020, 1031, 1009, - /* 200 */ 1018, 1023, 1025, 1027, 1029, 1033, 1034, 1037, 1038, 1039, - /* 210 */ 1040, 1047, 994, 974, 1053, 1011, 1017, 1063, 1066, 1067, - /* 220 */ 1022, 1070, 1030, 1041, 1042, 1043, 1046, 1045, 1048, 1036, - /* 230 */ 1078, 1071, 1080, 1056, 1061, 1072, 1004, 1058, 1074, 1076, - /* 240 */ 1026, 1059, 1094, 1095, 704, 1049, 1051, 1054, 1052, 1057, - /* 250 */ 1062, 1079, 1024, 1055, 1077, 808, 1119, 1100, 1082, 1142, - /* 260 */ 1143, 1168, 1180, 1181, 1195, 1198, 1140, 1147, 1182, 1183, - /* 270 */ 1184, 1191, 1209, + /* 0 */ 445, -251, -311, 896, 13, 280, 547, 968, 261, 990, + /* 10 */ 1057, 1129, 1211, 1265, 1291, 528, 1361, 1425, 1451, 1468, + /* 20 */ 1521, 1538, 1593, 1610, 1661, 1680, 1741, 1799, 1821, 1882, + /* 30 */ 1901, 1954, 1971, 2014, 2038, 2057, 2118, 2137, 2201, 2219, + /* 40 */ 2262, 2315, 2332, 2375, 2399, 2418, 21, 278, -221, 603, + /* 50 */ 605, 884, 1041, 1194, -28, 814, -349, -346, -314, -339, + /* 60 */ -65, -63, 159, 39, 323, -320, -316, -343, 222, 281, + /* 70 */ 296, 378, 430, 501, 503, 509, 512, 517, -299, 522, + /* 80 */ 558, 574, -243, 578, 580, 113, 643, 705, -239, -198, + /* 90 */ 764, 109, -9, 250, 765, 287, -70, -310, -310, -287, + /* 100 */ -317, -134, -30, 35, 93, 143, 208, 302, 320, 321, + /* 110 */ 327, 348, 365, 414, 418, 468, 470, 472, 543, -245, + /* 120 */ 263, -215, -163, -173, -33, -47, 284, 443, -348, 61, + /* 130 */ -215, 370, 400, 297, 460, 467, 107, 480, 239, 399, + /* 140 */ 241, 362, 526, 494, 519, 616, 562, 514, 553, 655, + /* 150 */ 709, 751, 753, 769, 387, 555, 707, 668, 628, 690, + /* 160 */ 798, 698, 784, 784, 805, 808, 777, 747, 799, 799, + /* 170 */ 728, 799, 809, 795, 784, 838, 840, 850, 870, 910, + /* 180 */ 912, 875, 880, 885, 917, 926, 927, 934, 943, 951, + /* 190 */ 893, 945, 916, 947, 908, 909, 954, 920, 966, 967, + /* 200 */ 973, 983, 974, 991, 965, 969, 970, 971, 972, 975, + /* 210 */ 977, 982, 984, 985, 986, 987, 994, 976, 953, 957, + /* 220 */ 1011, 960, 980, 1015, 1018, 1020, 979, 1019, 988, 989, + /* 230 */ 996, 997, 1006, 998, 1009, 1003, 1048, 1037, 1062, 1038, + /* 240 */ 1007, 1012, 1043, 993, 1035, 1046, 1047, 1008, 1044, 1051, + /* 250 */ 1053, 784, 1004, 992, 1014, 1013, 1017, 1021, 1061, 1023, + /* 260 */ 1024, 1016, 799, 1105, 1081, 1063, 1123, 1115, 1142, 1154, + /* 270 */ 1153, 1166, 1168, 1112, 1119, 1157, 1161, 1162, 1164, 1179, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 10 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 20 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 30 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 40 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 50 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 60 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 70 */ 1509, 1509, 1509, 1509, 1509, 1509, 1583, 1509, 1509, 1509, - /* 80 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 90 */ 1509, 1509, 1509, 1581, 1746, 1930, 1509, 1509, 1509, 1509, - /* 100 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 110 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1942, - /* 120 */ 1509, 1509, 1509, 1583, 1509, 1581, 1902, 1902, 1942, 1942, - /* 130 */ 1942, 1509, 1509, 1509, 1509, 1787, 1787, 1509, 1509, 1509, - /* 140 */ 1509, 1509, 1686, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 150 */ 1509, 1781, 1509, 2015, 1509, 1509, 1509, 1965, 1509, 1509, - /* 160 */ 1509, 1509, 1639, 1957, 1934, 1948, 1999, 1935, 1932, 1951, - /* 170 */ 1509, 1961, 1509, 1774, 1751, 1509, 1509, 1751, 1748, 1748, - /* 180 */ 1509, 1509, 1509, 1509, 1509, 1509, 1583, 1509, 1583, 1509, - /* 190 */ 1509, 1583, 1509, 1583, 1583, 1583, 1509, 1583, 1509, 1509, - /* 200 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 210 */ 1509, 1509, 1509, 1509, 1581, 1783, 1509, 1581, 1509, 1509, - /* 220 */ 1509, 1581, 1970, 1509, 1509, 1509, 1509, 1970, 1509, 1509, - /* 230 */ 1581, 1509, 1581, 1509, 1509, 1509, 1972, 1970, 1509, 1509, - /* 240 */ 1972, 1970, 1509, 1509, 1509, 1984, 1980, 1972, 1988, 1986, - /* 250 */ 1963, 1961, 2018, 2005, 2001, 1948, 1509, 1509, 1509, 1655, - /* 260 */ 1509, 1509, 1509, 1581, 1541, 1509, 1776, 1787, 1689, 1689, - /* 270 */ 1689, 1584, 1514, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 280 */ 1509, 1509, 1509, 1509, 1860, 1509, 1983, 1982, 1906, 1905, - /* 290 */ 1904, 1895, 1859, 1509, 1651, 1858, 1857, 1509, 1509, 1509, - /* 300 */ 1509, 1509, 1509, 1509, 1851, 1509, 1509, 1852, 1850, 1849, - /* 310 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 320 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 330 */ 2002, 2006, 1931, 1509, 1509, 1509, 1509, 1509, 1842, 1833, - /* 340 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 350 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 360 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 370 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 380 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 390 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 400 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 410 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 420 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 430 */ 1509, 1509, 1509, 1509, 1509, 1509, 1546, 1509, 1509, 1509, - /* 440 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 450 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 460 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 470 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 480 */ 1509, 1622, 1621, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 490 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 500 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 510 */ 1509, 1509, 1509, 1998, 1509, 1509, 1509, 1509, 1509, 1509, - /* 520 */ 1509, 1791, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 530 */ 1509, 1892, 1509, 1509, 1509, 1964, 1509, 1509, 1509, 1509, - /* 540 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 550 */ 1509, 1833, 1509, 1981, 1509, 1509, 1996, 1509, 2000, 1509, - /* 560 */ 1509, 1509, 1509, 1509, 1509, 1509, 1941, 1937, 1509, 1509, - /* 570 */ 1933, 1832, 1509, 1926, 1509, 1509, 1877, 1509, 1509, 1509, - /* 580 */ 1509, 1509, 1509, 1509, 1509, 1509, 1841, 1509, 1845, 1509, - /* 590 */ 1509, 1509, 1509, 1509, 1683, 1509, 1509, 1509, 1509, 1509, - /* 600 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1668, 1666, 1665, - /* 610 */ 1664, 1509, 1661, 1509, 1509, 1509, 1509, 1692, 1691, 1509, - /* 620 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 630 */ 1509, 1509, 1509, 1509, 1603, 1509, 1509, 1509, 1509, 1509, - /* 640 */ 1509, 1509, 1509, 1509, 1594, 1509, 1593, 1509, 1509, 1509, - /* 650 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 660 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, - /* 670 */ 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, 1509, + /* 0 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 10 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 20 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 30 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 40 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 50 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 60 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 70 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1608, 1534, + /* 80 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 90 */ 1534, 1534, 1534, 1534, 1534, 1606, 1773, 1959, 1534, 1534, + /* 100 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 110 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 120 */ 1534, 1971, 1534, 1534, 1534, 1608, 1534, 1606, 1931, 1931, + /* 130 */ 1971, 1971, 1971, 1534, 1534, 1534, 1713, 1534, 1814, 1814, + /* 140 */ 1534, 1534, 1534, 1534, 1534, 1713, 1534, 1534, 1534, 1534, + /* 150 */ 1534, 1534, 1534, 1534, 1808, 1534, 1996, 2049, 1534, 1534, + /* 160 */ 1534, 1999, 1534, 1534, 1534, 1534, 1666, 1986, 1963, 1977, + /* 170 */ 2033, 1964, 1961, 1980, 1534, 1990, 1534, 1801, 1778, 1534, + /* 180 */ 1534, 1778, 1775, 1775, 1657, 1534, 1534, 1534, 1534, 1534, + /* 190 */ 1534, 1608, 1534, 1608, 1534, 1534, 1608, 1534, 1608, 1608, + /* 200 */ 1608, 1534, 1608, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 210 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1820, 1534, + /* 220 */ 1606, 1810, 1534, 1606, 1534, 1534, 1534, 1606, 2004, 1534, + /* 230 */ 1534, 1534, 1534, 2004, 1534, 1534, 1606, 1534, 1606, 1534, + /* 240 */ 1534, 1534, 1534, 2006, 2004, 1534, 1534, 2006, 2004, 1534, + /* 250 */ 1534, 1534, 2018, 2014, 2006, 2022, 2020, 1992, 1990, 2052, + /* 260 */ 2039, 2035, 1977, 1534, 1534, 1534, 1682, 1534, 1534, 1534, + /* 270 */ 1606, 1566, 1534, 1803, 1814, 1716, 1716, 1716, 1609, 1539, + /* 280 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 290 */ 1534, 1889, 1534, 2017, 2016, 1935, 1934, 1933, 1924, 1888, + /* 300 */ 1534, 1678, 1887, 1886, 1534, 1534, 1534, 1534, 1534, 1534, + /* 310 */ 1534, 1880, 1534, 1534, 1881, 1879, 1878, 1534, 1534, 1534, + /* 320 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 330 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 2036, 2040, 1960, + /* 340 */ 1534, 1534, 1534, 1534, 1534, 1871, 1862, 1534, 1534, 1534, + /* 350 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 360 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 370 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 380 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 390 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 400 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 410 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 420 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 430 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 440 */ 1534, 1534, 1534, 1534, 1571, 1534, 1534, 1534, 1534, 1534, + /* 450 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 460 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 470 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 480 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1647, + /* 490 */ 1646, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 500 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1870, + /* 510 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 520 */ 1534, 1534, 1534, 2032, 1534, 1534, 1534, 1534, 1534, 1534, + /* 530 */ 1534, 1818, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 540 */ 1534, 1921, 1534, 1534, 1534, 1993, 1534, 1534, 1534, 1534, + /* 550 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 560 */ 1534, 1862, 1534, 2015, 1534, 1534, 2030, 1534, 2034, 1534, + /* 570 */ 1534, 1534, 1534, 1534, 1534, 1534, 1970, 1966, 1534, 1534, + /* 580 */ 1962, 1861, 1534, 1955, 1534, 1534, 1906, 1534, 1534, 1534, + /* 590 */ 1534, 1534, 1534, 1534, 1534, 1534, 1870, 1534, 1874, 1534, + /* 600 */ 1534, 1534, 1534, 1534, 1710, 1534, 1534, 1534, 1534, 1534, + /* 610 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1695, 1693, 1692, + /* 620 */ 1691, 1534, 1688, 1534, 1534, 1534, 1534, 1719, 1718, 1534, + /* 630 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 640 */ 1534, 1534, 1534, 1534, 1628, 1534, 1534, 1534, 1534, 1534, + /* 650 */ 1534, 1534, 1534, 1534, 1619, 1534, 1618, 1534, 1534, 1534, + /* 660 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 670 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, + /* 680 */ 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, 1534, }; /********** End of lemon-generated parsing tables *****************************/ @@ -1041,6 +1073,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* TABLE_PREFIX => nothing */ 0, /* TABLE_SUFFIX => nothing */ 0, /* NK_COLON => nothing */ + 0, /* MAX_SPEED => nothing */ 0, /* TABLE => nothing */ 0, /* NK_LP => nothing */ 0, /* NK_RP => nothing */ @@ -1137,6 +1170,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* WINDOW_CLOSE => nothing */ 0, /* IGNORE => nothing */ 0, /* EXPIRED => nothing */ + 0, /* SUBTABLE => nothing */ 0, /* KILL => nothing */ 0, /* CONNECTION => nothing */ 0, /* TRANSACTION => nothing */ @@ -1169,7 +1203,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* COUNT => nothing */ 0, /* LAST_ROW => nothing */ 0, /* CASE => nothing */ - 261, /* END => ABORT */ + 263, /* END => ABORT */ 0, /* WHEN => nothing */ 0, /* THEN => nothing */ 0, /* ELSE => nothing */ @@ -1211,57 +1245,57 @@ static const YYCODETYPE yyFallback[] = { 0, /* ASC => nothing */ 0, /* NULLS => nothing */ 0, /* ABORT => nothing */ - 261, /* AFTER => ABORT */ - 261, /* ATTACH => ABORT */ - 261, /* BEFORE => ABORT */ - 261, /* BEGIN => ABORT */ - 261, /* BITAND => ABORT */ - 261, /* BITNOT => ABORT */ - 261, /* BITOR => ABORT */ - 261, /* BLOCKS => ABORT */ - 261, /* CHANGE => ABORT */ - 261, /* COMMA => ABORT */ - 261, /* COMPACT => ABORT */ - 261, /* CONCAT => ABORT */ - 261, /* CONFLICT => ABORT */ - 261, /* COPY => ABORT */ - 261, /* DEFERRED => ABORT */ - 261, /* DELIMITERS => ABORT */ - 261, /* DETACH => ABORT */ - 261, /* DIVIDE => ABORT */ - 261, /* DOT => ABORT */ - 261, /* EACH => ABORT */ - 261, /* FAIL => ABORT */ - 261, /* FILE => ABORT */ - 261, /* FOR => ABORT */ - 261, /* GLOB => ABORT */ - 261, /* ID => ABORT */ - 261, /* IMMEDIATE => ABORT */ - 261, /* IMPORT => ABORT */ - 261, /* INITIALLY => ABORT */ - 261, /* INSTEAD => ABORT */ - 261, /* ISNULL => ABORT */ - 261, /* KEY => ABORT */ - 261, /* NK_BITNOT => ABORT */ - 261, /* NK_SEMI => ABORT */ - 261, /* NOTNULL => ABORT */ - 261, /* OF => ABORT */ - 261, /* PLUS => ABORT */ - 261, /* PRIVILEGE => ABORT */ - 261, /* RAISE => ABORT */ - 261, /* REPLACE => ABORT */ - 261, /* RESTRICT => ABORT */ - 261, /* ROW => ABORT */ - 261, /* SEMI => ABORT */ - 261, /* STAR => ABORT */ - 261, /* STATEMENT => ABORT */ - 261, /* STRING => ABORT */ - 261, /* TIMES => ABORT */ - 261, /* UPDATE => ABORT */ - 261, /* VALUES => ABORT */ - 261, /* VARIABLE => ABORT */ - 261, /* VIEW => ABORT */ - 261, /* WAL => ABORT */ + 263, /* AFTER => ABORT */ + 263, /* ATTACH => ABORT */ + 263, /* BEFORE => ABORT */ + 263, /* BEGIN => ABORT */ + 263, /* BITAND => ABORT */ + 263, /* BITNOT => ABORT */ + 263, /* BITOR => ABORT */ + 263, /* BLOCKS => ABORT */ + 263, /* CHANGE => ABORT */ + 263, /* COMMA => ABORT */ + 263, /* COMPACT => ABORT */ + 263, /* CONCAT => ABORT */ + 263, /* CONFLICT => ABORT */ + 263, /* COPY => ABORT */ + 263, /* DEFERRED => ABORT */ + 263, /* DELIMITERS => ABORT */ + 263, /* DETACH => ABORT */ + 263, /* DIVIDE => ABORT */ + 263, /* DOT => ABORT */ + 263, /* EACH => ABORT */ + 263, /* FAIL => ABORT */ + 263, /* FILE => ABORT */ + 263, /* FOR => ABORT */ + 263, /* GLOB => ABORT */ + 263, /* ID => ABORT */ + 263, /* IMMEDIATE => ABORT */ + 263, /* IMPORT => ABORT */ + 263, /* INITIALLY => ABORT */ + 263, /* INSTEAD => ABORT */ + 263, /* ISNULL => ABORT */ + 263, /* KEY => ABORT */ + 263, /* NK_BITNOT => ABORT */ + 263, /* NK_SEMI => ABORT */ + 263, /* NOTNULL => ABORT */ + 263, /* OF => ABORT */ + 263, /* PLUS => ABORT */ + 263, /* PRIVILEGE => ABORT */ + 263, /* RAISE => ABORT */ + 263, /* REPLACE => ABORT */ + 263, /* RESTRICT => ABORT */ + 263, /* ROW => ABORT */ + 263, /* SEMI => ABORT */ + 263, /* STAR => ABORT */ + 263, /* STATEMENT => ABORT */ + 263, /* STRING => ABORT */ + 263, /* TIMES => ABORT */ + 263, /* UPDATE => ABORT */ + 263, /* VALUES => ABORT */ + 263, /* VARIABLE => ABORT */ + 263, /* VIEW => ABORT */ + 263, /* WAL => ABORT */ }; #endif /* YYFALLBACK */ @@ -1441,355 +1475,361 @@ static const char *const yyTokenName[] = { /* 89 */ "TABLE_PREFIX", /* 90 */ "TABLE_SUFFIX", /* 91 */ "NK_COLON", - /* 92 */ "TABLE", - /* 93 */ "NK_LP", - /* 94 */ "NK_RP", - /* 95 */ "STABLE", - /* 96 */ "ADD", - /* 97 */ "COLUMN", - /* 98 */ "MODIFY", - /* 99 */ "RENAME", - /* 100 */ "TAG", - /* 101 */ "SET", - /* 102 */ "NK_EQ", - /* 103 */ "USING", - /* 104 */ "TAGS", - /* 105 */ "COMMENT", - /* 106 */ "BOOL", - /* 107 */ "TINYINT", - /* 108 */ "SMALLINT", - /* 109 */ "INT", - /* 110 */ "INTEGER", - /* 111 */ "BIGINT", - /* 112 */ "FLOAT", - /* 113 */ "DOUBLE", - /* 114 */ "BINARY", - /* 115 */ "TIMESTAMP", - /* 116 */ "NCHAR", - /* 117 */ "UNSIGNED", - /* 118 */ "JSON", - /* 119 */ "VARCHAR", - /* 120 */ "MEDIUMBLOB", - /* 121 */ "BLOB", - /* 122 */ "VARBINARY", - /* 123 */ "DECIMAL", - /* 124 */ "MAX_DELAY", - /* 125 */ "WATERMARK", - /* 126 */ "ROLLUP", - /* 127 */ "TTL", - /* 128 */ "SMA", - /* 129 */ "FIRST", - /* 130 */ "LAST", - /* 131 */ "SHOW", - /* 132 */ "DATABASES", - /* 133 */ "TABLES", - /* 134 */ "STABLES", - /* 135 */ "MNODES", - /* 136 */ "MODULES", - /* 137 */ "QNODES", - /* 138 */ "FUNCTIONS", - /* 139 */ "INDEXES", - /* 140 */ "ACCOUNTS", - /* 141 */ "APPS", - /* 142 */ "CONNECTIONS", - /* 143 */ "LICENCES", - /* 144 */ "GRANTS", - /* 145 */ "QUERIES", - /* 146 */ "SCORES", - /* 147 */ "TOPICS", - /* 148 */ "VARIABLES", - /* 149 */ "BNODES", - /* 150 */ "SNODES", - /* 151 */ "CLUSTER", - /* 152 */ "TRANSACTIONS", - /* 153 */ "DISTRIBUTED", - /* 154 */ "CONSUMERS", - /* 155 */ "SUBSCRIPTIONS", - /* 156 */ "VNODES", - /* 157 */ "LIKE", - /* 158 */ "INDEX", - /* 159 */ "FUNCTION", - /* 160 */ "INTERVAL", - /* 161 */ "TOPIC", - /* 162 */ "AS", - /* 163 */ "WITH", - /* 164 */ "META", - /* 165 */ "CONSUMER", - /* 166 */ "GROUP", - /* 167 */ "DESC", - /* 168 */ "DESCRIBE", - /* 169 */ "RESET", - /* 170 */ "QUERY", - /* 171 */ "CACHE", - /* 172 */ "EXPLAIN", - /* 173 */ "ANALYZE", - /* 174 */ "VERBOSE", - /* 175 */ "NK_BOOL", - /* 176 */ "RATIO", - /* 177 */ "NK_FLOAT", - /* 178 */ "OUTPUTTYPE", - /* 179 */ "AGGREGATE", - /* 180 */ "BUFSIZE", - /* 181 */ "STREAM", - /* 182 */ "INTO", - /* 183 */ "TRIGGER", - /* 184 */ "AT_ONCE", - /* 185 */ "WINDOW_CLOSE", - /* 186 */ "IGNORE", - /* 187 */ "EXPIRED", - /* 188 */ "KILL", - /* 189 */ "CONNECTION", - /* 190 */ "TRANSACTION", - /* 191 */ "BALANCE", - /* 192 */ "VGROUP", - /* 193 */ "MERGE", - /* 194 */ "REDISTRIBUTE", - /* 195 */ "SPLIT", - /* 196 */ "DELETE", - /* 197 */ "INSERT", - /* 198 */ "NULL", - /* 199 */ "NK_QUESTION", - /* 200 */ "NK_ARROW", - /* 201 */ "ROWTS", - /* 202 */ "TBNAME", - /* 203 */ "QSTART", - /* 204 */ "QEND", - /* 205 */ "QDURATION", - /* 206 */ "WSTART", - /* 207 */ "WEND", - /* 208 */ "WDURATION", - /* 209 */ "CAST", - /* 210 */ "NOW", - /* 211 */ "TODAY", - /* 212 */ "TIMEZONE", - /* 213 */ "CLIENT_VERSION", - /* 214 */ "SERVER_VERSION", - /* 215 */ "SERVER_STATUS", - /* 216 */ "CURRENT_USER", - /* 217 */ "COUNT", - /* 218 */ "LAST_ROW", - /* 219 */ "CASE", - /* 220 */ "END", - /* 221 */ "WHEN", - /* 222 */ "THEN", - /* 223 */ "ELSE", - /* 224 */ "BETWEEN", - /* 225 */ "IS", - /* 226 */ "NK_LT", - /* 227 */ "NK_GT", - /* 228 */ "NK_LE", - /* 229 */ "NK_GE", - /* 230 */ "NK_NE", - /* 231 */ "MATCH", - /* 232 */ "NMATCH", - /* 233 */ "CONTAINS", - /* 234 */ "IN", - /* 235 */ "JOIN", - /* 236 */ "INNER", - /* 237 */ "SELECT", - /* 238 */ "DISTINCT", - /* 239 */ "WHERE", - /* 240 */ "PARTITION", - /* 241 */ "BY", - /* 242 */ "SESSION", - /* 243 */ "STATE_WINDOW", - /* 244 */ "SLIDING", - /* 245 */ "FILL", - /* 246 */ "VALUE", - /* 247 */ "NONE", - /* 248 */ "PREV", - /* 249 */ "LINEAR", - /* 250 */ "NEXT", - /* 251 */ "HAVING", - /* 252 */ "RANGE", - /* 253 */ "EVERY", - /* 254 */ "ORDER", - /* 255 */ "SLIMIT", - /* 256 */ "SOFFSET", - /* 257 */ "LIMIT", - /* 258 */ "OFFSET", - /* 259 */ "ASC", - /* 260 */ "NULLS", - /* 261 */ "ABORT", - /* 262 */ "AFTER", - /* 263 */ "ATTACH", - /* 264 */ "BEFORE", - /* 265 */ "BEGIN", - /* 266 */ "BITAND", - /* 267 */ "BITNOT", - /* 268 */ "BITOR", - /* 269 */ "BLOCKS", - /* 270 */ "CHANGE", - /* 271 */ "COMMA", - /* 272 */ "COMPACT", - /* 273 */ "CONCAT", - /* 274 */ "CONFLICT", - /* 275 */ "COPY", - /* 276 */ "DEFERRED", - /* 277 */ "DELIMITERS", - /* 278 */ "DETACH", - /* 279 */ "DIVIDE", - /* 280 */ "DOT", - /* 281 */ "EACH", - /* 282 */ "FAIL", - /* 283 */ "FILE", - /* 284 */ "FOR", - /* 285 */ "GLOB", - /* 286 */ "ID", - /* 287 */ "IMMEDIATE", - /* 288 */ "IMPORT", - /* 289 */ "INITIALLY", - /* 290 */ "INSTEAD", - /* 291 */ "ISNULL", - /* 292 */ "KEY", - /* 293 */ "NK_BITNOT", - /* 294 */ "NK_SEMI", - /* 295 */ "NOTNULL", - /* 296 */ "OF", - /* 297 */ "PLUS", - /* 298 */ "PRIVILEGE", - /* 299 */ "RAISE", - /* 300 */ "REPLACE", - /* 301 */ "RESTRICT", - /* 302 */ "ROW", - /* 303 */ "SEMI", - /* 304 */ "STAR", - /* 305 */ "STATEMENT", - /* 306 */ "STRING", - /* 307 */ "TIMES", - /* 308 */ "UPDATE", - /* 309 */ "VALUES", - /* 310 */ "VARIABLE", - /* 311 */ "VIEW", - /* 312 */ "WAL", - /* 313 */ "cmd", - /* 314 */ "account_options", - /* 315 */ "alter_account_options", - /* 316 */ "literal", - /* 317 */ "alter_account_option", - /* 318 */ "user_name", - /* 319 */ "sysinfo_opt", - /* 320 */ "privileges", - /* 321 */ "priv_level", - /* 322 */ "priv_type_list", - /* 323 */ "priv_type", - /* 324 */ "db_name", - /* 325 */ "dnode_endpoint", - /* 326 */ "not_exists_opt", - /* 327 */ "db_options", - /* 328 */ "exists_opt", - /* 329 */ "alter_db_options", - /* 330 */ "integer_list", - /* 331 */ "variable_list", - /* 332 */ "retention_list", - /* 333 */ "alter_db_option", - /* 334 */ "retention", - /* 335 */ "full_table_name", - /* 336 */ "column_def_list", - /* 337 */ "tags_def_opt", - /* 338 */ "table_options", - /* 339 */ "multi_create_clause", - /* 340 */ "tags_def", - /* 341 */ "multi_drop_clause", - /* 342 */ "alter_table_clause", - /* 343 */ "alter_table_options", - /* 344 */ "column_name", - /* 345 */ "type_name", - /* 346 */ "signed_literal", - /* 347 */ "create_subtable_clause", - /* 348 */ "specific_cols_opt", - /* 349 */ "expression_list", - /* 350 */ "drop_table_clause", - /* 351 */ "col_name_list", - /* 352 */ "table_name", - /* 353 */ "column_def", - /* 354 */ "duration_list", - /* 355 */ "rollup_func_list", - /* 356 */ "alter_table_option", - /* 357 */ "duration_literal", - /* 358 */ "rollup_func_name", - /* 359 */ "function_name", - /* 360 */ "col_name", - /* 361 */ "db_name_cond_opt", - /* 362 */ "like_pattern_opt", - /* 363 */ "table_name_cond", - /* 364 */ "from_db_opt", - /* 365 */ "index_options", - /* 366 */ "func_list", - /* 367 */ "sliding_opt", - /* 368 */ "sma_stream_opt", - /* 369 */ "func", - /* 370 */ "stream_options", - /* 371 */ "topic_name", - /* 372 */ "query_or_subquery", - /* 373 */ "cgroup_name", - /* 374 */ "analyze_opt", - /* 375 */ "explain_options", - /* 376 */ "agg_func_opt", - /* 377 */ "bufsize_opt", - /* 378 */ "stream_name", - /* 379 */ "dnode_list", - /* 380 */ "where_clause_opt", - /* 381 */ "signed", - /* 382 */ "literal_func", - /* 383 */ "literal_list", - /* 384 */ "table_alias", - /* 385 */ "column_alias", - /* 386 */ "expr_or_subquery", - /* 387 */ "expression", - /* 388 */ "subquery", - /* 389 */ "pseudo_column", - /* 390 */ "column_reference", - /* 391 */ "function_expression", - /* 392 */ "case_when_expression", - /* 393 */ "star_func", - /* 394 */ "star_func_para_list", - /* 395 */ "noarg_func", - /* 396 */ "other_para_list", - /* 397 */ "star_func_para", - /* 398 */ "when_then_list", - /* 399 */ "case_when_else_opt", - /* 400 */ "common_expression", - /* 401 */ "when_then_expr", - /* 402 */ "predicate", - /* 403 */ "compare_op", - /* 404 */ "in_op", - /* 405 */ "in_predicate_value", - /* 406 */ "boolean_value_expression", - /* 407 */ "boolean_primary", - /* 408 */ "from_clause_opt", - /* 409 */ "table_reference_list", - /* 410 */ "table_reference", - /* 411 */ "table_primary", - /* 412 */ "joined_table", - /* 413 */ "alias_opt", - /* 414 */ "parenthesized_joined_table", - /* 415 */ "join_type", - /* 416 */ "search_condition", - /* 417 */ "query_specification", - /* 418 */ "set_quantifier_opt", - /* 419 */ "select_list", - /* 420 */ "partition_by_clause_opt", - /* 421 */ "range_opt", - /* 422 */ "every_opt", - /* 423 */ "fill_opt", - /* 424 */ "twindow_clause_opt", - /* 425 */ "group_by_clause_opt", - /* 426 */ "having_clause_opt", - /* 427 */ "select_item", - /* 428 */ "fill_mode", - /* 429 */ "group_by_list", - /* 430 */ "query_expression", - /* 431 */ "query_simple", - /* 432 */ "order_by_clause_opt", - /* 433 */ "slimit_clause_opt", - /* 434 */ "limit_clause_opt", - /* 435 */ "union_query_expression", - /* 436 */ "query_simple_or_subquery", - /* 437 */ "sort_specification_list", - /* 438 */ "sort_specification", - /* 439 */ "ordering_specification_opt", - /* 440 */ "null_ordering_opt", + /* 92 */ "MAX_SPEED", + /* 93 */ "TABLE", + /* 94 */ "NK_LP", + /* 95 */ "NK_RP", + /* 96 */ "STABLE", + /* 97 */ "ADD", + /* 98 */ "COLUMN", + /* 99 */ "MODIFY", + /* 100 */ "RENAME", + /* 101 */ "TAG", + /* 102 */ "SET", + /* 103 */ "NK_EQ", + /* 104 */ "USING", + /* 105 */ "TAGS", + /* 106 */ "COMMENT", + /* 107 */ "BOOL", + /* 108 */ "TINYINT", + /* 109 */ "SMALLINT", + /* 110 */ "INT", + /* 111 */ "INTEGER", + /* 112 */ "BIGINT", + /* 113 */ "FLOAT", + /* 114 */ "DOUBLE", + /* 115 */ "BINARY", + /* 116 */ "TIMESTAMP", + /* 117 */ "NCHAR", + /* 118 */ "UNSIGNED", + /* 119 */ "JSON", + /* 120 */ "VARCHAR", + /* 121 */ "MEDIUMBLOB", + /* 122 */ "BLOB", + /* 123 */ "VARBINARY", + /* 124 */ "DECIMAL", + /* 125 */ "MAX_DELAY", + /* 126 */ "WATERMARK", + /* 127 */ "ROLLUP", + /* 128 */ "TTL", + /* 129 */ "SMA", + /* 130 */ "FIRST", + /* 131 */ "LAST", + /* 132 */ "SHOW", + /* 133 */ "DATABASES", + /* 134 */ "TABLES", + /* 135 */ "STABLES", + /* 136 */ "MNODES", + /* 137 */ "MODULES", + /* 138 */ "QNODES", + /* 139 */ "FUNCTIONS", + /* 140 */ "INDEXES", + /* 141 */ "ACCOUNTS", + /* 142 */ "APPS", + /* 143 */ "CONNECTIONS", + /* 144 */ "LICENCES", + /* 145 */ "GRANTS", + /* 146 */ "QUERIES", + /* 147 */ "SCORES", + /* 148 */ "TOPICS", + /* 149 */ "VARIABLES", + /* 150 */ "BNODES", + /* 151 */ "SNODES", + /* 152 */ "CLUSTER", + /* 153 */ "TRANSACTIONS", + /* 154 */ "DISTRIBUTED", + /* 155 */ "CONSUMERS", + /* 156 */ "SUBSCRIPTIONS", + /* 157 */ "VNODES", + /* 158 */ "LIKE", + /* 159 */ "INDEX", + /* 160 */ "FUNCTION", + /* 161 */ "INTERVAL", + /* 162 */ "TOPIC", + /* 163 */ "AS", + /* 164 */ "WITH", + /* 165 */ "META", + /* 166 */ "CONSUMER", + /* 167 */ "GROUP", + /* 168 */ "DESC", + /* 169 */ "DESCRIBE", + /* 170 */ "RESET", + /* 171 */ "QUERY", + /* 172 */ "CACHE", + /* 173 */ "EXPLAIN", + /* 174 */ "ANALYZE", + /* 175 */ "VERBOSE", + /* 176 */ "NK_BOOL", + /* 177 */ "RATIO", + /* 178 */ "NK_FLOAT", + /* 179 */ "OUTPUTTYPE", + /* 180 */ "AGGREGATE", + /* 181 */ "BUFSIZE", + /* 182 */ "STREAM", + /* 183 */ "INTO", + /* 184 */ "TRIGGER", + /* 185 */ "AT_ONCE", + /* 186 */ "WINDOW_CLOSE", + /* 187 */ "IGNORE", + /* 188 */ "EXPIRED", + /* 189 */ "SUBTABLE", + /* 190 */ "KILL", + /* 191 */ "CONNECTION", + /* 192 */ "TRANSACTION", + /* 193 */ "BALANCE", + /* 194 */ "VGROUP", + /* 195 */ "MERGE", + /* 196 */ "REDISTRIBUTE", + /* 197 */ "SPLIT", + /* 198 */ "DELETE", + /* 199 */ "INSERT", + /* 200 */ "NULL", + /* 201 */ "NK_QUESTION", + /* 202 */ "NK_ARROW", + /* 203 */ "ROWTS", + /* 204 */ "TBNAME", + /* 205 */ "QSTART", + /* 206 */ "QEND", + /* 207 */ "QDURATION", + /* 208 */ "WSTART", + /* 209 */ "WEND", + /* 210 */ "WDURATION", + /* 211 */ "CAST", + /* 212 */ "NOW", + /* 213 */ "TODAY", + /* 214 */ "TIMEZONE", + /* 215 */ "CLIENT_VERSION", + /* 216 */ "SERVER_VERSION", + /* 217 */ "SERVER_STATUS", + /* 218 */ "CURRENT_USER", + /* 219 */ "COUNT", + /* 220 */ "LAST_ROW", + /* 221 */ "CASE", + /* 222 */ "END", + /* 223 */ "WHEN", + /* 224 */ "THEN", + /* 225 */ "ELSE", + /* 226 */ "BETWEEN", + /* 227 */ "IS", + /* 228 */ "NK_LT", + /* 229 */ "NK_GT", + /* 230 */ "NK_LE", + /* 231 */ "NK_GE", + /* 232 */ "NK_NE", + /* 233 */ "MATCH", + /* 234 */ "NMATCH", + /* 235 */ "CONTAINS", + /* 236 */ "IN", + /* 237 */ "JOIN", + /* 238 */ "INNER", + /* 239 */ "SELECT", + /* 240 */ "DISTINCT", + /* 241 */ "WHERE", + /* 242 */ "PARTITION", + /* 243 */ "BY", + /* 244 */ "SESSION", + /* 245 */ "STATE_WINDOW", + /* 246 */ "SLIDING", + /* 247 */ "FILL", + /* 248 */ "VALUE", + /* 249 */ "NONE", + /* 250 */ "PREV", + /* 251 */ "LINEAR", + /* 252 */ "NEXT", + /* 253 */ "HAVING", + /* 254 */ "RANGE", + /* 255 */ "EVERY", + /* 256 */ "ORDER", + /* 257 */ "SLIMIT", + /* 258 */ "SOFFSET", + /* 259 */ "LIMIT", + /* 260 */ "OFFSET", + /* 261 */ "ASC", + /* 262 */ "NULLS", + /* 263 */ "ABORT", + /* 264 */ "AFTER", + /* 265 */ "ATTACH", + /* 266 */ "BEFORE", + /* 267 */ "BEGIN", + /* 268 */ "BITAND", + /* 269 */ "BITNOT", + /* 270 */ "BITOR", + /* 271 */ "BLOCKS", + /* 272 */ "CHANGE", + /* 273 */ "COMMA", + /* 274 */ "COMPACT", + /* 275 */ "CONCAT", + /* 276 */ "CONFLICT", + /* 277 */ "COPY", + /* 278 */ "DEFERRED", + /* 279 */ "DELIMITERS", + /* 280 */ "DETACH", + /* 281 */ "DIVIDE", + /* 282 */ "DOT", + /* 283 */ "EACH", + /* 284 */ "FAIL", + /* 285 */ "FILE", + /* 286 */ "FOR", + /* 287 */ "GLOB", + /* 288 */ "ID", + /* 289 */ "IMMEDIATE", + /* 290 */ "IMPORT", + /* 291 */ "INITIALLY", + /* 292 */ "INSTEAD", + /* 293 */ "ISNULL", + /* 294 */ "KEY", + /* 295 */ "NK_BITNOT", + /* 296 */ "NK_SEMI", + /* 297 */ "NOTNULL", + /* 298 */ "OF", + /* 299 */ "PLUS", + /* 300 */ "PRIVILEGE", + /* 301 */ "RAISE", + /* 302 */ "REPLACE", + /* 303 */ "RESTRICT", + /* 304 */ "ROW", + /* 305 */ "SEMI", + /* 306 */ "STAR", + /* 307 */ "STATEMENT", + /* 308 */ "STRING", + /* 309 */ "TIMES", + /* 310 */ "UPDATE", + /* 311 */ "VALUES", + /* 312 */ "VARIABLE", + /* 313 */ "VIEW", + /* 314 */ "WAL", + /* 315 */ "cmd", + /* 316 */ "account_options", + /* 317 */ "alter_account_options", + /* 318 */ "literal", + /* 319 */ "alter_account_option", + /* 320 */ "user_name", + /* 321 */ "sysinfo_opt", + /* 322 */ "privileges", + /* 323 */ "priv_level", + /* 324 */ "priv_type_list", + /* 325 */ "priv_type", + /* 326 */ "db_name", + /* 327 */ "dnode_endpoint", + /* 328 */ "not_exists_opt", + /* 329 */ "db_options", + /* 330 */ "exists_opt", + /* 331 */ "alter_db_options", + /* 332 */ "speed_opt", + /* 333 */ "integer_list", + /* 334 */ "variable_list", + /* 335 */ "retention_list", + /* 336 */ "alter_db_option", + /* 337 */ "retention", + /* 338 */ "full_table_name", + /* 339 */ "column_def_list", + /* 340 */ "tags_def_opt", + /* 341 */ "table_options", + /* 342 */ "multi_create_clause", + /* 343 */ "tags_def", + /* 344 */ "multi_drop_clause", + /* 345 */ "alter_table_clause", + /* 346 */ "alter_table_options", + /* 347 */ "column_name", + /* 348 */ "type_name", + /* 349 */ "signed_literal", + /* 350 */ "create_subtable_clause", + /* 351 */ "specific_cols_opt", + /* 352 */ "expression_list", + /* 353 */ "drop_table_clause", + /* 354 */ "col_name_list", + /* 355 */ "table_name", + /* 356 */ "column_def", + /* 357 */ "duration_list", + /* 358 */ "rollup_func_list", + /* 359 */ "alter_table_option", + /* 360 */ "duration_literal", + /* 361 */ "rollup_func_name", + /* 362 */ "function_name", + /* 363 */ "col_name", + /* 364 */ "db_name_cond_opt", + /* 365 */ "like_pattern_opt", + /* 366 */ "table_name_cond", + /* 367 */ "from_db_opt", + /* 368 */ "index_options", + /* 369 */ "func_list", + /* 370 */ "sliding_opt", + /* 371 */ "sma_stream_opt", + /* 372 */ "func", + /* 373 */ "stream_options", + /* 374 */ "topic_name", + /* 375 */ "query_or_subquery", + /* 376 */ "cgroup_name", + /* 377 */ "analyze_opt", + /* 378 */ "explain_options", + /* 379 */ "agg_func_opt", + /* 380 */ "bufsize_opt", + /* 381 */ "stream_name", + /* 382 */ "subtable_opt", + /* 383 */ "expression", + /* 384 */ "dnode_list", + /* 385 */ "where_clause_opt", + /* 386 */ "signed", + /* 387 */ "literal_func", + /* 388 */ "literal_list", + /* 389 */ "table_alias", + /* 390 */ "column_alias", + /* 391 */ "expr_or_subquery", + /* 392 */ "subquery", + /* 393 */ "pseudo_column", + /* 394 */ "column_reference", + /* 395 */ "function_expression", + /* 396 */ "case_when_expression", + /* 397 */ "star_func", + /* 398 */ "star_func_para_list", + /* 399 */ "noarg_func", + /* 400 */ "other_para_list", + /* 401 */ "star_func_para", + /* 402 */ "when_then_list", + /* 403 */ "case_when_else_opt", + /* 404 */ "common_expression", + /* 405 */ "when_then_expr", + /* 406 */ "predicate", + /* 407 */ "compare_op", + /* 408 */ "in_op", + /* 409 */ "in_predicate_value", + /* 410 */ "boolean_value_expression", + /* 411 */ "boolean_primary", + /* 412 */ "from_clause_opt", + /* 413 */ "table_reference_list", + /* 414 */ "table_reference", + /* 415 */ "table_primary", + /* 416 */ "joined_table", + /* 417 */ "alias_opt", + /* 418 */ "parenthesized_joined_table", + /* 419 */ "join_type", + /* 420 */ "search_condition", + /* 421 */ "query_specification", + /* 422 */ "set_quantifier_opt", + /* 423 */ "select_list", + /* 424 */ "partition_by_clause_opt", + /* 425 */ "range_opt", + /* 426 */ "every_opt", + /* 427 */ "fill_opt", + /* 428 */ "twindow_clause_opt", + /* 429 */ "group_by_clause_opt", + /* 430 */ "having_clause_opt", + /* 431 */ "select_item", + /* 432 */ "partition_list", + /* 433 */ "partition_item", + /* 434 */ "fill_mode", + /* 435 */ "group_by_list", + /* 436 */ "query_expression", + /* 437 */ "query_simple", + /* 438 */ "order_by_clause_opt", + /* 439 */ "slimit_clause_opt", + /* 440 */ "limit_clause_opt", + /* 441 */ "union_query_expression", + /* 442 */ "query_simple_or_subquery", + /* 443 */ "sort_specification_list", + /* 444 */ "sort_specification", + /* 445 */ "ordering_specification_opt", + /* 446 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -1864,7 +1904,7 @@ static const char *const yyRuleName[] = { /* 64 */ "cmd ::= USE db_name", /* 65 */ "cmd ::= ALTER DATABASE db_name alter_db_options", /* 66 */ "cmd ::= FLUSH DATABASE db_name", - /* 67 */ "cmd ::= TRIM DATABASE db_name", + /* 67 */ "cmd ::= TRIM DATABASE db_name speed_opt", /* 68 */ "not_exists_opt ::= IF NOT EXISTS", /* 69 */ "not_exists_opt ::=", /* 70 */ "exists_opt ::= IF EXISTS", @@ -1917,395 +1957,404 @@ static const char *const yyRuleName[] = { /* 117 */ "retention_list ::= retention", /* 118 */ "retention_list ::= retention_list NK_COMMA retention", /* 119 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", - /* 120 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", - /* 121 */ "cmd ::= CREATE TABLE multi_create_clause", - /* 122 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", - /* 123 */ "cmd ::= DROP TABLE multi_drop_clause", - /* 124 */ "cmd ::= DROP STABLE exists_opt full_table_name", - /* 125 */ "cmd ::= ALTER TABLE alter_table_clause", - /* 126 */ "cmd ::= ALTER STABLE alter_table_clause", - /* 127 */ "alter_table_clause ::= full_table_name alter_table_options", - /* 128 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", - /* 129 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", - /* 130 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", - /* 131 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", - /* 132 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", - /* 133 */ "alter_table_clause ::= full_table_name DROP TAG column_name", - /* 134 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", - /* 135 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", - /* 136 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", - /* 137 */ "multi_create_clause ::= create_subtable_clause", - /* 138 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", - /* 139 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options", - /* 140 */ "multi_drop_clause ::= drop_table_clause", - /* 141 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", - /* 142 */ "drop_table_clause ::= exists_opt full_table_name", - /* 143 */ "specific_cols_opt ::=", - /* 144 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", - /* 145 */ "full_table_name ::= table_name", - /* 146 */ "full_table_name ::= db_name NK_DOT table_name", - /* 147 */ "column_def_list ::= column_def", - /* 148 */ "column_def_list ::= column_def_list NK_COMMA column_def", - /* 149 */ "column_def ::= column_name type_name", - /* 150 */ "column_def ::= column_name type_name COMMENT NK_STRING", - /* 151 */ "type_name ::= BOOL", - /* 152 */ "type_name ::= TINYINT", - /* 153 */ "type_name ::= SMALLINT", - /* 154 */ "type_name ::= INT", - /* 155 */ "type_name ::= INTEGER", - /* 156 */ "type_name ::= BIGINT", - /* 157 */ "type_name ::= FLOAT", - /* 158 */ "type_name ::= DOUBLE", - /* 159 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", - /* 160 */ "type_name ::= TIMESTAMP", - /* 161 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", - /* 162 */ "type_name ::= TINYINT UNSIGNED", - /* 163 */ "type_name ::= SMALLINT UNSIGNED", - /* 164 */ "type_name ::= INT UNSIGNED", - /* 165 */ "type_name ::= BIGINT UNSIGNED", - /* 166 */ "type_name ::= JSON", - /* 167 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", - /* 168 */ "type_name ::= MEDIUMBLOB", - /* 169 */ "type_name ::= BLOB", - /* 170 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", - /* 171 */ "type_name ::= DECIMAL", - /* 172 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", - /* 173 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 174 */ "tags_def_opt ::=", - /* 175 */ "tags_def_opt ::= tags_def", - /* 176 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", - /* 177 */ "table_options ::=", - /* 178 */ "table_options ::= table_options COMMENT NK_STRING", - /* 179 */ "table_options ::= table_options MAX_DELAY duration_list", - /* 180 */ "table_options ::= table_options WATERMARK duration_list", - /* 181 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", - /* 182 */ "table_options ::= table_options TTL NK_INTEGER", - /* 183 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", - /* 184 */ "alter_table_options ::= alter_table_option", - /* 185 */ "alter_table_options ::= alter_table_options alter_table_option", - /* 186 */ "alter_table_option ::= COMMENT NK_STRING", - /* 187 */ "alter_table_option ::= TTL NK_INTEGER", - /* 188 */ "duration_list ::= duration_literal", - /* 189 */ "duration_list ::= duration_list NK_COMMA duration_literal", - /* 190 */ "rollup_func_list ::= rollup_func_name", - /* 191 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", - /* 192 */ "rollup_func_name ::= function_name", - /* 193 */ "rollup_func_name ::= FIRST", - /* 194 */ "rollup_func_name ::= LAST", - /* 195 */ "col_name_list ::= col_name", - /* 196 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 197 */ "col_name ::= column_name", - /* 198 */ "cmd ::= SHOW DNODES", - /* 199 */ "cmd ::= SHOW USERS", - /* 200 */ "cmd ::= SHOW DATABASES", - /* 201 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", - /* 202 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", - /* 203 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", - /* 204 */ "cmd ::= SHOW MNODES", - /* 205 */ "cmd ::= SHOW MODULES", - /* 206 */ "cmd ::= SHOW QNODES", - /* 207 */ "cmd ::= SHOW FUNCTIONS", - /* 208 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", - /* 209 */ "cmd ::= SHOW STREAMS", - /* 210 */ "cmd ::= SHOW ACCOUNTS", - /* 211 */ "cmd ::= SHOW APPS", - /* 212 */ "cmd ::= SHOW CONNECTIONS", - /* 213 */ "cmd ::= SHOW LICENCES", - /* 214 */ "cmd ::= SHOW GRANTS", - /* 215 */ "cmd ::= SHOW CREATE DATABASE db_name", - /* 216 */ "cmd ::= SHOW CREATE TABLE full_table_name", - /* 217 */ "cmd ::= SHOW CREATE STABLE full_table_name", - /* 218 */ "cmd ::= SHOW QUERIES", - /* 219 */ "cmd ::= SHOW SCORES", - /* 220 */ "cmd ::= SHOW TOPICS", - /* 221 */ "cmd ::= SHOW VARIABLES", - /* 222 */ "cmd ::= SHOW LOCAL VARIABLES", - /* 223 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES", - /* 224 */ "cmd ::= SHOW BNODES", - /* 225 */ "cmd ::= SHOW SNODES", - /* 226 */ "cmd ::= SHOW CLUSTER", - /* 227 */ "cmd ::= SHOW TRANSACTIONS", - /* 228 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", - /* 229 */ "cmd ::= SHOW CONSUMERS", - /* 230 */ "cmd ::= SHOW SUBSCRIPTIONS", - /* 231 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", - /* 232 */ "cmd ::= SHOW VNODES NK_INTEGER", - /* 233 */ "cmd ::= SHOW VNODES NK_STRING", - /* 234 */ "db_name_cond_opt ::=", - /* 235 */ "db_name_cond_opt ::= db_name NK_DOT", - /* 236 */ "like_pattern_opt ::=", - /* 237 */ "like_pattern_opt ::= LIKE NK_STRING", - /* 238 */ "table_name_cond ::= table_name", - /* 239 */ "from_db_opt ::=", - /* 240 */ "from_db_opt ::= FROM db_name", - /* 241 */ "cmd ::= CREATE SMA INDEX not_exists_opt full_table_name ON full_table_name index_options", - /* 242 */ "cmd ::= DROP INDEX exists_opt full_table_name", - /* 243 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", - /* 244 */ "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", - /* 245 */ "func_list ::= func", - /* 246 */ "func_list ::= func_list NK_COMMA func", - /* 247 */ "func ::= function_name NK_LP expression_list NK_RP", - /* 248 */ "sma_stream_opt ::=", - /* 249 */ "sma_stream_opt ::= stream_options WATERMARK duration_literal", - /* 250 */ "sma_stream_opt ::= stream_options MAX_DELAY duration_literal", - /* 251 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", - /* 252 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name", - /* 253 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name", - /* 254 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name", - /* 255 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name", - /* 256 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 257 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", - /* 258 */ "cmd ::= DESC full_table_name", - /* 259 */ "cmd ::= DESCRIBE full_table_name", - /* 260 */ "cmd ::= RESET QUERY CACHE", - /* 261 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", - /* 262 */ "analyze_opt ::=", - /* 263 */ "analyze_opt ::= ANALYZE", - /* 264 */ "explain_options ::=", - /* 265 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 266 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 267 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", - /* 268 */ "cmd ::= DROP FUNCTION exists_opt function_name", - /* 269 */ "agg_func_opt ::=", - /* 270 */ "agg_func_opt ::= AGGREGATE", - /* 271 */ "bufsize_opt ::=", - /* 272 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", - /* 273 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name AS query_or_subquery", - /* 274 */ "cmd ::= DROP STREAM exists_opt stream_name", - /* 275 */ "stream_options ::=", - /* 276 */ "stream_options ::= stream_options TRIGGER AT_ONCE", - /* 277 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", - /* 278 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", - /* 279 */ "stream_options ::= stream_options WATERMARK duration_literal", - /* 280 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", - /* 281 */ "cmd ::= KILL CONNECTION NK_INTEGER", - /* 282 */ "cmd ::= KILL QUERY NK_STRING", - /* 283 */ "cmd ::= KILL TRANSACTION NK_INTEGER", - /* 284 */ "cmd ::= BALANCE VGROUP", - /* 285 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", - /* 286 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", - /* 287 */ "cmd ::= SPLIT VGROUP NK_INTEGER", - /* 288 */ "dnode_list ::= DNODE NK_INTEGER", - /* 289 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", - /* 290 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", - /* 291 */ "cmd ::= query_or_subquery", - /* 292 */ "cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", - /* 293 */ "cmd ::= INSERT INTO full_table_name query_or_subquery", - /* 294 */ "literal ::= NK_INTEGER", - /* 295 */ "literal ::= NK_FLOAT", - /* 296 */ "literal ::= NK_STRING", - /* 297 */ "literal ::= NK_BOOL", - /* 298 */ "literal ::= TIMESTAMP NK_STRING", - /* 299 */ "literal ::= duration_literal", - /* 300 */ "literal ::= NULL", - /* 301 */ "literal ::= NK_QUESTION", - /* 302 */ "duration_literal ::= NK_VARIABLE", - /* 303 */ "signed ::= NK_INTEGER", - /* 304 */ "signed ::= NK_PLUS NK_INTEGER", - /* 305 */ "signed ::= NK_MINUS NK_INTEGER", - /* 306 */ "signed ::= NK_FLOAT", - /* 307 */ "signed ::= NK_PLUS NK_FLOAT", - /* 308 */ "signed ::= NK_MINUS NK_FLOAT", - /* 309 */ "signed_literal ::= signed", - /* 310 */ "signed_literal ::= NK_STRING", - /* 311 */ "signed_literal ::= NK_BOOL", - /* 312 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 313 */ "signed_literal ::= duration_literal", - /* 314 */ "signed_literal ::= NULL", - /* 315 */ "signed_literal ::= literal_func", - /* 316 */ "signed_literal ::= NK_QUESTION", - /* 317 */ "literal_list ::= signed_literal", - /* 318 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 319 */ "db_name ::= NK_ID", - /* 320 */ "table_name ::= NK_ID", - /* 321 */ "column_name ::= NK_ID", - /* 322 */ "function_name ::= NK_ID", - /* 323 */ "table_alias ::= NK_ID", - /* 324 */ "column_alias ::= NK_ID", - /* 325 */ "user_name ::= NK_ID", - /* 326 */ "topic_name ::= NK_ID", - /* 327 */ "stream_name ::= NK_ID", - /* 328 */ "cgroup_name ::= NK_ID", - /* 329 */ "expr_or_subquery ::= expression", - /* 330 */ "expr_or_subquery ::= subquery", - /* 331 */ "expression ::= literal", - /* 332 */ "expression ::= pseudo_column", - /* 333 */ "expression ::= column_reference", - /* 334 */ "expression ::= function_expression", - /* 335 */ "expression ::= case_when_expression", - /* 336 */ "expression ::= NK_LP expression NK_RP", - /* 337 */ "expression ::= NK_PLUS expr_or_subquery", - /* 338 */ "expression ::= NK_MINUS expr_or_subquery", - /* 339 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", - /* 340 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", - /* 341 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", - /* 342 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", - /* 343 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", - /* 344 */ "expression ::= column_reference NK_ARROW NK_STRING", - /* 345 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", - /* 346 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", - /* 347 */ "expression_list ::= expr_or_subquery", - /* 348 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", - /* 349 */ "column_reference ::= column_name", - /* 350 */ "column_reference ::= table_name NK_DOT column_name", - /* 351 */ "pseudo_column ::= ROWTS", - /* 352 */ "pseudo_column ::= TBNAME", - /* 353 */ "pseudo_column ::= table_name NK_DOT TBNAME", - /* 354 */ "pseudo_column ::= QSTART", - /* 355 */ "pseudo_column ::= QEND", - /* 356 */ "pseudo_column ::= QDURATION", - /* 357 */ "pseudo_column ::= WSTART", - /* 358 */ "pseudo_column ::= WEND", - /* 359 */ "pseudo_column ::= WDURATION", - /* 360 */ "function_expression ::= function_name NK_LP expression_list NK_RP", - /* 361 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", - /* 362 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", - /* 363 */ "function_expression ::= literal_func", - /* 364 */ "literal_func ::= noarg_func NK_LP NK_RP", - /* 365 */ "literal_func ::= NOW", - /* 366 */ "noarg_func ::= NOW", - /* 367 */ "noarg_func ::= TODAY", - /* 368 */ "noarg_func ::= TIMEZONE", - /* 369 */ "noarg_func ::= DATABASE", - /* 370 */ "noarg_func ::= CLIENT_VERSION", - /* 371 */ "noarg_func ::= SERVER_VERSION", - /* 372 */ "noarg_func ::= SERVER_STATUS", - /* 373 */ "noarg_func ::= CURRENT_USER", - /* 374 */ "noarg_func ::= USER", - /* 375 */ "star_func ::= COUNT", - /* 376 */ "star_func ::= FIRST", - /* 377 */ "star_func ::= LAST", - /* 378 */ "star_func ::= LAST_ROW", - /* 379 */ "star_func_para_list ::= NK_STAR", - /* 380 */ "star_func_para_list ::= other_para_list", - /* 381 */ "other_para_list ::= star_func_para", - /* 382 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", - /* 383 */ "star_func_para ::= expr_or_subquery", - /* 384 */ "star_func_para ::= table_name NK_DOT NK_STAR", - /* 385 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", - /* 386 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", - /* 387 */ "when_then_list ::= when_then_expr", - /* 388 */ "when_then_list ::= when_then_list when_then_expr", - /* 389 */ "when_then_expr ::= WHEN common_expression THEN common_expression", - /* 390 */ "case_when_else_opt ::=", - /* 391 */ "case_when_else_opt ::= ELSE common_expression", - /* 392 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", - /* 393 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", - /* 394 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", - /* 395 */ "predicate ::= expr_or_subquery IS NULL", - /* 396 */ "predicate ::= expr_or_subquery IS NOT NULL", - /* 397 */ "predicate ::= expr_or_subquery in_op in_predicate_value", - /* 398 */ "compare_op ::= NK_LT", - /* 399 */ "compare_op ::= NK_GT", - /* 400 */ "compare_op ::= NK_LE", - /* 401 */ "compare_op ::= NK_GE", - /* 402 */ "compare_op ::= NK_NE", - /* 403 */ "compare_op ::= NK_EQ", - /* 404 */ "compare_op ::= LIKE", - /* 405 */ "compare_op ::= NOT LIKE", - /* 406 */ "compare_op ::= MATCH", - /* 407 */ "compare_op ::= NMATCH", - /* 408 */ "compare_op ::= CONTAINS", - /* 409 */ "in_op ::= IN", - /* 410 */ "in_op ::= NOT IN", - /* 411 */ "in_predicate_value ::= NK_LP literal_list NK_RP", - /* 412 */ "boolean_value_expression ::= boolean_primary", - /* 413 */ "boolean_value_expression ::= NOT boolean_primary", - /* 414 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 415 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 416 */ "boolean_primary ::= predicate", - /* 417 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 418 */ "common_expression ::= expr_or_subquery", - /* 419 */ "common_expression ::= boolean_value_expression", - /* 420 */ "from_clause_opt ::=", - /* 421 */ "from_clause_opt ::= FROM table_reference_list", - /* 422 */ "table_reference_list ::= table_reference", - /* 423 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 424 */ "table_reference ::= table_primary", - /* 425 */ "table_reference ::= joined_table", - /* 426 */ "table_primary ::= table_name alias_opt", - /* 427 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 428 */ "table_primary ::= subquery alias_opt", - /* 429 */ "table_primary ::= parenthesized_joined_table", - /* 430 */ "alias_opt ::=", - /* 431 */ "alias_opt ::= table_alias", - /* 432 */ "alias_opt ::= AS table_alias", - /* 433 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 434 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 435 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 436 */ "join_type ::=", - /* 437 */ "join_type ::= INNER", - /* 438 */ "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", - /* 439 */ "set_quantifier_opt ::=", - /* 440 */ "set_quantifier_opt ::= DISTINCT", - /* 441 */ "set_quantifier_opt ::= ALL", - /* 442 */ "select_list ::= select_item", - /* 443 */ "select_list ::= select_list NK_COMMA select_item", - /* 444 */ "select_item ::= NK_STAR", - /* 445 */ "select_item ::= common_expression", - /* 446 */ "select_item ::= common_expression column_alias", - /* 447 */ "select_item ::= common_expression AS column_alias", - /* 448 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 449 */ "where_clause_opt ::=", - /* 450 */ "where_clause_opt ::= WHERE search_condition", - /* 451 */ "partition_by_clause_opt ::=", - /* 452 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 453 */ "twindow_clause_opt ::=", - /* 454 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 455 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", - /* 456 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 457 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 458 */ "sliding_opt ::=", - /* 459 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 460 */ "fill_opt ::=", - /* 461 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 462 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 463 */ "fill_mode ::= NONE", - /* 464 */ "fill_mode ::= PREV", - /* 465 */ "fill_mode ::= NULL", - /* 466 */ "fill_mode ::= LINEAR", - /* 467 */ "fill_mode ::= NEXT", - /* 468 */ "group_by_clause_opt ::=", - /* 469 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 470 */ "group_by_list ::= expr_or_subquery", - /* 471 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", - /* 472 */ "having_clause_opt ::=", - /* 473 */ "having_clause_opt ::= HAVING search_condition", - /* 474 */ "range_opt ::=", - /* 475 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", - /* 476 */ "every_opt ::=", - /* 477 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", - /* 478 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 479 */ "query_simple ::= query_specification", - /* 480 */ "query_simple ::= union_query_expression", - /* 481 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", - /* 482 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", - /* 483 */ "query_simple_or_subquery ::= query_simple", - /* 484 */ "query_simple_or_subquery ::= subquery", - /* 485 */ "query_or_subquery ::= query_expression", - /* 486 */ "query_or_subquery ::= subquery", - /* 487 */ "order_by_clause_opt ::=", - /* 488 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 489 */ "slimit_clause_opt ::=", - /* 490 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 491 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 492 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 493 */ "limit_clause_opt ::=", - /* 494 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 495 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 496 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 497 */ "subquery ::= NK_LP query_expression NK_RP", - /* 498 */ "subquery ::= NK_LP subquery NK_RP", - /* 499 */ "search_condition ::= common_expression", - /* 500 */ "sort_specification_list ::= sort_specification", - /* 501 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 502 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", - /* 503 */ "ordering_specification_opt ::=", - /* 504 */ "ordering_specification_opt ::= ASC", - /* 505 */ "ordering_specification_opt ::= DESC", - /* 506 */ "null_ordering_opt ::=", - /* 507 */ "null_ordering_opt ::= NULLS FIRST", - /* 508 */ "null_ordering_opt ::= NULLS LAST", + /* 120 */ "speed_opt ::=", + /* 121 */ "speed_opt ::= MAX_SPEED NK_INTEGER", + /* 122 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", + /* 123 */ "cmd ::= CREATE TABLE multi_create_clause", + /* 124 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", + /* 125 */ "cmd ::= DROP TABLE multi_drop_clause", + /* 126 */ "cmd ::= DROP STABLE exists_opt full_table_name", + /* 127 */ "cmd ::= ALTER TABLE alter_table_clause", + /* 128 */ "cmd ::= ALTER STABLE alter_table_clause", + /* 129 */ "alter_table_clause ::= full_table_name alter_table_options", + /* 130 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", + /* 131 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", + /* 132 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", + /* 133 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", + /* 134 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", + /* 135 */ "alter_table_clause ::= full_table_name DROP TAG column_name", + /* 136 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", + /* 137 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", + /* 138 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", + /* 139 */ "multi_create_clause ::= create_subtable_clause", + /* 140 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", + /* 141 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options", + /* 142 */ "multi_drop_clause ::= drop_table_clause", + /* 143 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", + /* 144 */ "drop_table_clause ::= exists_opt full_table_name", + /* 145 */ "specific_cols_opt ::=", + /* 146 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", + /* 147 */ "full_table_name ::= table_name", + /* 148 */ "full_table_name ::= db_name NK_DOT table_name", + /* 149 */ "column_def_list ::= column_def", + /* 150 */ "column_def_list ::= column_def_list NK_COMMA column_def", + /* 151 */ "column_def ::= column_name type_name", + /* 152 */ "column_def ::= column_name type_name COMMENT NK_STRING", + /* 153 */ "type_name ::= BOOL", + /* 154 */ "type_name ::= TINYINT", + /* 155 */ "type_name ::= SMALLINT", + /* 156 */ "type_name ::= INT", + /* 157 */ "type_name ::= INTEGER", + /* 158 */ "type_name ::= BIGINT", + /* 159 */ "type_name ::= FLOAT", + /* 160 */ "type_name ::= DOUBLE", + /* 161 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", + /* 162 */ "type_name ::= TIMESTAMP", + /* 163 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", + /* 164 */ "type_name ::= TINYINT UNSIGNED", + /* 165 */ "type_name ::= SMALLINT UNSIGNED", + /* 166 */ "type_name ::= INT UNSIGNED", + /* 167 */ "type_name ::= BIGINT UNSIGNED", + /* 168 */ "type_name ::= JSON", + /* 169 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", + /* 170 */ "type_name ::= MEDIUMBLOB", + /* 171 */ "type_name ::= BLOB", + /* 172 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", + /* 173 */ "type_name ::= DECIMAL", + /* 174 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", + /* 175 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 176 */ "tags_def_opt ::=", + /* 177 */ "tags_def_opt ::= tags_def", + /* 178 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", + /* 179 */ "table_options ::=", + /* 180 */ "table_options ::= table_options COMMENT NK_STRING", + /* 181 */ "table_options ::= table_options MAX_DELAY duration_list", + /* 182 */ "table_options ::= table_options WATERMARK duration_list", + /* 183 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", + /* 184 */ "table_options ::= table_options TTL NK_INTEGER", + /* 185 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 186 */ "alter_table_options ::= alter_table_option", + /* 187 */ "alter_table_options ::= alter_table_options alter_table_option", + /* 188 */ "alter_table_option ::= COMMENT NK_STRING", + /* 189 */ "alter_table_option ::= TTL NK_INTEGER", + /* 190 */ "duration_list ::= duration_literal", + /* 191 */ "duration_list ::= duration_list NK_COMMA duration_literal", + /* 192 */ "rollup_func_list ::= rollup_func_name", + /* 193 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", + /* 194 */ "rollup_func_name ::= function_name", + /* 195 */ "rollup_func_name ::= FIRST", + /* 196 */ "rollup_func_name ::= LAST", + /* 197 */ "col_name_list ::= col_name", + /* 198 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 199 */ "col_name ::= column_name", + /* 200 */ "cmd ::= SHOW DNODES", + /* 201 */ "cmd ::= SHOW USERS", + /* 202 */ "cmd ::= SHOW DATABASES", + /* 203 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", + /* 204 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", + /* 205 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", + /* 206 */ "cmd ::= SHOW MNODES", + /* 207 */ "cmd ::= SHOW MODULES", + /* 208 */ "cmd ::= SHOW QNODES", + /* 209 */ "cmd ::= SHOW FUNCTIONS", + /* 210 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", + /* 211 */ "cmd ::= SHOW STREAMS", + /* 212 */ "cmd ::= SHOW ACCOUNTS", + /* 213 */ "cmd ::= SHOW APPS", + /* 214 */ "cmd ::= SHOW CONNECTIONS", + /* 215 */ "cmd ::= SHOW LICENCES", + /* 216 */ "cmd ::= SHOW GRANTS", + /* 217 */ "cmd ::= SHOW CREATE DATABASE db_name", + /* 218 */ "cmd ::= SHOW CREATE TABLE full_table_name", + /* 219 */ "cmd ::= SHOW CREATE STABLE full_table_name", + /* 220 */ "cmd ::= SHOW QUERIES", + /* 221 */ "cmd ::= SHOW SCORES", + /* 222 */ "cmd ::= SHOW TOPICS", + /* 223 */ "cmd ::= SHOW VARIABLES", + /* 224 */ "cmd ::= SHOW LOCAL VARIABLES", + /* 225 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES", + /* 226 */ "cmd ::= SHOW BNODES", + /* 227 */ "cmd ::= SHOW SNODES", + /* 228 */ "cmd ::= SHOW CLUSTER", + /* 229 */ "cmd ::= SHOW TRANSACTIONS", + /* 230 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", + /* 231 */ "cmd ::= SHOW CONSUMERS", + /* 232 */ "cmd ::= SHOW SUBSCRIPTIONS", + /* 233 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", + /* 234 */ "cmd ::= SHOW VNODES NK_INTEGER", + /* 235 */ "cmd ::= SHOW VNODES NK_STRING", + /* 236 */ "db_name_cond_opt ::=", + /* 237 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 238 */ "like_pattern_opt ::=", + /* 239 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 240 */ "table_name_cond ::= table_name", + /* 241 */ "from_db_opt ::=", + /* 242 */ "from_db_opt ::= FROM db_name", + /* 243 */ "cmd ::= CREATE SMA INDEX not_exists_opt full_table_name ON full_table_name index_options", + /* 244 */ "cmd ::= DROP INDEX exists_opt full_table_name", + /* 245 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", + /* 246 */ "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", + /* 247 */ "func_list ::= func", + /* 248 */ "func_list ::= func_list NK_COMMA func", + /* 249 */ "func ::= function_name NK_LP expression_list NK_RP", + /* 250 */ "sma_stream_opt ::=", + /* 251 */ "sma_stream_opt ::= stream_options WATERMARK duration_literal", + /* 252 */ "sma_stream_opt ::= stream_options MAX_DELAY duration_literal", + /* 253 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", + /* 254 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name", + /* 255 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name", + /* 256 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name", + /* 257 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name", + /* 258 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 259 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", + /* 260 */ "cmd ::= DESC full_table_name", + /* 261 */ "cmd ::= DESCRIBE full_table_name", + /* 262 */ "cmd ::= RESET QUERY CACHE", + /* 263 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", + /* 264 */ "analyze_opt ::=", + /* 265 */ "analyze_opt ::= ANALYZE", + /* 266 */ "explain_options ::=", + /* 267 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 268 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 269 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", + /* 270 */ "cmd ::= DROP FUNCTION exists_opt function_name", + /* 271 */ "agg_func_opt ::=", + /* 272 */ "agg_func_opt ::= AGGREGATE", + /* 273 */ "bufsize_opt ::=", + /* 274 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", + /* 275 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name tags_def_opt subtable_opt AS query_or_subquery", + /* 276 */ "cmd ::= DROP STREAM exists_opt stream_name", + /* 277 */ "stream_options ::=", + /* 278 */ "stream_options ::= stream_options TRIGGER AT_ONCE", + /* 279 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", + /* 280 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", + /* 281 */ "stream_options ::= stream_options WATERMARK duration_literal", + /* 282 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", + /* 283 */ "subtable_opt ::=", + /* 284 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", + /* 285 */ "cmd ::= KILL CONNECTION NK_INTEGER", + /* 286 */ "cmd ::= KILL QUERY NK_STRING", + /* 287 */ "cmd ::= KILL TRANSACTION NK_INTEGER", + /* 288 */ "cmd ::= BALANCE VGROUP", + /* 289 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", + /* 290 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", + /* 291 */ "cmd ::= SPLIT VGROUP NK_INTEGER", + /* 292 */ "dnode_list ::= DNODE NK_INTEGER", + /* 293 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", + /* 294 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", + /* 295 */ "cmd ::= query_or_subquery", + /* 296 */ "cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", + /* 297 */ "cmd ::= INSERT INTO full_table_name query_or_subquery", + /* 298 */ "literal ::= NK_INTEGER", + /* 299 */ "literal ::= NK_FLOAT", + /* 300 */ "literal ::= NK_STRING", + /* 301 */ "literal ::= NK_BOOL", + /* 302 */ "literal ::= TIMESTAMP NK_STRING", + /* 303 */ "literal ::= duration_literal", + /* 304 */ "literal ::= NULL", + /* 305 */ "literal ::= NK_QUESTION", + /* 306 */ "duration_literal ::= NK_VARIABLE", + /* 307 */ "signed ::= NK_INTEGER", + /* 308 */ "signed ::= NK_PLUS NK_INTEGER", + /* 309 */ "signed ::= NK_MINUS NK_INTEGER", + /* 310 */ "signed ::= NK_FLOAT", + /* 311 */ "signed ::= NK_PLUS NK_FLOAT", + /* 312 */ "signed ::= NK_MINUS NK_FLOAT", + /* 313 */ "signed_literal ::= signed", + /* 314 */ "signed_literal ::= NK_STRING", + /* 315 */ "signed_literal ::= NK_BOOL", + /* 316 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 317 */ "signed_literal ::= duration_literal", + /* 318 */ "signed_literal ::= NULL", + /* 319 */ "signed_literal ::= literal_func", + /* 320 */ "signed_literal ::= NK_QUESTION", + /* 321 */ "literal_list ::= signed_literal", + /* 322 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 323 */ "db_name ::= NK_ID", + /* 324 */ "table_name ::= NK_ID", + /* 325 */ "column_name ::= NK_ID", + /* 326 */ "function_name ::= NK_ID", + /* 327 */ "table_alias ::= NK_ID", + /* 328 */ "column_alias ::= NK_ID", + /* 329 */ "user_name ::= NK_ID", + /* 330 */ "topic_name ::= NK_ID", + /* 331 */ "stream_name ::= NK_ID", + /* 332 */ "cgroup_name ::= NK_ID", + /* 333 */ "expr_or_subquery ::= expression", + /* 334 */ "expr_or_subquery ::= subquery", + /* 335 */ "expression ::= literal", + /* 336 */ "expression ::= pseudo_column", + /* 337 */ "expression ::= column_reference", + /* 338 */ "expression ::= function_expression", + /* 339 */ "expression ::= case_when_expression", + /* 340 */ "expression ::= NK_LP expression NK_RP", + /* 341 */ "expression ::= NK_PLUS expr_or_subquery", + /* 342 */ "expression ::= NK_MINUS expr_or_subquery", + /* 343 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", + /* 344 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", + /* 345 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", + /* 346 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", + /* 347 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", + /* 348 */ "expression ::= column_reference NK_ARROW NK_STRING", + /* 349 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", + /* 350 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", + /* 351 */ "expression_list ::= expr_or_subquery", + /* 352 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", + /* 353 */ "column_reference ::= column_name", + /* 354 */ "column_reference ::= table_name NK_DOT column_name", + /* 355 */ "pseudo_column ::= ROWTS", + /* 356 */ "pseudo_column ::= TBNAME", + /* 357 */ "pseudo_column ::= table_name NK_DOT TBNAME", + /* 358 */ "pseudo_column ::= QSTART", + /* 359 */ "pseudo_column ::= QEND", + /* 360 */ "pseudo_column ::= QDURATION", + /* 361 */ "pseudo_column ::= WSTART", + /* 362 */ "pseudo_column ::= WEND", + /* 363 */ "pseudo_column ::= WDURATION", + /* 364 */ "function_expression ::= function_name NK_LP expression_list NK_RP", + /* 365 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", + /* 366 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", + /* 367 */ "function_expression ::= literal_func", + /* 368 */ "literal_func ::= noarg_func NK_LP NK_RP", + /* 369 */ "literal_func ::= NOW", + /* 370 */ "noarg_func ::= NOW", + /* 371 */ "noarg_func ::= TODAY", + /* 372 */ "noarg_func ::= TIMEZONE", + /* 373 */ "noarg_func ::= DATABASE", + /* 374 */ "noarg_func ::= CLIENT_VERSION", + /* 375 */ "noarg_func ::= SERVER_VERSION", + /* 376 */ "noarg_func ::= SERVER_STATUS", + /* 377 */ "noarg_func ::= CURRENT_USER", + /* 378 */ "noarg_func ::= USER", + /* 379 */ "star_func ::= COUNT", + /* 380 */ "star_func ::= FIRST", + /* 381 */ "star_func ::= LAST", + /* 382 */ "star_func ::= LAST_ROW", + /* 383 */ "star_func_para_list ::= NK_STAR", + /* 384 */ "star_func_para_list ::= other_para_list", + /* 385 */ "other_para_list ::= star_func_para", + /* 386 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", + /* 387 */ "star_func_para ::= expr_or_subquery", + /* 388 */ "star_func_para ::= table_name NK_DOT NK_STAR", + /* 389 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", + /* 390 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", + /* 391 */ "when_then_list ::= when_then_expr", + /* 392 */ "when_then_list ::= when_then_list when_then_expr", + /* 393 */ "when_then_expr ::= WHEN common_expression THEN common_expression", + /* 394 */ "case_when_else_opt ::=", + /* 395 */ "case_when_else_opt ::= ELSE common_expression", + /* 396 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", + /* 397 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", + /* 398 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", + /* 399 */ "predicate ::= expr_or_subquery IS NULL", + /* 400 */ "predicate ::= expr_or_subquery IS NOT NULL", + /* 401 */ "predicate ::= expr_or_subquery in_op in_predicate_value", + /* 402 */ "compare_op ::= NK_LT", + /* 403 */ "compare_op ::= NK_GT", + /* 404 */ "compare_op ::= NK_LE", + /* 405 */ "compare_op ::= NK_GE", + /* 406 */ "compare_op ::= NK_NE", + /* 407 */ "compare_op ::= NK_EQ", + /* 408 */ "compare_op ::= LIKE", + /* 409 */ "compare_op ::= NOT LIKE", + /* 410 */ "compare_op ::= MATCH", + /* 411 */ "compare_op ::= NMATCH", + /* 412 */ "compare_op ::= CONTAINS", + /* 413 */ "in_op ::= IN", + /* 414 */ "in_op ::= NOT IN", + /* 415 */ "in_predicate_value ::= NK_LP literal_list NK_RP", + /* 416 */ "boolean_value_expression ::= boolean_primary", + /* 417 */ "boolean_value_expression ::= NOT boolean_primary", + /* 418 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 419 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 420 */ "boolean_primary ::= predicate", + /* 421 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 422 */ "common_expression ::= expr_or_subquery", + /* 423 */ "common_expression ::= boolean_value_expression", + /* 424 */ "from_clause_opt ::=", + /* 425 */ "from_clause_opt ::= FROM table_reference_list", + /* 426 */ "table_reference_list ::= table_reference", + /* 427 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 428 */ "table_reference ::= table_primary", + /* 429 */ "table_reference ::= joined_table", + /* 430 */ "table_primary ::= table_name alias_opt", + /* 431 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 432 */ "table_primary ::= subquery alias_opt", + /* 433 */ "table_primary ::= parenthesized_joined_table", + /* 434 */ "alias_opt ::=", + /* 435 */ "alias_opt ::= table_alias", + /* 436 */ "alias_opt ::= AS table_alias", + /* 437 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 438 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 439 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 440 */ "join_type ::=", + /* 441 */ "join_type ::= INNER", + /* 442 */ "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", + /* 443 */ "set_quantifier_opt ::=", + /* 444 */ "set_quantifier_opt ::= DISTINCT", + /* 445 */ "set_quantifier_opt ::= ALL", + /* 446 */ "select_list ::= select_item", + /* 447 */ "select_list ::= select_list NK_COMMA select_item", + /* 448 */ "select_item ::= NK_STAR", + /* 449 */ "select_item ::= common_expression", + /* 450 */ "select_item ::= common_expression column_alias", + /* 451 */ "select_item ::= common_expression AS column_alias", + /* 452 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 453 */ "where_clause_opt ::=", + /* 454 */ "where_clause_opt ::= WHERE search_condition", + /* 455 */ "partition_by_clause_opt ::=", + /* 456 */ "partition_by_clause_opt ::= PARTITION BY partition_list", + /* 457 */ "partition_list ::= partition_item", + /* 458 */ "partition_list ::= partition_list NK_COMMA partition_item", + /* 459 */ "partition_item ::= expr_or_subquery", + /* 460 */ "partition_item ::= expr_or_subquery column_alias", + /* 461 */ "partition_item ::= expr_or_subquery AS column_alias", + /* 462 */ "twindow_clause_opt ::=", + /* 463 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 464 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", + /* 465 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 466 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 467 */ "sliding_opt ::=", + /* 468 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 469 */ "fill_opt ::=", + /* 470 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 471 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 472 */ "fill_mode ::= NONE", + /* 473 */ "fill_mode ::= PREV", + /* 474 */ "fill_mode ::= NULL", + /* 475 */ "fill_mode ::= LINEAR", + /* 476 */ "fill_mode ::= NEXT", + /* 477 */ "group_by_clause_opt ::=", + /* 478 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 479 */ "group_by_list ::= expr_or_subquery", + /* 480 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", + /* 481 */ "having_clause_opt ::=", + /* 482 */ "having_clause_opt ::= HAVING search_condition", + /* 483 */ "range_opt ::=", + /* 484 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", + /* 485 */ "every_opt ::=", + /* 486 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", + /* 487 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 488 */ "query_simple ::= query_specification", + /* 489 */ "query_simple ::= union_query_expression", + /* 490 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", + /* 491 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", + /* 492 */ "query_simple_or_subquery ::= query_simple", + /* 493 */ "query_simple_or_subquery ::= subquery", + /* 494 */ "query_or_subquery ::= query_expression", + /* 495 */ "query_or_subquery ::= subquery", + /* 496 */ "order_by_clause_opt ::=", + /* 497 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 498 */ "slimit_clause_opt ::=", + /* 499 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 500 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 501 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 502 */ "limit_clause_opt ::=", + /* 503 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 504 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 505 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 506 */ "subquery ::= NK_LP query_expression NK_RP", + /* 507 */ "subquery ::= NK_LP subquery NK_RP", + /* 508 */ "search_condition ::= common_expression", + /* 509 */ "sort_specification_list ::= sort_specification", + /* 510 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 511 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", + /* 512 */ "ordering_specification_opt ::=", + /* 513 */ "ordering_specification_opt ::= ASC", + /* 514 */ "ordering_specification_opt ::= DESC", + /* 515 */ "null_ordering_opt ::=", + /* 516 */ "null_ordering_opt ::= NULLS FIRST", + /* 517 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -2432,186 +2481,190 @@ static void yy_destructor( */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ - case 313: /* cmd */ - case 316: /* literal */ - case 327: /* db_options */ - case 329: /* alter_db_options */ - case 334: /* retention */ - case 335: /* full_table_name */ - case 338: /* table_options */ - case 342: /* alter_table_clause */ - case 343: /* alter_table_options */ - case 346: /* signed_literal */ - case 347: /* create_subtable_clause */ - case 350: /* drop_table_clause */ - case 353: /* column_def */ - case 357: /* duration_literal */ - case 358: /* rollup_func_name */ - case 360: /* col_name */ - case 361: /* db_name_cond_opt */ - case 362: /* like_pattern_opt */ - case 363: /* table_name_cond */ - case 364: /* from_db_opt */ - case 365: /* index_options */ - case 367: /* sliding_opt */ - case 368: /* sma_stream_opt */ - case 369: /* func */ - case 370: /* stream_options */ - case 372: /* query_or_subquery */ - case 375: /* explain_options */ - case 380: /* where_clause_opt */ - case 381: /* signed */ - case 382: /* literal_func */ - case 386: /* expr_or_subquery */ - case 387: /* expression */ - case 388: /* subquery */ - case 389: /* pseudo_column */ - case 390: /* column_reference */ - case 391: /* function_expression */ - case 392: /* case_when_expression */ - case 397: /* star_func_para */ - case 399: /* case_when_else_opt */ - case 400: /* common_expression */ - case 401: /* when_then_expr */ - case 402: /* predicate */ - case 405: /* in_predicate_value */ - case 406: /* boolean_value_expression */ - case 407: /* boolean_primary */ - case 408: /* from_clause_opt */ - case 409: /* table_reference_list */ - case 410: /* table_reference */ - case 411: /* table_primary */ - case 412: /* joined_table */ - case 414: /* parenthesized_joined_table */ - case 416: /* search_condition */ - case 417: /* query_specification */ - case 421: /* range_opt */ - case 422: /* every_opt */ - case 423: /* fill_opt */ - case 424: /* twindow_clause_opt */ - case 426: /* having_clause_opt */ - case 427: /* select_item */ - case 430: /* query_expression */ - case 431: /* query_simple */ - case 433: /* slimit_clause_opt */ - case 434: /* limit_clause_opt */ - case 435: /* union_query_expression */ - case 436: /* query_simple_or_subquery */ - case 438: /* sort_specification */ + case 315: /* cmd */ + case 318: /* literal */ + case 329: /* db_options */ + case 331: /* alter_db_options */ + case 337: /* retention */ + case 338: /* full_table_name */ + case 341: /* table_options */ + case 345: /* alter_table_clause */ + case 346: /* alter_table_options */ + case 349: /* signed_literal */ + case 350: /* create_subtable_clause */ + case 353: /* drop_table_clause */ + case 356: /* column_def */ + case 360: /* duration_literal */ + case 361: /* rollup_func_name */ + case 363: /* col_name */ + case 364: /* db_name_cond_opt */ + case 365: /* like_pattern_opt */ + case 366: /* table_name_cond */ + case 367: /* from_db_opt */ + case 368: /* index_options */ + case 370: /* sliding_opt */ + case 371: /* sma_stream_opt */ + case 372: /* func */ + case 373: /* stream_options */ + case 375: /* query_or_subquery */ + case 378: /* explain_options */ + case 382: /* subtable_opt */ + case 383: /* expression */ + case 385: /* where_clause_opt */ + case 386: /* signed */ + case 387: /* literal_func */ + case 391: /* expr_or_subquery */ + case 392: /* subquery */ + case 393: /* pseudo_column */ + case 394: /* column_reference */ + case 395: /* function_expression */ + case 396: /* case_when_expression */ + case 401: /* star_func_para */ + case 403: /* case_when_else_opt */ + case 404: /* common_expression */ + case 405: /* when_then_expr */ + case 406: /* predicate */ + case 409: /* in_predicate_value */ + case 410: /* boolean_value_expression */ + case 411: /* boolean_primary */ + case 412: /* from_clause_opt */ + case 413: /* table_reference_list */ + case 414: /* table_reference */ + case 415: /* table_primary */ + case 416: /* joined_table */ + case 418: /* parenthesized_joined_table */ + case 420: /* search_condition */ + case 421: /* query_specification */ + case 425: /* range_opt */ + case 426: /* every_opt */ + case 427: /* fill_opt */ + case 428: /* twindow_clause_opt */ + case 430: /* having_clause_opt */ + case 431: /* select_item */ + case 433: /* partition_item */ + case 436: /* query_expression */ + case 437: /* query_simple */ + case 439: /* slimit_clause_opt */ + case 440: /* limit_clause_opt */ + case 441: /* union_query_expression */ + case 442: /* query_simple_or_subquery */ + case 444: /* sort_specification */ { - nodesDestroyNode((yypminor->yy560)); + nodesDestroyNode((yypminor->yy392)); } break; - case 314: /* account_options */ - case 315: /* alter_account_options */ - case 317: /* alter_account_option */ - case 377: /* bufsize_opt */ + case 316: /* account_options */ + case 317: /* alter_account_options */ + case 319: /* alter_account_option */ + case 332: /* speed_opt */ + case 380: /* bufsize_opt */ { } break; - case 318: /* user_name */ - case 321: /* priv_level */ - case 324: /* db_name */ - case 325: /* dnode_endpoint */ - case 344: /* column_name */ - case 352: /* table_name */ - case 359: /* function_name */ - case 371: /* topic_name */ - case 373: /* cgroup_name */ - case 378: /* stream_name */ - case 384: /* table_alias */ - case 385: /* column_alias */ - case 393: /* star_func */ - case 395: /* noarg_func */ - case 413: /* alias_opt */ + case 320: /* user_name */ + case 323: /* priv_level */ + case 326: /* db_name */ + case 327: /* dnode_endpoint */ + case 347: /* column_name */ + case 355: /* table_name */ + case 362: /* function_name */ + case 374: /* topic_name */ + case 376: /* cgroup_name */ + case 381: /* stream_name */ + case 389: /* table_alias */ + case 390: /* column_alias */ + case 397: /* star_func */ + case 399: /* noarg_func */ + case 417: /* alias_opt */ { } break; - case 319: /* sysinfo_opt */ + case 321: /* sysinfo_opt */ { } break; - case 320: /* privileges */ - case 322: /* priv_type_list */ - case 323: /* priv_type */ + case 322: /* privileges */ + case 324: /* priv_type_list */ + case 325: /* priv_type */ { } break; - case 326: /* not_exists_opt */ - case 328: /* exists_opt */ - case 374: /* analyze_opt */ - case 376: /* agg_func_opt */ - case 418: /* set_quantifier_opt */ + case 328: /* not_exists_opt */ + case 330: /* exists_opt */ + case 377: /* analyze_opt */ + case 379: /* agg_func_opt */ + case 422: /* set_quantifier_opt */ { } break; - case 330: /* integer_list */ - case 331: /* variable_list */ - case 332: /* retention_list */ - case 336: /* column_def_list */ - case 337: /* tags_def_opt */ - case 339: /* multi_create_clause */ - case 340: /* tags_def */ - case 341: /* multi_drop_clause */ - case 348: /* specific_cols_opt */ - case 349: /* expression_list */ - case 351: /* col_name_list */ - case 354: /* duration_list */ - case 355: /* rollup_func_list */ - case 366: /* func_list */ - case 379: /* dnode_list */ - case 383: /* literal_list */ - case 394: /* star_func_para_list */ - case 396: /* other_para_list */ - case 398: /* when_then_list */ - case 419: /* select_list */ - case 420: /* partition_by_clause_opt */ - case 425: /* group_by_clause_opt */ - case 429: /* group_by_list */ - case 432: /* order_by_clause_opt */ - case 437: /* sort_specification_list */ + case 333: /* integer_list */ + case 334: /* variable_list */ + case 335: /* retention_list */ + case 339: /* column_def_list */ + case 340: /* tags_def_opt */ + case 342: /* multi_create_clause */ + case 343: /* tags_def */ + case 344: /* multi_drop_clause */ + case 351: /* specific_cols_opt */ + case 352: /* expression_list */ + case 354: /* col_name_list */ + case 357: /* duration_list */ + case 358: /* rollup_func_list */ + case 369: /* func_list */ + case 384: /* dnode_list */ + case 388: /* literal_list */ + case 398: /* star_func_para_list */ + case 400: /* other_para_list */ + case 402: /* when_then_list */ + case 423: /* select_list */ + case 424: /* partition_by_clause_opt */ + case 429: /* group_by_clause_opt */ + case 432: /* partition_list */ + case 435: /* group_by_list */ + case 438: /* order_by_clause_opt */ + case 443: /* sort_specification_list */ { - nodesDestroyList((yypminor->yy334)); + nodesDestroyList((yypminor->yy148)); } break; - case 333: /* alter_db_option */ - case 356: /* alter_table_option */ + case 336: /* alter_db_option */ + case 359: /* alter_table_option */ { } break; - case 345: /* type_name */ + case 348: /* type_name */ { } break; - case 403: /* compare_op */ - case 404: /* in_op */ + case 407: /* compare_op */ + case 408: /* in_op */ { } break; - case 415: /* join_type */ + case 419: /* join_type */ { } break; - case 428: /* fill_mode */ + case 434: /* fill_mode */ { } break; - case 439: /* ordering_specification_opt */ + case 445: /* ordering_specification_opt */ { } break; - case 440: /* null_ordering_opt */ + case 446: /* null_ordering_opt */ { } @@ -2910,515 +2963,524 @@ 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[] = { - { 313, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ - { 313, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ - { 314, 0 }, /* (2) account_options ::= */ - { 314, -3 }, /* (3) account_options ::= account_options PPS literal */ - { 314, -3 }, /* (4) account_options ::= account_options TSERIES literal */ - { 314, -3 }, /* (5) account_options ::= account_options STORAGE literal */ - { 314, -3 }, /* (6) account_options ::= account_options STREAMS literal */ - { 314, -3 }, /* (7) account_options ::= account_options QTIME literal */ - { 314, -3 }, /* (8) account_options ::= account_options DBS literal */ - { 314, -3 }, /* (9) account_options ::= account_options USERS literal */ - { 314, -3 }, /* (10) account_options ::= account_options CONNS literal */ - { 314, -3 }, /* (11) account_options ::= account_options STATE literal */ - { 315, -1 }, /* (12) alter_account_options ::= alter_account_option */ - { 315, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ - { 317, -2 }, /* (14) alter_account_option ::= PASS literal */ - { 317, -2 }, /* (15) alter_account_option ::= PPS literal */ - { 317, -2 }, /* (16) alter_account_option ::= TSERIES literal */ - { 317, -2 }, /* (17) alter_account_option ::= STORAGE literal */ - { 317, -2 }, /* (18) alter_account_option ::= STREAMS literal */ - { 317, -2 }, /* (19) alter_account_option ::= QTIME literal */ - { 317, -2 }, /* (20) alter_account_option ::= DBS literal */ - { 317, -2 }, /* (21) alter_account_option ::= USERS literal */ - { 317, -2 }, /* (22) alter_account_option ::= CONNS literal */ - { 317, -2 }, /* (23) alter_account_option ::= STATE literal */ - { 313, -6 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ - { 313, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ - { 313, -5 }, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ - { 313, -5 }, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ - { 313, -3 }, /* (28) cmd ::= DROP USER user_name */ - { 319, 0 }, /* (29) sysinfo_opt ::= */ - { 319, -2 }, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */ - { 313, -6 }, /* (31) cmd ::= GRANT privileges ON priv_level TO user_name */ - { 313, -6 }, /* (32) cmd ::= REVOKE privileges ON priv_level FROM user_name */ - { 320, -1 }, /* (33) privileges ::= ALL */ - { 320, -1 }, /* (34) privileges ::= priv_type_list */ - { 322, -1 }, /* (35) priv_type_list ::= priv_type */ - { 322, -3 }, /* (36) priv_type_list ::= priv_type_list NK_COMMA priv_type */ - { 323, -1 }, /* (37) priv_type ::= READ */ - { 323, -1 }, /* (38) priv_type ::= WRITE */ - { 321, -3 }, /* (39) priv_level ::= NK_STAR NK_DOT NK_STAR */ - { 321, -3 }, /* (40) priv_level ::= db_name NK_DOT NK_STAR */ - { 313, -3 }, /* (41) cmd ::= CREATE DNODE dnode_endpoint */ - { 313, -5 }, /* (42) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ - { 313, -3 }, /* (43) cmd ::= DROP DNODE NK_INTEGER */ - { 313, -3 }, /* (44) cmd ::= DROP DNODE dnode_endpoint */ - { 313, -4 }, /* (45) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ - { 313, -5 }, /* (46) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ - { 313, -4 }, /* (47) cmd ::= ALTER ALL DNODES NK_STRING */ - { 313, -5 }, /* (48) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ - { 325, -1 }, /* (49) dnode_endpoint ::= NK_STRING */ - { 325, -1 }, /* (50) dnode_endpoint ::= NK_ID */ - { 325, -1 }, /* (51) dnode_endpoint ::= NK_IPTOKEN */ - { 313, -3 }, /* (52) cmd ::= ALTER LOCAL NK_STRING */ - { 313, -4 }, /* (53) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - { 313, -5 }, /* (54) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - { 313, -5 }, /* (55) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - { 313, -5 }, /* (56) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ - { 313, -5 }, /* (57) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ - { 313, -5 }, /* (58) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ - { 313, -5 }, /* (59) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ - { 313, -5 }, /* (60) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ - { 313, -5 }, /* (61) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ - { 313, -5 }, /* (62) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - { 313, -4 }, /* (63) cmd ::= DROP DATABASE exists_opt db_name */ - { 313, -2 }, /* (64) cmd ::= USE db_name */ - { 313, -4 }, /* (65) cmd ::= ALTER DATABASE db_name alter_db_options */ - { 313, -3 }, /* (66) cmd ::= FLUSH DATABASE db_name */ - { 313, -3 }, /* (67) cmd ::= TRIM DATABASE db_name */ - { 326, -3 }, /* (68) not_exists_opt ::= IF NOT EXISTS */ - { 326, 0 }, /* (69) not_exists_opt ::= */ - { 328, -2 }, /* (70) exists_opt ::= IF EXISTS */ - { 328, 0 }, /* (71) exists_opt ::= */ - { 327, 0 }, /* (72) db_options ::= */ - { 327, -3 }, /* (73) db_options ::= db_options BUFFER NK_INTEGER */ - { 327, -3 }, /* (74) db_options ::= db_options CACHEMODEL NK_STRING */ - { 327, -3 }, /* (75) db_options ::= db_options CACHESIZE NK_INTEGER */ - { 327, -3 }, /* (76) db_options ::= db_options COMP NK_INTEGER */ - { 327, -3 }, /* (77) db_options ::= db_options DURATION NK_INTEGER */ - { 327, -3 }, /* (78) db_options ::= db_options DURATION NK_VARIABLE */ - { 327, -3 }, /* (79) db_options ::= db_options MAXROWS NK_INTEGER */ - { 327, -3 }, /* (80) db_options ::= db_options MINROWS NK_INTEGER */ - { 327, -3 }, /* (81) db_options ::= db_options KEEP integer_list */ - { 327, -3 }, /* (82) db_options ::= db_options KEEP variable_list */ - { 327, -3 }, /* (83) db_options ::= db_options PAGES NK_INTEGER */ - { 327, -3 }, /* (84) db_options ::= db_options PAGESIZE NK_INTEGER */ - { 327, -3 }, /* (85) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ - { 327, -3 }, /* (86) db_options ::= db_options PRECISION NK_STRING */ - { 327, -3 }, /* (87) db_options ::= db_options REPLICA NK_INTEGER */ - { 327, -3 }, /* (88) db_options ::= db_options STRICT NK_STRING */ - { 327, -3 }, /* (89) db_options ::= db_options VGROUPS NK_INTEGER */ - { 327, -3 }, /* (90) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - { 327, -3 }, /* (91) db_options ::= db_options RETENTIONS retention_list */ - { 327, -3 }, /* (92) db_options ::= db_options SCHEMALESS NK_INTEGER */ - { 327, -3 }, /* (93) db_options ::= db_options WAL_LEVEL NK_INTEGER */ - { 327, -3 }, /* (94) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ - { 327, -3 }, /* (95) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ - { 327, -4 }, /* (96) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ - { 327, -3 }, /* (97) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ - { 327, -4 }, /* (98) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ - { 327, -3 }, /* (99) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ - { 327, -3 }, /* (100) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ - { 327, -3 }, /* (101) db_options ::= db_options STT_TRIGGER NK_INTEGER */ - { 327, -3 }, /* (102) db_options ::= db_options TABLE_PREFIX NK_INTEGER */ - { 327, -3 }, /* (103) db_options ::= db_options TABLE_SUFFIX NK_INTEGER */ - { 329, -1 }, /* (104) alter_db_options ::= alter_db_option */ - { 329, -2 }, /* (105) alter_db_options ::= alter_db_options alter_db_option */ - { 333, -2 }, /* (106) alter_db_option ::= CACHEMODEL NK_STRING */ - { 333, -2 }, /* (107) alter_db_option ::= CACHESIZE NK_INTEGER */ - { 333, -2 }, /* (108) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ - { 333, -2 }, /* (109) alter_db_option ::= KEEP integer_list */ - { 333, -2 }, /* (110) alter_db_option ::= KEEP variable_list */ - { 333, -2 }, /* (111) alter_db_option ::= WAL_LEVEL NK_INTEGER */ - { 333, -2 }, /* (112) alter_db_option ::= STT_TRIGGER NK_INTEGER */ - { 330, -1 }, /* (113) integer_list ::= NK_INTEGER */ - { 330, -3 }, /* (114) integer_list ::= integer_list NK_COMMA NK_INTEGER */ - { 331, -1 }, /* (115) variable_list ::= NK_VARIABLE */ - { 331, -3 }, /* (116) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ - { 332, -1 }, /* (117) retention_list ::= retention */ - { 332, -3 }, /* (118) retention_list ::= retention_list NK_COMMA retention */ - { 334, -3 }, /* (119) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ - { 313, -9 }, /* (120) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - { 313, -3 }, /* (121) cmd ::= CREATE TABLE multi_create_clause */ - { 313, -9 }, /* (122) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - { 313, -3 }, /* (123) cmd ::= DROP TABLE multi_drop_clause */ - { 313, -4 }, /* (124) cmd ::= DROP STABLE exists_opt full_table_name */ - { 313, -3 }, /* (125) cmd ::= ALTER TABLE alter_table_clause */ - { 313, -3 }, /* (126) cmd ::= ALTER STABLE alter_table_clause */ - { 342, -2 }, /* (127) alter_table_clause ::= full_table_name alter_table_options */ - { 342, -5 }, /* (128) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - { 342, -4 }, /* (129) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - { 342, -5 }, /* (130) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - { 342, -5 }, /* (131) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - { 342, -5 }, /* (132) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - { 342, -4 }, /* (133) alter_table_clause ::= full_table_name DROP TAG column_name */ - { 342, -5 }, /* (134) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - { 342, -5 }, /* (135) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - { 342, -6 }, /* (136) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ - { 339, -1 }, /* (137) multi_create_clause ::= create_subtable_clause */ - { 339, -2 }, /* (138) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 347, -10 }, /* (139) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ - { 341, -1 }, /* (140) multi_drop_clause ::= drop_table_clause */ - { 341, -2 }, /* (141) multi_drop_clause ::= multi_drop_clause drop_table_clause */ - { 350, -2 }, /* (142) drop_table_clause ::= exists_opt full_table_name */ - { 348, 0 }, /* (143) specific_cols_opt ::= */ - { 348, -3 }, /* (144) specific_cols_opt ::= NK_LP col_name_list NK_RP */ - { 335, -1 }, /* (145) full_table_name ::= table_name */ - { 335, -3 }, /* (146) full_table_name ::= db_name NK_DOT table_name */ - { 336, -1 }, /* (147) column_def_list ::= column_def */ - { 336, -3 }, /* (148) column_def_list ::= column_def_list NK_COMMA column_def */ - { 353, -2 }, /* (149) column_def ::= column_name type_name */ - { 353, -4 }, /* (150) column_def ::= column_name type_name COMMENT NK_STRING */ - { 345, -1 }, /* (151) type_name ::= BOOL */ - { 345, -1 }, /* (152) type_name ::= TINYINT */ - { 345, -1 }, /* (153) type_name ::= SMALLINT */ - { 345, -1 }, /* (154) type_name ::= INT */ - { 345, -1 }, /* (155) type_name ::= INTEGER */ - { 345, -1 }, /* (156) type_name ::= BIGINT */ - { 345, -1 }, /* (157) type_name ::= FLOAT */ - { 345, -1 }, /* (158) type_name ::= DOUBLE */ - { 345, -4 }, /* (159) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - { 345, -1 }, /* (160) type_name ::= TIMESTAMP */ - { 345, -4 }, /* (161) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - { 345, -2 }, /* (162) type_name ::= TINYINT UNSIGNED */ - { 345, -2 }, /* (163) type_name ::= SMALLINT UNSIGNED */ - { 345, -2 }, /* (164) type_name ::= INT UNSIGNED */ - { 345, -2 }, /* (165) type_name ::= BIGINT UNSIGNED */ - { 345, -1 }, /* (166) type_name ::= JSON */ - { 345, -4 }, /* (167) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - { 345, -1 }, /* (168) type_name ::= MEDIUMBLOB */ - { 345, -1 }, /* (169) type_name ::= BLOB */ - { 345, -4 }, /* (170) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - { 345, -1 }, /* (171) type_name ::= DECIMAL */ - { 345, -4 }, /* (172) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - { 345, -6 }, /* (173) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - { 337, 0 }, /* (174) tags_def_opt ::= */ - { 337, -1 }, /* (175) tags_def_opt ::= tags_def */ - { 340, -4 }, /* (176) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - { 338, 0 }, /* (177) table_options ::= */ - { 338, -3 }, /* (178) table_options ::= table_options COMMENT NK_STRING */ - { 338, -3 }, /* (179) table_options ::= table_options MAX_DELAY duration_list */ - { 338, -3 }, /* (180) table_options ::= table_options WATERMARK duration_list */ - { 338, -5 }, /* (181) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ - { 338, -3 }, /* (182) table_options ::= table_options TTL NK_INTEGER */ - { 338, -5 }, /* (183) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - { 343, -1 }, /* (184) alter_table_options ::= alter_table_option */ - { 343, -2 }, /* (185) alter_table_options ::= alter_table_options alter_table_option */ - { 356, -2 }, /* (186) alter_table_option ::= COMMENT NK_STRING */ - { 356, -2 }, /* (187) alter_table_option ::= TTL NK_INTEGER */ - { 354, -1 }, /* (188) duration_list ::= duration_literal */ - { 354, -3 }, /* (189) duration_list ::= duration_list NK_COMMA duration_literal */ - { 355, -1 }, /* (190) rollup_func_list ::= rollup_func_name */ - { 355, -3 }, /* (191) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - { 358, -1 }, /* (192) rollup_func_name ::= function_name */ - { 358, -1 }, /* (193) rollup_func_name ::= FIRST */ - { 358, -1 }, /* (194) rollup_func_name ::= LAST */ - { 351, -1 }, /* (195) col_name_list ::= col_name */ - { 351, -3 }, /* (196) col_name_list ::= col_name_list NK_COMMA col_name */ - { 360, -1 }, /* (197) col_name ::= column_name */ - { 313, -2 }, /* (198) cmd ::= SHOW DNODES */ - { 313, -2 }, /* (199) cmd ::= SHOW USERS */ - { 313, -2 }, /* (200) cmd ::= SHOW DATABASES */ - { 313, -4 }, /* (201) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - { 313, -4 }, /* (202) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - { 313, -3 }, /* (203) cmd ::= SHOW db_name_cond_opt VGROUPS */ - { 313, -2 }, /* (204) cmd ::= SHOW MNODES */ - { 313, -2 }, /* (205) cmd ::= SHOW MODULES */ - { 313, -2 }, /* (206) cmd ::= SHOW QNODES */ - { 313, -2 }, /* (207) cmd ::= SHOW FUNCTIONS */ - { 313, -5 }, /* (208) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - { 313, -2 }, /* (209) cmd ::= SHOW STREAMS */ - { 313, -2 }, /* (210) cmd ::= SHOW ACCOUNTS */ - { 313, -2 }, /* (211) cmd ::= SHOW APPS */ - { 313, -2 }, /* (212) cmd ::= SHOW CONNECTIONS */ - { 313, -2 }, /* (213) cmd ::= SHOW LICENCES */ - { 313, -2 }, /* (214) cmd ::= SHOW GRANTS */ - { 313, -4 }, /* (215) cmd ::= SHOW CREATE DATABASE db_name */ - { 313, -4 }, /* (216) cmd ::= SHOW CREATE TABLE full_table_name */ - { 313, -4 }, /* (217) cmd ::= SHOW CREATE STABLE full_table_name */ - { 313, -2 }, /* (218) cmd ::= SHOW QUERIES */ - { 313, -2 }, /* (219) cmd ::= SHOW SCORES */ - { 313, -2 }, /* (220) cmd ::= SHOW TOPICS */ - { 313, -2 }, /* (221) cmd ::= SHOW VARIABLES */ - { 313, -3 }, /* (222) cmd ::= SHOW LOCAL VARIABLES */ - { 313, -4 }, /* (223) cmd ::= SHOW DNODE NK_INTEGER VARIABLES */ - { 313, -2 }, /* (224) cmd ::= SHOW BNODES */ - { 313, -2 }, /* (225) cmd ::= SHOW SNODES */ - { 313, -2 }, /* (226) cmd ::= SHOW CLUSTER */ - { 313, -2 }, /* (227) cmd ::= SHOW TRANSACTIONS */ - { 313, -4 }, /* (228) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ - { 313, -2 }, /* (229) cmd ::= SHOW CONSUMERS */ - { 313, -2 }, /* (230) cmd ::= SHOW SUBSCRIPTIONS */ - { 313, -5 }, /* (231) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ - { 313, -3 }, /* (232) cmd ::= SHOW VNODES NK_INTEGER */ - { 313, -3 }, /* (233) cmd ::= SHOW VNODES NK_STRING */ - { 361, 0 }, /* (234) db_name_cond_opt ::= */ - { 361, -2 }, /* (235) db_name_cond_opt ::= db_name NK_DOT */ - { 362, 0 }, /* (236) like_pattern_opt ::= */ - { 362, -2 }, /* (237) like_pattern_opt ::= LIKE NK_STRING */ - { 363, -1 }, /* (238) table_name_cond ::= table_name */ - { 364, 0 }, /* (239) from_db_opt ::= */ - { 364, -2 }, /* (240) from_db_opt ::= FROM db_name */ - { 313, -8 }, /* (241) cmd ::= CREATE SMA INDEX not_exists_opt full_table_name ON full_table_name index_options */ - { 313, -4 }, /* (242) cmd ::= DROP INDEX exists_opt full_table_name */ - { 365, -10 }, /* (243) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ - { 365, -12 }, /* (244) 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 */ - { 366, -1 }, /* (245) func_list ::= func */ - { 366, -3 }, /* (246) func_list ::= func_list NK_COMMA func */ - { 369, -4 }, /* (247) func ::= function_name NK_LP expression_list NK_RP */ - { 368, 0 }, /* (248) sma_stream_opt ::= */ - { 368, -3 }, /* (249) sma_stream_opt ::= stream_options WATERMARK duration_literal */ - { 368, -3 }, /* (250) sma_stream_opt ::= stream_options MAX_DELAY duration_literal */ - { 313, -6 }, /* (251) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ - { 313, -7 }, /* (252) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ - { 313, -9 }, /* (253) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ - { 313, -7 }, /* (254) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ - { 313, -9 }, /* (255) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ - { 313, -4 }, /* (256) cmd ::= DROP TOPIC exists_opt topic_name */ - { 313, -7 }, /* (257) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - { 313, -2 }, /* (258) cmd ::= DESC full_table_name */ - { 313, -2 }, /* (259) cmd ::= DESCRIBE full_table_name */ - { 313, -3 }, /* (260) cmd ::= RESET QUERY CACHE */ - { 313, -4 }, /* (261) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - { 374, 0 }, /* (262) analyze_opt ::= */ - { 374, -1 }, /* (263) analyze_opt ::= ANALYZE */ - { 375, 0 }, /* (264) explain_options ::= */ - { 375, -3 }, /* (265) explain_options ::= explain_options VERBOSE NK_BOOL */ - { 375, -3 }, /* (266) explain_options ::= explain_options RATIO NK_FLOAT */ - { 313, -10 }, /* (267) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ - { 313, -4 }, /* (268) cmd ::= DROP FUNCTION exists_opt function_name */ - { 376, 0 }, /* (269) agg_func_opt ::= */ - { 376, -1 }, /* (270) agg_func_opt ::= AGGREGATE */ - { 377, 0 }, /* (271) bufsize_opt ::= */ - { 377, -2 }, /* (272) bufsize_opt ::= BUFSIZE NK_INTEGER */ - { 313, -9 }, /* (273) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name AS query_or_subquery */ - { 313, -4 }, /* (274) cmd ::= DROP STREAM exists_opt stream_name */ - { 370, 0 }, /* (275) stream_options ::= */ - { 370, -3 }, /* (276) stream_options ::= stream_options TRIGGER AT_ONCE */ - { 370, -3 }, /* (277) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - { 370, -4 }, /* (278) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - { 370, -3 }, /* (279) stream_options ::= stream_options WATERMARK duration_literal */ - { 370, -4 }, /* (280) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ - { 313, -3 }, /* (281) cmd ::= KILL CONNECTION NK_INTEGER */ - { 313, -3 }, /* (282) cmd ::= KILL QUERY NK_STRING */ - { 313, -3 }, /* (283) cmd ::= KILL TRANSACTION NK_INTEGER */ - { 313, -2 }, /* (284) cmd ::= BALANCE VGROUP */ - { 313, -4 }, /* (285) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - { 313, -4 }, /* (286) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - { 313, -3 }, /* (287) cmd ::= SPLIT VGROUP NK_INTEGER */ - { 379, -2 }, /* (288) dnode_list ::= DNODE NK_INTEGER */ - { 379, -3 }, /* (289) dnode_list ::= dnode_list DNODE NK_INTEGER */ - { 313, -4 }, /* (290) cmd ::= DELETE FROM full_table_name where_clause_opt */ - { 313, -1 }, /* (291) cmd ::= query_or_subquery */ - { 313, -7 }, /* (292) cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ - { 313, -4 }, /* (293) cmd ::= INSERT INTO full_table_name query_or_subquery */ - { 316, -1 }, /* (294) literal ::= NK_INTEGER */ - { 316, -1 }, /* (295) literal ::= NK_FLOAT */ - { 316, -1 }, /* (296) literal ::= NK_STRING */ - { 316, -1 }, /* (297) literal ::= NK_BOOL */ - { 316, -2 }, /* (298) literal ::= TIMESTAMP NK_STRING */ - { 316, -1 }, /* (299) literal ::= duration_literal */ - { 316, -1 }, /* (300) literal ::= NULL */ - { 316, -1 }, /* (301) literal ::= NK_QUESTION */ - { 357, -1 }, /* (302) duration_literal ::= NK_VARIABLE */ - { 381, -1 }, /* (303) signed ::= NK_INTEGER */ - { 381, -2 }, /* (304) signed ::= NK_PLUS NK_INTEGER */ - { 381, -2 }, /* (305) signed ::= NK_MINUS NK_INTEGER */ - { 381, -1 }, /* (306) signed ::= NK_FLOAT */ - { 381, -2 }, /* (307) signed ::= NK_PLUS NK_FLOAT */ - { 381, -2 }, /* (308) signed ::= NK_MINUS NK_FLOAT */ - { 346, -1 }, /* (309) signed_literal ::= signed */ - { 346, -1 }, /* (310) signed_literal ::= NK_STRING */ - { 346, -1 }, /* (311) signed_literal ::= NK_BOOL */ - { 346, -2 }, /* (312) signed_literal ::= TIMESTAMP NK_STRING */ - { 346, -1 }, /* (313) signed_literal ::= duration_literal */ - { 346, -1 }, /* (314) signed_literal ::= NULL */ - { 346, -1 }, /* (315) signed_literal ::= literal_func */ - { 346, -1 }, /* (316) signed_literal ::= NK_QUESTION */ - { 383, -1 }, /* (317) literal_list ::= signed_literal */ - { 383, -3 }, /* (318) literal_list ::= literal_list NK_COMMA signed_literal */ - { 324, -1 }, /* (319) db_name ::= NK_ID */ - { 352, -1 }, /* (320) table_name ::= NK_ID */ - { 344, -1 }, /* (321) column_name ::= NK_ID */ - { 359, -1 }, /* (322) function_name ::= NK_ID */ - { 384, -1 }, /* (323) table_alias ::= NK_ID */ - { 385, -1 }, /* (324) column_alias ::= NK_ID */ - { 318, -1 }, /* (325) user_name ::= NK_ID */ - { 371, -1 }, /* (326) topic_name ::= NK_ID */ - { 378, -1 }, /* (327) stream_name ::= NK_ID */ - { 373, -1 }, /* (328) cgroup_name ::= NK_ID */ - { 386, -1 }, /* (329) expr_or_subquery ::= expression */ - { 386, -1 }, /* (330) expr_or_subquery ::= subquery */ - { 387, -1 }, /* (331) expression ::= literal */ - { 387, -1 }, /* (332) expression ::= pseudo_column */ - { 387, -1 }, /* (333) expression ::= column_reference */ - { 387, -1 }, /* (334) expression ::= function_expression */ - { 387, -1 }, /* (335) expression ::= case_when_expression */ - { 387, -3 }, /* (336) expression ::= NK_LP expression NK_RP */ - { 387, -2 }, /* (337) expression ::= NK_PLUS expr_or_subquery */ - { 387, -2 }, /* (338) expression ::= NK_MINUS expr_or_subquery */ - { 387, -3 }, /* (339) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ - { 387, -3 }, /* (340) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ - { 387, -3 }, /* (341) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ - { 387, -3 }, /* (342) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ - { 387, -3 }, /* (343) expression ::= expr_or_subquery NK_REM expr_or_subquery */ - { 387, -3 }, /* (344) expression ::= column_reference NK_ARROW NK_STRING */ - { 387, -3 }, /* (345) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ - { 387, -3 }, /* (346) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ - { 349, -1 }, /* (347) expression_list ::= expr_or_subquery */ - { 349, -3 }, /* (348) expression_list ::= expression_list NK_COMMA expr_or_subquery */ - { 390, -1 }, /* (349) column_reference ::= column_name */ - { 390, -3 }, /* (350) column_reference ::= table_name NK_DOT column_name */ - { 389, -1 }, /* (351) pseudo_column ::= ROWTS */ - { 389, -1 }, /* (352) pseudo_column ::= TBNAME */ - { 389, -3 }, /* (353) pseudo_column ::= table_name NK_DOT TBNAME */ - { 389, -1 }, /* (354) pseudo_column ::= QSTART */ - { 389, -1 }, /* (355) pseudo_column ::= QEND */ - { 389, -1 }, /* (356) pseudo_column ::= QDURATION */ - { 389, -1 }, /* (357) pseudo_column ::= WSTART */ - { 389, -1 }, /* (358) pseudo_column ::= WEND */ - { 389, -1 }, /* (359) pseudo_column ::= WDURATION */ - { 391, -4 }, /* (360) function_expression ::= function_name NK_LP expression_list NK_RP */ - { 391, -4 }, /* (361) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - { 391, -6 }, /* (362) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ - { 391, -1 }, /* (363) function_expression ::= literal_func */ - { 382, -3 }, /* (364) literal_func ::= noarg_func NK_LP NK_RP */ - { 382, -1 }, /* (365) literal_func ::= NOW */ - { 395, -1 }, /* (366) noarg_func ::= NOW */ - { 395, -1 }, /* (367) noarg_func ::= TODAY */ - { 395, -1 }, /* (368) noarg_func ::= TIMEZONE */ - { 395, -1 }, /* (369) noarg_func ::= DATABASE */ - { 395, -1 }, /* (370) noarg_func ::= CLIENT_VERSION */ - { 395, -1 }, /* (371) noarg_func ::= SERVER_VERSION */ - { 395, -1 }, /* (372) noarg_func ::= SERVER_STATUS */ - { 395, -1 }, /* (373) noarg_func ::= CURRENT_USER */ - { 395, -1 }, /* (374) noarg_func ::= USER */ - { 393, -1 }, /* (375) star_func ::= COUNT */ - { 393, -1 }, /* (376) star_func ::= FIRST */ - { 393, -1 }, /* (377) star_func ::= LAST */ - { 393, -1 }, /* (378) star_func ::= LAST_ROW */ - { 394, -1 }, /* (379) star_func_para_list ::= NK_STAR */ - { 394, -1 }, /* (380) star_func_para_list ::= other_para_list */ - { 396, -1 }, /* (381) other_para_list ::= star_func_para */ - { 396, -3 }, /* (382) other_para_list ::= other_para_list NK_COMMA star_func_para */ - { 397, -1 }, /* (383) star_func_para ::= expr_or_subquery */ - { 397, -3 }, /* (384) star_func_para ::= table_name NK_DOT NK_STAR */ - { 392, -4 }, /* (385) case_when_expression ::= CASE when_then_list case_when_else_opt END */ - { 392, -5 }, /* (386) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ - { 398, -1 }, /* (387) when_then_list ::= when_then_expr */ - { 398, -2 }, /* (388) when_then_list ::= when_then_list when_then_expr */ - { 401, -4 }, /* (389) when_then_expr ::= WHEN common_expression THEN common_expression */ - { 399, 0 }, /* (390) case_when_else_opt ::= */ - { 399, -2 }, /* (391) case_when_else_opt ::= ELSE common_expression */ - { 402, -3 }, /* (392) predicate ::= expr_or_subquery compare_op expr_or_subquery */ - { 402, -5 }, /* (393) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ - { 402, -6 }, /* (394) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ - { 402, -3 }, /* (395) predicate ::= expr_or_subquery IS NULL */ - { 402, -4 }, /* (396) predicate ::= expr_or_subquery IS NOT NULL */ - { 402, -3 }, /* (397) predicate ::= expr_or_subquery in_op in_predicate_value */ - { 403, -1 }, /* (398) compare_op ::= NK_LT */ - { 403, -1 }, /* (399) compare_op ::= NK_GT */ - { 403, -1 }, /* (400) compare_op ::= NK_LE */ - { 403, -1 }, /* (401) compare_op ::= NK_GE */ - { 403, -1 }, /* (402) compare_op ::= NK_NE */ - { 403, -1 }, /* (403) compare_op ::= NK_EQ */ - { 403, -1 }, /* (404) compare_op ::= LIKE */ - { 403, -2 }, /* (405) compare_op ::= NOT LIKE */ - { 403, -1 }, /* (406) compare_op ::= MATCH */ - { 403, -1 }, /* (407) compare_op ::= NMATCH */ - { 403, -1 }, /* (408) compare_op ::= CONTAINS */ - { 404, -1 }, /* (409) in_op ::= IN */ - { 404, -2 }, /* (410) in_op ::= NOT IN */ - { 405, -3 }, /* (411) in_predicate_value ::= NK_LP literal_list NK_RP */ - { 406, -1 }, /* (412) boolean_value_expression ::= boolean_primary */ - { 406, -2 }, /* (413) boolean_value_expression ::= NOT boolean_primary */ - { 406, -3 }, /* (414) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 406, -3 }, /* (415) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 407, -1 }, /* (416) boolean_primary ::= predicate */ - { 407, -3 }, /* (417) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 400, -1 }, /* (418) common_expression ::= expr_or_subquery */ - { 400, -1 }, /* (419) common_expression ::= boolean_value_expression */ - { 408, 0 }, /* (420) from_clause_opt ::= */ - { 408, -2 }, /* (421) from_clause_opt ::= FROM table_reference_list */ - { 409, -1 }, /* (422) table_reference_list ::= table_reference */ - { 409, -3 }, /* (423) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 410, -1 }, /* (424) table_reference ::= table_primary */ - { 410, -1 }, /* (425) table_reference ::= joined_table */ - { 411, -2 }, /* (426) table_primary ::= table_name alias_opt */ - { 411, -4 }, /* (427) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 411, -2 }, /* (428) table_primary ::= subquery alias_opt */ - { 411, -1 }, /* (429) table_primary ::= parenthesized_joined_table */ - { 413, 0 }, /* (430) alias_opt ::= */ - { 413, -1 }, /* (431) alias_opt ::= table_alias */ - { 413, -2 }, /* (432) alias_opt ::= AS table_alias */ - { 414, -3 }, /* (433) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 414, -3 }, /* (434) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 412, -6 }, /* (435) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 415, 0 }, /* (436) join_type ::= */ - { 415, -1 }, /* (437) join_type ::= INNER */ - { 417, -12 }, /* (438) 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 */ - { 418, 0 }, /* (439) set_quantifier_opt ::= */ - { 418, -1 }, /* (440) set_quantifier_opt ::= DISTINCT */ - { 418, -1 }, /* (441) set_quantifier_opt ::= ALL */ - { 419, -1 }, /* (442) select_list ::= select_item */ - { 419, -3 }, /* (443) select_list ::= select_list NK_COMMA select_item */ - { 427, -1 }, /* (444) select_item ::= NK_STAR */ - { 427, -1 }, /* (445) select_item ::= common_expression */ - { 427, -2 }, /* (446) select_item ::= common_expression column_alias */ - { 427, -3 }, /* (447) select_item ::= common_expression AS column_alias */ - { 427, -3 }, /* (448) select_item ::= table_name NK_DOT NK_STAR */ - { 380, 0 }, /* (449) where_clause_opt ::= */ - { 380, -2 }, /* (450) where_clause_opt ::= WHERE search_condition */ - { 420, 0 }, /* (451) partition_by_clause_opt ::= */ - { 420, -3 }, /* (452) partition_by_clause_opt ::= PARTITION BY expression_list */ - { 424, 0 }, /* (453) twindow_clause_opt ::= */ - { 424, -6 }, /* (454) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - { 424, -4 }, /* (455) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ - { 424, -6 }, /* (456) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 424, -8 }, /* (457) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 367, 0 }, /* (458) sliding_opt ::= */ - { 367, -4 }, /* (459) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 423, 0 }, /* (460) fill_opt ::= */ - { 423, -4 }, /* (461) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 423, -6 }, /* (462) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 428, -1 }, /* (463) fill_mode ::= NONE */ - { 428, -1 }, /* (464) fill_mode ::= PREV */ - { 428, -1 }, /* (465) fill_mode ::= NULL */ - { 428, -1 }, /* (466) fill_mode ::= LINEAR */ - { 428, -1 }, /* (467) fill_mode ::= NEXT */ - { 425, 0 }, /* (468) group_by_clause_opt ::= */ - { 425, -3 }, /* (469) group_by_clause_opt ::= GROUP BY group_by_list */ - { 429, -1 }, /* (470) group_by_list ::= expr_or_subquery */ - { 429, -3 }, /* (471) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ - { 426, 0 }, /* (472) having_clause_opt ::= */ - { 426, -2 }, /* (473) having_clause_opt ::= HAVING search_condition */ - { 421, 0 }, /* (474) range_opt ::= */ - { 421, -6 }, /* (475) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ - { 422, 0 }, /* (476) every_opt ::= */ - { 422, -4 }, /* (477) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - { 430, -4 }, /* (478) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 431, -1 }, /* (479) query_simple ::= query_specification */ - { 431, -1 }, /* (480) query_simple ::= union_query_expression */ - { 435, -4 }, /* (481) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ - { 435, -3 }, /* (482) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ - { 436, -1 }, /* (483) query_simple_or_subquery ::= query_simple */ - { 436, -1 }, /* (484) query_simple_or_subquery ::= subquery */ - { 372, -1 }, /* (485) query_or_subquery ::= query_expression */ - { 372, -1 }, /* (486) query_or_subquery ::= subquery */ - { 432, 0 }, /* (487) order_by_clause_opt ::= */ - { 432, -3 }, /* (488) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 433, 0 }, /* (489) slimit_clause_opt ::= */ - { 433, -2 }, /* (490) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 433, -4 }, /* (491) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 433, -4 }, /* (492) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 434, 0 }, /* (493) limit_clause_opt ::= */ - { 434, -2 }, /* (494) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 434, -4 }, /* (495) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 434, -4 }, /* (496) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 388, -3 }, /* (497) subquery ::= NK_LP query_expression NK_RP */ - { 388, -3 }, /* (498) subquery ::= NK_LP subquery NK_RP */ - { 416, -1 }, /* (499) search_condition ::= common_expression */ - { 437, -1 }, /* (500) sort_specification_list ::= sort_specification */ - { 437, -3 }, /* (501) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 438, -3 }, /* (502) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ - { 439, 0 }, /* (503) ordering_specification_opt ::= */ - { 439, -1 }, /* (504) ordering_specification_opt ::= ASC */ - { 439, -1 }, /* (505) ordering_specification_opt ::= DESC */ - { 440, 0 }, /* (506) null_ordering_opt ::= */ - { 440, -2 }, /* (507) null_ordering_opt ::= NULLS FIRST */ - { 440, -2 }, /* (508) null_ordering_opt ::= NULLS LAST */ + { 315, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ + { 315, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ + { 316, 0 }, /* (2) account_options ::= */ + { 316, -3 }, /* (3) account_options ::= account_options PPS literal */ + { 316, -3 }, /* (4) account_options ::= account_options TSERIES literal */ + { 316, -3 }, /* (5) account_options ::= account_options STORAGE literal */ + { 316, -3 }, /* (6) account_options ::= account_options STREAMS literal */ + { 316, -3 }, /* (7) account_options ::= account_options QTIME literal */ + { 316, -3 }, /* (8) account_options ::= account_options DBS literal */ + { 316, -3 }, /* (9) account_options ::= account_options USERS literal */ + { 316, -3 }, /* (10) account_options ::= account_options CONNS literal */ + { 316, -3 }, /* (11) account_options ::= account_options STATE literal */ + { 317, -1 }, /* (12) alter_account_options ::= alter_account_option */ + { 317, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ + { 319, -2 }, /* (14) alter_account_option ::= PASS literal */ + { 319, -2 }, /* (15) alter_account_option ::= PPS literal */ + { 319, -2 }, /* (16) alter_account_option ::= TSERIES literal */ + { 319, -2 }, /* (17) alter_account_option ::= STORAGE literal */ + { 319, -2 }, /* (18) alter_account_option ::= STREAMS literal */ + { 319, -2 }, /* (19) alter_account_option ::= QTIME literal */ + { 319, -2 }, /* (20) alter_account_option ::= DBS literal */ + { 319, -2 }, /* (21) alter_account_option ::= USERS literal */ + { 319, -2 }, /* (22) alter_account_option ::= CONNS literal */ + { 319, -2 }, /* (23) alter_account_option ::= STATE literal */ + { 315, -6 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ + { 315, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ + { 315, -5 }, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ + { 315, -5 }, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ + { 315, -3 }, /* (28) cmd ::= DROP USER user_name */ + { 321, 0 }, /* (29) sysinfo_opt ::= */ + { 321, -2 }, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */ + { 315, -6 }, /* (31) cmd ::= GRANT privileges ON priv_level TO user_name */ + { 315, -6 }, /* (32) cmd ::= REVOKE privileges ON priv_level FROM user_name */ + { 322, -1 }, /* (33) privileges ::= ALL */ + { 322, -1 }, /* (34) privileges ::= priv_type_list */ + { 324, -1 }, /* (35) priv_type_list ::= priv_type */ + { 324, -3 }, /* (36) priv_type_list ::= priv_type_list NK_COMMA priv_type */ + { 325, -1 }, /* (37) priv_type ::= READ */ + { 325, -1 }, /* (38) priv_type ::= WRITE */ + { 323, -3 }, /* (39) priv_level ::= NK_STAR NK_DOT NK_STAR */ + { 323, -3 }, /* (40) priv_level ::= db_name NK_DOT NK_STAR */ + { 315, -3 }, /* (41) cmd ::= CREATE DNODE dnode_endpoint */ + { 315, -5 }, /* (42) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ + { 315, -3 }, /* (43) cmd ::= DROP DNODE NK_INTEGER */ + { 315, -3 }, /* (44) cmd ::= DROP DNODE dnode_endpoint */ + { 315, -4 }, /* (45) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + { 315, -5 }, /* (46) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + { 315, -4 }, /* (47) cmd ::= ALTER ALL DNODES NK_STRING */ + { 315, -5 }, /* (48) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + { 327, -1 }, /* (49) dnode_endpoint ::= NK_STRING */ + { 327, -1 }, /* (50) dnode_endpoint ::= NK_ID */ + { 327, -1 }, /* (51) dnode_endpoint ::= NK_IPTOKEN */ + { 315, -3 }, /* (52) cmd ::= ALTER LOCAL NK_STRING */ + { 315, -4 }, /* (53) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + { 315, -5 }, /* (54) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + { 315, -5 }, /* (55) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + { 315, -5 }, /* (56) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + { 315, -5 }, /* (57) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + { 315, -5 }, /* (58) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + { 315, -5 }, /* (59) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + { 315, -5 }, /* (60) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + { 315, -5 }, /* (61) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + { 315, -5 }, /* (62) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + { 315, -4 }, /* (63) cmd ::= DROP DATABASE exists_opt db_name */ + { 315, -2 }, /* (64) cmd ::= USE db_name */ + { 315, -4 }, /* (65) cmd ::= ALTER DATABASE db_name alter_db_options */ + { 315, -3 }, /* (66) cmd ::= FLUSH DATABASE db_name */ + { 315, -4 }, /* (67) cmd ::= TRIM DATABASE db_name speed_opt */ + { 328, -3 }, /* (68) not_exists_opt ::= IF NOT EXISTS */ + { 328, 0 }, /* (69) not_exists_opt ::= */ + { 330, -2 }, /* (70) exists_opt ::= IF EXISTS */ + { 330, 0 }, /* (71) exists_opt ::= */ + { 329, 0 }, /* (72) db_options ::= */ + { 329, -3 }, /* (73) db_options ::= db_options BUFFER NK_INTEGER */ + { 329, -3 }, /* (74) db_options ::= db_options CACHEMODEL NK_STRING */ + { 329, -3 }, /* (75) db_options ::= db_options CACHESIZE NK_INTEGER */ + { 329, -3 }, /* (76) db_options ::= db_options COMP NK_INTEGER */ + { 329, -3 }, /* (77) db_options ::= db_options DURATION NK_INTEGER */ + { 329, -3 }, /* (78) db_options ::= db_options DURATION NK_VARIABLE */ + { 329, -3 }, /* (79) db_options ::= db_options MAXROWS NK_INTEGER */ + { 329, -3 }, /* (80) db_options ::= db_options MINROWS NK_INTEGER */ + { 329, -3 }, /* (81) db_options ::= db_options KEEP integer_list */ + { 329, -3 }, /* (82) db_options ::= db_options KEEP variable_list */ + { 329, -3 }, /* (83) db_options ::= db_options PAGES NK_INTEGER */ + { 329, -3 }, /* (84) db_options ::= db_options PAGESIZE NK_INTEGER */ + { 329, -3 }, /* (85) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ + { 329, -3 }, /* (86) db_options ::= db_options PRECISION NK_STRING */ + { 329, -3 }, /* (87) db_options ::= db_options REPLICA NK_INTEGER */ + { 329, -3 }, /* (88) db_options ::= db_options STRICT NK_STRING */ + { 329, -3 }, /* (89) db_options ::= db_options VGROUPS NK_INTEGER */ + { 329, -3 }, /* (90) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + { 329, -3 }, /* (91) db_options ::= db_options RETENTIONS retention_list */ + { 329, -3 }, /* (92) db_options ::= db_options SCHEMALESS NK_INTEGER */ + { 329, -3 }, /* (93) db_options ::= db_options WAL_LEVEL NK_INTEGER */ + { 329, -3 }, /* (94) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ + { 329, -3 }, /* (95) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ + { 329, -4 }, /* (96) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ + { 329, -3 }, /* (97) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ + { 329, -4 }, /* (98) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ + { 329, -3 }, /* (99) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ + { 329, -3 }, /* (100) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ + { 329, -3 }, /* (101) db_options ::= db_options STT_TRIGGER NK_INTEGER */ + { 329, -3 }, /* (102) db_options ::= db_options TABLE_PREFIX NK_INTEGER */ + { 329, -3 }, /* (103) db_options ::= db_options TABLE_SUFFIX NK_INTEGER */ + { 331, -1 }, /* (104) alter_db_options ::= alter_db_option */ + { 331, -2 }, /* (105) alter_db_options ::= alter_db_options alter_db_option */ + { 336, -2 }, /* (106) alter_db_option ::= CACHEMODEL NK_STRING */ + { 336, -2 }, /* (107) alter_db_option ::= CACHESIZE NK_INTEGER */ + { 336, -2 }, /* (108) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ + { 336, -2 }, /* (109) alter_db_option ::= KEEP integer_list */ + { 336, -2 }, /* (110) alter_db_option ::= KEEP variable_list */ + { 336, -2 }, /* (111) alter_db_option ::= WAL_LEVEL NK_INTEGER */ + { 336, -2 }, /* (112) alter_db_option ::= STT_TRIGGER NK_INTEGER */ + { 333, -1 }, /* (113) integer_list ::= NK_INTEGER */ + { 333, -3 }, /* (114) integer_list ::= integer_list NK_COMMA NK_INTEGER */ + { 334, -1 }, /* (115) variable_list ::= NK_VARIABLE */ + { 334, -3 }, /* (116) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + { 335, -1 }, /* (117) retention_list ::= retention */ + { 335, -3 }, /* (118) retention_list ::= retention_list NK_COMMA retention */ + { 337, -3 }, /* (119) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + { 332, 0 }, /* (120) speed_opt ::= */ + { 332, -2 }, /* (121) speed_opt ::= MAX_SPEED NK_INTEGER */ + { 315, -9 }, /* (122) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + { 315, -3 }, /* (123) cmd ::= CREATE TABLE multi_create_clause */ + { 315, -9 }, /* (124) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + { 315, -3 }, /* (125) cmd ::= DROP TABLE multi_drop_clause */ + { 315, -4 }, /* (126) cmd ::= DROP STABLE exists_opt full_table_name */ + { 315, -3 }, /* (127) cmd ::= ALTER TABLE alter_table_clause */ + { 315, -3 }, /* (128) cmd ::= ALTER STABLE alter_table_clause */ + { 345, -2 }, /* (129) alter_table_clause ::= full_table_name alter_table_options */ + { 345, -5 }, /* (130) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + { 345, -4 }, /* (131) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + { 345, -5 }, /* (132) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + { 345, -5 }, /* (133) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + { 345, -5 }, /* (134) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + { 345, -4 }, /* (135) alter_table_clause ::= full_table_name DROP TAG column_name */ + { 345, -5 }, /* (136) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + { 345, -5 }, /* (137) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + { 345, -6 }, /* (138) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ + { 342, -1 }, /* (139) multi_create_clause ::= create_subtable_clause */ + { 342, -2 }, /* (140) multi_create_clause ::= multi_create_clause create_subtable_clause */ + { 350, -10 }, /* (141) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ + { 344, -1 }, /* (142) multi_drop_clause ::= drop_table_clause */ + { 344, -2 }, /* (143) multi_drop_clause ::= multi_drop_clause drop_table_clause */ + { 353, -2 }, /* (144) drop_table_clause ::= exists_opt full_table_name */ + { 351, 0 }, /* (145) specific_cols_opt ::= */ + { 351, -3 }, /* (146) specific_cols_opt ::= NK_LP col_name_list NK_RP */ + { 338, -1 }, /* (147) full_table_name ::= table_name */ + { 338, -3 }, /* (148) full_table_name ::= db_name NK_DOT table_name */ + { 339, -1 }, /* (149) column_def_list ::= column_def */ + { 339, -3 }, /* (150) column_def_list ::= column_def_list NK_COMMA column_def */ + { 356, -2 }, /* (151) column_def ::= column_name type_name */ + { 356, -4 }, /* (152) column_def ::= column_name type_name COMMENT NK_STRING */ + { 348, -1 }, /* (153) type_name ::= BOOL */ + { 348, -1 }, /* (154) type_name ::= TINYINT */ + { 348, -1 }, /* (155) type_name ::= SMALLINT */ + { 348, -1 }, /* (156) type_name ::= INT */ + { 348, -1 }, /* (157) type_name ::= INTEGER */ + { 348, -1 }, /* (158) type_name ::= BIGINT */ + { 348, -1 }, /* (159) type_name ::= FLOAT */ + { 348, -1 }, /* (160) type_name ::= DOUBLE */ + { 348, -4 }, /* (161) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + { 348, -1 }, /* (162) type_name ::= TIMESTAMP */ + { 348, -4 }, /* (163) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + { 348, -2 }, /* (164) type_name ::= TINYINT UNSIGNED */ + { 348, -2 }, /* (165) type_name ::= SMALLINT UNSIGNED */ + { 348, -2 }, /* (166) type_name ::= INT UNSIGNED */ + { 348, -2 }, /* (167) type_name ::= BIGINT UNSIGNED */ + { 348, -1 }, /* (168) type_name ::= JSON */ + { 348, -4 }, /* (169) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + { 348, -1 }, /* (170) type_name ::= MEDIUMBLOB */ + { 348, -1 }, /* (171) type_name ::= BLOB */ + { 348, -4 }, /* (172) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + { 348, -1 }, /* (173) type_name ::= DECIMAL */ + { 348, -4 }, /* (174) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + { 348, -6 }, /* (175) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + { 340, 0 }, /* (176) tags_def_opt ::= */ + { 340, -1 }, /* (177) tags_def_opt ::= tags_def */ + { 343, -4 }, /* (178) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + { 341, 0 }, /* (179) table_options ::= */ + { 341, -3 }, /* (180) table_options ::= table_options COMMENT NK_STRING */ + { 341, -3 }, /* (181) table_options ::= table_options MAX_DELAY duration_list */ + { 341, -3 }, /* (182) table_options ::= table_options WATERMARK duration_list */ + { 341, -5 }, /* (183) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + { 341, -3 }, /* (184) table_options ::= table_options TTL NK_INTEGER */ + { 341, -5 }, /* (185) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + { 346, -1 }, /* (186) alter_table_options ::= alter_table_option */ + { 346, -2 }, /* (187) alter_table_options ::= alter_table_options alter_table_option */ + { 359, -2 }, /* (188) alter_table_option ::= COMMENT NK_STRING */ + { 359, -2 }, /* (189) alter_table_option ::= TTL NK_INTEGER */ + { 357, -1 }, /* (190) duration_list ::= duration_literal */ + { 357, -3 }, /* (191) duration_list ::= duration_list NK_COMMA duration_literal */ + { 358, -1 }, /* (192) rollup_func_list ::= rollup_func_name */ + { 358, -3 }, /* (193) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + { 361, -1 }, /* (194) rollup_func_name ::= function_name */ + { 361, -1 }, /* (195) rollup_func_name ::= FIRST */ + { 361, -1 }, /* (196) rollup_func_name ::= LAST */ + { 354, -1 }, /* (197) col_name_list ::= col_name */ + { 354, -3 }, /* (198) col_name_list ::= col_name_list NK_COMMA col_name */ + { 363, -1 }, /* (199) col_name ::= column_name */ + { 315, -2 }, /* (200) cmd ::= SHOW DNODES */ + { 315, -2 }, /* (201) cmd ::= SHOW USERS */ + { 315, -2 }, /* (202) cmd ::= SHOW DATABASES */ + { 315, -4 }, /* (203) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + { 315, -4 }, /* (204) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + { 315, -3 }, /* (205) cmd ::= SHOW db_name_cond_opt VGROUPS */ + { 315, -2 }, /* (206) cmd ::= SHOW MNODES */ + { 315, -2 }, /* (207) cmd ::= SHOW MODULES */ + { 315, -2 }, /* (208) cmd ::= SHOW QNODES */ + { 315, -2 }, /* (209) cmd ::= SHOW FUNCTIONS */ + { 315, -5 }, /* (210) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + { 315, -2 }, /* (211) cmd ::= SHOW STREAMS */ + { 315, -2 }, /* (212) cmd ::= SHOW ACCOUNTS */ + { 315, -2 }, /* (213) cmd ::= SHOW APPS */ + { 315, -2 }, /* (214) cmd ::= SHOW CONNECTIONS */ + { 315, -2 }, /* (215) cmd ::= SHOW LICENCES */ + { 315, -2 }, /* (216) cmd ::= SHOW GRANTS */ + { 315, -4 }, /* (217) cmd ::= SHOW CREATE DATABASE db_name */ + { 315, -4 }, /* (218) cmd ::= SHOW CREATE TABLE full_table_name */ + { 315, -4 }, /* (219) cmd ::= SHOW CREATE STABLE full_table_name */ + { 315, -2 }, /* (220) cmd ::= SHOW QUERIES */ + { 315, -2 }, /* (221) cmd ::= SHOW SCORES */ + { 315, -2 }, /* (222) cmd ::= SHOW TOPICS */ + { 315, -2 }, /* (223) cmd ::= SHOW VARIABLES */ + { 315, -3 }, /* (224) cmd ::= SHOW LOCAL VARIABLES */ + { 315, -4 }, /* (225) cmd ::= SHOW DNODE NK_INTEGER VARIABLES */ + { 315, -2 }, /* (226) cmd ::= SHOW BNODES */ + { 315, -2 }, /* (227) cmd ::= SHOW SNODES */ + { 315, -2 }, /* (228) cmd ::= SHOW CLUSTER */ + { 315, -2 }, /* (229) cmd ::= SHOW TRANSACTIONS */ + { 315, -4 }, /* (230) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + { 315, -2 }, /* (231) cmd ::= SHOW CONSUMERS */ + { 315, -2 }, /* (232) cmd ::= SHOW SUBSCRIPTIONS */ + { 315, -5 }, /* (233) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ + { 315, -3 }, /* (234) cmd ::= SHOW VNODES NK_INTEGER */ + { 315, -3 }, /* (235) cmd ::= SHOW VNODES NK_STRING */ + { 364, 0 }, /* (236) db_name_cond_opt ::= */ + { 364, -2 }, /* (237) db_name_cond_opt ::= db_name NK_DOT */ + { 365, 0 }, /* (238) like_pattern_opt ::= */ + { 365, -2 }, /* (239) like_pattern_opt ::= LIKE NK_STRING */ + { 366, -1 }, /* (240) table_name_cond ::= table_name */ + { 367, 0 }, /* (241) from_db_opt ::= */ + { 367, -2 }, /* (242) from_db_opt ::= FROM db_name */ + { 315, -8 }, /* (243) cmd ::= CREATE SMA INDEX not_exists_opt full_table_name ON full_table_name index_options */ + { 315, -4 }, /* (244) cmd ::= DROP INDEX exists_opt full_table_name */ + { 368, -10 }, /* (245) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ + { 368, -12 }, /* (246) 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 */ + { 369, -1 }, /* (247) func_list ::= func */ + { 369, -3 }, /* (248) func_list ::= func_list NK_COMMA func */ + { 372, -4 }, /* (249) func ::= function_name NK_LP expression_list NK_RP */ + { 371, 0 }, /* (250) sma_stream_opt ::= */ + { 371, -3 }, /* (251) sma_stream_opt ::= stream_options WATERMARK duration_literal */ + { 371, -3 }, /* (252) sma_stream_opt ::= stream_options MAX_DELAY duration_literal */ + { 315, -6 }, /* (253) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ + { 315, -7 }, /* (254) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ + { 315, -9 }, /* (255) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ + { 315, -7 }, /* (256) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ + { 315, -9 }, /* (257) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ + { 315, -4 }, /* (258) cmd ::= DROP TOPIC exists_opt topic_name */ + { 315, -7 }, /* (259) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + { 315, -2 }, /* (260) cmd ::= DESC full_table_name */ + { 315, -2 }, /* (261) cmd ::= DESCRIBE full_table_name */ + { 315, -3 }, /* (262) cmd ::= RESET QUERY CACHE */ + { 315, -4 }, /* (263) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + { 377, 0 }, /* (264) analyze_opt ::= */ + { 377, -1 }, /* (265) analyze_opt ::= ANALYZE */ + { 378, 0 }, /* (266) explain_options ::= */ + { 378, -3 }, /* (267) explain_options ::= explain_options VERBOSE NK_BOOL */ + { 378, -3 }, /* (268) explain_options ::= explain_options RATIO NK_FLOAT */ + { 315, -10 }, /* (269) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ + { 315, -4 }, /* (270) cmd ::= DROP FUNCTION exists_opt function_name */ + { 379, 0 }, /* (271) agg_func_opt ::= */ + { 379, -1 }, /* (272) agg_func_opt ::= AGGREGATE */ + { 380, 0 }, /* (273) bufsize_opt ::= */ + { 380, -2 }, /* (274) bufsize_opt ::= BUFSIZE NK_INTEGER */ + { 315, -11 }, /* (275) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name tags_def_opt subtable_opt AS query_or_subquery */ + { 315, -4 }, /* (276) cmd ::= DROP STREAM exists_opt stream_name */ + { 373, 0 }, /* (277) stream_options ::= */ + { 373, -3 }, /* (278) stream_options ::= stream_options TRIGGER AT_ONCE */ + { 373, -3 }, /* (279) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + { 373, -4 }, /* (280) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + { 373, -3 }, /* (281) stream_options ::= stream_options WATERMARK duration_literal */ + { 373, -4 }, /* (282) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ + { 382, 0 }, /* (283) subtable_opt ::= */ + { 382, -4 }, /* (284) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + { 315, -3 }, /* (285) cmd ::= KILL CONNECTION NK_INTEGER */ + { 315, -3 }, /* (286) cmd ::= KILL QUERY NK_STRING */ + { 315, -3 }, /* (287) cmd ::= KILL TRANSACTION NK_INTEGER */ + { 315, -2 }, /* (288) cmd ::= BALANCE VGROUP */ + { 315, -4 }, /* (289) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + { 315, -4 }, /* (290) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + { 315, -3 }, /* (291) cmd ::= SPLIT VGROUP NK_INTEGER */ + { 384, -2 }, /* (292) dnode_list ::= DNODE NK_INTEGER */ + { 384, -3 }, /* (293) dnode_list ::= dnode_list DNODE NK_INTEGER */ + { 315, -4 }, /* (294) cmd ::= DELETE FROM full_table_name where_clause_opt */ + { 315, -1 }, /* (295) cmd ::= query_or_subquery */ + { 315, -7 }, /* (296) cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ + { 315, -4 }, /* (297) cmd ::= INSERT INTO full_table_name query_or_subquery */ + { 318, -1 }, /* (298) literal ::= NK_INTEGER */ + { 318, -1 }, /* (299) literal ::= NK_FLOAT */ + { 318, -1 }, /* (300) literal ::= NK_STRING */ + { 318, -1 }, /* (301) literal ::= NK_BOOL */ + { 318, -2 }, /* (302) literal ::= TIMESTAMP NK_STRING */ + { 318, -1 }, /* (303) literal ::= duration_literal */ + { 318, -1 }, /* (304) literal ::= NULL */ + { 318, -1 }, /* (305) literal ::= NK_QUESTION */ + { 360, -1 }, /* (306) duration_literal ::= NK_VARIABLE */ + { 386, -1 }, /* (307) signed ::= NK_INTEGER */ + { 386, -2 }, /* (308) signed ::= NK_PLUS NK_INTEGER */ + { 386, -2 }, /* (309) signed ::= NK_MINUS NK_INTEGER */ + { 386, -1 }, /* (310) signed ::= NK_FLOAT */ + { 386, -2 }, /* (311) signed ::= NK_PLUS NK_FLOAT */ + { 386, -2 }, /* (312) signed ::= NK_MINUS NK_FLOAT */ + { 349, -1 }, /* (313) signed_literal ::= signed */ + { 349, -1 }, /* (314) signed_literal ::= NK_STRING */ + { 349, -1 }, /* (315) signed_literal ::= NK_BOOL */ + { 349, -2 }, /* (316) signed_literal ::= TIMESTAMP NK_STRING */ + { 349, -1 }, /* (317) signed_literal ::= duration_literal */ + { 349, -1 }, /* (318) signed_literal ::= NULL */ + { 349, -1 }, /* (319) signed_literal ::= literal_func */ + { 349, -1 }, /* (320) signed_literal ::= NK_QUESTION */ + { 388, -1 }, /* (321) literal_list ::= signed_literal */ + { 388, -3 }, /* (322) literal_list ::= literal_list NK_COMMA signed_literal */ + { 326, -1 }, /* (323) db_name ::= NK_ID */ + { 355, -1 }, /* (324) table_name ::= NK_ID */ + { 347, -1 }, /* (325) column_name ::= NK_ID */ + { 362, -1 }, /* (326) function_name ::= NK_ID */ + { 389, -1 }, /* (327) table_alias ::= NK_ID */ + { 390, -1 }, /* (328) column_alias ::= NK_ID */ + { 320, -1 }, /* (329) user_name ::= NK_ID */ + { 374, -1 }, /* (330) topic_name ::= NK_ID */ + { 381, -1 }, /* (331) stream_name ::= NK_ID */ + { 376, -1 }, /* (332) cgroup_name ::= NK_ID */ + { 391, -1 }, /* (333) expr_or_subquery ::= expression */ + { 391, -1 }, /* (334) expr_or_subquery ::= subquery */ + { 383, -1 }, /* (335) expression ::= literal */ + { 383, -1 }, /* (336) expression ::= pseudo_column */ + { 383, -1 }, /* (337) expression ::= column_reference */ + { 383, -1 }, /* (338) expression ::= function_expression */ + { 383, -1 }, /* (339) expression ::= case_when_expression */ + { 383, -3 }, /* (340) expression ::= NK_LP expression NK_RP */ + { 383, -2 }, /* (341) expression ::= NK_PLUS expr_or_subquery */ + { 383, -2 }, /* (342) expression ::= NK_MINUS expr_or_subquery */ + { 383, -3 }, /* (343) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + { 383, -3 }, /* (344) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ + { 383, -3 }, /* (345) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ + { 383, -3 }, /* (346) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ + { 383, -3 }, /* (347) expression ::= expr_or_subquery NK_REM expr_or_subquery */ + { 383, -3 }, /* (348) expression ::= column_reference NK_ARROW NK_STRING */ + { 383, -3 }, /* (349) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + { 383, -3 }, /* (350) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ + { 352, -1 }, /* (351) expression_list ::= expr_or_subquery */ + { 352, -3 }, /* (352) expression_list ::= expression_list NK_COMMA expr_or_subquery */ + { 394, -1 }, /* (353) column_reference ::= column_name */ + { 394, -3 }, /* (354) column_reference ::= table_name NK_DOT column_name */ + { 393, -1 }, /* (355) pseudo_column ::= ROWTS */ + { 393, -1 }, /* (356) pseudo_column ::= TBNAME */ + { 393, -3 }, /* (357) pseudo_column ::= table_name NK_DOT TBNAME */ + { 393, -1 }, /* (358) pseudo_column ::= QSTART */ + { 393, -1 }, /* (359) pseudo_column ::= QEND */ + { 393, -1 }, /* (360) pseudo_column ::= QDURATION */ + { 393, -1 }, /* (361) pseudo_column ::= WSTART */ + { 393, -1 }, /* (362) pseudo_column ::= WEND */ + { 393, -1 }, /* (363) pseudo_column ::= WDURATION */ + { 395, -4 }, /* (364) function_expression ::= function_name NK_LP expression_list NK_RP */ + { 395, -4 }, /* (365) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + { 395, -6 }, /* (366) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ + { 395, -1 }, /* (367) function_expression ::= literal_func */ + { 387, -3 }, /* (368) literal_func ::= noarg_func NK_LP NK_RP */ + { 387, -1 }, /* (369) literal_func ::= NOW */ + { 399, -1 }, /* (370) noarg_func ::= NOW */ + { 399, -1 }, /* (371) noarg_func ::= TODAY */ + { 399, -1 }, /* (372) noarg_func ::= TIMEZONE */ + { 399, -1 }, /* (373) noarg_func ::= DATABASE */ + { 399, -1 }, /* (374) noarg_func ::= CLIENT_VERSION */ + { 399, -1 }, /* (375) noarg_func ::= SERVER_VERSION */ + { 399, -1 }, /* (376) noarg_func ::= SERVER_STATUS */ + { 399, -1 }, /* (377) noarg_func ::= CURRENT_USER */ + { 399, -1 }, /* (378) noarg_func ::= USER */ + { 397, -1 }, /* (379) star_func ::= COUNT */ + { 397, -1 }, /* (380) star_func ::= FIRST */ + { 397, -1 }, /* (381) star_func ::= LAST */ + { 397, -1 }, /* (382) star_func ::= LAST_ROW */ + { 398, -1 }, /* (383) star_func_para_list ::= NK_STAR */ + { 398, -1 }, /* (384) star_func_para_list ::= other_para_list */ + { 400, -1 }, /* (385) other_para_list ::= star_func_para */ + { 400, -3 }, /* (386) other_para_list ::= other_para_list NK_COMMA star_func_para */ + { 401, -1 }, /* (387) star_func_para ::= expr_or_subquery */ + { 401, -3 }, /* (388) star_func_para ::= table_name NK_DOT NK_STAR */ + { 396, -4 }, /* (389) case_when_expression ::= CASE when_then_list case_when_else_opt END */ + { 396, -5 }, /* (390) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ + { 402, -1 }, /* (391) when_then_list ::= when_then_expr */ + { 402, -2 }, /* (392) when_then_list ::= when_then_list when_then_expr */ + { 405, -4 }, /* (393) when_then_expr ::= WHEN common_expression THEN common_expression */ + { 403, 0 }, /* (394) case_when_else_opt ::= */ + { 403, -2 }, /* (395) case_when_else_opt ::= ELSE common_expression */ + { 406, -3 }, /* (396) predicate ::= expr_or_subquery compare_op expr_or_subquery */ + { 406, -5 }, /* (397) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + { 406, -6 }, /* (398) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + { 406, -3 }, /* (399) predicate ::= expr_or_subquery IS NULL */ + { 406, -4 }, /* (400) predicate ::= expr_or_subquery IS NOT NULL */ + { 406, -3 }, /* (401) predicate ::= expr_or_subquery in_op in_predicate_value */ + { 407, -1 }, /* (402) compare_op ::= NK_LT */ + { 407, -1 }, /* (403) compare_op ::= NK_GT */ + { 407, -1 }, /* (404) compare_op ::= NK_LE */ + { 407, -1 }, /* (405) compare_op ::= NK_GE */ + { 407, -1 }, /* (406) compare_op ::= NK_NE */ + { 407, -1 }, /* (407) compare_op ::= NK_EQ */ + { 407, -1 }, /* (408) compare_op ::= LIKE */ + { 407, -2 }, /* (409) compare_op ::= NOT LIKE */ + { 407, -1 }, /* (410) compare_op ::= MATCH */ + { 407, -1 }, /* (411) compare_op ::= NMATCH */ + { 407, -1 }, /* (412) compare_op ::= CONTAINS */ + { 408, -1 }, /* (413) in_op ::= IN */ + { 408, -2 }, /* (414) in_op ::= NOT IN */ + { 409, -3 }, /* (415) in_predicate_value ::= NK_LP literal_list NK_RP */ + { 410, -1 }, /* (416) boolean_value_expression ::= boolean_primary */ + { 410, -2 }, /* (417) boolean_value_expression ::= NOT boolean_primary */ + { 410, -3 }, /* (418) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 410, -3 }, /* (419) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 411, -1 }, /* (420) boolean_primary ::= predicate */ + { 411, -3 }, /* (421) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 404, -1 }, /* (422) common_expression ::= expr_or_subquery */ + { 404, -1 }, /* (423) common_expression ::= boolean_value_expression */ + { 412, 0 }, /* (424) from_clause_opt ::= */ + { 412, -2 }, /* (425) from_clause_opt ::= FROM table_reference_list */ + { 413, -1 }, /* (426) table_reference_list ::= table_reference */ + { 413, -3 }, /* (427) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 414, -1 }, /* (428) table_reference ::= table_primary */ + { 414, -1 }, /* (429) table_reference ::= joined_table */ + { 415, -2 }, /* (430) table_primary ::= table_name alias_opt */ + { 415, -4 }, /* (431) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 415, -2 }, /* (432) table_primary ::= subquery alias_opt */ + { 415, -1 }, /* (433) table_primary ::= parenthesized_joined_table */ + { 417, 0 }, /* (434) alias_opt ::= */ + { 417, -1 }, /* (435) alias_opt ::= table_alias */ + { 417, -2 }, /* (436) alias_opt ::= AS table_alias */ + { 418, -3 }, /* (437) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 418, -3 }, /* (438) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 416, -6 }, /* (439) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 419, 0 }, /* (440) join_type ::= */ + { 419, -1 }, /* (441) join_type ::= INNER */ + { 421, -12 }, /* (442) query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + { 422, 0 }, /* (443) set_quantifier_opt ::= */ + { 422, -1 }, /* (444) set_quantifier_opt ::= DISTINCT */ + { 422, -1 }, /* (445) set_quantifier_opt ::= ALL */ + { 423, -1 }, /* (446) select_list ::= select_item */ + { 423, -3 }, /* (447) select_list ::= select_list NK_COMMA select_item */ + { 431, -1 }, /* (448) select_item ::= NK_STAR */ + { 431, -1 }, /* (449) select_item ::= common_expression */ + { 431, -2 }, /* (450) select_item ::= common_expression column_alias */ + { 431, -3 }, /* (451) select_item ::= common_expression AS column_alias */ + { 431, -3 }, /* (452) select_item ::= table_name NK_DOT NK_STAR */ + { 385, 0 }, /* (453) where_clause_opt ::= */ + { 385, -2 }, /* (454) where_clause_opt ::= WHERE search_condition */ + { 424, 0 }, /* (455) partition_by_clause_opt ::= */ + { 424, -3 }, /* (456) partition_by_clause_opt ::= PARTITION BY partition_list */ + { 432, -1 }, /* (457) partition_list ::= partition_item */ + { 432, -3 }, /* (458) partition_list ::= partition_list NK_COMMA partition_item */ + { 433, -1 }, /* (459) partition_item ::= expr_or_subquery */ + { 433, -2 }, /* (460) partition_item ::= expr_or_subquery column_alias */ + { 433, -3 }, /* (461) partition_item ::= expr_or_subquery AS column_alias */ + { 428, 0 }, /* (462) twindow_clause_opt ::= */ + { 428, -6 }, /* (463) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + { 428, -4 }, /* (464) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ + { 428, -6 }, /* (465) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 428, -8 }, /* (466) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 370, 0 }, /* (467) sliding_opt ::= */ + { 370, -4 }, /* (468) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 427, 0 }, /* (469) fill_opt ::= */ + { 427, -4 }, /* (470) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 427, -6 }, /* (471) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 434, -1 }, /* (472) fill_mode ::= NONE */ + { 434, -1 }, /* (473) fill_mode ::= PREV */ + { 434, -1 }, /* (474) fill_mode ::= NULL */ + { 434, -1 }, /* (475) fill_mode ::= LINEAR */ + { 434, -1 }, /* (476) fill_mode ::= NEXT */ + { 429, 0 }, /* (477) group_by_clause_opt ::= */ + { 429, -3 }, /* (478) group_by_clause_opt ::= GROUP BY group_by_list */ + { 435, -1 }, /* (479) group_by_list ::= expr_or_subquery */ + { 435, -3 }, /* (480) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ + { 430, 0 }, /* (481) having_clause_opt ::= */ + { 430, -2 }, /* (482) having_clause_opt ::= HAVING search_condition */ + { 425, 0 }, /* (483) range_opt ::= */ + { 425, -6 }, /* (484) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ + { 426, 0 }, /* (485) every_opt ::= */ + { 426, -4 }, /* (486) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + { 436, -4 }, /* (487) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 437, -1 }, /* (488) query_simple ::= query_specification */ + { 437, -1 }, /* (489) query_simple ::= union_query_expression */ + { 441, -4 }, /* (490) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ + { 441, -3 }, /* (491) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ + { 442, -1 }, /* (492) query_simple_or_subquery ::= query_simple */ + { 442, -1 }, /* (493) query_simple_or_subquery ::= subquery */ + { 375, -1 }, /* (494) query_or_subquery ::= query_expression */ + { 375, -1 }, /* (495) query_or_subquery ::= subquery */ + { 438, 0 }, /* (496) order_by_clause_opt ::= */ + { 438, -3 }, /* (497) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 439, 0 }, /* (498) slimit_clause_opt ::= */ + { 439, -2 }, /* (499) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 439, -4 }, /* (500) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 439, -4 }, /* (501) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 440, 0 }, /* (502) limit_clause_opt ::= */ + { 440, -2 }, /* (503) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 440, -4 }, /* (504) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 440, -4 }, /* (505) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 392, -3 }, /* (506) subquery ::= NK_LP query_expression NK_RP */ + { 392, -3 }, /* (507) subquery ::= NK_LP subquery NK_RP */ + { 420, -1 }, /* (508) search_condition ::= common_expression */ + { 443, -1 }, /* (509) sort_specification_list ::= sort_specification */ + { 443, -3 }, /* (510) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 444, -3 }, /* (511) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ + { 445, 0 }, /* (512) ordering_specification_opt ::= */ + { 445, -1 }, /* (513) ordering_specification_opt ::= ASC */ + { 445, -1 }, /* (514) ordering_specification_opt ::= DESC */ + { 446, 0 }, /* (515) null_ordering_opt ::= */ + { 446, -2 }, /* (516) null_ordering_opt ::= NULLS FIRST */ + { 446, -2 }, /* (517) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -3507,11 +3569,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,314,&yymsp[0].minor); + yy_destructor(yypParser,316,&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,315,&yymsp[0].minor); + yy_destructor(yypParser,317,&yymsp[0].minor); break; case 2: /* account_options ::= */ { } @@ -3525,20 +3587,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,314,&yymsp[-2].minor); +{ yy_destructor(yypParser,316,&yymsp[-2].minor); { } - yy_destructor(yypParser,316,&yymsp[0].minor); + yy_destructor(yypParser,318,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ -{ yy_destructor(yypParser,317,&yymsp[0].minor); +{ yy_destructor(yypParser,319,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ -{ yy_destructor(yypParser,315,&yymsp[-1].minor); +{ yy_destructor(yypParser,317,&yymsp[-1].minor); { } - yy_destructor(yypParser,317,&yymsp[0].minor); + yy_destructor(yypParser,319,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ @@ -3552,72 +3614,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,316,&yymsp[0].minor); + yy_destructor(yypParser,318,&yymsp[0].minor); break; case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ -{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy659, &yymsp[-1].minor.yy0, yymsp[0].minor.yy341); } +{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy677, &yymsp[-1].minor.yy0, yymsp[0].minor.yy167); } break; case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy659, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy677, 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.yy659, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy677, 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.yy659, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy677, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } break; case 28: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy659); } +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy677); } break; case 29: /* sysinfo_opt ::= */ -{ yymsp[1].minor.yy341 = 1; } +{ yymsp[1].minor.yy167 = 1; } break; case 30: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ -{ yymsp[-1].minor.yy341 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } +{ yymsp[-1].minor.yy167 = 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.yy459, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy659); } +{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy57, &yymsp[-2].minor.yy677, &yymsp[0].minor.yy677); } break; case 32: /* cmd ::= REVOKE privileges ON priv_level FROM user_name */ -{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy459, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy659); } +{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy57, &yymsp[-2].minor.yy677, &yymsp[0].minor.yy677); } break; case 33: /* privileges ::= ALL */ -{ yymsp[0].minor.yy459 = PRIVILEGE_TYPE_ALL; } +{ yymsp[0].minor.yy57 = PRIVILEGE_TYPE_ALL; } break; case 34: /* privileges ::= priv_type_list */ case 35: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==35); -{ yylhsminor.yy459 = yymsp[0].minor.yy459; } - yymsp[0].minor.yy459 = yylhsminor.yy459; +{ yylhsminor.yy57 = yymsp[0].minor.yy57; } + yymsp[0].minor.yy57 = yylhsminor.yy57; break; case 36: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ -{ yylhsminor.yy459 = yymsp[-2].minor.yy459 | yymsp[0].minor.yy459; } - yymsp[-2].minor.yy459 = yylhsminor.yy459; +{ yylhsminor.yy57 = yymsp[-2].minor.yy57 | yymsp[0].minor.yy57; } + yymsp[-2].minor.yy57 = yylhsminor.yy57; break; case 37: /* priv_type ::= READ */ -{ yymsp[0].minor.yy459 = PRIVILEGE_TYPE_READ; } +{ yymsp[0].minor.yy57 = PRIVILEGE_TYPE_READ; } break; case 38: /* priv_type ::= WRITE */ -{ yymsp[0].minor.yy459 = PRIVILEGE_TYPE_WRITE; } +{ yymsp[0].minor.yy57 = PRIVILEGE_TYPE_WRITE; } break; case 39: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ -{ yylhsminor.yy659 = yymsp[-2].minor.yy0; } - yymsp[-2].minor.yy659 = yylhsminor.yy659; +{ yylhsminor.yy677 = yymsp[-2].minor.yy0; } + yymsp[-2].minor.yy677 = yylhsminor.yy677; break; case 40: /* priv_level ::= db_name NK_DOT NK_STAR */ -{ yylhsminor.yy659 = yymsp[-2].minor.yy659; } - yymsp[-2].minor.yy659 = yylhsminor.yy659; +{ yylhsminor.yy677 = yymsp[-2].minor.yy677; } + yymsp[-2].minor.yy677 = yylhsminor.yy677; break; case 41: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy659, NULL); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy677, NULL); } break; case 42: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy677, &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.yy659); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy677); } break; case 45: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } @@ -3634,31 +3696,31 @@ 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 319: /* db_name ::= NK_ID */ yytestcase(yyruleno==319); - case 320: /* table_name ::= NK_ID */ yytestcase(yyruleno==320); - case 321: /* column_name ::= NK_ID */ yytestcase(yyruleno==321); - case 322: /* function_name ::= NK_ID */ yytestcase(yyruleno==322); - case 323: /* table_alias ::= NK_ID */ yytestcase(yyruleno==323); - case 324: /* column_alias ::= NK_ID */ yytestcase(yyruleno==324); - case 325: /* user_name ::= NK_ID */ yytestcase(yyruleno==325); - case 326: /* topic_name ::= NK_ID */ yytestcase(yyruleno==326); - case 327: /* stream_name ::= NK_ID */ yytestcase(yyruleno==327); - case 328: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==328); - case 366: /* noarg_func ::= NOW */ yytestcase(yyruleno==366); - case 367: /* noarg_func ::= TODAY */ yytestcase(yyruleno==367); - case 368: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==368); - case 369: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==369); - case 370: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==370); - case 371: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==371); - case 372: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==372); - case 373: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==373); - case 374: /* noarg_func ::= USER */ yytestcase(yyruleno==374); - case 375: /* star_func ::= COUNT */ yytestcase(yyruleno==375); - case 376: /* star_func ::= FIRST */ yytestcase(yyruleno==376); - case 377: /* star_func ::= LAST */ yytestcase(yyruleno==377); - case 378: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==378); -{ yylhsminor.yy659 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy659 = yylhsminor.yy659; + case 323: /* db_name ::= NK_ID */ yytestcase(yyruleno==323); + case 324: /* table_name ::= NK_ID */ yytestcase(yyruleno==324); + case 325: /* column_name ::= NK_ID */ yytestcase(yyruleno==325); + case 326: /* function_name ::= NK_ID */ yytestcase(yyruleno==326); + case 327: /* table_alias ::= NK_ID */ yytestcase(yyruleno==327); + case 328: /* column_alias ::= NK_ID */ yytestcase(yyruleno==328); + case 329: /* user_name ::= NK_ID */ yytestcase(yyruleno==329); + case 330: /* topic_name ::= NK_ID */ yytestcase(yyruleno==330); + case 331: /* stream_name ::= NK_ID */ yytestcase(yyruleno==331); + case 332: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==332); + case 370: /* noarg_func ::= NOW */ yytestcase(yyruleno==370); + case 371: /* noarg_func ::= TODAY */ yytestcase(yyruleno==371); + case 372: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==372); + case 373: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==373); + case 374: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==374); + case 375: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==375); + case 376: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==376); + case 377: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==377); + case 378: /* noarg_func ::= USER */ yytestcase(yyruleno==378); + case 379: /* star_func ::= COUNT */ yytestcase(yyruleno==379); + case 380: /* star_func ::= FIRST */ yytestcase(yyruleno==380); + case 381: /* star_func ::= LAST */ yytestcase(yyruleno==381); + case 382: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==382); +{ yylhsminor.yy677 = yymsp[0].minor.yy0; } + yymsp[0].minor.yy677 = yylhsminor.yy677; break; case 52: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } @@ -3691,1303 +3753,1312 @@ 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.yy173, &yymsp[-1].minor.yy659, yymsp[0].minor.yy560); } +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy287, &yymsp[-1].minor.yy677, yymsp[0].minor.yy392); } break; case 63: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy659); } +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy287, &yymsp[0].minor.yy677); } break; case 64: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy659); } +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy677); } break; case 65: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy659, yymsp[0].minor.yy560); } +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy677, yymsp[0].minor.yy392); } break; case 66: /* cmd ::= FLUSH DATABASE db_name */ -{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy659); } +{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy677); } break; - case 67: /* cmd ::= TRIM DATABASE db_name */ -{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[0].minor.yy659); } + case 67: /* cmd ::= TRIM DATABASE db_name speed_opt */ +{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy677, yymsp[0].minor.yy172); } break; case 68: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy173 = true; } +{ yymsp[-2].minor.yy287 = true; } break; case 69: /* not_exists_opt ::= */ case 71: /* exists_opt ::= */ yytestcase(yyruleno==71); - case 262: /* analyze_opt ::= */ yytestcase(yyruleno==262); - case 269: /* agg_func_opt ::= */ yytestcase(yyruleno==269); - case 439: /* set_quantifier_opt ::= */ yytestcase(yyruleno==439); -{ yymsp[1].minor.yy173 = false; } + case 264: /* analyze_opt ::= */ yytestcase(yyruleno==264); + case 271: /* agg_func_opt ::= */ yytestcase(yyruleno==271); + case 443: /* set_quantifier_opt ::= */ yytestcase(yyruleno==443); +{ yymsp[1].minor.yy287 = false; } break; case 70: /* exists_opt ::= IF EXISTS */ -{ yymsp[-1].minor.yy173 = true; } +{ yymsp[-1].minor.yy287 = true; } break; case 72: /* db_options ::= */ -{ yymsp[1].minor.yy560 = createDefaultDatabaseOptions(pCxt); } +{ yymsp[1].minor.yy392 = createDefaultDatabaseOptions(pCxt); } break; case 73: /* db_options ::= db_options BUFFER NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 74: /* db_options ::= db_options CACHEMODEL NK_STRING */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 75: /* db_options ::= db_options CACHESIZE NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 76: /* db_options ::= db_options COMP NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_COMP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_COMP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 77: /* db_options ::= db_options DURATION NK_INTEGER */ case 78: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==78); -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 79: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 80: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 81: /* db_options ::= db_options KEEP integer_list */ case 82: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==82); -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_KEEP, yymsp[0].minor.yy334); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_KEEP, yymsp[0].minor.yy148); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 83: /* db_options ::= db_options PAGES NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 84: /* db_options ::= db_options PAGESIZE NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 85: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 86: /* db_options ::= db_options PRECISION NK_STRING */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 87: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 88: /* db_options ::= db_options STRICT NK_STRING */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_STRICT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_STRICT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 89: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 90: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 91: /* db_options ::= db_options RETENTIONS retention_list */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_RETENTIONS, yymsp[0].minor.yy334); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_RETENTIONS, yymsp[0].minor.yy148); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 92: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 93: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_WAL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 94: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 95: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 96: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-3].minor.yy560, DB_OPTION_WAL_RETENTION_PERIOD, &t); + yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-3].minor.yy392, DB_OPTION_WAL_RETENTION_PERIOD, &t); } - yymsp[-3].minor.yy560 = yylhsminor.yy560; + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 97: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 98: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-3].minor.yy560, DB_OPTION_WAL_RETENTION_SIZE, &t); + yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-3].minor.yy392, DB_OPTION_WAL_RETENTION_SIZE, &t); } - yymsp[-3].minor.yy560 = yylhsminor.yy560; + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 99: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 100: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 101: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 102: /* db_options ::= db_options TABLE_PREFIX NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_TABLE_PREFIX, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_TABLE_PREFIX, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 103: /* db_options ::= db_options TABLE_SUFFIX NK_INTEGER */ -{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_TABLE_SUFFIX, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_TABLE_SUFFIX, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 104: /* alter_db_options ::= alter_db_option */ -{ yylhsminor.yy560 = createAlterDatabaseOptions(pCxt); yylhsminor.yy560 = setAlterDatabaseOption(pCxt, yylhsminor.yy560, &yymsp[0].minor.yy515); } - yymsp[0].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = createAlterDatabaseOptions(pCxt); yylhsminor.yy392 = setAlterDatabaseOption(pCxt, yylhsminor.yy392, &yymsp[0].minor.yy323); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 105: /* alter_db_options ::= alter_db_options alter_db_option */ -{ yylhsminor.yy560 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy560, &yymsp[0].minor.yy515); } - yymsp[-1].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy392, &yymsp[0].minor.yy323); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 106: /* alter_db_option ::= CACHEMODEL NK_STRING */ -{ yymsp[-1].minor.yy515.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy515.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy323.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy323.val = yymsp[0].minor.yy0; } break; case 107: /* alter_db_option ::= CACHESIZE NK_INTEGER */ -{ yymsp[-1].minor.yy515.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy515.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy323.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy323.val = yymsp[0].minor.yy0; } break; case 108: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ -{ yymsp[-1].minor.yy515.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy515.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy323.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy323.val = yymsp[0].minor.yy0; } break; case 109: /* alter_db_option ::= KEEP integer_list */ case 110: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==110); -{ yymsp[-1].minor.yy515.type = DB_OPTION_KEEP; yymsp[-1].minor.yy515.pList = yymsp[0].minor.yy334; } +{ yymsp[-1].minor.yy323.type = DB_OPTION_KEEP; yymsp[-1].minor.yy323.pList = yymsp[0].minor.yy148; } break; case 111: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ -{ yymsp[-1].minor.yy515.type = DB_OPTION_WAL; yymsp[-1].minor.yy515.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy323.type = DB_OPTION_WAL; yymsp[-1].minor.yy323.val = yymsp[0].minor.yy0; } break; case 112: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ -{ yymsp[-1].minor.yy515.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy515.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy323.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy323.val = yymsp[0].minor.yy0; } break; case 113: /* integer_list ::= NK_INTEGER */ -{ yylhsminor.yy334 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy334 = yylhsminor.yy334; +{ yylhsminor.yy148 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy148 = yylhsminor.yy148; break; case 114: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ - case 289: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==289); -{ yylhsminor.yy334 = addNodeToList(pCxt, yymsp[-2].minor.yy334, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy334 = yylhsminor.yy334; + case 293: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==293); +{ yylhsminor.yy148 = addNodeToList(pCxt, yymsp[-2].minor.yy148, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy148 = yylhsminor.yy148; break; case 115: /* variable_list ::= NK_VARIABLE */ -{ yylhsminor.yy334 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy334 = yylhsminor.yy334; +{ yylhsminor.yy148 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy148 = yylhsminor.yy148; break; case 116: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -{ yylhsminor.yy334 = addNodeToList(pCxt, yymsp[-2].minor.yy334, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy334 = yylhsminor.yy334; +{ yylhsminor.yy148 = addNodeToList(pCxt, yymsp[-2].minor.yy148, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy148 = yylhsminor.yy148; break; case 117: /* retention_list ::= retention */ - case 137: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==137); - case 140: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==140); - case 147: /* column_def_list ::= column_def */ yytestcase(yyruleno==147); - case 190: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==190); - case 195: /* col_name_list ::= col_name */ yytestcase(yyruleno==195); - case 245: /* func_list ::= func */ yytestcase(yyruleno==245); - case 317: /* literal_list ::= signed_literal */ yytestcase(yyruleno==317); - case 381: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==381); - case 387: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==387); - case 442: /* select_list ::= select_item */ yytestcase(yyruleno==442); - case 500: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==500); -{ yylhsminor.yy334 = createNodeList(pCxt, yymsp[0].minor.yy560); } - yymsp[0].minor.yy334 = yylhsminor.yy334; + case 139: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==139); + case 142: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==142); + case 149: /* column_def_list ::= column_def */ yytestcase(yyruleno==149); + case 192: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==192); + case 197: /* col_name_list ::= col_name */ yytestcase(yyruleno==197); + case 247: /* func_list ::= func */ yytestcase(yyruleno==247); + case 321: /* literal_list ::= signed_literal */ yytestcase(yyruleno==321); + case 385: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==385); + case 391: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==391); + case 446: /* select_list ::= select_item */ yytestcase(yyruleno==446); + case 457: /* partition_list ::= partition_item */ yytestcase(yyruleno==457); + case 509: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==509); +{ yylhsminor.yy148 = createNodeList(pCxt, yymsp[0].minor.yy392); } + yymsp[0].minor.yy148 = yylhsminor.yy148; break; case 118: /* retention_list ::= retention_list NK_COMMA retention */ - case 148: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==148); - case 191: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==191); - case 196: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==196); - case 246: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==246); - case 318: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==318); - case 382: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==382); - case 443: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==443); - case 501: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==501); -{ yylhsminor.yy334 = addNodeToList(pCxt, yymsp[-2].minor.yy334, yymsp[0].minor.yy560); } - yymsp[-2].minor.yy334 = yylhsminor.yy334; + case 150: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==150); + case 193: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==193); + case 198: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==198); + case 248: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==248); + case 322: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==322); + case 386: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==386); + case 447: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==447); + case 458: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==458); + case 510: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==510); +{ yylhsminor.yy148 = addNodeToList(pCxt, yymsp[-2].minor.yy148, yymsp[0].minor.yy392); } + yymsp[-2].minor.yy148 = yylhsminor.yy148; break; case 119: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ -{ yylhsminor.yy560 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; +{ yylhsminor.yy392 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 120: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - case 122: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==122); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy173, yymsp[-5].minor.yy560, yymsp[-3].minor.yy334, yymsp[-1].minor.yy334, yymsp[0].minor.yy560); } + case 120: /* speed_opt ::= */ + case 273: /* bufsize_opt ::= */ yytestcase(yyruleno==273); +{ yymsp[1].minor.yy172 = 0; } break; - case 121: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy334); } + case 121: /* speed_opt ::= MAX_SPEED NK_INTEGER */ + case 274: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==274); +{ yymsp[-1].minor.yy172 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; - case 123: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy334); } + case 122: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + case 124: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==124); +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy287, yymsp[-5].minor.yy392, yymsp[-3].minor.yy148, yymsp[-1].minor.yy148, yymsp[0].minor.yy392); } break; - case 124: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy173, yymsp[0].minor.yy560); } + case 123: /* cmd ::= CREATE TABLE multi_create_clause */ +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy148); } break; - case 125: /* cmd ::= ALTER TABLE alter_table_clause */ - case 291: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==291); -{ pCxt->pRootNode = yymsp[0].minor.yy560; } + case 125: /* cmd ::= DROP TABLE multi_drop_clause */ +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy148); } break; - case 126: /* cmd ::= ALTER STABLE alter_table_clause */ -{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy560); } + case 126: /* cmd ::= DROP STABLE exists_opt full_table_name */ +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy287, yymsp[0].minor.yy392); } break; - case 127: /* alter_table_clause ::= full_table_name alter_table_options */ -{ yylhsminor.yy560 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } - yymsp[-1].minor.yy560 = yylhsminor.yy560; + case 127: /* cmd ::= ALTER TABLE alter_table_clause */ + case 295: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==295); +{ pCxt->pRootNode = yymsp[0].minor.yy392; } break; - case 128: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -{ yylhsminor.yy560 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy659, yymsp[0].minor.yy574); } - yymsp[-4].minor.yy560 = yylhsminor.yy560; + case 128: /* cmd ::= ALTER STABLE alter_table_clause */ +{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy392); } break; - case 129: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ -{ yylhsminor.yy560 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy560, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy659); } - yymsp[-3].minor.yy560 = yylhsminor.yy560; + case 129: /* alter_table_clause ::= full_table_name alter_table_options */ +{ yylhsminor.yy392 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 130: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -{ yylhsminor.yy560 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy659, yymsp[0].minor.yy574); } - yymsp[-4].minor.yy560 = yylhsminor.yy560; + case 130: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ +{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy677, yymsp[0].minor.yy838); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; - case 131: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -{ yylhsminor.yy560 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy659, &yymsp[0].minor.yy659); } - yymsp[-4].minor.yy560 = yylhsminor.yy560; + case 131: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ +{ yylhsminor.yy392 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy392, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy677); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 132: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -{ yylhsminor.yy560 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy659, yymsp[0].minor.yy574); } - yymsp[-4].minor.yy560 = yylhsminor.yy560; + case 132: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ +{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy677, yymsp[0].minor.yy838); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; - case 133: /* alter_table_clause ::= full_table_name DROP TAG column_name */ -{ yylhsminor.yy560 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy560, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy659); } - yymsp[-3].minor.yy560 = yylhsminor.yy560; + case 133: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ +{ yylhsminor.yy392 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy677, &yymsp[0].minor.yy677); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; - case 134: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -{ yylhsminor.yy560 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy659, yymsp[0].minor.yy574); } - yymsp[-4].minor.yy560 = yylhsminor.yy560; + case 134: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ +{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy677, yymsp[0].minor.yy838); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; - case 135: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -{ yylhsminor.yy560 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy659, &yymsp[0].minor.yy659); } - yymsp[-4].minor.yy560 = yylhsminor.yy560; + case 135: /* alter_table_clause ::= full_table_name DROP TAG column_name */ +{ yylhsminor.yy392 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy392, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy677); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 136: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ -{ yylhsminor.yy560 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy560, &yymsp[-2].minor.yy659, yymsp[0].minor.yy560); } - yymsp[-5].minor.yy560 = yylhsminor.yy560; + case 136: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ +{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy677, yymsp[0].minor.yy838); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; - case 138: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 141: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==141); - case 388: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==388); -{ yylhsminor.yy334 = addNodeToList(pCxt, yymsp[-1].minor.yy334, yymsp[0].minor.yy560); } - yymsp[-1].minor.yy334 = yylhsminor.yy334; + case 137: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ +{ yylhsminor.yy392 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy677, &yymsp[0].minor.yy677); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; - case 139: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ -{ yylhsminor.yy560 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy173, yymsp[-8].minor.yy560, yymsp[-6].minor.yy560, yymsp[-5].minor.yy334, yymsp[-2].minor.yy334, yymsp[0].minor.yy560); } - yymsp[-9].minor.yy560 = yylhsminor.yy560; + case 138: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ +{ yylhsminor.yy392 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy392, &yymsp[-2].minor.yy677, yymsp[0].minor.yy392); } + yymsp[-5].minor.yy392 = yylhsminor.yy392; break; - case 142: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy560 = createDropTableClause(pCxt, yymsp[-1].minor.yy173, yymsp[0].minor.yy560); } - yymsp[-1].minor.yy560 = yylhsminor.yy560; + case 140: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ + case 143: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==143); + case 392: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==392); +{ yylhsminor.yy148 = addNodeToList(pCxt, yymsp[-1].minor.yy148, yymsp[0].minor.yy392); } + yymsp[-1].minor.yy148 = yylhsminor.yy148; break; - case 143: /* specific_cols_opt ::= */ - case 174: /* tags_def_opt ::= */ yytestcase(yyruleno==174); - case 451: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==451); - case 468: /* group_by_clause_opt ::= */ yytestcase(yyruleno==468); - case 487: /* order_by_clause_opt ::= */ yytestcase(yyruleno==487); -{ yymsp[1].minor.yy334 = NULL; } + case 141: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ +{ yylhsminor.yy392 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy287, yymsp[-8].minor.yy392, yymsp[-6].minor.yy392, yymsp[-5].minor.yy148, yymsp[-2].minor.yy148, yymsp[0].minor.yy392); } + yymsp[-9].minor.yy392 = yylhsminor.yy392; break; - case 144: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ -{ yymsp[-2].minor.yy334 = yymsp[-1].minor.yy334; } + case 144: /* drop_table_clause ::= exists_opt full_table_name */ +{ yylhsminor.yy392 = createDropTableClause(pCxt, yymsp[-1].minor.yy287, yymsp[0].minor.yy392); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 145: /* full_table_name ::= table_name */ -{ yylhsminor.yy560 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy659, NULL); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 145: /* specific_cols_opt ::= */ + case 176: /* tags_def_opt ::= */ yytestcase(yyruleno==176); + case 455: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==455); + case 477: /* group_by_clause_opt ::= */ yytestcase(yyruleno==477); + case 496: /* order_by_clause_opt ::= */ yytestcase(yyruleno==496); +{ yymsp[1].minor.yy148 = NULL; } break; - case 146: /* full_table_name ::= db_name NK_DOT table_name */ -{ yylhsminor.yy560 = createRealTableNode(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy659, NULL); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 146: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ +{ yymsp[-2].minor.yy148 = yymsp[-1].minor.yy148; } break; - case 149: /* column_def ::= column_name type_name */ -{ yylhsminor.yy560 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy659, yymsp[0].minor.yy574, NULL); } - yymsp[-1].minor.yy560 = yylhsminor.yy560; + case 147: /* full_table_name ::= table_name */ +{ yylhsminor.yy392 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy677, NULL); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 150: /* column_def ::= column_name type_name COMMENT NK_STRING */ -{ yylhsminor.yy560 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy659, yymsp[-2].minor.yy574, &yymsp[0].minor.yy0); } - yymsp[-3].minor.yy560 = yylhsminor.yy560; + case 148: /* full_table_name ::= db_name NK_DOT table_name */ +{ yylhsminor.yy392 = createRealTableNode(pCxt, &yymsp[-2].minor.yy677, &yymsp[0].minor.yy677, NULL); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 151: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy574 = createDataType(TSDB_DATA_TYPE_BOOL); } + case 151: /* column_def ::= column_name type_name */ +{ yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy677, yymsp[0].minor.yy838, NULL); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 152: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy574 = createDataType(TSDB_DATA_TYPE_TINYINT); } + case 152: /* column_def ::= column_name type_name COMMENT NK_STRING */ +{ yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy677, yymsp[-2].minor.yy838, &yymsp[0].minor.yy0); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 153: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy574 = createDataType(TSDB_DATA_TYPE_SMALLINT); } + case 153: /* type_name ::= BOOL */ +{ yymsp[0].minor.yy838 = createDataType(TSDB_DATA_TYPE_BOOL); } break; - case 154: /* type_name ::= INT */ - case 155: /* type_name ::= INTEGER */ yytestcase(yyruleno==155); -{ yymsp[0].minor.yy574 = createDataType(TSDB_DATA_TYPE_INT); } + case 154: /* type_name ::= TINYINT */ +{ yymsp[0].minor.yy838 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; - case 156: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy574 = createDataType(TSDB_DATA_TYPE_BIGINT); } + case 155: /* type_name ::= SMALLINT */ +{ yymsp[0].minor.yy838 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; - case 157: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy574 = createDataType(TSDB_DATA_TYPE_FLOAT); } + case 156: /* type_name ::= INT */ + case 157: /* type_name ::= INTEGER */ yytestcase(yyruleno==157); +{ yymsp[0].minor.yy838 = createDataType(TSDB_DATA_TYPE_INT); } break; - case 158: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy574 = createDataType(TSDB_DATA_TYPE_DOUBLE); } + case 158: /* type_name ::= BIGINT */ +{ yymsp[0].minor.yy838 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; - case 159: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy574 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } + case 159: /* type_name ::= FLOAT */ +{ yymsp[0].minor.yy838 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; - case 160: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy574 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } + case 160: /* type_name ::= DOUBLE */ +{ yymsp[0].minor.yy838 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; - case 161: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy574 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } + case 161: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy838 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; - case 162: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy574 = createDataType(TSDB_DATA_TYPE_UTINYINT); } + case 162: /* type_name ::= TIMESTAMP */ +{ yymsp[0].minor.yy838 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; - case 163: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy574 = createDataType(TSDB_DATA_TYPE_USMALLINT); } + case 163: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy838 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; - case 164: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy574 = createDataType(TSDB_DATA_TYPE_UINT); } + case 164: /* type_name ::= TINYINT UNSIGNED */ +{ yymsp[-1].minor.yy838 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; - case 165: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy574 = createDataType(TSDB_DATA_TYPE_UBIGINT); } + case 165: /* type_name ::= SMALLINT UNSIGNED */ +{ yymsp[-1].minor.yy838 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; - case 166: /* type_name ::= JSON */ -{ yymsp[0].minor.yy574 = createDataType(TSDB_DATA_TYPE_JSON); } + case 166: /* type_name ::= INT UNSIGNED */ +{ yymsp[-1].minor.yy838 = createDataType(TSDB_DATA_TYPE_UINT); } break; - case 167: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy574 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } + case 167: /* type_name ::= BIGINT UNSIGNED */ +{ yymsp[-1].minor.yy838 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; - case 168: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy574 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } + case 168: /* type_name ::= JSON */ +{ yymsp[0].minor.yy838 = createDataType(TSDB_DATA_TYPE_JSON); } break; - case 169: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy574 = createDataType(TSDB_DATA_TYPE_BLOB); } + case 169: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy838 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; - case 170: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy574 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } + case 170: /* type_name ::= MEDIUMBLOB */ +{ yymsp[0].minor.yy838 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; - case 171: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy574 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 171: /* type_name ::= BLOB */ +{ yymsp[0].minor.yy838 = createDataType(TSDB_DATA_TYPE_BLOB); } break; - case 172: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy574 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 172: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy838 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; - case 173: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy574 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 173: /* type_name ::= DECIMAL */ +{ yymsp[0].minor.yy838 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 175: /* tags_def_opt ::= tags_def */ - case 380: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==380); -{ yylhsminor.yy334 = yymsp[0].minor.yy334; } - yymsp[0].minor.yy334 = yylhsminor.yy334; + case 174: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy838 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 176: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ -{ yymsp[-3].minor.yy334 = yymsp[-1].minor.yy334; } + case 175: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ +{ yymsp[-5].minor.yy838 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 177: /* table_options ::= */ -{ yymsp[1].minor.yy560 = createDefaultTableOptions(pCxt); } + case 177: /* tags_def_opt ::= tags_def */ + case 384: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==384); +{ yylhsminor.yy148 = yymsp[0].minor.yy148; } + yymsp[0].minor.yy148 = yylhsminor.yy148; break; - case 178: /* table_options ::= table_options COMMENT NK_STRING */ -{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 178: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ +{ yymsp[-3].minor.yy148 = yymsp[-1].minor.yy148; } break; - case 179: /* table_options ::= table_options MAX_DELAY duration_list */ -{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy334); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 179: /* table_options ::= */ +{ yymsp[1].minor.yy392 = createDefaultTableOptions(pCxt); } break; - case 180: /* table_options ::= table_options WATERMARK duration_list */ -{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy334); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 180: /* table_options ::= table_options COMMENT NK_STRING */ +{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 181: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-4].minor.yy560, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy334); } - yymsp[-4].minor.yy560 = yylhsminor.yy560; + case 181: /* table_options ::= table_options MAX_DELAY duration_list */ +{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy148); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 182: /* table_options ::= table_options TTL NK_INTEGER */ -{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 182: /* table_options ::= table_options WATERMARK duration_list */ +{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy148); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 183: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-4].minor.yy560, TABLE_OPTION_SMA, yymsp[-1].minor.yy334); } - yymsp[-4].minor.yy560 = yylhsminor.yy560; + case 183: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ +{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-4].minor.yy392, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy148); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; - case 184: /* alter_table_options ::= alter_table_option */ -{ yylhsminor.yy560 = createAlterTableOptions(pCxt); yylhsminor.yy560 = setTableOption(pCxt, yylhsminor.yy560, yymsp[0].minor.yy515.type, &yymsp[0].minor.yy515.val); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 184: /* table_options ::= table_options TTL NK_INTEGER */ +{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 185: /* alter_table_options ::= alter_table_options alter_table_option */ -{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-1].minor.yy560, yymsp[0].minor.yy515.type, &yymsp[0].minor.yy515.val); } - yymsp[-1].minor.yy560 = yylhsminor.yy560; + case 185: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ +{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-4].minor.yy392, TABLE_OPTION_SMA, yymsp[-1].minor.yy148); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; - case 186: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy515.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy515.val = yymsp[0].minor.yy0; } + case 186: /* alter_table_options ::= alter_table_option */ +{ yylhsminor.yy392 = createAlterTableOptions(pCxt); yylhsminor.yy392 = setTableOption(pCxt, yylhsminor.yy392, yymsp[0].minor.yy323.type, &yymsp[0].minor.yy323.val); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 187: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy515.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy515.val = yymsp[0].minor.yy0; } + case 187: /* alter_table_options ::= alter_table_options alter_table_option */ +{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy323.type, &yymsp[0].minor.yy323.val); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 188: /* duration_list ::= duration_literal */ - case 347: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==347); -{ yylhsminor.yy334 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); } - yymsp[0].minor.yy334 = yylhsminor.yy334; + case 188: /* alter_table_option ::= COMMENT NK_STRING */ +{ yymsp[-1].minor.yy323.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy323.val = yymsp[0].minor.yy0; } break; - case 189: /* duration_list ::= duration_list NK_COMMA duration_literal */ - case 348: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==348); -{ yylhsminor.yy334 = addNodeToList(pCxt, yymsp[-2].minor.yy334, releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); } - yymsp[-2].minor.yy334 = yylhsminor.yy334; + case 189: /* alter_table_option ::= TTL NK_INTEGER */ +{ yymsp[-1].minor.yy323.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy323.val = yymsp[0].minor.yy0; } break; - case 192: /* rollup_func_name ::= function_name */ -{ yylhsminor.yy560 = createFunctionNode(pCxt, &yymsp[0].minor.yy659, NULL); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 190: /* duration_list ::= duration_literal */ + case 351: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==351); +{ yylhsminor.yy148 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } + yymsp[0].minor.yy148 = yylhsminor.yy148; break; - case 193: /* rollup_func_name ::= FIRST */ - case 194: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==194); -{ yylhsminor.yy560 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 191: /* duration_list ::= duration_list NK_COMMA duration_literal */ + case 352: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==352); +{ yylhsminor.yy148 = addNodeToList(pCxt, yymsp[-2].minor.yy148, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } + yymsp[-2].minor.yy148 = yylhsminor.yy148; break; - case 197: /* col_name ::= column_name */ -{ yylhsminor.yy560 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy659); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 194: /* rollup_func_name ::= function_name */ +{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[0].minor.yy677, NULL); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 198: /* cmd ::= SHOW DNODES */ + case 195: /* rollup_func_name ::= FIRST */ + case 196: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==196); +{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy392 = yylhsminor.yy392; + break; + case 199: /* col_name ::= column_name */ +{ yylhsminor.yy392 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy677); } + yymsp[0].minor.yy392 = yylhsminor.yy392; + break; + case 200: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } break; - case 199: /* cmd ::= SHOW USERS */ + case 201: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } break; - case 200: /* cmd ::= SHOW DATABASES */ + case 202: /* cmd ::= SHOW DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); } break; - case 201: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy560, yymsp[0].minor.yy560, OP_TYPE_LIKE); } + case 203: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, OP_TYPE_LIKE); } break; - case 202: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy560, yymsp[0].minor.yy560, OP_TYPE_LIKE); } + case 204: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, OP_TYPE_LIKE); } break; - case 203: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy560, NULL, OP_TYPE_LIKE); } + case 205: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy392, NULL, OP_TYPE_LIKE); } break; - case 204: /* cmd ::= SHOW MNODES */ + case 206: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } break; - case 205: /* cmd ::= SHOW MODULES */ + case 207: /* cmd ::= SHOW MODULES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MODULES_STMT); } break; - case 206: /* cmd ::= SHOW QNODES */ + case 208: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } break; - case 207: /* cmd ::= SHOW FUNCTIONS */ + case 209: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } break; - case 208: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy560, yymsp[-1].minor.yy560, OP_TYPE_EQUAL); } + case 210: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy392, yymsp[-1].minor.yy392, OP_TYPE_EQUAL); } break; - case 209: /* cmd ::= SHOW STREAMS */ + case 211: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } break; - case 210: /* cmd ::= SHOW ACCOUNTS */ + case 212: /* cmd ::= SHOW ACCOUNTS */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } break; - case 211: /* cmd ::= SHOW APPS */ + case 213: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } break; - case 212: /* cmd ::= SHOW CONNECTIONS */ + case 214: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } break; - case 213: /* cmd ::= SHOW LICENCES */ - case 214: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==214); + case 215: /* cmd ::= SHOW LICENCES */ + case 216: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==216); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } break; - case 215: /* cmd ::= SHOW CREATE DATABASE db_name */ -{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy659); } + case 217: /* cmd ::= SHOW CREATE DATABASE db_name */ +{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy677); } break; - case 216: /* cmd ::= SHOW CREATE TABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy560); } + case 218: /* cmd ::= SHOW CREATE TABLE full_table_name */ +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy392); } break; - case 217: /* cmd ::= SHOW CREATE STABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy560); } + case 219: /* cmd ::= SHOW CREATE STABLE full_table_name */ +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy392); } break; - case 218: /* cmd ::= SHOW QUERIES */ + case 220: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } break; - case 219: /* cmd ::= SHOW SCORES */ + case 221: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } break; - case 220: /* cmd ::= SHOW TOPICS */ + case 222: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } break; - case 221: /* cmd ::= SHOW VARIABLES */ + case 223: /* cmd ::= SHOW VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } break; - case 222: /* cmd ::= SHOW LOCAL VARIABLES */ + case 224: /* cmd ::= SHOW LOCAL VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } break; - case 223: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES */ + case 225: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES */ { pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-1].minor.yy0)); } break; - case 224: /* cmd ::= SHOW BNODES */ + case 226: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } break; - case 225: /* cmd ::= SHOW SNODES */ + case 227: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } break; - case 226: /* cmd ::= SHOW CLUSTER */ + case 228: /* cmd ::= SHOW CLUSTER */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } break; - case 227: /* cmd ::= SHOW TRANSACTIONS */ + case 229: /* cmd ::= SHOW TRANSACTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } break; - case 228: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy560); } + case 230: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ +{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy392); } break; - case 229: /* cmd ::= SHOW CONSUMERS */ + case 231: /* cmd ::= SHOW CONSUMERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } break; - case 230: /* cmd ::= SHOW SUBSCRIPTIONS */ + case 232: /* cmd ::= SHOW SUBSCRIPTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } break; - case 231: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy560, yymsp[-1].minor.yy560, OP_TYPE_EQUAL); } + case 233: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy392, yymsp[-1].minor.yy392, OP_TYPE_EQUAL); } break; - case 232: /* cmd ::= SHOW VNODES NK_INTEGER */ + case 234: /* cmd ::= SHOW VNODES NK_INTEGER */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } break; - case 233: /* cmd ::= SHOW VNODES NK_STRING */ + case 235: /* cmd ::= SHOW VNODES NK_STRING */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, createValueNode(pCxt, TSDB_DATA_TYPE_VARCHAR, &yymsp[0].minor.yy0)); } break; - case 234: /* db_name_cond_opt ::= */ - case 239: /* from_db_opt ::= */ yytestcase(yyruleno==239); -{ yymsp[1].minor.yy560 = createDefaultDatabaseCondValue(pCxt); } + case 236: /* db_name_cond_opt ::= */ + case 241: /* from_db_opt ::= */ yytestcase(yyruleno==241); +{ yymsp[1].minor.yy392 = createDefaultDatabaseCondValue(pCxt); } break; - case 235: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy659); } - yymsp[-1].minor.yy560 = yylhsminor.yy560; + case 237: /* db_name_cond_opt ::= db_name NK_DOT */ +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy677); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 236: /* like_pattern_opt ::= */ - case 390: /* case_when_else_opt ::= */ yytestcase(yyruleno==390); - case 420: /* from_clause_opt ::= */ yytestcase(yyruleno==420); - case 449: /* where_clause_opt ::= */ yytestcase(yyruleno==449); - case 453: /* twindow_clause_opt ::= */ yytestcase(yyruleno==453); - case 458: /* sliding_opt ::= */ yytestcase(yyruleno==458); - case 460: /* fill_opt ::= */ yytestcase(yyruleno==460); - case 472: /* having_clause_opt ::= */ yytestcase(yyruleno==472); - case 474: /* range_opt ::= */ yytestcase(yyruleno==474); - case 476: /* every_opt ::= */ yytestcase(yyruleno==476); - case 489: /* slimit_clause_opt ::= */ yytestcase(yyruleno==489); - case 493: /* limit_clause_opt ::= */ yytestcase(yyruleno==493); -{ yymsp[1].minor.yy560 = NULL; } + case 238: /* like_pattern_opt ::= */ + case 283: /* subtable_opt ::= */ yytestcase(yyruleno==283); + case 394: /* case_when_else_opt ::= */ yytestcase(yyruleno==394); + case 424: /* from_clause_opt ::= */ yytestcase(yyruleno==424); + case 453: /* where_clause_opt ::= */ yytestcase(yyruleno==453); + case 462: /* twindow_clause_opt ::= */ yytestcase(yyruleno==462); + case 467: /* sliding_opt ::= */ yytestcase(yyruleno==467); + case 469: /* fill_opt ::= */ yytestcase(yyruleno==469); + case 481: /* having_clause_opt ::= */ yytestcase(yyruleno==481); + case 483: /* range_opt ::= */ yytestcase(yyruleno==483); + case 485: /* every_opt ::= */ yytestcase(yyruleno==485); + case 498: /* slimit_clause_opt ::= */ yytestcase(yyruleno==498); + case 502: /* limit_clause_opt ::= */ yytestcase(yyruleno==502); +{ yymsp[1].minor.yy392 = NULL; } break; - case 237: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + case 239: /* like_pattern_opt ::= LIKE NK_STRING */ +{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; - case 238: /* table_name_cond ::= table_name */ -{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy659); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 240: /* table_name_cond ::= table_name */ +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy677); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 240: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy659); } + case 242: /* from_db_opt ::= FROM db_name */ +{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy677); } break; - case 241: /* cmd ::= CREATE SMA INDEX not_exists_opt full_table_name ON full_table_name index_options */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy173, yymsp[-3].minor.yy560, yymsp[-1].minor.yy560, NULL, yymsp[0].minor.yy560); } + case 243: /* cmd ::= CREATE SMA INDEX not_exists_opt full_table_name ON full_table_name index_options */ +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy287, yymsp[-3].minor.yy392, yymsp[-1].minor.yy392, NULL, yymsp[0].minor.yy392); } break; - case 242: /* cmd ::= DROP INDEX exists_opt full_table_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy173, yymsp[0].minor.yy560); } + case 244: /* cmd ::= DROP INDEX exists_opt full_table_name */ +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy287, yymsp[0].minor.yy392); } break; - case 243: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ -{ yymsp[-9].minor.yy560 = createIndexOption(pCxt, yymsp[-7].minor.yy334, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), NULL, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } + case 245: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ +{ yymsp[-9].minor.yy392 = createIndexOption(pCxt, yymsp[-7].minor.yy148, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), NULL, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; - case 244: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ -{ yymsp[-11].minor.yy560 = createIndexOption(pCxt, yymsp[-9].minor.yy334, releaseRawExprNode(pCxt, yymsp[-5].minor.yy560), releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } + case 246: /* 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.yy392 = createIndexOption(pCxt, yymsp[-9].minor.yy148, releaseRawExprNode(pCxt, yymsp[-5].minor.yy392), releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; - case 247: /* func ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy560 = createFunctionNode(pCxt, &yymsp[-3].minor.yy659, yymsp[-1].minor.yy334); } - yymsp[-3].minor.yy560 = yylhsminor.yy560; + case 249: /* func ::= function_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[-3].minor.yy677, yymsp[-1].minor.yy148); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 248: /* sma_stream_opt ::= */ - case 275: /* stream_options ::= */ yytestcase(yyruleno==275); -{ yymsp[1].minor.yy560 = createStreamOptions(pCxt); } + case 250: /* sma_stream_opt ::= */ + case 277: /* stream_options ::= */ yytestcase(yyruleno==277); +{ yymsp[1].minor.yy392 = createStreamOptions(pCxt); } break; - case 249: /* sma_stream_opt ::= stream_options WATERMARK duration_literal */ - case 279: /* stream_options ::= stream_options WATERMARK duration_literal */ yytestcase(yyruleno==279); -{ ((SStreamOptions*)yymsp[-2].minor.yy560)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); yylhsminor.yy560 = yymsp[-2].minor.yy560; } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 251: /* sma_stream_opt ::= stream_options WATERMARK duration_literal */ + case 281: /* stream_options ::= stream_options WATERMARK duration_literal */ yytestcase(yyruleno==281); +{ ((SStreamOptions*)yymsp[-2].minor.yy392)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 250: /* sma_stream_opt ::= stream_options MAX_DELAY duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy560)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); yylhsminor.yy560 = yymsp[-2].minor.yy560; } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 252: /* sma_stream_opt ::= stream_options MAX_DELAY duration_literal */ +{ ((SStreamOptions*)yymsp[-2].minor.yy392)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 251: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ -{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy173, &yymsp[-2].minor.yy659, yymsp[0].minor.yy560); } + case 253: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ +{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy287, &yymsp[-2].minor.yy677, yymsp[0].minor.yy392); } break; - case 252: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ -{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy173, &yymsp[-3].minor.yy659, &yymsp[0].minor.yy659, false); } + case 254: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ +{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy287, &yymsp[-3].minor.yy677, &yymsp[0].minor.yy677, false); } break; - case 253: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ -{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-6].minor.yy173, &yymsp[-5].minor.yy659, &yymsp[0].minor.yy659, true); } + case 255: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ +{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-6].minor.yy287, &yymsp[-5].minor.yy677, &yymsp[0].minor.yy677, true); } break; - case 254: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ -{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-4].minor.yy173, &yymsp[-3].minor.yy659, yymsp[0].minor.yy560, false); } + case 256: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ +{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-4].minor.yy287, &yymsp[-3].minor.yy677, yymsp[0].minor.yy392, false); } break; - case 255: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ -{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-6].minor.yy173, &yymsp[-5].minor.yy659, yymsp[0].minor.yy560, true); } + case 257: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ +{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-6].minor.yy287, &yymsp[-5].minor.yy677, yymsp[0].minor.yy392, true); } break; - case 256: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy659); } + case 258: /* cmd ::= DROP TOPIC exists_opt topic_name */ +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy287, &yymsp[0].minor.yy677); } break; - case 257: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy173, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy659); } + case 259: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ +{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy287, &yymsp[-2].minor.yy677, &yymsp[0].minor.yy677); } break; - case 258: /* cmd ::= DESC full_table_name */ - case 259: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==259); -{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy560); } + case 260: /* cmd ::= DESC full_table_name */ + case 261: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==261); +{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy392); } break; - case 260: /* cmd ::= RESET QUERY CACHE */ + case 262: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; - case 261: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ -{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy173, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } + case 263: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy287, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; - case 263: /* analyze_opt ::= ANALYZE */ - case 270: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==270); - case 440: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==440); -{ yymsp[0].minor.yy173 = true; } + case 265: /* analyze_opt ::= ANALYZE */ + case 272: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==272); + case 444: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==444); +{ yymsp[0].minor.yy287 = true; } break; - case 264: /* explain_options ::= */ -{ yymsp[1].minor.yy560 = createDefaultExplainOptions(pCxt); } + case 266: /* explain_options ::= */ +{ yymsp[1].minor.yy392 = createDefaultExplainOptions(pCxt); } break; - case 265: /* explain_options ::= explain_options VERBOSE NK_BOOL */ -{ yylhsminor.yy560 = setExplainVerbose(pCxt, yymsp[-2].minor.yy560, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 267: /* explain_options ::= explain_options VERBOSE NK_BOOL */ +{ yylhsminor.yy392 = setExplainVerbose(pCxt, yymsp[-2].minor.yy392, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 266: /* explain_options ::= explain_options RATIO NK_FLOAT */ -{ yylhsminor.yy560 = setExplainRatio(pCxt, yymsp[-2].minor.yy560, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 268: /* explain_options ::= explain_options RATIO NK_FLOAT */ +{ yylhsminor.yy392 = setExplainRatio(pCxt, yymsp[-2].minor.yy392, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 267: /* cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ -{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-6].minor.yy173, yymsp[-8].minor.yy173, &yymsp[-5].minor.yy659, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy574, yymsp[0].minor.yy676); } + case 269: /* 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.yy287, yymsp[-8].minor.yy287, &yymsp[-5].minor.yy677, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy838, yymsp[0].minor.yy172); } break; - case 268: /* cmd ::= DROP FUNCTION exists_opt function_name */ -{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy659); } + case 270: /* cmd ::= DROP FUNCTION exists_opt function_name */ +{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy287, &yymsp[0].minor.yy677); } break; - case 271: /* bufsize_opt ::= */ -{ yymsp[1].minor.yy676 = 0; } + case 275: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name tags_def_opt subtable_opt AS query_or_subquery */ +{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-8].minor.yy287, &yymsp[-7].minor.yy677, yymsp[-4].minor.yy392, yymsp[-6].minor.yy392, yymsp[-3].minor.yy148, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); } break; - case 272: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ -{ yymsp[-1].minor.yy676 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } + case 276: /* cmd ::= DROP STREAM exists_opt stream_name */ +{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy287, &yymsp[0].minor.yy677); } break; - case 273: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name AS query_or_subquery */ -{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-6].minor.yy173, &yymsp[-5].minor.yy659, yymsp[-2].minor.yy560, yymsp[-4].minor.yy560, yymsp[0].minor.yy560); } + case 278: /* stream_options ::= stream_options TRIGGER AT_ONCE */ +{ ((SStreamOptions*)yymsp[-2].minor.yy392)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 274: /* cmd ::= DROP STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy659); } + case 279: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ +{ ((SStreamOptions*)yymsp[-2].minor.yy392)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 276: /* stream_options ::= stream_options TRIGGER AT_ONCE */ -{ ((SStreamOptions*)yymsp[-2].minor.yy560)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy560 = yymsp[-2].minor.yy560; } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 280: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ +{ ((SStreamOptions*)yymsp[-3].minor.yy392)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy392)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = yymsp[-3].minor.yy392; } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 277: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ -{ ((SStreamOptions*)yymsp[-2].minor.yy560)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy560 = yymsp[-2].minor.yy560; } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 282: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ +{ ((SStreamOptions*)yymsp[-3].minor.yy392)->ignoreExpired = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); yylhsminor.yy392 = yymsp[-3].minor.yy392; } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 278: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -{ ((SStreamOptions*)yymsp[-3].minor.yy560)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy560)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); yylhsminor.yy560 = yymsp[-3].minor.yy560; } - yymsp[-3].minor.yy560 = yylhsminor.yy560; + case 284: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + case 468: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==468); + case 486: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==486); +{ yymsp[-3].minor.yy392 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy392); } break; - case 280: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ -{ ((SStreamOptions*)yymsp[-3].minor.yy560)->ignoreExpired = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); yylhsminor.yy560 = yymsp[-3].minor.yy560; } - yymsp[-3].minor.yy560 = yylhsminor.yy560; - break; - case 281: /* cmd ::= KILL CONNECTION NK_INTEGER */ + case 285: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; - case 282: /* cmd ::= KILL QUERY NK_STRING */ + case 286: /* cmd ::= KILL QUERY NK_STRING */ { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 283: /* cmd ::= KILL TRANSACTION NK_INTEGER */ + case 287: /* cmd ::= KILL TRANSACTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } break; - case 284: /* cmd ::= BALANCE VGROUP */ + case 288: /* cmd ::= BALANCE VGROUP */ { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } break; - case 285: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + case 289: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 286: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy334); } + case 290: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ +{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy148); } break; - case 287: /* cmd ::= SPLIT VGROUP NK_INTEGER */ + case 291: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 288: /* dnode_list ::= DNODE NK_INTEGER */ -{ yymsp[-1].minor.yy334 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + case 292: /* dnode_list ::= DNODE NK_INTEGER */ +{ yymsp[-1].minor.yy148 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; - case 290: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ -{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } + case 294: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ +{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; - case 292: /* cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ -{ pCxt->pRootNode = createInsertStmt(pCxt, yymsp[-4].minor.yy560, yymsp[-2].minor.yy334, yymsp[0].minor.yy560); } + case 296: /* cmd ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ +{ pCxt->pRootNode = createInsertStmt(pCxt, yymsp[-4].minor.yy392, yymsp[-2].minor.yy148, yymsp[0].minor.yy392); } break; - case 293: /* cmd ::= INSERT INTO full_table_name query_or_subquery */ -{ pCxt->pRootNode = createInsertStmt(pCxt, yymsp[-1].minor.yy560, NULL, yymsp[0].minor.yy560); } + case 297: /* cmd ::= INSERT INTO full_table_name query_or_subquery */ +{ pCxt->pRootNode = createInsertStmt(pCxt, yymsp[-1].minor.yy392, NULL, yymsp[0].minor.yy392); } break; - case 294: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 298: /* literal ::= NK_INTEGER */ +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 295: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 299: /* literal ::= NK_FLOAT */ +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 296: /* literal ::= NK_STRING */ -{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 300: /* literal ::= NK_STRING */ +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 297: /* literal ::= NK_BOOL */ -{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 301: /* literal ::= NK_BOOL */ +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 298: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy560 = yylhsminor.yy560; + case 302: /* literal ::= TIMESTAMP NK_STRING */ +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 299: /* literal ::= duration_literal */ - case 309: /* signed_literal ::= signed */ yytestcase(yyruleno==309); - case 329: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==329); - case 330: /* expr_or_subquery ::= subquery */ yytestcase(yyruleno==330); - case 331: /* expression ::= literal */ yytestcase(yyruleno==331); - case 332: /* expression ::= pseudo_column */ yytestcase(yyruleno==332); - case 333: /* expression ::= column_reference */ yytestcase(yyruleno==333); - case 334: /* expression ::= function_expression */ yytestcase(yyruleno==334); - case 335: /* expression ::= case_when_expression */ yytestcase(yyruleno==335); - case 363: /* function_expression ::= literal_func */ yytestcase(yyruleno==363); - case 412: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==412); - case 416: /* boolean_primary ::= predicate */ yytestcase(yyruleno==416); - case 418: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==418); - case 419: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==419); - case 422: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==422); - case 424: /* table_reference ::= table_primary */ yytestcase(yyruleno==424); - case 425: /* table_reference ::= joined_table */ yytestcase(yyruleno==425); - case 429: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==429); - case 479: /* query_simple ::= query_specification */ yytestcase(yyruleno==479); - case 480: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==480); - case 483: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==483); - case 485: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==485); -{ yylhsminor.yy560 = yymsp[0].minor.yy560; } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 303: /* literal ::= duration_literal */ + case 313: /* signed_literal ::= signed */ yytestcase(yyruleno==313); + case 333: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==333); + case 334: /* expr_or_subquery ::= subquery */ yytestcase(yyruleno==334); + case 335: /* expression ::= literal */ yytestcase(yyruleno==335); + case 336: /* expression ::= pseudo_column */ yytestcase(yyruleno==336); + case 337: /* expression ::= column_reference */ yytestcase(yyruleno==337); + case 338: /* expression ::= function_expression */ yytestcase(yyruleno==338); + case 339: /* expression ::= case_when_expression */ yytestcase(yyruleno==339); + case 367: /* function_expression ::= literal_func */ yytestcase(yyruleno==367); + case 416: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==416); + case 420: /* boolean_primary ::= predicate */ yytestcase(yyruleno==420); + case 422: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==422); + case 423: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==423); + case 426: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==426); + case 428: /* table_reference ::= table_primary */ yytestcase(yyruleno==428); + case 429: /* table_reference ::= joined_table */ yytestcase(yyruleno==429); + case 433: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==433); + case 488: /* query_simple ::= query_specification */ yytestcase(yyruleno==488); + case 489: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==489); + case 492: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==492); + case 494: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==494); +{ yylhsminor.yy392 = yymsp[0].minor.yy392; } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 300: /* literal ::= NULL */ -{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 304: /* literal ::= NULL */ +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 301: /* literal ::= NK_QUESTION */ -{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 305: /* literal ::= NK_QUESTION */ +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 302: /* duration_literal ::= NK_VARIABLE */ -{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 306: /* duration_literal ::= NK_VARIABLE */ +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 303: /* signed ::= NK_INTEGER */ -{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 307: /* signed ::= NK_INTEGER */ +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 304: /* signed ::= NK_PLUS NK_INTEGER */ -{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } + case 308: /* signed ::= NK_PLUS NK_INTEGER */ +{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } break; - case 305: /* signed ::= NK_MINUS NK_INTEGER */ + case 309: /* 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.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } - yymsp[-1].minor.yy560 = yylhsminor.yy560; + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 306: /* signed ::= NK_FLOAT */ -{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 310: /* signed ::= NK_FLOAT */ +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 307: /* signed ::= NK_PLUS NK_FLOAT */ -{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + case 311: /* signed ::= NK_PLUS NK_FLOAT */ +{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; - case 308: /* signed ::= NK_MINUS NK_FLOAT */ + case 312: /* 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.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } - yymsp[-1].minor.yy560 = yylhsminor.yy560; + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 310: /* signed_literal ::= NK_STRING */ -{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 314: /* signed_literal ::= NK_STRING */ +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 311: /* signed_literal ::= NK_BOOL */ -{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 315: /* signed_literal ::= NK_BOOL */ +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 312: /* signed_literal ::= TIMESTAMP NK_STRING */ -{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } + case 316: /* signed_literal ::= TIMESTAMP NK_STRING */ +{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 313: /* signed_literal ::= duration_literal */ - case 315: /* signed_literal ::= literal_func */ yytestcase(yyruleno==315); - case 383: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==383); - case 445: /* select_item ::= common_expression */ yytestcase(yyruleno==445); - case 484: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==484); - case 486: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==486); - case 499: /* search_condition ::= common_expression */ yytestcase(yyruleno==499); -{ yylhsminor.yy560 = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 317: /* signed_literal ::= duration_literal */ + case 319: /* signed_literal ::= literal_func */ yytestcase(yyruleno==319); + case 387: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==387); + case 449: /* select_item ::= common_expression */ yytestcase(yyruleno==449); + case 459: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==459); + case 493: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==493); + case 495: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==495); + case 508: /* search_condition ::= common_expression */ yytestcase(yyruleno==508); +{ yylhsminor.yy392 = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 314: /* signed_literal ::= NULL */ -{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 318: /* signed_literal ::= NULL */ +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 316: /* signed_literal ::= NK_QUESTION */ -{ yylhsminor.yy560 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 320: /* signed_literal ::= NK_QUESTION */ +{ yylhsminor.yy392 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 336: /* expression ::= NK_LP expression NK_RP */ - case 417: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==417); - case 498: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==498); -{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 340: /* expression ::= NK_LP expression NK_RP */ + case 421: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==421); + case 507: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==507); +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 337: /* expression ::= NK_PLUS expr_or_subquery */ + case 341: /* expression ::= NK_PLUS expr_or_subquery */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } - yymsp[-1].minor.yy560 = yylhsminor.yy560; + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 338: /* expression ::= NK_MINUS expr_or_subquery */ + case 342: /* expression ::= NK_MINUS expr_or_subquery */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy560), NULL)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy392), NULL)); } - yymsp[-1].minor.yy560 = yylhsminor.yy560; + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 339: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + case 343: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 340: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ + case 344: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 341: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ + case 345: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 342: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ + case 346: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 343: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ + case 347: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 344: /* expression ::= column_reference NK_ARROW NK_STRING */ + case 348: /* expression ::= column_reference NK_ARROW NK_STRING */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 345: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + case 349: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 346: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ + case 350: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 349: /* column_reference ::= column_name */ -{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy659, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy659)); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 353: /* column_reference ::= column_name */ +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy677, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy677)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 350: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy659, createColumnNode(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy659)); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 354: /* column_reference ::= table_name NK_DOT column_name */ +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy677, &yymsp[0].minor.yy677, createColumnNode(pCxt, &yymsp[-2].minor.yy677, &yymsp[0].minor.yy677)); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 351: /* pseudo_column ::= ROWTS */ - case 352: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==352); - case 354: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==354); - case 355: /* pseudo_column ::= QEND */ yytestcase(yyruleno==355); - case 356: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==356); - case 357: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==357); - case 358: /* pseudo_column ::= WEND */ yytestcase(yyruleno==358); - case 359: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==359); - case 365: /* literal_func ::= NOW */ yytestcase(yyruleno==365); -{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 355: /* pseudo_column ::= ROWTS */ + case 356: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==356); + case 358: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==358); + case 359: /* pseudo_column ::= QEND */ yytestcase(yyruleno==359); + case 360: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==360); + case 361: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==361); + case 362: /* pseudo_column ::= WEND */ yytestcase(yyruleno==362); + case 363: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==363); + case 369: /* literal_func ::= NOW */ yytestcase(yyruleno==369); +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 353: /* pseudo_column ::= table_name NK_DOT TBNAME */ -{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy659)))); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 357: /* pseudo_column ::= table_name NK_DOT TBNAME */ +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy677, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy677)))); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 360: /* function_expression ::= function_name NK_LP expression_list NK_RP */ - case 361: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==361); -{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy659, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy659, yymsp[-1].minor.yy334)); } - yymsp[-3].minor.yy560 = yylhsminor.yy560; + case 364: /* function_expression ::= function_name NK_LP expression_list NK_RP */ + case 365: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==365); +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy677, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy677, yymsp[-1].minor.yy148)); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 362: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ -{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), yymsp[-1].minor.yy574)); } - yymsp[-5].minor.yy560 = yylhsminor.yy560; + case 366: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-1].minor.yy838)); } + yymsp[-5].minor.yy392 = yylhsminor.yy392; break; - case 364: /* literal_func ::= noarg_func NK_LP NK_RP */ -{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy659, NULL)); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 368: /* literal_func ::= noarg_func NK_LP NK_RP */ +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy677, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy677, NULL)); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 379: /* star_func_para_list ::= NK_STAR */ -{ yylhsminor.yy334 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy334 = yylhsminor.yy334; + case 383: /* star_func_para_list ::= NK_STAR */ +{ yylhsminor.yy148 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy148 = yylhsminor.yy148; break; - case 384: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 448: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==448); -{ yylhsminor.yy560 = createColumnNode(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 388: /* star_func_para ::= table_name NK_DOT NK_STAR */ + case 452: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==452); +{ yylhsminor.yy392 = createColumnNode(pCxt, &yymsp[-2].minor.yy677, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 385: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ -{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy334, yymsp[-1].minor.yy560)); } - yymsp[-3].minor.yy560 = yylhsminor.yy560; + case 389: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy148, yymsp[-1].minor.yy392)); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 386: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ -{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), yymsp[-2].minor.yy334, yymsp[-1].minor.yy560)); } - yymsp[-4].minor.yy560 = yylhsminor.yy560; + case 390: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-2].minor.yy148, yymsp[-1].minor.yy392)); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; - case 389: /* when_then_expr ::= WHEN common_expression THEN common_expression */ -{ yymsp[-3].minor.yy560 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); } + case 393: /* when_then_expr ::= WHEN common_expression THEN common_expression */ +{ yymsp[-3].minor.yy392 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } break; - case 391: /* case_when_else_opt ::= ELSE common_expression */ -{ yymsp[-1].minor.yy560 = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); } + case 395: /* case_when_else_opt ::= ELSE common_expression */ +{ yymsp[-1].minor.yy392 = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); } break; - case 392: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ - case 397: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==397); + case 396: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ + case 401: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==401); { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy128, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy758, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 393: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + case 397: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy560); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy560), releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy392), releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-4].minor.yy560 = yylhsminor.yy560; + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; - case 394: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + case 398: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy560); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy560), releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy392), releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-5].minor.yy560 = yylhsminor.yy560; + yymsp[-5].minor.yy392 = yylhsminor.yy392; break; - case 395: /* predicate ::= expr_or_subquery IS NULL */ + case 399: /* predicate ::= expr_or_subquery IS NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), NULL)); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 396: /* predicate ::= expr_or_subquery IS NOT NULL */ + case 400: /* predicate ::= expr_or_subquery IS NOT NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), NULL)); } - yymsp[-3].minor.yy560 = yylhsminor.yy560; + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 398: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy128 = OP_TYPE_LOWER_THAN; } + case 402: /* compare_op ::= NK_LT */ +{ yymsp[0].minor.yy758 = OP_TYPE_LOWER_THAN; } break; - case 399: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy128 = OP_TYPE_GREATER_THAN; } + case 403: /* compare_op ::= NK_GT */ +{ yymsp[0].minor.yy758 = OP_TYPE_GREATER_THAN; } break; - case 400: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy128 = OP_TYPE_LOWER_EQUAL; } + case 404: /* compare_op ::= NK_LE */ +{ yymsp[0].minor.yy758 = OP_TYPE_LOWER_EQUAL; } break; - case 401: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy128 = OP_TYPE_GREATER_EQUAL; } + case 405: /* compare_op ::= NK_GE */ +{ yymsp[0].minor.yy758 = OP_TYPE_GREATER_EQUAL; } break; - case 402: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy128 = OP_TYPE_NOT_EQUAL; } + case 406: /* compare_op ::= NK_NE */ +{ yymsp[0].minor.yy758 = OP_TYPE_NOT_EQUAL; } break; - case 403: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy128 = OP_TYPE_EQUAL; } + case 407: /* compare_op ::= NK_EQ */ +{ yymsp[0].minor.yy758 = OP_TYPE_EQUAL; } break; - case 404: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy128 = OP_TYPE_LIKE; } + case 408: /* compare_op ::= LIKE */ +{ yymsp[0].minor.yy758 = OP_TYPE_LIKE; } break; - case 405: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy128 = OP_TYPE_NOT_LIKE; } + case 409: /* compare_op ::= NOT LIKE */ +{ yymsp[-1].minor.yy758 = OP_TYPE_NOT_LIKE; } break; - case 406: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy128 = OP_TYPE_MATCH; } + case 410: /* compare_op ::= MATCH */ +{ yymsp[0].minor.yy758 = OP_TYPE_MATCH; } break; - case 407: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy128 = OP_TYPE_NMATCH; } + case 411: /* compare_op ::= NMATCH */ +{ yymsp[0].minor.yy758 = OP_TYPE_NMATCH; } break; - case 408: /* compare_op ::= CONTAINS */ -{ yymsp[0].minor.yy128 = OP_TYPE_JSON_CONTAINS; } + case 412: /* compare_op ::= CONTAINS */ +{ yymsp[0].minor.yy758 = OP_TYPE_JSON_CONTAINS; } break; - case 409: /* in_op ::= IN */ -{ yymsp[0].minor.yy128 = OP_TYPE_IN; } + case 413: /* in_op ::= IN */ +{ yymsp[0].minor.yy758 = OP_TYPE_IN; } break; - case 410: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy128 = OP_TYPE_NOT_IN; } + case 414: /* in_op ::= NOT IN */ +{ yymsp[-1].minor.yy758 = OP_TYPE_NOT_IN; } break; - case 411: /* in_predicate_value ::= NK_LP literal_list NK_RP */ -{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy334)); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 415: /* in_predicate_value ::= NK_LP literal_list NK_RP */ +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy148)); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 413: /* boolean_value_expression ::= NOT boolean_primary */ + case 417: /* boolean_value_expression ::= NOT boolean_primary */ { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy560), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy392), NULL)); } - yymsp[-1].minor.yy560 = yylhsminor.yy560; + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 414: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 418: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 415: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 419: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); - yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 421: /* from_clause_opt ::= FROM table_reference_list */ - case 450: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==450); - case 473: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==473); -{ yymsp[-1].minor.yy560 = yymsp[0].minor.yy560; } + case 425: /* from_clause_opt ::= FROM table_reference_list */ + case 454: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==454); + case 482: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==482); +{ yymsp[-1].minor.yy392 = yymsp[0].minor.yy392; } break; - case 423: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy560 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy560, yymsp[0].minor.yy560, NULL); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 427: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +{ yylhsminor.yy392 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, NULL); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 426: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy560 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy659, &yymsp[0].minor.yy659); } - yymsp[-1].minor.yy560 = yylhsminor.yy560; + case 430: /* table_primary ::= table_name alias_opt */ +{ yylhsminor.yy392 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy677, &yymsp[0].minor.yy677); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 427: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy560 = createRealTableNode(pCxt, &yymsp[-3].minor.yy659, &yymsp[-1].minor.yy659, &yymsp[0].minor.yy659); } - yymsp[-3].minor.yy560 = yylhsminor.yy560; + case 431: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +{ yylhsminor.yy392 = createRealTableNode(pCxt, &yymsp[-3].minor.yy677, &yymsp[-1].minor.yy677, &yymsp[0].minor.yy677); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 428: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy560 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560), &yymsp[0].minor.yy659); } - yymsp[-1].minor.yy560 = yylhsminor.yy560; + case 432: /* table_primary ::= subquery alias_opt */ +{ yylhsminor.yy392 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392), &yymsp[0].minor.yy677); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 430: /* alias_opt ::= */ -{ yymsp[1].minor.yy659 = nil_token; } + case 434: /* alias_opt ::= */ +{ yymsp[1].minor.yy677 = nil_token; } break; - case 431: /* alias_opt ::= table_alias */ -{ yylhsminor.yy659 = yymsp[0].minor.yy659; } - yymsp[0].minor.yy659 = yylhsminor.yy659; + case 435: /* alias_opt ::= table_alias */ +{ yylhsminor.yy677 = yymsp[0].minor.yy677; } + yymsp[0].minor.yy677 = yylhsminor.yy677; break; - case 432: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy659 = yymsp[0].minor.yy659; } + case 436: /* alias_opt ::= AS table_alias */ +{ yymsp[-1].minor.yy677 = yymsp[0].minor.yy677; } break; - case 433: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 434: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==434); -{ yymsp[-2].minor.yy560 = yymsp[-1].minor.yy560; } + case 437: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 438: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==438); +{ yymsp[-2].minor.yy392 = yymsp[-1].minor.yy392; } break; - case 435: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -{ yylhsminor.yy560 = createJoinTableNode(pCxt, yymsp[-4].minor.yy540, yymsp[-5].minor.yy560, yymsp[-2].minor.yy560, yymsp[0].minor.yy560); } - yymsp[-5].minor.yy560 = yylhsminor.yy560; + case 439: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ +{ yylhsminor.yy392 = createJoinTableNode(pCxt, yymsp[-4].minor.yy114, yymsp[-5].minor.yy392, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); } + yymsp[-5].minor.yy392 = yylhsminor.yy392; break; - case 436: /* join_type ::= */ -{ yymsp[1].minor.yy540 = JOIN_TYPE_INNER; } + case 440: /* join_type ::= */ +{ yymsp[1].minor.yy114 = JOIN_TYPE_INNER; } break; - case 437: /* join_type ::= INNER */ -{ yymsp[0].minor.yy540 = JOIN_TYPE_INNER; } + case 441: /* join_type ::= INNER */ +{ yymsp[0].minor.yy114 = JOIN_TYPE_INNER; } break; - case 438: /* 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 442: /* 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.yy560 = createSelectStmt(pCxt, yymsp[-10].minor.yy173, yymsp[-9].minor.yy334, yymsp[-8].minor.yy560); - yymsp[-11].minor.yy560 = addWhereClause(pCxt, yymsp[-11].minor.yy560, yymsp[-7].minor.yy560); - yymsp[-11].minor.yy560 = addPartitionByClause(pCxt, yymsp[-11].minor.yy560, yymsp[-6].minor.yy334); - yymsp[-11].minor.yy560 = addWindowClauseClause(pCxt, yymsp[-11].minor.yy560, yymsp[-2].minor.yy560); - yymsp[-11].minor.yy560 = addGroupByClause(pCxt, yymsp[-11].minor.yy560, yymsp[-1].minor.yy334); - yymsp[-11].minor.yy560 = addHavingClause(pCxt, yymsp[-11].minor.yy560, yymsp[0].minor.yy560); - yymsp[-11].minor.yy560 = addRangeClause(pCxt, yymsp[-11].minor.yy560, yymsp[-5].minor.yy560); - yymsp[-11].minor.yy560 = addEveryClause(pCxt, yymsp[-11].minor.yy560, yymsp[-4].minor.yy560); - yymsp[-11].minor.yy560 = addFillClause(pCxt, yymsp[-11].minor.yy560, yymsp[-3].minor.yy560); + yymsp[-11].minor.yy392 = createSelectStmt(pCxt, yymsp[-10].minor.yy287, yymsp[-9].minor.yy148, yymsp[-8].minor.yy392); + yymsp[-11].minor.yy392 = addWhereClause(pCxt, yymsp[-11].minor.yy392, yymsp[-7].minor.yy392); + yymsp[-11].minor.yy392 = addPartitionByClause(pCxt, yymsp[-11].minor.yy392, yymsp[-6].minor.yy148); + yymsp[-11].minor.yy392 = addWindowClauseClause(pCxt, yymsp[-11].minor.yy392, yymsp[-2].minor.yy392); + yymsp[-11].minor.yy392 = addGroupByClause(pCxt, yymsp[-11].minor.yy392, yymsp[-1].minor.yy148); + yymsp[-11].minor.yy392 = addHavingClause(pCxt, yymsp[-11].minor.yy392, yymsp[0].minor.yy392); + yymsp[-11].minor.yy392 = addRangeClause(pCxt, yymsp[-11].minor.yy392, yymsp[-5].minor.yy392); + yymsp[-11].minor.yy392 = addEveryClause(pCxt, yymsp[-11].minor.yy392, yymsp[-4].minor.yy392); + yymsp[-11].minor.yy392 = addFillClause(pCxt, yymsp[-11].minor.yy392, yymsp[-3].minor.yy392); } break; - case 441: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy173 = false; } + case 445: /* set_quantifier_opt ::= ALL */ +{ yymsp[0].minor.yy287 = false; } break; - case 444: /* select_item ::= NK_STAR */ -{ yylhsminor.yy560 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy560 = yylhsminor.yy560; + case 448: /* select_item ::= NK_STAR */ +{ yylhsminor.yy392 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 446: /* select_item ::= common_expression column_alias */ -{ yylhsminor.yy560 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560), &yymsp[0].minor.yy659); } - yymsp[-1].minor.yy560 = yylhsminor.yy560; + case 450: /* select_item ::= common_expression column_alias */ + case 460: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==460); +{ yylhsminor.yy392 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392), &yymsp[0].minor.yy677); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 447: /* select_item ::= common_expression AS column_alias */ -{ yylhsminor.yy560 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), &yymsp[0].minor.yy659); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 451: /* select_item ::= common_expression AS column_alias */ + case 461: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==461); +{ yylhsminor.yy392 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), &yymsp[0].minor.yy677); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 452: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 469: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==469); - case 488: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==488); -{ yymsp[-2].minor.yy334 = yymsp[0].minor.yy334; } + case 456: /* partition_by_clause_opt ::= PARTITION BY partition_list */ + case 478: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==478); + case 497: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==497); +{ yymsp[-2].minor.yy148 = yymsp[0].minor.yy148; } break; - case 454: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -{ yymsp[-5].minor.yy560 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); } + case 463: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ +{ yymsp[-5].minor.yy392 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } break; - case 455: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ -{ yymsp[-3].minor.yy560 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); } + case 464: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ +{ yymsp[-3].minor.yy392 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } break; - case 456: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy560 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), NULL, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } + case 465: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-5].minor.yy392 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), NULL, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; - case 457: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-7].minor.yy560 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy560), releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } + case 466: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-7].minor.yy392 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy392), releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; - case 459: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - case 477: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==477); -{ yymsp[-3].minor.yy560 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy560); } + case 470: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +{ yymsp[-3].minor.yy392 = createFillNode(pCxt, yymsp[-1].minor.yy708, NULL); } break; - case 461: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy560 = createFillNode(pCxt, yymsp[-1].minor.yy18, NULL); } + case 471: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ +{ yymsp[-5].minor.yy392 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy148)); } break; - case 462: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ -{ yymsp[-5].minor.yy560 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy334)); } + case 472: /* fill_mode ::= NONE */ +{ yymsp[0].minor.yy708 = FILL_MODE_NONE; } break; - case 463: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy18 = FILL_MODE_NONE; } + case 473: /* fill_mode ::= PREV */ +{ yymsp[0].minor.yy708 = FILL_MODE_PREV; } break; - case 464: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy18 = FILL_MODE_PREV; } + case 474: /* fill_mode ::= NULL */ +{ yymsp[0].minor.yy708 = FILL_MODE_NULL; } break; - case 465: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy18 = FILL_MODE_NULL; } + case 475: /* fill_mode ::= LINEAR */ +{ yymsp[0].minor.yy708 = FILL_MODE_LINEAR; } break; - case 466: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy18 = FILL_MODE_LINEAR; } + case 476: /* fill_mode ::= NEXT */ +{ yymsp[0].minor.yy708 = FILL_MODE_NEXT; } break; - case 467: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy18 = FILL_MODE_NEXT; } + case 479: /* group_by_list ::= expr_or_subquery */ +{ yylhsminor.yy148 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } + yymsp[0].minor.yy148 = yylhsminor.yy148; break; - case 470: /* group_by_list ::= expr_or_subquery */ -{ yylhsminor.yy334 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[0].minor.yy334 = yylhsminor.yy334; + case 480: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ +{ yylhsminor.yy148 = addNodeToList(pCxt, yymsp[-2].minor.yy148, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } + yymsp[-2].minor.yy148 = yylhsminor.yy148; break; - case 471: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ -{ yylhsminor.yy334 = addNodeToList(pCxt, yymsp[-2].minor.yy334, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy334 = yylhsminor.yy334; + case 484: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ +{ yymsp[-5].minor.yy392 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } break; - case 475: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ -{ yymsp[-5].minor.yy560 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); } - break; - case 478: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 487: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ { - yylhsminor.yy560 = addOrderByClause(pCxt, yymsp[-3].minor.yy560, yymsp[-2].minor.yy334); - yylhsminor.yy560 = addSlimitClause(pCxt, yylhsminor.yy560, yymsp[-1].minor.yy560); - yylhsminor.yy560 = addLimitClause(pCxt, yylhsminor.yy560, yymsp[0].minor.yy560); + yylhsminor.yy392 = addOrderByClause(pCxt, yymsp[-3].minor.yy392, yymsp[-2].minor.yy148); + yylhsminor.yy392 = addSlimitClause(pCxt, yylhsminor.yy392, yymsp[-1].minor.yy392); + yylhsminor.yy392 = addLimitClause(pCxt, yylhsminor.yy392, yymsp[0].minor.yy392); } - yymsp[-3].minor.yy560 = yylhsminor.yy560; + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 481: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ -{ yylhsminor.yy560 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy560, yymsp[0].minor.yy560); } - yymsp[-3].minor.yy560 = yylhsminor.yy560; + case 490: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ +{ yylhsminor.yy392 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy392, yymsp[0].minor.yy392); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 482: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ -{ yylhsminor.yy560 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy560, yymsp[0].minor.yy560); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 491: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ +{ yylhsminor.yy392 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 490: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 494: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==494); -{ yymsp[-1].minor.yy560 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 499: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 503: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==503); +{ yymsp[-1].minor.yy392 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 491: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 495: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==495); -{ yymsp[-3].minor.yy560 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 500: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 504: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==504); +{ yymsp[-3].minor.yy392 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 492: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 496: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==496); -{ yymsp[-3].minor.yy560 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 501: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 505: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==505); +{ yymsp[-3].minor.yy392 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 497: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy560); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 506: /* subquery ::= NK_LP query_expression NK_RP */ +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy392); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 502: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy560 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), yymsp[-1].minor.yy596, yymsp[0].minor.yy487); } - yymsp[-2].minor.yy560 = yylhsminor.yy560; + case 511: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ +{ yylhsminor.yy392 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), yymsp[-1].minor.yy362, yymsp[0].minor.yy781); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 503: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy596 = ORDER_ASC; } + case 512: /* ordering_specification_opt ::= */ +{ yymsp[1].minor.yy362 = ORDER_ASC; } break; - case 504: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy596 = ORDER_ASC; } + case 513: /* ordering_specification_opt ::= ASC */ +{ yymsp[0].minor.yy362 = ORDER_ASC; } break; - case 505: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy596 = ORDER_DESC; } + case 514: /* ordering_specification_opt ::= DESC */ +{ yymsp[0].minor.yy362 = ORDER_DESC; } break; - case 506: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy487 = NULL_ORDER_DEFAULT; } + case 515: /* null_ordering_opt ::= */ +{ yymsp[1].minor.yy781 = NULL_ORDER_DEFAULT; } break; - case 507: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy487 = NULL_ORDER_FIRST; } + case 516: /* null_ordering_opt ::= NULLS FIRST */ +{ yymsp[-1].minor.yy781 = NULL_ORDER_FIRST; } break; - case 508: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy487 = NULL_ORDER_LAST; } + case 517: /* null_ordering_opt ::= NULLS LAST */ +{ yymsp[-1].minor.yy781 = NULL_ORDER_LAST; } break; default: break; diff --git a/source/libs/parser/test/parInitialCTest.cpp b/source/libs/parser/test/parInitialCTest.cpp index a159d797fa..121bbaa733 100644 --- a/source/libs/parser/test/parInitialCTest.cpp +++ b/source/libs/parser/test/parInitialCTest.cpp @@ -610,6 +610,20 @@ TEST_F(ParserInitialCTest, createStream) { expect.igExpired = igExpired; }; + auto addTag = [&](const char* pFieldName, uint8_t type, int32_t bytes = 0) { + SField field = {0}; + strcpy(field.name, pFieldName); + field.type = type; + field.bytes = bytes > 0 ? bytes : tDataTypes[type].bytes; + field.flags |= COL_SMA_ON; + + if (NULL == expect.pTags) { + expect.pTags = taosArrayInit(TARRAY_MIN_SIZE, sizeof(SField)); + } + taosArrayPush(expect.pTags, &field); + expect.numOfTags += 1; + }; + setCheckDdlFunc([&](const SQuery* pQuery, ParserStage stage) { ASSERT_EQ(nodeType(pQuery->pRoot), QUERY_NODE_CREATE_STREAM_STMT); SCMCreateStreamReq req = {0}; @@ -625,6 +639,19 @@ TEST_F(ParserInitialCTest, createStream) { ASSERT_EQ(req.maxDelay, expect.maxDelay); ASSERT_EQ(req.watermark, expect.watermark); ASSERT_EQ(req.igExpired, expect.igExpired); + ASSERT_EQ(req.numOfTags, expect.numOfTags); + if (expect.numOfTags > 0) { + ASSERT_EQ(taosArrayGetSize(req.pTags), expect.numOfTags); + ASSERT_EQ(taosArrayGetSize(req.pTags), taosArrayGetSize(expect.pTags)); + for (int32_t i = 0; i < expect.numOfTags; ++i) { + SField* pField = (SField*)taosArrayGet(req.pTags, i); + SField* pExpectField = (SField*)taosArrayGet(expect.pTags, i); + ASSERT_EQ(std::string(pField->name), std::string(pExpectField->name)); + ASSERT_EQ(pField->type, pExpectField->type); + ASSERT_EQ(pField->bytes, pExpectField->bytes); + ASSERT_EQ(pField->flags, pExpectField->flags); + } + } tFreeSCMCreateStreamReq(&req); }); @@ -640,6 +667,17 @@ TEST_F(ParserInitialCTest, createStream) { run("CREATE STREAM IF NOT EXISTS s1 TRIGGER MAX_DELAY 20s WATERMARK 10s IGNORE EXPIRED 0 INTO st1 AS SELECT COUNT(*) " "FROM t1 INTERVAL(10S)"); clearCreateStreamReq(); + + setCreateStreamReqFunc( + "s1", "test", + "create stream s1 into st3 tags(tname varchar(10), id int) subtable(concat('new-', tname)) as " + "select _wstart wstart, count(*) cnt from st1 partition by tbname tname, tag1 id interval(10s)", + "st3"); + addTag("tname", TSDB_DATA_TYPE_VARCHAR, 10 + VARSTR_HEADER_SIZE); + addTag("id", TSDB_DATA_TYPE_INT); + run("CREATE STREAM s1 INTO st3 TAGS(tname VARCHAR(10), id INT) SUBTABLE(CONCAT('new-', tname)) " + "AS SELECT _WSTART wstart, COUNT(*) cnt FROM st1 PARTITION BY TBNAME tname, tag1 id INTERVAL(10S)"); + clearCreateStreamReq(); } TEST_F(ParserInitialCTest, createStreamSemanticCheck) { diff --git a/source/libs/parser/test/parShowToUse.cpp b/source/libs/parser/test/parShowToUse.cpp index e33252c072..f38859c832 100644 --- a/source/libs/parser/test/parShowToUse.cpp +++ b/source/libs/parser/test/parShowToUse.cpp @@ -250,7 +250,10 @@ TEST_F(ParserShowToUseTest, trimDatabase) { STrimDbReq expect = {0}; - auto setTrimDbReq = [&](const char* pDb) { snprintf(expect.db, sizeof(expect.db), "0.%s", pDb); }; + auto setTrimDbReq = [&](const char* pDb, int32_t maxSpeed = 0) { + snprintf(expect.db, sizeof(expect.db), "0.%s", pDb); + expect.maxSpeed = maxSpeed; + }; setCheckDdlFunc([&](const SQuery* pQuery, ParserStage stage) { ASSERT_EQ(nodeType(pQuery->pRoot), QUERY_NODE_TRIM_DATABASE_STMT); @@ -258,10 +261,14 @@ TEST_F(ParserShowToUseTest, trimDatabase) { STrimDbReq req = {0}; ASSERT_EQ(tDeserializeSTrimDbReq(pQuery->pCmdMsg->pMsg, pQuery->pCmdMsg->msgLen, &req), TSDB_CODE_SUCCESS); ASSERT_EQ(std::string(req.db), std::string(expect.db)); + ASSERT_EQ(req.maxSpeed, expect.maxSpeed); }); setTrimDbReq("wxy_db"); run("TRIM DATABASE wxy_db"); + + setTrimDbReq("wxy_db", 100); + run("TRIM DATABASE wxy_db MAX_SPEED 100"); } TEST_F(ParserShowToUseTest, useDatabase) { diff --git a/source/libs/planner/src/planLogicCreater.c b/source/libs/planner/src/planLogicCreater.c index fea2be55f9..52f9ddaa6f 100644 --- a/source/libs/planner/src/planLogicCreater.c +++ b/source/libs/planner/src/planLogicCreater.c @@ -1022,6 +1022,20 @@ static int32_t createPartitionLogicNode(SLogicPlanContext* pCxt, SSelectStmt* pS } } + if (TSDB_CODE_SUCCESS == code && NULL != pSelect->pTags) { + pPartition->pTags = nodesCloneList(pSelect->pTags); + if (NULL == pPartition->pTags) { + code = TSDB_CODE_OUT_OF_MEMORY; + } + } + + if (TSDB_CODE_SUCCESS == code && NULL != pSelect->pSubtable) { + pPartition->pSubtable = nodesCloneNode(pSelect->pSubtable); + if (NULL == pPartition->pSubtable) { + code = TSDB_CODE_OUT_OF_MEMORY; + } + } + if (TSDB_CODE_SUCCESS == code) { *pLogicNode = (SLogicNode*)pPartition; } else { diff --git a/source/libs/planner/src/planOptimizer.c b/source/libs/planner/src/planOptimizer.c index a700a21301..927969bf9c 100644 --- a/source/libs/planner/src/planOptimizer.c +++ b/source/libs/planner/src/planOptimizer.c @@ -1615,6 +1615,8 @@ static int32_t partTagsOptimize(SOptimizeContext* pCxt, SLogicSubplan* pLogicSub SScanLogicNode* pScan = (SScanLogicNode*)nodesListGetNode(pNode->pChildren, 0); if (QUERY_NODE_LOGIC_PLAN_PARTITION == nodeType(pNode)) { TSWAP(((SPartitionLogicNode*)pNode)->pPartitionKeys, pScan->pGroupTags); + TSWAP(((SPartitionLogicNode*)pNode)->pTags, pScan->pTags); + TSWAP(((SPartitionLogicNode*)pNode)->pSubtable, pScan->pSubtable); int32_t code = replaceLogicNode(pLogicSubplan, pNode, (SLogicNode*)pScan); if (TSDB_CODE_SUCCESS == code) { code = adjustLogicNodeDataRequirement((SLogicNode*)pScan, pNode->resultDataOrder); diff --git a/source/libs/planner/src/planPhysiCreater.c b/source/libs/planner/src/planPhysiCreater.c index ec7050fdbc..421da8f110 100644 --- a/source/libs/planner/src/planPhysiCreater.c +++ b/source/libs/planner/src/planPhysiCreater.c @@ -563,7 +563,16 @@ static int32_t createTableScanPhysiNode(SPhysiPlanContext* pCxt, SSubplan* pSubp pTableScan->igExpired = pScanLogicNode->igExpired; pTableScan->assignBlockUid = pCxt->pPlanCxt->rSmaQuery ? true : false; - return createScanPhysiNodeFinalize(pCxt, pSubplan, pScanLogicNode, (SScanPhysiNode*)pTableScan, pPhyNode); + int32_t code = createScanPhysiNodeFinalize(pCxt, pSubplan, pScanLogicNode, (SScanPhysiNode*)pTableScan, pPhyNode); + if (TSDB_CODE_SUCCESS == code) { + code = setListSlotId(pCxt, pTableScan->scan.node.pOutputDataBlockDesc->dataBlockId, -1, pScanLogicNode->pTags, + &pTableScan->pTags); + } + if (TSDB_CODE_SUCCESS == code) { + code = setNodeSlotId(pCxt, pTableScan->scan.node.pOutputDataBlockDesc->dataBlockId, -1, pScanLogicNode->pSubtable, + &pTableScan->pSubtable); + } + return code; } static int32_t createSystemTableScanPhysiNode(SPhysiPlanContext* pCxt, SSubplan* pSubplan, @@ -1322,11 +1331,10 @@ static int32_t createSortPhysiNode(SPhysiPlanContext* pCxt, SNodeList* pChildren return code; } -static int32_t createPartitionPhysiNode(SPhysiPlanContext* pCxt, SNodeList* pChildren, - SPartitionLogicNode* pPartLogicNode, SPhysiNode** pPhyNode) { - SPartitionPhysiNode* pPart = (SPartitionPhysiNode*)makePhysiNode( - pCxt, (SLogicNode*)pPartLogicNode, - pCxt->pPlanCxt->streamQuery ? QUERY_NODE_PHYSICAL_PLAN_STREAM_PARTITION : QUERY_NODE_PHYSICAL_PLAN_PARTITION); +static int32_t createPartitionPhysiNodeImpl(SPhysiPlanContext* pCxt, SNodeList* pChildren, + SPartitionLogicNode* pPartLogicNode, ENodeType type, + SPhysiNode** pPhyNode) { + SPartitionPhysiNode* pPart = (SPartitionPhysiNode*)makePhysiNode(pCxt, (SLogicNode*)pPartLogicNode, type); if (NULL == pPart) { return TSDB_CODE_OUT_OF_MEMORY; } @@ -1371,6 +1379,34 @@ static int32_t createPartitionPhysiNode(SPhysiPlanContext* pCxt, SNodeList* pChi return code; } +static int32_t createStreamPartitionPhysiNode(SPhysiPlanContext* pCxt, SNodeList* pChildren, + SPartitionLogicNode* pPartLogicNode, SPhysiNode** pPhyNode) { + SStreamPartitionPhysiNode* pPart = NULL; + int32_t code = createPartitionPhysiNodeImpl(pCxt, pChildren, pPartLogicNode, + QUERY_NODE_PHYSICAL_PLAN_STREAM_PARTITION, (SPhysiNode**)&pPart); + SDataBlockDescNode* pChildTupe = (((SPhysiNode*)nodesListGetNode(pChildren, 0))->pOutputDataBlockDesc); + if (TSDB_CODE_SUCCESS == code) { + code = setListSlotId(pCxt, pChildTupe->dataBlockId, -1, pPartLogicNode->pTags, &pPart->pTags); + } + if (TSDB_CODE_SUCCESS == code) { + code = setNodeSlotId(pCxt, pChildTupe->dataBlockId, -1, pPartLogicNode->pSubtable, &pPart->pSubtable); + } + if (TSDB_CODE_SUCCESS == code) { + *pPhyNode = (SPhysiNode*)pPart; + } else { + nodesDestroyNode((SNode*)pPart); + } + return code; +} + +static int32_t createPartitionPhysiNode(SPhysiPlanContext* pCxt, SNodeList* pChildren, + SPartitionLogicNode* pPartLogicNode, SPhysiNode** pPhyNode) { + if (pCxt->pPlanCxt->streamQuery) { + return createStreamPartitionPhysiNode(pCxt, pChildren, pPartLogicNode, pPhyNode); + } + return createPartitionPhysiNodeImpl(pCxt, pChildren, pPartLogicNode, QUERY_NODE_PHYSICAL_PLAN_PARTITION, pPhyNode); +} + static int32_t createFillPhysiNode(SPhysiPlanContext* pCxt, SNodeList* pChildren, SFillLogicNode* pFillNode, SPhysiNode** pPhyNode) { SFillPhysiNode* pFill = (SFillPhysiNode*)makePhysiNode(pCxt, (SLogicNode*)pFillNode, QUERY_NODE_PHYSICAL_PLAN_FILL); diff --git a/source/libs/planner/test/planOtherTest.cpp b/source/libs/planner/test/planOtherTest.cpp index 350ccd0d92..f6416b3cb1 100644 --- a/source/libs/planner/test/planOtherTest.cpp +++ b/source/libs/planner/test/planOtherTest.cpp @@ -32,6 +32,12 @@ TEST_F(PlanOtherTest, createStream) { run("create stream if not exists s1 trigger window_close watermark 10s into st1 as select count(*) from t1 " "interval(10s)"); + + run("CREATE STREAM s1 INTO st3 TAGS(tname VARCHAR(10), id INT) SUBTABLE(CONCAT('new-', tname)) " + "AS SELECT _WSTART wstart, COUNT(*) cnt FROM st1 PARTITION BY TBNAME tname, c1 id INTERVAL(10S)"); + + run("CREATE STREAM s1 INTO st3 TAGS(tname VARCHAR(10), id INT) SUBTABLE(CONCAT('new-', tname)) " + "AS SELECT _WSTART wstart, COUNT(*) cnt FROM st1 PARTITION BY TBNAME tname, tag1 id INTERVAL(10S)"); } TEST_F(PlanOtherTest, createStreamUseSTable) {