From c77153cb8137b25f4c38ae59079ce5b53e6d1817 Mon Sep 17 00:00:00 2001 From: kailixu Date: Mon, 30 Oct 2023 14:02:31 +0800 Subject: [PATCH 1/7] enh: use placeholder '-' for interval of 1st retention level --- include/common/tmsg.h | 2 +- source/dnode/mgmt/mgmt_vnode/src/vmHandle.c | 2 +- source/dnode/vnode/src/sma/smaOpen.c | 31 +- source/dnode/vnode/src/vnd/vnodeCfg.c | 2 +- source/libs/command/src/command.c | 37 +- source/libs/parser/inc/sql.y | 1 + source/libs/parser/src/parTranslater.c | 14 +- source/libs/parser/src/sql.c | 6404 +++++++---------- .../script/tsim/sma/rsmaCreateInsertQuery.sim | 2 +- .../tsim/sma/rsmaPersistenceRecovery.sim | 2 +- .../tsim/sync/vnodesnapshot-rsma-test.sim | 2 +- tests/system-test/1-insert/block_wise.py | 4 +- .../system-test/1-insert/create_retentions.py | 82 +- tests/system-test/1-insert/time_range_wise.py | 4 +- 14 files changed, 2687 insertions(+), 3902 deletions(-) diff --git a/include/common/tmsg.h b/include/common/tmsg.h index fa123b11f8..331188c264 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -451,7 +451,7 @@ typedef struct SRetention { int8_t keepUnit; } SRetention; -#define RETENTION_VALID(r) (((r)->freq > 0) && ((r)->keep > 0)) +#define RETENTION_VALID(l, r) ((((l) == 0 && (r)->freq >= 0) || ((r)->freq > 0)) && ((r)->keep > 0)) #pragma pack(push, 1) diff --git a/source/dnode/mgmt/mgmt_vnode/src/vmHandle.c b/source/dnode/mgmt/mgmt_vnode/src/vmHandle.c index cc542f51ce..c4d525a871 100644 --- a/source/dnode/mgmt/mgmt_vnode/src/vmHandle.c +++ b/source/dnode/mgmt/mgmt_vnode/src/vmHandle.c @@ -137,7 +137,7 @@ static void vmGenerateVnodeCfg(SCreateVnodeReq *pCreate, SVnodeCfg *pCfg) { SRetention *pRetention = &pCfg->tsdbCfg.retentions[i]; memcpy(pRetention, taosArrayGet(pCreate->pRetensions, i), sizeof(SRetention)); if (i == 0) { - if ((pRetention->freq > 0 && pRetention->keep > 0)) pCfg->isRsma = 1; + if ((pRetention->freq >= 0 && pRetention->keep > 0)) pCfg->isRsma = 1; } } diff --git a/source/dnode/vnode/src/sma/smaOpen.c b/source/dnode/vnode/src/sma/smaOpen.c index 49f25c0b0a..f0e329dfd7 100644 --- a/source/dnode/vnode/src/sma/smaOpen.c +++ b/source/dnode/vnode/src/sma/smaOpen.c @@ -31,21 +31,21 @@ static int32_t rsmaRestore(SSma *pSma); } while (0) #define SMA_OPEN_RSMA_IMPL(v, l, force) \ - do { \ - SRetention *r = (SRetention *)VND_RETENTIONS(v) + l; \ - if (!RETENTION_VALID(r)) { \ - if (l == 0) { \ - code = TSDB_CODE_INVALID_PARA; \ - TSDB_CHECK_CODE(code, lino, _exit); \ - } \ - break; \ - } \ - code = smaSetKeepCfg(v, &keepCfg, pCfg, TSDB_TYPE_RSMA_L##l); \ - TSDB_CHECK_CODE(code, lino, _exit); \ + do { \ + SRetention *r = (SRetention *)VND_RETENTIONS(v) + l; \ + if (!RETENTION_VALID(l, r)) { \ + if (l == 0) { \ + code = TSDB_CODE_INVALID_PARA; \ + TSDB_CHECK_CODE(code, lino, _exit); \ + } \ + break; \ + } \ + code = smaSetKeepCfg(v, &keepCfg, pCfg, TSDB_TYPE_RSMA_L##l); \ + TSDB_CHECK_CODE(code, lino, _exit); \ if (tsdbOpen(v, &SMA_RSMA_TSDB##l(pSma), VNODE_RSMA##l##_DIR, &keepCfg, rollback, force) < 0) { \ - code = terrno; \ - TSDB_CHECK_CODE(code, lino, _exit); \ - } \ + code = terrno; \ + TSDB_CHECK_CODE(code, lino, _exit); \ + } \ } while (0) /** @@ -79,7 +79,7 @@ static int32_t smaEvalDays(SVnode *pVnode, SRetention *r, int8_t level, int8_t p freqDuration = convertTimeFromPrecisionToUnit((r + level)->freq, precision, TIME_UNIT_MINUTE); keepDuration = convertTimeFromPrecisionToUnit((r + level)->keep, precision, TIME_UNIT_MINUTE); - int32_t nFreqTimes = (r + level)->freq / (r + TSDB_RETENTION_L0)->freq; + int32_t nFreqTimes = (r + level)->freq / (10 * 1000); // use 10s for freq of 1st level days *= (nFreqTimes > 1 ? nFreqTimes : 1); if (days > keepDuration) { @@ -157,6 +157,7 @@ int32_t smaOpen(SVnode *pVnode, int8_t rollback, bool force) { _exit: if (code) { smaError("vgId:%d, %s failed at line %d since %s", TD_VID(pVnode), __func__, lino, tstrerror(code)); + terrno = code; } return code; } diff --git a/source/dnode/vnode/src/vnd/vnodeCfg.c b/source/dnode/vnode/src/vnd/vnodeCfg.c index bbd67611cb..07bfa6c719 100644 --- a/source/dnode/vnode/src/vnd/vnodeCfg.c +++ b/source/dnode/vnode/src/vnd/vnodeCfg.c @@ -106,7 +106,7 @@ int vnodeEncodeConfig(const void *pObj, SJson *pJson) { if (tjsonAddIntegerToObject(pJson, "keep1", pCfg->tsdbCfg.keep1) < 0) return -1; if (tjsonAddIntegerToObject(pJson, "keep2", pCfg->tsdbCfg.keep2) < 0) return -1; if (tjsonAddIntegerToObject(pJson, "keepTimeOffset", pCfg->tsdbCfg.keepTimeOffset) < 0) return -1; - if (pCfg->tsdbCfg.retentions[0].freq > 0) { + if (pCfg->tsdbCfg.retentions[0].keep > 0) { int32_t nRetention = 1; if (pCfg->tsdbCfg.retentions[1].freq > 0) { ++nRetention; diff --git a/source/libs/command/src/command.c b/source/libs/command/src/command.c index f204f239b4..3d7a88ac03 100644 --- a/source/libs/command/src/command.c +++ b/source/libs/command/src/command.c @@ -215,37 +215,28 @@ int64_t getValOfDiffPrecision(int8_t unit, int64_t val) { return v; } -char* buildRetension(SArray* pRetension) { +static char* buildRetension(SArray* pRetension) { size_t size = taosArrayGetSize(pRetension); if (size == 0) { return NULL; } - char* p1 = taosMemoryCalloc(1, 100); - SRetention* p = taosArrayGet(pRetension, 0); - + char* p1 = taosMemoryCalloc(1, 100); int32_t len = 0; - int64_t v1 = getValOfDiffPrecision(p->freqUnit, p->freq); - int64_t v2 = getValOfDiffPrecision(p->keepUnit, p->keep); - len += sprintf(p1 + len, "%" PRId64 "%c:%" PRId64 "%c", v1, p->freqUnit, v2, p->keepUnit); + for (int32_t i = 0; i < size; ++i) { + SRetention* p = TARRAY_GET_ELEM(pRetension, i); + int64_t v1 = getValOfDiffPrecision(p->freqUnit, p->freq); + int64_t v2 = getValOfDiffPrecision(p->keepUnit, p->keep); + if (i == 0) { + len += sprintf(p1 + len, "-:%" PRId64 "%c", v2, p->keepUnit); + } else { + len += sprintf(p1 + len, "%" PRId64 "%c:%" PRId64 "%c", v1, p->freqUnit, v2, p->keepUnit); + } - if (size > 1) { - len += sprintf(p1 + len, ","); - p = taosArrayGet(pRetension, 1); - - v1 = getValOfDiffPrecision(p->freqUnit, p->freq); - v2 = getValOfDiffPrecision(p->keepUnit, p->keep); - len += sprintf(p1 + len, "%" PRId64 "%c:%" PRId64 "%c", v1, p->freqUnit, v2, p->keepUnit); - } - - if (size > 2) { - len += sprintf(p1 + len, ","); - p = taosArrayGet(pRetension, 2); - - v1 = getValOfDiffPrecision(p->freqUnit, p->freq); - v2 = getValOfDiffPrecision(p->keepUnit, p->keep); - len += sprintf(p1 + len, "%" PRId64 "%c:%" PRId64 "%c", v1, p->freqUnit, v2, p->keepUnit); + if (i < size - 1) { + len += sprintf(p1 + len, ","); + } } return p1; diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 149306b23c..a7b490c0dc 100755 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -304,6 +304,7 @@ retention_list(A) ::= retention(B). retention_list(A) ::= retention_list(B) NK_COMMA retention(C). { A = addNodeToList(pCxt, B, C); } retention(A) ::= NK_VARIABLE(B) NK_COLON NK_VARIABLE(C). { A = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &B), createDurationValueNode(pCxt, &C)); } +retention(A) ::= NK_MINUS(B) NK_COLON NK_VARIABLE(C). { A = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &B), createDurationValueNode(pCxt, &C)); } %type speed_opt { int32_t } %destructor speed_opt { } diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index ece2c82748..487abd6613 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -4588,10 +4588,22 @@ static int32_t checkDbRetentionsOption(STranslateContext* pCxt, SNodeList* pRete SValueNode* pPrevFreq = NULL; SValueNode* pPrevKeep = NULL; SNode* pRetention = NULL; + bool firstFreq = true; FOREACH(pRetention, pRetentions) { SNode* pNode = NULL; FOREACH(pNode, ((SNodeListNode*)pRetention)->pNodeList) { SValueNode* pVal = (SValueNode*)pNode; + if (firstFreq) { + firstFreq = false; + if (pVal->literal[0] != '-' || strlen(pVal->literal) != 1) { + return generateSyntaxErrMsgExt( + &pCxt->msgBuf, TSDB_CODE_PAR_INVALID_DB_OPTION, + "Invalid option retentions(freq): %s, the interval of 1st retention level should be '-'", pVal->literal); + } + pVal->unit = TIME_UNIT_SECOND; // assign minimum unit + pVal->datum.i = 0; // assign minimum value + continue; + } if (DEAL_RES_ERROR == translateValue(pCxt, pVal)) { return pCxt->errCode; } @@ -4616,7 +4628,7 @@ static int32_t checkDbRetentionsOption(STranslateContext* pCxt, SNodeList* pRete } // check value range - if (pFreq->datum.i <= 0) { + if (pPrevFreq != NULL && pFreq->datum.i <= 0) { return generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_DB_OPTION, "Invalid option retentions(freq): %s should larger than 0", pFreq->literal); } diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index 43382c08b1..a4958c3e80 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -24,8 +24,9 @@ ** The following is the concatenation of all %include directives from the ** input grammar file: */ +#include +#include /************ Begin %include sections from the grammar ************************/ -#line 11 "sql.y" #include #include @@ -42,357 +43,12 @@ #include "parAst.h" #define YYSTACKDEPTH 0 -#line 46 "sql.c" /**************** End of %include directives **********************************/ -/* These constants specify the various numeric values for terminal symbols. -***************** Begin token definitions *************************************/ -#ifndef TK_OR -#define TK_OR 1 -#define TK_AND 2 -#define TK_UNION 3 -#define TK_ALL 4 -#define TK_MINUS 5 -#define TK_EXCEPT 6 -#define TK_INTERSECT 7 -#define TK_NK_BITAND 8 -#define TK_NK_BITOR 9 -#define TK_NK_LSHIFT 10 -#define TK_NK_RSHIFT 11 -#define TK_NK_PLUS 12 -#define TK_NK_MINUS 13 -#define TK_NK_STAR 14 -#define TK_NK_SLASH 15 -#define TK_NK_REM 16 -#define TK_NK_CONCAT 17 -#define TK_CREATE 18 -#define TK_ACCOUNT 19 -#define TK_NK_ID 20 -#define TK_PASS 21 -#define TK_NK_STRING 22 -#define TK_ALTER 23 -#define TK_PPS 24 -#define TK_TSERIES 25 -#define TK_STORAGE 26 -#define TK_STREAMS 27 -#define TK_QTIME 28 -#define TK_DBS 29 -#define TK_USERS 30 -#define TK_CONNS 31 -#define TK_STATE 32 -#define TK_NK_COMMA 33 -#define TK_HOST 34 -#define TK_USER 35 -#define TK_ENABLE 36 -#define TK_NK_INTEGER 37 -#define TK_SYSINFO 38 -#define TK_ADD 39 -#define TK_DROP 40 -#define TK_GRANT 41 -#define TK_ON 42 -#define TK_TO 43 -#define TK_REVOKE 44 -#define TK_FROM 45 -#define TK_SUBSCRIBE 46 -#define TK_READ 47 -#define TK_WRITE 48 -#define TK_NK_DOT 49 -#define TK_WITH 50 -#define TK_DNODE 51 -#define TK_PORT 52 -#define TK_DNODES 53 -#define TK_RESTORE 54 -#define TK_NK_IPTOKEN 55 -#define TK_FORCE 56 -#define TK_UNSAFE 57 -#define TK_LOCAL 58 -#define TK_QNODE 59 -#define TK_BNODE 60 -#define TK_SNODE 61 -#define TK_MNODE 62 -#define TK_VNODE 63 -#define TK_DATABASE 64 -#define TK_USE 65 -#define TK_FLUSH 66 -#define TK_TRIM 67 -#define TK_COMPACT 68 -#define TK_IF 69 -#define TK_NOT 70 -#define TK_EXISTS 71 -#define TK_BUFFER 72 -#define TK_CACHEMODEL 73 -#define TK_CACHESIZE 74 -#define TK_COMP 75 -#define TK_DURATION 76 -#define TK_NK_VARIABLE 77 -#define TK_MAXROWS 78 -#define TK_MINROWS 79 -#define TK_KEEP 80 -#define TK_PAGES 81 -#define TK_PAGESIZE 82 -#define TK_TSDB_PAGESIZE 83 -#define TK_PRECISION 84 -#define TK_REPLICA 85 -#define TK_VGROUPS 86 -#define TK_SINGLE_STABLE 87 -#define TK_RETENTIONS 88 -#define TK_SCHEMALESS 89 -#define TK_WAL_LEVEL 90 -#define TK_WAL_FSYNC_PERIOD 91 -#define TK_WAL_RETENTION_PERIOD 92 -#define TK_WAL_RETENTION_SIZE 93 -#define TK_WAL_ROLL_PERIOD 94 -#define TK_WAL_SEGMENT_SIZE 95 -#define TK_STT_TRIGGER 96 -#define TK_TABLE_PREFIX 97 -#define TK_TABLE_SUFFIX 98 -#define TK_KEEP_TIME_OFFSET 99 -#define TK_NK_COLON 100 -#define TK_BWLIMIT 101 -#define TK_START 102 -#define TK_TIMESTAMP 103 -#define TK_END 104 -#define TK_TABLE 105 -#define TK_NK_LP 106 -#define TK_NK_RP 107 -#define TK_STABLE 108 -#define TK_COLUMN 109 -#define TK_MODIFY 110 -#define TK_RENAME 111 -#define TK_TAG 112 -#define TK_SET 113 -#define TK_NK_EQ 114 -#define TK_USING 115 -#define TK_TAGS 116 -#define TK_BOOL 117 -#define TK_TINYINT 118 -#define TK_SMALLINT 119 -#define TK_INT 120 -#define TK_INTEGER 121 -#define TK_BIGINT 122 -#define TK_FLOAT 123 -#define TK_DOUBLE 124 -#define TK_BINARY 125 -#define TK_NCHAR 126 -#define TK_UNSIGNED 127 -#define TK_JSON 128 -#define TK_VARCHAR 129 -#define TK_MEDIUMBLOB 130 -#define TK_BLOB 131 -#define TK_VARBINARY 132 -#define TK_GEOMETRY 133 -#define TK_DECIMAL 134 -#define TK_COMMENT 135 -#define TK_MAX_DELAY 136 -#define TK_WATERMARK 137 -#define TK_ROLLUP 138 -#define TK_TTL 139 -#define TK_SMA 140 -#define TK_DELETE_MARK 141 -#define TK_FIRST 142 -#define TK_LAST 143 -#define TK_SHOW 144 -#define TK_PRIVILEGES 145 -#define TK_DATABASES 146 -#define TK_TABLES 147 -#define TK_STABLES 148 -#define TK_MNODES 149 -#define TK_QNODES 150 -#define TK_FUNCTIONS 151 -#define TK_INDEXES 152 -#define TK_ACCOUNTS 153 -#define TK_APPS 154 -#define TK_CONNECTIONS 155 -#define TK_LICENCES 156 -#define TK_GRANTS 157 -#define TK_QUERIES 158 -#define TK_SCORES 159 -#define TK_TOPICS 160 -#define TK_VARIABLES 161 -#define TK_CLUSTER 162 -#define TK_BNODES 163 -#define TK_SNODES 164 -#define TK_TRANSACTIONS 165 -#define TK_DISTRIBUTED 166 -#define TK_CONSUMERS 167 -#define TK_SUBSCRIPTIONS 168 -#define TK_VNODES 169 -#define TK_ALIVE 170 -#define TK_NORMAL 171 -#define TK_CHILD 172 -#define TK_LIKE 173 -#define TK_TBNAME 174 -#define TK_QTAGS 175 -#define TK_AS 176 -#define TK_SYSTEM 177 -#define TK_INDEX 178 -#define TK_FUNCTION 179 -#define TK_INTERVAL 180 -#define TK_COUNT 181 -#define TK_LAST_ROW 182 -#define TK_META 183 -#define TK_ONLY 184 -#define TK_TOPIC 185 -#define TK_CONSUMER 186 -#define TK_GROUP 187 -#define TK_DESC 188 -#define TK_DESCRIBE 189 -#define TK_RESET 190 -#define TK_QUERY 191 -#define TK_CACHE 192 -#define TK_EXPLAIN 193 -#define TK_ANALYZE 194 -#define TK_VERBOSE 195 -#define TK_NK_BOOL 196 -#define TK_RATIO 197 -#define TK_NK_FLOAT 198 -#define TK_OUTPUTTYPE 199 -#define TK_AGGREGATE 200 -#define TK_BUFSIZE 201 -#define TK_LANGUAGE 202 -#define TK_REPLACE 203 -#define TK_STREAM 204 -#define TK_INTO 205 -#define TK_PAUSE 206 -#define TK_RESUME 207 -#define TK_TRIGGER 208 -#define TK_AT_ONCE 209 -#define TK_WINDOW_CLOSE 210 -#define TK_IGNORE 211 -#define TK_EXPIRED 212 -#define TK_FILL_HISTORY 213 -#define TK_UPDATE 214 -#define TK_SUBTABLE 215 -#define TK_UNTREATED 216 -#define TK_KILL 217 -#define TK_CONNECTION 218 -#define TK_TRANSACTION 219 -#define TK_BALANCE 220 -#define TK_VGROUP 221 -#define TK_LEADER 222 -#define TK_MERGE 223 -#define TK_REDISTRIBUTE 224 -#define TK_SPLIT 225 -#define TK_DELETE 226 -#define TK_INSERT 227 -#define TK_NULL 228 -#define TK_NK_QUESTION 229 -#define TK_NK_ALIAS 230 -#define TK_NK_ARROW 231 -#define TK_ROWTS 232 -#define TK_QSTART 233 -#define TK_QEND 234 -#define TK_QDURATION 235 -#define TK_WSTART 236 -#define TK_WEND 237 -#define TK_WDURATION 238 -#define TK_IROWTS 239 -#define TK_ISFILLED 240 -#define TK_CAST 241 -#define TK_NOW 242 -#define TK_TODAY 243 -#define TK_TIMEZONE 244 -#define TK_CLIENT_VERSION 245 -#define TK_SERVER_VERSION 246 -#define TK_SERVER_STATUS 247 -#define TK_CURRENT_USER 248 -#define TK_CASE 249 -#define TK_WHEN 250 -#define TK_THEN 251 -#define TK_ELSE 252 -#define TK_BETWEEN 253 -#define TK_IS 254 -#define TK_NK_LT 255 -#define TK_NK_GT 256 -#define TK_NK_LE 257 -#define TK_NK_GE 258 -#define TK_NK_NE 259 -#define TK_MATCH 260 -#define TK_NMATCH 261 -#define TK_CONTAINS 262 -#define TK_IN 263 -#define TK_JOIN 264 -#define TK_INNER 265 -#define TK_SELECT 266 -#define TK_NK_HINT 267 -#define TK_DISTINCT 268 -#define TK_WHERE 269 -#define TK_PARTITION 270 -#define TK_BY 271 -#define TK_SESSION 272 -#define TK_STATE_WINDOW 273 -#define TK_EVENT_WINDOW 274 -#define TK_SLIDING 275 -#define TK_FILL 276 -#define TK_VALUE 277 -#define TK_VALUE_F 278 -#define TK_NONE 279 -#define TK_PREV 280 -#define TK_NULL_F 281 -#define TK_LINEAR 282 -#define TK_NEXT 283 -#define TK_HAVING 284 -#define TK_RANGE 285 -#define TK_EVERY 286 -#define TK_ORDER 287 -#define TK_SLIMIT 288 -#define TK_SOFFSET 289 -#define TK_LIMIT 290 -#define TK_OFFSET 291 -#define TK_ASC 292 -#define TK_NULLS 293 -#define TK_ABORT 294 -#define TK_AFTER 295 -#define TK_ATTACH 296 -#define TK_BEFORE 297 -#define TK_BEGIN 298 -#define TK_BITAND 299 -#define TK_BITNOT 300 -#define TK_BITOR 301 -#define TK_BLOCKS 302 -#define TK_CHANGE 303 -#define TK_COMMA 304 -#define TK_CONCAT 305 -#define TK_CONFLICT 306 -#define TK_COPY 307 -#define TK_DEFERRED 308 -#define TK_DELIMITERS 309 -#define TK_DETACH 310 -#define TK_DIVIDE 311 -#define TK_DOT 312 -#define TK_EACH 313 -#define TK_FAIL 314 -#define TK_FILE 315 -#define TK_FOR 316 -#define TK_GLOB 317 -#define TK_ID 318 -#define TK_IMMEDIATE 319 -#define TK_IMPORT 320 -#define TK_INITIALLY 321 -#define TK_INSTEAD 322 -#define TK_ISNULL 323 -#define TK_KEY 324 -#define TK_MODULES 325 -#define TK_NK_BITNOT 326 -#define TK_NK_SEMI 327 -#define TK_NOTNULL 328 -#define TK_OF 329 -#define TK_PLUS 330 -#define TK_PRIVILEGE 331 -#define TK_RAISE 332 -#define TK_RESTRICT 333 -#define TK_ROW 334 -#define TK_SEMI 335 -#define TK_STAR 336 -#define TK_STATEMENT 337 -#define TK_STRICT 338 -#define TK_STRING 339 -#define TK_TIMES 340 -#define TK_VALUES 341 -#define TK_VARIABLE 342 -#define TK_VIEW 343 -#define TK_WAL 344 -#endif -/**************** End token definitions ***************************************/ +/* These constants specify the various numeric values for terminal symbols +** in a format understandable to "makeheaders". This section is blank unless +** "lemon" is run with the "-m" command-line option. +***************** Begin makeheaders token definitions *************************/ +/**************** End makeheaders token definitions ***************************/ /* The next sections is a series of control #defines. ** various aspects of the generated parser. @@ -488,18 +144,18 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 820 -#define YYNRULE 630 -#define YYNRULE_WITH_ACTION 630 +#define YYNSTATE 822 +#define YYNRULE 631 +#define YYNRULE_WITH_ACTION 631 #define YYNTOKEN 345 -#define YY_MAX_SHIFT 819 -#define YY_MIN_SHIFTREDUCE 1217 -#define YY_MAX_SHIFTREDUCE 1846 -#define YY_ERROR_ACTION 1847 -#define YY_ACCEPT_ACTION 1848 -#define YY_NO_ACTION 1849 -#define YY_MIN_REDUCE 1850 -#define YY_MAX_REDUCE 2479 +#define YY_MAX_SHIFT 821 +#define YY_MIN_SHIFTREDUCE 1220 +#define YY_MAX_SHIFTREDUCE 1850 +#define YY_ERROR_ACTION 1851 +#define YY_ACCEPT_ACTION 1852 +#define YY_NO_ACTION 1853 +#define YY_MIN_REDUCE 1854 +#define YY_MAX_REDUCE 2484 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -568,370 +224,370 @@ typedef union { *********** Begin parsing tables **********************************************/ #define YY_ACTTAB_COUNT (3640) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 2089, 707, 2036, 674, 2025, 2455, 2450, 548, 2450, 2021, - /* 10 */ 549, 1893, 48, 46, 1770, 693, 2455, 668, 412, 2450, - /* 20 */ 409, 133, 1612, 1851, 673, 198, 164, 2454, 590, 2451, - /* 30 */ 675, 2451, 2453, 391, 2038, 1696, 1933, 1610, 2454, 38, - /* 40 */ 313, 2087, 2451, 2452, 123, 2299, 2281, 122, 121, 120, - /* 50 */ 119, 118, 117, 116, 115, 114, 686, 142, 1637, 689, - /* 60 */ 1639, 41, 40, 154, 1691, 47, 45, 44, 43, 42, - /* 70 */ 19, 707, 2036, 1848, 170, 123, 1862, 1618, 122, 121, - /* 80 */ 120, 119, 118, 117, 116, 115, 114, 2299, 41, 40, - /* 90 */ 67, 133, 47, 45, 44, 43, 42, 1873, 595, 2248, - /* 100 */ 1640, 723, 706, 816, 667, 706, 15, 319, 791, 790, - /* 110 */ 789, 788, 421, 1637, 787, 786, 146, 781, 780, 779, - /* 120 */ 778, 777, 776, 775, 158, 771, 770, 769, 420, 419, - /* 130 */ 766, 765, 764, 179, 178, 763, 556, 55, 2280, 549, - /* 140 */ 1893, 2318, 1698, 1699, 110, 2282, 727, 2284, 2285, 722, - /* 150 */ 2248, 717, 424, 686, 142, 634, 181, 423, 2371, 180, - /* 160 */ 1812, 2167, 405, 2367, 293, 2379, 685, 2455, 134, 684, - /* 170 */ 169, 2450, 463, 706, 1671, 1681, 402, 200, 1976, 2164, - /* 180 */ 694, 1697, 1700, 2148, 1639, 2401, 2089, 625, 51, 673, - /* 190 */ 198, 51, 62, 390, 2451, 675, 1613, 669, 1611, 62, - /* 200 */ 649, 2087, 623, 2450, 621, 262, 261, 41, 40, 62, - /* 210 */ 62, 47, 45, 44, 43, 42, 295, 515, 513, 1361, - /* 220 */ 361, 2456, 198, 266, 211, 1774, 2451, 675, 1616, 1617, - /* 230 */ 1668, 1637, 1670, 1673, 1674, 1675, 1676, 1677, 1678, 1679, - /* 240 */ 1680, 719, 715, 1689, 1690, 1692, 1693, 1694, 1695, 2, - /* 250 */ 48, 46, 1850, 686, 142, 360, 194, 1635, 409, 1363, - /* 260 */ 1612, 197, 2379, 2380, 500, 140, 2384, 518, 553, 369, - /* 270 */ 217, 1836, 517, 1696, 550, 1610, 132, 131, 130, 129, - /* 280 */ 128, 127, 126, 125, 124, 609, 608, 607, 483, 563, - /* 290 */ 519, 1257, 599, 139, 603, 485, 1581, 1582, 602, 454, - /* 300 */ 12, 453, 1691, 601, 606, 385, 384, 2013, 19, 600, - /* 310 */ 1641, 88, 596, 1725, 87, 1618, 47, 45, 44, 43, - /* 320 */ 42, 41, 40, 2281, 75, 47, 45, 44, 43, 42, - /* 330 */ 2211, 452, 52, 1259, 1262, 1263, 724, 664, 1902, 231, - /* 340 */ 295, 816, 378, 551, 15, 1900, 418, 417, 297, 2167, - /* 350 */ 41, 40, 297, 471, 47, 45, 44, 43, 42, 297, - /* 360 */ 688, 196, 2379, 2380, 2299, 140, 2384, 2165, 694, 297, - /* 370 */ 297, 1619, 1726, 233, 86, 30, 2248, 551, 723, 1900, - /* 380 */ 1698, 1699, 267, 2154, 2133, 1672, 507, 506, 505, 504, + /* 0 */ 2094, 707, 2041, 674, 2030, 2460, 2455, 548, 2455, 2026, + /* 10 */ 549, 1897, 48, 46, 1774, 693, 2460, 668, 412, 2455, + /* 20 */ 409, 133, 1616, 1855, 673, 198, 164, 2459, 590, 2456, + /* 30 */ 675, 2456, 2458, 391, 2043, 1700, 1937, 1614, 2459, 38, + /* 40 */ 314, 2092, 2456, 2457, 123, 2304, 2286, 122, 121, 120, + /* 50 */ 119, 118, 117, 116, 115, 114, 686, 142, 1641, 689, + /* 60 */ 1643, 41, 40, 155, 1695, 47, 45, 44, 43, 42, + /* 70 */ 19, 707, 2041, 1852, 170, 123, 1866, 1622, 122, 121, + /* 80 */ 120, 119, 118, 117, 116, 115, 114, 2304, 41, 40, + /* 90 */ 67, 133, 47, 45, 44, 43, 42, 1877, 595, 2253, + /* 100 */ 1644, 723, 706, 818, 667, 706, 15, 319, 793, 792, + /* 110 */ 791, 790, 421, 1641, 789, 788, 147, 783, 782, 781, + /* 120 */ 780, 779, 778, 777, 146, 771, 770, 769, 420, 419, + /* 130 */ 766, 765, 764, 179, 178, 763, 556, 55, 2285, 549, + /* 140 */ 1897, 2323, 1702, 1703, 110, 2287, 727, 2289, 2290, 722, + /* 150 */ 2253, 717, 424, 686, 142, 706, 181, 423, 2376, 180, + /* 160 */ 1816, 2172, 405, 2372, 294, 2384, 685, 2460, 134, 684, + /* 170 */ 169, 2455, 463, 563, 1675, 1685, 402, 200, 1980, 2169, + /* 180 */ 694, 1701, 1704, 2153, 1643, 2406, 2094, 625, 51, 673, + /* 190 */ 198, 51, 62, 390, 2456, 675, 1617, 669, 1615, 62, + /* 200 */ 649, 2092, 623, 2455, 621, 263, 262, 41, 40, 62, + /* 210 */ 62, 47, 45, 44, 43, 42, 296, 515, 513, 1364, + /* 220 */ 361, 2461, 198, 267, 212, 1778, 2456, 675, 1620, 1621, + /* 230 */ 1672, 1641, 1674, 1677, 1678, 1679, 1680, 1681, 1682, 1683, + /* 240 */ 1684, 719, 715, 1693, 1694, 1696, 1697, 1698, 1699, 2, + /* 250 */ 48, 46, 1854, 686, 142, 360, 194, 1639, 409, 1366, + /* 260 */ 1616, 197, 2384, 2385, 500, 140, 2389, 518, 553, 369, + /* 270 */ 218, 1840, 517, 1700, 550, 1614, 132, 131, 130, 129, + /* 280 */ 128, 127, 126, 125, 124, 609, 608, 607, 483, 567, + /* 290 */ 519, 1260, 599, 139, 603, 485, 1585, 1586, 602, 454, + /* 300 */ 634, 453, 1695, 601, 606, 385, 384, 2018, 19, 600, + /* 310 */ 1645, 88, 596, 1729, 87, 1622, 47, 45, 44, 43, + /* 320 */ 42, 41, 40, 2286, 75, 47, 45, 44, 43, 42, + /* 330 */ 2216, 452, 52, 1262, 1265, 1266, 724, 664, 1906, 232, + /* 340 */ 296, 818, 378, 551, 15, 1904, 418, 417, 298, 2172, + /* 350 */ 41, 40, 298, 471, 47, 45, 44, 43, 42, 298, + /* 360 */ 688, 196, 2384, 2385, 2304, 140, 2389, 2170, 694, 298, + /* 370 */ 298, 1623, 1730, 234, 86, 30, 2253, 551, 723, 1904, + /* 380 */ 1702, 1703, 268, 2159, 2138, 1676, 507, 506, 505, 504, /* 390 */ 499, 498, 497, 496, 495, 491, 490, 489, 488, 359, - /* 400 */ 480, 479, 478, 1640, 473, 472, 376, 1668, 1504, 1505, - /* 410 */ 1265, 1706, 1671, 1681, 1523, 2280, 1636, 1637, 2318, 1697, - /* 420 */ 1700, 110, 2282, 727, 2284, 2285, 722, 1637, 717, 670, - /* 430 */ 665, 658, 567, 2470, 1613, 2371, 1611, 383, 382, 405, - /* 440 */ 2367, 1669, 760, 156, 155, 757, 756, 755, 153, 1813, - /* 450 */ 2281, 1638, 37, 407, 1720, 1721, 1722, 1723, 1724, 1728, - /* 460 */ 1729, 1730, 1731, 724, 762, 1872, 1616, 1617, 1668, 2241, - /* 470 */ 1670, 1673, 1674, 1675, 1676, 1677, 1678, 1679, 1680, 719, - /* 480 */ 715, 1689, 1690, 1692, 1693, 1694, 1695, 2, 12, 48, - /* 490 */ 46, 2299, 297, 92, 1638, 192, 1282, 409, 1281, 1612, - /* 500 */ 1282, 1843, 1281, 2248, 92, 723, 1871, 2076, 381, 380, - /* 510 */ 379, 592, 1696, 138, 1610, 34, 597, 649, 2248, 2031, - /* 520 */ 2450, 41, 40, 2281, 1727, 47, 45, 44, 43, 42, - /* 530 */ 2032, 1283, 1622, 594, 1640, 1283, 689, 593, 2456, 198, - /* 540 */ 1358, 1691, 2280, 2451, 675, 2318, 564, 19, 110, 2282, - /* 550 */ 727, 2284, 2285, 722, 1618, 717, 3, 1801, 145, 2248, - /* 560 */ 151, 2342, 2371, 1618, 2299, 2012, 405, 2367, 54, 509, - /* 570 */ 1417, 1672, 144, 1452, 1453, 2342, 2248, 1870, 723, 1869, - /* 580 */ 816, 1516, 1517, 15, 1408, 752, 751, 750, 1412, 749, - /* 590 */ 1414, 1415, 748, 745, 1868, 1423, 742, 1425, 1426, 739, - /* 600 */ 736, 733, 565, 2160, 35, 1842, 661, 660, 1799, 1800, - /* 610 */ 1802, 1803, 1804, 1641, 1732, 2280, 1536, 1537, 2318, 1698, - /* 620 */ 1699, 110, 2282, 727, 2284, 2285, 722, 1669, 717, 2023, - /* 630 */ 2248, 221, 2248, 181, 762, 2371, 753, 41, 40, 405, - /* 640 */ 2367, 47, 45, 44, 43, 42, 414, 2248, 180, 2082, - /* 650 */ 2084, 1671, 1681, 508, 36, 1535, 1538, 598, 1697, 1700, - /* 660 */ 41, 40, 2402, 2089, 47, 45, 44, 43, 42, 248, - /* 670 */ 377, 773, 2147, 1613, 1936, 1611, 1372, 2089, 702, 707, - /* 680 */ 2036, 1356, 707, 2036, 375, 174, 686, 142, 1867, 545, - /* 690 */ 189, 1371, 2087, 584, 580, 576, 572, 543, 247, 202, - /* 700 */ 539, 535, 56, 1866, 265, 1616, 1617, 1668, 264, 1670, - /* 710 */ 1673, 1674, 1675, 1676, 1677, 1678, 1679, 1680, 719, 715, - /* 720 */ 1689, 1690, 1692, 1693, 1694, 1695, 2, 48, 46, 1701, - /* 730 */ 2281, 707, 2036, 102, 1612, 409, 1786, 1612, 1865, 93, - /* 740 */ 1864, 2248, 245, 724, 1641, 2409, 609, 608, 607, 1610, - /* 750 */ 1696, 460, 1610, 599, 139, 603, 2248, 520, 2029, 602, - /* 760 */ 674, 2281, 2089, 2450, 601, 606, 385, 384, 2014, 399, - /* 770 */ 600, 2299, 95, 596, 724, 364, 2422, 2087, 389, 1691, - /* 780 */ 627, 673, 198, 2248, 1861, 723, 2451, 675, 12, 1618, - /* 790 */ 10, 2248, 1618, 2248, 199, 2379, 2380, 1860, 140, 2384, - /* 800 */ 456, 147, 2299, 41, 40, 455, 2019, 47, 45, 44, - /* 810 */ 43, 42, 244, 237, 2248, 816, 723, 2040, 816, 242, - /* 820 */ 561, 49, 2280, 707, 2036, 2318, 2281, 1859, 110, 2282, - /* 830 */ 727, 2284, 2285, 722, 1376, 717, 403, 2248, 235, 721, - /* 840 */ 2470, 2258, 2371, 461, 167, 275, 405, 2367, 649, 1375, - /* 850 */ 2248, 2450, 2038, 2280, 1640, 2027, 2318, 1698, 1699, 110, - /* 860 */ 2282, 727, 2284, 2285, 722, 2262, 717, 2299, 412, 2456, - /* 870 */ 198, 2470, 154, 2371, 2451, 675, 167, 405, 2367, 2248, - /* 880 */ 2248, 723, 1637, 2386, 2038, 1858, 648, 41, 40, 1671, - /* 890 */ 1681, 47, 45, 44, 43, 42, 1697, 1700, 2011, 760, - /* 900 */ 156, 155, 757, 756, 755, 153, 272, 2264, 1613, 2383, - /* 910 */ 1611, 1613, 718, 1611, 709, 522, 2343, 717, 2280, 707, - /* 920 */ 2036, 2318, 707, 2036, 350, 2282, 727, 2284, 2285, 722, - /* 930 */ 720, 717, 708, 2336, 2454, 469, 2143, 2120, 2248, 477, - /* 940 */ 1616, 1617, 492, 1616, 1617, 1668, 1576, 1670, 1673, 1674, - /* 950 */ 1675, 1676, 1677, 1678, 1679, 1680, 719, 715, 1689, 1690, - /* 960 */ 1692, 1693, 1694, 1695, 2, 48, 46, 1793, 2281, 707, - /* 970 */ 2036, 614, 2089, 409, 1863, 1612, 2242, 415, 632, 404, - /* 980 */ 2089, 724, 1794, 656, 213, 167, 626, 2087, 1696, 493, - /* 990 */ 1610, 1857, 2089, 2038, 108, 2088, 707, 2036, 1637, 413, - /* 1000 */ 475, 2143, 263, 304, 305, 502, 2143, 2087, 303, 2299, - /* 1010 */ 193, 143, 60, 444, 2083, 2084, 566, 1691, 617, 2028, - /* 1020 */ 646, 2248, 1792, 723, 649, 611, 649, 2450, 594, 2450, - /* 1030 */ 1618, 260, 593, 760, 156, 155, 757, 756, 755, 153, - /* 1040 */ 446, 442, 9, 690, 2248, 2456, 198, 2456, 198, 215, - /* 1050 */ 2451, 675, 2451, 675, 220, 166, 816, 707, 2036, 49, - /* 1060 */ 2280, 2281, 1856, 2318, 1641, 2258, 110, 2282, 727, 2284, - /* 1070 */ 2285, 722, 71, 717, 724, 70, 2443, 2033, 2470, 2266, - /* 1080 */ 2371, 707, 2036, 1855, 405, 2367, 707, 2036, 711, 2262, - /* 1090 */ 2343, 649, 1669, 1854, 2450, 1698, 1699, 167, 487, 605, - /* 1100 */ 604, 268, 2299, 707, 2036, 2039, 276, 486, 754, 707, - /* 1110 */ 2036, 2080, 2456, 198, 2248, 2248, 723, 2451, 675, 1853, - /* 1120 */ 707, 2036, 1767, 692, 2229, 707, 2036, 1671, 1681, 308, - /* 1130 */ 758, 2264, 406, 2080, 1697, 1700, 2248, 707, 2036, 2386, - /* 1140 */ 704, 717, 14, 13, 2258, 705, 2248, 707, 2036, 1613, - /* 1150 */ 678, 1611, 1672, 2280, 785, 783, 2318, 314, 2267, 110, - /* 1160 */ 2282, 727, 2284, 2285, 722, 2382, 717, 416, 2262, 1285, - /* 1170 */ 1286, 2470, 2248, 2371, 44, 43, 42, 405, 2367, 586, - /* 1180 */ 585, 1616, 1617, 1668, 1621, 1670, 1673, 1674, 1675, 1676, - /* 1190 */ 1677, 1678, 1679, 1680, 719, 715, 1689, 1690, 1692, 1693, - /* 1200 */ 1694, 1695, 2, 48, 46, 2232, 2281, 2386, 1669, 759, - /* 1210 */ 2264, 409, 2080, 1612, 588, 587, 1878, 811, 677, 724, - /* 1220 */ 717, 2390, 328, 277, 774, 2066, 1696, 1998, 1610, 1262, - /* 1230 */ 1263, 2130, 135, 2381, 2391, 1759, 253, 255, 257, 251, - /* 1240 */ 254, 256, 259, 154, 85, 258, 681, 2299, 1739, 1920, - /* 1250 */ 1911, 629, 50, 628, 50, 1691, 431, 1909, 182, 2248, - /* 1260 */ 714, 723, 1845, 1846, 2269, 1759, 1977, 96, 1618, 154, - /* 1270 */ 1316, 610, 612, 467, 50, 302, 72, 152, 1903, 615, - /* 1280 */ 2415, 154, 107, 14, 13, 65, 50, 50, 731, 152, - /* 1290 */ 767, 104, 290, 154, 816, 136, 152, 15, 2280, 2281, - /* 1300 */ 768, 2318, 1620, 137, 110, 2282, 727, 2284, 2285, 722, - /* 1310 */ 1317, 717, 724, 284, 1335, 662, 2470, 1579, 2371, 418, - /* 1320 */ 417, 2271, 405, 2367, 1333, 2300, 1798, 1974, 1797, 1626, - /* 1330 */ 809, 1973, 282, 1698, 1699, 2152, 2405, 659, 392, 422, - /* 1340 */ 2299, 395, 1696, 691, 1619, 1624, 204, 666, 1533, 306, - /* 1350 */ 699, 310, 2248, 696, 723, 1402, 2153, 1894, 1899, 1733, - /* 1360 */ 1682, 327, 1430, 1434, 2077, 1671, 1681, 1441, 687, 1439, - /* 1370 */ 157, 1691, 1697, 1700, 2406, 2416, 292, 289, 296, 5, - /* 1380 */ 425, 430, 373, 438, 1618, 439, 1766, 1613, 1644, 1611, - /* 1390 */ 448, 2280, 447, 206, 2318, 208, 205, 110, 2282, 727, - /* 1400 */ 2284, 2285, 722, 450, 717, 1557, 679, 322, 464, 2346, - /* 1410 */ 713, 2371, 1635, 1636, 468, 405, 2367, 219, 1717, 1616, - /* 1420 */ 1617, 1668, 470, 1670, 1673, 1674, 1675, 1676, 1677, 1678, - /* 1430 */ 1679, 1680, 719, 715, 1689, 1690, 1692, 1693, 1694, 1695, - /* 1440 */ 2, 474, 168, 476, 511, 481, 494, 335, 501, 2145, - /* 1450 */ 503, 510, 512, 523, 524, 521, 223, 224, 526, 527, - /* 1460 */ 226, 529, 531, 1623, 332, 74, 1642, 546, 73, 4, - /* 1470 */ 557, 1638, 547, 555, 554, 234, 558, 236, 357, 1643, - /* 1480 */ 1645, 559, 560, 1646, 2281, 562, 2161, 589, 591, 229, - /* 1490 */ 530, 528, 525, 2026, 239, 241, 250, 724, 568, 90, - /* 1500 */ 91, 246, 618, 1627, 682, 1622, 112, 619, 354, 631, - /* 1510 */ 2220, 2022, 2217, 2216, 633, 94, 269, 323, 148, 637, - /* 1520 */ 636, 273, 1564, 638, 252, 2299, 160, 271, 161, 2024, - /* 1530 */ 62, 2020, 162, 163, 642, 1630, 1632, 2248, 644, 723, - /* 1540 */ 663, 2421, 697, 2420, 283, 8, 672, 2393, 641, 715, - /* 1550 */ 1689, 1690, 1692, 1693, 1694, 1695, 654, 175, 653, 285, - /* 1560 */ 652, 651, 396, 683, 2449, 2473, 286, 680, 63, 279, - /* 1570 */ 1759, 281, 287, 643, 291, 141, 2280, 1639, 288, 2318, - /* 1580 */ 1764, 1762, 110, 2282, 727, 2284, 2285, 722, 185, 717, - /* 1590 */ 298, 149, 324, 695, 2344, 2175, 2371, 2174, 2173, 325, - /* 1600 */ 405, 2367, 401, 2387, 700, 150, 101, 326, 701, 61, - /* 1610 */ 103, 729, 83, 82, 459, 1241, 1999, 210, 2081, 2037, - /* 1620 */ 810, 353, 813, 53, 365, 2240, 2352, 815, 329, 366, - /* 1630 */ 451, 449, 333, 317, 159, 2239, 2238, 80, 201, 1, - /* 1640 */ 2233, 358, 338, 2281, 440, 427, 1603, 437, 433, 429, - /* 1650 */ 426, 452, 331, 428, 1604, 203, 724, 432, 2231, 352, - /* 1660 */ 434, 435, 436, 1602, 342, 2230, 374, 2228, 441, 2281, - /* 1670 */ 2227, 443, 2226, 1592, 445, 2207, 207, 2206, 209, 1560, - /* 1680 */ 81, 2188, 724, 1559, 2299, 2187, 2186, 457, 458, 2185, - /* 1690 */ 297, 2184, 2135, 2129, 462, 1503, 2248, 465, 723, 466, - /* 1700 */ 2126, 212, 2125, 2124, 84, 2123, 2128, 2127, 2122, 2121, - /* 1710 */ 2299, 214, 2119, 2118, 2117, 216, 482, 2116, 2132, 484, - /* 1720 */ 2115, 2114, 2248, 2113, 723, 2112, 2111, 2110, 2109, 2108, - /* 1730 */ 2107, 2106, 2105, 2104, 2103, 2280, 2281, 218, 2318, 2102, - /* 1740 */ 2101, 110, 2282, 727, 2284, 2285, 722, 2100, 717, 724, - /* 1750 */ 2099, 2098, 2097, 710, 2131, 2371, 2096, 2095, 1509, 405, - /* 1760 */ 2367, 2280, 2094, 222, 2318, 2281, 2093, 111, 2282, 727, - /* 1770 */ 2284, 2285, 722, 514, 717, 2092, 2091, 2299, 724, 516, - /* 1780 */ 89, 2371, 2090, 1373, 1939, 2370, 2367, 1377, 362, 2248, - /* 1790 */ 1369, 723, 363, 1938, 1937, 1935, 1932, 532, 1931, 533, - /* 1800 */ 534, 536, 1924, 1913, 1889, 225, 2299, 227, 228, 538, - /* 1810 */ 537, 540, 542, 230, 541, 544, 190, 1888, 2248, 77, - /* 1820 */ 723, 2268, 191, 1264, 232, 2205, 2195, 78, 2280, 552, - /* 1830 */ 2183, 2318, 238, 2281, 111, 2282, 727, 2284, 2285, 722, - /* 1840 */ 240, 717, 2182, 2159, 2015, 1934, 724, 1930, 2371, 243, - /* 1850 */ 1309, 569, 712, 2367, 571, 635, 570, 725, 1928, 573, - /* 1860 */ 2318, 574, 575, 111, 2282, 727, 2284, 2285, 722, 1926, - /* 1870 */ 717, 579, 577, 819, 2299, 578, 1923, 2371, 581, 582, - /* 1880 */ 583, 368, 2367, 1908, 1906, 1907, 2248, 1905, 723, 321, - /* 1890 */ 1885, 2017, 1446, 1445, 2016, 782, 1360, 1359, 2281, 249, - /* 1900 */ 64, 1357, 1355, 1354, 1353, 188, 784, 1352, 1346, 1351, - /* 1910 */ 1921, 724, 1348, 807, 803, 799, 795, 2281, 318, 1347, - /* 1920 */ 386, 1912, 387, 1910, 388, 2280, 1345, 613, 2318, 616, - /* 1930 */ 724, 171, 2282, 727, 2284, 2285, 722, 1884, 717, 2299, - /* 1940 */ 620, 1881, 622, 1880, 624, 113, 1586, 1590, 1588, 1585, - /* 1950 */ 2204, 2248, 1883, 723, 1882, 29, 68, 1566, 2299, 109, - /* 1960 */ 1568, 2194, 311, 2181, 57, 640, 639, 2180, 165, 2455, - /* 1970 */ 2248, 66, 723, 650, 2412, 1545, 274, 6, 20, 7, - /* 1980 */ 21, 17, 1544, 31, 645, 1815, 278, 23, 280, 22, - /* 1990 */ 2280, 647, 2281, 2318, 703, 1570, 172, 2282, 727, 2284, - /* 2000 */ 2285, 722, 1796, 717, 1785, 724, 184, 173, 655, 2280, - /* 2010 */ 657, 195, 2318, 183, 2269, 111, 2282, 727, 2284, 2285, - /* 2020 */ 722, 32, 717, 79, 33, 24, 1835, 1830, 294, 2371, - /* 2030 */ 1829, 1836, 300, 2299, 2368, 397, 1834, 1833, 398, 299, - /* 2040 */ 1756, 1755, 18, 59, 176, 2248, 98, 723, 2179, 2158, - /* 2050 */ 676, 2471, 97, 2157, 25, 58, 301, 186, 270, 2281, - /* 2060 */ 1791, 307, 99, 69, 100, 312, 26, 11, 698, 13, - /* 2070 */ 2321, 309, 724, 1708, 104, 1707, 1628, 1686, 716, 1718, - /* 2080 */ 177, 1684, 39, 16, 2280, 2281, 27, 2318, 1683, 187, - /* 2090 */ 171, 2282, 727, 2284, 2285, 722, 1653, 717, 724, 1661, - /* 2100 */ 2299, 728, 28, 730, 1431, 393, 411, 734, 732, 735, - /* 2110 */ 726, 737, 2248, 1428, 723, 1427, 1424, 738, 740, 741, - /* 2120 */ 743, 1418, 1416, 744, 746, 747, 2299, 105, 315, 106, - /* 2130 */ 1440, 394, 1422, 2413, 1421, 76, 1436, 1342, 2248, 1420, - /* 2140 */ 723, 1339, 1307, 1338, 1337, 1419, 761, 1336, 1334, 1332, - /* 2150 */ 1331, 2280, 1330, 316, 2318, 2281, 1367, 351, 2282, 727, - /* 2160 */ 2284, 2285, 722, 772, 717, 1328, 1327, 1326, 724, 1325, - /* 2170 */ 1324, 1323, 1322, 1364, 1362, 1319, 1313, 2280, 1318, 1315, - /* 2180 */ 2318, 1314, 2281, 351, 2282, 727, 2284, 2285, 722, 1312, - /* 2190 */ 717, 1929, 792, 794, 793, 724, 2299, 1927, 796, 797, - /* 2200 */ 798, 1925, 800, 1922, 801, 802, 804, 1904, 2248, 806, - /* 2210 */ 723, 805, 808, 1254, 1879, 1242, 812, 320, 1614, 814, - /* 2220 */ 818, 330, 1849, 2299, 1849, 817, 1849, 1849, 1849, 1849, - /* 2230 */ 1849, 1849, 1849, 1849, 1849, 2248, 1849, 723, 1849, 1849, - /* 2240 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 2280, 1849, 1849, - /* 2250 */ 2318, 1849, 1849, 344, 2282, 727, 2284, 2285, 722, 1849, - /* 2260 */ 717, 1849, 1849, 1849, 1849, 1849, 2281, 1849, 1849, 1849, - /* 2270 */ 1849, 1849, 1849, 1849, 2280, 1849, 1849, 2318, 1849, 724, - /* 2280 */ 172, 2282, 727, 2284, 2285, 722, 1849, 717, 2281, 1849, - /* 2290 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 671, - /* 2300 */ 1849, 721, 1849, 1849, 1849, 1849, 1849, 2299, 1849, 1849, - /* 2310 */ 1849, 1849, 400, 1849, 1849, 1849, 1849, 1849, 1849, 2248, - /* 2320 */ 1849, 723, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 2299, - /* 2330 */ 1849, 1849, 1849, 1849, 1849, 2472, 1849, 1849, 1849, 1849, - /* 2340 */ 1849, 2248, 1849, 723, 1849, 1849, 1849, 1849, 1849, 1849, - /* 2350 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 2280, 1849, - /* 2360 */ 1849, 2318, 1849, 1849, 351, 2282, 727, 2284, 2285, 722, - /* 2370 */ 1849, 717, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 2380 */ 2280, 1849, 1849, 2318, 1849, 1849, 350, 2282, 727, 2284, - /* 2390 */ 2285, 722, 1849, 717, 2281, 2337, 1849, 1849, 1849, 1849, - /* 2400 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 724, 1849, 1849, - /* 2410 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 2420 */ 1849, 2281, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 2430 */ 1849, 1849, 1849, 1849, 724, 2299, 1849, 1849, 1849, 1849, - /* 2440 */ 408, 1849, 1849, 1849, 1849, 1849, 1849, 2248, 1849, 723, - /* 2450 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 2460 */ 1849, 1849, 2299, 1849, 1849, 1849, 1849, 410, 1849, 1849, - /* 2470 */ 1849, 1849, 1849, 1849, 2248, 1849, 723, 1849, 1849, 1849, - /* 2480 */ 1849, 1849, 1849, 1849, 1849, 1849, 2280, 2281, 1849, 2318, - /* 2490 */ 1849, 1849, 351, 2282, 727, 2284, 2285, 722, 1849, 717, - /* 2500 */ 724, 1849, 1849, 1849, 2281, 1849, 1849, 1849, 1849, 1849, - /* 2510 */ 1849, 1849, 1849, 2280, 1849, 1849, 2318, 724, 1849, 351, - /* 2520 */ 2282, 727, 2284, 2285, 722, 1849, 717, 1849, 2299, 1849, - /* 2530 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 2540 */ 2248, 1849, 723, 1849, 1849, 2299, 1849, 1849, 1849, 1849, - /* 2550 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 2248, 1849, 723, - /* 2560 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 2570 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 630, - /* 2580 */ 1849, 1849, 2318, 1849, 2281, 346, 2282, 727, 2284, 2285, - /* 2590 */ 722, 1849, 717, 1849, 1849, 1849, 2280, 724, 1849, 2318, - /* 2600 */ 1849, 1849, 336, 2282, 727, 2284, 2285, 722, 1849, 717, - /* 2610 */ 1849, 1849, 1849, 1849, 1849, 2281, 1849, 1849, 1849, 1849, - /* 2620 */ 1849, 1849, 1849, 1849, 1849, 2299, 1849, 1849, 724, 1849, - /* 2630 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 2248, 1849, 723, - /* 2640 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 2650 */ 2281, 1849, 1849, 1849, 1849, 1849, 2299, 1849, 1849, 1849, - /* 2660 */ 1849, 1849, 1849, 724, 1849, 1849, 1849, 1849, 2248, 1849, - /* 2670 */ 723, 1849, 1849, 1849, 1849, 1849, 2280, 1849, 1849, 2318, - /* 2680 */ 1849, 1849, 334, 2282, 727, 2284, 2285, 722, 1849, 717, - /* 2690 */ 1849, 2299, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 2700 */ 1849, 1849, 1849, 2248, 1849, 723, 1849, 2280, 1849, 1849, - /* 2710 */ 2318, 1849, 1849, 337, 2282, 727, 2284, 2285, 722, 1849, - /* 2720 */ 717, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 2730 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 2740 */ 1849, 1849, 2280, 2281, 1849, 2318, 1849, 1849, 343, 2282, - /* 2750 */ 727, 2284, 2285, 722, 1849, 717, 724, 1849, 1849, 1849, - /* 2760 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 2770 */ 2281, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 2780 */ 1849, 1849, 1849, 724, 2299, 1849, 1849, 1849, 1849, 1849, - /* 2790 */ 1849, 1849, 1849, 1849, 1849, 1849, 2248, 1849, 723, 1849, - /* 2800 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 2810 */ 1849, 2299, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 2820 */ 1849, 1849, 1849, 2248, 1849, 723, 1849, 1849, 1849, 1849, - /* 2830 */ 1849, 1849, 1849, 1849, 1849, 2280, 2281, 1849, 2318, 1849, - /* 2840 */ 1849, 347, 2282, 727, 2284, 2285, 722, 1849, 717, 724, - /* 2850 */ 1849, 1849, 1849, 2281, 1849, 1849, 1849, 1849, 1849, 1849, - /* 2860 */ 1849, 1849, 2280, 1849, 1849, 2318, 724, 1849, 339, 2282, - /* 2870 */ 727, 2284, 2285, 722, 1849, 717, 1849, 2299, 1849, 1849, - /* 2880 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 2248, - /* 2890 */ 1849, 723, 1849, 1849, 2299, 1849, 1849, 1849, 1849, 1849, - /* 2900 */ 1849, 1849, 1849, 1849, 1849, 1849, 2248, 1849, 723, 1849, - /* 2910 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 2920 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 2280, 1849, - /* 2930 */ 1849, 2318, 1849, 2281, 348, 2282, 727, 2284, 2285, 722, - /* 2940 */ 1849, 717, 1849, 1849, 1849, 2280, 724, 1849, 2318, 1849, - /* 2950 */ 1849, 340, 2282, 727, 2284, 2285, 722, 1849, 717, 1849, - /* 2960 */ 1849, 1849, 1849, 1849, 2281, 1849, 1849, 1849, 1849, 1849, - /* 2970 */ 1849, 1849, 1849, 1849, 2299, 1849, 1849, 724, 1849, 1849, - /* 2980 */ 1849, 1849, 1849, 1849, 1849, 1849, 2248, 1849, 723, 1849, - /* 2990 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 2281, - /* 3000 */ 1849, 1849, 1849, 1849, 1849, 2299, 1849, 1849, 1849, 1849, - /* 3010 */ 1849, 1849, 724, 1849, 1849, 1849, 1849, 2248, 1849, 723, - /* 3020 */ 1849, 1849, 1849, 1849, 1849, 2280, 1849, 1849, 2318, 1849, - /* 3030 */ 1849, 349, 2282, 727, 2284, 2285, 722, 1849, 717, 1849, - /* 3040 */ 2299, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3050 */ 1849, 1849, 2248, 1849, 723, 1849, 2280, 1849, 1849, 2318, - /* 3060 */ 1849, 1849, 341, 2282, 727, 2284, 2285, 722, 1849, 717, - /* 3070 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3080 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3090 */ 1849, 2280, 2281, 1849, 2318, 1849, 1849, 355, 2282, 727, - /* 3100 */ 2284, 2285, 722, 1849, 717, 724, 1849, 1849, 1849, 1849, - /* 3110 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 2281, - /* 3120 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3130 */ 1849, 1849, 724, 2299, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3140 */ 1849, 1849, 1849, 1849, 1849, 2248, 1849, 723, 1849, 1849, - /* 3150 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3160 */ 2299, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3170 */ 1849, 1849, 2248, 1849, 723, 1849, 1849, 1849, 1849, 1849, - /* 3180 */ 1849, 1849, 1849, 1849, 2280, 2281, 1849, 2318, 1849, 1849, - /* 3190 */ 356, 2282, 727, 2284, 2285, 722, 1849, 717, 724, 1849, - /* 3200 */ 1849, 1849, 2281, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3210 */ 1849, 2280, 1849, 1849, 2318, 724, 1849, 2293, 2282, 727, - /* 3220 */ 2284, 2285, 722, 1849, 717, 1849, 2299, 1849, 1849, 1849, - /* 3230 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 2248, 1849, - /* 3240 */ 723, 1849, 1849, 2299, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3250 */ 1849, 1849, 1849, 1849, 1849, 2248, 1849, 723, 1849, 1849, - /* 3260 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3270 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 2280, 1849, 1849, - /* 3280 */ 2318, 1849, 2281, 2292, 2282, 727, 2284, 2285, 722, 1849, - /* 3290 */ 717, 1849, 1849, 1849, 2280, 724, 1849, 2318, 1849, 1849, - /* 3300 */ 2291, 2282, 727, 2284, 2285, 722, 1849, 717, 1849, 1849, - /* 3310 */ 1849, 1849, 1849, 2281, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3320 */ 1849, 1849, 1849, 2299, 1849, 1849, 724, 1849, 1849, 1849, - /* 3330 */ 1849, 1849, 1849, 1849, 1849, 2248, 1849, 723, 1849, 1849, - /* 3340 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 2281, 1849, - /* 3350 */ 1849, 1849, 1849, 1849, 2299, 1849, 1849, 1849, 1849, 1849, - /* 3360 */ 1849, 724, 1849, 1849, 1849, 1849, 2248, 1849, 723, 1849, - /* 3370 */ 1849, 1849, 1849, 1849, 2280, 1849, 1849, 2318, 1849, 1849, - /* 3380 */ 370, 2282, 727, 2284, 2285, 722, 1849, 717, 1849, 2299, - /* 3390 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3400 */ 1849, 2248, 1849, 723, 1849, 2280, 1849, 1849, 2318, 1849, - /* 3410 */ 1849, 371, 2282, 727, 2284, 2285, 722, 1849, 717, 1849, - /* 3420 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3430 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3440 */ 2280, 2281, 1849, 2318, 1849, 1849, 367, 2282, 727, 2284, - /* 3450 */ 2285, 722, 1849, 717, 724, 1849, 1849, 1849, 1849, 1849, - /* 3460 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 2281, 1849, - /* 3470 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3480 */ 1849, 724, 2299, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3490 */ 1849, 1849, 1849, 1849, 2248, 1849, 723, 1849, 1849, 1849, - /* 3500 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 2299, - /* 3510 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3520 */ 1849, 2248, 1849, 723, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3530 */ 1849, 1849, 1849, 2280, 2281, 1849, 2318, 1849, 1849, 372, - /* 3540 */ 2282, 727, 2284, 2285, 722, 1849, 717, 724, 1849, 1849, - /* 3550 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3560 */ 725, 1849, 1849, 2318, 1849, 1849, 346, 2282, 727, 2284, - /* 3570 */ 2285, 722, 1849, 717, 1849, 2299, 1849, 1849, 1849, 1849, - /* 3580 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 2248, 1849, 723, - /* 3590 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3600 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3610 */ 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, 1849, - /* 3620 */ 1849, 1849, 1849, 1849, 1849, 1849, 2280, 1849, 1849, 2318, - /* 3630 */ 1849, 1849, 345, 2282, 727, 2284, 2285, 722, 1849, 717, + /* 400 */ 480, 479, 478, 1644, 473, 472, 376, 1672, 1508, 1509, + /* 410 */ 1268, 1710, 1675, 1685, 1527, 2285, 1640, 1641, 2323, 1701, + /* 420 */ 1704, 110, 2287, 727, 2289, 2290, 722, 1641, 717, 670, + /* 430 */ 665, 658, 762, 2475, 1617, 2376, 1615, 383, 382, 405, + /* 440 */ 2372, 1673, 760, 157, 156, 757, 756, 755, 154, 1817, + /* 450 */ 2286, 1642, 37, 407, 1724, 1725, 1726, 1727, 1728, 1732, + /* 460 */ 1733, 1734, 1735, 724, 12, 1876, 1620, 1621, 1672, 2246, + /* 470 */ 1674, 1677, 1678, 1679, 1680, 1681, 1682, 1683, 1684, 719, + /* 480 */ 715, 1693, 1694, 1696, 1697, 1698, 1699, 2, 12, 48, + /* 490 */ 46, 2304, 298, 92, 1642, 192, 1285, 409, 1284, 1616, + /* 500 */ 1285, 1847, 1284, 2253, 773, 723, 1875, 2081, 381, 380, + /* 510 */ 379, 592, 1700, 138, 1614, 34, 597, 649, 2253, 2036, + /* 520 */ 2455, 41, 40, 2286, 1731, 47, 45, 44, 43, 42, + /* 530 */ 92, 1286, 1626, 594, 1644, 1286, 689, 593, 2461, 198, + /* 540 */ 1361, 1695, 2285, 2456, 675, 2323, 564, 19, 110, 2287, + /* 550 */ 727, 2289, 2290, 722, 1622, 717, 2037, 1805, 145, 2253, + /* 560 */ 152, 2347, 2376, 1622, 2304, 2017, 405, 2372, 775, 509, + /* 570 */ 1421, 1676, 776, 1456, 1457, 2002, 2253, 1874, 723, 1873, + /* 580 */ 818, 1520, 1521, 15, 1412, 752, 751, 750, 1416, 749, + /* 590 */ 1418, 1419, 748, 745, 1872, 1427, 742, 1429, 1430, 739, + /* 600 */ 736, 733, 565, 2165, 35, 1846, 661, 660, 1803, 1804, + /* 610 */ 1806, 1807, 1808, 1645, 1736, 2285, 1540, 1541, 2323, 1702, + /* 620 */ 1703, 110, 2287, 727, 2289, 2290, 722, 1673, 717, 2028, + /* 630 */ 2253, 222, 2253, 181, 762, 2376, 753, 41, 40, 405, + /* 640 */ 2372, 47, 45, 44, 43, 42, 414, 2253, 180, 2087, + /* 650 */ 2089, 1675, 1685, 508, 36, 1539, 1542, 598, 1701, 1704, + /* 660 */ 41, 40, 2407, 2094, 47, 45, 44, 43, 42, 249, + /* 670 */ 377, 2024, 2152, 1617, 1940, 1615, 1376, 2094, 702, 707, + /* 680 */ 2041, 1359, 707, 2041, 375, 174, 686, 142, 1871, 545, + /* 690 */ 189, 1375, 2092, 584, 580, 576, 572, 543, 248, 203, + /* 700 */ 539, 535, 56, 1870, 266, 1620, 1621, 1672, 265, 1674, + /* 710 */ 1677, 1678, 1679, 1680, 1681, 1682, 1683, 1684, 719, 715, + /* 720 */ 1693, 1694, 1696, 1697, 1698, 1699, 2, 48, 46, 1705, + /* 730 */ 2286, 707, 2041, 102, 1616, 409, 1790, 1616, 1869, 93, + /* 740 */ 1868, 2253, 246, 724, 1645, 2414, 609, 608, 607, 1614, + /* 750 */ 1700, 460, 1614, 599, 139, 603, 2253, 520, 2034, 602, + /* 760 */ 674, 2286, 2094, 2455, 601, 606, 385, 384, 2019, 399, + /* 770 */ 600, 2304, 95, 596, 724, 364, 2427, 2092, 389, 1695, + /* 780 */ 627, 673, 198, 2253, 1865, 723, 2456, 675, 12, 1622, + /* 790 */ 10, 2253, 1622, 2253, 199, 2384, 2385, 1864, 140, 2389, + /* 800 */ 456, 148, 2304, 41, 40, 455, 2045, 47, 45, 44, + /* 810 */ 43, 42, 245, 238, 2253, 818, 723, 273, 818, 243, + /* 820 */ 561, 49, 2285, 707, 2041, 2323, 2286, 1863, 110, 2287, + /* 830 */ 727, 2289, 2290, 722, 1380, 717, 403, 2253, 236, 721, + /* 840 */ 2475, 2263, 2376, 461, 167, 276, 405, 2372, 649, 1379, + /* 850 */ 2253, 2455, 2043, 2285, 1644, 2032, 2323, 1702, 1703, 110, + /* 860 */ 2287, 727, 2289, 2290, 722, 2267, 717, 2304, 412, 2461, + /* 870 */ 198, 2475, 155, 2376, 2456, 675, 167, 405, 2372, 2253, + /* 880 */ 2253, 723, 1641, 2391, 2043, 1862, 648, 41, 40, 1675, + /* 890 */ 1685, 47, 45, 44, 43, 42, 1701, 1704, 2016, 760, + /* 900 */ 157, 156, 757, 756, 755, 154, 718, 2269, 1617, 2388, + /* 910 */ 1615, 1617, 1981, 1615, 709, 522, 2348, 717, 2285, 707, + /* 920 */ 2041, 2323, 707, 2041, 350, 2287, 727, 2289, 2290, 722, + /* 930 */ 720, 717, 708, 2341, 2459, 469, 2148, 2125, 2253, 477, + /* 940 */ 1620, 1621, 492, 1620, 1621, 1672, 1580, 1674, 1677, 1678, + /* 950 */ 1679, 1680, 1681, 1682, 1683, 1684, 719, 715, 1693, 1694, + /* 960 */ 1696, 1697, 1698, 1699, 2, 48, 46, 1797, 2286, 707, + /* 970 */ 2041, 614, 2094, 409, 1867, 1616, 2247, 415, 632, 404, + /* 980 */ 2094, 724, 1798, 656, 214, 167, 626, 2092, 1700, 493, + /* 990 */ 1614, 1861, 2094, 2043, 108, 2093, 707, 2041, 1641, 413, + /* 1000 */ 475, 2148, 264, 305, 306, 502, 2148, 2092, 304, 2304, + /* 1010 */ 193, 143, 60, 444, 2088, 2089, 566, 1695, 617, 2033, + /* 1020 */ 646, 2253, 1796, 723, 649, 611, 649, 2455, 594, 2455, + /* 1030 */ 1622, 261, 593, 760, 157, 156, 757, 756, 755, 154, + /* 1040 */ 446, 442, 9, 690, 2253, 2461, 198, 2461, 198, 216, + /* 1050 */ 2456, 675, 2456, 675, 221, 166, 818, 707, 2041, 49, + /* 1060 */ 2285, 2286, 1860, 2323, 1645, 2263, 110, 2287, 727, 2289, + /* 1070 */ 2290, 722, 71, 717, 724, 70, 2448, 2038, 2475, 2271, + /* 1080 */ 2376, 707, 2041, 1859, 405, 2372, 707, 2041, 711, 2267, + /* 1090 */ 2348, 649, 1673, 1858, 2455, 1702, 1703, 1771, 487, 605, + /* 1100 */ 604, 269, 2304, 707, 2041, 144, 277, 486, 2347, 707, + /* 1110 */ 2041, 678, 2461, 198, 2253, 2253, 723, 2456, 675, 1857, + /* 1120 */ 707, 2041, 167, 692, 2234, 707, 2041, 1675, 1685, 309, + /* 1130 */ 2044, 2269, 406, 2237, 1701, 1704, 2253, 707, 2041, 2391, + /* 1140 */ 704, 717, 14, 13, 2263, 705, 2253, 707, 2041, 1617, + /* 1150 */ 681, 1615, 1676, 2285, 787, 785, 2323, 315, 2272, 110, + /* 1160 */ 2287, 727, 2289, 2290, 722, 2387, 717, 416, 2267, 1288, + /* 1170 */ 1289, 2475, 2253, 2376, 44, 43, 42, 405, 2372, 586, + /* 1180 */ 585, 1620, 1621, 1672, 431, 1674, 1677, 1678, 1679, 1680, + /* 1190 */ 1681, 1682, 1683, 1684, 719, 715, 1693, 1694, 1696, 1697, + /* 1200 */ 1698, 1699, 2, 48, 46, 155, 2286, 2391, 1673, 754, + /* 1210 */ 2269, 409, 2085, 1616, 588, 587, 1882, 813, 677, 724, + /* 1220 */ 717, 2395, 758, 1924, 759, 2085, 1700, 2085, 1614, 328, + /* 1230 */ 1265, 1266, 2071, 2386, 2396, 1763, 2135, 3, 135, 254, + /* 1240 */ 256, 258, 252, 255, 257, 610, 278, 2304, 1743, 54, + /* 1250 */ 85, 260, 1915, 1913, 259, 1695, 629, 50, 628, 2253, + /* 1260 */ 714, 723, 50, 182, 155, 1763, 2420, 50, 1622, 1849, + /* 1270 */ 1850, 303, 1907, 72, 612, 615, 153, 155, 467, 1583, + /* 1280 */ 14, 13, 65, 50, 50, 1625, 2274, 291, 731, 153, + /* 1290 */ 96, 107, 662, 767, 818, 155, 136, 15, 2285, 2286, + /* 1300 */ 104, 2323, 153, 768, 110, 2287, 727, 2289, 2290, 722, + /* 1310 */ 137, 717, 724, 1624, 285, 1319, 2475, 1338, 2376, 418, + /* 1320 */ 417, 2305, 405, 2372, 811, 1978, 1977, 1336, 2157, 1630, + /* 1330 */ 2410, 1802, 659, 1702, 1703, 395, 1801, 283, 691, 422, + /* 1340 */ 2304, 1537, 1700, 2276, 1623, 307, 205, 699, 392, 666, + /* 1350 */ 311, 1406, 2253, 696, 723, 1320, 1737, 1686, 327, 1903, + /* 1360 */ 1898, 1770, 1434, 1438, 2158, 1675, 1685, 679, 2082, 1445, + /* 1370 */ 1443, 1695, 1701, 1704, 2411, 2421, 158, 687, 293, 290, + /* 1380 */ 5, 297, 2003, 425, 1622, 430, 373, 1617, 438, 1615, + /* 1390 */ 1648, 2285, 447, 439, 2323, 206, 448, 110, 2287, 727, + /* 1400 */ 2289, 2290, 722, 207, 717, 450, 209, 1561, 682, 2351, + /* 1410 */ 713, 2376, 322, 1639, 464, 405, 2372, 1640, 1721, 1620, + /* 1420 */ 1621, 1672, 468, 1674, 1677, 1678, 1679, 1680, 1681, 1682, + /* 1430 */ 1683, 1684, 719, 715, 1693, 1694, 1696, 1697, 1698, 1699, + /* 1440 */ 2, 220, 168, 470, 474, 476, 1628, 335, 511, 481, + /* 1450 */ 494, 503, 501, 510, 2150, 512, 523, 524, 521, 224, + /* 1460 */ 225, 526, 227, 527, 332, 74, 529, 531, 73, 1646, + /* 1470 */ 4, 546, 547, 554, 1627, 1642, 555, 557, 357, 235, + /* 1480 */ 558, 237, 1647, 559, 2286, 1649, 560, 1650, 562, 230, + /* 1490 */ 530, 528, 525, 2166, 240, 633, 589, 724, 242, 568, + /* 1500 */ 354, 618, 2225, 1631, 90, 1626, 91, 247, 112, 619, + /* 1510 */ 2222, 591, 2031, 631, 94, 2221, 149, 251, 637, 323, + /* 1520 */ 636, 270, 638, 2027, 274, 2304, 1568, 272, 642, 253, + /* 1530 */ 62, 644, 2426, 160, 161, 1634, 1636, 2253, 2029, 723, + /* 1540 */ 2025, 162, 163, 663, 8, 697, 2425, 175, 2398, 715, + /* 1550 */ 1693, 1694, 1696, 1697, 1698, 1699, 672, 653, 641, 284, + /* 1560 */ 654, 286, 652, 287, 651, 2454, 288, 292, 63, 2478, + /* 1570 */ 1763, 643, 683, 680, 396, 141, 2285, 1643, 280, 2323, + /* 1580 */ 282, 1, 110, 2287, 727, 2289, 2290, 722, 289, 717, + /* 1590 */ 1768, 1766, 201, 299, 2349, 185, 2376, 324, 695, 150, + /* 1600 */ 405, 2372, 2180, 2179, 2178, 325, 700, 2392, 401, 701, + /* 1610 */ 326, 61, 83, 82, 459, 103, 2086, 211, 1244, 2042, + /* 1620 */ 729, 151, 812, 815, 101, 329, 317, 2357, 53, 365, + /* 1630 */ 451, 449, 366, 353, 331, 333, 2245, 159, 2244, 817, + /* 1640 */ 2243, 358, 80, 2286, 440, 2238, 427, 437, 433, 429, + /* 1650 */ 426, 452, 428, 1607, 338, 1608, 724, 204, 432, 2236, + /* 1660 */ 434, 435, 436, 1606, 2235, 374, 2233, 352, 441, 2286, + /* 1670 */ 342, 2232, 443, 2231, 445, 1596, 2212, 208, 2211, 210, + /* 1680 */ 1564, 81, 724, 1563, 2304, 2193, 2192, 2191, 457, 458, + /* 1690 */ 298, 2190, 2189, 2140, 2134, 462, 2253, 1507, 723, 465, + /* 1700 */ 466, 2131, 213, 2130, 2129, 84, 2128, 2133, 2132, 2127, + /* 1710 */ 2304, 482, 215, 2126, 2124, 2123, 2122, 217, 2121, 484, + /* 1720 */ 2137, 2120, 2253, 2119, 723, 2118, 2117, 2116, 2115, 2114, + /* 1730 */ 2113, 2112, 2111, 2110, 2109, 2285, 2286, 219, 2323, 2108, + /* 1740 */ 2107, 110, 2287, 727, 2289, 2290, 722, 2106, 717, 724, + /* 1750 */ 2105, 2104, 2103, 710, 2102, 2376, 2136, 89, 2101, 405, + /* 1760 */ 2372, 2285, 2100, 1513, 2323, 2286, 2099, 111, 2287, 727, + /* 1770 */ 2289, 2290, 722, 2098, 717, 223, 514, 2304, 724, 2097, + /* 1780 */ 516, 2376, 2096, 2095, 1943, 2375, 2372, 1377, 362, 2253, + /* 1790 */ 1381, 723, 363, 1942, 1373, 1941, 1939, 1936, 532, 226, + /* 1800 */ 228, 534, 1935, 1928, 533, 538, 2304, 229, 536, 540, + /* 1810 */ 1917, 537, 542, 544, 1893, 541, 2273, 77, 2253, 231, + /* 1820 */ 723, 190, 1267, 1892, 233, 2210, 191, 552, 2285, 78, + /* 1830 */ 2200, 2323, 2188, 2286, 111, 2287, 727, 2289, 2290, 722, + /* 1840 */ 239, 717, 241, 2187, 2164, 2020, 724, 1938, 2376, 244, + /* 1850 */ 1934, 1312, 712, 2372, 569, 635, 570, 725, 571, 1932, + /* 1860 */ 2323, 573, 574, 111, 2287, 727, 2289, 2290, 722, 575, + /* 1870 */ 717, 1930, 577, 821, 2304, 579, 1927, 2376, 581, 578, + /* 1880 */ 582, 368, 2372, 1912, 583, 1910, 2253, 1911, 723, 321, + /* 1890 */ 1909, 1889, 2022, 1450, 1449, 2021, 1349, 1363, 2286, 64, + /* 1900 */ 1362, 250, 1360, 1358, 1357, 188, 1356, 1355, 784, 1925, + /* 1910 */ 1354, 724, 786, 809, 805, 801, 797, 2286, 318, 1351, + /* 1920 */ 386, 1350, 1916, 1348, 387, 2285, 1914, 388, 2323, 1888, + /* 1930 */ 724, 171, 2287, 727, 2289, 2290, 722, 616, 717, 2304, + /* 1940 */ 620, 613, 1887, 1886, 1885, 622, 1884, 624, 113, 1590, + /* 1950 */ 1592, 2253, 1589, 723, 2209, 1594, 1570, 29, 2304, 109, + /* 1960 */ 1572, 68, 312, 2199, 2186, 2185, 57, 639, 165, 2460, + /* 1970 */ 2253, 275, 723, 650, 2417, 640, 17, 1549, 66, 195, + /* 1980 */ 20, 6, 1548, 31, 7, 1819, 279, 645, 281, 1574, + /* 1990 */ 2285, 657, 2286, 2323, 703, 647, 172, 2287, 727, 2289, + /* 2000 */ 2290, 722, 21, 717, 22, 724, 1800, 173, 655, 2285, + /* 2010 */ 184, 2274, 2323, 183, 33, 111, 2287, 727, 2289, 2290, + /* 2020 */ 722, 1789, 717, 32, 24, 1834, 79, 1833, 1839, 2376, + /* 2030 */ 1840, 397, 301, 2304, 2373, 1838, 1837, 398, 295, 300, + /* 2040 */ 1760, 59, 1759, 2184, 176, 2253, 98, 723, 2163, 2162, + /* 2050 */ 676, 2476, 99, 26, 97, 25, 104, 302, 271, 2286, + /* 2060 */ 1795, 186, 23, 308, 69, 18, 100, 313, 13, 11, + /* 2070 */ 177, 310, 724, 58, 698, 1632, 1712, 1711, 187, 1665, + /* 2080 */ 1722, 1690, 2326, 728, 2285, 2286, 716, 2323, 726, 1688, + /* 2090 */ 171, 2287, 727, 2289, 2290, 722, 730, 717, 724, 39, + /* 2100 */ 2304, 411, 734, 1687, 1657, 393, 737, 16, 27, 28, + /* 2110 */ 1426, 732, 2253, 1435, 723, 740, 1432, 735, 743, 1431, + /* 2120 */ 738, 746, 1428, 741, 316, 744, 2304, 1444, 1440, 1422, + /* 2130 */ 1420, 394, 747, 2418, 1425, 1345, 105, 106, 2253, 76, + /* 2140 */ 723, 1310, 761, 1424, 1342, 1341, 1340, 1339, 1337, 1335, + /* 2150 */ 1334, 2285, 1423, 1333, 2323, 2286, 1371, 351, 2287, 727, + /* 2160 */ 2289, 2290, 722, 772, 717, 1370, 202, 774, 724, 1331, + /* 2170 */ 1328, 1330, 1329, 1327, 1326, 1325, 1367, 2285, 1365, 1322, + /* 2180 */ 2323, 1321, 2286, 351, 2287, 727, 2289, 2290, 722, 1318, + /* 2190 */ 717, 1317, 1316, 1933, 1315, 724, 2304, 794, 795, 1931, + /* 2200 */ 796, 798, 799, 800, 1929, 802, 803, 804, 2253, 1926, + /* 2210 */ 723, 806, 1908, 807, 808, 810, 1257, 1883, 1245, 814, + /* 2220 */ 320, 816, 819, 2304, 1618, 330, 820, 1853, 1853, 1853, + /* 2230 */ 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853, 1853, + /* 2240 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2285, 1853, 1853, + /* 2250 */ 2323, 1853, 1853, 344, 2287, 727, 2289, 2290, 722, 1853, + /* 2260 */ 717, 1853, 1853, 1853, 1853, 1853, 2286, 1853, 1853, 1853, + /* 2270 */ 1853, 1853, 1853, 1853, 2285, 1853, 1853, 2323, 1853, 724, + /* 2280 */ 172, 2287, 727, 2289, 2290, 722, 1853, 717, 2286, 1853, + /* 2290 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 671, + /* 2300 */ 1853, 721, 1853, 1853, 1853, 1853, 1853, 2304, 1853, 1853, + /* 2310 */ 1853, 1853, 400, 1853, 1853, 1853, 1853, 1853, 1853, 2253, + /* 2320 */ 1853, 723, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2304, + /* 2330 */ 1853, 1853, 1853, 1853, 1853, 2477, 1853, 1853, 1853, 1853, + /* 2340 */ 1853, 2253, 1853, 723, 1853, 1853, 1853, 1853, 1853, 1853, + /* 2350 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2285, 1853, + /* 2360 */ 1853, 2323, 1853, 1853, 351, 2287, 727, 2289, 2290, 722, + /* 2370 */ 1853, 717, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 2380 */ 2285, 1853, 1853, 2323, 1853, 1853, 350, 2287, 727, 2289, + /* 2390 */ 2290, 722, 1853, 717, 2286, 2342, 1853, 1853, 1853, 1853, + /* 2400 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 724, 1853, 1853, + /* 2410 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 2420 */ 1853, 2286, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 2430 */ 1853, 1853, 1853, 1853, 724, 2304, 1853, 1853, 1853, 1853, + /* 2440 */ 408, 1853, 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, + /* 2450 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 2460 */ 1853, 1853, 2304, 1853, 1853, 1853, 1853, 410, 1853, 1853, + /* 2470 */ 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853, 1853, 1853, + /* 2480 */ 1853, 1853, 1853, 1853, 1853, 1853, 2285, 2286, 1853, 2323, + /* 2490 */ 1853, 1853, 351, 2287, 727, 2289, 2290, 722, 1853, 717, + /* 2500 */ 724, 1853, 1853, 1853, 2286, 1853, 1853, 1853, 1853, 1853, + /* 2510 */ 1853, 1853, 1853, 2285, 1853, 1853, 2323, 724, 1853, 351, + /* 2520 */ 2287, 727, 2289, 2290, 722, 1853, 717, 1853, 2304, 1853, + /* 2530 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 2540 */ 2253, 1853, 723, 1853, 1853, 2304, 1853, 1853, 1853, 1853, + /* 2550 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, + /* 2560 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 2570 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 630, + /* 2580 */ 1853, 1853, 2323, 1853, 2286, 346, 2287, 727, 2289, 2290, + /* 2590 */ 722, 1853, 717, 1853, 1853, 1853, 2285, 724, 1853, 2323, + /* 2600 */ 1853, 1853, 336, 2287, 727, 2289, 2290, 722, 1853, 717, + /* 2610 */ 1853, 1853, 1853, 1853, 1853, 2286, 1853, 1853, 1853, 1853, + /* 2620 */ 1853, 1853, 1853, 1853, 1853, 2304, 1853, 1853, 724, 1853, + /* 2630 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, + /* 2640 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 2650 */ 2286, 1853, 1853, 1853, 1853, 1853, 2304, 1853, 1853, 1853, + /* 2660 */ 1853, 1853, 1853, 724, 1853, 1853, 1853, 1853, 2253, 1853, + /* 2670 */ 723, 1853, 1853, 1853, 1853, 1853, 2285, 1853, 1853, 2323, + /* 2680 */ 1853, 1853, 334, 2287, 727, 2289, 2290, 722, 1853, 717, + /* 2690 */ 1853, 2304, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 2700 */ 1853, 1853, 1853, 2253, 1853, 723, 1853, 2285, 1853, 1853, + /* 2710 */ 2323, 1853, 1853, 337, 2287, 727, 2289, 2290, 722, 1853, + /* 2720 */ 717, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 2730 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 2740 */ 1853, 1853, 2285, 2286, 1853, 2323, 1853, 1853, 343, 2287, + /* 2750 */ 727, 2289, 2290, 722, 1853, 717, 724, 1853, 1853, 1853, + /* 2760 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 2770 */ 2286, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 2780 */ 1853, 1853, 1853, 724, 2304, 1853, 1853, 1853, 1853, 1853, + /* 2790 */ 1853, 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853, + /* 2800 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 2810 */ 1853, 2304, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 2820 */ 1853, 1853, 1853, 2253, 1853, 723, 1853, 1853, 1853, 1853, + /* 2830 */ 1853, 1853, 1853, 1853, 1853, 2285, 2286, 1853, 2323, 1853, + /* 2840 */ 1853, 347, 2287, 727, 2289, 2290, 722, 1853, 717, 724, + /* 2850 */ 1853, 1853, 1853, 2286, 1853, 1853, 1853, 1853, 1853, 1853, + /* 2860 */ 1853, 1853, 2285, 1853, 1853, 2323, 724, 1853, 339, 2287, + /* 2870 */ 727, 2289, 2290, 722, 1853, 717, 1853, 2304, 1853, 1853, + /* 2880 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2253, + /* 2890 */ 1853, 723, 1853, 1853, 2304, 1853, 1853, 1853, 1853, 1853, + /* 2900 */ 1853, 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853, + /* 2910 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 2920 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2285, 1853, + /* 2930 */ 1853, 2323, 1853, 2286, 348, 2287, 727, 2289, 2290, 722, + /* 2940 */ 1853, 717, 1853, 1853, 1853, 2285, 724, 1853, 2323, 1853, + /* 2950 */ 1853, 340, 2287, 727, 2289, 2290, 722, 1853, 717, 1853, + /* 2960 */ 1853, 1853, 1853, 1853, 2286, 1853, 1853, 1853, 1853, 1853, + /* 2970 */ 1853, 1853, 1853, 1853, 2304, 1853, 1853, 724, 1853, 1853, + /* 2980 */ 1853, 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853, + /* 2990 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2286, + /* 3000 */ 1853, 1853, 1853, 1853, 1853, 2304, 1853, 1853, 1853, 1853, + /* 3010 */ 1853, 1853, 724, 1853, 1853, 1853, 1853, 2253, 1853, 723, + /* 3020 */ 1853, 1853, 1853, 1853, 1853, 2285, 1853, 1853, 2323, 1853, + /* 3030 */ 1853, 349, 2287, 727, 2289, 2290, 722, 1853, 717, 1853, + /* 3040 */ 2304, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3050 */ 1853, 1853, 2253, 1853, 723, 1853, 2285, 1853, 1853, 2323, + /* 3060 */ 1853, 1853, 341, 2287, 727, 2289, 2290, 722, 1853, 717, + /* 3070 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3080 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3090 */ 1853, 2285, 2286, 1853, 2323, 1853, 1853, 355, 2287, 727, + /* 3100 */ 2289, 2290, 722, 1853, 717, 724, 1853, 1853, 1853, 1853, + /* 3110 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2286, + /* 3120 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3130 */ 1853, 1853, 724, 2304, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3140 */ 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853, 1853, + /* 3150 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3160 */ 2304, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3170 */ 1853, 1853, 2253, 1853, 723, 1853, 1853, 1853, 1853, 1853, + /* 3180 */ 1853, 1853, 1853, 1853, 2285, 2286, 1853, 2323, 1853, 1853, + /* 3190 */ 356, 2287, 727, 2289, 2290, 722, 1853, 717, 724, 1853, + /* 3200 */ 1853, 1853, 2286, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3210 */ 1853, 2285, 1853, 1853, 2323, 724, 1853, 2298, 2287, 727, + /* 3220 */ 2289, 2290, 722, 1853, 717, 1853, 2304, 1853, 1853, 1853, + /* 3230 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2253, 1853, + /* 3240 */ 723, 1853, 1853, 2304, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3250 */ 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853, 1853, + /* 3260 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3270 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2285, 1853, 1853, + /* 3280 */ 2323, 1853, 2286, 2297, 2287, 727, 2289, 2290, 722, 1853, + /* 3290 */ 717, 1853, 1853, 1853, 2285, 724, 1853, 2323, 1853, 1853, + /* 3300 */ 2296, 2287, 727, 2289, 2290, 722, 1853, 717, 1853, 1853, + /* 3310 */ 1853, 1853, 1853, 2286, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3320 */ 1853, 1853, 1853, 2304, 1853, 1853, 724, 1853, 1853, 1853, + /* 3330 */ 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853, 1853, + /* 3340 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2286, 1853, + /* 3350 */ 1853, 1853, 1853, 1853, 2304, 1853, 1853, 1853, 1853, 1853, + /* 3360 */ 1853, 724, 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853, + /* 3370 */ 1853, 1853, 1853, 1853, 2285, 1853, 1853, 2323, 1853, 1853, + /* 3380 */ 370, 2287, 727, 2289, 2290, 722, 1853, 717, 1853, 2304, + /* 3390 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3400 */ 1853, 2253, 1853, 723, 1853, 2285, 1853, 1853, 2323, 1853, + /* 3410 */ 1853, 371, 2287, 727, 2289, 2290, 722, 1853, 717, 1853, + /* 3420 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3430 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3440 */ 2285, 2286, 1853, 2323, 1853, 1853, 367, 2287, 727, 2289, + /* 3450 */ 2290, 722, 1853, 717, 724, 1853, 1853, 1853, 1853, 1853, + /* 3460 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2286, 1853, + /* 3470 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3480 */ 1853, 724, 2304, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3490 */ 1853, 1853, 1853, 1853, 2253, 1853, 723, 1853, 1853, 1853, + /* 3500 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2304, + /* 3510 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3520 */ 1853, 2253, 1853, 723, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3530 */ 1853, 1853, 1853, 2285, 2286, 1853, 2323, 1853, 1853, 372, + /* 3540 */ 2287, 727, 2289, 2290, 722, 1853, 717, 724, 1853, 1853, + /* 3550 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3560 */ 725, 1853, 1853, 2323, 1853, 1853, 346, 2287, 727, 2289, + /* 3570 */ 2290, 722, 1853, 717, 1853, 2304, 1853, 1853, 1853, 1853, + /* 3580 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 2253, 1853, 723, + /* 3590 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3600 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3610 */ 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, 1853, + /* 3620 */ 1853, 1853, 1853, 1853, 1853, 1853, 2285, 1853, 1853, 2323, + /* 3630 */ 1853, 1853, 345, 2287, 727, 2289, 2290, 722, 1853, 717, }; static const YYCODETYPE yy_lookahead[] = { /* 0 */ 389, 360, 361, 472, 390, 472, 475, 355, 475, 390, @@ -949,7 +605,7 @@ static const YYCODETYPE yy_lookahead[] = { /* 120 */ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, /* 130 */ 94, 95, 96, 97, 98, 99, 355, 107, 440, 358, /* 140 */ 359, 443, 142, 143, 446, 447, 448, 449, 450, 451, - /* 150 */ 401, 453, 424, 360, 361, 116, 458, 429, 460, 389, + /* 150 */ 401, 453, 424, 360, 361, 20, 458, 429, 460, 389, /* 160 */ 107, 403, 464, 465, 468, 469, 470, 3, 472, 473, /* 170 */ 370, 475, 360, 20, 174, 175, 418, 479, 378, 421, /* 180 */ 422, 181, 182, 413, 20, 487, 389, 21, 106, 493, @@ -962,9 +618,9 @@ static const YYCODETYPE yy_lookahead[] = { /* 250 */ 12, 13, 0, 360, 361, 18, 176, 20, 20, 77, /* 260 */ 22, 468, 469, 470, 27, 472, 473, 30, 14, 70, /* 270 */ 64, 107, 35, 35, 20, 37, 24, 25, 26, 27, - /* 280 */ 28, 29, 30, 31, 32, 72, 73, 74, 51, 20, + /* 280 */ 28, 29, 30, 31, 32, 72, 73, 74, 51, 69, /* 290 */ 53, 4, 79, 80, 81, 58, 209, 210, 85, 195, - /* 300 */ 250, 197, 64, 90, 91, 92, 93, 0, 70, 96, + /* 300 */ 116, 197, 64, 90, 91, 92, 93, 0, 70, 96, /* 310 */ 230, 105, 99, 114, 108, 77, 12, 13, 14, 15, /* 320 */ 16, 8, 9, 348, 116, 12, 13, 14, 15, 16, /* 330 */ 385, 227, 106, 46, 47, 48, 361, 180, 363, 356, @@ -980,18 +636,18 @@ static const YYCODETYPE yy_lookahead[] = { /* 430 */ 273, 274, 69, 458, 196, 460, 198, 39, 40, 464, /* 440 */ 465, 230, 135, 136, 137, 138, 139, 140, 141, 107, /* 450 */ 348, 20, 253, 254, 255, 256, 257, 258, 259, 260, - /* 460 */ 261, 262, 263, 361, 69, 348, 228, 229, 230, 424, + /* 460 */ 261, 262, 263, 361, 250, 348, 228, 229, 230, 424, /* 470 */ 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, /* 480 */ 242, 243, 244, 245, 246, 247, 248, 249, 250, 12, /* 490 */ 13, 389, 266, 369, 20, 388, 20, 20, 22, 22, - /* 500 */ 20, 188, 22, 401, 369, 403, 348, 400, 110, 111, + /* 500 */ 20, 188, 22, 401, 13, 403, 348, 400, 110, 111, /* 510 */ 386, 113, 35, 37, 37, 2, 13, 472, 401, 395, /* 520 */ 475, 8, 9, 348, 173, 12, 13, 14, 15, 16, - /* 530 */ 395, 55, 198, 135, 20, 55, 361, 139, 493, 494, + /* 530 */ 369, 55, 198, 135, 20, 55, 361, 139, 493, 494, /* 540 */ 37, 64, 440, 498, 499, 443, 360, 70, 446, 447, - /* 550 */ 448, 449, 450, 451, 77, 453, 33, 228, 456, 401, - /* 560 */ 458, 459, 460, 77, 389, 0, 464, 465, 45, 86, - /* 570 */ 103, 174, 456, 142, 143, 459, 401, 348, 403, 348, + /* 550 */ 448, 449, 450, 451, 77, 453, 395, 228, 456, 401, + /* 560 */ 458, 459, 460, 77, 389, 0, 464, 465, 77, 86, + /* 570 */ 103, 174, 376, 142, 143, 379, 401, 348, 403, 348, /* 580 */ 103, 174, 175, 106, 117, 118, 119, 120, 121, 122, /* 590 */ 123, 124, 125, 126, 348, 128, 129, 130, 131, 132, /* 600 */ 133, 134, 416, 417, 253, 292, 277, 278, 279, 280, @@ -1001,7 +657,7 @@ static const YYCODETYPE yy_lookahead[] = { /* 640 */ 465, 12, 13, 14, 15, 16, 399, 401, 389, 402, /* 650 */ 403, 174, 175, 170, 2, 181, 182, 13, 181, 182, /* 660 */ 8, 9, 487, 389, 12, 13, 14, 15, 16, 35, - /* 670 */ 411, 77, 413, 196, 0, 198, 22, 389, 404, 360, + /* 670 */ 411, 390, 413, 196, 0, 198, 22, 389, 404, 360, /* 680 */ 361, 37, 360, 361, 396, 51, 360, 361, 348, 51, /* 690 */ 176, 37, 404, 59, 60, 61, 62, 59, 64, 380, /* 700 */ 62, 63, 380, 348, 137, 228, 229, 230, 141, 232, @@ -1025,7 +681,7 @@ static const YYCODETYPE yy_lookahead[] = { /* 880 */ 401, 403, 20, 445, 397, 348, 50, 8, 9, 174, /* 890 */ 175, 12, 13, 14, 15, 16, 181, 182, 0, 135, /* 900 */ 136, 137, 138, 139, 140, 141, 390, 443, 196, 471, - /* 910 */ 198, 196, 390, 198, 457, 103, 459, 453, 440, 360, + /* 910 */ 198, 196, 378, 198, 457, 103, 459, 453, 440, 360, /* 920 */ 361, 443, 360, 361, 446, 447, 448, 449, 450, 451, /* 930 */ 452, 453, 454, 455, 3, 360, 361, 0, 401, 380, /* 940 */ 228, 229, 380, 228, 229, 230, 107, 232, 233, 234, @@ -1043,120 +699,120 @@ static const YYCODETYPE yy_lookahead[] = { /* 1060 */ 440, 348, 348, 443, 230, 377, 446, 447, 448, 449, /* 1070 */ 450, 451, 105, 453, 361, 108, 363, 380, 458, 391, /* 1080 */ 460, 360, 361, 348, 464, 465, 360, 361, 457, 401, - /* 1090 */ 459, 472, 230, 348, 475, 142, 143, 389, 161, 374, - /* 1100 */ 375, 380, 389, 360, 361, 397, 380, 170, 398, 360, - /* 1110 */ 361, 401, 493, 494, 401, 401, 403, 498, 499, 348, - /* 1120 */ 360, 361, 4, 380, 0, 360, 361, 174, 175, 380, - /* 1130 */ 398, 443, 444, 401, 181, 182, 401, 360, 361, 445, + /* 1090 */ 459, 472, 230, 348, 475, 142, 143, 4, 161, 374, + /* 1100 */ 375, 380, 389, 360, 361, 456, 380, 170, 459, 360, + /* 1110 */ 361, 33, 493, 494, 401, 401, 403, 498, 499, 348, + /* 1120 */ 360, 361, 389, 380, 0, 360, 361, 174, 175, 380, + /* 1130 */ 397, 443, 444, 0, 181, 182, 401, 360, 361, 445, /* 1140 */ 380, 453, 1, 2, 377, 380, 401, 360, 361, 196, /* 1150 */ 33, 198, 174, 440, 374, 375, 443, 380, 391, 446, /* 1160 */ 447, 448, 449, 450, 451, 471, 453, 380, 401, 56, /* 1170 */ 57, 458, 401, 460, 14, 15, 16, 464, 465, 365, - /* 1180 */ 366, 228, 229, 230, 37, 232, 233, 234, 235, 236, + /* 1180 */ 366, 228, 229, 230, 51, 232, 233, 234, 235, 236, /* 1190 */ 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, - /* 1200 */ 247, 248, 249, 12, 13, 0, 348, 445, 230, 398, + /* 1200 */ 247, 248, 249, 12, 13, 33, 348, 445, 230, 398, /* 1210 */ 443, 20, 401, 22, 365, 366, 351, 352, 287, 361, - /* 1220 */ 453, 363, 382, 64, 376, 385, 35, 379, 37, 47, - /* 1230 */ 48, 0, 33, 471, 264, 265, 109, 109, 109, 112, - /* 1240 */ 112, 112, 109, 33, 45, 112, 33, 389, 107, 0, - /* 1250 */ 0, 212, 33, 214, 33, 64, 51, 0, 33, 401, - /* 1260 */ 70, 403, 142, 143, 49, 265, 378, 108, 77, 33, - /* 1270 */ 37, 22, 22, 42, 33, 33, 33, 33, 0, 22, - /* 1280 */ 414, 33, 106, 1, 2, 33, 33, 33, 33, 33, - /* 1290 */ 13, 115, 502, 33, 103, 33, 33, 106, 440, 348, - /* 1300 */ 13, 443, 37, 364, 446, 447, 448, 449, 450, 451, - /* 1310 */ 77, 453, 361, 484, 37, 491, 458, 107, 460, 12, - /* 1320 */ 13, 106, 464, 465, 37, 389, 107, 377, 107, 22, - /* 1330 */ 52, 377, 107, 142, 143, 414, 414, 490, 423, 364, - /* 1340 */ 389, 490, 35, 107, 37, 198, 222, 490, 107, 107, - /* 1350 */ 107, 107, 401, 490, 403, 107, 414, 359, 361, 107, - /* 1360 */ 107, 107, 107, 107, 400, 174, 175, 107, 474, 107, - /* 1370 */ 107, 64, 181, 182, 414, 414, 495, 466, 477, 269, - /* 1380 */ 425, 51, 442, 42, 77, 441, 268, 196, 20, 198, - /* 1390 */ 434, 440, 211, 369, 443, 369, 439, 446, 447, 448, - /* 1400 */ 449, 450, 451, 434, 453, 194, 289, 427, 360, 458, - /* 1410 */ 103, 460, 20, 20, 361, 464, 465, 45, 228, 228, - /* 1420 */ 229, 230, 410, 232, 233, 234, 235, 236, 237, 238, + /* 1220 */ 453, 363, 398, 0, 398, 401, 35, 401, 37, 382, + /* 1230 */ 47, 48, 385, 471, 264, 265, 0, 33, 33, 109, + /* 1240 */ 109, 109, 112, 112, 112, 22, 64, 389, 107, 45, + /* 1250 */ 45, 109, 0, 0, 112, 64, 212, 33, 214, 401, + /* 1260 */ 70, 403, 33, 33, 33, 265, 414, 33, 77, 142, + /* 1270 */ 143, 33, 0, 33, 22, 22, 33, 33, 42, 107, + /* 1280 */ 1, 2, 33, 33, 33, 37, 49, 502, 33, 33, + /* 1290 */ 108, 106, 491, 13, 103, 33, 33, 106, 440, 348, + /* 1300 */ 115, 443, 33, 13, 446, 447, 448, 449, 450, 451, + /* 1310 */ 364, 453, 361, 37, 484, 37, 458, 37, 460, 12, + /* 1320 */ 13, 389, 464, 465, 52, 377, 377, 37, 414, 22, + /* 1330 */ 414, 107, 490, 142, 143, 490, 107, 107, 107, 364, + /* 1340 */ 389, 107, 35, 106, 37, 107, 222, 107, 423, 490, + /* 1350 */ 107, 107, 401, 490, 403, 77, 107, 107, 107, 361, + /* 1360 */ 359, 268, 107, 107, 414, 174, 175, 289, 400, 107, + /* 1370 */ 107, 64, 181, 182, 414, 414, 107, 474, 495, 466, + /* 1380 */ 269, 477, 379, 425, 77, 51, 442, 196, 42, 198, + /* 1390 */ 20, 440, 211, 441, 443, 439, 434, 446, 447, 448, + /* 1400 */ 449, 450, 451, 369, 453, 434, 369, 194, 291, 458, + /* 1410 */ 103, 460, 427, 20, 360, 464, 465, 20, 228, 228, + /* 1420 */ 229, 230, 361, 232, 233, 234, 235, 236, 237, 238, /* 1430 */ 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, - /* 1440 */ 249, 361, 18, 410, 173, 407, 360, 23, 361, 360, - /* 1450 */ 410, 407, 407, 104, 373, 102, 372, 360, 101, 371, - /* 1460 */ 360, 360, 360, 198, 40, 41, 20, 353, 44, 50, - /* 1470 */ 434, 20, 357, 357, 353, 369, 403, 369, 54, 20, - /* 1480 */ 20, 362, 426, 20, 348, 362, 417, 353, 389, 65, - /* 1490 */ 66, 67, 68, 389, 369, 369, 389, 361, 360, 369, - /* 1500 */ 369, 369, 351, 196, 291, 198, 360, 351, 353, 215, - /* 1510 */ 401, 389, 401, 401, 438, 106, 367, 434, 436, 202, - /* 1520 */ 201, 367, 200, 433, 389, 389, 389, 432, 389, 389, - /* 1530 */ 106, 389, 389, 389, 431, 228, 229, 401, 360, 403, - /* 1540 */ 276, 483, 275, 483, 485, 284, 187, 486, 403, 242, - /* 1550 */ 243, 244, 245, 246, 247, 248, 286, 483, 401, 482, - /* 1560 */ 285, 270, 293, 290, 497, 503, 481, 288, 144, 419, - /* 1570 */ 265, 419, 480, 425, 496, 361, 440, 20, 425, 443, - /* 1580 */ 116, 267, 446, 447, 448, 449, 450, 451, 362, 453, - /* 1590 */ 367, 367, 419, 401, 458, 401, 460, 401, 401, 419, - /* 1600 */ 464, 465, 401, 445, 179, 367, 367, 385, 415, 106, - /* 1610 */ 106, 393, 188, 189, 190, 22, 379, 193, 401, 361, - /* 1620 */ 38, 435, 350, 428, 420, 0, 463, 353, 360, 420, - /* 1630 */ 206, 207, 346, 367, 354, 0, 0, 45, 476, 478, - /* 1640 */ 0, 217, 383, 348, 220, 37, 37, 223, 224, 225, - /* 1650 */ 226, 227, 368, 221, 37, 37, 361, 221, 0, 383, - /* 1660 */ 37, 37, 221, 37, 383, 0, 221, 0, 37, 348, - /* 1670 */ 0, 22, 0, 216, 37, 0, 204, 0, 204, 198, - /* 1680 */ 205, 0, 361, 196, 389, 0, 0, 192, 191, 0, - /* 1690 */ 266, 0, 147, 0, 49, 49, 401, 37, 403, 51, - /* 1700 */ 0, 49, 0, 0, 45, 0, 0, 0, 0, 0, - /* 1710 */ 389, 49, 0, 0, 0, 161, 37, 0, 0, 161, + /* 1440 */ 249, 45, 18, 410, 361, 410, 198, 23, 173, 407, + /* 1450 */ 360, 410, 361, 407, 360, 407, 104, 373, 102, 372, + /* 1460 */ 360, 101, 360, 371, 40, 41, 360, 360, 44, 20, + /* 1470 */ 50, 353, 357, 353, 198, 20, 357, 434, 54, 369, + /* 1480 */ 403, 369, 20, 362, 348, 20, 426, 20, 362, 65, + /* 1490 */ 66, 67, 68, 417, 369, 438, 353, 361, 369, 360, + /* 1500 */ 353, 351, 401, 196, 369, 198, 369, 369, 360, 351, + /* 1510 */ 401, 389, 389, 215, 106, 401, 436, 389, 202, 434, + /* 1520 */ 201, 367, 433, 389, 367, 389, 200, 432, 431, 389, + /* 1530 */ 106, 360, 483, 389, 389, 228, 229, 401, 389, 403, + /* 1540 */ 389, 389, 389, 276, 284, 275, 483, 483, 486, 242, + /* 1550 */ 243, 244, 245, 246, 247, 248, 187, 401, 403, 485, + /* 1560 */ 286, 482, 285, 481, 270, 497, 480, 496, 144, 503, + /* 1570 */ 265, 425, 290, 288, 293, 361, 440, 20, 419, 443, + /* 1580 */ 419, 478, 446, 447, 448, 449, 450, 451, 425, 453, + /* 1590 */ 116, 267, 476, 367, 458, 362, 460, 419, 401, 367, + /* 1600 */ 464, 465, 401, 401, 401, 419, 179, 445, 401, 415, + /* 1610 */ 385, 106, 188, 189, 190, 106, 401, 193, 22, 361, + /* 1620 */ 393, 367, 38, 350, 367, 360, 367, 463, 428, 420, + /* 1630 */ 206, 207, 420, 435, 368, 346, 0, 354, 0, 353, + /* 1640 */ 0, 217, 45, 348, 220, 0, 37, 223, 224, 225, + /* 1650 */ 226, 227, 221, 37, 383, 37, 361, 37, 221, 0, + /* 1660 */ 37, 37, 221, 37, 0, 221, 0, 383, 37, 348, + /* 1670 */ 383, 0, 22, 0, 37, 216, 0, 204, 0, 204, + /* 1680 */ 198, 205, 361, 196, 389, 0, 0, 0, 192, 191, + /* 1690 */ 266, 0, 0, 147, 0, 49, 401, 49, 403, 37, + /* 1700 */ 51, 0, 49, 0, 0, 45, 0, 0, 0, 0, + /* 1710 */ 389, 37, 49, 0, 0, 0, 0, 161, 0, 161, /* 1720 */ 0, 0, 401, 0, 403, 0, 0, 0, 0, 0, /* 1730 */ 0, 0, 0, 0, 0, 440, 348, 49, 443, 0, /* 1740 */ 0, 446, 447, 448, 449, 450, 451, 0, 453, 361, - /* 1750 */ 0, 0, 0, 458, 0, 460, 0, 0, 22, 464, - /* 1760 */ 465, 440, 0, 147, 443, 348, 0, 446, 447, 448, - /* 1770 */ 449, 450, 451, 146, 453, 0, 0, 389, 361, 145, - /* 1780 */ 45, 460, 0, 22, 0, 464, 465, 22, 50, 401, - /* 1790 */ 37, 403, 50, 0, 0, 0, 0, 37, 0, 51, - /* 1800 */ 42, 37, 0, 0, 0, 64, 389, 64, 64, 42, - /* 1810 */ 51, 37, 42, 45, 51, 37, 33, 0, 401, 42, - /* 1820 */ 403, 49, 49, 14, 43, 0, 0, 42, 440, 49, - /* 1830 */ 0, 443, 42, 348, 446, 447, 448, 449, 450, 451, - /* 1840 */ 187, 453, 0, 0, 0, 0, 361, 0, 460, 49, - /* 1850 */ 71, 37, 464, 465, 42, 1, 51, 440, 0, 37, - /* 1860 */ 443, 51, 42, 446, 447, 448, 449, 450, 451, 0, - /* 1870 */ 453, 42, 37, 19, 389, 51, 0, 460, 37, 51, - /* 1880 */ 42, 464, 465, 0, 0, 0, 401, 0, 403, 35, - /* 1890 */ 0, 0, 37, 22, 0, 33, 37, 37, 348, 112, - /* 1900 */ 114, 37, 37, 37, 37, 51, 33, 37, 22, 37, - /* 1910 */ 0, 361, 37, 59, 60, 61, 62, 348, 64, 37, - /* 1920 */ 22, 0, 22, 0, 22, 440, 37, 53, 443, 37, - /* 1930 */ 361, 446, 447, 448, 449, 450, 451, 0, 453, 389, - /* 1940 */ 37, 0, 37, 0, 22, 20, 37, 107, 37, 37, - /* 1950 */ 0, 401, 0, 403, 0, 106, 106, 37, 389, 105, - /* 1960 */ 22, 0, 108, 0, 176, 176, 22, 0, 199, 3, - /* 1970 */ 401, 3, 403, 488, 489, 176, 179, 50, 33, 50, - /* 1980 */ 33, 271, 176, 106, 183, 107, 106, 271, 107, 33, - /* 1990 */ 440, 183, 348, 443, 140, 203, 446, 447, 448, 449, - /* 2000 */ 450, 451, 107, 453, 107, 361, 33, 106, 104, 440, - /* 2010 */ 102, 49, 443, 106, 49, 446, 447, 448, 449, 450, - /* 2020 */ 451, 106, 453, 106, 33, 33, 107, 37, 49, 460, - /* 2030 */ 37, 107, 178, 389, 465, 37, 37, 37, 37, 185, - /* 2040 */ 107, 107, 271, 33, 49, 401, 42, 403, 0, 0, - /* 2050 */ 500, 501, 106, 0, 106, 264, 107, 106, 204, 348, - /* 2060 */ 107, 106, 42, 106, 106, 49, 33, 251, 180, 2, - /* 2070 */ 106, 178, 361, 104, 115, 104, 22, 107, 106, 228, - /* 2080 */ 49, 107, 106, 106, 440, 348, 106, 443, 107, 49, - /* 2090 */ 446, 447, 448, 449, 450, 451, 107, 453, 361, 22, - /* 2100 */ 389, 116, 106, 37, 107, 394, 37, 37, 106, 106, - /* 2110 */ 231, 37, 401, 107, 403, 107, 107, 106, 37, 106, - /* 2120 */ 37, 107, 107, 106, 37, 106, 389, 106, 33, 106, - /* 2130 */ 37, 394, 127, 489, 127, 106, 22, 37, 401, 127, - /* 2140 */ 403, 37, 71, 37, 37, 127, 70, 37, 37, 37, - /* 2150 */ 37, 440, 37, 33, 443, 348, 77, 446, 447, 448, - /* 2160 */ 449, 450, 451, 100, 453, 37, 37, 37, 361, 22, - /* 2170 */ 37, 37, 37, 77, 37, 37, 22, 440, 37, 37, + /* 1750 */ 0, 0, 0, 458, 0, 460, 0, 45, 0, 464, + /* 1760 */ 465, 440, 0, 22, 443, 348, 0, 446, 447, 448, + /* 1770 */ 449, 450, 451, 0, 453, 147, 146, 389, 361, 0, + /* 1780 */ 145, 460, 0, 0, 0, 464, 465, 22, 50, 401, + /* 1790 */ 22, 403, 50, 0, 37, 0, 0, 0, 37, 64, + /* 1800 */ 64, 42, 0, 0, 51, 42, 389, 64, 37, 37, + /* 1810 */ 0, 51, 42, 37, 0, 51, 49, 42, 401, 45, + /* 1820 */ 403, 33, 14, 0, 43, 0, 49, 49, 440, 42, + /* 1830 */ 0, 443, 0, 348, 446, 447, 448, 449, 450, 451, + /* 1840 */ 42, 453, 187, 0, 0, 0, 361, 0, 460, 49, + /* 1850 */ 0, 71, 464, 465, 37, 1, 51, 440, 42, 0, + /* 1860 */ 443, 37, 51, 446, 447, 448, 449, 450, 451, 42, + /* 1870 */ 453, 0, 37, 19, 389, 42, 0, 460, 37, 51, + /* 1880 */ 51, 464, 465, 0, 42, 0, 401, 0, 403, 35, + /* 1890 */ 0, 0, 0, 37, 22, 0, 22, 37, 348, 114, + /* 1900 */ 37, 112, 37, 37, 37, 51, 37, 37, 33, 0, + /* 1910 */ 37, 361, 33, 59, 60, 61, 62, 348, 64, 37, + /* 1920 */ 22, 37, 0, 37, 22, 440, 0, 22, 443, 0, + /* 1930 */ 361, 446, 447, 448, 449, 450, 451, 37, 453, 389, + /* 1940 */ 37, 53, 0, 0, 0, 37, 0, 22, 20, 37, + /* 1950 */ 37, 401, 37, 403, 0, 107, 37, 106, 389, 105, + /* 1960 */ 22, 106, 108, 0, 0, 0, 176, 22, 199, 3, + /* 1970 */ 401, 179, 403, 488, 489, 176, 271, 176, 3, 49, + /* 1980 */ 33, 50, 176, 106, 50, 107, 106, 183, 107, 203, + /* 1990 */ 440, 102, 348, 443, 140, 183, 446, 447, 448, 449, + /* 2000 */ 450, 451, 33, 453, 33, 361, 107, 106, 104, 440, + /* 2010 */ 33, 49, 443, 106, 33, 446, 447, 448, 449, 450, + /* 2020 */ 451, 107, 453, 106, 33, 37, 106, 37, 107, 460, + /* 2030 */ 107, 37, 178, 389, 465, 37, 37, 37, 49, 185, + /* 2040 */ 107, 33, 107, 0, 49, 401, 42, 403, 0, 0, + /* 2050 */ 500, 501, 42, 33, 106, 106, 115, 107, 204, 348, + /* 2060 */ 107, 106, 271, 106, 106, 271, 106, 49, 2, 251, + /* 2070 */ 49, 178, 361, 264, 180, 22, 104, 104, 49, 22, + /* 2080 */ 228, 107, 106, 116, 440, 348, 106, 443, 231, 107, + /* 2090 */ 446, 447, 448, 449, 450, 451, 37, 453, 361, 106, + /* 2100 */ 389, 37, 37, 107, 107, 394, 37, 106, 106, 106, + /* 2110 */ 127, 106, 401, 107, 403, 37, 107, 106, 37, 107, + /* 2120 */ 106, 37, 107, 106, 33, 106, 389, 37, 22, 107, + /* 2130 */ 107, 394, 106, 489, 127, 37, 106, 106, 401, 106, + /* 2140 */ 403, 71, 70, 127, 37, 37, 37, 37, 37, 37, + /* 2150 */ 37, 440, 127, 37, 443, 348, 77, 446, 447, 448, + /* 2160 */ 449, 450, 451, 100, 453, 77, 33, 100, 361, 37, + /* 2170 */ 22, 37, 37, 37, 37, 37, 77, 440, 37, 37, /* 2180 */ 443, 37, 348, 446, 447, 448, 449, 450, 451, 37, - /* 2190 */ 453, 0, 37, 42, 51, 361, 389, 0, 37, 51, - /* 2200 */ 42, 0, 37, 0, 51, 42, 37, 0, 401, 42, - /* 2210 */ 403, 51, 37, 37, 0, 22, 33, 22, 22, 21, - /* 2220 */ 20, 22, 504, 389, 504, 21, 504, 504, 504, 504, + /* 2190 */ 453, 37, 22, 0, 37, 361, 389, 37, 51, 0, + /* 2200 */ 42, 37, 51, 42, 0, 37, 51, 42, 401, 0, + /* 2210 */ 403, 37, 0, 51, 42, 37, 37, 0, 22, 33, + /* 2220 */ 22, 21, 21, 389, 22, 22, 20, 504, 504, 504, /* 2230 */ 504, 504, 504, 504, 504, 401, 504, 403, 504, 504, /* 2240 */ 504, 504, 504, 504, 504, 504, 504, 440, 504, 504, /* 2250 */ 443, 504, 504, 446, 447, 448, 449, 450, 451, 504, @@ -1334,9 +990,9 @@ static const YYCODETYPE yy_lookahead[] = { /* 3970 */ 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, /* 3980 */ 345, 345, 345, 345, 345, }; -#define YY_SHIFT_COUNT (819) +#define YY_SHIFT_COUNT (821) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (2214) +#define YY_SHIFT_MAX (2217) static const unsigned short int yy_shift_ofst[] = { /* 0 */ 1424, 0, 238, 0, 477, 477, 477, 477, 477, 477, /* 10 */ 477, 477, 477, 477, 477, 477, 715, 953, 953, 1191, @@ -1345,81 +1001,82 @@ static const unsigned short int yy_shift_ofst[] = { /* 40 */ 953, 953, 953, 953, 953, 953, 953, 953, 953, 953, /* 50 */ 953, 82, 93, 104, 85, 103, 226, 103, 85, 85, /* 60 */ 103, 1307, 103, 237, 1307, 1307, 86, 103, 38, 474, - /* 70 */ 153, 153, 474, 287, 287, 407, 431, 254, 254, 177, - /* 80 */ 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, - /* 90 */ 269, 153, 153, 363, 38, 153, 153, 38, 153, 153, - /* 100 */ 38, 153, 153, 38, 153, 38, 38, 38, 153, 395, + /* 70 */ 135, 135, 474, 287, 287, 407, 431, 254, 254, 177, + /* 80 */ 135, 135, 135, 135, 135, 135, 135, 135, 135, 135, + /* 90 */ 153, 135, 135, 220, 38, 135, 135, 38, 135, 135, + /* 100 */ 38, 135, 135, 38, 135, 38, 38, 38, 135, 363, /* 110 */ 199, 199, 213, 54, 712, 712, 712, 712, 712, 712, /* 120 */ 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, /* 130 */ 712, 712, 712, 398, 164, 407, 431, 1113, 1113, 182, - /* 140 */ 40, 40, 40, 565, 538, 538, 182, 363, 39, 38, - /* 150 */ 38, 50, 38, 486, 38, 486, 486, 520, 594, 73, + /* 140 */ 40, 40, 40, 565, 538, 538, 491, 182, 220, 184, + /* 150 */ 38, 38, 214, 38, 486, 38, 486, 486, 520, 73, /* 160 */ 467, 467, 467, 467, 467, 467, 467, 467, 1854, 674, /* 170 */ 23, 80, 313, 329, 476, 157, 211, 397, 334, 334, /* 180 */ 514, 834, 945, 945, 945, 836, 945, 978, 480, 383, - /* 190 */ 1182, 396, 893, 383, 383, 862, 970, 1000, 931, 970, - /* 200 */ 523, 1118, 1110, 1330, 1341, 1368, 1181, 363, 1368, 363, - /* 210 */ 1211, 1392, 1393, 1372, 1393, 1372, 1271, 1392, 1393, 1392, - /* 220 */ 1372, 1271, 1271, 1349, 1353, 1392, 1357, 1392, 1392, 1392, - /* 230 */ 1446, 1419, 1446, 1419, 1368, 363, 1451, 363, 1459, 1460, - /* 240 */ 363, 1459, 363, 1463, 363, 363, 1392, 363, 1446, 38, + /* 190 */ 1183, 396, 893, 383, 383, 862, 970, 1000, 931, 970, + /* 200 */ 1204, 1093, 491, 1111, 1334, 1346, 1370, 1181, 220, 1370, + /* 210 */ 220, 1213, 1393, 1397, 1396, 1397, 1396, 1275, 1393, 1397, + /* 220 */ 1393, 1396, 1275, 1275, 1352, 1356, 1393, 1360, 1393, 1393, + /* 230 */ 1393, 1449, 1420, 1449, 1420, 1370, 220, 1455, 220, 1462, + /* 240 */ 1465, 220, 1462, 220, 1467, 220, 220, 1393, 220, 1449, /* 250 */ 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, - /* 260 */ 1392, 73, 73, 1446, 486, 486, 486, 1294, 1409, 1368, - /* 270 */ 395, 1317, 1319, 1451, 395, 1322, 1110, 1392, 486, 1264, - /* 280 */ 1267, 1264, 1267, 1261, 1359, 1264, 1270, 1275, 1291, 1110, - /* 290 */ 1269, 1273, 1279, 1305, 1393, 1557, 1464, 1314, 1459, 395, - /* 300 */ 395, 1267, 486, 486, 486, 486, 1267, 486, 1425, 395, - /* 310 */ 520, 395, 1393, 1503, 1504, 486, 594, 1392, 395, 1593, - /* 320 */ 1582, 1446, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, + /* 260 */ 38, 1393, 73, 73, 1449, 486, 486, 486, 1298, 1408, + /* 270 */ 1370, 363, 1316, 1319, 1455, 363, 1326, 1111, 1393, 486, + /* 280 */ 1267, 1270, 1267, 1270, 1260, 1369, 1267, 1274, 1277, 1294, + /* 290 */ 1111, 1281, 1282, 1285, 1305, 1397, 1557, 1474, 1324, 1462, + /* 300 */ 363, 363, 1270, 486, 486, 486, 486, 1270, 486, 1427, + /* 310 */ 363, 520, 363, 1397, 1505, 1509, 486, 1393, 363, 1596, + /* 320 */ 1584, 1449, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, /* 330 */ 3640, 36, 634, 252, 342, 967, 53, 629, 307, 513, /* 340 */ 652, 879, 898, 795, 795, 795, 795, 795, 795, 795, /* 350 */ 795, 795, 764, 567, 166, 304, 304, 638, 822, 937, /* 360 */ 206, 483, 654, 812, 87, 867, 867, 1160, 1141, 351, - /* 370 */ 1160, 1160, 1160, 1205, 1124, 30, 1231, 1199, 208, 768, - /* 380 */ 1127, 1128, 1129, 1133, 503, 644, 1249, 1250, 1257, 1039, - /* 390 */ 839, 1210, 1159, 1219, 1221, 1225, 1120, 1117, 1213, 1236, - /* 400 */ 1241, 1242, 1243, 1244, 1248, 1282, 1252, 1190, 1253, 1215, - /* 410 */ 1254, 1255, 1256, 1260, 1262, 1263, 1176, 1147, 1265, 1277, - /* 420 */ 1287, 1233, 1278, 1625, 1635, 1636, 1592, 1640, 1608, 1432, - /* 430 */ 1609, 1617, 1618, 1436, 1658, 1623, 1624, 1441, 1626, 1665, - /* 440 */ 1445, 1667, 1631, 1670, 1649, 1672, 1637, 1457, 1675, 1472, - /* 450 */ 1677, 1474, 1475, 1481, 1487, 1681, 1685, 1686, 1495, 1497, - /* 460 */ 1689, 1691, 1545, 1645, 1646, 1693, 1660, 1648, 1700, 1652, - /* 470 */ 1702, 1659, 1703, 1705, 1706, 1662, 1707, 1708, 1709, 1712, - /* 480 */ 1713, 1714, 1554, 1679, 1717, 1558, 1718, 1720, 1721, 1723, - /* 490 */ 1725, 1726, 1727, 1728, 1729, 1730, 1731, 1732, 1733, 1734, - /* 500 */ 1739, 1740, 1688, 1747, 1735, 1750, 1751, 1752, 1754, 1756, - /* 510 */ 1757, 1736, 1762, 1616, 1766, 1627, 1775, 1634, 1776, 1782, - /* 520 */ 1761, 1738, 1765, 1742, 1784, 1741, 1753, 1793, 1743, 1794, - /* 530 */ 1744, 1795, 1796, 1760, 1748, 1758, 1798, 1764, 1759, 1767, - /* 540 */ 1802, 1774, 1763, 1770, 1803, 1778, 1804, 1768, 1777, 1783, - /* 550 */ 1772, 1773, 1809, 1780, 1817, 1781, 1785, 1825, 1826, 1830, - /* 560 */ 1790, 1653, 1842, 1772, 1800, 1843, 1844, 1779, 1845, 1847, - /* 570 */ 1814, 1805, 1812, 1858, 1822, 1810, 1820, 1869, 1835, 1824, - /* 580 */ 1829, 1876, 1841, 1828, 1838, 1883, 1884, 1885, 1887, 1890, - /* 590 */ 1891, 1786, 1787, 1855, 1871, 1894, 1859, 1860, 1864, 1865, - /* 600 */ 1866, 1867, 1870, 1872, 1862, 1873, 1875, 1882, 1886, 1889, - /* 610 */ 1910, 1898, 1921, 1900, 1874, 1923, 1902, 1892, 1937, 1952, - /* 620 */ 1954, 1903, 1941, 1905, 1943, 1922, 1925, 1909, 1911, 1912, - /* 630 */ 1840, 1849, 1950, 1788, 1850, 1792, 1920, 1938, 1961, 1769, - /* 640 */ 1944, 1789, 1797, 1963, 1967, 1799, 1801, 1806, 1808, 1966, - /* 650 */ 1945, 1710, 1877, 1878, 1880, 1927, 1904, 1929, 1908, 1881, - /* 660 */ 1947, 1956, 1895, 1901, 1907, 1915, 1897, 1973, 1962, 1965, - /* 670 */ 1917, 1991, 1716, 1919, 1924, 1968, 1992, 1771, 1990, 1993, - /* 680 */ 1998, 1999, 2000, 2001, 1933, 1934, 1979, 1791, 2010, 1995, - /* 690 */ 2048, 2049, 1946, 2004, 1948, 1949, 1953, 1951, 1955, 1888, - /* 700 */ 1957, 2053, 2020, 1893, 1958, 1959, 1772, 2016, 2033, 1969, - /* 710 */ 1816, 1971, 2067, 2054, 1851, 1964, 1970, 1972, 1974, 1976, - /* 720 */ 1981, 2031, 1977, 1980, 2040, 1989, 2077, 1879, 1996, 1985, - /* 730 */ 1997, 2066, 2069, 2002, 2006, 2070, 2003, 2008, 2074, 2011, - /* 740 */ 2009, 2081, 2013, 2014, 2083, 2017, 2015, 2087, 2019, 2005, - /* 750 */ 2007, 2012, 2018, 2021, 2095, 2023, 2093, 2029, 2095, 2095, - /* 760 */ 2114, 2071, 2076, 2100, 2104, 2106, 2107, 2110, 2111, 2112, - /* 770 */ 2113, 2115, 2079, 2063, 2120, 2128, 2129, 2130, 2147, 2133, - /* 780 */ 2134, 2135, 2096, 1862, 2137, 1873, 2138, 2141, 2142, 2144, - /* 790 */ 2154, 2152, 2191, 2155, 2143, 2151, 2197, 2161, 2148, 2158, - /* 800 */ 2201, 2165, 2153, 2163, 2203, 2169, 2160, 2167, 2207, 2175, - /* 810 */ 2176, 2214, 2193, 2183, 2195, 2198, 2196, 2199, 2204, 2200, + /* 370 */ 1160, 1160, 1160, 1133, 1124, 30, 1236, 1205, 208, 768, + /* 380 */ 1130, 1131, 1132, 1142, 503, 644, 1223, 1252, 1253, 1044, + /* 390 */ 839, 1172, 1182, 1224, 1229, 1230, 1127, 1078, 1117, 1231, + /* 400 */ 1234, 1238, 1240, 1243, 1244, 1279, 1249, 1190, 1250, 1237, + /* 410 */ 1251, 1255, 1256, 1262, 1263, 1269, 1185, 1248, 1276, 1280, + /* 420 */ 1290, 1278, 1272, 1636, 1638, 1640, 1597, 1645, 1609, 1431, + /* 430 */ 1616, 1618, 1620, 1437, 1659, 1623, 1624, 1441, 1626, 1664, + /* 440 */ 1444, 1666, 1631, 1671, 1650, 1673, 1637, 1459, 1676, 1473, + /* 450 */ 1678, 1475, 1476, 1482, 1487, 1685, 1686, 1687, 1496, 1498, + /* 460 */ 1691, 1692, 1546, 1646, 1648, 1694, 1662, 1649, 1701, 1653, + /* 470 */ 1703, 1660, 1704, 1706, 1707, 1663, 1708, 1709, 1713, 1714, + /* 480 */ 1715, 1716, 1556, 1674, 1718, 1558, 1720, 1721, 1723, 1725, + /* 490 */ 1726, 1727, 1728, 1729, 1730, 1731, 1732, 1733, 1734, 1739, + /* 500 */ 1740, 1747, 1688, 1750, 1712, 1751, 1752, 1754, 1756, 1758, + /* 510 */ 1762, 1741, 1766, 1628, 1773, 1630, 1779, 1635, 1782, 1783, + /* 520 */ 1765, 1738, 1768, 1742, 1784, 1735, 1757, 1793, 1736, 1795, + /* 530 */ 1743, 1796, 1797, 1761, 1753, 1759, 1802, 1771, 1760, 1763, + /* 540 */ 1803, 1772, 1764, 1770, 1810, 1776, 1814, 1774, 1775, 1788, + /* 550 */ 1767, 1777, 1808, 1778, 1823, 1781, 1787, 1825, 1830, 1832, + /* 560 */ 1798, 1655, 1843, 1767, 1800, 1844, 1845, 1780, 1847, 1850, + /* 570 */ 1817, 1805, 1816, 1859, 1824, 1811, 1827, 1871, 1835, 1828, + /* 580 */ 1833, 1876, 1841, 1829, 1842, 1883, 1885, 1887, 1890, 1891, + /* 590 */ 1892, 1785, 1789, 1856, 1872, 1895, 1860, 1863, 1865, 1866, + /* 600 */ 1867, 1869, 1870, 1873, 1875, 1879, 1882, 1884, 1874, 1886, + /* 610 */ 1909, 1898, 1922, 1902, 1888, 1926, 1905, 1900, 1929, 1942, + /* 620 */ 1943, 1903, 1944, 1908, 1946, 1925, 1928, 1912, 1913, 1915, + /* 630 */ 1848, 1851, 1954, 1790, 1855, 1786, 1919, 1938, 1963, 1769, + /* 640 */ 1945, 1799, 1792, 1964, 1965, 1801, 1804, 1806, 1812, 1966, + /* 650 */ 1947, 1705, 1877, 1878, 1880, 1931, 1904, 1934, 1889, 1881, + /* 660 */ 1969, 1971, 1899, 1901, 1907, 1917, 1914, 1977, 1930, 1962, + /* 670 */ 1920, 1981, 1791, 1921, 1923, 1975, 1991, 1794, 1988, 1990, + /* 680 */ 1994, 1998, 1999, 2000, 1933, 1935, 1989, 1809, 2008, 1995, + /* 690 */ 2043, 2048, 1948, 2004, 1949, 1950, 1953, 1955, 1957, 1894, + /* 700 */ 1958, 2049, 2010, 1893, 1960, 1941, 1767, 2018, 2020, 1972, + /* 710 */ 1818, 1973, 2066, 2053, 1852, 1976, 1974, 1980, 1982, 1993, + /* 720 */ 1996, 2021, 2001, 2002, 2029, 1997, 2057, 1857, 2003, 1967, + /* 730 */ 2006, 2059, 2064, 2005, 2009, 2065, 2011, 2012, 2069, 2014, + /* 740 */ 2015, 2078, 2017, 2022, 2081, 2019, 2023, 2084, 2026, 1983, + /* 750 */ 2007, 2016, 2025, 2030, 2091, 2031, 2090, 2033, 2091, 2091, + /* 760 */ 2106, 2070, 2072, 2098, 2107, 2108, 2109, 2110, 2111, 2112, + /* 770 */ 2113, 2116, 2079, 2063, 2088, 2067, 2133, 2132, 2134, 2135, + /* 780 */ 2148, 2136, 2137, 2138, 2099, 1875, 2141, 1879, 2142, 2144, + /* 790 */ 2152, 2154, 2170, 2157, 2193, 2160, 2147, 2158, 2199, 2164, + /* 800 */ 2151, 2161, 2204, 2168, 2155, 2165, 2209, 2174, 2162, 2172, + /* 810 */ 2212, 2178, 2179, 2217, 2196, 2186, 2198, 2200, 2202, 2203, + /* 820 */ 2201, 2206, }; #define YY_REDUCE_COUNT (330) #define YY_REDUCE_MIN (-469) @@ -1439,110 +1096,111 @@ static const short yy_reduce_ofst[] = { /* 110 */ -422, -422, -200, -273, -251, 117, 158, 229, 231, 246, /* 120 */ 340, 355, 390, 392, 436, 449, 479, 537, 643, 714, /* 130 */ 735, 745, 771, 107, 438, -230, 612, 814, 849, 725, - /* 140 */ 438, 694, 762, 366, 457, 631, 780, 135, -55, -389, - /* 150 */ 274, 116, 708, 710, 591, 732, 811, 840, 848, 865, - /* 160 */ -386, -381, 239, 416, 427, 516, 522, 427, 415, 888, - /* 170 */ 625, 866, 790, 824, 939, 829, 936, 936, 950, 954, - /* 180 */ 921, 922, 847, 851, 857, 915, 863, 936, 975, 942, - /* 190 */ 998, 997, 964, 960, 961, 936, 894, 894, 881, 894, - /* 200 */ 911, 901, 955, 940, 944, 956, 957, 1024, 969, 1026, - /* 210 */ 980, 1048, 1053, 1012, 1080, 1033, 1038, 1086, 1087, 1089, - /* 220 */ 1040, 1044, 1045, 1081, 1084, 1097, 1088, 1100, 1101, 1102, - /* 230 */ 1114, 1115, 1121, 1116, 1036, 1106, 1073, 1108, 1119, 1056, - /* 240 */ 1125, 1123, 1126, 1069, 1130, 1131, 1138, 1132, 1134, 1099, - /* 250 */ 1104, 1107, 1122, 1135, 1137, 1139, 1140, 1142, 1143, 1144, - /* 260 */ 1146, 1151, 1156, 1155, 1109, 1111, 1112, 1076, 1082, 1083, - /* 270 */ 1149, 1090, 1095, 1145, 1154, 1103, 1148, 1178, 1157, 1058, - /* 280 */ 1150, 1060, 1152, 1061, 1059, 1074, 1077, 1085, 1092, 1153, - /* 290 */ 1062, 1067, 1078, 894, 1214, 1158, 1161, 1162, 1226, 1223, - /* 300 */ 1224, 1173, 1192, 1194, 1196, 1197, 1180, 1201, 1193, 1238, - /* 310 */ 1222, 1239, 1258, 1163, 1218, 1217, 1237, 1268, 1266, 1272, - /* 320 */ 1280, 1274, 1195, 1186, 1204, 1209, 1259, 1276, 1281, 1284, - /* 330 */ 1286, + /* 140 */ 438, 694, 762, 366, 457, 631, 196, 780, 161, -55, + /* 150 */ -389, 274, 649, 733, 811, 591, 824, 826, 847, 865, + /* 160 */ -386, -381, 239, 281, 416, 427, 516, 416, 415, 534, + /* 170 */ 625, 852, 785, 801, 946, 830, 932, 932, 948, 949, + /* 180 */ 914, 916, 842, 845, 859, 925, 863, 932, 975, 950, + /* 190 */ 1001, 998, 968, 960, 961, 932, 903, 903, 883, 903, + /* 200 */ 913, 904, 1003, 958, 944, 952, 962, 956, 1034, 971, + /* 210 */ 1037, 985, 1054, 1061, 1033, 1083, 1035, 1042, 1090, 1091, + /* 220 */ 1094, 1041, 1046, 1048, 1084, 1087, 1100, 1092, 1102, 1106, + /* 230 */ 1107, 1118, 1115, 1120, 1119, 1043, 1110, 1077, 1112, 1121, + /* 240 */ 1060, 1125, 1126, 1129, 1076, 1135, 1137, 1139, 1138, 1143, + /* 250 */ 1122, 1123, 1128, 1134, 1140, 1144, 1145, 1149, 1151, 1152, + /* 260 */ 1153, 1148, 1150, 1158, 1147, 1101, 1109, 1114, 1057, 1080, + /* 270 */ 1085, 1154, 1089, 1095, 1155, 1157, 1097, 1146, 1171, 1156, + /* 280 */ 1049, 1159, 1063, 1161, 1062, 1074, 1064, 1079, 1082, 1086, + /* 290 */ 1163, 1066, 1068, 1071, 903, 1214, 1162, 1103, 1116, 1233, + /* 300 */ 1226, 1232, 1178, 1197, 1201, 1202, 1203, 1186, 1207, 1194, + /* 310 */ 1254, 1225, 1257, 1258, 1164, 1227, 1215, 1265, 1259, 1273, + /* 320 */ 1283, 1286, 1200, 1198, 1209, 1212, 1271, 1284, 1287, 1266, + /* 330 */ 1289, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 10 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 20 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 30 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 40 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 50 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 60 */ 2176, 1847, 1847, 2139, 1847, 1847, 1847, 1847, 1847, 1847, - /* 70 */ 1847, 1847, 1847, 1847, 1847, 2146, 1847, 1847, 1847, 1847, - /* 80 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 90 */ 1847, 1847, 1847, 1943, 1847, 1847, 1847, 1847, 1847, 1847, - /* 100 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1941, - /* 110 */ 2373, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 120 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 130 */ 1847, 1847, 1847, 1847, 2385, 1847, 1847, 1917, 1917, 1847, - /* 140 */ 2385, 2385, 2385, 1941, 2345, 2345, 1847, 1943, 2210, 1847, - /* 150 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 2065, 1847, 1877, - /* 160 */ 1847, 1847, 1847, 1847, 2089, 1847, 1847, 1847, 2202, 1847, - /* 170 */ 1847, 2414, 2474, 1847, 1847, 2417, 1847, 1847, 1847, 1847, - /* 180 */ 2151, 2404, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 190 */ 1847, 1847, 2018, 1847, 1847, 1847, 2377, 2391, 2458, 2378, - /* 200 */ 2375, 2398, 2408, 1847, 2234, 1847, 2224, 1943, 1847, 1943, - /* 210 */ 2189, 2134, 1847, 2144, 1847, 2144, 2141, 1847, 1847, 1847, - /* 220 */ 2144, 2141, 2141, 2007, 2003, 1847, 2001, 1847, 1847, 1847, - /* 230 */ 1847, 1901, 1847, 1901, 1847, 1943, 1847, 1943, 1847, 1847, - /* 240 */ 1943, 1847, 1943, 1847, 1943, 1943, 1847, 1943, 1847, 1847, - /* 250 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 260 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 2222, 2208, 1847, - /* 270 */ 1941, 2200, 2198, 1847, 1941, 2196, 2408, 1847, 1847, 2428, - /* 280 */ 2423, 2428, 2423, 2442, 2438, 2428, 2447, 2444, 2410, 2408, - /* 290 */ 2477, 2464, 2460, 2391, 1847, 1847, 2396, 2394, 1847, 1941, - /* 300 */ 1941, 2423, 1847, 1847, 1847, 1847, 2423, 1847, 1847, 1941, - /* 310 */ 1847, 1941, 1847, 1847, 2034, 1847, 1847, 1847, 1941, 1847, - /* 320 */ 1886, 1847, 2191, 2213, 2172, 2172, 2068, 2068, 2068, 1944, - /* 330 */ 1852, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 340 */ 1847, 1847, 1847, 2441, 2440, 2298, 1847, 2349, 2348, 2347, - /* 350 */ 2338, 2297, 2030, 1847, 1847, 2296, 2295, 1847, 1847, 1847, - /* 360 */ 1847, 1847, 1847, 1847, 1847, 2163, 2162, 2289, 1847, 1847, - /* 370 */ 2290, 2288, 2287, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 380 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 390 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 2461, 2465, 1847, - /* 400 */ 1847, 1847, 1847, 1847, 1847, 2374, 1847, 1847, 1847, 2270, - /* 410 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 420 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 430 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 440 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 450 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 460 */ 1847, 1847, 2140, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 470 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 480 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 490 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 500 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 510 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 2155, 1847, 1847, - /* 520 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 530 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 540 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1891, - /* 550 */ 2276, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 560 */ 1847, 1847, 1847, 2279, 1847, 1847, 1847, 1847, 1847, 1847, - /* 570 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 580 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 590 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 600 */ 1847, 1847, 1847, 1847, 1983, 1982, 1847, 1847, 1847, 1847, - /* 610 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 620 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 630 */ 2280, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 640 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 2457, - /* 650 */ 2411, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 660 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 2270, - /* 670 */ 1847, 2439, 1847, 1847, 2455, 1847, 2459, 1847, 1847, 1847, - /* 680 */ 1847, 1847, 1847, 1847, 2384, 2380, 1847, 1847, 2376, 1847, - /* 690 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 700 */ 1847, 1847, 1847, 1847, 1847, 1847, 2269, 1847, 2335, 1847, - /* 710 */ 1847, 1847, 2369, 1847, 1847, 2320, 1847, 1847, 1847, 1847, - /* 720 */ 1847, 1847, 1847, 1847, 1847, 2280, 1847, 2283, 1847, 1847, - /* 730 */ 1847, 1847, 1847, 2062, 1847, 1847, 1847, 1847, 1847, 1847, - /* 740 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 2046, - /* 750 */ 2044, 2043, 2042, 1847, 2075, 1847, 1847, 1847, 2071, 2070, - /* 760 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 770 */ 1847, 1847, 1847, 1847, 1962, 1847, 1847, 1847, 1847, 1847, - /* 780 */ 1847, 1847, 1847, 1954, 1847, 1953, 1847, 1847, 1847, 1847, - /* 790 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 800 */ 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, 1847, - /* 810 */ 1847, 1847, 1847, 1876, 1847, 1847, 1847, 1847, 1847, 1847, + /* 0 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 10 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 20 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 30 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 40 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 50 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 60 */ 2181, 1851, 1851, 2144, 1851, 1851, 1851, 1851, 1851, 1851, + /* 70 */ 1851, 1851, 1851, 1851, 1851, 2151, 1851, 1851, 1851, 1851, + /* 80 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 90 */ 1851, 1851, 1851, 1947, 1851, 1851, 1851, 1851, 1851, 1851, + /* 100 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1945, + /* 110 */ 2378, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 120 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 130 */ 1851, 1851, 1851, 1851, 2390, 1851, 1851, 1921, 1921, 1851, + /* 140 */ 2390, 2390, 2390, 1945, 2350, 2350, 1851, 1851, 1947, 2215, + /* 150 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 2070, 1881, + /* 160 */ 1851, 1851, 1851, 1851, 2094, 1851, 1851, 1851, 2207, 1851, + /* 170 */ 1851, 2419, 2479, 1851, 1851, 2422, 1851, 1851, 1851, 1851, + /* 180 */ 2156, 2409, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 190 */ 1851, 1851, 2023, 1851, 1851, 1851, 2382, 2396, 2463, 2383, + /* 200 */ 2380, 2403, 1851, 2413, 1851, 2239, 1851, 2229, 1947, 1851, + /* 210 */ 1947, 2194, 2139, 1851, 2149, 1851, 2149, 2146, 1851, 1851, + /* 220 */ 1851, 2149, 2146, 2146, 2012, 2008, 1851, 2006, 1851, 1851, + /* 230 */ 1851, 1851, 1905, 1851, 1905, 1851, 1947, 1851, 1947, 1851, + /* 240 */ 1851, 1947, 1851, 1947, 1851, 1947, 1947, 1851, 1947, 1851, + /* 250 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 260 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 2227, 2213, + /* 270 */ 1851, 1945, 2205, 2203, 1851, 1945, 2201, 2413, 1851, 1851, + /* 280 */ 2433, 2428, 2433, 2428, 2447, 2443, 2433, 2452, 2449, 2415, + /* 290 */ 2413, 2482, 2469, 2465, 2396, 1851, 1851, 2401, 2399, 1851, + /* 300 */ 1945, 1945, 2428, 1851, 1851, 1851, 1851, 2428, 1851, 1851, + /* 310 */ 1945, 1851, 1945, 1851, 1851, 2039, 1851, 1851, 1945, 1851, + /* 320 */ 1890, 1851, 2196, 2218, 2177, 2177, 2073, 2073, 2073, 1948, + /* 330 */ 1856, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 340 */ 1851, 1851, 1851, 2446, 2445, 2303, 1851, 2354, 2353, 2352, + /* 350 */ 2343, 2302, 2035, 1851, 1851, 2301, 2300, 1851, 1851, 1851, + /* 360 */ 1851, 1851, 1851, 1851, 1851, 2168, 2167, 2294, 1851, 1851, + /* 370 */ 2295, 2293, 2292, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 380 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 390 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 2466, 2470, 1851, + /* 400 */ 1851, 1851, 1851, 1851, 1851, 2379, 1851, 1851, 1851, 2275, + /* 410 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 420 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 430 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 440 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 450 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 460 */ 1851, 1851, 2145, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 470 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 480 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 490 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 500 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 510 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 2160, 1851, 1851, + /* 520 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 530 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 540 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1895, + /* 550 */ 2281, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 560 */ 1851, 1851, 1851, 2284, 1851, 1851, 1851, 1851, 1851, 1851, + /* 570 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 580 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 590 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 600 */ 1851, 1851, 1851, 1851, 1987, 1986, 1851, 1851, 1851, 1851, + /* 610 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 620 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 630 */ 2285, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 640 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 2462, + /* 650 */ 2416, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 660 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 2275, + /* 670 */ 1851, 2444, 1851, 1851, 2460, 1851, 2464, 1851, 1851, 1851, + /* 680 */ 1851, 1851, 1851, 1851, 2389, 2385, 1851, 1851, 2381, 1851, + /* 690 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 700 */ 1851, 1851, 1851, 1851, 1851, 1851, 2274, 1851, 2340, 1851, + /* 710 */ 1851, 1851, 2374, 1851, 1851, 2325, 1851, 1851, 1851, 1851, + /* 720 */ 1851, 1851, 1851, 1851, 1851, 2285, 1851, 2288, 1851, 1851, + /* 730 */ 1851, 1851, 1851, 2067, 1851, 1851, 1851, 1851, 1851, 1851, + /* 740 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 2051, + /* 750 */ 2049, 2048, 2047, 1851, 2080, 1851, 1851, 1851, 2076, 2075, + /* 760 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 770 */ 1851, 1851, 1851, 1851, 1851, 1851, 1966, 1851, 1851, 1851, + /* 780 */ 1851, 1851, 1851, 1851, 1851, 1958, 1851, 1957, 1851, 1851, + /* 790 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 800 */ 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, 1851, + /* 810 */ 1851, 1851, 1851, 1851, 1851, 1880, 1851, 1851, 1851, 1851, + /* 820 */ 1851, 1851, }; /********** End of lemon-generated parsing tables *****************************/ @@ -1960,7 +1618,6 @@ typedef struct yyParser yyParser; #ifndef NDEBUG #include -#include static FILE *yyTraceFILE = 0; static char *yyTracePrompt = 0; #endif /* NDEBUG */ @@ -2657,485 +2314,486 @@ static const char *const yyRuleName[] = { /* 148 */ "retention_list ::= retention", /* 149 */ "retention_list ::= retention_list NK_COMMA retention", /* 150 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", - /* 151 */ "speed_opt ::=", - /* 152 */ "speed_opt ::= BWLIMIT NK_INTEGER", - /* 153 */ "start_opt ::=", - /* 154 */ "start_opt ::= START WITH NK_INTEGER", - /* 155 */ "start_opt ::= START WITH NK_STRING", - /* 156 */ "start_opt ::= START WITH TIMESTAMP NK_STRING", - /* 157 */ "end_opt ::=", - /* 158 */ "end_opt ::= END WITH NK_INTEGER", - /* 159 */ "end_opt ::= END WITH NK_STRING", - /* 160 */ "end_opt ::= END WITH TIMESTAMP NK_STRING", - /* 161 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", - /* 162 */ "cmd ::= CREATE TABLE multi_create_clause", - /* 163 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", - /* 164 */ "cmd ::= DROP TABLE multi_drop_clause", - /* 165 */ "cmd ::= DROP STABLE exists_opt full_table_name", - /* 166 */ "cmd ::= ALTER TABLE alter_table_clause", - /* 167 */ "cmd ::= ALTER STABLE alter_table_clause", - /* 168 */ "alter_table_clause ::= full_table_name alter_table_options", - /* 169 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", - /* 170 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", - /* 171 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", - /* 172 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", - /* 173 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", - /* 174 */ "alter_table_clause ::= full_table_name DROP TAG column_name", - /* 175 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", - /* 176 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", - /* 177 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", - /* 178 */ "multi_create_clause ::= create_subtable_clause", - /* 179 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", - /* 180 */ "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", - /* 181 */ "multi_drop_clause ::= drop_table_clause", - /* 182 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause", - /* 183 */ "drop_table_clause ::= exists_opt full_table_name", - /* 184 */ "specific_cols_opt ::=", - /* 185 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", - /* 186 */ "full_table_name ::= table_name", - /* 187 */ "full_table_name ::= db_name NK_DOT table_name", - /* 188 */ "column_def_list ::= column_def", - /* 189 */ "column_def_list ::= column_def_list NK_COMMA column_def", - /* 190 */ "column_def ::= column_name type_name", - /* 191 */ "type_name ::= BOOL", - /* 192 */ "type_name ::= TINYINT", - /* 193 */ "type_name ::= SMALLINT", - /* 194 */ "type_name ::= INT", - /* 195 */ "type_name ::= INTEGER", - /* 196 */ "type_name ::= BIGINT", - /* 197 */ "type_name ::= FLOAT", - /* 198 */ "type_name ::= DOUBLE", - /* 199 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", - /* 200 */ "type_name ::= TIMESTAMP", - /* 201 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", - /* 202 */ "type_name ::= TINYINT UNSIGNED", - /* 203 */ "type_name ::= SMALLINT UNSIGNED", - /* 204 */ "type_name ::= INT UNSIGNED", - /* 205 */ "type_name ::= BIGINT UNSIGNED", - /* 206 */ "type_name ::= JSON", - /* 207 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", - /* 208 */ "type_name ::= MEDIUMBLOB", - /* 209 */ "type_name ::= BLOB", - /* 210 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", - /* 211 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP", - /* 212 */ "type_name ::= DECIMAL", - /* 213 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", - /* 214 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 215 */ "tags_def_opt ::=", - /* 216 */ "tags_def_opt ::= tags_def", - /* 217 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", - /* 218 */ "table_options ::=", - /* 219 */ "table_options ::= table_options COMMENT NK_STRING", - /* 220 */ "table_options ::= table_options MAX_DELAY duration_list", - /* 221 */ "table_options ::= table_options WATERMARK duration_list", - /* 222 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", - /* 223 */ "table_options ::= table_options TTL NK_INTEGER", - /* 224 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", - /* 225 */ "table_options ::= table_options DELETE_MARK duration_list", - /* 226 */ "alter_table_options ::= alter_table_option", - /* 227 */ "alter_table_options ::= alter_table_options alter_table_option", - /* 228 */ "alter_table_option ::= COMMENT NK_STRING", - /* 229 */ "alter_table_option ::= TTL NK_INTEGER", - /* 230 */ "duration_list ::= duration_literal", - /* 231 */ "duration_list ::= duration_list NK_COMMA duration_literal", - /* 232 */ "rollup_func_list ::= rollup_func_name", - /* 233 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", - /* 234 */ "rollup_func_name ::= function_name", - /* 235 */ "rollup_func_name ::= FIRST", - /* 236 */ "rollup_func_name ::= LAST", - /* 237 */ "col_name_list ::= col_name", - /* 238 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 239 */ "col_name ::= column_name", - /* 240 */ "cmd ::= SHOW DNODES", - /* 241 */ "cmd ::= SHOW USERS", - /* 242 */ "cmd ::= SHOW USER PRIVILEGES", - /* 243 */ "cmd ::= SHOW db_kind_opt DATABASES", - /* 244 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt", - /* 245 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", - /* 246 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", - /* 247 */ "cmd ::= SHOW MNODES", - /* 248 */ "cmd ::= SHOW QNODES", - /* 249 */ "cmd ::= SHOW FUNCTIONS", - /* 250 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", - /* 251 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", - /* 252 */ "cmd ::= SHOW STREAMS", - /* 253 */ "cmd ::= SHOW ACCOUNTS", - /* 254 */ "cmd ::= SHOW APPS", - /* 255 */ "cmd ::= SHOW CONNECTIONS", - /* 256 */ "cmd ::= SHOW LICENCES", - /* 257 */ "cmd ::= SHOW GRANTS", - /* 258 */ "cmd ::= SHOW CREATE DATABASE db_name", - /* 259 */ "cmd ::= SHOW CREATE TABLE full_table_name", - /* 260 */ "cmd ::= SHOW CREATE STABLE full_table_name", - /* 261 */ "cmd ::= SHOW QUERIES", - /* 262 */ "cmd ::= SHOW SCORES", - /* 263 */ "cmd ::= SHOW TOPICS", - /* 264 */ "cmd ::= SHOW VARIABLES", - /* 265 */ "cmd ::= SHOW CLUSTER VARIABLES", - /* 266 */ "cmd ::= SHOW LOCAL VARIABLES", - /* 267 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", - /* 268 */ "cmd ::= SHOW BNODES", - /* 269 */ "cmd ::= SHOW SNODES", - /* 270 */ "cmd ::= SHOW CLUSTER", - /* 271 */ "cmd ::= SHOW TRANSACTIONS", - /* 272 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", - /* 273 */ "cmd ::= SHOW CONSUMERS", - /* 274 */ "cmd ::= SHOW SUBSCRIPTIONS", - /* 275 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", - /* 276 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", - /* 277 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", - /* 278 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", - /* 279 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER", - /* 280 */ "cmd ::= SHOW VNODES", - /* 281 */ "cmd ::= SHOW db_name_cond_opt ALIVE", - /* 282 */ "cmd ::= SHOW CLUSTER ALIVE", - /* 283 */ "table_kind_db_name_cond_opt ::=", - /* 284 */ "table_kind_db_name_cond_opt ::= table_kind", - /* 285 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT", - /* 286 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT", - /* 287 */ "table_kind ::= NORMAL", - /* 288 */ "table_kind ::= CHILD", - /* 289 */ "db_name_cond_opt ::=", - /* 290 */ "db_name_cond_opt ::= db_name NK_DOT", - /* 291 */ "like_pattern_opt ::=", - /* 292 */ "like_pattern_opt ::= LIKE NK_STRING", - /* 293 */ "table_name_cond ::= table_name", - /* 294 */ "from_db_opt ::=", - /* 295 */ "from_db_opt ::= FROM db_name", - /* 296 */ "tag_list_opt ::=", - /* 297 */ "tag_list_opt ::= tag_item", - /* 298 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", - /* 299 */ "tag_item ::= TBNAME", - /* 300 */ "tag_item ::= QTAGS", - /* 301 */ "tag_item ::= column_name", - /* 302 */ "tag_item ::= column_name column_alias", - /* 303 */ "tag_item ::= column_name AS column_alias", - /* 304 */ "db_kind_opt ::=", - /* 305 */ "db_kind_opt ::= USER", - /* 306 */ "db_kind_opt ::= SYSTEM", - /* 307 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options", - /* 308 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP", - /* 309 */ "cmd ::= DROP INDEX exists_opt full_index_name", - /* 310 */ "full_index_name ::= index_name", - /* 311 */ "full_index_name ::= db_name NK_DOT index_name", - /* 312 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", - /* 313 */ "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", - /* 314 */ "func_list ::= func", - /* 315 */ "func_list ::= func_list NK_COMMA func", - /* 316 */ "func ::= sma_func_name NK_LP expression_list NK_RP", - /* 317 */ "sma_func_name ::= function_name", - /* 318 */ "sma_func_name ::= COUNT", - /* 319 */ "sma_func_name ::= FIRST", - /* 320 */ "sma_func_name ::= LAST", - /* 321 */ "sma_func_name ::= LAST_ROW", - /* 322 */ "sma_stream_opt ::=", - /* 323 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", - /* 324 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", - /* 325 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", - /* 326 */ "with_meta ::= AS", - /* 327 */ "with_meta ::= WITH META AS", - /* 328 */ "with_meta ::= ONLY META AS", - /* 329 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", - /* 330 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", - /* 331 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", - /* 332 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 333 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", - /* 334 */ "cmd ::= DESC full_table_name", - /* 335 */ "cmd ::= DESCRIBE full_table_name", - /* 336 */ "cmd ::= RESET QUERY CACHE", - /* 337 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", - /* 338 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", - /* 339 */ "analyze_opt ::=", - /* 340 */ "analyze_opt ::= ANALYZE", - /* 341 */ "explain_options ::=", - /* 342 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 343 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 344 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", - /* 345 */ "cmd ::= DROP FUNCTION exists_opt function_name", - /* 346 */ "agg_func_opt ::=", - /* 347 */ "agg_func_opt ::= AGGREGATE", - /* 348 */ "bufsize_opt ::=", - /* 349 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", - /* 350 */ "language_opt ::=", - /* 351 */ "language_opt ::= LANGUAGE NK_STRING", - /* 352 */ "or_replace_opt ::=", - /* 353 */ "or_replace_opt ::= OR REPLACE", - /* 354 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery", - /* 355 */ "cmd ::= DROP STREAM exists_opt stream_name", - /* 356 */ "cmd ::= PAUSE STREAM exists_opt stream_name", - /* 357 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", - /* 358 */ "col_list_opt ::=", - /* 359 */ "col_list_opt ::= NK_LP col_name_list NK_RP", - /* 360 */ "tag_def_or_ref_opt ::=", - /* 361 */ "tag_def_or_ref_opt ::= tags_def", - /* 362 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP", - /* 363 */ "stream_options ::=", - /* 364 */ "stream_options ::= stream_options TRIGGER AT_ONCE", - /* 365 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", - /* 366 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", - /* 367 */ "stream_options ::= stream_options WATERMARK duration_literal", - /* 368 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", - /* 369 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", - /* 370 */ "stream_options ::= stream_options DELETE_MARK duration_literal", - /* 371 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", - /* 372 */ "subtable_opt ::=", - /* 373 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", - /* 374 */ "ignore_opt ::=", - /* 375 */ "ignore_opt ::= IGNORE UNTREATED", - /* 376 */ "cmd ::= KILL CONNECTION NK_INTEGER", - /* 377 */ "cmd ::= KILL QUERY NK_STRING", - /* 378 */ "cmd ::= KILL TRANSACTION NK_INTEGER", - /* 379 */ "cmd ::= BALANCE VGROUP", - /* 380 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id", - /* 381 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", - /* 382 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", - /* 383 */ "cmd ::= SPLIT VGROUP NK_INTEGER", - /* 384 */ "on_vgroup_id ::=", - /* 385 */ "on_vgroup_id ::= ON NK_INTEGER", - /* 386 */ "dnode_list ::= DNODE NK_INTEGER", - /* 387 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", - /* 388 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", - /* 389 */ "cmd ::= query_or_subquery", - /* 390 */ "cmd ::= insert_query", - /* 391 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", - /* 392 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", - /* 393 */ "literal ::= NK_INTEGER", - /* 394 */ "literal ::= NK_FLOAT", - /* 395 */ "literal ::= NK_STRING", - /* 396 */ "literal ::= NK_BOOL", - /* 397 */ "literal ::= TIMESTAMP NK_STRING", - /* 398 */ "literal ::= duration_literal", - /* 399 */ "literal ::= NULL", - /* 400 */ "literal ::= NK_QUESTION", - /* 401 */ "duration_literal ::= NK_VARIABLE", - /* 402 */ "signed ::= NK_INTEGER", - /* 403 */ "signed ::= NK_PLUS NK_INTEGER", - /* 404 */ "signed ::= NK_MINUS NK_INTEGER", - /* 405 */ "signed ::= NK_FLOAT", - /* 406 */ "signed ::= NK_PLUS NK_FLOAT", - /* 407 */ "signed ::= NK_MINUS NK_FLOAT", - /* 408 */ "signed_literal ::= signed", - /* 409 */ "signed_literal ::= NK_STRING", - /* 410 */ "signed_literal ::= NK_BOOL", - /* 411 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 412 */ "signed_literal ::= duration_literal", - /* 413 */ "signed_literal ::= NULL", - /* 414 */ "signed_literal ::= literal_func", - /* 415 */ "signed_literal ::= NK_QUESTION", - /* 416 */ "literal_list ::= signed_literal", - /* 417 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 418 */ "db_name ::= NK_ID", - /* 419 */ "table_name ::= NK_ID", - /* 420 */ "column_name ::= NK_ID", - /* 421 */ "function_name ::= NK_ID", - /* 422 */ "table_alias ::= NK_ID", - /* 423 */ "column_alias ::= NK_ID", - /* 424 */ "column_alias ::= NK_ALIAS", - /* 425 */ "user_name ::= NK_ID", - /* 426 */ "topic_name ::= NK_ID", - /* 427 */ "stream_name ::= NK_ID", - /* 428 */ "cgroup_name ::= NK_ID", - /* 429 */ "index_name ::= NK_ID", - /* 430 */ "expr_or_subquery ::= expression", - /* 431 */ "expression ::= literal", - /* 432 */ "expression ::= pseudo_column", - /* 433 */ "expression ::= column_reference", - /* 434 */ "expression ::= function_expression", - /* 435 */ "expression ::= case_when_expression", - /* 436 */ "expression ::= NK_LP expression NK_RP", - /* 437 */ "expression ::= NK_PLUS expr_or_subquery", - /* 438 */ "expression ::= NK_MINUS expr_or_subquery", - /* 439 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", - /* 440 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", - /* 441 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", - /* 442 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", - /* 443 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", - /* 444 */ "expression ::= column_reference NK_ARROW NK_STRING", - /* 445 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", - /* 446 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", - /* 447 */ "expression_list ::= expr_or_subquery", - /* 448 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", - /* 449 */ "column_reference ::= column_name", - /* 450 */ "column_reference ::= table_name NK_DOT column_name", - /* 451 */ "column_reference ::= NK_ALIAS", - /* 452 */ "column_reference ::= table_name NK_DOT NK_ALIAS", - /* 453 */ "pseudo_column ::= ROWTS", - /* 454 */ "pseudo_column ::= TBNAME", - /* 455 */ "pseudo_column ::= table_name NK_DOT TBNAME", - /* 456 */ "pseudo_column ::= QSTART", - /* 457 */ "pseudo_column ::= QEND", - /* 458 */ "pseudo_column ::= QDURATION", - /* 459 */ "pseudo_column ::= WSTART", - /* 460 */ "pseudo_column ::= WEND", - /* 461 */ "pseudo_column ::= WDURATION", - /* 462 */ "pseudo_column ::= IROWTS", - /* 463 */ "pseudo_column ::= ISFILLED", - /* 464 */ "pseudo_column ::= QTAGS", - /* 465 */ "function_expression ::= function_name NK_LP expression_list NK_RP", - /* 466 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", - /* 467 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", - /* 468 */ "function_expression ::= literal_func", - /* 469 */ "literal_func ::= noarg_func NK_LP NK_RP", - /* 470 */ "literal_func ::= NOW", - /* 471 */ "noarg_func ::= NOW", - /* 472 */ "noarg_func ::= TODAY", - /* 473 */ "noarg_func ::= TIMEZONE", - /* 474 */ "noarg_func ::= DATABASE", - /* 475 */ "noarg_func ::= CLIENT_VERSION", - /* 476 */ "noarg_func ::= SERVER_VERSION", - /* 477 */ "noarg_func ::= SERVER_STATUS", - /* 478 */ "noarg_func ::= CURRENT_USER", - /* 479 */ "noarg_func ::= USER", - /* 480 */ "star_func ::= COUNT", - /* 481 */ "star_func ::= FIRST", - /* 482 */ "star_func ::= LAST", - /* 483 */ "star_func ::= LAST_ROW", - /* 484 */ "star_func_para_list ::= NK_STAR", - /* 485 */ "star_func_para_list ::= other_para_list", - /* 486 */ "other_para_list ::= star_func_para", - /* 487 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", - /* 488 */ "star_func_para ::= expr_or_subquery", - /* 489 */ "star_func_para ::= table_name NK_DOT NK_STAR", - /* 490 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", - /* 491 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", - /* 492 */ "when_then_list ::= when_then_expr", - /* 493 */ "when_then_list ::= when_then_list when_then_expr", - /* 494 */ "when_then_expr ::= WHEN common_expression THEN common_expression", - /* 495 */ "case_when_else_opt ::=", - /* 496 */ "case_when_else_opt ::= ELSE common_expression", - /* 497 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", - /* 498 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", - /* 499 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", - /* 500 */ "predicate ::= expr_or_subquery IS NULL", - /* 501 */ "predicate ::= expr_or_subquery IS NOT NULL", - /* 502 */ "predicate ::= expr_or_subquery in_op in_predicate_value", - /* 503 */ "compare_op ::= NK_LT", - /* 504 */ "compare_op ::= NK_GT", - /* 505 */ "compare_op ::= NK_LE", - /* 506 */ "compare_op ::= NK_GE", - /* 507 */ "compare_op ::= NK_NE", - /* 508 */ "compare_op ::= NK_EQ", - /* 509 */ "compare_op ::= LIKE", - /* 510 */ "compare_op ::= NOT LIKE", - /* 511 */ "compare_op ::= MATCH", - /* 512 */ "compare_op ::= NMATCH", - /* 513 */ "compare_op ::= CONTAINS", - /* 514 */ "in_op ::= IN", - /* 515 */ "in_op ::= NOT IN", - /* 516 */ "in_predicate_value ::= NK_LP literal_list NK_RP", - /* 517 */ "boolean_value_expression ::= boolean_primary", - /* 518 */ "boolean_value_expression ::= NOT boolean_primary", - /* 519 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 520 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 521 */ "boolean_primary ::= predicate", - /* 522 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 523 */ "common_expression ::= expr_or_subquery", - /* 524 */ "common_expression ::= boolean_value_expression", - /* 525 */ "from_clause_opt ::=", - /* 526 */ "from_clause_opt ::= FROM table_reference_list", - /* 527 */ "table_reference_list ::= table_reference", - /* 528 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 529 */ "table_reference ::= table_primary", - /* 530 */ "table_reference ::= joined_table", - /* 531 */ "table_primary ::= table_name alias_opt", - /* 532 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 533 */ "table_primary ::= subquery alias_opt", - /* 534 */ "table_primary ::= parenthesized_joined_table", - /* 535 */ "alias_opt ::=", - /* 536 */ "alias_opt ::= table_alias", - /* 537 */ "alias_opt ::= AS table_alias", - /* 538 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 539 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 540 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 541 */ "join_type ::=", - /* 542 */ "join_type ::= INNER", - /* 543 */ "query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_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", - /* 544 */ "hint_list ::=", - /* 545 */ "hint_list ::= NK_HINT", - /* 546 */ "tag_mode_opt ::=", - /* 547 */ "tag_mode_opt ::= TAGS", - /* 548 */ "set_quantifier_opt ::=", - /* 549 */ "set_quantifier_opt ::= DISTINCT", - /* 550 */ "set_quantifier_opt ::= ALL", - /* 551 */ "select_list ::= select_item", - /* 552 */ "select_list ::= select_list NK_COMMA select_item", - /* 553 */ "select_item ::= NK_STAR", - /* 554 */ "select_item ::= common_expression", - /* 555 */ "select_item ::= common_expression column_alias", - /* 556 */ "select_item ::= common_expression AS column_alias", - /* 557 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 558 */ "where_clause_opt ::=", - /* 559 */ "where_clause_opt ::= WHERE search_condition", - /* 560 */ "partition_by_clause_opt ::=", - /* 561 */ "partition_by_clause_opt ::= PARTITION BY partition_list", - /* 562 */ "partition_list ::= partition_item", - /* 563 */ "partition_list ::= partition_list NK_COMMA partition_item", - /* 564 */ "partition_item ::= expr_or_subquery", - /* 565 */ "partition_item ::= expr_or_subquery column_alias", - /* 566 */ "partition_item ::= expr_or_subquery AS column_alias", - /* 567 */ "twindow_clause_opt ::=", - /* 568 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP", - /* 569 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", - /* 570 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt", - /* 571 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt", - /* 572 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", - /* 573 */ "sliding_opt ::=", - /* 574 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP", - /* 575 */ "interval_sliding_duration_literal ::= NK_VARIABLE", - /* 576 */ "interval_sliding_duration_literal ::= NK_STRING", - /* 577 */ "interval_sliding_duration_literal ::= NK_INTEGER", - /* 578 */ "fill_opt ::=", - /* 579 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 580 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", - /* 581 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", - /* 582 */ "fill_mode ::= NONE", - /* 583 */ "fill_mode ::= PREV", - /* 584 */ "fill_mode ::= NULL", - /* 585 */ "fill_mode ::= NULL_F", - /* 586 */ "fill_mode ::= LINEAR", - /* 587 */ "fill_mode ::= NEXT", - /* 588 */ "group_by_clause_opt ::=", - /* 589 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 590 */ "group_by_list ::= expr_or_subquery", - /* 591 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", - /* 592 */ "having_clause_opt ::=", - /* 593 */ "having_clause_opt ::= HAVING search_condition", - /* 594 */ "range_opt ::=", - /* 595 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", - /* 596 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", - /* 597 */ "every_opt ::=", - /* 598 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", - /* 599 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 600 */ "query_simple ::= query_specification", - /* 601 */ "query_simple ::= union_query_expression", - /* 602 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", - /* 603 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", - /* 604 */ "query_simple_or_subquery ::= query_simple", - /* 605 */ "query_simple_or_subquery ::= subquery", - /* 606 */ "query_or_subquery ::= query_expression", - /* 607 */ "query_or_subquery ::= subquery", - /* 608 */ "order_by_clause_opt ::=", - /* 609 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 610 */ "slimit_clause_opt ::=", - /* 611 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 612 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 613 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 614 */ "limit_clause_opt ::=", - /* 615 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 616 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 617 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 618 */ "subquery ::= NK_LP query_expression NK_RP", - /* 619 */ "subquery ::= NK_LP subquery NK_RP", - /* 620 */ "search_condition ::= common_expression", - /* 621 */ "sort_specification_list ::= sort_specification", - /* 622 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 623 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", - /* 624 */ "ordering_specification_opt ::=", - /* 625 */ "ordering_specification_opt ::= ASC", - /* 626 */ "ordering_specification_opt ::= DESC", - /* 627 */ "null_ordering_opt ::=", - /* 628 */ "null_ordering_opt ::= NULLS FIRST", - /* 629 */ "null_ordering_opt ::= NULLS LAST", + /* 151 */ "retention ::= NK_MINUS NK_COLON NK_VARIABLE", + /* 152 */ "speed_opt ::=", + /* 153 */ "speed_opt ::= BWLIMIT NK_INTEGER", + /* 154 */ "start_opt ::=", + /* 155 */ "start_opt ::= START WITH NK_INTEGER", + /* 156 */ "start_opt ::= START WITH NK_STRING", + /* 157 */ "start_opt ::= START WITH TIMESTAMP NK_STRING", + /* 158 */ "end_opt ::=", + /* 159 */ "end_opt ::= END WITH NK_INTEGER", + /* 160 */ "end_opt ::= END WITH NK_STRING", + /* 161 */ "end_opt ::= END WITH TIMESTAMP NK_STRING", + /* 162 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", + /* 163 */ "cmd ::= CREATE TABLE multi_create_clause", + /* 164 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", + /* 165 */ "cmd ::= DROP TABLE multi_drop_clause", + /* 166 */ "cmd ::= DROP STABLE exists_opt full_table_name", + /* 167 */ "cmd ::= ALTER TABLE alter_table_clause", + /* 168 */ "cmd ::= ALTER STABLE alter_table_clause", + /* 169 */ "alter_table_clause ::= full_table_name alter_table_options", + /* 170 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", + /* 171 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", + /* 172 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", + /* 173 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", + /* 174 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", + /* 175 */ "alter_table_clause ::= full_table_name DROP TAG column_name", + /* 176 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", + /* 177 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", + /* 178 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", + /* 179 */ "multi_create_clause ::= create_subtable_clause", + /* 180 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", + /* 181 */ "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", + /* 182 */ "multi_drop_clause ::= drop_table_clause", + /* 183 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause", + /* 184 */ "drop_table_clause ::= exists_opt full_table_name", + /* 185 */ "specific_cols_opt ::=", + /* 186 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", + /* 187 */ "full_table_name ::= table_name", + /* 188 */ "full_table_name ::= db_name NK_DOT table_name", + /* 189 */ "column_def_list ::= column_def", + /* 190 */ "column_def_list ::= column_def_list NK_COMMA column_def", + /* 191 */ "column_def ::= column_name type_name", + /* 192 */ "type_name ::= BOOL", + /* 193 */ "type_name ::= TINYINT", + /* 194 */ "type_name ::= SMALLINT", + /* 195 */ "type_name ::= INT", + /* 196 */ "type_name ::= INTEGER", + /* 197 */ "type_name ::= BIGINT", + /* 198 */ "type_name ::= FLOAT", + /* 199 */ "type_name ::= DOUBLE", + /* 200 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", + /* 201 */ "type_name ::= TIMESTAMP", + /* 202 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", + /* 203 */ "type_name ::= TINYINT UNSIGNED", + /* 204 */ "type_name ::= SMALLINT UNSIGNED", + /* 205 */ "type_name ::= INT UNSIGNED", + /* 206 */ "type_name ::= BIGINT UNSIGNED", + /* 207 */ "type_name ::= JSON", + /* 208 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", + /* 209 */ "type_name ::= MEDIUMBLOB", + /* 210 */ "type_name ::= BLOB", + /* 211 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", + /* 212 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP", + /* 213 */ "type_name ::= DECIMAL", + /* 214 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", + /* 215 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 216 */ "tags_def_opt ::=", + /* 217 */ "tags_def_opt ::= tags_def", + /* 218 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", + /* 219 */ "table_options ::=", + /* 220 */ "table_options ::= table_options COMMENT NK_STRING", + /* 221 */ "table_options ::= table_options MAX_DELAY duration_list", + /* 222 */ "table_options ::= table_options WATERMARK duration_list", + /* 223 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", + /* 224 */ "table_options ::= table_options TTL NK_INTEGER", + /* 225 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 226 */ "table_options ::= table_options DELETE_MARK duration_list", + /* 227 */ "alter_table_options ::= alter_table_option", + /* 228 */ "alter_table_options ::= alter_table_options alter_table_option", + /* 229 */ "alter_table_option ::= COMMENT NK_STRING", + /* 230 */ "alter_table_option ::= TTL NK_INTEGER", + /* 231 */ "duration_list ::= duration_literal", + /* 232 */ "duration_list ::= duration_list NK_COMMA duration_literal", + /* 233 */ "rollup_func_list ::= rollup_func_name", + /* 234 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", + /* 235 */ "rollup_func_name ::= function_name", + /* 236 */ "rollup_func_name ::= FIRST", + /* 237 */ "rollup_func_name ::= LAST", + /* 238 */ "col_name_list ::= col_name", + /* 239 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 240 */ "col_name ::= column_name", + /* 241 */ "cmd ::= SHOW DNODES", + /* 242 */ "cmd ::= SHOW USERS", + /* 243 */ "cmd ::= SHOW USER PRIVILEGES", + /* 244 */ "cmd ::= SHOW db_kind_opt DATABASES", + /* 245 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt", + /* 246 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", + /* 247 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", + /* 248 */ "cmd ::= SHOW MNODES", + /* 249 */ "cmd ::= SHOW QNODES", + /* 250 */ "cmd ::= SHOW FUNCTIONS", + /* 251 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", + /* 252 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", + /* 253 */ "cmd ::= SHOW STREAMS", + /* 254 */ "cmd ::= SHOW ACCOUNTS", + /* 255 */ "cmd ::= SHOW APPS", + /* 256 */ "cmd ::= SHOW CONNECTIONS", + /* 257 */ "cmd ::= SHOW LICENCES", + /* 258 */ "cmd ::= SHOW GRANTS", + /* 259 */ "cmd ::= SHOW CREATE DATABASE db_name", + /* 260 */ "cmd ::= SHOW CREATE TABLE full_table_name", + /* 261 */ "cmd ::= SHOW CREATE STABLE full_table_name", + /* 262 */ "cmd ::= SHOW QUERIES", + /* 263 */ "cmd ::= SHOW SCORES", + /* 264 */ "cmd ::= SHOW TOPICS", + /* 265 */ "cmd ::= SHOW VARIABLES", + /* 266 */ "cmd ::= SHOW CLUSTER VARIABLES", + /* 267 */ "cmd ::= SHOW LOCAL VARIABLES", + /* 268 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", + /* 269 */ "cmd ::= SHOW BNODES", + /* 270 */ "cmd ::= SHOW SNODES", + /* 271 */ "cmd ::= SHOW CLUSTER", + /* 272 */ "cmd ::= SHOW TRANSACTIONS", + /* 273 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", + /* 274 */ "cmd ::= SHOW CONSUMERS", + /* 275 */ "cmd ::= SHOW SUBSCRIPTIONS", + /* 276 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", + /* 277 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", + /* 278 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", + /* 279 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", + /* 280 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER", + /* 281 */ "cmd ::= SHOW VNODES", + /* 282 */ "cmd ::= SHOW db_name_cond_opt ALIVE", + /* 283 */ "cmd ::= SHOW CLUSTER ALIVE", + /* 284 */ "table_kind_db_name_cond_opt ::=", + /* 285 */ "table_kind_db_name_cond_opt ::= table_kind", + /* 286 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT", + /* 287 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT", + /* 288 */ "table_kind ::= NORMAL", + /* 289 */ "table_kind ::= CHILD", + /* 290 */ "db_name_cond_opt ::=", + /* 291 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 292 */ "like_pattern_opt ::=", + /* 293 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 294 */ "table_name_cond ::= table_name", + /* 295 */ "from_db_opt ::=", + /* 296 */ "from_db_opt ::= FROM db_name", + /* 297 */ "tag_list_opt ::=", + /* 298 */ "tag_list_opt ::= tag_item", + /* 299 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", + /* 300 */ "tag_item ::= TBNAME", + /* 301 */ "tag_item ::= QTAGS", + /* 302 */ "tag_item ::= column_name", + /* 303 */ "tag_item ::= column_name column_alias", + /* 304 */ "tag_item ::= column_name AS column_alias", + /* 305 */ "db_kind_opt ::=", + /* 306 */ "db_kind_opt ::= USER", + /* 307 */ "db_kind_opt ::= SYSTEM", + /* 308 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options", + /* 309 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP", + /* 310 */ "cmd ::= DROP INDEX exists_opt full_index_name", + /* 311 */ "full_index_name ::= index_name", + /* 312 */ "full_index_name ::= db_name NK_DOT index_name", + /* 313 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", + /* 314 */ "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", + /* 315 */ "func_list ::= func", + /* 316 */ "func_list ::= func_list NK_COMMA func", + /* 317 */ "func ::= sma_func_name NK_LP expression_list NK_RP", + /* 318 */ "sma_func_name ::= function_name", + /* 319 */ "sma_func_name ::= COUNT", + /* 320 */ "sma_func_name ::= FIRST", + /* 321 */ "sma_func_name ::= LAST", + /* 322 */ "sma_func_name ::= LAST_ROW", + /* 323 */ "sma_stream_opt ::=", + /* 324 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", + /* 325 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", + /* 326 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", + /* 327 */ "with_meta ::= AS", + /* 328 */ "with_meta ::= WITH META AS", + /* 329 */ "with_meta ::= ONLY META AS", + /* 330 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", + /* 331 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", + /* 332 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", + /* 333 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 334 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", + /* 335 */ "cmd ::= DESC full_table_name", + /* 336 */ "cmd ::= DESCRIBE full_table_name", + /* 337 */ "cmd ::= RESET QUERY CACHE", + /* 338 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", + /* 339 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", + /* 340 */ "analyze_opt ::=", + /* 341 */ "analyze_opt ::= ANALYZE", + /* 342 */ "explain_options ::=", + /* 343 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 344 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 345 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", + /* 346 */ "cmd ::= DROP FUNCTION exists_opt function_name", + /* 347 */ "agg_func_opt ::=", + /* 348 */ "agg_func_opt ::= AGGREGATE", + /* 349 */ "bufsize_opt ::=", + /* 350 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", + /* 351 */ "language_opt ::=", + /* 352 */ "language_opt ::= LANGUAGE NK_STRING", + /* 353 */ "or_replace_opt ::=", + /* 354 */ "or_replace_opt ::= OR REPLACE", + /* 355 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery", + /* 356 */ "cmd ::= DROP STREAM exists_opt stream_name", + /* 357 */ "cmd ::= PAUSE STREAM exists_opt stream_name", + /* 358 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", + /* 359 */ "col_list_opt ::=", + /* 360 */ "col_list_opt ::= NK_LP col_name_list NK_RP", + /* 361 */ "tag_def_or_ref_opt ::=", + /* 362 */ "tag_def_or_ref_opt ::= tags_def", + /* 363 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP", + /* 364 */ "stream_options ::=", + /* 365 */ "stream_options ::= stream_options TRIGGER AT_ONCE", + /* 366 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", + /* 367 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", + /* 368 */ "stream_options ::= stream_options WATERMARK duration_literal", + /* 369 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", + /* 370 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", + /* 371 */ "stream_options ::= stream_options DELETE_MARK duration_literal", + /* 372 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", + /* 373 */ "subtable_opt ::=", + /* 374 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", + /* 375 */ "ignore_opt ::=", + /* 376 */ "ignore_opt ::= IGNORE UNTREATED", + /* 377 */ "cmd ::= KILL CONNECTION NK_INTEGER", + /* 378 */ "cmd ::= KILL QUERY NK_STRING", + /* 379 */ "cmd ::= KILL TRANSACTION NK_INTEGER", + /* 380 */ "cmd ::= BALANCE VGROUP", + /* 381 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id", + /* 382 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", + /* 383 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", + /* 384 */ "cmd ::= SPLIT VGROUP NK_INTEGER", + /* 385 */ "on_vgroup_id ::=", + /* 386 */ "on_vgroup_id ::= ON NK_INTEGER", + /* 387 */ "dnode_list ::= DNODE NK_INTEGER", + /* 388 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", + /* 389 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", + /* 390 */ "cmd ::= query_or_subquery", + /* 391 */ "cmd ::= insert_query", + /* 392 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", + /* 393 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", + /* 394 */ "literal ::= NK_INTEGER", + /* 395 */ "literal ::= NK_FLOAT", + /* 396 */ "literal ::= NK_STRING", + /* 397 */ "literal ::= NK_BOOL", + /* 398 */ "literal ::= TIMESTAMP NK_STRING", + /* 399 */ "literal ::= duration_literal", + /* 400 */ "literal ::= NULL", + /* 401 */ "literal ::= NK_QUESTION", + /* 402 */ "duration_literal ::= NK_VARIABLE", + /* 403 */ "signed ::= NK_INTEGER", + /* 404 */ "signed ::= NK_PLUS NK_INTEGER", + /* 405 */ "signed ::= NK_MINUS NK_INTEGER", + /* 406 */ "signed ::= NK_FLOAT", + /* 407 */ "signed ::= NK_PLUS NK_FLOAT", + /* 408 */ "signed ::= NK_MINUS NK_FLOAT", + /* 409 */ "signed_literal ::= signed", + /* 410 */ "signed_literal ::= NK_STRING", + /* 411 */ "signed_literal ::= NK_BOOL", + /* 412 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 413 */ "signed_literal ::= duration_literal", + /* 414 */ "signed_literal ::= NULL", + /* 415 */ "signed_literal ::= literal_func", + /* 416 */ "signed_literal ::= NK_QUESTION", + /* 417 */ "literal_list ::= signed_literal", + /* 418 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 419 */ "db_name ::= NK_ID", + /* 420 */ "table_name ::= NK_ID", + /* 421 */ "column_name ::= NK_ID", + /* 422 */ "function_name ::= NK_ID", + /* 423 */ "table_alias ::= NK_ID", + /* 424 */ "column_alias ::= NK_ID", + /* 425 */ "column_alias ::= NK_ALIAS", + /* 426 */ "user_name ::= NK_ID", + /* 427 */ "topic_name ::= NK_ID", + /* 428 */ "stream_name ::= NK_ID", + /* 429 */ "cgroup_name ::= NK_ID", + /* 430 */ "index_name ::= NK_ID", + /* 431 */ "expr_or_subquery ::= expression", + /* 432 */ "expression ::= literal", + /* 433 */ "expression ::= pseudo_column", + /* 434 */ "expression ::= column_reference", + /* 435 */ "expression ::= function_expression", + /* 436 */ "expression ::= case_when_expression", + /* 437 */ "expression ::= NK_LP expression NK_RP", + /* 438 */ "expression ::= NK_PLUS expr_or_subquery", + /* 439 */ "expression ::= NK_MINUS expr_or_subquery", + /* 440 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", + /* 441 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", + /* 442 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", + /* 443 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", + /* 444 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", + /* 445 */ "expression ::= column_reference NK_ARROW NK_STRING", + /* 446 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", + /* 447 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", + /* 448 */ "expression_list ::= expr_or_subquery", + /* 449 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", + /* 450 */ "column_reference ::= column_name", + /* 451 */ "column_reference ::= table_name NK_DOT column_name", + /* 452 */ "column_reference ::= NK_ALIAS", + /* 453 */ "column_reference ::= table_name NK_DOT NK_ALIAS", + /* 454 */ "pseudo_column ::= ROWTS", + /* 455 */ "pseudo_column ::= TBNAME", + /* 456 */ "pseudo_column ::= table_name NK_DOT TBNAME", + /* 457 */ "pseudo_column ::= QSTART", + /* 458 */ "pseudo_column ::= QEND", + /* 459 */ "pseudo_column ::= QDURATION", + /* 460 */ "pseudo_column ::= WSTART", + /* 461 */ "pseudo_column ::= WEND", + /* 462 */ "pseudo_column ::= WDURATION", + /* 463 */ "pseudo_column ::= IROWTS", + /* 464 */ "pseudo_column ::= ISFILLED", + /* 465 */ "pseudo_column ::= QTAGS", + /* 466 */ "function_expression ::= function_name NK_LP expression_list NK_RP", + /* 467 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", + /* 468 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", + /* 469 */ "function_expression ::= literal_func", + /* 470 */ "literal_func ::= noarg_func NK_LP NK_RP", + /* 471 */ "literal_func ::= NOW", + /* 472 */ "noarg_func ::= NOW", + /* 473 */ "noarg_func ::= TODAY", + /* 474 */ "noarg_func ::= TIMEZONE", + /* 475 */ "noarg_func ::= DATABASE", + /* 476 */ "noarg_func ::= CLIENT_VERSION", + /* 477 */ "noarg_func ::= SERVER_VERSION", + /* 478 */ "noarg_func ::= SERVER_STATUS", + /* 479 */ "noarg_func ::= CURRENT_USER", + /* 480 */ "noarg_func ::= USER", + /* 481 */ "star_func ::= COUNT", + /* 482 */ "star_func ::= FIRST", + /* 483 */ "star_func ::= LAST", + /* 484 */ "star_func ::= LAST_ROW", + /* 485 */ "star_func_para_list ::= NK_STAR", + /* 486 */ "star_func_para_list ::= other_para_list", + /* 487 */ "other_para_list ::= star_func_para", + /* 488 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", + /* 489 */ "star_func_para ::= expr_or_subquery", + /* 490 */ "star_func_para ::= table_name NK_DOT NK_STAR", + /* 491 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", + /* 492 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", + /* 493 */ "when_then_list ::= when_then_expr", + /* 494 */ "when_then_list ::= when_then_list when_then_expr", + /* 495 */ "when_then_expr ::= WHEN common_expression THEN common_expression", + /* 496 */ "case_when_else_opt ::=", + /* 497 */ "case_when_else_opt ::= ELSE common_expression", + /* 498 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", + /* 499 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", + /* 500 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", + /* 501 */ "predicate ::= expr_or_subquery IS NULL", + /* 502 */ "predicate ::= expr_or_subquery IS NOT NULL", + /* 503 */ "predicate ::= expr_or_subquery in_op in_predicate_value", + /* 504 */ "compare_op ::= NK_LT", + /* 505 */ "compare_op ::= NK_GT", + /* 506 */ "compare_op ::= NK_LE", + /* 507 */ "compare_op ::= NK_GE", + /* 508 */ "compare_op ::= NK_NE", + /* 509 */ "compare_op ::= NK_EQ", + /* 510 */ "compare_op ::= LIKE", + /* 511 */ "compare_op ::= NOT LIKE", + /* 512 */ "compare_op ::= MATCH", + /* 513 */ "compare_op ::= NMATCH", + /* 514 */ "compare_op ::= CONTAINS", + /* 515 */ "in_op ::= IN", + /* 516 */ "in_op ::= NOT IN", + /* 517 */ "in_predicate_value ::= NK_LP literal_list NK_RP", + /* 518 */ "boolean_value_expression ::= boolean_primary", + /* 519 */ "boolean_value_expression ::= NOT boolean_primary", + /* 520 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 521 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 522 */ "boolean_primary ::= predicate", + /* 523 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 524 */ "common_expression ::= expr_or_subquery", + /* 525 */ "common_expression ::= boolean_value_expression", + /* 526 */ "from_clause_opt ::=", + /* 527 */ "from_clause_opt ::= FROM table_reference_list", + /* 528 */ "table_reference_list ::= table_reference", + /* 529 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 530 */ "table_reference ::= table_primary", + /* 531 */ "table_reference ::= joined_table", + /* 532 */ "table_primary ::= table_name alias_opt", + /* 533 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 534 */ "table_primary ::= subquery alias_opt", + /* 535 */ "table_primary ::= parenthesized_joined_table", + /* 536 */ "alias_opt ::=", + /* 537 */ "alias_opt ::= table_alias", + /* 538 */ "alias_opt ::= AS table_alias", + /* 539 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 540 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 541 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 542 */ "join_type ::=", + /* 543 */ "join_type ::= INNER", + /* 544 */ "query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_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", + /* 545 */ "hint_list ::=", + /* 546 */ "hint_list ::= NK_HINT", + /* 547 */ "tag_mode_opt ::=", + /* 548 */ "tag_mode_opt ::= TAGS", + /* 549 */ "set_quantifier_opt ::=", + /* 550 */ "set_quantifier_opt ::= DISTINCT", + /* 551 */ "set_quantifier_opt ::= ALL", + /* 552 */ "select_list ::= select_item", + /* 553 */ "select_list ::= select_list NK_COMMA select_item", + /* 554 */ "select_item ::= NK_STAR", + /* 555 */ "select_item ::= common_expression", + /* 556 */ "select_item ::= common_expression column_alias", + /* 557 */ "select_item ::= common_expression AS column_alias", + /* 558 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 559 */ "where_clause_opt ::=", + /* 560 */ "where_clause_opt ::= WHERE search_condition", + /* 561 */ "partition_by_clause_opt ::=", + /* 562 */ "partition_by_clause_opt ::= PARTITION BY partition_list", + /* 563 */ "partition_list ::= partition_item", + /* 564 */ "partition_list ::= partition_list NK_COMMA partition_item", + /* 565 */ "partition_item ::= expr_or_subquery", + /* 566 */ "partition_item ::= expr_or_subquery column_alias", + /* 567 */ "partition_item ::= expr_or_subquery AS column_alias", + /* 568 */ "twindow_clause_opt ::=", + /* 569 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP", + /* 570 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", + /* 571 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt", + /* 572 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt", + /* 573 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", + /* 574 */ "sliding_opt ::=", + /* 575 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP", + /* 576 */ "interval_sliding_duration_literal ::= NK_VARIABLE", + /* 577 */ "interval_sliding_duration_literal ::= NK_STRING", + /* 578 */ "interval_sliding_duration_literal ::= NK_INTEGER", + /* 579 */ "fill_opt ::=", + /* 580 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 581 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", + /* 582 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", + /* 583 */ "fill_mode ::= NONE", + /* 584 */ "fill_mode ::= PREV", + /* 585 */ "fill_mode ::= NULL", + /* 586 */ "fill_mode ::= NULL_F", + /* 587 */ "fill_mode ::= LINEAR", + /* 588 */ "fill_mode ::= NEXT", + /* 589 */ "group_by_clause_opt ::=", + /* 590 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 591 */ "group_by_list ::= expr_or_subquery", + /* 592 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", + /* 593 */ "having_clause_opt ::=", + /* 594 */ "having_clause_opt ::= HAVING search_condition", + /* 595 */ "range_opt ::=", + /* 596 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", + /* 597 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", + /* 598 */ "every_opt ::=", + /* 599 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", + /* 600 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 601 */ "query_simple ::= query_specification", + /* 602 */ "query_simple ::= union_query_expression", + /* 603 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", + /* 604 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", + /* 605 */ "query_simple_or_subquery ::= query_simple", + /* 606 */ "query_simple_or_subquery ::= subquery", + /* 607 */ "query_or_subquery ::= query_expression", + /* 608 */ "query_or_subquery ::= subquery", + /* 609 */ "order_by_clause_opt ::=", + /* 610 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 611 */ "slimit_clause_opt ::=", + /* 612 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 613 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 614 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 615 */ "limit_clause_opt ::=", + /* 616 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 617 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 618 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 619 */ "subquery ::= NK_LP query_expression NK_RP", + /* 620 */ "subquery ::= NK_LP subquery NK_RP", + /* 621 */ "search_condition ::= common_expression", + /* 622 */ "sort_specification_list ::= sort_specification", + /* 623 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 624 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", + /* 625 */ "ordering_specification_opt ::=", + /* 626 */ "ordering_specification_opt ::= ASC", + /* 627 */ "ordering_specification_opt ::= DESC", + /* 628 */ "null_ordering_opt ::=", + /* 629 */ "null_ordering_opt ::= NULLS FIRST", + /* 630 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -3338,9 +2996,7 @@ static void yy_destructor( case 499: /* query_simple_or_subquery */ case 501: /* sort_specification */ { -#line 7 "sql.y" nodesDestroyNode((yypminor->yy56)); -#line 3343 "sql.c" } break; case 346: /* account_options */ @@ -3350,9 +3006,7 @@ static void yy_destructor( case 423: /* with_meta */ case 432: /* bufsize_opt */ { -#line 54 "sql.y" -#line 3355 "sql.c" } break; case 350: /* ip_range_list */ @@ -3389,9 +3043,7 @@ static void yy_destructor( case 495: /* order_by_clause_opt */ case 500: /* sort_specification_list */ { -#line 85 "sql.y" nodesDestroyList((yypminor->yy712)); -#line 3394 "sql.c" } break; case 353: /* user_name */ @@ -3413,32 +3065,24 @@ static void yy_destructor( case 453: /* noarg_func */ case 471: /* alias_opt */ { -#line 793 "sql.y" -#line 3418 "sql.c" } break; case 354: /* sysinfo_opt */ { -#line 112 "sql.y" -#line 3425 "sql.c" } break; case 355: /* privileges */ case 358: /* priv_type_list */ case 359: /* priv_type */ { -#line 121 "sql.y" -#line 3434 "sql.c" } break; case 356: /* priv_level */ { -#line 137 "sql.y" -#line 3441 "sql.c" } break; case 365: /* force_opt */ @@ -3452,75 +3096,55 @@ static void yy_destructor( case 477: /* set_quantifier_opt */ case 478: /* tag_mode_opt */ { -#line 166 "sql.y" -#line 3457 "sql.c" } break; case 378: /* alter_db_option */ case 400: /* alter_table_option */ { -#line 264 "sql.y" -#line 3465 "sql.c" } break; case 390: /* type_name */ { -#line 386 "sql.y" -#line 3472 "sql.c" } break; case 405: /* db_kind_opt */ case 412: /* table_kind */ { -#line 547 "sql.y" -#line 3480 "sql.c" } break; case 406: /* table_kind_db_name_cond_opt */ { -#line 512 "sql.y" -#line 3487 "sql.c" } break; case 461: /* compare_op */ case 462: /* in_op */ { -#line 983 "sql.y" -#line 3495 "sql.c" } break; case 474: /* join_type */ { -#line 1059 "sql.y" -#line 3502 "sql.c" } break; case 491: /* fill_mode */ { -#line 1150 "sql.y" -#line 3509 "sql.c" } break; case 502: /* ordering_specification_opt */ { -#line 1235 "sql.y" -#line 3516 "sql.c" } break; case 503: /* null_ordering_opt */ { -#line 1241 "sql.y" -#line 3523 "sql.c" } break; /********* End destructor definitions *****************************************/ @@ -3687,7 +3311,7 @@ static YYACTIONTYPE yy_find_shift_action( #endif /* YYWILDCARD */ return yy_default[stateno]; }else{ - assert( i>=0 && i<(int)(sizeof(yy_action)/sizeof(yy_action[0])) ); + assert( i>=0 && iyytos; - assert( yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ); #ifndef NDEBUG - if( yyTraceFILE ){ + if( yyTraceFILE && yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ){ yysize = yyRuleInfoNRhs[yyruleno]; if( yysize ){ fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n", @@ -5165,21 +4790,15 @@ static YYACTIONTYPE yy_reduce( /********** Begin reduce actions **********************************************/ YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ -#line 50 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } -#line 5170 "sql.c" yy_destructor(yypParser,346,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ -#line 51 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } -#line 5176 "sql.c" yy_destructor(yypParser,347,&yymsp[0].minor); break; case 2: /* account_options ::= */ -#line 55 "sql.y" { } -#line 5182 "sql.c" break; case 3: /* account_options ::= account_options PPS literal */ case 4: /* account_options ::= account_options TSERIES literal */ yytestcase(yyruleno==4); @@ -5191,24 +4810,18 @@ static YYACTIONTYPE yy_reduce( 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,346,&yymsp[-2].minor); -#line 56 "sql.y" { } -#line 5196 "sql.c" yy_destructor(yypParser,348,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ { yy_destructor(yypParser,349,&yymsp[0].minor); -#line 68 "sql.y" { } -#line 5204 "sql.c" } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ { yy_destructor(yypParser,347,&yymsp[-1].minor); -#line 69 "sql.y" { } -#line 5211 "sql.c" yy_destructor(yypParser,349,&yymsp[0].minor); } break; @@ -5222,2349 +4835,1587 @@ static YYACTIONTYPE yy_reduce( case 21: /* alter_account_option ::= USERS literal */ yytestcase(yyruleno==21); case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22); case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); -#line 73 "sql.y" { } -#line 5227 "sql.c" yy_destructor(yypParser,348,&yymsp[0].minor); break; case 24: /* ip_range_list ::= NK_STRING */ -#line 86 "sql.y" { yylhsminor.yy712 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } -#line 5233 "sql.c" yymsp[0].minor.yy712 = yylhsminor.yy712; break; case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ -#line 87 "sql.y" { yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-2].minor.yy712, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } -#line 5239 "sql.c" yymsp[-2].minor.yy712 = yylhsminor.yy712; break; case 26: /* white_list ::= HOST ip_range_list */ -#line 91 "sql.y" { yymsp[-1].minor.yy712 = yymsp[0].minor.yy712; } -#line 5245 "sql.c" break; case 27: /* white_list_opt ::= */ - case 184: /* specific_cols_opt ::= */ yytestcase(yyruleno==184); - case 215: /* tags_def_opt ::= */ yytestcase(yyruleno==215); - case 296: /* tag_list_opt ::= */ yytestcase(yyruleno==296); - case 358: /* col_list_opt ::= */ yytestcase(yyruleno==358); - case 360: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==360); - case 560: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==560); - case 588: /* group_by_clause_opt ::= */ yytestcase(yyruleno==588); - case 608: /* order_by_clause_opt ::= */ yytestcase(yyruleno==608); -#line 95 "sql.y" + case 185: /* specific_cols_opt ::= */ yytestcase(yyruleno==185); + case 216: /* tags_def_opt ::= */ yytestcase(yyruleno==216); + case 297: /* tag_list_opt ::= */ yytestcase(yyruleno==297); + case 359: /* col_list_opt ::= */ yytestcase(yyruleno==359); + case 361: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==361); + case 561: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==561); + case 589: /* group_by_clause_opt ::= */ yytestcase(yyruleno==589); + case 609: /* order_by_clause_opt ::= */ yytestcase(yyruleno==609); { yymsp[1].minor.yy712 = NULL; } -#line 5258 "sql.c" break; case 28: /* white_list_opt ::= white_list */ - case 216: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==216); - case 361: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==361); - case 485: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==485); -#line 96 "sql.y" + case 217: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==217); + case 362: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==362); + case 486: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==486); { yylhsminor.yy712 = yymsp[0].minor.yy712; } -#line 5266 "sql.c" yymsp[0].minor.yy712 = yylhsminor.yy712; break; case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */ -#line 100 "sql.y" { pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy785, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy215); pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy712); } -#line 5275 "sql.c" break; case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -#line 104 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy785, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } -#line 5280 "sql.c" break; case 31: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ -#line 105 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy785, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } -#line 5285 "sql.c" break; case 32: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ -#line 106 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy785, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } -#line 5290 "sql.c" break; case 33: /* cmd ::= ALTER USER user_name ADD white_list */ -#line 107 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy785, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy712); } -#line 5295 "sql.c" break; case 34: /* cmd ::= ALTER USER user_name DROP white_list */ -#line 108 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy785, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy712); } -#line 5300 "sql.c" break; case 35: /* cmd ::= DROP USER user_name */ -#line 109 "sql.y" { pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy785); } -#line 5305 "sql.c" break; case 36: /* sysinfo_opt ::= */ -#line 113 "sql.y" { yymsp[1].minor.yy215 = 1; } -#line 5310 "sql.c" break; case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ -#line 114 "sql.y" { yymsp[-1].minor.yy215 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } -#line 5315 "sql.c" break; case 38: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ -#line 117 "sql.y" { pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy333, &yymsp[-3].minor.yy777, &yymsp[0].minor.yy785, yymsp[-2].minor.yy56); } -#line 5320 "sql.c" break; case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ -#line 118 "sql.y" { pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy333, &yymsp[-3].minor.yy777, &yymsp[0].minor.yy785, yymsp[-2].minor.yy56); } -#line 5325 "sql.c" break; case 40: /* privileges ::= ALL */ -#line 122 "sql.y" { yymsp[0].minor.yy333 = PRIVILEGE_TYPE_ALL; } -#line 5330 "sql.c" break; case 41: /* privileges ::= priv_type_list */ case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43); -#line 123 "sql.y" { yylhsminor.yy333 = yymsp[0].minor.yy333; } -#line 5336 "sql.c" yymsp[0].minor.yy333 = yylhsminor.yy333; break; case 42: /* privileges ::= SUBSCRIBE */ -#line 124 "sql.y" { yymsp[0].minor.yy333 = PRIVILEGE_TYPE_SUBSCRIBE; } -#line 5342 "sql.c" break; case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ -#line 129 "sql.y" { yylhsminor.yy333 = yymsp[-2].minor.yy333 | yymsp[0].minor.yy333; } -#line 5347 "sql.c" yymsp[-2].minor.yy333 = yylhsminor.yy333; break; case 45: /* priv_type ::= READ */ -#line 133 "sql.y" { yymsp[0].minor.yy333 = PRIVILEGE_TYPE_READ; } -#line 5353 "sql.c" break; case 46: /* priv_type ::= WRITE */ -#line 134 "sql.y" { yymsp[0].minor.yy333 = PRIVILEGE_TYPE_WRITE; } -#line 5358 "sql.c" break; case 47: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ -#line 138 "sql.y" { yylhsminor.yy777.first = yymsp[-2].minor.yy0; yylhsminor.yy777.second = yymsp[0].minor.yy0; } -#line 5363 "sql.c" yymsp[-2].minor.yy777 = yylhsminor.yy777; break; case 48: /* priv_level ::= db_name NK_DOT NK_STAR */ -#line 139 "sql.y" { yylhsminor.yy777.first = yymsp[-2].minor.yy785; yylhsminor.yy777.second = yymsp[0].minor.yy0; } -#line 5369 "sql.c" yymsp[-2].minor.yy777 = yylhsminor.yy777; break; case 49: /* priv_level ::= db_name NK_DOT table_name */ -#line 140 "sql.y" { yylhsminor.yy777.first = yymsp[-2].minor.yy785; yylhsminor.yy777.second = yymsp[0].minor.yy785; } -#line 5375 "sql.c" yymsp[-2].minor.yy777 = yylhsminor.yy777; break; case 50: /* priv_level ::= topic_name */ -#line 141 "sql.y" { yylhsminor.yy777.first = yymsp[0].minor.yy785; yylhsminor.yy777.second = nil_token; } -#line 5381 "sql.c" yymsp[0].minor.yy777 = yylhsminor.yy777; break; case 51: /* with_opt ::= */ - case 153: /* start_opt ::= */ yytestcase(yyruleno==153); - case 157: /* end_opt ::= */ yytestcase(yyruleno==157); - case 291: /* like_pattern_opt ::= */ yytestcase(yyruleno==291); - case 372: /* subtable_opt ::= */ yytestcase(yyruleno==372); - case 495: /* case_when_else_opt ::= */ yytestcase(yyruleno==495); - case 525: /* from_clause_opt ::= */ yytestcase(yyruleno==525); - case 558: /* where_clause_opt ::= */ yytestcase(yyruleno==558); - case 567: /* twindow_clause_opt ::= */ yytestcase(yyruleno==567); - case 573: /* sliding_opt ::= */ yytestcase(yyruleno==573); - case 578: /* fill_opt ::= */ yytestcase(yyruleno==578); - case 592: /* having_clause_opt ::= */ yytestcase(yyruleno==592); - case 594: /* range_opt ::= */ yytestcase(yyruleno==594); - case 597: /* every_opt ::= */ yytestcase(yyruleno==597); - case 610: /* slimit_clause_opt ::= */ yytestcase(yyruleno==610); - case 614: /* limit_clause_opt ::= */ yytestcase(yyruleno==614); -#line 143 "sql.y" + case 154: /* start_opt ::= */ yytestcase(yyruleno==154); + case 158: /* end_opt ::= */ yytestcase(yyruleno==158); + case 292: /* like_pattern_opt ::= */ yytestcase(yyruleno==292); + case 373: /* subtable_opt ::= */ yytestcase(yyruleno==373); + case 496: /* case_when_else_opt ::= */ yytestcase(yyruleno==496); + case 526: /* from_clause_opt ::= */ yytestcase(yyruleno==526); + case 559: /* where_clause_opt ::= */ yytestcase(yyruleno==559); + case 568: /* twindow_clause_opt ::= */ yytestcase(yyruleno==568); + case 574: /* sliding_opt ::= */ yytestcase(yyruleno==574); + case 579: /* fill_opt ::= */ yytestcase(yyruleno==579); + case 593: /* having_clause_opt ::= */ yytestcase(yyruleno==593); + case 595: /* range_opt ::= */ yytestcase(yyruleno==595); + case 598: /* every_opt ::= */ yytestcase(yyruleno==598); + case 611: /* slimit_clause_opt ::= */ yytestcase(yyruleno==611); + case 615: /* limit_clause_opt ::= */ yytestcase(yyruleno==615); { yymsp[1].minor.yy56 = NULL; } -#line 5402 "sql.c" break; case 52: /* with_opt ::= WITH search_condition */ - case 526: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==526); - case 559: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==559); - case 593: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==593); -#line 144 "sql.y" + case 527: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==527); + case 560: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==560); + case 594: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==594); { yymsp[-1].minor.yy56 = yymsp[0].minor.yy56; } -#line 5410 "sql.c" break; case 53: /* cmd ::= CREATE DNODE dnode_endpoint */ -#line 147 "sql.y" { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy785, NULL); } -#line 5415 "sql.c" break; case 54: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ -#line 148 "sql.y" { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy0); } -#line 5420 "sql.c" break; case 55: /* cmd ::= DROP DNODE NK_INTEGER force_opt */ -#line 149 "sql.y" { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy425, false); } -#line 5425 "sql.c" break; case 56: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ -#line 150 "sql.y" { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy785, yymsp[0].minor.yy425, false); } -#line 5430 "sql.c" break; case 57: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ -#line 151 "sql.y" { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy425); } -#line 5435 "sql.c" break; case 58: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ -#line 152 "sql.y" { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy785, false, yymsp[0].minor.yy425); } -#line 5440 "sql.c" break; case 59: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ -#line 153 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } -#line 5445 "sql.c" break; case 60: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ -#line 154 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } -#line 5450 "sql.c" break; case 61: /* cmd ::= ALTER ALL DNODES NK_STRING */ -#line 155 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); } -#line 5455 "sql.c" break; case 62: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ -#line 156 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } -#line 5460 "sql.c" break; case 63: /* cmd ::= RESTORE DNODE NK_INTEGER */ -#line 157 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); } -#line 5465 "sql.c" break; case 64: /* dnode_endpoint ::= NK_STRING */ case 65: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==65); case 66: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==66); - case 318: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==318); - case 319: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==319); - case 320: /* sma_func_name ::= LAST */ yytestcase(yyruleno==320); - case 321: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==321); - case 418: /* db_name ::= NK_ID */ yytestcase(yyruleno==418); - case 419: /* table_name ::= NK_ID */ yytestcase(yyruleno==419); - case 420: /* column_name ::= NK_ID */ yytestcase(yyruleno==420); - case 421: /* function_name ::= NK_ID */ yytestcase(yyruleno==421); - case 422: /* table_alias ::= NK_ID */ yytestcase(yyruleno==422); - case 423: /* column_alias ::= NK_ID */ yytestcase(yyruleno==423); - case 424: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==424); - case 425: /* user_name ::= NK_ID */ yytestcase(yyruleno==425); - case 426: /* topic_name ::= NK_ID */ yytestcase(yyruleno==426); - case 427: /* stream_name ::= NK_ID */ yytestcase(yyruleno==427); - case 428: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==428); - case 429: /* index_name ::= NK_ID */ yytestcase(yyruleno==429); - case 471: /* noarg_func ::= NOW */ yytestcase(yyruleno==471); - case 472: /* noarg_func ::= TODAY */ yytestcase(yyruleno==472); - case 473: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==473); - case 474: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==474); - case 475: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==475); - case 476: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==476); - case 477: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==477); - case 478: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==478); - case 479: /* noarg_func ::= USER */ yytestcase(yyruleno==479); - case 480: /* star_func ::= COUNT */ yytestcase(yyruleno==480); - case 481: /* star_func ::= FIRST */ yytestcase(yyruleno==481); - case 482: /* star_func ::= LAST */ yytestcase(yyruleno==482); - case 483: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==483); -#line 161 "sql.y" + case 319: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==319); + case 320: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==320); + case 321: /* sma_func_name ::= LAST */ yytestcase(yyruleno==321); + case 322: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==322); + case 419: /* db_name ::= NK_ID */ yytestcase(yyruleno==419); + case 420: /* table_name ::= NK_ID */ yytestcase(yyruleno==420); + case 421: /* column_name ::= NK_ID */ yytestcase(yyruleno==421); + case 422: /* function_name ::= NK_ID */ yytestcase(yyruleno==422); + case 423: /* table_alias ::= NK_ID */ yytestcase(yyruleno==423); + case 424: /* column_alias ::= NK_ID */ yytestcase(yyruleno==424); + case 425: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==425); + case 426: /* user_name ::= NK_ID */ yytestcase(yyruleno==426); + case 427: /* topic_name ::= NK_ID */ yytestcase(yyruleno==427); + case 428: /* stream_name ::= NK_ID */ yytestcase(yyruleno==428); + case 429: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==429); + case 430: /* index_name ::= NK_ID */ yytestcase(yyruleno==430); + case 472: /* noarg_func ::= NOW */ yytestcase(yyruleno==472); + case 473: /* noarg_func ::= TODAY */ yytestcase(yyruleno==473); + case 474: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==474); + case 475: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==475); + case 476: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==476); + case 477: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==477); + case 478: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==478); + case 479: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==479); + case 480: /* noarg_func ::= USER */ yytestcase(yyruleno==480); + case 481: /* star_func ::= COUNT */ yytestcase(yyruleno==481); + case 482: /* star_func ::= FIRST */ yytestcase(yyruleno==482); + case 483: /* star_func ::= LAST */ yytestcase(yyruleno==483); + case 484: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==484); { yylhsminor.yy785 = yymsp[0].minor.yy0; } -#line 5501 "sql.c" yymsp[0].minor.yy785 = yylhsminor.yy785; break; case 67: /* force_opt ::= */ case 91: /* not_exists_opt ::= */ yytestcase(yyruleno==91); case 93: /* exists_opt ::= */ yytestcase(yyruleno==93); - case 339: /* analyze_opt ::= */ yytestcase(yyruleno==339); - case 346: /* agg_func_opt ::= */ yytestcase(yyruleno==346); - case 352: /* or_replace_opt ::= */ yytestcase(yyruleno==352); - case 374: /* ignore_opt ::= */ yytestcase(yyruleno==374); - case 546: /* tag_mode_opt ::= */ yytestcase(yyruleno==546); - case 548: /* set_quantifier_opt ::= */ yytestcase(yyruleno==548); -#line 167 "sql.y" + case 340: /* analyze_opt ::= */ yytestcase(yyruleno==340); + case 347: /* agg_func_opt ::= */ yytestcase(yyruleno==347); + case 353: /* or_replace_opt ::= */ yytestcase(yyruleno==353); + case 375: /* ignore_opt ::= */ yytestcase(yyruleno==375); + case 547: /* tag_mode_opt ::= */ yytestcase(yyruleno==547); + case 549: /* set_quantifier_opt ::= */ yytestcase(yyruleno==549); { yymsp[1].minor.yy425 = false; } -#line 5515 "sql.c" break; case 68: /* force_opt ::= FORCE */ case 69: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==69); - case 340: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==340); - case 347: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==347); - case 547: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==547); - case 549: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==549); -#line 168 "sql.y" + case 341: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==341); + case 348: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==348); + case 548: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==548); + case 550: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==550); { yymsp[0].minor.yy425 = true; } -#line 5525 "sql.c" break; case 70: /* cmd ::= ALTER LOCAL NK_STRING */ -#line 175 "sql.y" { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } -#line 5530 "sql.c" break; case 71: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ -#line 176 "sql.y" { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } -#line 5535 "sql.c" break; case 72: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ -#line 179 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); } -#line 5540 "sql.c" break; case 73: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ -#line 180 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); } -#line 5545 "sql.c" break; case 74: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ -#line 181 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); } -#line 5550 "sql.c" break; case 75: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ -#line 184 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); } -#line 5555 "sql.c" break; case 76: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ -#line 185 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); } -#line 5560 "sql.c" break; case 77: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ -#line 188 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); } -#line 5565 "sql.c" break; case 78: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ -#line 189 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); } -#line 5570 "sql.c" break; case 79: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ -#line 192 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); } -#line 5575 "sql.c" break; case 80: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ -#line 193 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } -#line 5580 "sql.c" break; case 81: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ -#line 194 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); } -#line 5585 "sql.c" break; case 82: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ -#line 197 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); } -#line 5590 "sql.c" break; case 83: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -#line 200 "sql.y" { pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy425, &yymsp[-1].minor.yy785, yymsp[0].minor.yy56); } -#line 5595 "sql.c" break; case 84: /* cmd ::= DROP DATABASE exists_opt db_name */ -#line 201 "sql.y" { pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy425, &yymsp[0].minor.yy785); } -#line 5600 "sql.c" break; case 85: /* cmd ::= USE db_name */ -#line 202 "sql.y" { pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy785); } -#line 5605 "sql.c" break; case 86: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -#line 203 "sql.y" { pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy785, yymsp[0].minor.yy56); } -#line 5610 "sql.c" break; case 87: /* cmd ::= FLUSH DATABASE db_name */ -#line 204 "sql.y" { pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy785); } -#line 5615 "sql.c" break; case 88: /* cmd ::= TRIM DATABASE db_name speed_opt */ -#line 205 "sql.y" { pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy785, yymsp[0].minor.yy676); } -#line 5620 "sql.c" break; case 89: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */ -#line 206 "sql.y" { pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy785, yymsp[-1].minor.yy56, yymsp[0].minor.yy56); } -#line 5625 "sql.c" break; case 90: /* not_exists_opt ::= IF NOT EXISTS */ -#line 210 "sql.y" { yymsp[-2].minor.yy425 = true; } -#line 5630 "sql.c" break; case 92: /* exists_opt ::= IF EXISTS */ - case 353: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==353); - case 375: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==375); -#line 215 "sql.y" + case 354: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==354); + case 376: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==376); { yymsp[-1].minor.yy425 = true; } -#line 5637 "sql.c" break; case 94: /* db_options ::= */ -#line 218 "sql.y" { yymsp[1].minor.yy56 = createDefaultDatabaseOptions(pCxt); } -#line 5642 "sql.c" break; case 95: /* db_options ::= db_options BUFFER NK_INTEGER */ -#line 219 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } -#line 5647 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 96: /* db_options ::= db_options CACHEMODEL NK_STRING */ -#line 220 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } -#line 5653 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 97: /* db_options ::= db_options CACHESIZE NK_INTEGER */ -#line 221 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } -#line 5659 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 98: /* db_options ::= db_options COMP NK_INTEGER */ -#line 222 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_COMP, &yymsp[0].minor.yy0); } -#line 5665 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 99: /* db_options ::= db_options DURATION NK_INTEGER */ case 100: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==100); -#line 223 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } -#line 5672 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 101: /* db_options ::= db_options MAXROWS NK_INTEGER */ -#line 225 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } -#line 5678 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 102: /* db_options ::= db_options MINROWS NK_INTEGER */ -#line 226 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } -#line 5684 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 103: /* db_options ::= db_options KEEP integer_list */ case 104: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==104); -#line 227 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_KEEP, yymsp[0].minor.yy712); } -#line 5691 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 105: /* db_options ::= db_options PAGES NK_INTEGER */ -#line 229 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } -#line 5697 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 106: /* db_options ::= db_options PAGESIZE NK_INTEGER */ -#line 230 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } -#line 5703 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 107: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ -#line 231 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } -#line 5709 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 108: /* db_options ::= db_options PRECISION NK_STRING */ -#line 232 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } -#line 5715 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 109: /* db_options ::= db_options REPLICA NK_INTEGER */ -#line 233 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } -#line 5721 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 110: /* db_options ::= db_options VGROUPS NK_INTEGER */ -#line 235 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } -#line 5727 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 111: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -#line 236 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } -#line 5733 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 112: /* db_options ::= db_options RETENTIONS retention_list */ -#line 237 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_RETENTIONS, yymsp[0].minor.yy712); } -#line 5739 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 113: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ -#line 238 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } -#line 5745 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 114: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ -#line 239 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_WAL, &yymsp[0].minor.yy0); } -#line 5751 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 115: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ -#line 240 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } -#line 5757 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 116: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ -#line 241 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } -#line 5763 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 117: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ -#line 242 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-3].minor.yy56, DB_OPTION_WAL_RETENTION_PERIOD, &t); } -#line 5773 "sql.c" yymsp[-3].minor.yy56 = yylhsminor.yy56; break; case 118: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ -#line 247 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } -#line 5779 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 119: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ -#line 248 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-3].minor.yy56, DB_OPTION_WAL_RETENTION_SIZE, &t); } -#line 5789 "sql.c" yymsp[-3].minor.yy56 = yylhsminor.yy56; break; case 120: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ -#line 253 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } -#line 5795 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 121: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ -#line 254 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } -#line 5801 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 122: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ -#line 255 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } -#line 5807 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 123: /* db_options ::= db_options TABLE_PREFIX signed */ -#line 256 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy56); } -#line 5813 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 124: /* db_options ::= db_options TABLE_SUFFIX signed */ -#line 257 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy56); } -#line 5819 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 125: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ -#line 258 "sql.y" { yylhsminor.yy56 = setDatabaseOption(pCxt, yymsp[-2].minor.yy56, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); } -#line 5825 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 126: /* alter_db_options ::= alter_db_option */ -#line 260 "sql.y" { yylhsminor.yy56 = createAlterDatabaseOptions(pCxt); yylhsminor.yy56 = setAlterDatabaseOption(pCxt, yylhsminor.yy56, &yymsp[0].minor.yy893); } -#line 5831 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; case 127: /* alter_db_options ::= alter_db_options alter_db_option */ -#line 261 "sql.y" { yylhsminor.yy56 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy56, &yymsp[0].minor.yy893); } -#line 5837 "sql.c" yymsp[-1].minor.yy56 = yylhsminor.yy56; break; case 128: /* alter_db_option ::= BUFFER NK_INTEGER */ -#line 265 "sql.y" { yymsp[-1].minor.yy893.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; } -#line 5843 "sql.c" break; case 129: /* alter_db_option ::= CACHEMODEL NK_STRING */ -#line 266 "sql.y" { yymsp[-1].minor.yy893.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; } -#line 5848 "sql.c" break; case 130: /* alter_db_option ::= CACHESIZE NK_INTEGER */ -#line 267 "sql.y" { yymsp[-1].minor.yy893.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; } -#line 5853 "sql.c" break; case 131: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ -#line 268 "sql.y" { yymsp[-1].minor.yy893.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; } -#line 5858 "sql.c" break; case 132: /* alter_db_option ::= KEEP integer_list */ case 133: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==133); -#line 269 "sql.y" { yymsp[-1].minor.yy893.type = DB_OPTION_KEEP; yymsp[-1].minor.yy893.pList = yymsp[0].minor.yy712; } -#line 5864 "sql.c" break; case 134: /* alter_db_option ::= PAGES NK_INTEGER */ -#line 271 "sql.y" { yymsp[-1].minor.yy893.type = DB_OPTION_PAGES; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; } -#line 5869 "sql.c" break; case 135: /* alter_db_option ::= REPLICA NK_INTEGER */ -#line 272 "sql.y" { yymsp[-1].minor.yy893.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; } -#line 5874 "sql.c" break; case 136: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ -#line 274 "sql.y" { yymsp[-1].minor.yy893.type = DB_OPTION_WAL; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; } -#line 5879 "sql.c" break; case 137: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ -#line 275 "sql.y" { yymsp[-1].minor.yy893.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; } -#line 5884 "sql.c" break; case 138: /* alter_db_option ::= MINROWS NK_INTEGER */ -#line 276 "sql.y" { yymsp[-1].minor.yy893.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; } -#line 5889 "sql.c" break; case 139: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ -#line 277 "sql.y" { yymsp[-1].minor.yy893.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; } -#line 5894 "sql.c" break; case 140: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ -#line 278 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yymsp[-2].minor.yy893.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy893.val = t; } -#line 5903 "sql.c" break; case 141: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ -#line 283 "sql.y" { yymsp[-1].minor.yy893.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; } -#line 5908 "sql.c" break; case 142: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ -#line 284 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yymsp[-2].minor.yy893.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy893.val = t; } -#line 5917 "sql.c" break; case 143: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ -#line 289 "sql.y" { yymsp[-1].minor.yy893.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; } -#line 5922 "sql.c" break; case 144: /* integer_list ::= NK_INTEGER */ -#line 293 "sql.y" { yylhsminor.yy712 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } -#line 5927 "sql.c" yymsp[0].minor.yy712 = yylhsminor.yy712; break; case 145: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ - case 387: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==387); -#line 294 "sql.y" + case 388: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==388); { yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-2].minor.yy712, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } -#line 5934 "sql.c" yymsp[-2].minor.yy712 = yylhsminor.yy712; break; case 146: /* variable_list ::= NK_VARIABLE */ -#line 298 "sql.y" { yylhsminor.yy712 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } -#line 5940 "sql.c" yymsp[0].minor.yy712 = yylhsminor.yy712; break; case 147: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -#line 299 "sql.y" { yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-2].minor.yy712, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } -#line 5946 "sql.c" yymsp[-2].minor.yy712 = yylhsminor.yy712; break; case 148: /* retention_list ::= retention */ - case 178: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==178); - case 181: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==181); - case 188: /* column_def_list ::= column_def */ yytestcase(yyruleno==188); - case 232: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==232); - case 237: /* col_name_list ::= col_name */ yytestcase(yyruleno==237); - case 297: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==297); - case 314: /* func_list ::= func */ yytestcase(yyruleno==314); - case 416: /* literal_list ::= signed_literal */ yytestcase(yyruleno==416); - case 486: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==486); - case 492: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==492); - case 551: /* select_list ::= select_item */ yytestcase(yyruleno==551); - case 562: /* partition_list ::= partition_item */ yytestcase(yyruleno==562); - case 621: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==621); -#line 303 "sql.y" + case 179: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==179); + case 182: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==182); + case 189: /* column_def_list ::= column_def */ yytestcase(yyruleno==189); + case 233: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==233); + case 238: /* col_name_list ::= col_name */ yytestcase(yyruleno==238); + case 298: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==298); + case 315: /* func_list ::= func */ yytestcase(yyruleno==315); + case 417: /* literal_list ::= signed_literal */ yytestcase(yyruleno==417); + case 487: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==487); + case 493: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==493); + case 552: /* select_list ::= select_item */ yytestcase(yyruleno==552); + case 563: /* partition_list ::= partition_item */ yytestcase(yyruleno==563); + case 622: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==622); { yylhsminor.yy712 = createNodeList(pCxt, yymsp[0].minor.yy56); } -#line 5965 "sql.c" yymsp[0].minor.yy712 = yylhsminor.yy712; break; case 149: /* retention_list ::= retention_list NK_COMMA retention */ - case 182: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==182); - case 189: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==189); - case 233: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==233); - case 238: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==238); - case 298: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==298); - case 315: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==315); - case 417: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==417); - case 487: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==487); - case 552: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==552); - case 563: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==563); - case 622: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==622); -#line 304 "sql.y" + case 183: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==183); + case 190: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==190); + case 234: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==234); + case 239: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==239); + case 299: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==299); + case 316: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==316); + case 418: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==418); + case 488: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==488); + case 553: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==553); + case 564: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==564); + case 623: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==623); { yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-2].minor.yy712, yymsp[0].minor.yy56); } -#line 5982 "sql.c" yymsp[-2].minor.yy712 = yylhsminor.yy712; break; case 150: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ -#line 306 "sql.y" + case 151: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==151); { yylhsminor.yy56 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } -#line 5988 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 151: /* speed_opt ::= */ - case 348: /* bufsize_opt ::= */ yytestcase(yyruleno==348); -#line 310 "sql.y" + case 152: /* speed_opt ::= */ + case 349: /* bufsize_opt ::= */ yytestcase(yyruleno==349); { yymsp[1].minor.yy676 = 0; } -#line 5995 "sql.c" break; - case 152: /* speed_opt ::= BWLIMIT NK_INTEGER */ - case 349: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==349); -#line 311 "sql.y" + case 153: /* speed_opt ::= BWLIMIT NK_INTEGER */ + case 350: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==350); { yymsp[-1].minor.yy676 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } -#line 6001 "sql.c" break; - case 154: /* start_opt ::= START WITH NK_INTEGER */ - case 158: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==158); -#line 314 "sql.y" + case 155: /* start_opt ::= START WITH NK_INTEGER */ + case 159: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==159); { yymsp[-2].minor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } -#line 6007 "sql.c" break; - case 155: /* start_opt ::= START WITH NK_STRING */ - case 159: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==159); -#line 315 "sql.y" + case 156: /* start_opt ::= START WITH NK_STRING */ + case 160: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==160); { yymsp[-2].minor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } -#line 6013 "sql.c" break; - case 156: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ - case 160: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==160); -#line 316 "sql.y" + case 157: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ + case 161: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==161); { yymsp[-3].minor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } -#line 6019 "sql.c" break; - case 161: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - case 163: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==163); -#line 325 "sql.y" + case 162: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + case 164: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==164); { pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy425, yymsp[-5].minor.yy56, yymsp[-3].minor.yy712, yymsp[-1].minor.yy712, yymsp[0].minor.yy56); } -#line 6025 "sql.c" break; - case 162: /* cmd ::= CREATE TABLE multi_create_clause */ -#line 326 "sql.y" + case 163: /* cmd ::= CREATE TABLE multi_create_clause */ { pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy712); } -#line 6030 "sql.c" break; - case 164: /* cmd ::= DROP TABLE multi_drop_clause */ -#line 329 "sql.y" + case 165: /* cmd ::= DROP TABLE multi_drop_clause */ { pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy712); } -#line 6035 "sql.c" break; - case 165: /* cmd ::= DROP STABLE exists_opt full_table_name */ -#line 330 "sql.y" + case 166: /* cmd ::= DROP STABLE exists_opt full_table_name */ { pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy425, yymsp[0].minor.yy56); } -#line 6040 "sql.c" break; - case 166: /* cmd ::= ALTER TABLE alter_table_clause */ - case 389: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==389); - case 390: /* cmd ::= insert_query */ yytestcase(yyruleno==390); -#line 332 "sql.y" + case 167: /* cmd ::= ALTER TABLE alter_table_clause */ + case 390: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==390); + case 391: /* cmd ::= insert_query */ yytestcase(yyruleno==391); { pCxt->pRootNode = yymsp[0].minor.yy56; } -#line 6047 "sql.c" break; - case 167: /* cmd ::= ALTER STABLE alter_table_clause */ -#line 333 "sql.y" + case 168: /* cmd ::= ALTER STABLE alter_table_clause */ { pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy56); } -#line 6052 "sql.c" break; - case 168: /* alter_table_clause ::= full_table_name alter_table_options */ -#line 335 "sql.y" + case 169: /* alter_table_clause ::= full_table_name alter_table_options */ { yylhsminor.yy56 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy56, yymsp[0].minor.yy56); } -#line 6057 "sql.c" yymsp[-1].minor.yy56 = yylhsminor.yy56; break; - case 169: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -#line 337 "sql.y" + case 170: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ { yylhsminor.yy56 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy56, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy785, yymsp[0].minor.yy448); } -#line 6063 "sql.c" yymsp[-4].minor.yy56 = yylhsminor.yy56; break; - case 170: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ -#line 338 "sql.y" + case 171: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ { yylhsminor.yy56 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy56, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy785); } -#line 6069 "sql.c" yymsp[-3].minor.yy56 = yylhsminor.yy56; break; - case 171: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -#line 340 "sql.y" + case 172: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ { yylhsminor.yy56 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy56, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy785, yymsp[0].minor.yy448); } -#line 6075 "sql.c" yymsp[-4].minor.yy56 = yylhsminor.yy56; break; - case 172: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -#line 342 "sql.y" + case 173: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ { yylhsminor.yy56 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy56, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy785, &yymsp[0].minor.yy785); } -#line 6081 "sql.c" yymsp[-4].minor.yy56 = yylhsminor.yy56; break; - case 173: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -#line 344 "sql.y" + case 174: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ { yylhsminor.yy56 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy56, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy785, yymsp[0].minor.yy448); } -#line 6087 "sql.c" yymsp[-4].minor.yy56 = yylhsminor.yy56; break; - case 174: /* alter_table_clause ::= full_table_name DROP TAG column_name */ -#line 345 "sql.y" + case 175: /* alter_table_clause ::= full_table_name DROP TAG column_name */ { yylhsminor.yy56 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy56, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy785); } -#line 6093 "sql.c" yymsp[-3].minor.yy56 = yylhsminor.yy56; break; - case 175: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -#line 347 "sql.y" + case 176: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ { yylhsminor.yy56 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy56, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy785, yymsp[0].minor.yy448); } -#line 6099 "sql.c" yymsp[-4].minor.yy56 = yylhsminor.yy56; break; - case 176: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -#line 349 "sql.y" + case 177: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ { yylhsminor.yy56 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy56, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy785, &yymsp[0].minor.yy785); } -#line 6105 "sql.c" yymsp[-4].minor.yy56 = yylhsminor.yy56; break; - case 177: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ -#line 351 "sql.y" + case 178: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ { yylhsminor.yy56 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy56, &yymsp[-2].minor.yy785, yymsp[0].minor.yy56); } -#line 6111 "sql.c" yymsp[-5].minor.yy56 = yylhsminor.yy56; break; - case 179: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 493: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==493); -#line 356 "sql.y" + case 180: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ + case 494: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==494); { yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-1].minor.yy712, yymsp[0].minor.yy56); } -#line 6118 "sql.c" yymsp[-1].minor.yy712 = yylhsminor.yy712; break; - case 180: /* 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 */ -#line 360 "sql.y" + case 181: /* 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.yy56 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy425, yymsp[-8].minor.yy56, yymsp[-6].minor.yy56, yymsp[-5].minor.yy712, yymsp[-2].minor.yy712, yymsp[0].minor.yy56); } -#line 6124 "sql.c" yymsp[-9].minor.yy56 = yylhsminor.yy56; break; - case 183: /* drop_table_clause ::= exists_opt full_table_name */ -#line 367 "sql.y" + case 184: /* drop_table_clause ::= exists_opt full_table_name */ { yylhsminor.yy56 = createDropTableClause(pCxt, yymsp[-1].minor.yy425, yymsp[0].minor.yy56); } -#line 6130 "sql.c" yymsp[-1].minor.yy56 = yylhsminor.yy56; break; - case 185: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ - case 359: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==359); -#line 372 "sql.y" + case 186: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ + case 360: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==360); { yymsp[-2].minor.yy712 = yymsp[-1].minor.yy712; } -#line 6137 "sql.c" break; - case 186: /* full_table_name ::= table_name */ -#line 374 "sql.y" + case 187: /* full_table_name ::= table_name */ { yylhsminor.yy56 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy785, NULL); } -#line 6142 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 187: /* full_table_name ::= db_name NK_DOT table_name */ -#line 375 "sql.y" + case 188: /* full_table_name ::= db_name NK_DOT table_name */ { yylhsminor.yy56 = createRealTableNode(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy785, NULL); } -#line 6148 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 190: /* column_def ::= column_name type_name */ -#line 382 "sql.y" + case 191: /* column_def ::= column_name type_name */ { yylhsminor.yy56 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy785, yymsp[0].minor.yy448, NULL); } -#line 6154 "sql.c" yymsp[-1].minor.yy56 = yylhsminor.yy56; break; - case 191: /* type_name ::= BOOL */ -#line 387 "sql.y" + case 192: /* type_name ::= BOOL */ { yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_BOOL); } -#line 6160 "sql.c" break; - case 192: /* type_name ::= TINYINT */ -#line 388 "sql.y" + case 193: /* type_name ::= TINYINT */ { yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_TINYINT); } -#line 6165 "sql.c" break; - case 193: /* type_name ::= SMALLINT */ -#line 389 "sql.y" + case 194: /* type_name ::= SMALLINT */ { yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_SMALLINT); } -#line 6170 "sql.c" break; - case 194: /* type_name ::= INT */ - case 195: /* type_name ::= INTEGER */ yytestcase(yyruleno==195); -#line 390 "sql.y" + case 195: /* type_name ::= INT */ + case 196: /* type_name ::= INTEGER */ yytestcase(yyruleno==196); { yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_INT); } -#line 6176 "sql.c" break; - case 196: /* type_name ::= BIGINT */ -#line 392 "sql.y" + case 197: /* type_name ::= BIGINT */ { yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_BIGINT); } -#line 6181 "sql.c" break; - case 197: /* type_name ::= FLOAT */ -#line 393 "sql.y" + case 198: /* type_name ::= FLOAT */ { yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_FLOAT); } -#line 6186 "sql.c" break; - case 198: /* type_name ::= DOUBLE */ -#line 394 "sql.y" + case 199: /* type_name ::= DOUBLE */ { yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_DOUBLE); } -#line 6191 "sql.c" break; - case 199: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -#line 395 "sql.y" + case 200: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } -#line 6196 "sql.c" break; - case 200: /* type_name ::= TIMESTAMP */ -#line 396 "sql.y" + case 201: /* type_name ::= TIMESTAMP */ { yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } -#line 6201 "sql.c" break; - case 201: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -#line 397 "sql.y" + case 202: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } -#line 6206 "sql.c" break; - case 202: /* type_name ::= TINYINT UNSIGNED */ -#line 398 "sql.y" + case 203: /* type_name ::= TINYINT UNSIGNED */ { yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_UTINYINT); } -#line 6211 "sql.c" break; - case 203: /* type_name ::= SMALLINT UNSIGNED */ -#line 399 "sql.y" + case 204: /* type_name ::= SMALLINT UNSIGNED */ { yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_USMALLINT); } -#line 6216 "sql.c" break; - case 204: /* type_name ::= INT UNSIGNED */ -#line 400 "sql.y" + case 205: /* type_name ::= INT UNSIGNED */ { yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_UINT); } -#line 6221 "sql.c" break; - case 205: /* type_name ::= BIGINT UNSIGNED */ -#line 401 "sql.y" + case 206: /* type_name ::= BIGINT UNSIGNED */ { yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_UBIGINT); } -#line 6226 "sql.c" break; - case 206: /* type_name ::= JSON */ -#line 402 "sql.y" + case 207: /* type_name ::= JSON */ { yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_JSON); } -#line 6231 "sql.c" break; - case 207: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -#line 403 "sql.y" + case 208: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } -#line 6236 "sql.c" break; - case 208: /* type_name ::= MEDIUMBLOB */ -#line 404 "sql.y" + case 209: /* type_name ::= MEDIUMBLOB */ { yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } -#line 6241 "sql.c" break; - case 209: /* type_name ::= BLOB */ -#line 405 "sql.y" + case 210: /* type_name ::= BLOB */ { yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_BLOB); } -#line 6246 "sql.c" break; - case 210: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -#line 406 "sql.y" + case 211: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } -#line 6251 "sql.c" break; - case 211: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ -#line 407 "sql.y" + case 212: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } -#line 6256 "sql.c" break; - case 212: /* type_name ::= DECIMAL */ -#line 408 "sql.y" + case 213: /* type_name ::= DECIMAL */ { yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_DECIMAL); } -#line 6261 "sql.c" break; - case 213: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -#line 409 "sql.y" + case 214: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy448 = createDataType(TSDB_DATA_TYPE_DECIMAL); } -#line 6266 "sql.c" break; - case 214: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -#line 410 "sql.y" + case 215: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ { yymsp[-5].minor.yy448 = createDataType(TSDB_DATA_TYPE_DECIMAL); } -#line 6271 "sql.c" break; - case 217: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ - case 362: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==362); -#line 419 "sql.y" + case 218: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ + case 363: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==363); { yymsp[-3].minor.yy712 = yymsp[-1].minor.yy712; } -#line 6277 "sql.c" break; - case 218: /* table_options ::= */ -#line 421 "sql.y" + case 219: /* table_options ::= */ { yymsp[1].minor.yy56 = createDefaultTableOptions(pCxt); } -#line 6282 "sql.c" break; - case 219: /* table_options ::= table_options COMMENT NK_STRING */ -#line 422 "sql.y" + case 220: /* table_options ::= table_options COMMENT NK_STRING */ { yylhsminor.yy56 = setTableOption(pCxt, yymsp[-2].minor.yy56, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } -#line 6287 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 220: /* table_options ::= table_options MAX_DELAY duration_list */ -#line 423 "sql.y" + case 221: /* table_options ::= table_options MAX_DELAY duration_list */ { yylhsminor.yy56 = setTableOption(pCxt, yymsp[-2].minor.yy56, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy712); } -#line 6293 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 221: /* table_options ::= table_options WATERMARK duration_list */ -#line 424 "sql.y" + case 222: /* table_options ::= table_options WATERMARK duration_list */ { yylhsminor.yy56 = setTableOption(pCxt, yymsp[-2].minor.yy56, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy712); } -#line 6299 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 222: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -#line 425 "sql.y" + case 223: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ { yylhsminor.yy56 = setTableOption(pCxt, yymsp[-4].minor.yy56, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy712); } -#line 6305 "sql.c" yymsp[-4].minor.yy56 = yylhsminor.yy56; break; - case 223: /* table_options ::= table_options TTL NK_INTEGER */ -#line 426 "sql.y" + case 224: /* table_options ::= table_options TTL NK_INTEGER */ { yylhsminor.yy56 = setTableOption(pCxt, yymsp[-2].minor.yy56, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } -#line 6311 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 224: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -#line 427 "sql.y" + case 225: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ { yylhsminor.yy56 = setTableOption(pCxt, yymsp[-4].minor.yy56, TABLE_OPTION_SMA, yymsp[-1].minor.yy712); } -#line 6317 "sql.c" yymsp[-4].minor.yy56 = yylhsminor.yy56; break; - case 225: /* table_options ::= table_options DELETE_MARK duration_list */ -#line 428 "sql.y" + case 226: /* table_options ::= table_options DELETE_MARK duration_list */ { yylhsminor.yy56 = setTableOption(pCxt, yymsp[-2].minor.yy56, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy712); } -#line 6323 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 226: /* alter_table_options ::= alter_table_option */ -#line 430 "sql.y" + case 227: /* alter_table_options ::= alter_table_option */ { yylhsminor.yy56 = createAlterTableOptions(pCxt); yylhsminor.yy56 = setTableOption(pCxt, yylhsminor.yy56, yymsp[0].minor.yy893.type, &yymsp[0].minor.yy893.val); } -#line 6329 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 227: /* alter_table_options ::= alter_table_options alter_table_option */ -#line 431 "sql.y" + case 228: /* alter_table_options ::= alter_table_options alter_table_option */ { yylhsminor.yy56 = setTableOption(pCxt, yymsp[-1].minor.yy56, yymsp[0].minor.yy893.type, &yymsp[0].minor.yy893.val); } -#line 6335 "sql.c" yymsp[-1].minor.yy56 = yylhsminor.yy56; break; - case 228: /* alter_table_option ::= COMMENT NK_STRING */ -#line 435 "sql.y" + case 229: /* alter_table_option ::= COMMENT NK_STRING */ { yymsp[-1].minor.yy893.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; } -#line 6341 "sql.c" break; - case 229: /* alter_table_option ::= TTL NK_INTEGER */ -#line 436 "sql.y" + case 230: /* alter_table_option ::= TTL NK_INTEGER */ { yymsp[-1].minor.yy893.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy893.val = yymsp[0].minor.yy0; } -#line 6346 "sql.c" break; - case 230: /* duration_list ::= duration_literal */ - case 447: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==447); -#line 440 "sql.y" + case 231: /* duration_list ::= duration_literal */ + case 448: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==448); { yylhsminor.yy712 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy56)); } -#line 6352 "sql.c" yymsp[0].minor.yy712 = yylhsminor.yy712; break; - case 231: /* duration_list ::= duration_list NK_COMMA duration_literal */ - case 448: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==448); -#line 441 "sql.y" + case 232: /* duration_list ::= duration_list NK_COMMA duration_literal */ + case 449: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==449); { yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-2].minor.yy712, releaseRawExprNode(pCxt, yymsp[0].minor.yy56)); } -#line 6359 "sql.c" yymsp[-2].minor.yy712 = yylhsminor.yy712; break; - case 234: /* rollup_func_name ::= function_name */ -#line 448 "sql.y" + case 235: /* rollup_func_name ::= function_name */ { yylhsminor.yy56 = createFunctionNode(pCxt, &yymsp[0].minor.yy785, NULL); } -#line 6365 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 235: /* rollup_func_name ::= FIRST */ - case 236: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==236); - case 300: /* tag_item ::= QTAGS */ yytestcase(yyruleno==300); -#line 449 "sql.y" + case 236: /* rollup_func_name ::= FIRST */ + case 237: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==237); + case 301: /* tag_item ::= QTAGS */ yytestcase(yyruleno==301); { yylhsminor.yy56 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } -#line 6373 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 239: /* col_name ::= column_name */ - case 301: /* tag_item ::= column_name */ yytestcase(yyruleno==301); -#line 457 "sql.y" + case 240: /* col_name ::= column_name */ + case 302: /* tag_item ::= column_name */ yytestcase(yyruleno==302); { yylhsminor.yy56 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy785); } -#line 6380 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 240: /* cmd ::= SHOW DNODES */ -#line 460 "sql.y" + case 241: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } -#line 6386 "sql.c" break; - case 241: /* cmd ::= SHOW USERS */ -#line 461 "sql.y" + case 242: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } -#line 6391 "sql.c" break; - case 242: /* cmd ::= SHOW USER PRIVILEGES */ -#line 462 "sql.y" + case 243: /* cmd ::= SHOW USER PRIVILEGES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); } -#line 6396 "sql.c" break; - case 243: /* cmd ::= SHOW db_kind_opt DATABASES */ -#line 463 "sql.y" + case 244: /* cmd ::= SHOW db_kind_opt DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy33); } -#line 6404 "sql.c" break; - case 244: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ -#line 467 "sql.y" + case 245: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ { pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy205, yymsp[0].minor.yy56, OP_TYPE_LIKE); } -#line 6411 "sql.c" break; - case 245: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -#line 470 "sql.y" + case 246: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy56, yymsp[0].minor.yy56, OP_TYPE_LIKE); } -#line 6416 "sql.c" break; - case 246: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -#line 471 "sql.y" + case 247: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy56, NULL, OP_TYPE_LIKE); } -#line 6421 "sql.c" break; - case 247: /* cmd ::= SHOW MNODES */ -#line 472 "sql.y" + case 248: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } -#line 6426 "sql.c" break; - case 248: /* cmd ::= SHOW QNODES */ -#line 474 "sql.y" + case 249: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } -#line 6431 "sql.c" break; - case 249: /* cmd ::= SHOW FUNCTIONS */ -#line 475 "sql.y" + case 250: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } -#line 6436 "sql.c" break; - case 250: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -#line 476 "sql.y" + case 251: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy56, yymsp[-1].minor.yy56, OP_TYPE_EQUAL); } -#line 6441 "sql.c" break; - case 251: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ -#line 477 "sql.y" + case 252: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy785), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy785), OP_TYPE_EQUAL); } -#line 6446 "sql.c" break; - case 252: /* cmd ::= SHOW STREAMS */ -#line 478 "sql.y" + case 253: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } -#line 6451 "sql.c" break; - case 253: /* cmd ::= SHOW ACCOUNTS */ -#line 479 "sql.y" + case 254: /* cmd ::= SHOW ACCOUNTS */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } -#line 6456 "sql.c" break; - case 254: /* cmd ::= SHOW APPS */ -#line 480 "sql.y" + case 255: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } -#line 6461 "sql.c" break; - case 255: /* cmd ::= SHOW CONNECTIONS */ -#line 481 "sql.y" + case 256: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } -#line 6466 "sql.c" break; - case 256: /* cmd ::= SHOW LICENCES */ - case 257: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==257); -#line 482 "sql.y" + case 257: /* cmd ::= SHOW LICENCES */ + case 258: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==258); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } -#line 6472 "sql.c" break; - case 258: /* cmd ::= SHOW CREATE DATABASE db_name */ -#line 484 "sql.y" + case 259: /* cmd ::= SHOW CREATE DATABASE db_name */ { pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy785); } -#line 6477 "sql.c" break; - case 259: /* cmd ::= SHOW CREATE TABLE full_table_name */ -#line 485 "sql.y" + case 260: /* cmd ::= SHOW CREATE TABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy56); } -#line 6482 "sql.c" break; - case 260: /* cmd ::= SHOW CREATE STABLE full_table_name */ -#line 486 "sql.y" + case 261: /* cmd ::= SHOW CREATE STABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy56); } -#line 6487 "sql.c" break; - case 261: /* cmd ::= SHOW QUERIES */ -#line 487 "sql.y" + case 262: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } -#line 6492 "sql.c" break; - case 262: /* cmd ::= SHOW SCORES */ -#line 488 "sql.y" + case 263: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } -#line 6497 "sql.c" break; - case 263: /* cmd ::= SHOW TOPICS */ -#line 489 "sql.y" + case 264: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } -#line 6502 "sql.c" break; - case 264: /* cmd ::= SHOW VARIABLES */ - case 265: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==265); -#line 490 "sql.y" + case 265: /* cmd ::= SHOW VARIABLES */ + case 266: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==266); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } -#line 6508 "sql.c" break; - case 266: /* cmd ::= SHOW LOCAL VARIABLES */ -#line 492 "sql.y" + case 267: /* cmd ::= SHOW LOCAL VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } -#line 6513 "sql.c" break; - case 267: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ -#line 493 "sql.y" + case 268: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ { pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy56); } -#line 6518 "sql.c" break; - case 268: /* cmd ::= SHOW BNODES */ -#line 494 "sql.y" + case 269: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } -#line 6523 "sql.c" break; - case 269: /* cmd ::= SHOW SNODES */ -#line 495 "sql.y" + case 270: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } -#line 6528 "sql.c" break; - case 270: /* cmd ::= SHOW CLUSTER */ -#line 496 "sql.y" + case 271: /* cmd ::= SHOW CLUSTER */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } -#line 6533 "sql.c" break; - case 271: /* cmd ::= SHOW TRANSACTIONS */ -#line 497 "sql.y" + case 272: /* cmd ::= SHOW TRANSACTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } -#line 6538 "sql.c" break; - case 272: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -#line 498 "sql.y" + case 273: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ { pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy56); } -#line 6543 "sql.c" break; - case 273: /* cmd ::= SHOW CONSUMERS */ -#line 499 "sql.y" + case 274: /* cmd ::= SHOW CONSUMERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } -#line 6548 "sql.c" break; - case 274: /* cmd ::= SHOW SUBSCRIPTIONS */ -#line 500 "sql.y" + case 275: /* cmd ::= SHOW SUBSCRIPTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } -#line 6553 "sql.c" break; - case 275: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ -#line 501 "sql.y" + case 276: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy56, yymsp[-1].minor.yy56, OP_TYPE_EQUAL); } -#line 6558 "sql.c" break; - case 276: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ -#line 502 "sql.y" + case 277: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy785), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy785), OP_TYPE_EQUAL); } -#line 6563 "sql.c" break; - case 277: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ -#line 503 "sql.y" + case 278: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy56, yymsp[0].minor.yy56, yymsp[-3].minor.yy712); } -#line 6568 "sql.c" break; - case 278: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ -#line 504 "sql.y" + case 279: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy785), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy785), yymsp[-4].minor.yy712); } -#line 6573 "sql.c" break; - case 279: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ -#line 505 "sql.y" + case 280: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } -#line 6578 "sql.c" break; - case 280: /* cmd ::= SHOW VNODES */ -#line 506 "sql.y" + case 281: /* cmd ::= SHOW VNODES */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); } -#line 6583 "sql.c" break; - case 281: /* cmd ::= SHOW db_name_cond_opt ALIVE */ -#line 508 "sql.y" + case 282: /* cmd ::= SHOW db_name_cond_opt ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy56, QUERY_NODE_SHOW_DB_ALIVE_STMT); } -#line 6588 "sql.c" break; - case 282: /* cmd ::= SHOW CLUSTER ALIVE */ -#line 509 "sql.y" + case 283: /* cmd ::= SHOW CLUSTER ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); } -#line 6593 "sql.c" break; - case 283: /* table_kind_db_name_cond_opt ::= */ -#line 513 "sql.y" + case 284: /* table_kind_db_name_cond_opt ::= */ { yymsp[1].minor.yy205.kind = SHOW_KIND_ALL; yymsp[1].minor.yy205.dbName = nil_token; } -#line 6598 "sql.c" break; - case 284: /* table_kind_db_name_cond_opt ::= table_kind */ -#line 514 "sql.y" + case 285: /* table_kind_db_name_cond_opt ::= table_kind */ { yylhsminor.yy205.kind = yymsp[0].minor.yy33; yylhsminor.yy205.dbName = nil_token; } -#line 6603 "sql.c" yymsp[0].minor.yy205 = yylhsminor.yy205; break; - case 285: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */ -#line 515 "sql.y" + case 286: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */ { yylhsminor.yy205.kind = SHOW_KIND_ALL; yylhsminor.yy205.dbName = yymsp[-1].minor.yy785; } -#line 6609 "sql.c" yymsp[-1].minor.yy205 = yylhsminor.yy205; break; - case 286: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ -#line 516 "sql.y" + case 287: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ { yylhsminor.yy205.kind = yymsp[-2].minor.yy33; yylhsminor.yy205.dbName = yymsp[-1].minor.yy785; } -#line 6615 "sql.c" yymsp[-2].minor.yy205 = yylhsminor.yy205; break; - case 287: /* table_kind ::= NORMAL */ -#line 520 "sql.y" + case 288: /* table_kind ::= NORMAL */ { yymsp[0].minor.yy33 = SHOW_KIND_TABLES_NORMAL; } -#line 6621 "sql.c" break; - case 288: /* table_kind ::= CHILD */ -#line 521 "sql.y" + case 289: /* table_kind ::= CHILD */ { yymsp[0].minor.yy33 = SHOW_KIND_TABLES_CHILD; } -#line 6626 "sql.c" break; - case 289: /* db_name_cond_opt ::= */ - case 294: /* from_db_opt ::= */ yytestcase(yyruleno==294); -#line 523 "sql.y" + case 290: /* db_name_cond_opt ::= */ + case 295: /* from_db_opt ::= */ yytestcase(yyruleno==295); { yymsp[1].minor.yy56 = createDefaultDatabaseCondValue(pCxt); } -#line 6632 "sql.c" break; - case 290: /* db_name_cond_opt ::= db_name NK_DOT */ -#line 524 "sql.y" + case 291: /* db_name_cond_opt ::= db_name NK_DOT */ { yylhsminor.yy56 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy785); } -#line 6637 "sql.c" yymsp[-1].minor.yy56 = yylhsminor.yy56; break; - case 292: /* like_pattern_opt ::= LIKE NK_STRING */ -#line 527 "sql.y" + case 293: /* like_pattern_opt ::= LIKE NK_STRING */ { yymsp[-1].minor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } -#line 6643 "sql.c" break; - case 293: /* table_name_cond ::= table_name */ -#line 529 "sql.y" + case 294: /* table_name_cond ::= table_name */ { yylhsminor.yy56 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy785); } -#line 6648 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 295: /* from_db_opt ::= FROM db_name */ -#line 532 "sql.y" + case 296: /* from_db_opt ::= FROM db_name */ { yymsp[-1].minor.yy56 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy785); } -#line 6654 "sql.c" break; - case 299: /* tag_item ::= TBNAME */ -#line 540 "sql.y" + case 300: /* tag_item ::= TBNAME */ { yylhsminor.yy56 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } -#line 6659 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 302: /* tag_item ::= column_name column_alias */ -#line 543 "sql.y" + case 303: /* tag_item ::= column_name column_alias */ { yylhsminor.yy56 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy785), &yymsp[0].minor.yy785); } -#line 6665 "sql.c" yymsp[-1].minor.yy56 = yylhsminor.yy56; break; - case 303: /* tag_item ::= column_name AS column_alias */ -#line 544 "sql.y" + case 304: /* tag_item ::= column_name AS column_alias */ { yylhsminor.yy56 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy785), &yymsp[0].minor.yy785); } -#line 6671 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 304: /* db_kind_opt ::= */ -#line 548 "sql.y" + case 305: /* db_kind_opt ::= */ { yymsp[1].minor.yy33 = SHOW_KIND_ALL; } -#line 6677 "sql.c" break; - case 305: /* db_kind_opt ::= USER */ -#line 549 "sql.y" + case 306: /* db_kind_opt ::= USER */ { yymsp[0].minor.yy33 = SHOW_KIND_DATABASES_USER; } -#line 6682 "sql.c" break; - case 306: /* db_kind_opt ::= SYSTEM */ -#line 550 "sql.y" + case 307: /* db_kind_opt ::= SYSTEM */ { yymsp[0].minor.yy33 = SHOW_KIND_DATABASES_SYSTEM; } -#line 6687 "sql.c" break; - case 307: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ -#line 554 "sql.y" + case 308: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy425, yymsp[-3].minor.yy56, yymsp[-1].minor.yy56, NULL, yymsp[0].minor.yy56); } -#line 6692 "sql.c" break; - case 308: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ -#line 556 "sql.y" + case 309: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy425, yymsp[-5].minor.yy56, yymsp[-3].minor.yy56, yymsp[-1].minor.yy712, NULL); } -#line 6697 "sql.c" break; - case 309: /* cmd ::= DROP INDEX exists_opt full_index_name */ -#line 557 "sql.y" + case 310: /* cmd ::= DROP INDEX exists_opt full_index_name */ { pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy425, yymsp[0].minor.yy56); } -#line 6702 "sql.c" break; - case 310: /* full_index_name ::= index_name */ -#line 559 "sql.y" + case 311: /* full_index_name ::= index_name */ { yylhsminor.yy56 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy785); } -#line 6707 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 311: /* full_index_name ::= db_name NK_DOT index_name */ -#line 560 "sql.y" + case 312: /* full_index_name ::= db_name NK_DOT index_name */ { yylhsminor.yy56 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy785); } -#line 6713 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 312: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ -#line 563 "sql.y" + case 313: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ { yymsp[-9].minor.yy56 = createIndexOption(pCxt, yymsp[-7].minor.yy712, releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), NULL, yymsp[-1].minor.yy56, yymsp[0].minor.yy56); } -#line 6719 "sql.c" break; - case 313: /* 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 */ -#line 566 "sql.y" + case 314: /* 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.yy56 = createIndexOption(pCxt, yymsp[-9].minor.yy712, releaseRawExprNode(pCxt, yymsp[-5].minor.yy56), releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), yymsp[-1].minor.yy56, yymsp[0].minor.yy56); } -#line 6724 "sql.c" break; - case 316: /* func ::= sma_func_name NK_LP expression_list NK_RP */ -#line 573 "sql.y" + case 317: /* func ::= sma_func_name NK_LP expression_list NK_RP */ { yylhsminor.yy56 = createFunctionNode(pCxt, &yymsp[-3].minor.yy785, yymsp[-1].minor.yy712); } -#line 6729 "sql.c" yymsp[-3].minor.yy56 = yylhsminor.yy56; break; - case 317: /* sma_func_name ::= function_name */ - case 536: /* alias_opt ::= table_alias */ yytestcase(yyruleno==536); -#line 577 "sql.y" + case 318: /* sma_func_name ::= function_name */ + case 537: /* alias_opt ::= table_alias */ yytestcase(yyruleno==537); { yylhsminor.yy785 = yymsp[0].minor.yy785; } -#line 6736 "sql.c" yymsp[0].minor.yy785 = yylhsminor.yy785; break; - case 322: /* sma_stream_opt ::= */ - case 363: /* stream_options ::= */ yytestcase(yyruleno==363); -#line 583 "sql.y" + case 323: /* sma_stream_opt ::= */ + case 364: /* stream_options ::= */ yytestcase(yyruleno==364); { yymsp[1].minor.yy56 = createStreamOptions(pCxt); } -#line 6743 "sql.c" break; - case 323: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ -#line 584 "sql.y" + case 324: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy56)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = yymsp[-2].minor.yy56; } -#line 6748 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 324: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ -#line 585 "sql.y" + case 325: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy56)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = yymsp[-2].minor.yy56; } -#line 6754 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 325: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ -#line 586 "sql.y" + case 326: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy56)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = yymsp[-2].minor.yy56; } -#line 6760 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 326: /* with_meta ::= AS */ -#line 591 "sql.y" + case 327: /* with_meta ::= AS */ { yymsp[0].minor.yy676 = 0; } -#line 6766 "sql.c" break; - case 327: /* with_meta ::= WITH META AS */ -#line 592 "sql.y" + case 328: /* with_meta ::= WITH META AS */ { yymsp[-2].minor.yy676 = 1; } -#line 6771 "sql.c" break; - case 328: /* with_meta ::= ONLY META AS */ -#line 593 "sql.y" + case 329: /* with_meta ::= ONLY META AS */ { yymsp[-2].minor.yy676 = 2; } -#line 6776 "sql.c" break; - case 329: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ -#line 595 "sql.y" + case 330: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ { pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy425, &yymsp[-2].minor.yy785, yymsp[0].minor.yy56); } -#line 6781 "sql.c" break; - case 330: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ -#line 597 "sql.y" + case 331: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ { pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy425, &yymsp[-3].minor.yy785, &yymsp[0].minor.yy785, yymsp[-2].minor.yy676); } -#line 6786 "sql.c" break; - case 331: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ -#line 599 "sql.y" + case 332: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ { pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy425, &yymsp[-4].minor.yy785, yymsp[-1].minor.yy56, yymsp[-3].minor.yy676, yymsp[0].minor.yy56); } -#line 6791 "sql.c" break; - case 332: /* cmd ::= DROP TOPIC exists_opt topic_name */ -#line 601 "sql.y" + case 333: /* cmd ::= DROP TOPIC exists_opt topic_name */ { pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy425, &yymsp[0].minor.yy785); } -#line 6796 "sql.c" break; - case 333: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -#line 602 "sql.y" + case 334: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ { pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy425, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy785); } -#line 6801 "sql.c" break; - case 334: /* cmd ::= DESC full_table_name */ - case 335: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==335); -#line 605 "sql.y" + case 335: /* cmd ::= DESC full_table_name */ + case 336: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==336); { pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy56); } -#line 6807 "sql.c" break; - case 336: /* cmd ::= RESET QUERY CACHE */ -#line 609 "sql.y" + case 337: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } -#line 6812 "sql.c" break; - case 337: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - case 338: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==338); -#line 612 "sql.y" + case 338: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + case 339: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==339); { pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy425, yymsp[-1].minor.yy56, yymsp[0].minor.yy56); } -#line 6818 "sql.c" break; - case 341: /* explain_options ::= */ -#line 620 "sql.y" + case 342: /* explain_options ::= */ { yymsp[1].minor.yy56 = createDefaultExplainOptions(pCxt); } -#line 6823 "sql.c" break; - case 342: /* explain_options ::= explain_options VERBOSE NK_BOOL */ -#line 621 "sql.y" + case 343: /* explain_options ::= explain_options VERBOSE NK_BOOL */ { yylhsminor.yy56 = setExplainVerbose(pCxt, yymsp[-2].minor.yy56, &yymsp[0].minor.yy0); } -#line 6828 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 343: /* explain_options ::= explain_options RATIO NK_FLOAT */ -#line 622 "sql.y" + case 344: /* explain_options ::= explain_options RATIO NK_FLOAT */ { yylhsminor.yy56 = setExplainRatio(pCxt, yymsp[-2].minor.yy56, &yymsp[0].minor.yy0); } -#line 6834 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 344: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ -#line 627 "sql.y" + case 345: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ { pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy425, yymsp[-9].minor.yy425, &yymsp[-6].minor.yy785, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy448, yymsp[-1].minor.yy676, &yymsp[0].minor.yy785, yymsp[-10].minor.yy425); } -#line 6840 "sql.c" break; - case 345: /* cmd ::= DROP FUNCTION exists_opt function_name */ -#line 628 "sql.y" + case 346: /* cmd ::= DROP FUNCTION exists_opt function_name */ { pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy425, &yymsp[0].minor.yy785); } -#line 6845 "sql.c" break; - case 350: /* language_opt ::= */ - case 384: /* on_vgroup_id ::= */ yytestcase(yyruleno==384); -#line 642 "sql.y" + case 351: /* language_opt ::= */ + case 385: /* on_vgroup_id ::= */ yytestcase(yyruleno==385); { yymsp[1].minor.yy785 = nil_token; } -#line 6851 "sql.c" break; - case 351: /* language_opt ::= LANGUAGE NK_STRING */ - case 385: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==385); -#line 643 "sql.y" + case 352: /* language_opt ::= LANGUAGE NK_STRING */ + case 386: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==386); { yymsp[-1].minor.yy785 = yymsp[0].minor.yy0; } -#line 6857 "sql.c" break; - case 354: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ -#line 653 "sql.y" + case 355: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ { pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy425, &yymsp[-8].minor.yy785, yymsp[-5].minor.yy56, yymsp[-7].minor.yy56, yymsp[-3].minor.yy712, yymsp[-2].minor.yy56, yymsp[0].minor.yy56, yymsp[-4].minor.yy712); } -#line 6862 "sql.c" break; - case 355: /* cmd ::= DROP STREAM exists_opt stream_name */ -#line 654 "sql.y" + case 356: /* cmd ::= DROP STREAM exists_opt stream_name */ { pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy425, &yymsp[0].minor.yy785); } -#line 6867 "sql.c" break; - case 356: /* cmd ::= PAUSE STREAM exists_opt stream_name */ -#line 655 "sql.y" + case 357: /* cmd ::= PAUSE STREAM exists_opt stream_name */ { pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy425, &yymsp[0].minor.yy785); } -#line 6872 "sql.c" break; - case 357: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ -#line 656 "sql.y" + case 358: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ { pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy425, yymsp[-1].minor.yy425, &yymsp[0].minor.yy785); } -#line 6877 "sql.c" break; - case 364: /* stream_options ::= stream_options TRIGGER AT_ONCE */ - case 365: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==365); -#line 670 "sql.y" + case 365: /* stream_options ::= stream_options TRIGGER AT_ONCE */ + case 366: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==366); { yylhsminor.yy56 = setStreamOptions(pCxt, yymsp[-2].minor.yy56, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } -#line 6883 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 366: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -#line 672 "sql.y" + case 367: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ { yylhsminor.yy56 = setStreamOptions(pCxt, yymsp[-3].minor.yy56, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy56)); } -#line 6889 "sql.c" yymsp[-3].minor.yy56 = yylhsminor.yy56; break; - case 367: /* stream_options ::= stream_options WATERMARK duration_literal */ -#line 673 "sql.y" + case 368: /* stream_options ::= stream_options WATERMARK duration_literal */ { yylhsminor.yy56 = setStreamOptions(pCxt, yymsp[-2].minor.yy56, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy56)); } -#line 6895 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 368: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ -#line 674 "sql.y" + case 369: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ { yylhsminor.yy56 = setStreamOptions(pCxt, yymsp[-3].minor.yy56, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } -#line 6901 "sql.c" yymsp[-3].minor.yy56 = yylhsminor.yy56; break; - case 369: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ -#line 675 "sql.y" + case 370: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ { yylhsminor.yy56 = setStreamOptions(pCxt, yymsp[-2].minor.yy56, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } -#line 6907 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 370: /* stream_options ::= stream_options DELETE_MARK duration_literal */ -#line 676 "sql.y" + case 371: /* stream_options ::= stream_options DELETE_MARK duration_literal */ { yylhsminor.yy56 = setStreamOptions(pCxt, yymsp[-2].minor.yy56, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy56)); } -#line 6913 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 371: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ -#line 677 "sql.y" + case 372: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ { yylhsminor.yy56 = setStreamOptions(pCxt, yymsp[-3].minor.yy56, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } -#line 6919 "sql.c" yymsp[-3].minor.yy56 = yylhsminor.yy56; break; - case 373: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - case 574: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==574); - case 598: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==598); -#line 680 "sql.y" + case 374: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + case 575: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==575); + case 599: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==599); { yymsp[-3].minor.yy56 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy56); } -#line 6927 "sql.c" break; - case 376: /* cmd ::= KILL CONNECTION NK_INTEGER */ -#line 688 "sql.y" + case 377: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } -#line 6932 "sql.c" break; - case 377: /* cmd ::= KILL QUERY NK_STRING */ -#line 689 "sql.y" + case 378: /* cmd ::= KILL QUERY NK_STRING */ { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } -#line 6937 "sql.c" break; - case 378: /* cmd ::= KILL TRANSACTION NK_INTEGER */ -#line 690 "sql.y" + case 379: /* cmd ::= KILL TRANSACTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } -#line 6942 "sql.c" break; - case 379: /* cmd ::= BALANCE VGROUP */ -#line 693 "sql.y" + case 380: /* cmd ::= BALANCE VGROUP */ { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } -#line 6947 "sql.c" break; - case 380: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ -#line 694 "sql.y" + case 381: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ { pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy785); } -#line 6952 "sql.c" break; - case 381: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ -#line 695 "sql.y" + case 382: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } -#line 6957 "sql.c" break; - case 382: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -#line 696 "sql.y" + case 383: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ { pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy712); } -#line 6962 "sql.c" break; - case 383: /* cmd ::= SPLIT VGROUP NK_INTEGER */ -#line 697 "sql.y" + case 384: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } -#line 6967 "sql.c" break; - case 386: /* dnode_list ::= DNODE NK_INTEGER */ -#line 706 "sql.y" + case 387: /* dnode_list ::= DNODE NK_INTEGER */ { yymsp[-1].minor.yy712 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } -#line 6972 "sql.c" break; - case 388: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ -#line 713 "sql.y" + case 389: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ { pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy56, yymsp[0].minor.yy56); } -#line 6977 "sql.c" break; - case 391: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ -#line 722 "sql.y" + case 392: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ { yymsp[-6].minor.yy56 = createInsertStmt(pCxt, yymsp[-4].minor.yy56, yymsp[-2].minor.yy712, yymsp[0].minor.yy56); } -#line 6982 "sql.c" break; - case 392: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ -#line 723 "sql.y" + case 393: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ { yymsp[-3].minor.yy56 = createInsertStmt(pCxt, yymsp[-1].minor.yy56, NULL, yymsp[0].minor.yy56); } -#line 6987 "sql.c" break; - case 393: /* literal ::= NK_INTEGER */ -#line 726 "sql.y" + case 394: /* literal ::= NK_INTEGER */ { yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } -#line 6992 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 394: /* literal ::= NK_FLOAT */ -#line 727 "sql.y" + case 395: /* literal ::= NK_FLOAT */ { yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } -#line 6998 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 395: /* literal ::= NK_STRING */ -#line 728 "sql.y" + case 396: /* literal ::= NK_STRING */ { yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } -#line 7004 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 396: /* literal ::= NK_BOOL */ -#line 729 "sql.y" + case 397: /* literal ::= NK_BOOL */ { yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } -#line 7010 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 397: /* literal ::= TIMESTAMP NK_STRING */ -#line 730 "sql.y" + case 398: /* literal ::= TIMESTAMP NK_STRING */ { yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } -#line 7016 "sql.c" yymsp[-1].minor.yy56 = yylhsminor.yy56; break; - case 398: /* literal ::= duration_literal */ - case 408: /* signed_literal ::= signed */ yytestcase(yyruleno==408); - case 430: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==430); - case 431: /* expression ::= literal */ yytestcase(yyruleno==431); - case 433: /* expression ::= column_reference */ yytestcase(yyruleno==433); - case 434: /* expression ::= function_expression */ yytestcase(yyruleno==434); - case 435: /* expression ::= case_when_expression */ yytestcase(yyruleno==435); - case 468: /* function_expression ::= literal_func */ yytestcase(yyruleno==468); - case 517: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==517); - case 521: /* boolean_primary ::= predicate */ yytestcase(yyruleno==521); - case 523: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==523); - case 524: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==524); - case 527: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==527); - case 529: /* table_reference ::= table_primary */ yytestcase(yyruleno==529); - case 530: /* table_reference ::= joined_table */ yytestcase(yyruleno==530); - case 534: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==534); - case 600: /* query_simple ::= query_specification */ yytestcase(yyruleno==600); - case 601: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==601); - case 604: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==604); - case 606: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==606); -#line 731 "sql.y" + case 399: /* literal ::= duration_literal */ + case 409: /* signed_literal ::= signed */ yytestcase(yyruleno==409); + case 431: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==431); + case 432: /* expression ::= literal */ yytestcase(yyruleno==432); + case 434: /* expression ::= column_reference */ yytestcase(yyruleno==434); + case 435: /* expression ::= function_expression */ yytestcase(yyruleno==435); + case 436: /* expression ::= case_when_expression */ yytestcase(yyruleno==436); + case 469: /* function_expression ::= literal_func */ yytestcase(yyruleno==469); + case 518: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==518); + case 522: /* boolean_primary ::= predicate */ yytestcase(yyruleno==522); + case 524: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==524); + case 525: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==525); + case 528: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==528); + case 530: /* table_reference ::= table_primary */ yytestcase(yyruleno==530); + case 531: /* table_reference ::= joined_table */ yytestcase(yyruleno==531); + case 535: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==535); + case 601: /* query_simple ::= query_specification */ yytestcase(yyruleno==601); + case 602: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==602); + case 605: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==605); + case 607: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==607); { yylhsminor.yy56 = yymsp[0].minor.yy56; } -#line 7041 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 399: /* literal ::= NULL */ -#line 732 "sql.y" + case 400: /* literal ::= NULL */ { yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } -#line 7047 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 400: /* literal ::= NK_QUESTION */ -#line 733 "sql.y" + case 401: /* literal ::= NK_QUESTION */ { yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } -#line 7053 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 401: /* duration_literal ::= NK_VARIABLE */ - case 575: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==575); - case 576: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==576); - case 577: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==577); -#line 735 "sql.y" + case 402: /* duration_literal ::= NK_VARIABLE */ + case 576: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==576); + case 577: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==577); + case 578: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==578); { yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } -#line 7062 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 402: /* signed ::= NK_INTEGER */ -#line 737 "sql.y" + case 403: /* signed ::= NK_INTEGER */ { yylhsminor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } -#line 7068 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 403: /* signed ::= NK_PLUS NK_INTEGER */ -#line 738 "sql.y" + case 404: /* signed ::= NK_PLUS NK_INTEGER */ { yymsp[-1].minor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } -#line 7074 "sql.c" break; - case 404: /* signed ::= NK_MINUS NK_INTEGER */ -#line 739 "sql.y" + case 405: /* 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.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } -#line 7083 "sql.c" yymsp[-1].minor.yy56 = yylhsminor.yy56; break; - case 405: /* signed ::= NK_FLOAT */ -#line 744 "sql.y" + case 406: /* signed ::= NK_FLOAT */ { yylhsminor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } -#line 7089 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 406: /* signed ::= NK_PLUS NK_FLOAT */ -#line 745 "sql.y" + case 407: /* signed ::= NK_PLUS NK_FLOAT */ { yymsp[-1].minor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } -#line 7095 "sql.c" break; - case 407: /* signed ::= NK_MINUS NK_FLOAT */ -#line 746 "sql.y" + case 408: /* 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.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } -#line 7104 "sql.c" yymsp[-1].minor.yy56 = yylhsminor.yy56; break; - case 409: /* signed_literal ::= NK_STRING */ -#line 753 "sql.y" + case 410: /* signed_literal ::= NK_STRING */ { yylhsminor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } -#line 7110 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 410: /* signed_literal ::= NK_BOOL */ -#line 754 "sql.y" + case 411: /* signed_literal ::= NK_BOOL */ { yylhsminor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } -#line 7116 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 411: /* signed_literal ::= TIMESTAMP NK_STRING */ -#line 755 "sql.y" + case 412: /* signed_literal ::= TIMESTAMP NK_STRING */ { yymsp[-1].minor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } -#line 7122 "sql.c" break; - case 412: /* signed_literal ::= duration_literal */ - case 414: /* signed_literal ::= literal_func */ yytestcase(yyruleno==414); - case 488: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==488); - case 554: /* select_item ::= common_expression */ yytestcase(yyruleno==554); - case 564: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==564); - case 605: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==605); - case 607: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==607); - case 620: /* search_condition ::= common_expression */ yytestcase(yyruleno==620); -#line 756 "sql.y" + case 413: /* signed_literal ::= duration_literal */ + case 415: /* signed_literal ::= literal_func */ yytestcase(yyruleno==415); + case 489: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==489); + case 555: /* select_item ::= common_expression */ yytestcase(yyruleno==555); + case 565: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==565); + case 606: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==606); + case 608: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==608); + case 621: /* search_condition ::= common_expression */ yytestcase(yyruleno==621); { yylhsminor.yy56 = releaseRawExprNode(pCxt, yymsp[0].minor.yy56); } -#line 7134 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 413: /* signed_literal ::= NULL */ -#line 757 "sql.y" + case 414: /* signed_literal ::= NULL */ { yylhsminor.yy56 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } -#line 7140 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 415: /* signed_literal ::= NK_QUESTION */ -#line 759 "sql.y" + case 416: /* signed_literal ::= NK_QUESTION */ { yylhsminor.yy56 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } -#line 7146 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 432: /* expression ::= pseudo_column */ -#line 817 "sql.y" + case 433: /* expression ::= pseudo_column */ { yylhsminor.yy56 = yymsp[0].minor.yy56; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy56, true); } -#line 7152 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 436: /* expression ::= NK_LP expression NK_RP */ - case 522: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==522); - case 619: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==619); -#line 821 "sql.y" + case 437: /* expression ::= NK_LP expression NK_RP */ + case 523: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==523); + case 620: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==620); { yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy56)); } -#line 7160 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 437: /* expression ::= NK_PLUS expr_or_subquery */ -#line 822 "sql.y" + case 438: /* expression ::= NK_PLUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy56)); } -#line 7169 "sql.c" yymsp[-1].minor.yy56 = yylhsminor.yy56; break; - case 438: /* expression ::= NK_MINUS expr_or_subquery */ -#line 826 "sql.y" + case 439: /* expression ::= NK_MINUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy56), NULL)); } -#line 7178 "sql.c" yymsp[-1].minor.yy56 = yylhsminor.yy56; break; - case 439: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ -#line 830 "sql.y" + case 440: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56))); } -#line 7188 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 440: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ -#line 835 "sql.y" + case 441: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56))); } -#line 7198 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 441: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ -#line 840 "sql.y" + case 442: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56))); } -#line 7208 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 442: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ -#line 845 "sql.y" + case 443: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56))); } -#line 7218 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 443: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ -#line 850 "sql.y" + case 444: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56))); } -#line 7228 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 444: /* expression ::= column_reference NK_ARROW NK_STRING */ -#line 855 "sql.y" + case 445: /* expression ::= column_reference NK_ARROW NK_STRING */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } -#line 7237 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 445: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ -#line 859 "sql.y" + case 446: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56))); } -#line 7247 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 446: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ -#line 864 "sql.y" + case 447: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56))); } -#line 7257 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 449: /* column_reference ::= column_name */ -#line 875 "sql.y" + case 450: /* column_reference ::= column_name */ { yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy785, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy785)); } -#line 7263 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 450: /* column_reference ::= table_name NK_DOT column_name */ -#line 876 "sql.y" + case 451: /* column_reference ::= table_name NK_DOT column_name */ { yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy785, createColumnNode(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy785)); } -#line 7269 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 451: /* column_reference ::= NK_ALIAS */ -#line 877 "sql.y" + case 452: /* column_reference ::= NK_ALIAS */ { yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } -#line 7275 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 452: /* column_reference ::= table_name NK_DOT NK_ALIAS */ -#line 878 "sql.y" + case 453: /* column_reference ::= table_name NK_DOT NK_ALIAS */ { yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy0)); } -#line 7281 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 453: /* pseudo_column ::= ROWTS */ - case 454: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==454); - case 456: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==456); - case 457: /* pseudo_column ::= QEND */ yytestcase(yyruleno==457); - case 458: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==458); - case 459: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==459); - case 460: /* pseudo_column ::= WEND */ yytestcase(yyruleno==460); - case 461: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==461); - case 462: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==462); - case 463: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==463); - case 464: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==464); - case 470: /* literal_func ::= NOW */ yytestcase(yyruleno==470); -#line 880 "sql.y" + case 454: /* pseudo_column ::= ROWTS */ + case 455: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==455); + case 457: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==457); + case 458: /* pseudo_column ::= QEND */ yytestcase(yyruleno==458); + case 459: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==459); + case 460: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==460); + case 461: /* pseudo_column ::= WEND */ yytestcase(yyruleno==461); + case 462: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==462); + case 463: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==463); + case 464: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==464); + case 465: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==465); + case 471: /* literal_func ::= NOW */ yytestcase(yyruleno==471); { yylhsminor.yy56 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } -#line 7298 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 455: /* pseudo_column ::= table_name NK_DOT TBNAME */ -#line 882 "sql.y" + case 456: /* pseudo_column ::= table_name NK_DOT TBNAME */ { yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy785)))); } -#line 7304 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 465: /* function_expression ::= function_name NK_LP expression_list NK_RP */ - case 466: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==466); -#line 893 "sql.y" + case 466: /* function_expression ::= function_name NK_LP expression_list NK_RP */ + case 467: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==467); { yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy785, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy785, yymsp[-1].minor.yy712)); } -#line 7311 "sql.c" yymsp[-3].minor.yy56 = yylhsminor.yy56; break; - case 467: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ -#line 896 "sql.y" + case 468: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ { yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), yymsp[-1].minor.yy448)); } -#line 7317 "sql.c" yymsp[-5].minor.yy56 = yylhsminor.yy56; break; - case 469: /* literal_func ::= noarg_func NK_LP NK_RP */ -#line 899 "sql.y" + case 470: /* literal_func ::= noarg_func NK_LP NK_RP */ { yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy785, NULL)); } -#line 7323 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 484: /* star_func_para_list ::= NK_STAR */ -#line 923 "sql.y" + case 485: /* star_func_para_list ::= NK_STAR */ { yylhsminor.yy712 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } -#line 7329 "sql.c" yymsp[0].minor.yy712 = yylhsminor.yy712; break; - case 489: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 557: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==557); -#line 932 "sql.y" + case 490: /* star_func_para ::= table_name NK_DOT NK_STAR */ + case 558: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==558); { yylhsminor.yy56 = createColumnNode(pCxt, &yymsp[-2].minor.yy785, &yymsp[0].minor.yy0); } -#line 7336 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 490: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ -#line 935 "sql.y" + case 491: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ { yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy712, yymsp[-1].minor.yy56)); } -#line 7342 "sql.c" yymsp[-3].minor.yy56 = yylhsminor.yy56; break; - case 491: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ -#line 937 "sql.y" + case 492: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ { yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), yymsp[-2].minor.yy712, yymsp[-1].minor.yy56)); } -#line 7348 "sql.c" yymsp[-4].minor.yy56 = yylhsminor.yy56; break; - case 494: /* when_then_expr ::= WHEN common_expression THEN common_expression */ -#line 944 "sql.y" + case 495: /* when_then_expr ::= WHEN common_expression THEN common_expression */ { yymsp[-3].minor.yy56 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56)); } -#line 7354 "sql.c" break; - case 496: /* case_when_else_opt ::= ELSE common_expression */ -#line 947 "sql.y" + case 497: /* case_when_else_opt ::= ELSE common_expression */ { yymsp[-1].minor.yy56 = releaseRawExprNode(pCxt, yymsp[0].minor.yy56); } -#line 7359 "sql.c" break; - case 497: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ - case 502: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==502); -#line 950 "sql.y" + case 498: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ + case 503: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==503); { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy380, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56))); } -#line 7369 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 498: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ -#line 957 "sql.y" + case 499: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy56); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy56), releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56))); } -#line 7379 "sql.c" yymsp[-4].minor.yy56 = yylhsminor.yy56; break; - case 499: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ -#line 963 "sql.y" + case 500: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy56); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy56), releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56))); } -#line 7389 "sql.c" yymsp[-5].minor.yy56 = yylhsminor.yy56; break; - case 500: /* predicate ::= expr_or_subquery IS NULL */ -#line 968 "sql.y" + case 501: /* predicate ::= expr_or_subquery IS NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), NULL)); } -#line 7398 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 501: /* predicate ::= expr_or_subquery IS NOT NULL */ -#line 972 "sql.y" + case 502: /* predicate ::= expr_or_subquery IS NOT NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), NULL)); } -#line 7407 "sql.c" yymsp[-3].minor.yy56 = yylhsminor.yy56; break; - case 503: /* compare_op ::= NK_LT */ -#line 984 "sql.y" + case 504: /* compare_op ::= NK_LT */ { yymsp[0].minor.yy380 = OP_TYPE_LOWER_THAN; } -#line 7413 "sql.c" break; - case 504: /* compare_op ::= NK_GT */ -#line 985 "sql.y" + case 505: /* compare_op ::= NK_GT */ { yymsp[0].minor.yy380 = OP_TYPE_GREATER_THAN; } -#line 7418 "sql.c" break; - case 505: /* compare_op ::= NK_LE */ -#line 986 "sql.y" + case 506: /* compare_op ::= NK_LE */ { yymsp[0].minor.yy380 = OP_TYPE_LOWER_EQUAL; } -#line 7423 "sql.c" break; - case 506: /* compare_op ::= NK_GE */ -#line 987 "sql.y" + case 507: /* compare_op ::= NK_GE */ { yymsp[0].minor.yy380 = OP_TYPE_GREATER_EQUAL; } -#line 7428 "sql.c" break; - case 507: /* compare_op ::= NK_NE */ -#line 988 "sql.y" + case 508: /* compare_op ::= NK_NE */ { yymsp[0].minor.yy380 = OP_TYPE_NOT_EQUAL; } -#line 7433 "sql.c" break; - case 508: /* compare_op ::= NK_EQ */ -#line 989 "sql.y" + case 509: /* compare_op ::= NK_EQ */ { yymsp[0].minor.yy380 = OP_TYPE_EQUAL; } -#line 7438 "sql.c" break; - case 509: /* compare_op ::= LIKE */ -#line 990 "sql.y" + case 510: /* compare_op ::= LIKE */ { yymsp[0].minor.yy380 = OP_TYPE_LIKE; } -#line 7443 "sql.c" break; - case 510: /* compare_op ::= NOT LIKE */ -#line 991 "sql.y" + case 511: /* compare_op ::= NOT LIKE */ { yymsp[-1].minor.yy380 = OP_TYPE_NOT_LIKE; } -#line 7448 "sql.c" break; - case 511: /* compare_op ::= MATCH */ -#line 992 "sql.y" + case 512: /* compare_op ::= MATCH */ { yymsp[0].minor.yy380 = OP_TYPE_MATCH; } -#line 7453 "sql.c" break; - case 512: /* compare_op ::= NMATCH */ -#line 993 "sql.y" + case 513: /* compare_op ::= NMATCH */ { yymsp[0].minor.yy380 = OP_TYPE_NMATCH; } -#line 7458 "sql.c" break; - case 513: /* compare_op ::= CONTAINS */ -#line 994 "sql.y" + case 514: /* compare_op ::= CONTAINS */ { yymsp[0].minor.yy380 = OP_TYPE_JSON_CONTAINS; } -#line 7463 "sql.c" break; - case 514: /* in_op ::= IN */ -#line 998 "sql.y" + case 515: /* in_op ::= IN */ { yymsp[0].minor.yy380 = OP_TYPE_IN; } -#line 7468 "sql.c" break; - case 515: /* in_op ::= NOT IN */ -#line 999 "sql.y" + case 516: /* in_op ::= NOT IN */ { yymsp[-1].minor.yy380 = OP_TYPE_NOT_IN; } -#line 7473 "sql.c" break; - case 516: /* in_predicate_value ::= NK_LP literal_list NK_RP */ -#line 1001 "sql.y" + case 517: /* in_predicate_value ::= NK_LP literal_list NK_RP */ { yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy712)); } -#line 7478 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 518: /* boolean_value_expression ::= NOT boolean_primary */ -#line 1005 "sql.y" + case 519: /* boolean_value_expression ::= NOT boolean_primary */ { SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy56), NULL)); } -#line 7487 "sql.c" yymsp[-1].minor.yy56 = yylhsminor.yy56; break; - case 519: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ -#line 1010 "sql.y" + case 520: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56))); } -#line 7497 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 520: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ -#line 1016 "sql.y" + case 521: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy56); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy56); yylhsminor.yy56 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), releaseRawExprNode(pCxt, yymsp[0].minor.yy56))); } -#line 7507 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 528: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -#line 1034 "sql.y" + case 529: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ { yylhsminor.yy56 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy56, yymsp[0].minor.yy56, NULL); } -#line 7513 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 531: /* table_primary ::= table_name alias_opt */ -#line 1040 "sql.y" + case 532: /* table_primary ::= table_name alias_opt */ { yylhsminor.yy56 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy785, &yymsp[0].minor.yy785); } -#line 7519 "sql.c" yymsp[-1].minor.yy56 = yylhsminor.yy56; break; - case 532: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -#line 1041 "sql.y" + case 533: /* table_primary ::= db_name NK_DOT table_name alias_opt */ { yylhsminor.yy56 = createRealTableNode(pCxt, &yymsp[-3].minor.yy785, &yymsp[-1].minor.yy785, &yymsp[0].minor.yy785); } -#line 7525 "sql.c" yymsp[-3].minor.yy56 = yylhsminor.yy56; break; - case 533: /* table_primary ::= subquery alias_opt */ -#line 1042 "sql.y" + case 534: /* table_primary ::= subquery alias_opt */ { yylhsminor.yy56 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy56), &yymsp[0].minor.yy785); } -#line 7531 "sql.c" yymsp[-1].minor.yy56 = yylhsminor.yy56; break; - case 535: /* alias_opt ::= */ -#line 1047 "sql.y" + case 536: /* alias_opt ::= */ { yymsp[1].minor.yy785 = nil_token; } -#line 7537 "sql.c" break; - case 537: /* alias_opt ::= AS table_alias */ -#line 1049 "sql.y" + case 538: /* alias_opt ::= AS table_alias */ { yymsp[-1].minor.yy785 = yymsp[0].minor.yy785; } -#line 7542 "sql.c" break; - case 538: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 539: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==539); -#line 1051 "sql.y" + case 539: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 540: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==540); { yymsp[-2].minor.yy56 = yymsp[-1].minor.yy56; } -#line 7548 "sql.c" break; - case 540: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -#line 1056 "sql.y" + case 541: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ { yylhsminor.yy56 = createJoinTableNode(pCxt, yymsp[-4].minor.yy36, yymsp[-5].minor.yy56, yymsp[-2].minor.yy56, yymsp[0].minor.yy56); } -#line 7553 "sql.c" yymsp[-5].minor.yy56 = yylhsminor.yy56; break; - case 541: /* join_type ::= */ -#line 1060 "sql.y" + case 542: /* join_type ::= */ { yymsp[1].minor.yy36 = JOIN_TYPE_INNER; } -#line 7559 "sql.c" break; - case 542: /* join_type ::= INNER */ -#line 1061 "sql.y" + case 543: /* join_type ::= INNER */ { yymsp[0].minor.yy36 = JOIN_TYPE_INNER; } -#line 7564 "sql.c" break; - case 543: /* query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_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 */ -#line 1067 "sql.y" + case 544: /* query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_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[-13].minor.yy56 = createSelectStmt(pCxt, yymsp[-11].minor.yy425, yymsp[-9].minor.yy712, yymsp[-8].minor.yy56, yymsp[-12].minor.yy712); yymsp[-13].minor.yy56 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy56, yymsp[-10].minor.yy425); @@ -7577,224 +6428,145 @@ static YYACTIONTYPE yy_reduce( yymsp[-13].minor.yy56 = addEveryClause(pCxt, yymsp[-13].minor.yy56, yymsp[-4].minor.yy56); yymsp[-13].minor.yy56 = addFillClause(pCxt, yymsp[-13].minor.yy56, yymsp[-3].minor.yy56); } -#line 7580 "sql.c" break; - case 544: /* hint_list ::= */ -#line 1082 "sql.y" + case 545: /* hint_list ::= */ { yymsp[1].minor.yy712 = createHintNodeList(pCxt, NULL); } -#line 7585 "sql.c" break; - case 545: /* hint_list ::= NK_HINT */ -#line 1083 "sql.y" + case 546: /* hint_list ::= NK_HINT */ { yylhsminor.yy712 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } -#line 7590 "sql.c" yymsp[0].minor.yy712 = yylhsminor.yy712; break; - case 550: /* set_quantifier_opt ::= ALL */ -#line 1094 "sql.y" + case 551: /* set_quantifier_opt ::= ALL */ { yymsp[0].minor.yy425 = false; } -#line 7596 "sql.c" break; - case 553: /* select_item ::= NK_STAR */ -#line 1101 "sql.y" + case 554: /* select_item ::= NK_STAR */ { yylhsminor.yy56 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } -#line 7601 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; - case 555: /* select_item ::= common_expression column_alias */ - case 565: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==565); -#line 1103 "sql.y" + case 556: /* select_item ::= common_expression column_alias */ + case 566: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==566); { yylhsminor.yy56 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy56), &yymsp[0].minor.yy785); } -#line 7608 "sql.c" yymsp[-1].minor.yy56 = yylhsminor.yy56; break; - case 556: /* select_item ::= common_expression AS column_alias */ - case 566: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==566); -#line 1104 "sql.y" + case 557: /* select_item ::= common_expression AS column_alias */ + case 567: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==567); { yylhsminor.yy56 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), &yymsp[0].minor.yy785); } -#line 7615 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 561: /* partition_by_clause_opt ::= PARTITION BY partition_list */ - case 589: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==589); - case 609: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==609); -#line 1113 "sql.y" + case 562: /* partition_by_clause_opt ::= PARTITION BY partition_list */ + case 590: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==590); + case 610: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==610); { yymsp[-2].minor.yy712 = yymsp[0].minor.yy712; } -#line 7623 "sql.c" break; - case 568: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ -#line 1126 "sql.y" + case 569: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ { yymsp[-5].minor.yy56 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), releaseRawExprNode(pCxt, yymsp[-1].minor.yy56)); } -#line 7628 "sql.c" break; - case 569: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ -#line 1127 "sql.y" + case 570: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ { yymsp[-3].minor.yy56 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy56)); } -#line 7633 "sql.c" break; - case 570: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ -#line 1129 "sql.y" + case 571: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-5].minor.yy56 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), NULL, yymsp[-1].minor.yy56, yymsp[0].minor.yy56); } -#line 7638 "sql.c" break; - case 571: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ -#line 1133 "sql.y" + case 572: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-7].minor.yy56 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy56), releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), yymsp[-1].minor.yy56, yymsp[0].minor.yy56); } -#line 7643 "sql.c" break; - case 572: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ -#line 1135 "sql.y" + case 573: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ { yymsp[-6].minor.yy56 = createEventWindowNode(pCxt, yymsp[-3].minor.yy56, yymsp[0].minor.yy56); } -#line 7648 "sql.c" break; - case 579: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -#line 1145 "sql.y" + case 580: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ { yymsp[-3].minor.yy56 = createFillNode(pCxt, yymsp[-1].minor.yy774, NULL); } -#line 7653 "sql.c" break; - case 580: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ -#line 1146 "sql.y" + case 581: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ { yymsp[-5].minor.yy56 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy712)); } -#line 7658 "sql.c" break; - case 581: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ -#line 1147 "sql.y" + case 582: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ { yymsp[-5].minor.yy56 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy712)); } -#line 7663 "sql.c" break; - case 582: /* fill_mode ::= NONE */ -#line 1151 "sql.y" + case 583: /* fill_mode ::= NONE */ { yymsp[0].minor.yy774 = FILL_MODE_NONE; } -#line 7668 "sql.c" break; - case 583: /* fill_mode ::= PREV */ -#line 1152 "sql.y" + case 584: /* fill_mode ::= PREV */ { yymsp[0].minor.yy774 = FILL_MODE_PREV; } -#line 7673 "sql.c" break; - case 584: /* fill_mode ::= NULL */ -#line 1153 "sql.y" + case 585: /* fill_mode ::= NULL */ { yymsp[0].minor.yy774 = FILL_MODE_NULL; } -#line 7678 "sql.c" break; - case 585: /* fill_mode ::= NULL_F */ -#line 1154 "sql.y" + case 586: /* fill_mode ::= NULL_F */ { yymsp[0].minor.yy774 = FILL_MODE_NULL_F; } -#line 7683 "sql.c" break; - case 586: /* fill_mode ::= LINEAR */ -#line 1155 "sql.y" + case 587: /* fill_mode ::= LINEAR */ { yymsp[0].minor.yy774 = FILL_MODE_LINEAR; } -#line 7688 "sql.c" break; - case 587: /* fill_mode ::= NEXT */ -#line 1156 "sql.y" + case 588: /* fill_mode ::= NEXT */ { yymsp[0].minor.yy774 = FILL_MODE_NEXT; } -#line 7693 "sql.c" break; - case 590: /* group_by_list ::= expr_or_subquery */ -#line 1165 "sql.y" + case 591: /* group_by_list ::= expr_or_subquery */ { yylhsminor.yy712 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy56))); } -#line 7698 "sql.c" yymsp[0].minor.yy712 = yylhsminor.yy712; break; - case 591: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ -#line 1166 "sql.y" + case 592: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ { yylhsminor.yy712 = addNodeToList(pCxt, yymsp[-2].minor.yy712, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy56))); } -#line 7704 "sql.c" yymsp[-2].minor.yy712 = yylhsminor.yy712; break; - case 595: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ -#line 1173 "sql.y" + case 596: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ { yymsp[-5].minor.yy56 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy56), releaseRawExprNode(pCxt, yymsp[-1].minor.yy56)); } -#line 7710 "sql.c" break; - case 596: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ -#line 1175 "sql.y" + case 597: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ { yymsp[-3].minor.yy56 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy56)); } -#line 7715 "sql.c" break; - case 599: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ -#line 1182 "sql.y" + case 600: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ { yylhsminor.yy56 = addOrderByClause(pCxt, yymsp[-3].minor.yy56, yymsp[-2].minor.yy712); yylhsminor.yy56 = addSlimitClause(pCxt, yylhsminor.yy56, yymsp[-1].minor.yy56); yylhsminor.yy56 = addLimitClause(pCxt, yylhsminor.yy56, yymsp[0].minor.yy56); } -#line 7724 "sql.c" yymsp[-3].minor.yy56 = yylhsminor.yy56; break; - case 602: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ -#line 1192 "sql.y" + case 603: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ { yylhsminor.yy56 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy56, yymsp[0].minor.yy56); } -#line 7730 "sql.c" yymsp[-3].minor.yy56 = yylhsminor.yy56; break; - case 603: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ -#line 1194 "sql.y" + case 604: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ { yylhsminor.yy56 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy56, yymsp[0].minor.yy56); } -#line 7736 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 611: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 615: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==615); -#line 1208 "sql.y" + case 612: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 616: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==616); { yymsp[-1].minor.yy56 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } -#line 7743 "sql.c" break; - case 612: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 616: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==616); -#line 1209 "sql.y" + case 613: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 617: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==617); { yymsp[-3].minor.yy56 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } -#line 7749 "sql.c" break; - case 613: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 617: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==617); -#line 1210 "sql.y" + case 614: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 618: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==618); { yymsp[-3].minor.yy56 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } -#line 7755 "sql.c" break; - case 618: /* subquery ::= NK_LP query_expression NK_RP */ -#line 1218 "sql.y" + case 619: /* subquery ::= NK_LP query_expression NK_RP */ { yylhsminor.yy56 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy56); } -#line 7760 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 623: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ -#line 1232 "sql.y" + case 624: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ { yylhsminor.yy56 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy56), yymsp[-1].minor.yy722, yymsp[0].minor.yy361); } -#line 7766 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; - case 624: /* ordering_specification_opt ::= */ -#line 1236 "sql.y" + case 625: /* ordering_specification_opt ::= */ { yymsp[1].minor.yy722 = ORDER_ASC; } -#line 7772 "sql.c" break; - case 625: /* ordering_specification_opt ::= ASC */ -#line 1237 "sql.y" + case 626: /* ordering_specification_opt ::= ASC */ { yymsp[0].minor.yy722 = ORDER_ASC; } -#line 7777 "sql.c" break; - case 626: /* ordering_specification_opt ::= DESC */ -#line 1238 "sql.y" + case 627: /* ordering_specification_opt ::= DESC */ { yymsp[0].minor.yy722 = ORDER_DESC; } -#line 7782 "sql.c" break; - case 627: /* null_ordering_opt ::= */ -#line 1242 "sql.y" + case 628: /* null_ordering_opt ::= */ { yymsp[1].minor.yy361 = NULL_ORDER_DEFAULT; } -#line 7787 "sql.c" break; - case 628: /* null_ordering_opt ::= NULLS FIRST */ -#line 1243 "sql.y" + case 629: /* null_ordering_opt ::= NULLS FIRST */ { yymsp[-1].minor.yy361 = NULL_ORDER_FIRST; } -#line 7792 "sql.c" break; - case 629: /* null_ordering_opt ::= NULLS LAST */ -#line 1244 "sql.y" + case 630: /* null_ordering_opt ::= NULLS LAST */ { yymsp[-1].minor.yy361 = NULL_ORDER_LAST; } -#line 7797 "sql.c" break; default: break; @@ -7856,7 +6628,6 @@ static void yy_syntax_error( ParseCTX_FETCH #define TOKEN yyminor /************ Begin %syntax_error code ****************************************/ -#line 29 "sql.y" if (TSDB_CODE_SUCCESS == pCxt->errCode) { if(TOKEN.z) { @@ -7867,7 +6638,6 @@ static void yy_syntax_error( } else if (TSDB_CODE_PAR_DB_NOT_SPECIFIED == pCxt->errCode && TK_NK_FLOAT == TOKEN.type) { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z); } -#line 7870 "sql.c" /************ End %syntax_error code ******************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument variable */ ParseCTX_STORE diff --git a/tests/script/tsim/sma/rsmaCreateInsertQuery.sim b/tests/script/tsim/sma/rsmaCreateInsertQuery.sim index b3144e4e0d..e5e07dfaec 100644 --- a/tests/script/tsim/sma/rsmaCreateInsertQuery.sim +++ b/tests/script/tsim/sma/rsmaCreateInsertQuery.sim @@ -5,7 +5,7 @@ sleep 50 sql connect print =============== create database with retentions -sql create database d0 retentions 5s:7d,10s:21d,15s:365d; +sql create database d0 retentions -:7d,10s:21d,15s:365d; sql use d0 print =============== create super table and register rsma diff --git a/tests/script/tsim/sma/rsmaPersistenceRecovery.sim b/tests/script/tsim/sma/rsmaPersistenceRecovery.sim index 0b3938d773..6f78829db7 100644 --- a/tests/script/tsim/sma/rsmaPersistenceRecovery.sim +++ b/tests/script/tsim/sma/rsmaPersistenceRecovery.sim @@ -8,7 +8,7 @@ sql connect return 1 print =============== create database with retentions -sql create database d0 retentions 5s:7d,5m:21d,15m:365d; +sql create database d0 retentions -:7d,5m:21d,15m:365d; sql use d0 print =============== create super table and register rsma diff --git a/tests/script/tsim/sync/vnodesnapshot-rsma-test.sim b/tests/script/tsim/sync/vnodesnapshot-rsma-test.sim index 6f8c095162..3b3cd01521 100644 --- a/tests/script/tsim/sync/vnodesnapshot-rsma-test.sim +++ b/tests/script/tsim/sync/vnodesnapshot-rsma-test.sim @@ -47,7 +47,7 @@ endi $replica = 3 $vgroups = 1 -$retentions = 5s:7d,15s:21d,1m:365d +$retentions = -:7d,15s:21d,1m:365d print ============= create database sql create database db replica $replica vgroups $vgroups retentions $retentions diff --git a/tests/system-test/1-insert/block_wise.py b/tests/system-test/1-insert/block_wise.py index 8222000cd6..1aff2e7708 100644 --- a/tests/system-test/1-insert/block_wise.py +++ b/tests/system-test/1-insert/block_wise.py @@ -417,7 +417,7 @@ class TDTestCase: self.all_test() tdLog.printNoPrefix("==========step2:create table in rollup database") - tdSql.execute("create database db3 retentions 1s:4m,2s:8m,3s:12m") + tdSql.execute("create database db3 retentions -:4m,2s:8m,3s:12m") tdSql.execute("use db3") tdSql.query(f"create stable stb1 ({PRIMARY_COL} timestamp, {INT_COL} int) tags (tag1 int) rollup(first) watermark 5s max_delay 1m sma({INT_COL})") @@ -438,7 +438,7 @@ class TDTestCase: tdSql.execute("drop database if exists db_s20 ") tdLog.printNoPrefix("==========step4:insert and flush in rollup database") - tdSql.execute("create database db4 retentions 1s:4m,2s:8m,3s:12m") + tdSql.execute("create database db4 retentions -:4m,2s:8m,3s:12m") tdSql.execute("use db4") self.__create_tb(rollup="first") self.__insert_data(rollup="first") diff --git a/tests/system-test/1-insert/create_retentions.py b/tests/system-test/1-insert/create_retentions.py index 9435dcd081..cd23098e60 100644 --- a/tests/system-test/1-insert/create_retentions.py +++ b/tests/system-test/1-insert/create_retentions.py @@ -54,53 +54,63 @@ class TDTestCase: return [ # check grammar "create database db1 retentions", - "create database db1 retentions 1s:1d,2s:2d,3s:3d,4s:4d", + "create database db1 retentions 1s:1d", + "create database db1 retentions 1s:1d,2s:2d", + "create database db1 retentions 1s:1d,2s:2d,3s:3d", + "create database db1 retentions -:1d,2s:2d,3s:3d,4s:4d", + "create database db1 retentions -:-", + "create database db1 retentions --:1d", + "create database db1 retentions +:1d", + "create database db1 retentions :1d", + "create database db1 retentions -:1d,-:2d", + "create database db1 retentions -:1d,1s:-", + "create database db1 retentions -:1d,15s:2d,-:3d", + # check unit - "create database db1 retentions 1b:1d", - "create database db1 retentions 1u:1d", - "create database db1 retentions 1a:1d", - "create database db1 retentions 1n:1d", - "create database db1 retentions 1y:1d", - "create database db1 retentions 1s:86400s", - "create database db1 retentions 1s:86400000a", - "create database db1 retentions 1s:86400000000u", - "create database db1 retentions 1s:86400000000000b", - "create database db1 retentions 1s:1w", - "create database db1 retentions 1s:1n", - "create database db1 retentions 1s:1y", + "create database db1 retentions -:1d,1b:1d", + "create database db1 retentions -:1d,1u:1d", + "create database db1 retentions -:1d,1a:1d", + "create database db1 retentions -:1d,1n:1d", + "create database db1 retentions -:1d,1y:1d", + "create database db1 retentions -:1d,1s:86400s", + "create database db1 retentions -:1d,1s:86400000a", + "create database db1 retentions -:1d,1s:86400000000u", + "create database db1 retentions -:1d,1s:86400000000000b", + "create database db1 retentions -:1d,1s:1w", + "create database db1 retentions -:1d,1s:1n", + "create database db1 retentions -:1d,1s:1y", + # check value range - "create database db1 retentions -1s:1d", - "create database db1 retentions 0s:1d", - "create database db3 retentions 1s:-1d", - "create database db3 retentions 1s:0d", - "create database db3 retentions 1s:1439m", - "create database db3 retentions 1s:365001d", - "create database db3 retentions 1s:8760001h", - "create database db3 retentions 1s:525600001m", - "create database db3 retentions 1s:106581d precision 'ns'", - "create database db3 retentions 1s:2557921h precision 'ns'", - "create database db3 retentions 1s:153475201m precision 'ns'", + "create database db3 retentions -:-1d", + "create database db3 retentions -:0d", + "create database db3 retentions -:1439m", + "create database db3 retentions -:365001d", + "create database db3 retentions -:8760001h", + "create database db3 retentions -:525600001m", + "create database db3 retentions -:106581d precision 'ns'", + "create database db3 retentions -:2557921h precision 'ns'", + "create database db3 retentions -:153475201m precision 'ns'", # check relationships - "create database db5 retentions 1441m:1440m,2d:3d", - "create database db5 retentions 2m:1d,1s:2d", - "create database db5 retentions 1s:2880m,2s:2879m", - "create database db5 retentions 1s:1d,2s:2d,2s:3d", - "create database db5 retentions 1s:1d,3s:2d,2s:3d", - "create database db1 retentions 1s:1d,2s:3d,3s:2d", + "create database db5 retentions -:1440m,1441m:1440m,2d:3d", + "create database db5 retentions -:1d,2m:1d,1s:2d", + "create database db5 retentions -:1440m,1s:2880m,2s:2879m", + "create database db5 retentions -:1d,2s:2d,2s:3d", + "create database db5 retentions -:1d,3s:2d,2s:3d", + "create database db1 retentions -:1d,2s:3d,3s:2d", ] @property def create_databases_sql_current(self): return [ - f"create database {DB1} retentions 1s:1d", - f"create database {DB2} retentions 1s:1d,2m:2d,3h:3d", + f"create database {DB1} retentions -:1d", + f"create database {DB2} retentions -:1d,2m:2d,3h:3d", ] @property def alter_database_sql(self): return [ - "alter database db1 retentions 99h:99d", - "alter database db2 retentions 97h:97d,98h:98d,99h:99d,", + "alter database db1 retentions -:99d", + "alter database db2 retentions -:97d,98h:98d,99h:99d,", ] @property @@ -281,7 +291,7 @@ class TDTestCase: tdLog.printNoPrefix("==========step2:create table in rollup database") tdLog.printNoPrefix("==========step2.1 : rolluo func is not last/first") - tdSql.prepare(dbname=DB3, **{"retentions": "1s:1d, 3s:3d, 5s:5d"}) + tdSql.prepare(dbname=DB3, **{"retentions": "-:1d, 3s:3d, 5s:5d"}) db3_ctb_num = 10 self.__create_tb(rsma=True, dbname=DB3, ctb_num=db3_ctb_num, stb=STBNAME) @@ -338,7 +348,7 @@ class TDTestCase: tdLog.printNoPrefix("==========step2.2 : rolluo func is last/first") - tdSql.prepare(dbname=DB4, **{"retentions": "1s:1d, 2m:3d, 3m:5d"}) + tdSql.prepare(dbname=DB4, **{"retentions": "-:1d, 2m:3d, 3m:5d"}) db4_ctb_num = 10 tdSql.execute(f"use {DB4}") diff --git a/tests/system-test/1-insert/time_range_wise.py b/tests/system-test/1-insert/time_range_wise.py index df1cc516c5..14b717d1da 100644 --- a/tests/system-test/1-insert/time_range_wise.py +++ b/tests/system-test/1-insert/time_range_wise.py @@ -584,7 +584,7 @@ class TDTestCase: self.all_test() tdLog.printNoPrefix("==========step2:create table in rollup database") - tdSql.execute("create database db3 retentions 1s:4m,2s:8m,3s:12m") + tdSql.execute("create database db3 retentions -:4m,2s:8m,3s:12m") tdSql.execute("use db3") tdSql.execute(f"create stable stb1 ({PRIMARY_COL} timestamp, {INT_COL} int) tags (tag1 int) rollup(first) watermark 5s max_delay 1m sma({INT_COL}) ") self.all_test() @@ -603,7 +603,7 @@ class TDTestCase: # add for TS-2440 for i in range(self.rows): tdSql.execute("drop database if exists db3 ") - tdSql.execute("create database db3 retentions 1s:4m,2s:8m,3s:12m") + tdSql.execute("create database db3 retentions -:4m,2s:8m,3s:12m") def stop(self): tdSql.close() From 0b4f19d55ac0aab455c7b55732622eb9f3b94b59 Mon Sep 17 00:00:00 2001 From: kailixu Date: Mon, 30 Oct 2023 14:55:25 +0800 Subject: [PATCH 2/7] chore: check retentions of show create database --- tests/system-test/1-insert/create_retentions.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/system-test/1-insert/create_retentions.py b/tests/system-test/1-insert/create_retentions.py index cd23098e60..a4b2cae68a 100644 --- a/tests/system-test/1-insert/create_retentions.py +++ b/tests/system-test/1-insert/create_retentions.py @@ -182,9 +182,17 @@ class TDTestCase: def test_create_databases(self): for err_sql in self.create_databases_sql_err: tdSql.error(err_sql) + index = 0 for cur_sql in self.create_databases_sql_current: tdSql.execute(cur_sql) - # tdSql.query("select * from information_schema.ins_databases") + if(index == 0): + tdSql.query(f"show create database {DB1}") + else: + tdSql.query(f"show create database {DB2}") + tdSql.checkEqual(len(tdSql.queryResult),1) + tdLog.info("%s" % (tdSql.queryResult[0][1])) + tdSql.checkEqual(tdSql.queryResult[0][1].find("RETENTIONS -:") > 0, True) + index += 1 for alter_sql in self.alter_database_sql: tdSql.error(alter_sql) From da4fac4204bb9d8d17e0d7ddfc6b3ff393027f33 Mon Sep 17 00:00:00 2001 From: kailixu Date: Mon, 30 Oct 2023 17:04:09 +0800 Subject: [PATCH 3/7] test: update test case for retentions --- source/libs/parser/test/parInitialCTest.cpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/source/libs/parser/test/parInitialCTest.cpp b/source/libs/parser/test/parInitialCTest.cpp index 856fdb4804..6219676c50 100644 --- a/source/libs/parser/test/parInitialCTest.cpp +++ b/source/libs/parser/test/parInitialCTest.cpp @@ -247,7 +247,11 @@ TEST_F(ParserInitialCTest, createDatabase) { for (int32_t i = 0; i < expect.numOfRetensions; ++i) { SRetention* pReten = (SRetention*)taosArrayGet(req.pRetensions, i); SRetention* pExpectReten = (SRetention*)taosArrayGet(expect.pRetensions, i); - ASSERT_EQ(pReten->freq, pExpectReten->freq); + if(i == 0) { + ASSERT_EQ(pReten->freq, 0); + } else { + ASSERT_EQ(pReten->freq, pExpectReten->freq); + } ASSERT_EQ(pReten->keep, pExpectReten->keep); ASSERT_EQ(pReten->freqUnit, pExpectReten->freqUnit); ASSERT_EQ(pReten->keepUnit, pExpectReten->keepUnit); @@ -304,7 +308,7 @@ TEST_F(ParserInitialCTest, createDatabase) { "PAGESIZE 8 " "PRECISION 'ns' " "REPLICA 3 " - "RETENTIONS 15s:7d,1m:21d,15m:500d " + "RETENTIONS -:7d,1m:21d,15m:500d " // "STRICT 'on' " "WAL_LEVEL 2 " "VGROUPS 100 " @@ -340,12 +344,12 @@ TEST_F(ParserInitialCTest, createDatabase) { TEST_F(ParserInitialCTest, createDatabaseSemanticCheck) { useDb("root", "test"); - run("create database db2 retentions 0s:1d", TSDB_CODE_PAR_INVALID_DB_OPTION); - run("create database db2 retentions 10s:0d", TSDB_CODE_PAR_INVALID_DB_OPTION); - run("create database db2 retentions 1w:1d", TSDB_CODE_PAR_INVALID_DB_OPTION); - run("create database db2 retentions 1w:1n", TSDB_CODE_PAR_INVALID_DB_OPTION); - run("create database db2 retentions 15s:7d,15m:21d,10m:500d", TSDB_CODE_PAR_INVALID_DB_OPTION); - run("create database db2 retentions 15s:7d,5m:21d,10m:10d", TSDB_CODE_PAR_INVALID_DB_OPTION); + run("create database db2 retentions -:1d,0s:1d", TSDB_CODE_PAR_INVALID_DB_OPTION); + run("create database db2 retentions -:0d", TSDB_CODE_PAR_INVALID_DB_OPTION); + run("create database db2 retentions -:1d,1w:1d", TSDB_CODE_PAR_INVALID_DB_OPTION); + run("create database db2 retentions -:1n,1w:1d", TSDB_CODE_PAR_INVALID_DB_OPTION); + run("create database db2 retentions -:7d,15m:21d,10m:500d", TSDB_CODE_PAR_INVALID_DB_OPTION); + run("create database db2 retentions -:7d,5m:21d,10m:10d", TSDB_CODE_PAR_INVALID_DB_OPTION); } /* From 4a5b4b51e2245c463f400594ecd962090c050c32 Mon Sep 17 00:00:00 2001 From: kailixu Date: Mon, 30 Oct 2023 17:51:42 +0800 Subject: [PATCH 4/7] chore: remove obsolete codes --- include/common/tmsg.h | 2 -- source/dnode/mgmt/node_mgmt/inc/dmMgmt.h | 8 ------ source/dnode/mgmt/node_mgmt/src/dmMgmt.c | 8 ------ source/dnode/mgmt/node_mgmt/src/dmTransport.c | 28 ------------------- source/dnode/mnode/impl/src/mndDnode.c | 2 -- 5 files changed, 48 deletions(-) diff --git a/include/common/tmsg.h b/include/common/tmsg.h index 331188c264..07eb8a461a 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -1568,9 +1568,7 @@ typedef struct { typedef struct { int32_t id; int8_t isMnode; -#ifdef TD_GRANT_HB_OPTIMIZE int8_t offlineReason; -#endif SEp ep; char active[TSDB_ACTIVE_KEY_LEN]; char connActive[TSDB_CONN_ACTIVE_KEY_LEN]; diff --git a/source/dnode/mgmt/node_mgmt/inc/dmMgmt.h b/source/dnode/mgmt/node_mgmt/inc/dmMgmt.h index b04d336c51..36097438a2 100644 --- a/source/dnode/mgmt/node_mgmt/inc/dmMgmt.h +++ b/source/dnode/mgmt/node_mgmt/inc/dmMgmt.h @@ -97,11 +97,7 @@ int32_t dmMarkWrapper(SMgmtWrapper *pWrapper); void dmReleaseWrapper(SMgmtWrapper *pWrapper); int32_t dmInitVars(SDnode *pDnode); void dmClearVars(SDnode *pDnode); -#if defined(TD_MODULE_OPTIMIZE) || !defined(TD_ENTERPRISE) int32_t dmInitModule(SDnode *pDnode, SMgmtWrapper *wrappers); -#else -int32_t dmInitModule(SDnode *pDnode); -#endif bool dmRequireNode(SDnode *pDnode, SMgmtWrapper *pWrapper); SMgmtInputOpt dmBuildMgmtInputOpt(SMgmtWrapper *pWrapper); void dmSetStatus(SDnode *pDnode, EDndRunStatus stype); @@ -123,11 +119,7 @@ int32_t dmInitStatusClient(SDnode *pDnode); void dmCleanupClient(SDnode *pDnode); void dmCleanupStatusClient(SDnode *pDnode); SMsgCb dmGetMsgcb(SDnode *pDnode); -#if defined(TD_MODULE_OPTIMIZE) || !defined(TD_ENTERPRISE) int32_t dmInitMsgHandle(SDnode *pDnode, SMgmtWrapper *wrappers); -#else -int32_t dmInitMsgHandle(SDnode *pDnode); -#endif int32_t dmProcessNodeMsg(SMgmtWrapper *pWrapper, SRpcMsg *pMsg); // dmMonitor.c diff --git a/source/dnode/mgmt/node_mgmt/src/dmMgmt.c b/source/dnode/mgmt/node_mgmt/src/dmMgmt.c index e9ce4c4f89..409ee45cd3 100644 --- a/source/dnode/mgmt/node_mgmt/src/dmMgmt.c +++ b/source/dnode/mgmt/node_mgmt/src/dmMgmt.c @@ -66,15 +66,9 @@ int32_t dmInitDnode(SDnode *pDnode) { goto _OVER; } -#if defined(TD_MODULE_OPTIMIZE) || !defined(TD_ENTERPRISE) if (dmInitModule(pDnode, pDnode->wrappers) != 0) { goto _OVER; } -#else - if (dmInitModule(pDnode) != 0) { - goto _OVER; - } -#endif indexInit(tsNumOfCommitThreads); streamMetaInit(); @@ -113,7 +107,6 @@ void dmCleanupDnode(SDnode *pDnode) { dDebug("dnode is closed, ptr:%p", pDnode); } -#if defined(TD_MODULE_OPTIMIZE) || !defined(TD_ENTERPRISE) int32_t dmInitVars(SDnode *pDnode) { SDnodeData *pData = &pDnode->data; pData->dnodeId = 0; @@ -182,7 +175,6 @@ void dmClearVars(SDnode *pDnode) { taosThreadMutexDestroy(&pDnode->mutex); memset(&pDnode->mutex, 0, sizeof(pDnode->mutex)); } -#endif void dmSetStatus(SDnode *pDnode, EDndRunStatus status) { if (pDnode->status != status) { diff --git a/source/dnode/mgmt/node_mgmt/src/dmTransport.c b/source/dnode/mgmt/node_mgmt/src/dmTransport.c index b7381891d1..ad5ca2cecf 100644 --- a/source/dnode/mgmt/node_mgmt/src/dmTransport.c +++ b/source/dnode/mgmt/node_mgmt/src/dmTransport.c @@ -251,7 +251,6 @@ _OVER: dmReleaseWrapper(pWrapper); } -#if defined(TD_MODULE_OPTIMIZE) || !defined(TD_ENTERPRISE) int32_t dmInitMsgHandle(SDnode *pDnode, SMgmtWrapper *wrappers) { SDnodeTrans *pTrans = &pDnode->trans; @@ -277,33 +276,6 @@ int32_t dmInitMsgHandle(SDnode *pDnode, SMgmtWrapper *wrappers) { return 0; } -#else -int32_t dmInitMsgHandle(SDnode *pDnode) { - SDnodeTrans *pTrans = &pDnode->trans; - - for (EDndNodeType ntype = DNODE; ntype < NODE_END; ++ntype) { - SMgmtWrapper *pWrapper = &pDnode->wrappers[ntype]; - SArray *pArray = (*pWrapper->func.getHandlesFp)(); - if (pArray == NULL) return -1; - - for (int32_t i = 0; i < taosArrayGetSize(pArray); ++i) { - SMgmtHandle *pMgmt = taosArrayGet(pArray, i); - SDnodeHandle *pHandle = &pTrans->msgHandles[TMSG_INDEX(pMgmt->msgType)]; - if (pMgmt->needCheckVgId) { - pHandle->needCheckVgId = pMgmt->needCheckVgId; - } - if (!pMgmt->needCheckVgId) { - pHandle->defaultNtype = ntype; - } - pWrapper->msgFps[TMSG_INDEX(pMgmt->msgType)] = pMgmt->msgFp; - } - - taosArrayDestroy(pArray); - } - - return 0; -} -#endif static inline int32_t dmSendReq(const SEpSet *pEpSet, SRpcMsg *pMsg) { SDnode *pDnode = dmInstance(); diff --git a/source/dnode/mnode/impl/src/mndDnode.c b/source/dnode/mnode/impl/src/mndDnode.c index 4e93bcdbe7..a9aa96720c 100644 --- a/source/dnode/mnode/impl/src/mndDnode.c +++ b/source/dnode/mnode/impl/src/mndDnode.c @@ -397,9 +397,7 @@ void mndGetDnodeData(SMnode *pMnode, SArray *pDnodeInfo) { SDnodeInfo dInfo; dInfo.id = pDnode->id; dInfo.ep.port = pDnode->port; -#ifdef TD_GRANT_HB_OPTIMIZE dInfo.offlineReason = pDnode->offlineReason; -#endif tstrncpy(dInfo.ep.fqdn, pDnode->fqdn, TSDB_FQDN_LEN); tstrncpy(dInfo.active, pDnode->active, TSDB_ACTIVE_KEY_LEN); tstrncpy(dInfo.connActive, pDnode->connActive, TSDB_CONN_ACTIVE_KEY_LEN); From 89651626e3c90b627ebbaeafa49bfff2d9249783 Mon Sep 17 00:00:00 2001 From: kailixu Date: Mon, 30 Oct 2023 19:45:18 +0800 Subject: [PATCH 5/7] chore: reopen rsma stream commit --- source/dnode/vnode/src/inc/sma.h | 2 +- source/dnode/vnode/src/sma/smaCommit.c | 2 +- source/dnode/vnode/src/sma/smaRollup.c | 4 +++- tests/script/tsim/sma/rsmaPersistenceRecovery.sim | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/source/dnode/vnode/src/inc/sma.h b/source/dnode/vnode/src/inc/sma.h index aaf0973b41..a029aadc0b 100644 --- a/source/dnode/vnode/src/inc/sma.h +++ b/source/dnode/vnode/src/inc/sma.h @@ -218,7 +218,7 @@ void *tdFreeRSmaInfo(SSma *pSma, SRSmaInfo *pInfo, bool isDeepFree); int32_t tdRSmaRestore(SSma *pSma, int8_t type, int64_t committedVer, int8_t rollback); int32_t tdRSmaProcessCreateImpl(SSma *pSma, SRSmaParam *param, int64_t suid, const char *tbName); int32_t tdRSmaProcessExecImpl(SSma *pSma, ERsmaExecType type); -// int32_t tdRSmaPersistExecImpl(SRSmaStat *pRSmaStat, SHashObj *pInfoHash); +int32_t tdRSmaPersistExecImpl(SRSmaStat *pRSmaStat, SHashObj *pInfoHash); int32_t tdRSmaProcessRestoreImpl(SSma *pSma, int8_t type, int64_t qtaskFileVer, int8_t rollback); void tdRSmaQTaskInfoGetFullPath(SVnode *pVnode, tb_uid_t suid, int8_t level, STfs *pTfs, char *outputName); diff --git a/source/dnode/vnode/src/sma/smaCommit.c b/source/dnode/vnode/src/sma/smaCommit.c index c26157f4b7..652aab3c01 100644 --- a/source/dnode/vnode/src/sma/smaCommit.c +++ b/source/dnode/vnode/src/sma/smaCommit.c @@ -178,7 +178,7 @@ static int32_t tdProcessRSmaAsyncPreCommitImpl(SSma *pSma, bool isCommit) { if (!isCommit) goto _exit; - // code = tdRSmaPersistExecImpl(pRSmaStat, RSMA_INFO_HASH(pRSmaStat)); + code = tdRSmaPersistExecImpl(pRSmaStat, RSMA_INFO_HASH(pRSmaStat)); TSDB_CHECK_CODE(code, lino, _exit); smaInfo("vgId:%d, rsma commit, operator state committed, TID:%p", SMA_VID(pSma), (void *)taosGetSelfPthreadId()); diff --git a/source/dnode/vnode/src/sma/smaRollup.c b/source/dnode/vnode/src/sma/smaRollup.c index 8da2fff5a6..0d9ff4262f 100644 --- a/source/dnode/vnode/src/sma/smaRollup.c +++ b/source/dnode/vnode/src/sma/smaRollup.c @@ -1052,13 +1052,14 @@ _err: return code; } -#if 0 +#if 1 int32_t tdRSmaPersistExecImpl(SRSmaStat *pRSmaStat, SHashObj *pInfoHash) { int32_t code = 0; int32_t lino = 0; SSma *pSma = pRSmaStat->pSma; SVnode *pVnode = pSma->pVnode; SRSmaFS fs = {0}; + smaInfo("prop:%s:%d start", __func__, __LINE__); if (taosHashGetSize(pInfoHash) <= 0) { return TSDB_CODE_SUCCESS; @@ -1075,6 +1076,7 @@ int32_t tdRSmaPersistExecImpl(SRSmaStat *pRSmaStat, SHashObj *pInfoHash) { for (int32_t i = 0; i < TSDB_RETENTION_L2; ++i) { SRSmaInfoItem *pItem = RSMA_INFO_ITEM(pRSmaInfo, i); if (pItem && pItem->pStreamState) { + smaInfo("prop:%s:%d streamState commit", __func__, __LINE__); if (streamStateCommit(pItem->pStreamState) < 0) { code = TSDB_CODE_RSMA_STREAM_STATE_COMMIT; TSDB_CHECK_CODE(code, lino, _exit); diff --git a/tests/script/tsim/sma/rsmaPersistenceRecovery.sim b/tests/script/tsim/sma/rsmaPersistenceRecovery.sim index 6f78829db7..c70f2dc20a 100644 --- a/tests/script/tsim/sma/rsmaPersistenceRecovery.sim +++ b/tests/script/tsim/sma/rsmaPersistenceRecovery.sim @@ -5,7 +5,7 @@ sleep 50 sql connect #todo wait for streamState checkpoint -return 1 +#return 1 print =============== create database with retentions sql create database d0 retentions -:7d,5m:21d,15m:365d; From b03baaed2cb7ce442941d846437fcb8bab00f00e Mon Sep 17 00:00:00 2001 From: kailixu Date: Mon, 30 Oct 2023 19:49:50 +0800 Subject: [PATCH 6/7] chore: revert the code change --- source/dnode/vnode/src/inc/sma.h | 2 +- source/dnode/vnode/src/sma/smaCommit.c | 2 +- source/dnode/vnode/src/sma/smaRollup.c | 4 +--- tests/script/tsim/sma/rsmaPersistenceRecovery.sim | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/source/dnode/vnode/src/inc/sma.h b/source/dnode/vnode/src/inc/sma.h index a029aadc0b..aaf0973b41 100644 --- a/source/dnode/vnode/src/inc/sma.h +++ b/source/dnode/vnode/src/inc/sma.h @@ -218,7 +218,7 @@ void *tdFreeRSmaInfo(SSma *pSma, SRSmaInfo *pInfo, bool isDeepFree); int32_t tdRSmaRestore(SSma *pSma, int8_t type, int64_t committedVer, int8_t rollback); int32_t tdRSmaProcessCreateImpl(SSma *pSma, SRSmaParam *param, int64_t suid, const char *tbName); int32_t tdRSmaProcessExecImpl(SSma *pSma, ERsmaExecType type); -int32_t tdRSmaPersistExecImpl(SRSmaStat *pRSmaStat, SHashObj *pInfoHash); +// int32_t tdRSmaPersistExecImpl(SRSmaStat *pRSmaStat, SHashObj *pInfoHash); int32_t tdRSmaProcessRestoreImpl(SSma *pSma, int8_t type, int64_t qtaskFileVer, int8_t rollback); void tdRSmaQTaskInfoGetFullPath(SVnode *pVnode, tb_uid_t suid, int8_t level, STfs *pTfs, char *outputName); diff --git a/source/dnode/vnode/src/sma/smaCommit.c b/source/dnode/vnode/src/sma/smaCommit.c index 652aab3c01..c26157f4b7 100644 --- a/source/dnode/vnode/src/sma/smaCommit.c +++ b/source/dnode/vnode/src/sma/smaCommit.c @@ -178,7 +178,7 @@ static int32_t tdProcessRSmaAsyncPreCommitImpl(SSma *pSma, bool isCommit) { if (!isCommit) goto _exit; - code = tdRSmaPersistExecImpl(pRSmaStat, RSMA_INFO_HASH(pRSmaStat)); + // code = tdRSmaPersistExecImpl(pRSmaStat, RSMA_INFO_HASH(pRSmaStat)); TSDB_CHECK_CODE(code, lino, _exit); smaInfo("vgId:%d, rsma commit, operator state committed, TID:%p", SMA_VID(pSma), (void *)taosGetSelfPthreadId()); diff --git a/source/dnode/vnode/src/sma/smaRollup.c b/source/dnode/vnode/src/sma/smaRollup.c index 0d9ff4262f..8da2fff5a6 100644 --- a/source/dnode/vnode/src/sma/smaRollup.c +++ b/source/dnode/vnode/src/sma/smaRollup.c @@ -1052,14 +1052,13 @@ _err: return code; } -#if 1 +#if 0 int32_t tdRSmaPersistExecImpl(SRSmaStat *pRSmaStat, SHashObj *pInfoHash) { int32_t code = 0; int32_t lino = 0; SSma *pSma = pRSmaStat->pSma; SVnode *pVnode = pSma->pVnode; SRSmaFS fs = {0}; - smaInfo("prop:%s:%d start", __func__, __LINE__); if (taosHashGetSize(pInfoHash) <= 0) { return TSDB_CODE_SUCCESS; @@ -1076,7 +1075,6 @@ int32_t tdRSmaPersistExecImpl(SRSmaStat *pRSmaStat, SHashObj *pInfoHash) { for (int32_t i = 0; i < TSDB_RETENTION_L2; ++i) { SRSmaInfoItem *pItem = RSMA_INFO_ITEM(pRSmaInfo, i); if (pItem && pItem->pStreamState) { - smaInfo("prop:%s:%d streamState commit", __func__, __LINE__); if (streamStateCommit(pItem->pStreamState) < 0) { code = TSDB_CODE_RSMA_STREAM_STATE_COMMIT; TSDB_CHECK_CODE(code, lino, _exit); diff --git a/tests/script/tsim/sma/rsmaPersistenceRecovery.sim b/tests/script/tsim/sma/rsmaPersistenceRecovery.sim index c70f2dc20a..6f78829db7 100644 --- a/tests/script/tsim/sma/rsmaPersistenceRecovery.sim +++ b/tests/script/tsim/sma/rsmaPersistenceRecovery.sim @@ -5,7 +5,7 @@ sleep 50 sql connect #todo wait for streamState checkpoint -#return 1 +return 1 print =============== create database with retentions sql create database d0 retentions -:7d,5m:21d,15m:365d; From 28cd8f4915e15f50439f09e4e7ed7088dde3935f Mon Sep 17 00:00:00 2001 From: kailixu Date: Tue, 31 Oct 2023 11:38:33 +0800 Subject: [PATCH 7/7] enh: file duration for rsma --- include/util/tdef.h | 2 +- source/dnode/vnode/src/sma/smaOpen.c | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/include/util/tdef.h b/include/util/tdef.h index bb5d4cfa96..21a290d358 100644 --- a/include/util/tdef.h +++ b/include/util/tdef.h @@ -325,7 +325,7 @@ typedef enum ELogicConditionType { #define TSDB_MAX_DAYS_PER_FILE (3650 * 1440) #define TSDB_DEFAULT_DAYS_PER_FILE (10 * 1440) #define TSDB_MIN_DURATION_PER_FILE 60 // unit minute -#define TSDB_MAX_DURATION_PER_FILE (3650 * 1440) +#define TSDB_MAX_DURATION_PER_FILE (90 * 1440) #define TSDB_DEFAULT_DURATION_PER_FILE (10 * 1440) #define TSDB_MIN_KEEP (1 * 1440) // data in db to be reserved. unit minute #define TSDB_MAX_KEEP (365000 * 1440) // data in db to be reserved. diff --git a/source/dnode/vnode/src/sma/smaOpen.c b/source/dnode/vnode/src/sma/smaOpen.c index f0e329dfd7..633e096314 100644 --- a/source/dnode/vnode/src/sma/smaOpen.c +++ b/source/dnode/vnode/src/sma/smaOpen.c @@ -79,20 +79,18 @@ static int32_t smaEvalDays(SVnode *pVnode, SRetention *r, int8_t level, int8_t p freqDuration = convertTimeFromPrecisionToUnit((r + level)->freq, precision, TIME_UNIT_MINUTE); keepDuration = convertTimeFromPrecisionToUnit((r + level)->keep, precision, TIME_UNIT_MINUTE); - int32_t nFreqTimes = (r + level)->freq / (10 * 1000); // use 10s for freq of 1st level + int32_t nFreqTimes = (r + level)->freq / (60 * 1000); // use 60s for freq of 1st level days *= (nFreqTimes > 1 ? nFreqTimes : 1); - if (days > keepDuration) { - days = keepDuration; - } - - if (days > TSDB_MAX_DURATION_PER_FILE) { - days = TSDB_MAX_DURATION_PER_FILE; - } - if (days < freqDuration) { days = freqDuration; } + + int32_t maxKeepDuration = TMIN(keepDuration, TSDB_MAX_DURATION_PER_FILE); + if (days > maxKeepDuration) { + days = maxKeepDuration; + } + _exit: smaInfo("vgId:%d, evaluated duration for level %d is %d, raw val:%d", TD_VID(pVnode), level + 1, days, duration); return days;