diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 268f10bf39..f2ba413489 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -287,118 +287,118 @@ #define TK_FOR 269 #define TK_NOW 270 #define TK_TODAY 271 -#define TK_SUBSTR 272 -#define TK_SUBSTRING 273 -#define TK_BOTH 274 -#define TK_TRAILING 275 -#define TK_LEADING 276 -#define TK_TIMEZONE 277 -#define TK_CLIENT_VERSION 278 -#define TK_SERVER_VERSION 279 -#define TK_SERVER_STATUS 280 -#define TK_CURRENT_USER 281 -#define TK_PI 282 -#define TK_CASE 283 -#define TK_WHEN 284 -#define TK_THEN 285 -#define TK_ELSE 286 -#define TK_BETWEEN 287 -#define TK_IS 288 -#define TK_NK_LT 289 -#define TK_NK_GT 290 -#define TK_NK_LE 291 -#define TK_NK_GE 292 -#define TK_NK_NE 293 -#define TK_MATCH 294 -#define TK_NMATCH 295 -#define TK_CONTAINS 296 -#define TK_JOIN 297 -#define TK_INNER 298 -#define TK_LEFT 299 -#define TK_RIGHT 300 -#define TK_OUTER 301 -#define TK_SEMI 302 -#define TK_ANTI 303 -#define TK_ASOF 304 -#define TK_WINDOW 305 -#define TK_WINDOW_OFFSET 306 -#define TK_JLIMIT 307 -#define TK_SELECT 308 -#define TK_NK_HINT 309 -#define TK_DISTINCT 310 -#define TK_WHERE 311 -#define TK_PARTITION 312 -#define TK_BY 313 -#define TK_SESSION 314 -#define TK_STATE_WINDOW 315 -#define TK_EVENT_WINDOW 316 -#define TK_COUNT_WINDOW 317 -#define TK_SLIDING 318 -#define TK_FILL 319 -#define TK_VALUE 320 -#define TK_VALUE_F 321 -#define TK_NONE 322 -#define TK_PREV 323 -#define TK_NULL_F 324 -#define TK_LINEAR 325 -#define TK_NEXT 326 -#define TK_HAVING 327 -#define TK_RANGE 328 -#define TK_EVERY 329 -#define TK_ORDER 330 -#define TK_SLIMIT 331 -#define TK_SOFFSET 332 -#define TK_LIMIT 333 -#define TK_OFFSET 334 -#define TK_ASC 335 -#define TK_NULLS 336 -#define TK_ABORT 337 -#define TK_AFTER 338 -#define TK_ATTACH 339 -#define TK_BEFORE 340 -#define TK_BEGIN 341 -#define TK_BITAND 342 -#define TK_BITNOT 343 -#define TK_BITOR 344 -#define TK_BLOCKS 345 -#define TK_CHANGE 346 -#define TK_COMMA 347 -#define TK_CONCAT 348 -#define TK_CONFLICT 349 -#define TK_COPY 350 -#define TK_DEFERRED 351 -#define TK_DELIMITERS 352 -#define TK_DETACH 353 -#define TK_DIVIDE 354 -#define TK_DOT 355 -#define TK_EACH 356 -#define TK_FAIL 357 -#define TK_GLOB 358 -#define TK_ID 359 -#define TK_IMMEDIATE 360 -#define TK_IMPORT 361 -#define TK_INITIALLY 362 -#define TK_INSTEAD 363 -#define TK_ISNULL 364 -#define TK_MODULES 365 -#define TK_NK_BITNOT 366 -#define TK_NK_SEMI 367 -#define TK_NOTNULL 368 -#define TK_OF 369 -#define TK_PLUS 370 -#define TK_PRIVILEGE 371 -#define TK_RAISE 372 -#define TK_RESTRICT 373 -#define TK_ROW 374 -#define TK_STAR 375 -#define TK_STATEMENT 376 -#define TK_STRICT 377 -#define TK_STRING 378 -#define TK_TIMES 379 -#define TK_VALUES 380 -#define TK_VARIABLE 381 -#define TK_WAL 382 - +#define TK_RAND 272 +#define TK_SUBSTR 273 +#define TK_SUBSTRING 274 +#define TK_BOTH 275 +#define TK_TRAILING 276 +#define TK_LEADING 277 +#define TK_TIMEZONE 278 +#define TK_CLIENT_VERSION 279 +#define TK_SERVER_VERSION 280 +#define TK_SERVER_STATUS 281 +#define TK_CURRENT_USER 282 +#define TK_PI 283 +#define TK_CASE 284 +#define TK_WHEN 285 +#define TK_THEN 286 +#define TK_ELSE 287 +#define TK_BETWEEN 288 +#define TK_IS 289 +#define TK_NK_LT 290 +#define TK_NK_GT 291 +#define TK_NK_LE 292 +#define TK_NK_GE 293 +#define TK_NK_NE 294 +#define TK_MATCH 295 +#define TK_NMATCH 296 +#define TK_CONTAINS 297 +#define TK_JOIN 298 +#define TK_INNER 299 +#define TK_LEFT 300 +#define TK_RIGHT 301 +#define TK_OUTER 302 +#define TK_SEMI 303 +#define TK_ANTI 304 +#define TK_ASOF 305 +#define TK_WINDOW 306 +#define TK_WINDOW_OFFSET 307 +#define TK_JLIMIT 308 +#define TK_SELECT 309 +#define TK_NK_HINT 310 +#define TK_DISTINCT 311 +#define TK_WHERE 312 +#define TK_PARTITION 313 +#define TK_BY 314 +#define TK_SESSION 315 +#define TK_STATE_WINDOW 316 +#define TK_EVENT_WINDOW 317 +#define TK_COUNT_WINDOW 318 +#define TK_SLIDING 319 +#define TK_FILL 320 +#define TK_VALUE 321 +#define TK_VALUE_F 322 +#define TK_NONE 323 +#define TK_PREV 324 +#define TK_NULL_F 325 +#define TK_LINEAR 326 +#define TK_NEXT 327 +#define TK_HAVING 328 +#define TK_RANGE 329 +#define TK_EVERY 330 +#define TK_ORDER 331 +#define TK_SLIMIT 332 +#define TK_SOFFSET 333 +#define TK_LIMIT 334 +#define TK_OFFSET 335 +#define TK_ASC 336 +#define TK_NULLS 337 +#define TK_ABORT 338 +#define TK_AFTER 339 +#define TK_ATTACH 340 +#define TK_BEFORE 341 +#define TK_BEGIN 342 +#define TK_BITAND 343 +#define TK_BITNOT 344 +#define TK_BITOR 345 +#define TK_BLOCKS 346 +#define TK_CHANGE 347 +#define TK_COMMA 348 +#define TK_CONCAT 349 +#define TK_CONFLICT 350 +#define TK_COPY 351 +#define TK_DEFERRED 352 +#define TK_DELIMITERS 353 +#define TK_DETACH 354 +#define TK_DIVIDE 355 +#define TK_DOT 356 +#define TK_EACH 357 +#define TK_FAIL 358 +#define TK_GLOB 359 +#define TK_ID 360 +#define TK_IMMEDIATE 361 +#define TK_IMPORT 362 +#define TK_INITIALLY 363 +#define TK_INSTEAD 364 +#define TK_ISNULL 365 +#define TK_MODULES 366 +#define TK_NK_BITNOT 367 +#define TK_NK_SEMI 368 +#define TK_NOTNULL 369 +#define TK_OF 370 +#define TK_PLUS 371 +#define TK_PRIVILEGE 372 +#define TK_RAISE 373 +#define TK_RESTRICT 374 +#define TK_ROW 375 +#define TK_STAR 376 +#define TK_STATEMENT 377 +#define TK_STRICT 378 +#define TK_STRING 379 +#define TK_TIMES 380 +#define TK_VALUES 381 +#define TK_VARIABLE 382 +#define TK_WAL 383 #define TK_NK_SPACE 600 #define TK_NK_COMMENT 601 diff --git a/include/libs/nodes/querynodes.h b/include/libs/nodes/querynodes.h index b1d8be2f0e..1b02203c07 100644 --- a/include/libs/nodes/querynodes.h +++ b/include/libs/nodes/querynodes.h @@ -191,6 +191,8 @@ typedef struct SFunctionNode { bool hasOriginalFunc; int32_t originalFuncId; ETrimType trimType; + bool hasSMA; + bool dual; // whether select stmt without from stmt, true for without. } SFunctionNode; typedef struct STableNode { diff --git a/include/libs/scalar/scalar.h b/include/libs/scalar/scalar.h index 70b44a4b52..b06b7c74c7 100644 --- a/include/libs/scalar/scalar.h +++ b/include/libs/scalar/scalar.h @@ -70,6 +70,7 @@ int32_t modFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOutpu int32_t signFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOutput); int32_t degreesFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOutput); int32_t radiansFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOutput); +int32_t randFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOutput); /* String functions */ int32_t lengthFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOutput); diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index 1b10ba3226..758a4aeec3 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -43,22 +43,22 @@ #include "tcol.h" #include "tlog.h" -#define DECODESQL() \ - do { \ - if (!tDecodeIsEnd(&decoder)) { \ - if (tDecodeI32(&decoder, &pReq->sqlLen) < 0) return -1; \ - if (pReq->sqlLen > 0) { \ - if (tDecodeBinaryAlloc(&decoder, (void **)&pReq->sql, NULL) < 0) return -1; \ - } \ - } \ +#define DECODESQL() \ + do { \ + if (!tDecodeIsEnd(&decoder)) { \ + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &pReq->sqlLen)); \ + if (pReq->sqlLen > 0) { \ + TAOS_CHECK_EXIT(tDecodeBinaryAlloc(&decoder, (void **)&pReq->sql, NULL)); \ + } \ + } \ } while (0) -#define ENCODESQL() \ - do { \ - if (tEncodeI32(&encoder, pReq->sqlLen) < 0) return -1; \ - if (pReq->sqlLen > 0) { \ - if (tEncodeBinary(&encoder, pReq->sql, pReq->sqlLen) < 0) return -1; \ - } \ +#define ENCODESQL() \ + do { \ + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pReq->sqlLen)); \ + if (pReq->sqlLen > 0) { \ + TAOS_CHECK_EXIT(tEncodeBinary(&encoder, (const uint8_t *)pReq->sql, pReq->sqlLen)); \ + } \ } while (0) #define FREESQL() \ @@ -1243,19 +1243,7 @@ _exit: tDecoderClear(&decoder); return code; } -// int32_t tSerializeSDropTagIdxReq(void *buf, int32_t bufLen, SDropTagIndexReq *pReq) { -// SEncoder encoder = {0}; -// tEncoderInit(&encoder, buf, bufLen); -// if (tStartEncode(&encoder) < 0) return -1; -// tEndEncode(&encoder); -// if (tEncodeCStr(&encoder, pReq->name) < 0) return -1; -// if (tEncodeI8(&encoder, pReq->igNotExists) < 0) return -1; - -// int32_t tlen = encoder.pos; -// tEncoderClear(&encoder); -// return tlen; -// } int32_t tDeserializeSDropTagIdxReq(void *buf, int32_t bufLen, SDropTagIndexReq *pReq) { SDecoder decoder = {0}; int32_t code = 0; @@ -1307,32 +1295,6 @@ void tFreeSMCreateFullTextReq(SMCreateFullTextReq *pReq) { // impl later return; } -// int32_t tSerializeSMDropFullTextReq(void *buf, int32_t bufLen, SMDropFullTextReq *pReq) { -// SEncoder encoder = {0}; -// tEncoderInit(&encoder, buf, bufLen); - -// if (tStartEncode(&encoder) < 0) return -1; - -// if (tEncodeCStr(&encoder, pReq->name) < 0) return -1; - -// if (tEncodeI8(&encoder, pReq->igNotExists) < 0) return -1; - -// tEndEncode(&encoder); -// int32_t tlen = encoder.pos; -// tEncoderClear(&encoder); -// return tlen; -// } -// int32_t tDeserializeSMDropFullTextReq(void *buf, int32_t bufLen, SMDropFullTextReq *pReq) { -// SDecoder decoder = {0}; -// tDecoderInit(&decoder, buf, bufLen); -// if (tStartDecode(&decoder) < 0) return -1; -// if (tDecodeCStrTo(&decoder, pReq->name) < 0) return -1; -// if (tDecodeI8(&decoder, &pReq->igNotExists) < 0) return -1; - -// tEndDecode(&decoder); -// tDecoderClear(&decoder); -// return 0; -// } int32_t tSerializeSNotifyReq(void *buf, int32_t bufLen, SNotifyReq *pReq) { SEncoder encoder = {0}; @@ -2108,7 +2070,7 @@ int32_t tSerializeSAlterUserReq(void *buf, int32_t bufLen, SAlterUserReq *pReq) if (len > 0) { TAOS_CHECK_EXIT(tEncodeCStr(&encoder, pReq->tabName)); } - TAOS_CHECK_EXIT(tEncodeBinary(&encoder, pReq->tagCond, pReq->tagCondLen)); + TAOS_CHECK_EXIT(tEncodeBinary(&encoder, (const uint8_t *)pReq->tagCond, pReq->tagCondLen)); TAOS_CHECK_EXIT(tEncodeI32(&encoder, pReq->numIpRanges)); for (int32_t i = 0; i < pReq->numIpRanges; ++i) { TAOS_CHECK_EXIT(tEncodeU32(&encoder, pReq->pIpRanges[i].ip)); @@ -3386,6 +3348,8 @@ void tFreeSRetrieveFuncRsp(SRetrieveFuncRsp *pRsp) { } int32_t tSerializeSTableCfgReq(void *buf, int32_t bufLen, STableCfgReq *pReq) { + int32_t code = 0; + int32_t lino; int32_t headLen = sizeof(SMsgHead); if (buf != NULL) { buf = (char *)buf + headLen; @@ -3395,26 +3359,34 @@ int32_t tSerializeSTableCfgReq(void *buf, int32_t bufLen, STableCfgReq *pReq) { SEncoder encoder = {0}; tEncoderInit(&encoder, buf, bufLen); - if (tStartEncode(&encoder) < 0) return -1; - if (tEncodeCStr(&encoder, pReq->dbFName) < 0) return -1; - if (tEncodeCStr(&encoder, pReq->tbName) < 0) return -1; + TAOS_CHECK_EXIT(tStartEncode(&encoder)); + TAOS_CHECK_EXIT(tEncodeCStr(&encoder, pReq->dbFName)); + TAOS_CHECK_EXIT(tEncodeCStr(&encoder, pReq->tbName)); tEndEncode(&encoder); - int32_t tlen = encoder.pos; - tEncoderClear(&encoder); +_exit: + if (code) { + tEncoderClear(&encoder); + return code; + } else { + int32_t tlen = encoder.pos; + tEncoderClear(&encoder); - if (buf != NULL) { - SMsgHead *pHead = (SMsgHead *)((char *)buf - headLen); - pHead->vgId = htonl(pReq->header.vgId); - pHead->contLen = htonl(tlen + headLen); + if (buf != NULL) { + SMsgHead *pHead = (SMsgHead *)((char *)buf - headLen); + pHead->vgId = htonl(pReq->header.vgId); + pHead->contLen = htonl(tlen + headLen); + } + + return tlen + headLen; } - - return tlen + headLen; } int32_t tDeserializeSTableCfgReq(void *buf, int32_t bufLen, STableCfgReq *pReq) { int32_t headLen = sizeof(SMsgHead); + int32_t code = 0; + int32_t lino; SMsgHead *pHead = buf; pHead->vgId = pReq->header.vgId; pHead->contLen = pReq->header.contLen; @@ -3422,13 +3394,14 @@ int32_t tDeserializeSTableCfgReq(void *buf, int32_t bufLen, STableCfgReq *pReq) SDecoder decoder = {0}; tDecoderInit(&decoder, (char *)buf + headLen, bufLen - headLen); - if (tStartDecode(&decoder) < 0) return -1; - if (tDecodeCStrTo(&decoder, pReq->dbFName) < 0) return -1; - if (tDecodeCStrTo(&decoder, pReq->tbName) < 0) return -1; + TAOS_CHECK_EXIT(tStartDecode(&decoder)); + TAOS_CHECK_EXIT(tDecodeCStrTo(&decoder, pReq->dbFName)); + TAOS_CHECK_EXIT(tDecodeCStrTo(&decoder, pReq->tbName)); tEndDecode(&decoder); +_exit: tDecoderClear(&decoder); - return 0; + return code; } int32_t tSerializeSTableCfgRsp(void *buf, int32_t bufLen, STableCfgRsp *pRsp) { @@ -4683,14 +4656,22 @@ _exit: int32_t tSerializeSTrimDbReq(void *buf, int32_t bufLen, STrimDbReq *pReq) { SEncoder encoder = {0}; + int32_t code = 0; + int32_t lino; + int32_t tlen; tEncoderInit(&encoder, buf, bufLen); - if (tStartEncode(&encoder) < 0) return -1; - if (tEncodeCStr(&encoder, pReq->db) < 0) return -1; - if (tEncodeI32(&encoder, pReq->maxSpeed) < 0) return -1; + TAOS_CHECK_EXIT(tStartEncode(&encoder)); + TAOS_CHECK_EXIT(tEncodeCStr(&encoder, pReq->db)); + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pReq->maxSpeed)); tEndEncode(&encoder); - int32_t tlen = encoder.pos; +_exit: + if (code) { + tlen = code; + } else { + tlen = encoder.pos; + } tEncoderClear(&encoder); return tlen; } @@ -5726,6 +5707,8 @@ void tFreeSSTbHbRsp(SSTbHbRsp *pRsp) { int32_t tSerializeSTableInfoReq(void *buf, int32_t bufLen, STableInfoReq *pReq) { int32_t headLen = sizeof(SMsgHead); + int32_t code = 0; + int32_t lino; if (buf != NULL) { buf = (char *)buf + headLen; bufLen -= headLen; @@ -5734,26 +5717,33 @@ int32_t tSerializeSTableInfoReq(void *buf, int32_t bufLen, STableInfoReq *pReq) SEncoder encoder = {0}; tEncoderInit(&encoder, buf, bufLen); - if (tStartEncode(&encoder) < 0) return -1; - if (tEncodeCStr(&encoder, pReq->dbFName) < 0) return -1; - if (tEncodeCStr(&encoder, pReq->tbName) < 0) return -1; + TAOS_CHECK_EXIT(tStartEncode(&encoder)); + TAOS_CHECK_EXIT(tEncodeCStr(&encoder, pReq->dbFName)); + TAOS_CHECK_EXIT(tEncodeCStr(&encoder, pReq->tbName)); tEndEncode(&encoder); - int32_t tlen = encoder.pos; - tEncoderClear(&encoder); +_exit: + if (code) { + tEncoderClear(&encoder); + return code; + } else { + int32_t tlen = encoder.pos; + tEncoderClear(&encoder); - if (buf != NULL) { - SMsgHead *pHead = (SMsgHead *)((char *)buf - headLen); - pHead->vgId = htonl(pReq->header.vgId); - pHead->contLen = htonl(tlen + headLen); + if (buf != NULL) { + SMsgHead *pHead = (SMsgHead *)((char *)buf - headLen); + pHead->vgId = htonl(pReq->header.vgId); + pHead->contLen = htonl(tlen + headLen); + } + + return tlen + headLen; } - - return tlen + headLen; } int32_t tDeserializeSTableInfoReq(void *buf, int32_t bufLen, STableInfoReq *pReq) { - int32_t headLen = sizeof(SMsgHead); - + int32_t headLen = sizeof(SMsgHead); + int32_t code = 0; + int32_t lino; SMsgHead *pHead = buf; pHead->vgId = pReq->header.vgId; pHead->contLen = pReq->header.contLen; @@ -5761,13 +5751,14 @@ int32_t tDeserializeSTableInfoReq(void *buf, int32_t bufLen, STableInfoReq *pReq SDecoder decoder = {0}; tDecoderInit(&decoder, (char *)buf + headLen, bufLen - headLen); - if (tStartDecode(&decoder) < 0) return -1; - if (tDecodeCStrTo(&decoder, pReq->dbFName) < 0) return -1; - if (tDecodeCStrTo(&decoder, pReq->tbName) < 0) return -1; + TAOS_CHECK_EXIT(tStartDecode(&decoder)); + TAOS_CHECK_EXIT(tDecodeCStrTo(&decoder, pReq->dbFName)); + TAOS_CHECK_EXIT(tDecodeCStrTo(&decoder, pReq->tbName)); tEndDecode(&decoder); +_exit: tDecoderClear(&decoder); - return 0; + return code; } int32_t tSerializeSMDropTopicReq(void *buf, int32_t bufLen, SMDropTopicReq *pReq) { @@ -6393,7 +6384,7 @@ int32_t tSerializeSQueryCompactProgressReq(void *buf, int32_t bufLen, SQueryComp int32_t tlen; tEncoderInit(&encoder, buf, bufLen); - if (tStartEncode(&encoder) < 0) return -1; + TAOS_CHECK_EXIT(tStartEncode(&encoder)); TAOS_CHECK_EXIT(tEncodeI32(&encoder, pReq->compactId)); TAOS_CHECK_EXIT(tEncodeI32(&encoder, pReq->vgId)); @@ -7768,7 +7759,9 @@ int32_t tDeserializeSMArbUpdateGroupBatchReq(void *buf, int32_t bufLen, SMArbUpd TAOS_CHECK_EXIT(tDecodeI32(&decoder, &sz)); SArray *updateArray = taosArrayInit(sz, sizeof(SMArbUpdateGroup)); - if (!updateArray) return -1; + if (!updateArray) { + TAOS_CHECK_EXIT(terrno); + } for (int32_t i = 0; i < sz; i++) { SMArbUpdateGroup group = {0}; @@ -7939,6 +7932,8 @@ void tFreeSExplainRsp(SExplainRsp *pRsp) { } int32_t tSerializeSBatchReq(void *buf, int32_t bufLen, SBatchReq *pReq) { + int32_t code = 0; + int32_t lino; int32_t headLen = sizeof(SMsgHead); if (buf != NULL) { buf = (char *)buf + headLen; @@ -7947,35 +7942,42 @@ int32_t tSerializeSBatchReq(void *buf, int32_t bufLen, SBatchReq *pReq) { SEncoder encoder = {0}; tEncoderInit(&encoder, buf, bufLen); - if (tStartEncode(&encoder) < 0) return -1; + TAOS_CHECK_EXIT(tStartEncode(&encoder)); int32_t num = taosArrayGetSize(pReq->pMsgs); - if (tEncodeI32(&encoder, num) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI32(&encoder, num)); for (int32_t i = 0; i < num; ++i) { SBatchMsg *pMsg = taosArrayGet(pReq->pMsgs, i); - if (tEncodeI32(&encoder, pMsg->msgIdx) < 0) return -1; - if (tEncodeI32(&encoder, pMsg->msgType) < 0) return -1; - if (tEncodeI32(&encoder, pMsg->msgLen) < 0) return -1; - if (tEncodeBinary(&encoder, pMsg->msg, pMsg->msgLen) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pMsg->msgIdx)); + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pMsg->msgType)); + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pMsg->msgLen)); + TAOS_CHECK_EXIT(tEncodeBinary(&encoder, pMsg->msg, pMsg->msgLen)); } tEndEncode(&encoder); - int32_t tlen = encoder.pos; - tEncoderClear(&encoder); +_exit: + if (code) { + tEncoderClear(&encoder); + return code; + } else { + int32_t tlen = encoder.pos; + tEncoderClear(&encoder); - if (buf != NULL) { - SMsgHead *pHead = (SMsgHead *)((char *)buf - headLen); - pHead->vgId = htonl(pReq->header.vgId); - pHead->contLen = htonl(tlen + headLen); + if (buf != NULL) { + SMsgHead *pHead = (SMsgHead *)((char *)buf - headLen); + pHead->vgId = htonl(pReq->header.vgId); + pHead->contLen = htonl(tlen + headLen); + } + + return tlen + headLen; } - - return tlen + headLen; } int32_t tDeserializeSBatchReq(void *buf, int32_t bufLen, SBatchReq *pReq) { - int32_t headLen = sizeof(SMsgHead); - + int32_t headLen = sizeof(SMsgHead); + int32_t code = 0; + int32_t lino; SMsgHead *pHead = buf; pHead->vgId = pReq->header.vgId; pHead->contLen = pReq->header.contLen; @@ -7983,33 +7985,37 @@ int32_t tDeserializeSBatchReq(void *buf, int32_t bufLen, SBatchReq *pReq) { SDecoder decoder = {0}; tDecoderInit(&decoder, (char *)buf + headLen, bufLen - headLen); - if (tStartDecode(&decoder) < 0) return -1; + TAOS_CHECK_EXIT(tStartDecode(&decoder)); int32_t num = 0; - if (tDecodeI32(&decoder, &num) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &num)); if (num <= 0) { pReq->pMsgs = NULL; tEndDecode(&decoder); - tDecoderClear(&decoder); return 0; } pReq->pMsgs = taosArrayInit(num, sizeof(SBatchMsg)); - if (NULL == pReq->pMsgs) return -1; + if (NULL == pReq->pMsgs) { + TAOS_CHECK_EXIT(terrno); + } for (int32_t i = 0; i < num; ++i) { SBatchMsg msg = {0}; - if (tDecodeI32(&decoder, &msg.msgIdx) < 0) return -1; - if (tDecodeI32(&decoder, &msg.msgType) < 0) return -1; - if (tDecodeI32(&decoder, &msg.msgLen) < 0) return -1; - if (tDecodeBinaryAlloc(&decoder, &msg.msg, NULL) < 0) return -1; - if (NULL == taosArrayPush(pReq->pMsgs, &msg)) return -1; + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &msg.msgIdx)); + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &msg.msgType)); + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &msg.msgLen)); + TAOS_CHECK_EXIT(tDecodeBinaryAlloc(&decoder, &msg.msg, NULL)); + if (NULL == taosArrayPush(pReq->pMsgs, &msg)) { + TAOS_CHECK_EXIT(terrno); + } } tEndDecode(&decoder); +_exit: tDecoderClear(&decoder); - return 0; + return code; } int32_t tSerializeSBatchRsp(void *buf, int32_t bufLen, SBatchRsp *pRsp) { @@ -8169,7 +8175,9 @@ int32_t tDeserializeSMqHbRsp(void *buf, int32_t bufLen, SMqHbRsp *pRsp) { TAOS_CHECK_EXIT(tDecodeI32(&decoder, &sz)); if (sz > 0) { pRsp->topicPrivileges = taosArrayInit(sz, sizeof(STopicPrivilege)); - if (NULL == pRsp->topicPrivileges) return -1; + if (NULL == pRsp->topicPrivileges) { + TAOS_CHECK_EXIT(terrno); + } for (int32_t i = 0; i < sz; ++i) { STopicPrivilege *data = taosArrayReserve(pRsp->topicPrivileges, 1); TAOS_CHECK_EXIT(tDecodeCStrTo(&decoder, data->topic)); @@ -8529,7 +8537,7 @@ int32_t tSerializeSResFetchReq(void *buf, int32_t bufLen, SResFetchReq *pReq) { TAOS_CHECK_EXIT(tEncodeI32(&encoder, pReq->execId)); if (pReq->pOpParam) { TAOS_CHECK_EXIT(tEncodeI32(&encoder, 1)); - if (tSerializeSOperatorParam(&encoder, pReq->pOpParam) < 0) return -1; + TAOS_CHECK_EXIT(tSerializeSOperatorParam(&encoder, pReq->pOpParam)); } else { TAOS_CHECK_EXIT(tEncodeI32(&encoder, 0)); } @@ -9021,7 +9029,9 @@ int32_t tDeserializeSSchedulerHbRsp(void *buf, int32_t bufLen, SSchedulerHbRsp * TAOS_CHECK_EXIT(tDecodeI32(&decoder, &num)); if (num > 0) { pRsp->taskStatus = taosArrayInit(num, sizeof(STaskStatus)); - if (NULL == pRsp->taskStatus) return -1; + if (NULL == pRsp->taskStatus) { + TAOS_CHECK_EXIT(terrno); + } for (int32_t i = 0; i < num; ++i) { STaskStatus status = {0}; TAOS_CHECK_EXIT(tDecodeU64(&decoder, &status.queryId)); @@ -9289,8 +9299,12 @@ int32_t tSerializeSCMCreateStreamReq(void *buf, int32_t bufLen, const SCMCreateS TAOS_CHECK_EXIT(tEncodeI64(&encoder, pReq->maxDelay)); TAOS_CHECK_EXIT(tEncodeI64(&encoder, pReq->watermark)); TAOS_CHECK_EXIT(tEncodeI8(&encoder, pReq->igExpired)); - if (sqlLen > 0 && tEncodeCStr(&encoder, pReq->sql) < 0) return -1; - if (astLen > 0 && tEncodeCStr(&encoder, pReq->ast) < 0) return -1; + if (sqlLen > 0) { + TAOS_CHECK_EXIT(tEncodeCStr(&encoder, pReq->sql)); + } + if (astLen > 0) { + TAOS_CHECK_EXIT(tEncodeCStr(&encoder, pReq->ast)); + } TAOS_CHECK_EXIT(tEncodeI32(&encoder, pReq->numOfTags)); for (int32_t i = 0; i < pReq->numOfTags; ++i) { SField *pField = taosArrayGet(pReq->pTags, i); @@ -9735,7 +9749,9 @@ int tDecodeSVCreateTbReq(SDecoder *pCoder, SVCreateTbReq *pReq) { TAOS_CHECK_EXIT(tDecodeI32(pCoder, &pReq->commentLen)); if (pReq->commentLen > 0) { pReq->comment = taosMemoryMalloc(pReq->commentLen + 1); - if (pReq->comment == NULL) return -1; + if (pReq->comment == NULL) { + TAOS_CHECK_EXIT(terrno); + } TAOS_CHECK_EXIT(tDecodeCStrTo(pCoder, pReq->comment)); } @@ -10244,7 +10260,9 @@ int32_t tDecodeSVAlterTbRsp(SDecoder *pDecoder, SVAlterTbRsp *pRsp) { TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &meta)); if (meta) { pRsp->pMeta = taosMemoryCalloc(1, sizeof(STableMetaRsp)); - if (NULL == pRsp->pMeta) return -1; + if (NULL == pRsp->pMeta) { + TAOS_CHECK_EXIT(terrno); + } TAOS_CHECK_EXIT(tDecodeSTableMetaRsp(pDecoder, pRsp->pMeta)); } tEndDecode(pDecoder); @@ -10275,7 +10293,9 @@ int32_t tDecodeSMAlterStbRsp(SDecoder *pDecoder, SMAlterStbRsp *pRsp) { TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &meta)); if (meta) { pRsp->pMeta = taosMemoryCalloc(1, sizeof(STableMetaRsp)); - if (NULL == pRsp->pMeta) return -1; + if (NULL == pRsp->pMeta) { + TAOS_CHECK_EXIT(terrno); + } TAOS_CHECK_EXIT(tDecodeSTableMetaRsp(pDecoder, pRsp->pMeta)); } tEndDecode(pDecoder); @@ -10383,8 +10403,8 @@ int32_t tDecodeSTqOffsetVal(SDecoder *pDecoder, STqOffsetVal *pOffsetVal) { if (offsetVersion >= TQ_OFFSET_VERSION) { TAOS_CHECK_EXIT(tDecodeI8(pDecoder, &pOffsetVal->primaryKey.type)); if (IS_VAR_DATA_TYPE(pOffsetVal->primaryKey.type)) { - if (tDecodeBinaryAlloc32(pDecoder, (void **)&pOffsetVal->primaryKey.pData, &pOffsetVal->primaryKey.nData) < 0) - return -1; + TAOS_CHECK_EXIT( + tDecodeBinaryAlloc32(pDecoder, (void **)&pOffsetVal->primaryKey.pData, &pOffsetVal->primaryKey.nData)); } else { TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pOffsetVal->primaryKey.val)); } @@ -11697,7 +11717,9 @@ int32_t tDeserializeSViewHbRsp(void *buf, int32_t bufLen, SViewHbRsp *pRsp) { for (int32_t i = 0; i < numOfMeta; ++i) { SViewMetaRsp *metaRsp = taosMemoryCalloc(1, sizeof(SViewMetaRsp)); - if (NULL == metaRsp) return -1; + if (NULL == metaRsp) { + TAOS_CHECK_EXIT(terrno); + } TAOS_CHECK_EXIT(tDecodeSViewMetaRsp(&decoder, metaRsp)); if (taosArrayPush(pRsp->pViewRsp, &metaRsp) == NULL) { TAOS_CHECK_EXIT(terrno); diff --git a/source/dnode/mnode/impl/src/mndCompact.c b/source/dnode/mnode/impl/src/mndCompact.c index b8073885fd..bce8c5901d 100644 --- a/source/dnode/mnode/impl/src/mndCompact.c +++ b/source/dnode/mnode/impl/src/mndCompact.c @@ -55,36 +55,44 @@ void tFreeCompactObj(SCompactObj *pCompact) {} int32_t tSerializeSCompactObj(void *buf, int32_t bufLen, const SCompactObj *pObj) { SEncoder encoder = {0}; + int32_t code = 0; + int32_t lino; + int32_t tlen; tEncoderInit(&encoder, buf, bufLen); - if (tStartEncode(&encoder) < 0) return -1; - - if (tEncodeI32(&encoder, pObj->compactId) < 0) return -1; - if (tEncodeCStr(&encoder, pObj->dbname) < 0) return -1; - if (tEncodeI64(&encoder, pObj->startTime) < 0) return -1; + TAOS_CHECK_EXIT(tStartEncode(&encoder)); + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pObj->compactId)); + TAOS_CHECK_EXIT(tEncodeCStr(&encoder, pObj->dbname)); + TAOS_CHECK_EXIT(tEncodeI64(&encoder, pObj->startTime)); tEndEncode(&encoder); - int32_t tlen = encoder.pos; +_exit: + if (code) { + tlen = code; + } else { + tlen = encoder.pos; + } tEncoderClear(&encoder); return tlen; } int32_t tDeserializeSCompactObj(void *buf, int32_t bufLen, SCompactObj *pObj) { - int8_t ex = 0; + int32_t code = 0; + int32_t lino; SDecoder decoder = {0}; tDecoderInit(&decoder, buf, bufLen); - TAOS_CHECK_RETURN(tStartDecode(&decoder)); - - TAOS_CHECK_RETURN(tDecodeI32(&decoder, &pObj->compactId)); - TAOS_CHECK_RETURN(tDecodeCStrTo(&decoder, pObj->dbname)); - TAOS_CHECK_RETURN(tDecodeI64(&decoder, &pObj->startTime)); + TAOS_CHECK_EXIT(tStartDecode(&decoder)); + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &pObj->compactId)); + TAOS_CHECK_EXIT(tDecodeCStrTo(&decoder, pObj->dbname)); + TAOS_CHECK_EXIT(tDecodeI64(&decoder, &pObj->startTime)); tEndDecode(&decoder); +_exit: tDecoderClear(&decoder); - return 0; + return code; } SSdbRaw *mndCompactActionEncode(SCompactObj *pCompact) { @@ -633,8 +641,8 @@ void mndCompactSendProgressReq(SMnode *pMnode, SCompactObj *pCompact) { static int32_t mndSaveCompactProgress(SMnode *pMnode, int32_t compactId) { int32_t code = 0; - bool needSave = false; - void *pIter = NULL; + bool needSave = false; + void *pIter = NULL; while (1) { SCompactDetailObj *pDetail = NULL; pIter = sdbFetch(pMnode->pSdb, SDB_COMPACT_DETAIL, pIter, (void **)&pDetail); diff --git a/source/dnode/mnode/impl/src/mndCompactDetail.c b/source/dnode/mnode/impl/src/mndCompactDetail.c index 86d398e7bd..d1bdb4734d 100644 --- a/source/dnode/mnode/impl/src/mndCompactDetail.c +++ b/source/dnode/mnode/impl/src/mndCompactDetail.c @@ -13,9 +13,9 @@ * along with this program. If not, see . */ #include "mndCompactDetail.h" -#include "mndTrans.h" -#include "mndShow.h" #include "mndDb.h" +#include "mndShow.h" +#include "mndTrans.h" #define MND_COMPACT_VER_NUMBER 1 @@ -35,21 +35,20 @@ int32_t mndInitCompactDetail(SMnode *pMnode) { return sdbSetTable(pMnode->pSdb, table); } -void mndCleanupCompactDetail(SMnode *pMnode) { - mDebug("mnd compact detail cleanup"); -} +void mndCleanupCompactDetail(SMnode *pMnode) { mDebug("mnd compact detail cleanup"); } + +int32_t mndRetrieveCompactDetail(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *pBlock, int32_t rows) { + SMnode *pMnode = pReq->info.node; + SSdb *pSdb = pMnode->pSdb; + int32_t numOfRows = 0; + SCompactDetailObj *pCompactDetail = NULL; + char *sep = NULL; + SDbObj *pDb = NULL; -int32_t mndRetrieveCompactDetail(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *pBlock, int32_t rows){ - SMnode *pMnode = pReq->info.node; - SSdb *pSdb = pMnode->pSdb; - int32_t numOfRows = 0; - SCompactDetailObj *pCompactDetail = NULL; - char *sep = NULL; - SDbObj *pDb = NULL; - if (strlen(pShow->db) > 0) { sep = strchr(pShow->db, '.'); - if (sep && ((0 == strcmp(sep + 1, TSDB_INFORMATION_SCHEMA_DB) || (0 == strcmp(sep + 1, TSDB_PERFORMANCE_SCHEMA_DB))))) { + if (sep && + ((0 == strcmp(sep + 1, TSDB_INFORMATION_SCHEMA_DB) || (0 == strcmp(sep + 1, TSDB_PERFORMANCE_SCHEMA_DB))))) { sep++; } else { pDb = mndAcquireDb(pMnode, pShow->db); @@ -57,7 +56,7 @@ int32_t mndRetrieveCompactDetail(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *pB } } - while(numOfRows < rows){ + while (numOfRows < rows) { pShow->pIter = sdbFetch(pSdb, SDB_COMPACT_DETAIL, pShow->pIter, (void **)&pCompactDetail); if (pShow->pIter == NULL) break; @@ -94,53 +93,60 @@ int32_t mndRetrieveCompactDetail(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *pB return numOfRows; } -void tFreeCompactDetailObj(SCompactDetailObj *pCompact) { -} +void tFreeCompactDetailObj(SCompactDetailObj *pCompact) {} int32_t tSerializeSCompactDetailObj(void *buf, int32_t bufLen, const SCompactDetailObj *pObj) { SEncoder encoder = {0}; + int32_t code = 0; + int32_t lino; + int32_t tlen; tEncoderInit(&encoder, buf, bufLen); - if (tStartEncode(&encoder) < 0) return -1; - - if (tEncodeI32(&encoder, pObj->compactDetailId) < 0) return -1; - if (tEncodeI32(&encoder, pObj->compactId) < 0) return -1; - if (tEncodeI32(&encoder, pObj->vgId) < 0) return -1; - if (tEncodeI32(&encoder, pObj->dnodeId) < 0) return -1; - if (tEncodeI32(&encoder, pObj->numberFileset) < 0) return -1; - if (tEncodeI32(&encoder, pObj->finished) < 0) return -1; - if (tEncodeI64(&encoder, pObj->startTime) < 0) return -1; - if (tEncodeI32(&encoder, pObj->newNumberFileset) < 0) return -1; - if (tEncodeI32(&encoder, pObj->newFinished) < 0) return -1; + TAOS_CHECK_EXIT(tStartEncode(&encoder)); + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pObj->compactDetailId)); + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pObj->compactId)); + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pObj->vgId)); + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pObj->dnodeId)); + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pObj->numberFileset)); + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pObj->finished)); + TAOS_CHECK_EXIT(tEncodeI64(&encoder, pObj->startTime)); + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pObj->newNumberFileset)); + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pObj->newFinished)); tEndEncode(&encoder); - int32_t tlen = encoder.pos; +_exit: + if (code) { + tlen = code; + } else { + tlen = encoder.pos; + } tEncoderClear(&encoder); return tlen; } int32_t tDeserializeSCompactDetailObj(void *buf, int32_t bufLen, SCompactDetailObj *pObj) { - int8_t ex = 0; + int32_t code = 0; + int32_t lino; SDecoder decoder = {0}; tDecoderInit(&decoder, buf, bufLen); - TAOS_CHECK_RETURN(tStartDecode(&decoder)); - - TAOS_CHECK_RETURN(tDecodeI32(&decoder, &pObj->compactDetailId)); - TAOS_CHECK_RETURN(tDecodeI32(&decoder, &pObj->compactId)); - TAOS_CHECK_RETURN(tDecodeI32(&decoder, &pObj->vgId)); - TAOS_CHECK_RETURN(tDecodeI32(&decoder, &pObj->dnodeId)); - TAOS_CHECK_RETURN(tDecodeI32(&decoder, &pObj->numberFileset)); - TAOS_CHECK_RETURN(tDecodeI32(&decoder, &pObj->finished)); - TAOS_CHECK_RETURN(tDecodeI64(&decoder, &pObj->startTime)); - TAOS_CHECK_RETURN(tDecodeI32(&decoder, &pObj->newNumberFileset)); - TAOS_CHECK_RETURN(tDecodeI32(&decoder, &pObj->newFinished)); + TAOS_CHECK_EXIT(tStartDecode(&decoder)); + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &pObj->compactDetailId)); + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &pObj->compactId)); + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &pObj->vgId)); + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &pObj->dnodeId)); + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &pObj->numberFileset)); + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &pObj->finished)); + TAOS_CHECK_EXIT(tDecodeI64(&decoder, &pObj->startTime)); + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &pObj->newNumberFileset)); + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &pObj->newFinished)); tEndDecode(&decoder); +_exit: tDecoderClear(&decoder); - return 0; + return code; } SSdbRaw *mndCompactDetailActionEncode(SCompactDetailObj *pCompact) { @@ -148,7 +154,7 @@ SSdbRaw *mndCompactDetailActionEncode(SCompactDetailObj *pCompact) { int32_t lino = 0; terrno = TSDB_CODE_SUCCESS; - void *buf = NULL; + void *buf = NULL; SSdbRaw *pRaw = NULL; int32_t tlen = tSerializeSCompactDetailObj(NULL, 0, pCompact); @@ -156,8 +162,8 @@ SSdbRaw *mndCompactDetailActionEncode(SCompactDetailObj *pCompact) { terrno = TSDB_CODE_OUT_OF_MEMORY; goto OVER; } - - int32_t size = sizeof(int32_t) + tlen; + + int32_t size = sizeof(int32_t) + tlen; pRaw = sdbAllocRaw(SDB_COMPACT_DETAIL, MND_COMPACT_VER_NUMBER, size); if (pRaw == NULL) { terrno = TSDB_CODE_OUT_OF_MEMORY; @@ -181,7 +187,6 @@ SSdbRaw *mndCompactDetailActionEncode(SCompactDetailObj *pCompact) { SDB_SET_BINARY(pRaw, dataPos, buf, tlen, OVER); SDB_SET_DATALEN(pRaw, dataPos, OVER); - OVER: taosMemoryFreeClear(buf); if (terrno != TSDB_CODE_SUCCESS) { @@ -263,9 +268,8 @@ int32_t mndCompactDetailActionDelete(SSdb *pSdb, SCompactDetailObj *pCompact) { } int32_t mndCompactDetailActionUpdate(SSdb *pSdb, SCompactDetailObj *pOldCompact, SCompactDetailObj *pNewCompact) { - mTrace("compact detail:%" PRId32 ", perform update action, old row:%p new row:%p", - pOldCompact->compactId, pOldCompact, pNewCompact); - + mTrace("compact detail:%" PRId32 ", perform update action, old row:%p new row:%p", pOldCompact->compactId, + pOldCompact, pNewCompact); pOldCompact->numberFileset = pNewCompact->numberFileset; pOldCompact->finished = pNewCompact->finished; @@ -273,8 +277,8 @@ int32_t mndCompactDetailActionUpdate(SSdb *pSdb, SCompactDetailObj *pOldCompact, return 0; } -int32_t mndAddCompactDetailToTran(SMnode *pMnode, STrans *pTrans, SCompactObj* pCompact, SVgObj *pVgroup, - SVnodeGid *pVgid, int32_t index){ +int32_t mndAddCompactDetailToTran(SMnode *pMnode, STrans *pTrans, SCompactObj *pCompact, SVgObj *pVgroup, + SVnodeGid *pVgid, int32_t index) { int32_t code = 0; SCompactDetailObj compactDetail = {0}; compactDetail.compactDetailId = index; @@ -287,8 +291,8 @@ int32_t mndAddCompactDetailToTran(SMnode *pMnode, STrans *pTrans, SCompactObj* p compactDetail.newNumberFileset = -1; compactDetail.newFinished = -1; - mInfo("compact:%d, add compact detail to trans, index:%d, vgId:%d, dnodeId:%d", - compactDetail.compactId, compactDetail.compactDetailId, compactDetail.vgId, compactDetail.dnodeId); + mInfo("compact:%d, add compact detail to trans, index:%d, vgId:%d, dnodeId:%d", compactDetail.compactId, + compactDetail.compactDetailId, compactDetail.vgId, compactDetail.dnodeId); SSdbRaw *pVgRaw = mndCompactDetailActionEncode(&compactDetail); if (pVgRaw == NULL) return -1; diff --git a/source/dnode/vnode/src/inc/vnodeInt.h b/source/dnode/vnode/src/inc/vnodeInt.h index 07490989f5..3634720214 100644 --- a/source/dnode/vnode/src/inc/vnodeInt.h +++ b/source/dnode/vnode/src/inc/vnodeInt.h @@ -161,6 +161,8 @@ int metaTtlFindExpired(SMeta* pMeta, int64_t timePointMs, SArray* tb int metaAlterTable(SMeta* pMeta, int64_t version, SVAlterTbReq* pReq, STableMetaRsp* pMetaRsp); int metaUpdateChangeTimeWithLock(SMeta* pMeta, tb_uid_t uid, int64_t changeTimeMs); SSchemaWrapper* metaGetTableSchema(SMeta* pMeta, tb_uid_t uid, int32_t sver, int lock); +int32_t metaGetTbTSchemaNotNull(SMeta* pMeta, tb_uid_t uid, int32_t sver, int lock, STSchema** ppTSchema); +int32_t metaGetTbTSchemaMaybeNull(SMeta* pMeta, tb_uid_t uid, int32_t sver, int lock, STSchema** ppTSchema); STSchema* metaGetTbTSchema(SMeta* pMeta, tb_uid_t uid, int32_t sver, int lock); int32_t metaGetTbTSchemaEx(SMeta* pMeta, tb_uid_t suid, tb_uid_t uid, int32_t sver, STSchema** ppTSchema); int metaGetTableEntryByName(SMetaReader* pReader, const char* name); diff --git a/source/dnode/vnode/src/meta/metaQuery.c b/source/dnode/vnode/src/meta/metaQuery.c index 2625a77ef0..725d16d86f 100644 --- a/source/dnode/vnode/src/meta/metaQuery.c +++ b/source/dnode/vnode/src/meta/metaQuery.c @@ -45,6 +45,7 @@ void metaReaderClear(SMetaReader *pReader) { } tDecoderClear(&pReader->coder); tdbFree(pReader->pBuf); + pReader->pBuf = NULL; } int metaGetTableEntryByVersion(SMetaReader *pReader, int64_t version, tb_uid_t uid) { @@ -614,6 +615,22 @@ STSchema *metaGetTbTSchema(SMeta *pMeta, tb_uid_t uid, int32_t sver, int lock) { return pTSchema; } +int32_t metaGetTbTSchemaNotNull(SMeta *pMeta, tb_uid_t uid, int32_t sver, int lock, STSchema** ppTSchema) { + *ppTSchema = metaGetTbTSchema(pMeta, uid, sver, lock); + if(*ppTSchema == NULL) { + return terrno; + } + return TSDB_CODE_SUCCESS; +} + +int32_t metaGetTbTSchemaMaybeNull(SMeta *pMeta, tb_uid_t uid, int32_t sver, int lock, STSchema** ppTSchema) { + *ppTSchema = metaGetTbTSchema(pMeta, uid, sver, lock); + if(*ppTSchema == NULL && terrno == TSDB_CODE_OUT_OF_MEMORY) { + return terrno; + } + return TSDB_CODE_SUCCESS; +} + int32_t metaGetTbTSchemaEx(SMeta *pMeta, tb_uid_t suid, tb_uid_t uid, int32_t sver, STSchema **ppTSchema) { int32_t code = 0; int32_t lino; diff --git a/source/dnode/vnode/src/sma/smaRollup.c b/source/dnode/vnode/src/sma/smaRollup.c index 7576a85cdc..19c5b5d481 100644 --- a/source/dnode/vnode/src/sma/smaRollup.c +++ b/source/dnode/vnode/src/sma/smaRollup.c @@ -392,10 +392,9 @@ int32_t tdRSmaProcessCreateImpl(SSma *pSma, SRSmaParam *param, int64_t suid, con return terrno; } - STSchema *pTSchema = metaGetTbTSchema(SMA_META(pSma), suid, -1, 1); - if (!pTSchema) { - TAOS_CHECK_EXIT(TSDB_CODE_TDB_IVD_TB_SCHEMA_VERSION); - } + STSchema *pTSchema; + code = metaGetTbTSchemaNotNull(SMA_META(pSma), suid, -1, 1, &pTSchema); + TAOS_CHECK_EXIT(code); pRSmaInfo->pSma = pSma; pRSmaInfo->pTSchema = pTSchema; pRSmaInfo->suid = suid; diff --git a/source/dnode/vnode/src/sma/smaTimeRange.c b/source/dnode/vnode/src/sma/smaTimeRange.c index 8fd50716f6..f66282ac25 100644 --- a/source/dnode/vnode/src/sma/smaTimeRange.c +++ b/source/dnode/vnode/src/sma/smaTimeRange.c @@ -343,11 +343,8 @@ static int32_t tdProcessTSmaInsertImpl(SSma *pSma, int64_t indexUid, const char TSDB_CHECK_CODE(code, lino, _exit); } pTsmaStat->pTSma = pTSma; - pTsmaStat->pTSchema = metaGetTbTSchema(SMA_META(pSma), pTSma->dstTbUid, -1, 1); - if (!pTsmaStat->pTSchema) { - code = TSDB_CODE_TSMA_INVALID_PTR; - TSDB_CHECK_CODE(code, lino, _exit); - } + code = metaGetTbTSchemaNotNull(SMA_META(pSma), pTSma->dstTbUid, -1, 1, &pTsmaStat->pTSchema); + TSDB_CHECK_CODE(code, lino, _exit); } if (pTsmaStat->pTSma->indexUid != indexUid) { diff --git a/source/dnode/vnode/src/tq/tqMeta.c b/source/dnode/vnode/src/tq/tqMeta.c index db7766a7bb..60da4e3799 100644 --- a/source/dnode/vnode/src/tq/tqMeta.c +++ b/source/dnode/vnode/src/tq/tqMeta.c @@ -16,64 +16,79 @@ #include "tq.h" int32_t tEncodeSTqHandle(SEncoder* pEncoder, const STqHandle* pHandle) { - if (tStartEncode(pEncoder) < 0) return -1; - if (tEncodeCStr(pEncoder, pHandle->subKey) < 0) return -1; - if (tEncodeI8(pEncoder, pHandle->fetchMeta) < 0) return -1; - if (tEncodeI64(pEncoder, pHandle->consumerId) < 0) return -1; - if (tEncodeI64(pEncoder, pHandle->snapshotVer) < 0) return -1; - if (tEncodeI32(pEncoder, pHandle->epoch) < 0) return -1; - if (tEncodeI8(pEncoder, pHandle->execHandle.subType) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartEncode(pEncoder)); + TAOS_CHECK_EXIT(tEncodeCStr(pEncoder, pHandle->subKey)); + TAOS_CHECK_EXIT(tEncodeI8(pEncoder, pHandle->fetchMeta)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pHandle->consumerId)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pHandle->snapshotVer)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pHandle->epoch)); + TAOS_CHECK_EXIT(tEncodeI8(pEncoder, pHandle->execHandle.subType)); if (pHandle->execHandle.subType == TOPIC_SUB_TYPE__COLUMN) { - if (tEncodeCStr(pEncoder, pHandle->execHandle.execCol.qmsg) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeCStr(pEncoder, pHandle->execHandle.execCol.qmsg)); } else if (pHandle->execHandle.subType == TOPIC_SUB_TYPE__DB) { int32_t size = taosHashGetSize(pHandle->execHandle.execDb.pFilterOutTbUid); - if (tEncodeI32(pEncoder, size) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, size)); void* pIter = NULL; pIter = taosHashIterate(pHandle->execHandle.execDb.pFilterOutTbUid, pIter); while (pIter) { int64_t* tbUid = (int64_t*)taosHashGetKey(pIter, NULL); - if (tEncodeI64(pEncoder, *tbUid) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, *tbUid)); pIter = taosHashIterate(pHandle->execHandle.execDb.pFilterOutTbUid, pIter); } } else if (pHandle->execHandle.subType == TOPIC_SUB_TYPE__TABLE) { - if (tEncodeI64(pEncoder, pHandle->execHandle.execTb.suid) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pHandle->execHandle.execTb.suid)); if (pHandle->execHandle.execTb.qmsg != NULL) { - if (tEncodeCStr(pEncoder, pHandle->execHandle.execTb.qmsg) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeCStr(pEncoder, pHandle->execHandle.execTb.qmsg)); } } tEndEncode(pEncoder); - return pEncoder->pos; +_exit: + if (code) { + return code; + } else { + return pEncoder->pos; + } } int32_t tDecodeSTqHandle(SDecoder* pDecoder, STqHandle* pHandle) { - if (tStartDecode(pDecoder) < 0) return -1; - if (tDecodeCStrTo(pDecoder, pHandle->subKey) < 0) return -1; - if (tDecodeI8(pDecoder, &pHandle->fetchMeta) < 0) return -1; - if (tDecodeI64(pDecoder, &pHandle->consumerId) < 0) return -1; - if (tDecodeI64(pDecoder, &pHandle->snapshotVer) < 0) return -1; - if (tDecodeI32(pDecoder, &pHandle->epoch) < 0) return -1; - if (tDecodeI8(pDecoder, &pHandle->execHandle.subType) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartDecode(pDecoder)); + TAOS_CHECK_EXIT(tDecodeCStrTo(pDecoder, pHandle->subKey)); + TAOS_CHECK_EXIT(tDecodeI8(pDecoder, &pHandle->fetchMeta)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pHandle->consumerId)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pHandle->snapshotVer)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pHandle->epoch)); + TAOS_CHECK_EXIT(tDecodeI8(pDecoder, &pHandle->execHandle.subType)); if (pHandle->execHandle.subType == TOPIC_SUB_TYPE__COLUMN) { - if (tDecodeCStrAlloc(pDecoder, &pHandle->execHandle.execCol.qmsg) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeCStrAlloc(pDecoder, &pHandle->execHandle.execCol.qmsg)); } else if (pHandle->execHandle.subType == TOPIC_SUB_TYPE__DB) { pHandle->execHandle.execDb.pFilterOutTbUid = taosHashInit(64, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BIGINT), false, HASH_ENTRY_LOCK); - if (pHandle->execHandle.execDb.pFilterOutTbUid == NULL) return -1; + if (pHandle->execHandle.execDb.pFilterOutTbUid == NULL) { + TAOS_CHECK_EXIT(terrno); + } int32_t size = 0; - if (tDecodeI32(pDecoder, &size) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &size)); for (int32_t i = 0; i < size; i++) { int64_t tbUid = 0; - if (tDecodeI64(pDecoder, &tbUid) < 0) return -1; - if (taosHashPut(pHandle->execHandle.execDb.pFilterOutTbUid, &tbUid, sizeof(int64_t), NULL, 0) != 0) return -1; + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &tbUid)); + TAOS_CHECK_EXIT(taosHashPut(pHandle->execHandle.execDb.pFilterOutTbUid, &tbUid, sizeof(int64_t), NULL, 0)); } } else if (pHandle->execHandle.subType == TOPIC_SUB_TYPE__TABLE) { - if (tDecodeI64(pDecoder, &pHandle->execHandle.execTb.suid) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pHandle->execHandle.execTb.suid)); if (!tDecodeIsEnd(pDecoder)) { - if (tDecodeCStrAlloc(pDecoder, &pHandle->execHandle.execTb.qmsg) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeCStrAlloc(pDecoder, &pHandle->execHandle.execTb.qmsg)); } } tEndDecode(pDecoder); - return 0; + +_exit: + return code; } int32_t tqMetaDecodeCheckInfo(STqCheckInfo* info, void* pVal, int32_t vLen) { diff --git a/source/dnode/vnode/src/tsdb/tsdbCacheRead.c b/source/dnode/vnode/src/tsdb/tsdbCacheRead.c index 14e4b5a53c..6fcafdefbd 100644 --- a/source/dnode/vnode/src/tsdb/tsdbCacheRead.c +++ b/source/dnode/vnode/src/tsdb/tsdbCacheRead.c @@ -237,17 +237,25 @@ static int32_t saveOneRow(SArray* pRow, SSDataBlock* pBlock, SCacheRowsReader* p static int32_t setTableSchema(SCacheRowsReader* p, uint64_t suid, const char* idstr) { int32_t numOfTables = p->numOfTables; + int32_t code = TSDB_CODE_SUCCESS; if (suid != 0) { - p->pSchema = metaGetTbTSchema(p->pVnode->pMeta, suid, -1, 1); - if (p->pSchema == NULL) { + code = metaGetTbTSchemaNotNull(p->pVnode->pMeta, suid, -1, 1, &p->pSchema); + if (TSDB_CODE_SUCCESS != code) { tsdbWarn("stable:%" PRIu64 " has been dropped, failed to retrieve cached rows, %s", suid, idstr); - return TSDB_CODE_PAR_TABLE_NOT_EXIST; + if(code != TSDB_CODE_OUT_OF_MEMORY) { + return TSDB_CODE_PAR_TABLE_NOT_EXIST; + } else { + return code; + } } } else { for (int32_t i = 0; i < numOfTables; ++i) { uint64_t uid = p->pTableList[i].uid; - p->pSchema = metaGetTbTSchema(p->pVnode->pMeta, uid, -1, 1); + code = metaGetTbTSchemaMaybeNull(p->pVnode->pMeta, uid, -1, 1, &p->pSchema); + if(code != TSDB_CODE_SUCCESS) { + return code; + } if (p->pSchema != NULL) { break; } diff --git a/source/dnode/vnode/src/tsdb/tsdbRead2.c b/source/dnode/vnode/src/tsdb/tsdbRead2.c index cc4c3d318a..714096bb85 100644 --- a/source/dnode/vnode/src/tsdb/tsdbRead2.c +++ b/source/dnode/vnode/src/tsdb/tsdbRead2.c @@ -4580,6 +4580,8 @@ int32_t tsdbSetTableList2(STsdbReader* pReader, const void* pTableList, int32_t clearBlockScanInfo(*p); } + tSimpleHashClear(pReader->status.pTableMap); + if (size < num) { code = ensureBlockScanInfoBuf(&pReader->blockInfoBuf, num); if (code) { @@ -4596,7 +4598,6 @@ int32_t tsdbSetTableList2(STsdbReader* pReader, const void* pTableList, int32_t pReader->status.uidList.tableUidList = (uint64_t*)p1; } - tSimpleHashClear(pReader->status.pTableMap); STableUidList* pUidList = &pReader->status.uidList; pUidList->currentIndex = 0; @@ -4745,13 +4746,15 @@ int32_t tsdbReaderOpen2(void* pVnode, SQueryTableDataCond* pCond, void* pTableLi // no valid error code set in metaGetTbTSchema, so let's set the error code here. // we should proceed in case of tmq processing. if (pCond->suid != 0) { - pReader->info.pSchema = metaGetTbTSchema(pReader->pTsdb->pVnode->pMeta, pReader->info.suid, -1, 1); + code = metaGetTbTSchemaMaybeNull(pReader->pTsdb->pVnode->pMeta, pReader->info.suid, -1, 1, &pReader->info.pSchema); + TSDB_CHECK_CODE(code, lino, _err); if (pReader->info.pSchema == NULL) { tsdbWarn("failed to get table schema, suid:%" PRIu64 ", ver:-1, %s", pReader->info.suid, pReader->idStr); } } else if (numOfTables > 0) { STableKeyInfo* pKey = pTableList; - pReader->info.pSchema = metaGetTbTSchema(pReader->pTsdb->pVnode->pMeta, pKey->uid, -1, 1); + code = metaGetTbTSchemaMaybeNull(pReader->pTsdb->pVnode->pMeta, pKey->uid, -1, 1, &pReader->info.pSchema); + TSDB_CHECK_CODE(code, lino, _err); if (pReader->info.pSchema == NULL) { tsdbWarn("failed to get table schema, uid:%" PRIu64 ", ver:-1, %s", pKey->uid, pReader->idStr); } diff --git a/source/dnode/vnode/src/vnd/vnodeSvr.c b/source/dnode/vnode/src/vnd/vnodeSvr.c index 8052be46f9..dbd63471c0 100644 --- a/source/dnode/vnode/src/vnd/vnodeSvr.c +++ b/source/dnode/vnode/src/vnd/vnodeSvr.c @@ -1477,15 +1477,15 @@ static int32_t vnodeDebugPrintSingleSubmitMsg(SMeta *pMeta, SSubmitBlk *pBlock, tInitSubmitBlkIter(msgIter, pBlock, &blkIter); if (blkIter.row == NULL) return 0; - pSchema = metaGetTbTSchema(pMeta, msgIter->suid, TD_ROW_SVER(blkIter.row), 1); // TODO: use the real schema - if (pSchema) { - suid = msgIter->suid; - rv = TD_ROW_SVER(blkIter.row); - } - if (!pSchema) { + int32_t code = metaGetTbTSchemaNotNull(pMeta, msgIter->suid, TD_ROW_SVER(blkIter.row), 1, &pSchema); // TODO: use the real schema + if (TSDB_CODE_SUCCESS != code) { printf("%s:%d no valid schema\n", tags, __LINE__); - return -1; + return code; } + + suid = msgIter->suid; + rv = TD_ROW_SVER(blkIter.row); + char __tags[128] = {0}; snprintf(__tags, 128, "%s: uid %" PRIi64 " ", tags, msgIter->uid); while ((row = tGetSubmitBlkNext(&blkIter))) { @@ -1510,10 +1510,10 @@ typedef struct SSubmitReqConvertCxt { static int32_t vnodeResetTableCxt(SMeta *pMeta, SSubmitReqConvertCxt *pCxt) { taosMemoryFreeClear(pCxt->pTbSchema); - pCxt->pTbSchema = metaGetTbTSchema(pMeta, pCxt->msgIter.suid > 0 ? pCxt->msgIter.suid : pCxt->msgIter.uid, - pCxt->msgIter.sversion, 1); - if (NULL == pCxt->pTbSchema) { - return TSDB_CODE_INVALID_MSG; + int32_t code = metaGetTbTSchemaNotNull(pMeta, pCxt->msgIter.suid > 0 ? pCxt->msgIter.suid : pCxt->msgIter.uid, + pCxt->msgIter.sversion, 1, &pCxt->pTbSchema); + if (TSDB_CODE_SUCCESS != code) { + return code; } tdSTSRowIterInit(&pCxt->rowIter, pCxt->pTbSchema); diff --git a/source/libs/function/inc/builtinsimpl.h b/source/libs/function/inc/builtinsimpl.h index 77d6bda35b..16f31321ce 100644 --- a/source/libs/function/inc/builtinsimpl.h +++ b/source/libs/function/inc/builtinsimpl.h @@ -38,6 +38,7 @@ typedef struct SSumRes { typedef struct SMinmaxResInfo { bool assign; // assign the first value or not int64_t v; + char *str; STuplePos tuplePos; STuplePos nullTuplePos; diff --git a/source/libs/function/inc/functionMgtInt.h b/source/libs/function/inc/functionMgtInt.h index 2c5c7725d5..a50562d78d 100644 --- a/source/libs/function/inc/functionMgtInt.h +++ b/source/libs/function/inc/functionMgtInt.h @@ -24,7 +24,7 @@ extern "C" { #define FUNCTION_NAME_MAX_LENGTH 32 -#define FUNC_MGT_FUNC_CLASSIFICATION_MASK(n) (1 << n) +#define FUNC_MGT_FUNC_CLASSIFICATION_MASK(n) ((uint64_t)1 << n) #define FUNC_MGT_AGG_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(0) #define FUNC_MGT_SCALAR_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(1) diff --git a/source/libs/function/src/builtins.c b/source/libs/function/src/builtins.c index c494d98c02..b1cadca37a 100644 --- a/source/libs/function/src/builtins.c +++ b/source/libs/function/src/builtins.c @@ -271,6 +271,21 @@ static int32_t addUint8Param(SNodeList** pList, uint8_t param) { return TSDB_CODE_SUCCESS; } +static int32_t addPseudoParam(SNodeList** pList) { + SNode *pseudoNode = NULL; + int32_t code = nodesMakeNode(QUERY_NODE_LEFT_VALUE, &pseudoNode); + if (pseudoNode == NULL) { + return code; + } + + code = nodesListMakeAppend(pList, pseudoNode); + if (TSDB_CODE_SUCCESS != code) { + nodesDestroyNode(pseudoNode); + return code; + } + return TSDB_CODE_SUCCESS; +} + static SDataType* getSDataTypeFromNode(SNode* pNode) { if (pNode == NULL) return NULL; if (nodesIsExprNode(pNode)) { @@ -299,6 +314,25 @@ static int32_t translateInOutNum(SFunctionNode* pFunc, char* pErrBuf, int32_t le return TSDB_CODE_SUCCESS; } +// There is only one parameter of numeric type, and the return type is parameter type +static int32_t translateMinMax(SFunctionNode* pFunc, char* pErrBuf, int32_t len) { + if (1 != LIST_LENGTH(pFunc->pParameterList)) { + return invaildFuncParaNumErrMsg(pErrBuf, len, pFunc->functionName); + } + + SDataType* dataType = getSDataTypeFromNode(nodesListGetNode(pFunc->pParameterList, 0)); + uint8_t paraType = dataType->type; + if (!IS_NUMERIC_TYPE(paraType) && !IS_NULL_TYPE(paraType) && !IS_STR_DATA_TYPE(paraType)) { + return invaildFuncParaTypeErrMsg(pErrBuf, len, pFunc->functionName); + } else if (IS_NULL_TYPE(paraType)) { + paraType = TSDB_DATA_TYPE_BIGINT; + } + pFunc->hasSMA = !IS_VAR_DATA_TYPE(paraType); + int32_t bytes = IS_STR_DATA_TYPE(paraType) ? dataType->bytes : tDataTypes[paraType].bytes; + pFunc->node.resType = (SDataType){.bytes = bytes, .type = paraType}; + return TSDB_CODE_SUCCESS; +} + // There is only one parameter of numeric type, and the return type is double type static int32_t translateInNumOutDou(SFunctionNode* pFunc, char* pErrBuf, int32_t len) { if (1 != LIST_LENGTH(pFunc->pParameterList)) { @@ -579,6 +613,30 @@ static int32_t translatePi(SFunctionNode* pFunc, char* pErrBuf, int32_t len) { return TSDB_CODE_SUCCESS; } +static int32_t translateRand(SFunctionNode* pFunc, char* pErrBuf, int32_t len) { + if (0 != LIST_LENGTH(pFunc->pParameterList) && 1 != LIST_LENGTH(pFunc->pParameterList)) { + return invaildFuncParaNumErrMsg(pErrBuf, len, pFunc->functionName); + } + + if (1 == LIST_LENGTH(pFunc->pParameterList)) { + uint8_t paraType = getSDataTypeFromNode(nodesListGetNode(pFunc->pParameterList, 0))->type; + if (!IS_INTEGER_TYPE(paraType) && !IS_NULL_TYPE(paraType)) { + return invaildFuncParaTypeErrMsg(pErrBuf, len, pFunc->functionName); + } + } + + if (!pFunc->dual) { + int32_t code = addPseudoParam(&pFunc->pParameterList); + if (code != TSDB_CODE_SUCCESS) { + return code; + } + } + + pFunc->node.resType = + (SDataType){.bytes = tDataTypes[TSDB_DATA_TYPE_DOUBLE].bytes, .type = TSDB_DATA_TYPE_DOUBLE}; + return TSDB_CODE_SUCCESS; +} + static int32_t translateRound(SFunctionNode* pFunc, char* pErrBuf, int32_t len) { if (2 != LIST_LENGTH(pFunc->pParameterList) && 1 != LIST_LENGTH(pFunc->pParameterList)) { return invaildFuncParaNumErrMsg(pErrBuf, len, pFunc->functionName); @@ -2904,7 +2962,7 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = { .name = "min", .type = FUNCTION_TYPE_MIN, .classification = FUNC_MGT_AGG_FUNC | FUNC_MGT_SPECIAL_DATA_REQUIRED | FUNC_MGT_SELECT_FUNC | FUNC_MGT_IGNORE_NULL_FUNC | FUNC_MGT_TSMA_FUNC, - .translateFunc = translateInOutNum, + .translateFunc = translateMinMax, .dataRequiredFunc = statisDataRequired, .getEnvFunc = getMinmaxFuncEnv, .initFunc = minmaxFunctionSetup, @@ -2920,7 +2978,7 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = { .name = "max", .type = FUNCTION_TYPE_MAX, .classification = FUNC_MGT_AGG_FUNC | FUNC_MGT_SPECIAL_DATA_REQUIRED | FUNC_MGT_SELECT_FUNC | FUNC_MGT_IGNORE_NULL_FUNC | FUNC_MGT_TSMA_FUNC, - .translateFunc = translateInOutNum, + .translateFunc = translateMinMax, .dataRequiredFunc = statisDataRequired, .getEnvFunc = getMinmaxFuncEnv, .initFunc = minmaxFunctionSetup, @@ -4729,6 +4787,16 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = { .sprocessFunc = weekofyearFunction, .finalizeFunc = NULL }, + { + .name = "rand", + .type = FUNCTION_TYPE_RAND, + .classification = FUNC_MGT_SCALAR_FUNC, + .translateFunc = translateRand, + .getEnvFunc = NULL, + .initFunc = NULL, + .sprocessFunc = randFunction, + .finalizeFunc = NULL + }, }; // clang-format on diff --git a/source/libs/function/src/builtinsimpl.c b/source/libs/function/src/builtinsimpl.c index 30249fd300..6d655528c7 100644 --- a/source/libs/function/src/builtinsimpl.c +++ b/source/libs/function/src/builtinsimpl.c @@ -1026,6 +1026,7 @@ int32_t minmaxFunctionSetup(SqlFunctionCtx* pCtx, SResultRowEntryInfo* pResultIn buf->nullTupleSaved = false; buf->nullTuplePos.pageId = -1; + buf->str = NULL; return TSDB_CODE_SUCCESS; } @@ -1101,11 +1102,21 @@ int32_t minmaxFunctionFinalize(SqlFunctionCtx* pCtx, SSDataBlock* pBlock) { colDataSetFloat(pCol, currentRow, &v); break; } + case TSDB_DATA_TYPE_VARBINARY: + case TSDB_DATA_TYPE_VARCHAR: + case TSDB_DATA_TYPE_NCHAR: { + code = colDataSetVal(pCol, currentRow, pRes->str, false); + if (TSDB_CODE_SUCCESS != code) { + return code; + } + break; + } } } else { colDataSetNULL(pCol, currentRow); } + taosMemoryFreeClear(pRes->str); if (pCtx->subsidiaries.num > 0) { if (pEntryInfo->numOfRes > 0) { code = setSelectivityValue(pCtx, pBlock, &pRes->tuplePos, currentRow); @@ -2155,6 +2166,8 @@ int32_t percentileFinalize(SqlFunctionCtx* pCtx, SSDataBlock* pBlock) { tMemBucketDestroy(pMemBucket); return functionFinalize(pCtx, pBlock); } + } else { + return functionFinalize(pCtx, pBlock); } _fin_error: @@ -3163,7 +3176,7 @@ static int32_t doSaveLastrow(SqlFunctionCtx* pCtx, char* pData, int32_t rowIndex (void)memcpy(pInfo->buf, pData, pInfo->bytes); } - if (pCtx->hasPrimaryKey) { + if (pCtx->hasPrimaryKey && !colDataIsNull_s(pkCol, rowIndex)) { char* pkData = colDataGetData(pkCol, rowIndex); if (IS_VAR_DATA_TYPE(pInfo->pkType)) { pInfo->pkBytes = varDataTLen(pkData); @@ -6437,63 +6450,74 @@ int32_t blockDistFunction(SqlFunctionCtx* pCtx) { int32_t tSerializeBlockDistInfo(void* buf, int32_t bufLen, const STableBlockDistInfo* pInfo) { SEncoder encoder = {0}; + int32_t code = 0; + int32_t lino; + int32_t tlen; tEncoderInit(&encoder, buf, bufLen); - if (tStartEncode(&encoder) < 0) return -1; - if (tEncodeU32(&encoder, pInfo->rowSize) < 0) return -1; + TAOS_CHECK_EXIT(tStartEncode(&encoder)); + TAOS_CHECK_EXIT(tEncodeU32(&encoder, pInfo->rowSize)); - if (tEncodeU16(&encoder, pInfo->numOfFiles) < 0) return -1; - if (tEncodeU32(&encoder, pInfo->numOfBlocks) < 0) return -1; - if (tEncodeU32(&encoder, pInfo->numOfTables) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeU16(&encoder, pInfo->numOfFiles)); + TAOS_CHECK_EXIT(tEncodeU32(&encoder, pInfo->numOfBlocks)); + TAOS_CHECK_EXIT(tEncodeU32(&encoder, pInfo->numOfTables)); - if (tEncodeU64(&encoder, pInfo->totalSize) < 0) return -1; - if (tEncodeU64(&encoder, pInfo->totalRows) < 0) return -1; - if (tEncodeI32(&encoder, pInfo->maxRows) < 0) return -1; - if (tEncodeI32(&encoder, pInfo->minRows) < 0) return -1; - if (tEncodeI32(&encoder, pInfo->defMaxRows) < 0) return -1; - if (tEncodeI32(&encoder, pInfo->defMinRows) < 0) return -1; - if (tEncodeU32(&encoder, pInfo->numOfInmemRows) < 0) return -1; - if (tEncodeU32(&encoder, pInfo->numOfSttRows) < 0) return -1; - if (tEncodeU32(&encoder, pInfo->numOfVgroups) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeU64(&encoder, pInfo->totalSize)); + TAOS_CHECK_EXIT(tEncodeU64(&encoder, pInfo->totalRows)); + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pInfo->maxRows)); + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pInfo->minRows)); + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pInfo->defMaxRows)); + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pInfo->defMinRows)); + TAOS_CHECK_EXIT(tEncodeU32(&encoder, pInfo->numOfInmemRows)); + TAOS_CHECK_EXIT(tEncodeU32(&encoder, pInfo->numOfSttRows)); + TAOS_CHECK_EXIT(tEncodeU32(&encoder, pInfo->numOfVgroups)); for (int32_t i = 0; i < tListLen(pInfo->blockRowsHisto); ++i) { - if (tEncodeI32(&encoder, pInfo->blockRowsHisto[i]) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI32(&encoder, pInfo->blockRowsHisto[i])); } tEndEncode(&encoder); - int32_t tlen = encoder.pos; +_exit: + if (code) { + tlen = code; + } else { + tlen = encoder.pos; + } tEncoderClear(&encoder); return tlen; } int32_t tDeserializeBlockDistInfo(void* buf, int32_t bufLen, STableBlockDistInfo* pInfo) { SDecoder decoder = {0}; + int32_t code = 0; + int32_t lino; tDecoderInit(&decoder, buf, bufLen); - if (tStartDecode(&decoder) < 0) return -1; - if (tDecodeU32(&decoder, &pInfo->rowSize) < 0) return -1; + TAOS_CHECK_EXIT(tStartDecode(&decoder)); + TAOS_CHECK_EXIT(tDecodeU32(&decoder, &pInfo->rowSize)); - if (tDecodeU16(&decoder, &pInfo->numOfFiles) < 0) return -1; - if (tDecodeU32(&decoder, &pInfo->numOfBlocks) < 0) return -1; - if (tDecodeU32(&decoder, &pInfo->numOfTables) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeU16(&decoder, &pInfo->numOfFiles)); + TAOS_CHECK_EXIT(tDecodeU32(&decoder, &pInfo->numOfBlocks)); + TAOS_CHECK_EXIT(tDecodeU32(&decoder, &pInfo->numOfTables)); - if (tDecodeU64(&decoder, &pInfo->totalSize) < 0) return -1; - if (tDecodeU64(&decoder, &pInfo->totalRows) < 0) return -1; - if (tDecodeI32(&decoder, &pInfo->maxRows) < 0) return -1; - if (tDecodeI32(&decoder, &pInfo->minRows) < 0) return -1; - if (tDecodeI32(&decoder, &pInfo->defMaxRows) < 0) return -1; - if (tDecodeI32(&decoder, &pInfo->defMinRows) < 0) return -1; - if (tDecodeU32(&decoder, &pInfo->numOfInmemRows) < 0) return -1; - if (tDecodeU32(&decoder, &pInfo->numOfSttRows) < 0) return -1; - if (tDecodeU32(&decoder, &pInfo->numOfVgroups) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeU64(&decoder, &pInfo->totalSize)); + TAOS_CHECK_EXIT(tDecodeU64(&decoder, &pInfo->totalRows)); + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &pInfo->maxRows)); + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &pInfo->minRows)); + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &pInfo->defMaxRows)); + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &pInfo->defMinRows)); + TAOS_CHECK_EXIT(tDecodeU32(&decoder, &pInfo->numOfInmemRows)); + TAOS_CHECK_EXIT(tDecodeU32(&decoder, &pInfo->numOfSttRows)); + TAOS_CHECK_EXIT(tDecodeU32(&decoder, &pInfo->numOfVgroups)); for (int32_t i = 0; i < tListLen(pInfo->blockRowsHisto); ++i) { - if (tDecodeI32(&decoder, &pInfo->blockRowsHisto[i]) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI32(&decoder, &pInfo->blockRowsHisto[i])); } +_exit: tDecoderClear(&decoder); - return 0; + return code; } int32_t blockDistFinalize(SqlFunctionCtx* pCtx, SSDataBlock* pBlock) { diff --git a/source/libs/function/src/detail/tminmax.c b/source/libs/function/src/detail/tminmax.c index b316b7a512..608f3bf260 100644 --- a/source/libs/function/src/detail/tminmax.c +++ b/source/libs/function/src/detail/tminmax.c @@ -15,6 +15,7 @@ #include "builtinsimpl.h" #include "function.h" +#include "tcompare.h" #include "tdatablock.h" #include "tfunctionInt.h" #include "tglobal.h" @@ -365,10 +366,10 @@ static double doubleVectorCmpAVX(const double* pData, int32_t numOfRows, bool is return v; } -static int32_t findFirstValPosition(const SColumnInfoData* pCol, int32_t start, int32_t numOfRows) { +static int32_t findFirstValPosition(const SColumnInfoData* pCol, int32_t start, int32_t numOfRows, bool isStr) { int32_t i = start; - while (i < (start + numOfRows) && (colDataIsNull_f(pCol->nullbitmap, i) == true)) { + while (i < (start + numOfRows) && (isStr ? colDataIsNull_s(pCol, i) : colDataIsNull_f(pCol->nullbitmap, i) == true)) { i += 1; } @@ -643,6 +644,52 @@ static int32_t doExtractVal(SColumnInfoData* pCol, int32_t i, int32_t end, SqlFu __COMPARE_ACQUIRED_MIN(i, end, pCol->nullbitmap, pData, pCtx, *(double*)&(pBuf->v), &pBuf->tuplePos) break; } + + case TSDB_DATA_TYPE_VARCHAR: + case TSDB_DATA_TYPE_VARBINARY: { + int32_t code = TSDB_CODE_SUCCESS; + for (; i < (end); ++i) { + if (colDataIsNull_var(pCol, i)) { + continue; + } + char *pLeft = (char *)colDataGetData(pCol, i); + char *pRight = (char *)pBuf->str; + + int32_t ret = compareLenBinaryVal(pLeft, pRight); + if (ret < 0) { + memcpy(pBuf->str, pLeft, varDataTLen(pLeft)); + if (pCtx->subsidiaries.num > 0) { + code = updateTupleData(pCtx, i, pCtx->pSrcBlock, &pBuf->tuplePos); + if (TSDB_CODE_SUCCESS != code) { + return code; + } + } + } + } + break; + } + case TSDB_DATA_TYPE_NCHAR: { + int32_t code = TSDB_CODE_SUCCESS; + for (; i < (end); ++i) { + if (colDataIsNull_var(pCol, i)) { + continue; + } + char *pLeft = (char *)colDataGetData(pCol, i); + char *pRight = (char *)pBuf->str; + + int32_t ret = compareLenPrefixedWStr(pLeft, pRight); + if (ret < 0) { + memcpy(pBuf->str, pLeft, varDataTLen(pLeft)); + if (pCtx->subsidiaries.num > 0) { + code = updateTupleData(pCtx, i, pCtx->pSrcBlock, &pBuf->tuplePos); + if (TSDB_CODE_SUCCESS != code) { + return code; + } + } + } + } + break; + } } } else { switch (pCol->info.type) { @@ -706,6 +753,53 @@ static int32_t doExtractVal(SColumnInfoData* pCol, int32_t i, int32_t end, SqlFu __COMPARE_ACQUIRED_MAX(i, end, pCol->nullbitmap, pData, pCtx, *(double*)&(pBuf->v), &pBuf->tuplePos) break; } + + case TSDB_DATA_TYPE_VARCHAR: + case TSDB_DATA_TYPE_VARBINARY: { + int32_t code = TSDB_CODE_SUCCESS; + for (; i < (end); ++i) { + if (colDataIsNull_var(pCol, i)) { + continue; + } + char *pLeft = (char *)colDataGetData(pCol, i); + char *pRight = (char *)pBuf->str; + + int32_t ret = compareLenBinaryVal(pLeft, pRight); + if (ret > 0) { + memcpy(pBuf->str, pLeft, varDataTLen(pLeft)); + if (pCtx->subsidiaries.num > 0) { + code = updateTupleData(pCtx, i, pCtx->pSrcBlock, &pBuf->tuplePos); + if (TSDB_CODE_SUCCESS != code) { + return code; + } + } + } + } + break; + } + + case TSDB_DATA_TYPE_NCHAR: { + int32_t code = TSDB_CODE_SUCCESS; + for (; i < (end); ++i) { + if (colDataIsNull_var(pCol, i)) { + continue; + } + char *pLeft = (char *)colDataGetData(pCol, i); + char *pRight = (char *)pBuf->str; + + int32_t ret = compareLenPrefixedWStr(pLeft, pRight); + if (ret > 0) { + memcpy(pBuf->str, pLeft, varDataTLen(pLeft)); + if (pCtx->subsidiaries.num > 0) { + code = updateTupleData(pCtx, i, pCtx->pSrcBlock, &pBuf->tuplePos); + if (TSDB_CODE_SUCCESS != code) { + return code; + } + } + } + } + break; + } } } return TSDB_CODE_SUCCESS; @@ -743,7 +837,7 @@ int32_t doMinMaxHelper(SqlFunctionCtx* pCtx, int32_t isMinFunc, int32_t* nElems) } // data in current data block are qualified to the query - if (pInput->colDataSMAIsSet) { + if (pInput->colDataSMAIsSet && !IS_STR_DATA_TYPE(type)) { numOfElems = pInput->numOfRows - pAgg->numOfNull; if (numOfElems == 0) { @@ -820,7 +914,7 @@ int32_t doMinMaxHelper(SqlFunctionCtx* pCtx, int32_t isMinFunc, int32_t* nElems) // clang-format on if (pCol->hasNull || numOfRows < threshold[pCol->info.type] || pCtx->subsidiaries.num > 0) { - int32_t i = findFirstValPosition(pCol, start, numOfRows); + int32_t i = findFirstValPosition(pCol, start, numOfRows, IS_STR_DATA_TYPE(type)); if ((i < end) && (!pBuf->assign)) { char* p = pCol->pData + pCol->info.bytes * i; @@ -848,6 +942,16 @@ int32_t doMinMaxHelper(SqlFunctionCtx* pCtx, int32_t isMinFunc, int32_t* nElems) *(float*)&pBuf->v = *(float*)p; break; } + case TSDB_DATA_TYPE_VARCHAR: + case TSDB_DATA_TYPE_VARBINARY: + case TSDB_DATA_TYPE_NCHAR: { + pBuf->str = taosMemoryMalloc(pCol->info.bytes); + if (pBuf->str == NULL) { + return TSDB_CODE_OUT_OF_MEMORY; + } + (void)memcpy(pBuf->str, colDataGetData(pCol, i), varDataTLen(colDataGetData(pCol, i))); + break; + } default: (void)memcpy(&pBuf->v, p, pCol->info.bytes); break; diff --git a/source/libs/parser/inc/parTranslater.h b/source/libs/parser/inc/parTranslater.h index 99e303e51c..93d6645e12 100644 --- a/source/libs/parser/inc/parTranslater.h +++ b/source/libs/parser/inc/parTranslater.h @@ -45,6 +45,7 @@ typedef struct STranslateContext { bool showRewrite; SNode* pPrevRoot; SNode* pPostRoot; + bool dual; // whether select stmt without from stmt, true for without. } STranslateContext; int32_t biRewriteToTbnameFunc(STranslateContext* pCxt, SNode** ppNode, bool* pRet); diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 495d92aa3c..b084b0035e 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -1208,11 +1208,15 @@ function_expression(A) ::= substr_func(B) NK_LP expr_or_subquery(C) FROM expr_or_subquery(D) FOR expr_or_subquery(E) NK_RP(F). { A = createRawExprNodeExt(pCxt, &B, &F, createSubstrFunctionNodeExt(pCxt, releaseRawExprNode(pCxt, C), releaseRawExprNode(pCxt, D), releaseRawExprNode(pCxt, E))); } function_expression(A) ::= REPLACE(B) NK_LP expression_list(C) NK_RP(D). { A = createRawExprNodeExt(pCxt, &B, &D, createFunctionNode(pCxt, &B, C)); } function_expression(A) ::= literal_func(B). { A = B; } +function_expression(A) ::= rand_func(B). { A = B; } literal_func(A) ::= noarg_func(B) NK_LP NK_RP(C). { A = createRawExprNodeExt(pCxt, &B, &C, createFunctionNode(pCxt, &B, NULL)); } literal_func(A) ::= NOW(B). { A = createRawExprNode(pCxt, &B, createFunctionNode(pCxt, &B, NULL)); } literal_func(A) ::= TODAY(B). { A = createRawExprNode(pCxt, &B, createFunctionNode(pCxt, &B, NULL)); } +rand_func(A) ::= RAND(B) NK_LP NK_RP(C). { A = createRawExprNodeExt(pCxt, &B, &C, createFunctionNode(pCxt, &B, NULL)); } +rand_func(A) ::= RAND(B) NK_LP expression_list(C) NK_RP(D). { A = createRawExprNodeExt(pCxt, &B, &D, createFunctionNode(pCxt, &B, C)); } + %type substr_func { SToken } %destructor substr_func { } substr_func(A) ::= SUBSTR(B). { A = B; } diff --git a/source/libs/parser/src/parTokenizer.c b/source/libs/parser/src/parTokenizer.c index 89862273a1..4f154785d6 100644 --- a/source/libs/parser/src/parTokenizer.c +++ b/source/libs/parser/src/parTokenizer.c @@ -206,6 +206,7 @@ static SKeyword keywordTable[] = { {"QUERIES", TK_QUERIES}, {"QUERY", TK_QUERY}, {"PI", TK_PI}, + {"RAND", TK_RAND}, {"RANGE", TK_RANGE}, {"RATIO", TK_RATIO}, {"PAUSE", TK_PAUSE}, diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 0101a7d18a..c718755433 100755 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -2307,6 +2307,7 @@ static bool hasInvalidFuncNesting(SNodeList* pParameterList) { static int32_t getFuncInfo(STranslateContext* pCxt, SFunctionNode* pFunc) { // the time precision of the function execution environment + pFunc->dual = pCxt->dual; pFunc->node.resType.precision = getPrecisionFromCurrStmt(pCxt->pCurrStmt, TSDB_TIME_PRECISION_MILLI); int32_t code = fmGetFuncInfo(pFunc, pCxt->msgBuf.buf, pCxt->msgBuf.len); if (TSDB_CODE_FUNC_NOT_BUILTIN_FUNTION == code) { @@ -6708,11 +6709,13 @@ static int32_t replaceOrderByAliasForSelect(STranslateContext* pCxt, SSelectStmt static int32_t translateSelectWithoutFrom(STranslateContext* pCxt, SSelectStmt* pSelect) { pCxt->pCurrStmt = (SNode*)pSelect; pCxt->currClause = SQL_CLAUSE_SELECT; + pCxt->dual = true; return translateExprList(pCxt, pSelect->pProjectionList); } static int32_t translateSelectFrom(STranslateContext* pCxt, SSelectStmt* pSelect) { pCxt->pCurrStmt = (SNode*)pSelect; + pCxt->dual = false; int32_t code = translateFrom(pCxt, &pSelect->pFromTable); if (TSDB_CODE_SUCCESS == code) { pSelect->precision = ((STableNode*)pSelect->pFromTable)->precision; diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index 8f6f01e6ed..4a92cc5a1a 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -315,117 +315,118 @@ #define TK_FOR 269 #define TK_NOW 270 #define TK_TODAY 271 -#define TK_SUBSTR 272 -#define TK_SUBSTRING 273 -#define TK_BOTH 274 -#define TK_TRAILING 275 -#define TK_LEADING 276 -#define TK_TIMEZONE 277 -#define TK_CLIENT_VERSION 278 -#define TK_SERVER_VERSION 279 -#define TK_SERVER_STATUS 280 -#define TK_CURRENT_USER 281 -#define TK_PI 282 -#define TK_CASE 283 -#define TK_WHEN 284 -#define TK_THEN 285 -#define TK_ELSE 286 -#define TK_BETWEEN 287 -#define TK_IS 288 -#define TK_NK_LT 289 -#define TK_NK_GT 290 -#define TK_NK_LE 291 -#define TK_NK_GE 292 -#define TK_NK_NE 293 -#define TK_MATCH 294 -#define TK_NMATCH 295 -#define TK_CONTAINS 296 -#define TK_JOIN 297 -#define TK_INNER 298 -#define TK_LEFT 299 -#define TK_RIGHT 300 -#define TK_OUTER 301 -#define TK_SEMI 302 -#define TK_ANTI 303 -#define TK_ASOF 304 -#define TK_WINDOW 305 -#define TK_WINDOW_OFFSET 306 -#define TK_JLIMIT 307 -#define TK_SELECT 308 -#define TK_NK_HINT 309 -#define TK_DISTINCT 310 -#define TK_WHERE 311 -#define TK_PARTITION 312 -#define TK_BY 313 -#define TK_SESSION 314 -#define TK_STATE_WINDOW 315 -#define TK_EVENT_WINDOW 316 -#define TK_COUNT_WINDOW 317 -#define TK_SLIDING 318 -#define TK_FILL 319 -#define TK_VALUE 320 -#define TK_VALUE_F 321 -#define TK_NONE 322 -#define TK_PREV 323 -#define TK_NULL_F 324 -#define TK_LINEAR 325 -#define TK_NEXT 326 -#define TK_HAVING 327 -#define TK_RANGE 328 -#define TK_EVERY 329 -#define TK_ORDER 330 -#define TK_SLIMIT 331 -#define TK_SOFFSET 332 -#define TK_LIMIT 333 -#define TK_OFFSET 334 -#define TK_ASC 335 -#define TK_NULLS 336 -#define TK_ABORT 337 -#define TK_AFTER 338 -#define TK_ATTACH 339 -#define TK_BEFORE 340 -#define TK_BEGIN 341 -#define TK_BITAND 342 -#define TK_BITNOT 343 -#define TK_BITOR 344 -#define TK_BLOCKS 345 -#define TK_CHANGE 346 -#define TK_COMMA 347 -#define TK_CONCAT 348 -#define TK_CONFLICT 349 -#define TK_COPY 350 -#define TK_DEFERRED 351 -#define TK_DELIMITERS 352 -#define TK_DETACH 353 -#define TK_DIVIDE 354 -#define TK_DOT 355 -#define TK_EACH 356 -#define TK_FAIL 357 -#define TK_GLOB 358 -#define TK_ID 359 -#define TK_IMMEDIATE 360 -#define TK_IMPORT 361 -#define TK_INITIALLY 362 -#define TK_INSTEAD 363 -#define TK_ISNULL 364 -#define TK_MODULES 365 -#define TK_NK_BITNOT 366 -#define TK_NK_SEMI 367 -#define TK_NOTNULL 368 -#define TK_OF 369 -#define TK_PLUS 370 -#define TK_PRIVILEGE 371 -#define TK_RAISE 372 -#define TK_RESTRICT 373 -#define TK_ROW 374 -#define TK_STAR 375 -#define TK_STATEMENT 376 -#define TK_STRICT 377 -#define TK_STRING 378 -#define TK_TIMES 379 -#define TK_VALUES 380 -#define TK_VARIABLE 381 -#define TK_WAL 382 +#define TK_RAND 272 +#define TK_SUBSTR 273 +#define TK_SUBSTRING 274 +#define TK_BOTH 275 +#define TK_TRAILING 276 +#define TK_LEADING 277 +#define TK_TIMEZONE 278 +#define TK_CLIENT_VERSION 279 +#define TK_SERVER_VERSION 280 +#define TK_SERVER_STATUS 281 +#define TK_CURRENT_USER 282 +#define TK_PI 283 +#define TK_CASE 284 +#define TK_WHEN 285 +#define TK_THEN 286 +#define TK_ELSE 287 +#define TK_BETWEEN 288 +#define TK_IS 289 +#define TK_NK_LT 290 +#define TK_NK_GT 291 +#define TK_NK_LE 292 +#define TK_NK_GE 293 +#define TK_NK_NE 294 +#define TK_MATCH 295 +#define TK_NMATCH 296 +#define TK_CONTAINS 297 +#define TK_JOIN 298 +#define TK_INNER 299 +#define TK_LEFT 300 +#define TK_RIGHT 301 +#define TK_OUTER 302 +#define TK_SEMI 303 +#define TK_ANTI 304 +#define TK_ASOF 305 +#define TK_WINDOW 306 +#define TK_WINDOW_OFFSET 307 +#define TK_JLIMIT 308 +#define TK_SELECT 309 +#define TK_NK_HINT 310 +#define TK_DISTINCT 311 +#define TK_WHERE 312 +#define TK_PARTITION 313 +#define TK_BY 314 +#define TK_SESSION 315 +#define TK_STATE_WINDOW 316 +#define TK_EVENT_WINDOW 317 +#define TK_COUNT_WINDOW 318 +#define TK_SLIDING 319 +#define TK_FILL 320 +#define TK_VALUE 321 +#define TK_VALUE_F 322 +#define TK_NONE 323 +#define TK_PREV 324 +#define TK_NULL_F 325 +#define TK_LINEAR 326 +#define TK_NEXT 327 +#define TK_HAVING 328 +#define TK_RANGE 329 +#define TK_EVERY 330 +#define TK_ORDER 331 +#define TK_SLIMIT 332 +#define TK_SOFFSET 333 +#define TK_LIMIT 334 +#define TK_OFFSET 335 +#define TK_ASC 336 +#define TK_NULLS 337 +#define TK_ABORT 338 +#define TK_AFTER 339 +#define TK_ATTACH 340 +#define TK_BEFORE 341 +#define TK_BEGIN 342 +#define TK_BITAND 343 +#define TK_BITNOT 344 +#define TK_BITOR 345 +#define TK_BLOCKS 346 +#define TK_CHANGE 347 +#define TK_COMMA 348 +#define TK_CONCAT 349 +#define TK_CONFLICT 350 +#define TK_COPY 351 +#define TK_DEFERRED 352 +#define TK_DELIMITERS 353 +#define TK_DETACH 354 +#define TK_DIVIDE 355 +#define TK_DOT 356 +#define TK_EACH 357 +#define TK_FAIL 358 +#define TK_GLOB 359 +#define TK_ID 360 +#define TK_IMMEDIATE 361 +#define TK_IMPORT 362 +#define TK_INITIALLY 363 +#define TK_INSTEAD 364 +#define TK_ISNULL 365 +#define TK_MODULES 366 +#define TK_NK_BITNOT 367 +#define TK_NK_SEMI 368 +#define TK_NOTNULL 369 +#define TK_OF 370 +#define TK_PLUS 371 +#define TK_PRIVILEGE 372 +#define TK_RAISE 373 +#define TK_RESTRICT 374 +#define TK_ROW 375 +#define TK_STAR 376 +#define TK_STATEMENT 377 +#define TK_STRICT 378 +#define TK_STRING 379 +#define TK_TIMES 380 +#define TK_VALUES 381 +#define TK_VARIABLE 382 +#define TK_WAL 383 #endif /**************** End token definitions ***************************************/ @@ -485,31 +486,31 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 565 +#define YYNOCODE 567 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - EJoinType yy22; - SToken yy29; - EOrder yy188; - EOperatorType yy230; - SNode* yy232; - int32_t yy240; - SDataType yy264; - SShowTablesOption yy307; - STokenPair yy337; - int64_t yy489; - SNodeList* yy514; - ENullOrder yy607; - EFillMode yy614; - EJoinSubType yy764; - bool yy777; - int8_t yy833; - ETrimType yy950; - SAlterOption yy1005; - EShowKind yy1119; + EFillMode yy18; + EJoinType yy36; + ENullOrder yy109; + bool yy173; + SNodeList* yy334; + SAlterOption yy389; + STokenPair yy399; + EOperatorType yy506; + SToken yy533; + EShowKind yy537; + SNode* yy560; + int64_t yy585; + EJoinSubType yy648; + ETrimType yy672; + SShowTablesOption yy709; + int8_t yy719; + int32_t yy802; + SDataType yy952; + EOrder yy974; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -525,18 +526,18 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 1004 -#define YYNRULE 769 -#define YYNRULE_WITH_ACTION 769 -#define YYNTOKEN 383 -#define YY_MAX_SHIFT 1003 -#define YY_MIN_SHIFTREDUCE 1487 -#define YY_MAX_SHIFTREDUCE 2255 -#define YY_ERROR_ACTION 2256 -#define YY_ACCEPT_ACTION 2257 -#define YY_NO_ACTION 2258 -#define YY_MIN_REDUCE 2259 -#define YY_MAX_REDUCE 3027 +#define YYNSTATE 1007 +#define YYNRULE 772 +#define YYNRULE_WITH_ACTION 772 +#define YYNTOKEN 384 +#define YY_MAX_SHIFT 1006 +#define YY_MIN_SHIFTREDUCE 1493 +#define YY_MAX_SHIFTREDUCE 2264 +#define YY_ERROR_ACTION 2265 +#define YY_ACCEPT_ACTION 2266 +#define YY_NO_ACTION 2267 +#define YY_MIN_REDUCE 2268 +#define YY_MAX_REDUCE 3039 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -603,1117 +604,1245 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (4063) +#define YY_ACTTAB_COUNT (4706) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 2748, 566, 203, 515, 328, 670, 565, 2622, 671, 2307, - /* 10 */ 51, 50, 58, 56, 57, 55, 54, 53, 52, 39, - /* 20 */ 498, 491, 1980, 2708, 2005, 51, 50, 2619, 882, 57, - /* 30 */ 55, 54, 53, 52, 675, 821, 1978, 385, 2082, 2351, - /* 40 */ 672, 2790, 3000, 2995, 57, 55, 54, 53, 52, 38, - /* 50 */ 2995, 43, 351, 833, 168, 895, 836, 787, 896, 2467, - /* 60 */ 193, 820, 229, 504, 895, 2995, 2996, 822, 2077, 2999, - /* 70 */ 2470, 865, 461, 2996, 2998, 757, 900, 218, 159, 787, - /* 80 */ 896, 2467, 1986, 3001, 229, 2808, 716, 2995, 2996, 822, - /* 90 */ 2527, 751, 811, 755, 753, 299, 298, 2005, 459, 954, - /* 100 */ 159, 2755, 2426, 877, 2595, 3001, 229, 2199, 721, 2525, - /* 110 */ 2996, 822, 1000, 833, 168, 59, 971, 970, 969, 968, - /* 120 */ 528, 2200, 967, 966, 173, 961, 960, 959, 958, 957, - /* 130 */ 956, 955, 172, 949, 948, 947, 527, 526, 944, 943, - /* 140 */ 942, 209, 208, 941, 523, 940, 939, 938, 2789, 895, - /* 150 */ 399, 2837, 2085, 2086, 2504, 132, 2791, 881, 2793, 2794, - /* 160 */ 876, 125, 303, 864, 900, 1532, 2622, 2198, 2178, 211, - /* 170 */ 196, 2897, 2271, 2622, 2005, 493, 2893, 205, 2905, 832, - /* 180 */ 500, 160, 831, 2790, 1539, 77, 2619, 882, 821, 2995, - /* 190 */ 135, 2041, 2051, 2620, 882, 230, 2995, 501, 878, 518, - /* 200 */ 2469, 2084, 2087, 2944, 2260, 2564, 192, 820, 229, 1534, - /* 210 */ 1537, 1538, 2996, 822, 820, 229, 1981, 2472, 1979, 2996, - /* 220 */ 822, 770, 9, 863, 2547, 149, 686, 2808, 148, 147, - /* 230 */ 146, 145, 144, 143, 142, 141, 140, 138, 2905, 2906, - /* 240 */ 2006, 166, 2910, 2755, 61, 877, 73, 1906, 1907, 1908, - /* 250 */ 480, 2669, 689, 1984, 1985, 2038, 2149, 2040, 2043, 2044, - /* 260 */ 2045, 2046, 2047, 2048, 2049, 2050, 873, 866, 1825, 1826, - /* 270 */ 898, 897, 2069, 2070, 2071, 2072, 2073, 2076, 2078, 2079, - /* 280 */ 2080, 2081, 2083, 2, 58, 56, 2174, 510, 2790, 2319, - /* 290 */ 2789, 302, 498, 2837, 1980, 301, 73, 132, 2791, 881, - /* 300 */ 2793, 2794, 876, 875, 169, 864, 900, 2868, 1978, 170, - /* 310 */ 2082, 179, 2868, 2897, 693, 51, 50, 493, 2893, 57, - /* 320 */ 55, 54, 53, 52, 629, 678, 2790, 2038, 671, 2307, - /* 330 */ 51, 50, 2808, 2149, 57, 55, 54, 53, 52, 249, - /* 340 */ 2077, 878, 2765, 865, 989, 2042, 771, 19, 2755, 520, - /* 350 */ 877, 502, 2520, 2522, 1986, 149, 218, 937, 148, 147, - /* 360 */ 146, 145, 144, 143, 142, 141, 140, 58, 56, 114, - /* 370 */ 2808, 2769, 1751, 1752, 443, 498, 610, 1980, 478, 612, - /* 380 */ 759, 609, 453, 2595, 1000, 105, 2755, 15, 877, 608, - /* 390 */ 104, 1978, 254, 2082, 611, 2789, 2458, 62, 2837, 2146, - /* 400 */ 2147, 2148, 431, 2791, 881, 2793, 2794, 876, 874, 2039, - /* 410 */ 864, 900, 856, 2862, 2354, 573, 2149, 628, 253, 3000, - /* 420 */ 768, 2771, 2774, 2077, 2085, 2086, 865, 2995, 680, 2661, - /* 430 */ 19, 626, 2112, 2789, 900, 95, 2837, 1986, 2062, 335, - /* 440 */ 132, 2791, 881, 2793, 2794, 876, 2999, 2093, 864, 900, - /* 450 */ 2996, 2997, 171, 2005, 2872, 2471, 2897, 103, 2008, 504, - /* 460 */ 493, 2893, 2459, 2041, 2051, 635, 633, 1000, 436, 1949, - /* 470 */ 15, 243, 900, 2084, 2087, 2917, 2146, 2147, 2148, 2917, - /* 480 */ 2917, 2917, 2917, 2917, 2338, 1559, 195, 1558, 1981, 335, - /* 490 */ 1979, 737, 736, 735, 2400, 863, 2574, 2113, 727, 165, - /* 500 */ 731, 164, 509, 508, 730, 667, 738, 2085, 2086, 729, - /* 510 */ 734, 473, 472, 868, 665, 728, 767, 661, 657, 471, - /* 520 */ 724, 723, 722, 1560, 867, 1984, 1985, 2038, 1650, 2040, - /* 530 */ 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2050, 873, 866, - /* 540 */ 580, 687, 898, 897, 2069, 2070, 2041, 2051, 810, 2076, - /* 550 */ 2078, 2079, 2080, 2081, 2083, 2, 2084, 2087, 2917, 2146, - /* 560 */ 2147, 2148, 2917, 2917, 2917, 2917, 2917, 222, 895, 392, - /* 570 */ 2005, 1981, 806, 1979, 1652, 2118, 3000, 2808, 863, 929, - /* 580 */ 51, 50, 2518, 2514, 57, 55, 54, 53, 52, 2207, - /* 590 */ 335, 44, 2009, 2008, 42, 495, 2107, 2108, 2109, 2110, - /* 600 */ 2111, 2115, 2116, 2117, 73, 688, 2615, 2282, 1984, 1985, - /* 610 */ 2038, 12, 2040, 2043, 2044, 2045, 2046, 2047, 2048, 2049, - /* 620 */ 2050, 873, 866, 2912, 2042, 898, 897, 2069, 2070, 479, - /* 630 */ 2669, 333, 2076, 2078, 2079, 2080, 2081, 2083, 2, 12, - /* 640 */ 58, 56, 2151, 2152, 2153, 2154, 2155, 1986, 498, 809, - /* 650 */ 1980, 2909, 2281, 2790, 2441, 1712, 803, 802, 2205, 2206, - /* 660 */ 2208, 2209, 2210, 61, 1978, 73, 2082, 2755, 878, 2749, - /* 670 */ 1703, 927, 926, 925, 1707, 924, 1709, 1710, 923, 920, - /* 680 */ 744, 1718, 917, 1720, 1721, 914, 911, 908, 2039, 2242, - /* 690 */ 812, 807, 800, 796, 265, 758, 2077, 2808, 673, 865, - /* 700 */ 2315, 111, 2257, 19, 564, 267, 563, 550, 2527, 673, - /* 710 */ 1986, 2315, 2755, 2755, 300, 877, 489, 525, 524, 464, - /* 720 */ 582, 2591, 928, 58, 56, 2088, 2259, 2525, 937, 2462, - /* 730 */ 747, 498, 504, 1980, 2280, 2006, 2912, 741, 739, 562, - /* 740 */ 1000, 1987, 771, 15, 297, 900, 218, 1978, 2456, 2082, - /* 750 */ 158, 157, 156, 155, 154, 153, 152, 151, 150, 1539, - /* 760 */ 2789, 2451, 466, 2837, 2908, 225, 333, 133, 2791, 881, - /* 770 */ 2793, 2794, 876, 2596, 245, 864, 900, 588, 2591, 2077, - /* 780 */ 2085, 2086, 865, 2897, 1712, 1537, 1538, 2896, 2893, 933, - /* 790 */ 83, 531, 2518, 1986, 2755, 82, 530, 335, 2454, 1703, - /* 800 */ 927, 926, 925, 1707, 924, 1709, 1710, 872, 871, 2527, - /* 810 */ 1718, 870, 1720, 1721, 869, 911, 908, 503, 391, 2041, - /* 820 */ 2051, 2521, 2522, 1000, 773, 2661, 59, 2010, 2525, 2084, - /* 830 */ 2087, 247, 51, 50, 833, 168, 57, 55, 54, 53, - /* 840 */ 52, 737, 736, 735, 1981, 554, 1979, 787, 727, 165, - /* 850 */ 731, 863, 2009, 124, 730, 2995, 335, 33, 335, 729, - /* 860 */ 734, 473, 472, 2085, 2086, 728, 2279, 1852, 1853, 471, - /* 870 */ 724, 723, 722, 3001, 229, 556, 552, 223, 2996, 822, - /* 880 */ 2460, 1984, 1985, 2038, 2005, 2040, 2043, 2044, 2045, 2046, - /* 890 */ 2047, 2048, 2049, 2050, 873, 866, 712, 711, 898, 897, - /* 900 */ 2069, 2070, 2041, 2051, 825, 2076, 2078, 2079, 2080, 2081, - /* 910 */ 2083, 2, 2084, 2087, 51, 50, 1851, 1854, 57, 55, - /* 920 */ 54, 53, 52, 1990, 392, 513, 2755, 1981, 12, 1979, - /* 930 */ 10, 51, 50, 2527, 863, 57, 55, 54, 53, 52, - /* 940 */ 2219, 519, 786, 51, 50, 310, 193, 57, 55, 54, - /* 950 */ 53, 52, 2525, 46, 690, 518, 2469, 835, 198, 2905, - /* 960 */ 2906, 1541, 166, 2910, 1984, 1985, 2038, 2004, 2040, 2043, - /* 970 */ 2044, 2045, 2046, 2047, 2048, 2049, 2050, 873, 866, 1562, - /* 980 */ 1563, 898, 897, 2069, 2070, 2670, 619, 2591, 2076, 2078, - /* 990 */ 2079, 2080, 2081, 2083, 2, 58, 56, 896, 2467, 2790, - /* 1000 */ 896, 2467, 2709, 498, 2009, 1980, 935, 185, 184, 932, - /* 1010 */ 931, 930, 182, 2609, 878, 691, 2171, 522, 2529, 1978, - /* 1020 */ 234, 2082, 2057, 714, 713, 224, 545, 2114, 51, 50, - /* 1030 */ 37, 2765, 57, 55, 54, 53, 52, 2790, 2527, 2218, - /* 1040 */ 252, 51, 50, 2808, 521, 57, 55, 54, 53, 52, - /* 1050 */ 236, 2077, 878, 192, 865, 2042, 1662, 840, 787, 2755, - /* 1060 */ 2769, 877, 896, 2467, 2472, 1986, 2995, 45, 51, 50, - /* 1070 */ 1661, 398, 57, 55, 54, 53, 52, 2443, 58, 56, - /* 1080 */ 2471, 2808, 66, 71, 3001, 229, 498, 2010, 1980, 2996, - /* 1090 */ 822, 342, 343, 903, 784, 1000, 341, 2755, 59, 877, - /* 1100 */ 896, 2467, 1978, 2675, 2082, 2119, 2789, 1948, 2278, 2837, - /* 1110 */ 2771, 2773, 494, 197, 2791, 881, 2793, 2794, 876, 2039, - /* 1120 */ 570, 864, 900, 900, 40, 51, 50, 733, 732, 57, - /* 1130 */ 55, 54, 53, 52, 2077, 2085, 2086, 865, 896, 2467, - /* 1140 */ 512, 511, 951, 2249, 2789, 2277, 640, 2837, 1986, 2059, - /* 1150 */ 192, 132, 2791, 881, 2793, 2794, 876, 2401, 571, 864, - /* 1160 */ 900, 2473, 788, 2955, 304, 2870, 2272, 2897, 2755, 896, - /* 1170 */ 2467, 493, 2893, 638, 2041, 2051, 2190, 232, 1000, 965, - /* 1180 */ 963, 59, 2912, 934, 2084, 2087, 2518, 51, 50, 590, - /* 1190 */ 815, 57, 55, 54, 53, 52, 720, 896, 2467, 1981, - /* 1200 */ 719, 1979, 41, 826, 285, 2755, 863, 1666, 51, 50, - /* 1210 */ 2907, 953, 57, 55, 54, 53, 52, 604, 2085, 2086, - /* 1220 */ 204, 1665, 935, 185, 184, 932, 931, 930, 182, 710, - /* 1230 */ 706, 702, 698, 2058, 284, 2440, 1984, 1985, 2038, 2010, - /* 1240 */ 2040, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2050, 873, - /* 1250 */ 866, 2287, 993, 898, 897, 2069, 2070, 2041, 2051, 2160, - /* 1260 */ 2076, 2078, 2079, 2080, 2081, 2083, 2, 2084, 2087, 2527, - /* 1270 */ 2248, 51, 50, 14, 13, 57, 55, 54, 53, 52, - /* 1280 */ 112, 857, 1981, 2869, 1979, 282, 51, 50, 848, 863, - /* 1290 */ 57, 55, 54, 53, 52, 2060, 1559, 642, 1558, 51, - /* 1300 */ 50, 904, 2999, 57, 55, 54, 53, 52, 51, 50, - /* 1310 */ 833, 168, 57, 55, 54, 53, 52, 2695, 2276, 1984, - /* 1320 */ 1985, 2038, 2170, 2040, 2043, 2044, 2045, 2046, 2047, 2048, - /* 1330 */ 2049, 2050, 873, 866, 1560, 2275, 898, 897, 2069, 2070, - /* 1340 */ 54, 53, 52, 2076, 2078, 2079, 2080, 2081, 2083, 2, - /* 1350 */ 58, 56, 270, 2274, 1980, 440, 2273, 2003, 498, 769, - /* 1360 */ 1980, 281, 470, 468, 617, 272, 279, 463, 1978, 896, - /* 1370 */ 2467, 277, 684, 764, 1978, 637, 2082, 1003, 2755, 2063, - /* 1380 */ 935, 185, 184, 932, 931, 930, 182, 111, 2126, 605, - /* 1390 */ 269, 596, 2699, 639, 2056, 2755, 389, 2270, 441, 598, - /* 1400 */ 2958, 859, 2269, 2869, 203, 3, 2077, 896, 2467, 865, - /* 1410 */ 576, 991, 219, 2755, 1986, 2463, 2755, 2009, 2005, 64, - /* 1420 */ 1986, 987, 983, 979, 975, 115, 384, 606, 828, 787, - /* 1430 */ 2527, 89, 896, 2467, 199, 2905, 2906, 2995, 166, 2910, - /* 1440 */ 161, 314, 467, 465, 1000, 718, 538, 896, 2467, 2526, - /* 1450 */ 1000, 462, 692, 15, 101, 3001, 229, 2755, 183, 1880, - /* 1460 */ 2996, 822, 2755, 584, 896, 2467, 720, 2464, 896, 2467, - /* 1470 */ 719, 329, 131, 725, 2268, 51, 50, 357, 804, 57, - /* 1480 */ 55, 54, 53, 52, 305, 102, 2267, 772, 313, 2266, - /* 1490 */ 2085, 2086, 116, 136, 2602, 2581, 1643, 625, 624, 623, - /* 1500 */ 622, 621, 616, 615, 614, 613, 446, 2265, 849, 603, - /* 1510 */ 602, 601, 600, 599, 593, 592, 591, 2264, 586, 585, - /* 1520 */ 460, 2790, 896, 2467, 577, 1813, 1814, 896, 2467, 2041, - /* 1530 */ 2051, 1832, 896, 2467, 2755, 2444, 836, 896, 2467, 2084, - /* 1540 */ 2087, 65, 839, 787, 896, 2467, 2755, 346, 1981, 2755, - /* 1550 */ 1979, 2995, 853, 355, 1981, 855, 1979, 353, 338, 47, - /* 1560 */ 1645, 863, 220, 337, 889, 2808, 726, 2755, 174, 3001, - /* 1570 */ 229, 862, 2263, 290, 2996, 822, 288, 2755, 761, 834, - /* 1580 */ 760, 2755, 307, 877, 292, 1984, 1985, 291, 2262, 1641, - /* 1590 */ 2336, 1984, 1985, 2038, 321, 2040, 2043, 2044, 2045, 2046, - /* 1600 */ 2047, 2048, 2049, 2050, 873, 866, 1646, 945, 898, 897, - /* 1610 */ 2069, 2070, 740, 896, 2467, 2076, 2078, 2079, 2080, 2081, - /* 1620 */ 2083, 2, 194, 2251, 2252, 163, 837, 405, 2789, 824, - /* 1630 */ 1615, 2837, 2755, 890, 175, 132, 2791, 881, 2793, 2794, - /* 1640 */ 876, 1989, 175, 864, 900, 2790, 403, 87, 2755, 211, - /* 1650 */ 86, 2897, 2010, 2039, 294, 493, 2893, 293, 896, 2467, - /* 1660 */ 878, 442, 2317, 296, 896, 2467, 295, 794, 60, 2393, - /* 1670 */ 60, 2790, 2327, 263, 652, 650, 647, 645, 894, 2325, - /* 1680 */ 2776, 1988, 787, 2945, 381, 2809, 878, 212, 2952, 2808, - /* 1690 */ 2995, 183, 1623, 340, 742, 14, 13, 360, 359, 88, - /* 1700 */ 60, 745, 130, 2392, 127, 2755, 2308, 877, 3001, 229, - /* 1710 */ 362, 361, 2948, 2996, 822, 2808, 801, 1896, 485, 73, - /* 1720 */ 75, 60, 364, 363, 60, 1904, 366, 365, 60, 829, - /* 1730 */ 547, 2755, 85, 877, 808, 88, 368, 367, 1624, 180, - /* 1740 */ 481, 161, 183, 842, 2778, 906, 370, 369, 2600, 2104, - /* 1750 */ 2194, 2204, 2789, 2203, 181, 2837, 183, 529, 74, 132, - /* 1760 */ 2791, 881, 2793, 2794, 876, 372, 371, 864, 900, 2314, - /* 1770 */ 319, 374, 373, 3015, 838, 2897, 344, 780, 2789, 493, - /* 1780 */ 2893, 2837, 845, 2061, 162, 132, 2791, 881, 2793, 2794, - /* 1790 */ 876, 376, 375, 864, 900, 378, 377, 180, 946, 3015, - /* 1800 */ 2515, 2897, 1596, 2120, 2064, 493, 2893, 2052, 380, 379, - /* 1810 */ 2949, 1849, 99, 98, 569, 397, 816, 242, 1839, 2959, - /* 1820 */ 334, 1613, 356, 1992, 893, 1694, 331, 817, 1725, 2601, - /* 1830 */ 561, 559, 326, 2427, 5, 532, 537, 1733, 2003, 1740, - /* 1840 */ 2790, 457, 546, 2013, 439, 557, 237, 548, 1597, 558, - /* 1850 */ 544, 540, 536, 533, 562, 878, 238, 2965, 560, 240, - /* 1860 */ 1873, 390, 574, 1991, 2004, 583, 581, 1738, 251, 587, - /* 1870 */ 589, 631, 594, 607, 620, 618, 2593, 2790, 627, 630, - /* 1880 */ 186, 632, 643, 644, 2808, 641, 257, 256, 646, 649, - /* 1890 */ 648, 2011, 878, 260, 798, 651, 668, 653, 4, 669, - /* 1900 */ 2755, 676, 877, 677, 2006, 679, 681, 2790, 268, 107, - /* 1910 */ 271, 2012, 335, 682, 2014, 683, 274, 685, 276, 2015, - /* 1920 */ 2616, 2808, 878, 108, 2988, 2016, 109, 110, 2610, 694, - /* 1930 */ 715, 283, 137, 748, 717, 2457, 749, 2755, 434, 877, - /* 1940 */ 287, 763, 2453, 289, 2685, 765, 188, 2789, 113, 134, - /* 1950 */ 2837, 2808, 176, 306, 132, 2791, 881, 2793, 2794, 876, - /* 1960 */ 2455, 2450, 864, 900, 393, 2007, 189, 2755, 3015, 877, - /* 1970 */ 2897, 190, 2682, 2681, 493, 2893, 775, 2662, 774, 311, - /* 1980 */ 782, 805, 2964, 843, 2789, 791, 779, 2837, 2963, 2790, - /* 1990 */ 8, 132, 2791, 881, 2793, 2794, 876, 814, 781, 864, - /* 2000 */ 900, 776, 792, 2936, 878, 3015, 2929, 2897, 445, 444, - /* 2010 */ 790, 493, 2893, 309, 2789, 316, 318, 2837, 505, 789, - /* 2020 */ 322, 132, 2791, 881, 2793, 2794, 876, 320, 202, 864, - /* 2030 */ 900, 323, 514, 2808, 2082, 3015, 325, 2897, 2790, 330, - /* 2040 */ 819, 493, 2893, 818, 830, 2994, 525, 524, 827, 2755, - /* 2050 */ 167, 877, 486, 878, 3018, 2008, 1994, 2913, 2168, 2166, - /* 2060 */ 336, 215, 177, 394, 2077, 841, 2630, 2629, 2628, 324, - /* 2070 */ 1987, 490, 2082, 395, 2916, 327, 2790, 847, 846, 851, - /* 2080 */ 72, 178, 2808, 854, 349, 2878, 885, 1, 231, 883, - /* 2090 */ 887, 878, 126, 354, 396, 888, 2789, 2468, 2755, 2837, - /* 2100 */ 877, 1511, 2077, 132, 2791, 881, 2793, 2794, 876, 996, - /* 2110 */ 2747, 864, 900, 902, 995, 2746, 1986, 3015, 2790, 2897, - /* 2120 */ 2808, 2742, 123, 493, 2893, 997, 2741, 400, 435, 2733, - /* 2130 */ 2732, 187, 992, 878, 999, 2724, 2755, 386, 877, 2723, - /* 2140 */ 387, 2707, 767, 2739, 404, 2789, 861, 2738, 2837, 383, - /* 2150 */ 2730, 2729, 132, 2791, 881, 2793, 2794, 876, 2706, 2718, - /* 2160 */ 864, 900, 2808, 2705, 2717, 2736, 858, 449, 2897, 402, - /* 2170 */ 96, 2735, 493, 2893, 2727, 2726, 2715, 2714, 2755, 469, - /* 2180 */ 877, 2712, 2711, 2789, 2519, 422, 2837, 516, 433, 450, - /* 2190 */ 133, 2791, 881, 2793, 2794, 876, 63, 2700, 864, 900, - /* 2200 */ 423, 534, 1931, 535, 1932, 235, 2897, 539, 2698, 541, - /* 2210 */ 860, 2893, 1971, 542, 1947, 543, 1930, 2697, 2696, 458, - /* 2220 */ 2694, 549, 2693, 551, 2692, 2789, 553, 2691, 2837, 555, - /* 2230 */ 1918, 2666, 200, 2791, 881, 2793, 2794, 876, 2790, 239, - /* 2240 */ 864, 900, 2665, 241, 2643, 97, 1876, 507, 506, 1972, - /* 2250 */ 1995, 2642, 1990, 878, 1875, 2641, 567, 568, 2640, 2639, - /* 2260 */ 2583, 572, 1812, 2580, 2790, 575, 898, 897, 2579, 2573, - /* 2270 */ 578, 2570, 244, 2076, 2078, 2079, 2080, 2081, 2083, 878, - /* 2280 */ 579, 2569, 2808, 100, 2568, 2567, 2572, 1998, 2000, 246, - /* 2290 */ 2571, 2566, 2565, 823, 3016, 2563, 2562, 2561, 2755, 2560, - /* 2300 */ 877, 248, 595, 597, 898, 897, 2558, 2557, 2808, 2556, - /* 2310 */ 2555, 2076, 2078, 2079, 2080, 2081, 2083, 2554, 2578, 2553, - /* 2320 */ 2552, 2551, 2576, 2559, 2755, 2550, 877, 2549, 2548, 2546, - /* 2330 */ 2545, 2544, 2543, 2542, 2541, 2540, 106, 2539, 250, 2538, - /* 2340 */ 2537, 2536, 2608, 2577, 2790, 879, 2575, 2535, 2837, 2534, - /* 2350 */ 2533, 2532, 133, 2791, 881, 2793, 2794, 876, 1818, 878, - /* 2360 */ 864, 900, 2531, 255, 634, 636, 2530, 2528, 2897, 2358, - /* 2370 */ 1663, 2789, 452, 2893, 2837, 1667, 2790, 2357, 133, 2791, - /* 2380 */ 881, 2793, 2794, 876, 258, 2356, 864, 900, 2808, 2355, - /* 2390 */ 447, 878, 259, 2790, 2897, 1659, 448, 2353, 2350, 2894, - /* 2400 */ 654, 656, 2349, 2342, 2755, 2329, 877, 658, 878, 655, - /* 2410 */ 659, 662, 2790, 261, 660, 666, 664, 663, 2303, 210, - /* 2420 */ 2808, 264, 262, 1540, 2775, 92, 2302, 878, 266, 221, - /* 2430 */ 2664, 93, 2660, 674, 2650, 2638, 2755, 2808, 877, 273, - /* 2440 */ 2637, 278, 275, 2614, 280, 2607, 2445, 2352, 2348, 695, - /* 2450 */ 696, 2789, 1589, 2755, 2837, 877, 2808, 2346, 408, 2791, - /* 2460 */ 881, 2793, 2794, 876, 697, 31, 864, 900, 700, 699, - /* 2470 */ 2344, 701, 2755, 703, 877, 704, 2341, 483, 707, 708, - /* 2480 */ 705, 2324, 709, 2789, 2322, 2323, 2837, 2321, 2299, 2790, - /* 2490 */ 197, 2791, 881, 2793, 2794, 876, 484, 2447, 864, 900, - /* 2500 */ 2789, 1745, 1744, 2837, 878, 1649, 2790, 432, 2791, 881, - /* 2510 */ 2793, 2794, 876, 84, 286, 864, 900, 2446, 1648, 2789, - /* 2520 */ 1631, 878, 2837, 2790, 2339, 1647, 432, 2791, 881, 2793, - /* 2530 */ 2794, 876, 1644, 2808, 864, 900, 1642, 1640, 875, 1639, - /* 2540 */ 2956, 474, 1638, 1637, 1636, 962, 964, 1633, 2337, 2755, - /* 2550 */ 2808, 877, 1632, 2328, 1630, 475, 476, 2326, 743, 477, - /* 2560 */ 2298, 746, 2297, 2296, 750, 2295, 2755, 2808, 877, 2294, - /* 2570 */ 2293, 752, 754, 756, 139, 1912, 1914, 1911, 1916, 32, - /* 2580 */ 2663, 1901, 2659, 2755, 78, 877, 766, 67, 1886, 308, - /* 2590 */ 1884, 1882, 68, 2649, 777, 2636, 2789, 778, 2635, 2837, - /* 2600 */ 312, 1861, 3000, 425, 2791, 881, 2793, 2794, 876, 783, - /* 2610 */ 1860, 864, 900, 2789, 785, 17, 2837, 21, 6, 2790, - /* 2620 */ 200, 2791, 881, 2793, 2794, 876, 191, 793, 864, 900, - /* 2630 */ 2789, 2221, 482, 2837, 878, 34, 2790, 431, 2791, 881, - /* 2640 */ 2793, 2794, 876, 2195, 315, 864, 900, 795, 2863, 7, - /* 2650 */ 2163, 878, 22, 23, 799, 797, 813, 214, 226, 2776, - /* 2660 */ 317, 2790, 2202, 2808, 201, 213, 36, 35, 2161, 227, - /* 2670 */ 76, 25, 2189, 94, 332, 2159, 878, 2241, 2236, 2755, - /* 2680 */ 2808, 877, 3017, 2242, 2235, 487, 228, 2240, 2239, 488, - /* 2690 */ 2143, 2142, 70, 2634, 206, 2613, 2755, 24, 877, 118, - /* 2700 */ 117, 2612, 216, 496, 339, 2808, 2197, 69, 119, 345, - /* 2710 */ 844, 2606, 120, 26, 11, 80, 350, 850, 348, 852, - /* 2720 */ 492, 2755, 347, 877, 2095, 18, 2789, 13, 2094, 2837, - /* 2730 */ 1996, 2105, 2055, 432, 2791, 881, 2793, 2794, 876, 207, - /* 2740 */ 27, 864, 900, 2789, 28, 497, 2837, 2790, 2054, 20, - /* 2750 */ 417, 2791, 881, 2793, 2794, 876, 48, 2031, 864, 900, - /* 2760 */ 913, 916, 878, 2053, 217, 919, 2790, 2605, 2789, 922, - /* 2770 */ 121, 2837, 2023, 49, 886, 432, 2791, 881, 2793, 2794, - /* 2780 */ 876, 878, 880, 864, 900, 16, 2790, 29, 30, 81, - /* 2790 */ 352, 2808, 884, 122, 127, 2442, 891, 892, 90, 358, - /* 2800 */ 2847, 878, 2846, 2255, 905, 2066, 899, 2755, 901, 877, - /* 2810 */ 2808, 79, 2254, 1726, 517, 907, 909, 1587, 1723, 910, - /* 2820 */ 912, 1722, 915, 1719, 918, 1713, 2755, 921, 877, 1717, - /* 2830 */ 2808, 499, 1711, 128, 382, 1716, 1715, 129, 1739, 91, - /* 2840 */ 1714, 1735, 1627, 1626, 936, 1625, 2755, 1622, 877, 1619, - /* 2850 */ 1618, 1617, 1616, 2790, 2789, 1657, 950, 2837, 1614, 1612, - /* 2860 */ 1611, 432, 2791, 881, 2793, 2794, 876, 1656, 878, 864, - /* 2870 */ 900, 1610, 952, 2789, 233, 1608, 2837, 2790, 1607, 1606, - /* 2880 */ 413, 2791, 881, 2793, 2794, 876, 1605, 1604, 864, 900, - /* 2890 */ 1603, 2790, 878, 762, 1602, 1651, 2837, 2808, 2347, 1653, - /* 2900 */ 427, 2791, 881, 2793, 2794, 876, 878, 1599, 864, 900, - /* 2910 */ 1598, 1595, 1594, 2755, 1593, 877, 1592, 2790, 972, 973, - /* 2920 */ 2345, 2808, 974, 976, 977, 978, 2343, 980, 982, 2340, - /* 2930 */ 984, 981, 878, 985, 986, 2808, 2320, 2755, 988, 877, - /* 2940 */ 2318, 990, 1529, 2292, 1512, 994, 1517, 1519, 2258, 388, - /* 2950 */ 1982, 2755, 998, 877, 401, 1001, 2258, 1002, 2258, 2258, - /* 2960 */ 2789, 2808, 2258, 2837, 2258, 2258, 2258, 409, 2791, 881, - /* 2970 */ 2793, 2794, 876, 2258, 2258, 864, 900, 2755, 2258, 877, - /* 2980 */ 2258, 2258, 2258, 2258, 2789, 2258, 2258, 2837, 2258, 2258, - /* 2990 */ 2258, 406, 2791, 881, 2793, 2794, 876, 2258, 2789, 864, - /* 3000 */ 900, 2837, 2258, 2790, 2258, 410, 2791, 881, 2793, 2794, - /* 3010 */ 876, 2258, 2258, 864, 900, 2258, 2258, 2258, 878, 2258, - /* 3020 */ 2258, 2258, 2258, 2790, 2789, 2258, 2258, 2837, 2258, 2258, - /* 3030 */ 2258, 424, 2791, 881, 2793, 2794, 876, 2258, 878, 864, - /* 3040 */ 900, 2258, 2258, 2790, 2258, 2258, 2258, 2808, 2258, 2258, - /* 3050 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 878, 2258, - /* 3060 */ 2258, 2258, 2258, 2755, 2258, 877, 2258, 2808, 2258, 2258, - /* 3070 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3080 */ 2258, 2258, 2258, 2755, 2258, 877, 2258, 2808, 2258, 2258, - /* 3090 */ 2258, 2258, 2790, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3100 */ 2258, 2258, 2258, 2755, 2258, 877, 2258, 878, 2258, 2258, - /* 3110 */ 2789, 2258, 2258, 2837, 2258, 2258, 2258, 411, 2791, 881, - /* 3120 */ 2793, 2794, 876, 2258, 2258, 864, 900, 2258, 2790, 2258, - /* 3130 */ 2789, 2258, 2258, 2837, 2258, 2258, 2808, 412, 2791, 881, - /* 3140 */ 2793, 2794, 876, 878, 2258, 864, 900, 2258, 2258, 2258, - /* 3150 */ 2789, 2258, 2755, 2837, 877, 2258, 2258, 428, 2791, 881, - /* 3160 */ 2793, 2794, 876, 2258, 2258, 864, 900, 2258, 2790, 2258, - /* 3170 */ 2258, 2258, 2808, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3180 */ 2258, 2258, 2258, 878, 2258, 2258, 2258, 2258, 2755, 2258, - /* 3190 */ 877, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2789, - /* 3200 */ 2258, 2258, 2837, 2258, 2258, 2258, 414, 2791, 881, 2793, - /* 3210 */ 2794, 876, 2808, 2258, 864, 900, 2258, 2790, 2258, 2258, - /* 3220 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2755, 2258, - /* 3230 */ 877, 2258, 878, 2258, 2258, 2789, 2258, 2258, 2837, 2258, - /* 3240 */ 2258, 2258, 429, 2791, 881, 2793, 2794, 876, 2790, 2258, - /* 3250 */ 864, 900, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3260 */ 2258, 2808, 2258, 878, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3270 */ 2258, 2258, 2258, 2258, 2258, 2789, 2258, 2755, 2837, 877, - /* 3280 */ 2258, 2258, 415, 2791, 881, 2793, 2794, 876, 2258, 2258, - /* 3290 */ 864, 900, 2808, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3300 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2755, 2258, - /* 3310 */ 877, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3320 */ 2258, 2258, 2258, 2258, 2789, 2258, 2258, 2837, 2258, 2258, - /* 3330 */ 2258, 430, 2791, 881, 2793, 2794, 876, 2258, 2790, 864, - /* 3340 */ 900, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3350 */ 2258, 2258, 2258, 878, 2258, 2789, 2258, 2790, 2837, 2258, - /* 3360 */ 2258, 2258, 416, 2791, 881, 2793, 2794, 876, 2258, 2258, - /* 3370 */ 864, 900, 878, 2258, 2790, 2258, 2258, 2258, 2258, 2258, - /* 3380 */ 2258, 2258, 2808, 2258, 2258, 2258, 2258, 2258, 2258, 878, - /* 3390 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2755, 2258, - /* 3400 */ 877, 2808, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3410 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2755, 2808, 877, - /* 3420 */ 2258, 2258, 2258, 2258, 2258, 2790, 2258, 2258, 2258, 2258, - /* 3430 */ 2258, 2258, 2258, 2258, 2755, 2258, 877, 2258, 2258, 2258, - /* 3440 */ 878, 2258, 2258, 2258, 2258, 2789, 2258, 2258, 2837, 2258, - /* 3450 */ 2790, 2258, 407, 2791, 881, 2793, 2794, 876, 2258, 2258, - /* 3460 */ 864, 900, 2258, 2258, 2789, 878, 2258, 2837, 2258, 2808, - /* 3470 */ 2258, 418, 2791, 881, 2793, 2794, 876, 2258, 2258, 864, - /* 3480 */ 900, 2789, 2258, 2258, 2837, 2755, 2258, 877, 419, 2791, - /* 3490 */ 881, 2793, 2794, 876, 2808, 2258, 864, 900, 2258, 2258, - /* 3500 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3510 */ 2755, 2258, 877, 2258, 2258, 2790, 2258, 2258, 2258, 2258, - /* 3520 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3530 */ 878, 2258, 2789, 2258, 2258, 2837, 2258, 2790, 2258, 420, - /* 3540 */ 2791, 881, 2793, 2794, 876, 2258, 2258, 864, 900, 2258, - /* 3550 */ 2258, 2258, 878, 2258, 2258, 2258, 2258, 2789, 2258, 2808, - /* 3560 */ 2837, 2258, 2258, 2258, 421, 2791, 881, 2793, 2794, 876, - /* 3570 */ 2258, 2258, 864, 900, 2258, 2755, 2258, 877, 2258, 2258, - /* 3580 */ 2258, 2808, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3590 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2755, 2258, 877, - /* 3600 */ 2258, 2790, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3610 */ 2258, 2258, 2258, 2258, 2258, 2258, 878, 2258, 2258, 2258, - /* 3620 */ 2258, 2258, 2789, 2258, 2258, 2837, 2258, 2258, 2258, 437, - /* 3630 */ 2791, 881, 2793, 2794, 876, 2790, 2258, 864, 900, 2258, - /* 3640 */ 2258, 2258, 2258, 2258, 2789, 2808, 2258, 2837, 2258, 2258, - /* 3650 */ 878, 438, 2791, 881, 2793, 2794, 876, 2258, 2258, 864, - /* 3660 */ 900, 2755, 2258, 877, 2258, 2790, 2258, 2258, 2258, 2258, - /* 3670 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2808, - /* 3680 */ 878, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3690 */ 2258, 2258, 2258, 2258, 2258, 2755, 2258, 877, 2258, 2258, - /* 3700 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2789, 2808, - /* 3710 */ 2258, 2837, 2258, 2258, 2258, 2802, 2791, 881, 2793, 2794, - /* 3720 */ 876, 2258, 2258, 864, 900, 2755, 2258, 877, 2258, 2258, - /* 3730 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3740 */ 2258, 2258, 2789, 2258, 2258, 2837, 2258, 2258, 2258, 2801, - /* 3750 */ 2791, 881, 2793, 2794, 876, 2258, 2258, 864, 900, 2790, - /* 3760 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3770 */ 2258, 2258, 2789, 2258, 878, 2837, 2790, 2258, 2258, 2800, - /* 3780 */ 2791, 881, 2793, 2794, 876, 2258, 2258, 864, 900, 2258, - /* 3790 */ 2258, 878, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3800 */ 2258, 2258, 2258, 2808, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3810 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2755, - /* 3820 */ 2808, 877, 2258, 2258, 2258, 2258, 2258, 2790, 2258, 2258, - /* 3830 */ 2258, 2258, 2258, 2258, 2258, 2258, 2755, 2258, 877, 2258, - /* 3840 */ 2258, 2790, 878, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3850 */ 2258, 2258, 2258, 2258, 2258, 2258, 878, 2258, 2258, 2258, - /* 3860 */ 2258, 2258, 2258, 2258, 2258, 2258, 2789, 2258, 2258, 2837, - /* 3870 */ 2258, 2808, 2258, 454, 2791, 881, 2793, 2794, 876, 2258, - /* 3880 */ 2258, 864, 900, 2789, 2258, 2808, 2837, 2755, 2258, 877, - /* 3890 */ 455, 2791, 881, 2793, 2794, 876, 2258, 2258, 864, 900, - /* 3900 */ 2258, 2755, 2258, 877, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3910 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2790, 2258, 2258, - /* 3920 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3930 */ 2258, 2258, 878, 2258, 2789, 2258, 2258, 2837, 2258, 2790, - /* 3940 */ 2258, 451, 2791, 881, 2793, 2794, 876, 2258, 2789, 864, - /* 3950 */ 900, 2837, 2258, 2258, 878, 456, 2791, 881, 2793, 2794, - /* 3960 */ 876, 2808, 2258, 864, 900, 2258, 2258, 2258, 2258, 2258, - /* 3970 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2755, 2258, 877, - /* 3980 */ 2258, 2258, 2258, 2808, 2258, 2258, 2258, 2258, 2258, 2258, - /* 3990 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2755, - /* 4000 */ 2258, 877, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 4010 */ 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, 2258, - /* 4020 */ 2258, 2258, 2258, 2258, 879, 2258, 2258, 2837, 2258, 2258, - /* 4030 */ 2258, 427, 2791, 881, 2793, 2794, 876, 2258, 2258, 864, - /* 4040 */ 900, 2258, 2258, 2258, 2258, 2258, 2789, 2258, 2258, 2837, - /* 4050 */ 2258, 2258, 2258, 426, 2791, 881, 2793, 2794, 876, 2258, - /* 4060 */ 2258, 864, 900, + /* 0 */ 194, 223, 672, 823, 2631, 673, 2316, 2536, 2266, 520, + /* 10 */ 2478, 3007, 59, 57, 575, 490, 773, 2523, 492, 196, + /* 20 */ 500, 2269, 1986, 136, 2628, 885, 2534, 2409, 2774, 822, + /* 30 */ 230, 2011, 520, 2478, 3008, 824, 1984, 2757, 2091, 2360, + /* 40 */ 517, 2799, 150, 44, 352, 149, 148, 147, 146, 145, + /* 50 */ 144, 143, 142, 141, 52, 51, 838, 2778, 58, 56, + /* 60 */ 55, 54, 53, 2268, 637, 635, 2015, 437, 2086, 150, + /* 70 */ 244, 868, 149, 148, 147, 146, 145, 144, 143, 142, + /* 80 */ 141, 462, 1992, 481, 2678, 2817, 219, 159, 158, 157, + /* 90 */ 156, 155, 154, 153, 152, 151, 898, 533, 682, 2670, + /* 100 */ 506, 2764, 532, 880, 677, 898, 2467, 2780, 2782, 495, + /* 110 */ 674, 2328, 1003, 2604, 903, 60, 974, 973, 972, 971, + /* 120 */ 530, 903, 970, 969, 174, 964, 963, 962, 961, 960, + /* 130 */ 959, 958, 173, 952, 951, 950, 529, 528, 947, 946, + /* 140 */ 945, 210, 209, 944, 525, 943, 942, 941, 2798, 1538, + /* 150 */ 812, 2846, 2094, 2095, 789, 133, 2800, 884, 2802, 2803, + /* 160 */ 879, 898, 3007, 867, 2847, 903, 992, 773, 1545, 506, + /* 170 */ 212, 250, 2909, 343, 344, 2012, 494, 2905, 342, 2817, + /* 180 */ 3013, 230, 2556, 903, 2012, 3008, 824, 899, 2476, 2536, + /* 190 */ 74, 2047, 2057, 1540, 1543, 1544, 231, 460, 63, 40, + /* 200 */ 62, 2093, 2096, 74, 2956, 52, 51, 160, 2534, 58, + /* 210 */ 56, 55, 54, 53, 1718, 718, 1987, 106, 1985, 772, + /* 220 */ 52, 51, 105, 866, 58, 56, 55, 54, 53, 1709, + /* 230 */ 930, 929, 928, 1713, 927, 1715, 1716, 926, 923, 226, + /* 240 */ 1724, 920, 1726, 1727, 917, 914, 911, 568, 2631, 775, + /* 250 */ 2670, 811, 567, 1990, 1991, 2044, 62, 2046, 2049, 2050, + /* 260 */ 2051, 2052, 2053, 2054, 2055, 2056, 876, 869, 2629, 885, + /* 270 */ 901, 900, 865, 2078, 2079, 2080, 2081, 2082, 2085, 2087, + /* 280 */ 2088, 2089, 2090, 2092, 2, 59, 57, 2183, 823, 104, + /* 290 */ 441, 957, 2009, 500, 2435, 1986, 3007, 688, 2799, 619, + /* 300 */ 2774, 2016, 464, 566, 789, 565, 813, 1858, 1859, 1984, + /* 310 */ 639, 2091, 3007, 878, 822, 230, 1757, 1758, 552, 3008, + /* 320 */ 824, 58, 56, 55, 54, 53, 598, 504, 641, 2778, + /* 330 */ 3013, 230, 219, 442, 600, 3008, 824, 614, 564, 2460, + /* 340 */ 467, 2086, 2817, 695, 868, 578, 1718, 680, 19, 2158, + /* 350 */ 673, 2316, 613, 835, 169, 1992, 1857, 1860, 2764, 2604, + /* 360 */ 880, 1709, 930, 929, 928, 1713, 927, 1715, 1716, 875, + /* 370 */ 874, 2291, 1724, 873, 1726, 1727, 872, 914, 911, 2780, + /* 380 */ 2783, 691, 2480, 266, 336, 1003, 463, 675, 15, 2324, + /* 390 */ 2631, 112, 336, 903, 336, 52, 51, 336, 586, 58, + /* 400 */ 56, 55, 54, 53, 502, 2798, 2011, 2450, 2846, 465, + /* 410 */ 2628, 885, 432, 2800, 884, 2802, 2803, 879, 877, 2471, + /* 420 */ 867, 2847, 903, 858, 2874, 2094, 2095, 2717, 940, 2611, + /* 430 */ 2590, 2764, 627, 626, 625, 624, 623, 618, 617, 616, + /* 440 */ 615, 447, 808, 769, 605, 604, 603, 602, 601, 595, + /* 450 */ 594, 593, 759, 588, 587, 461, 556, 899, 2476, 579, + /* 460 */ 1819, 1820, 835, 169, 2047, 2057, 1838, 204, 753, 329, + /* 470 */ 757, 755, 300, 299, 2093, 2096, 770, 160, 206, 2917, + /* 480 */ 834, 940, 161, 833, 789, 723, 558, 554, 669, 1987, + /* 490 */ 3007, 1985, 3007, 2155, 2156, 2157, 866, 667, 52, 51, + /* 500 */ 663, 659, 58, 56, 55, 54, 53, 2290, 822, 230, + /* 510 */ 3013, 230, 12, 3008, 824, 3008, 824, 52, 51, 2924, + /* 520 */ 692, 58, 56, 55, 54, 53, 1990, 1991, 2044, 512, + /* 530 */ 2046, 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 876, + /* 540 */ 869, 2044, 34, 901, 900, 865, 2078, 2079, 2921, 219, + /* 550 */ 2011, 2085, 2087, 2088, 2089, 2090, 2092, 2, 59, 57, + /* 560 */ 2799, 814, 809, 802, 798, 454, 500, 2764, 1986, 2160, + /* 570 */ 2161, 2162, 2163, 2164, 2187, 881, 2605, 1831, 1832, 2618, + /* 580 */ 2011, 693, 1984, 2573, 2091, 2158, 837, 199, 2917, 2918, + /* 590 */ 2799, 167, 2922, 52, 51, 2258, 898, 58, 56, 55, + /* 600 */ 54, 53, 52, 51, 2817, 838, 58, 56, 55, 54, + /* 610 */ 53, 9, 268, 1992, 2086, 2121, 675, 868, 2324, 2536, + /* 620 */ 2764, 19, 880, 116, 1565, 2228, 1564, 505, 1992, 522, + /* 630 */ 304, 78, 2529, 2531, 2817, 739, 738, 737, 2534, 1656, + /* 640 */ 165, 47, 729, 166, 733, 74, 1545, 197, 732, 2280, + /* 650 */ 2764, 503, 880, 731, 736, 474, 473, 1886, 1003, 730, + /* 660 */ 193, 15, 1566, 472, 726, 725, 724, 2798, 527, 526, + /* 670 */ 2846, 2481, 1543, 1544, 133, 2800, 884, 2802, 2803, 879, + /* 680 */ 2122, 2289, 867, 2847, 903, 1658, 1565, 171, 1564, 180, + /* 690 */ 2880, 2909, 1993, 126, 2180, 494, 2905, 2798, 2094, 2095, + /* 700 */ 2846, 2068, 2216, 931, 133, 2800, 884, 2802, 2803, 879, + /* 710 */ 2063, 1955, 867, 2847, 903, 1912, 1913, 1914, 12, 212, + /* 720 */ 10, 2909, 2158, 2257, 1566, 494, 2905, 2536, 2929, 2155, + /* 730 */ 2156, 2157, 2929, 2929, 2929, 2929, 2929, 2047, 2057, 446, + /* 740 */ 445, 2764, 74, 386, 511, 510, 842, 2093, 2096, 507, + /* 750 */ 2465, 2048, 515, 2957, 612, 471, 469, 523, 2127, 611, + /* 760 */ 835, 169, 1987, 516, 1985, 2091, 193, 610, 954, 866, + /* 770 */ 805, 804, 2214, 2215, 2217, 2218, 2219, 2481, 43, 496, + /* 780 */ 2116, 2117, 2118, 2119, 2120, 2124, 2125, 2126, 938, 186, + /* 790 */ 185, 935, 934, 933, 183, 2086, 584, 2600, 400, 1990, + /* 800 */ 1991, 2044, 2513, 2046, 2049, 2050, 2051, 2052, 2053, 2054, + /* 810 */ 2055, 2056, 876, 869, 3012, 2045, 901, 900, 865, 2078, + /* 820 */ 2079, 2363, 3007, 2924, 2085, 2087, 2088, 2089, 2090, 2092, + /* 830 */ 2, 12, 59, 57, 2799, 468, 466, 956, 720, 336, + /* 840 */ 500, 3011, 1986, 590, 2600, 3008, 3010, 2758, 393, 881, + /* 850 */ 246, 2326, 2920, 631, 45, 859, 1984, 2881, 2091, 722, + /* 860 */ 2463, 621, 2600, 721, 2123, 2929, 2155, 2156, 2157, 2929, + /* 870 */ 2929, 2929, 2929, 2929, 1996, 52, 51, 392, 2817, 58, + /* 880 */ 56, 55, 54, 53, 2452, 139, 2917, 2918, 2086, 167, + /* 890 */ 2922, 868, 899, 2476, 2764, 19, 880, 248, 739, 738, + /* 900 */ 737, 2924, 1992, 899, 2476, 729, 166, 733, 480, 2678, + /* 910 */ 506, 732, 524, 899, 2476, 253, 731, 736, 474, 473, + /* 920 */ 2449, 255, 730, 235, 903, 1651, 472, 726, 725, 724, + /* 930 */ 2919, 2102, 1003, 67, 1954, 15, 336, 2011, 112, 689, + /* 940 */ 2799, 2798, 2128, 1977, 2846, 1953, 630, 254, 133, 2800, + /* 950 */ 884, 2802, 2803, 879, 194, 881, 867, 2847, 903, 311, + /* 960 */ 628, 2015, 41, 3027, 2479, 2909, 2472, 514, 513, 494, + /* 970 */ 2905, 1652, 2094, 2095, 899, 2476, 899, 2476, 509, 508, + /* 980 */ 1978, 52, 51, 2227, 2817, 58, 56, 55, 54, 53, + /* 990 */ 55, 54, 53, 861, 572, 2881, 573, 901, 900, 224, + /* 1000 */ 2764, 2179, 880, 690, 2624, 2085, 2087, 2088, 2089, 2090, + /* 1010 */ 2092, 2047, 2057, 14, 13, 1568, 1569, 899, 2476, 52, + /* 1020 */ 51, 2093, 2096, 58, 56, 55, 54, 53, 2208, 938, + /* 1030 */ 186, 185, 935, 934, 933, 183, 1987, 592, 1985, 399, + /* 1040 */ 899, 2476, 2209, 866, 2530, 2531, 2015, 2798, 714, 713, + /* 1050 */ 2846, 2015, 899, 2476, 201, 2800, 884, 2802, 2803, 879, + /* 1060 */ 382, 746, 867, 2847, 903, 938, 186, 185, 935, 934, + /* 1070 */ 933, 183, 606, 1990, 1991, 2044, 760, 2046, 2049, 2050, + /* 1080 */ 2051, 2052, 2053, 2054, 2055, 2056, 876, 869, 2207, 2199, + /* 1090 */ 901, 900, 865, 2078, 2079, 301, 1986, 2799, 2085, 2087, + /* 1100 */ 2088, 2089, 2090, 2092, 2, 59, 57, 2097, 2048, 3012, + /* 1110 */ 1984, 749, 881, 500, 2964, 1986, 825, 3028, 743, 741, + /* 1120 */ 2288, 871, 3012, 2287, 2480, 298, 2014, 2064, 2135, 1984, + /* 1130 */ 3007, 2091, 870, 2014, 225, 899, 2476, 2799, 52, 51, + /* 1140 */ 2286, 2817, 58, 56, 55, 54, 53, 899, 2476, 3011, + /* 1150 */ 899, 2476, 881, 3008, 3009, 607, 1992, 2764, 2410, 880, + /* 1160 */ 2536, 2086, 899, 2476, 868, 2285, 788, 608, 521, 2281, + /* 1170 */ 694, 84, 2045, 899, 2476, 1992, 83, 39, 42, 2534, + /* 1180 */ 2764, 2817, 2473, 2764, 52, 51, 1003, 2536, 58, 56, + /* 1190 */ 55, 54, 53, 306, 716, 715, 2016, 2764, 2284, 880, + /* 1200 */ 2764, 735, 734, 2283, 2798, 1003, 850, 2846, 60, 899, + /* 1210 */ 2476, 133, 2800, 884, 2802, 2803, 879, 527, 526, 867, + /* 1220 */ 2847, 903, 2251, 2282, 233, 2764, 3027, 2000, 2909, 314, + /* 1230 */ 52, 51, 494, 2905, 58, 56, 55, 54, 53, 170, + /* 1240 */ 96, 1993, 2880, 2091, 2798, 2094, 2095, 2846, 968, 966, + /* 1250 */ 286, 198, 2800, 884, 2802, 2803, 879, 172, 2764, 867, + /* 1260 */ 2847, 903, 2011, 2764, 52, 51, 205, 2468, 58, 56, + /* 1270 */ 55, 54, 53, 2086, 3011, 712, 708, 704, 700, 2536, + /* 1280 */ 285, 2016, 193, 2764, 2047, 2057, 2016, 1992, 899, 2476, + /* 1290 */ 1987, 2704, 1985, 2482, 2093, 2096, 125, 547, 2535, 334, + /* 1300 */ 393, 790, 2967, 46, 899, 2476, 334, 72, 841, 1987, + /* 1310 */ 330, 1985, 899, 2476, 899, 2476, 866, 863, 786, 932, + /* 1320 */ 2279, 237, 2527, 2469, 347, 2718, 113, 1990, 1991, 899, + /* 1330 */ 2476, 283, 855, 2278, 354, 52, 51, 2277, 2066, 58, + /* 1340 */ 56, 55, 54, 53, 2970, 2276, 1990, 1991, 2044, 892, + /* 1350 */ 2046, 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 876, + /* 1360 */ 869, 2679, 2275, 901, 900, 865, 2078, 2079, 2274, 899, + /* 1370 */ 2476, 2085, 2087, 2088, 2089, 2090, 2092, 2, 59, 57, + /* 1380 */ 2764, 1668, 789, 899, 2476, 2799, 500, 1672, 1986, 893, + /* 1390 */ 3007, 2273, 2272, 2764, 2684, 1667, 936, 2764, 271, 2527, + /* 1400 */ 881, 1671, 1984, 897, 2091, 2764, 2271, 282, 3013, 230, + /* 1410 */ 2799, 273, 280, 3008, 824, 2296, 996, 278, 686, 2011, + /* 1420 */ 1547, 2001, 2764, 1996, 817, 881, 2010, 2977, 2764, 2817, + /* 1430 */ 3, 184, 937, 2048, 2086, 2527, 270, 868, 722, 2538, + /* 1440 */ 90, 2453, 721, 2069, 65, 2764, 2583, 880, 1992, 835, + /* 1450 */ 169, 2764, 2764, 162, 2817, 305, 52, 51, 2004, 2006, + /* 1460 */ 58, 56, 55, 54, 53, 303, 2764, 102, 827, 302, + /* 1470 */ 2764, 642, 880, 906, 175, 901, 900, 644, 1003, 864, + /* 1480 */ 315, 60, 2076, 2085, 2087, 2088, 2089, 2090, 2092, 2347, + /* 1490 */ 582, 2799, 2798, 2169, 103, 2846, 2708, 2045, 204, 134, + /* 1500 */ 2800, 884, 2802, 2803, 879, 176, 881, 867, 2847, 903, + /* 1510 */ 291, 740, 293, 289, 66, 292, 2909, 2798, 2094, 2095, + /* 1520 */ 2846, 2906, 2260, 2261, 133, 2800, 884, 2802, 2803, 879, + /* 1530 */ 830, 117, 867, 2847, 903, 2817, 221, 295, 806, 3027, + /* 1540 */ 294, 2909, 322, 115, 297, 494, 2905, 296, 444, 836, + /* 1550 */ 540, 2764, 479, 880, 761, 52, 51, 2047, 2057, 58, + /* 1560 */ 56, 55, 54, 53, 2065, 52, 51, 2093, 2096, 58, + /* 1570 */ 56, 55, 54, 53, 200, 2917, 2918, 727, 167, 2922, + /* 1580 */ 728, 763, 1987, 762, 1985, 176, 796, 61, 1902, 866, + /* 1590 */ 131, 61, 128, 213, 640, 2345, 2336, 1995, 2798, 184, + /* 1600 */ 1649, 2846, 826, 1647, 341, 409, 2800, 884, 2802, 2803, + /* 1610 */ 879, 89, 32, 867, 2847, 903, 61, 742, 744, 1990, + /* 1620 */ 1991, 2044, 76, 2046, 2049, 2050, 2051, 2052, 2053, 2054, + /* 1630 */ 2055, 2056, 876, 869, 2334, 61, 901, 900, 865, 2078, + /* 1640 */ 2079, 14, 13, 61, 2085, 2087, 2088, 2089, 2090, 2092, + /* 1650 */ 2, 59, 57, 61, 2045, 2785, 747, 2113, 766, 500, + /* 1660 */ 1994, 1986, 164, 2062, 2818, 61, 89, 2402, 1910, 2203, + /* 1670 */ 2213, 361, 360, 774, 2212, 1984, 320, 2091, 363, 362, + /* 1680 */ 181, 907, 840, 2799, 52, 51, 38, 345, 58, 56, + /* 1690 */ 55, 54, 53, 839, 847, 162, 2401, 184, 881, 2067, + /* 1700 */ 800, 365, 364, 367, 366, 2129, 86, 2086, 369, 368, + /* 1710 */ 868, 371, 370, 373, 372, 789, 375, 374, 2077, 2787, + /* 1720 */ 909, 1992, 2317, 3007, 377, 376, 2070, 2817, 379, 378, + /* 1730 */ 789, 381, 380, 182, 2960, 803, 2058, 486, 3007, 1629, + /* 1740 */ 184, 3013, 230, 2764, 163, 880, 3008, 824, 1855, 1845, + /* 1750 */ 789, 1003, 810, 181, 60, 482, 3013, 230, 3007, 844, + /* 1760 */ 2799, 3008, 824, 357, 948, 949, 2609, 1602, 828, 531, + /* 1770 */ 2323, 549, 2524, 818, 782, 881, 3013, 230, 896, 1998, + /* 1780 */ 1700, 3008, 824, 2961, 2971, 1630, 332, 1621, 1619, 398, + /* 1790 */ 2798, 2094, 2095, 2846, 327, 819, 2610, 133, 2800, 884, + /* 1800 */ 2802, 2803, 879, 1731, 2817, 867, 2847, 903, 335, 2436, + /* 1810 */ 5, 539, 3027, 1603, 2909, 534, 1739, 458, 494, 2905, + /* 1820 */ 2764, 560, 880, 1746, 2009, 48, 548, 1744, 2019, 238, + /* 1830 */ 2047, 2057, 831, 559, 562, 1879, 187, 239, 241, 391, + /* 1840 */ 2093, 2096, 1997, 576, 497, 2010, 583, 252, 633, 585, + /* 1850 */ 591, 589, 609, 596, 620, 1987, 2602, 1985, 622, 645, + /* 1860 */ 629, 632, 866, 634, 646, 643, 258, 2798, 648, 137, + /* 1870 */ 2846, 257, 650, 651, 433, 2800, 884, 2802, 2803, 879, + /* 1880 */ 261, 653, 867, 2847, 903, 655, 2017, 670, 4, 671, + /* 1890 */ 679, 269, 1990, 1991, 2044, 678, 2046, 2049, 2050, 2051, + /* 1900 */ 2052, 2053, 2054, 2055, 2056, 876, 869, 681, 2012, 901, + /* 1910 */ 900, 865, 2078, 2079, 108, 683, 2799, 2085, 2087, 2088, + /* 1920 */ 2089, 2090, 2092, 2, 59, 57, 272, 2018, 684, 2020, + /* 1930 */ 275, 881, 500, 3000, 1986, 685, 687, 277, 2021, 2625, + /* 1940 */ 109, 2022, 2619, 696, 110, 111, 284, 138, 1984, 717, + /* 1950 */ 2091, 765, 719, 2466, 288, 2462, 2799, 290, 750, 189, + /* 1960 */ 2817, 2694, 135, 2464, 751, 2691, 435, 767, 2459, 190, + /* 1970 */ 191, 881, 114, 2941, 177, 394, 2764, 2013, 880, 2671, + /* 1980 */ 2086, 307, 777, 868, 778, 776, 310, 2690, 312, 783, + /* 1990 */ 781, 784, 793, 2976, 1992, 807, 845, 8, 816, 792, + /* 2000 */ 2817, 794, 2975, 2948, 323, 321, 791, 324, 203, 820, + /* 2010 */ 317, 319, 325, 821, 832, 487, 2764, 829, 880, 2928, + /* 2020 */ 328, 168, 326, 2798, 1003, 2014, 2846, 60, 3006, 2177, + /* 2030 */ 133, 2800, 884, 2802, 2803, 879, 3030, 2175, 867, 2847, + /* 2040 */ 903, 1, 232, 337, 216, 3027, 178, 2909, 395, 2925, + /* 2050 */ 843, 494, 2905, 331, 2639, 2638, 2637, 848, 396, 491, + /* 2060 */ 179, 849, 853, 2798, 2094, 2095, 2846, 73, 350, 888, + /* 2070 */ 133, 2800, 884, 2802, 2803, 879, 856, 2890, 867, 2847, + /* 2080 */ 903, 886, 355, 397, 890, 3027, 891, 2909, 2477, 124, + /* 2090 */ 2756, 494, 2905, 2755, 127, 2751, 2750, 2742, 2741, 1517, + /* 2100 */ 2733, 2732, 2748, 2047, 2057, 999, 998, 401, 2747, 1000, + /* 2110 */ 2739, 387, 2738, 2093, 2096, 2727, 384, 188, 995, 2726, + /* 2120 */ 769, 388, 1002, 436, 905, 405, 2745, 2716, 1987, 2744, + /* 2130 */ 1985, 2736, 403, 423, 64, 866, 2715, 2735, 434, 2724, + /* 2140 */ 2714, 2723, 2721, 470, 2720, 2528, 424, 97, 518, 2709, + /* 2150 */ 536, 450, 537, 1937, 1938, 236, 2707, 541, 543, 544, + /* 2160 */ 545, 1936, 2706, 2705, 459, 1990, 1991, 2044, 2703, 2046, + /* 2170 */ 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 876, 869, + /* 2180 */ 551, 2702, 901, 900, 865, 2078, 2079, 553, 2799, 451, + /* 2190 */ 2085, 2087, 2088, 2089, 2090, 2092, 2, 59, 57, 2701, + /* 2200 */ 555, 2700, 557, 881, 1924, 500, 2675, 1986, 240, 2674, + /* 2210 */ 242, 1882, 98, 1881, 2652, 2651, 2650, 2649, 569, 570, + /* 2220 */ 2648, 1984, 2592, 2091, 574, 1818, 2589, 577, 2588, 2799, + /* 2230 */ 2582, 580, 2817, 581, 2579, 245, 2578, 101, 2577, 2576, + /* 2240 */ 2581, 2580, 2575, 247, 881, 2574, 2572, 2571, 2764, 2570, + /* 2250 */ 880, 249, 2569, 2086, 597, 599, 868, 2567, 2566, 2565, + /* 2260 */ 2564, 2563, 2587, 2562, 2561, 2560, 2585, 1992, 2568, 2559, + /* 2270 */ 2558, 2557, 2555, 2817, 2554, 2553, 2552, 2551, 2550, 2549, + /* 2280 */ 251, 2548, 107, 2547, 2546, 2545, 2617, 2586, 2584, 2764, + /* 2290 */ 2544, 880, 2543, 256, 2541, 2798, 2542, 1003, 2846, 636, + /* 2300 */ 15, 638, 133, 2800, 884, 2802, 2803, 879, 2540, 2539, + /* 2310 */ 867, 2847, 903, 2799, 2537, 1824, 2367, 2884, 259, 2909, + /* 2320 */ 1669, 1673, 2366, 494, 2905, 448, 2365, 1665, 881, 2364, + /* 2330 */ 2362, 2359, 449, 656, 2358, 260, 2798, 2094, 2095, 2846, + /* 2340 */ 660, 2351, 664, 133, 2800, 884, 2802, 2803, 879, 658, + /* 2350 */ 262, 867, 2847, 903, 657, 662, 661, 2817, 2882, 666, + /* 2360 */ 2909, 665, 2338, 263, 494, 2905, 2312, 265, 668, 93, + /* 2370 */ 211, 1546, 2784, 2764, 222, 880, 2047, 2057, 676, 2311, + /* 2380 */ 267, 2673, 94, 2669, 2659, 2647, 2093, 2096, 274, 276, + /* 2390 */ 2646, 279, 2623, 281, 2616, 2454, 2361, 2357, 699, 697, + /* 2400 */ 698, 1987, 2355, 1985, 1595, 701, 702, 2353, 866, 703, + /* 2410 */ 705, 707, 706, 2350, 709, 710, 711, 2333, 2331, 2332, + /* 2420 */ 2798, 2330, 2308, 2846, 2456, 1751, 287, 198, 2800, 884, + /* 2430 */ 2802, 2803, 879, 1750, 2455, 867, 2847, 903, 1990, 1991, + /* 2440 */ 2044, 1654, 2046, 2049, 2050, 2051, 2052, 2053, 2054, 2055, + /* 2450 */ 2056, 876, 869, 1655, 1637, 901, 900, 865, 2078, 2079, + /* 2460 */ 965, 85, 1653, 2085, 2087, 2088, 2089, 2090, 2092, 2, + /* 2470 */ 195, 1650, 1648, 2799, 1646, 406, 1645, 1644, 2968, 1643, + /* 2480 */ 1642, 967, 1639, 1638, 2348, 1636, 475, 2346, 881, 476, + /* 2490 */ 2337, 2335, 477, 745, 404, 88, 478, 748, 87, 2307, + /* 2500 */ 2306, 2305, 752, 2304, 754, 2303, 2302, 756, 758, 443, + /* 2510 */ 2672, 1918, 140, 1920, 1917, 1922, 2799, 2817, 33, 79, + /* 2520 */ 2668, 264, 654, 652, 649, 647, 68, 309, 2658, 1888, + /* 2530 */ 1890, 881, 69, 2764, 779, 880, 1892, 192, 780, 1907, + /* 2540 */ 768, 2645, 313, 2644, 1867, 3012, 1866, 22, 35, 795, + /* 2550 */ 785, 787, 483, 2172, 6, 2230, 7, 17, 2204, 23, + /* 2560 */ 2817, 318, 24, 215, 37, 801, 316, 74, 797, 799, + /* 2570 */ 227, 2211, 202, 214, 36, 2785, 2764, 95, 880, 2198, + /* 2580 */ 2798, 2168, 228, 2846, 77, 26, 2245, 133, 2800, 884, + /* 2590 */ 2802, 2803, 879, 2170, 229, 867, 2847, 903, 2250, 2251, + /* 2600 */ 2244, 488, 860, 25, 2909, 2249, 75, 2248, 494, 2905, + /* 2610 */ 489, 2152, 2151, 333, 207, 70, 71, 2643, 2622, 119, + /* 2620 */ 2621, 846, 118, 2798, 120, 340, 2846, 2615, 348, 121, + /* 2630 */ 134, 2800, 884, 2802, 2803, 879, 2104, 2206, 867, 2847, + /* 2640 */ 903, 852, 217, 27, 13, 11, 2114, 2909, 346, 81, + /* 2650 */ 349, 2908, 2905, 2103, 2002, 2061, 854, 208, 218, 21, + /* 2660 */ 100, 99, 571, 18, 2060, 243, 28, 351, 29, 20, + /* 2670 */ 49, 916, 919, 922, 925, 50, 2037, 2059, 563, 561, + /* 2680 */ 2614, 16, 30, 122, 2029, 883, 887, 31, 2799, 2451, + /* 2690 */ 889, 82, 440, 353, 123, 550, 894, 91, 546, 542, + /* 2700 */ 538, 535, 564, 881, 128, 2859, 895, 359, 2858, 2264, + /* 2710 */ 2073, 2799, 902, 80, 2263, 904, 1732, 908, 519, 910, + /* 2720 */ 912, 1729, 915, 913, 918, 1728, 881, 1725, 1719, 1717, + /* 2730 */ 921, 924, 2817, 1723, 129, 383, 1722, 130, 1721, 1720, + /* 2740 */ 1745, 92, 1741, 1593, 939, 1633, 1632, 1631, 2764, 1628, + /* 2750 */ 880, 1625, 1624, 1623, 1622, 2817, 953, 1620, 1618, 1663, + /* 2760 */ 1617, 336, 1616, 234, 955, 1662, 1611, 1614, 1613, 1612, + /* 2770 */ 1610, 2764, 1609, 880, 1608, 1657, 1605, 1604, 1659, 1601, + /* 2780 */ 1599, 1600, 1598, 2356, 975, 2354, 977, 979, 2352, 976, + /* 2790 */ 983, 980, 2349, 981, 985, 2798, 987, 989, 2846, 991, + /* 2800 */ 2327, 984, 134, 2800, 884, 2802, 2803, 879, 2329, 988, + /* 2810 */ 867, 2847, 903, 771, 1535, 993, 2301, 1518, 882, 2909, + /* 2820 */ 997, 2846, 1523, 862, 2905, 134, 2800, 884, 2802, 2803, + /* 2830 */ 879, 1006, 1525, 867, 2847, 903, 389, 2799, 1001, 2267, + /* 2840 */ 1988, 402, 2909, 1004, 1005, 2267, 453, 2905, 2267, 2267, + /* 2850 */ 390, 2267, 881, 2267, 2267, 2267, 2799, 2267, 2267, 2267, + /* 2860 */ 2267, 2267, 2267, 2267, 2267, 994, 220, 2267, 2267, 2267, + /* 2870 */ 2267, 881, 2267, 2267, 2267, 990, 986, 982, 978, 2267, + /* 2880 */ 385, 2817, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 2890 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2764, 2267, 880, + /* 2900 */ 2817, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 2910 */ 2267, 2267, 2267, 2267, 2267, 2267, 2764, 2267, 880, 2267, + /* 2920 */ 2267, 484, 2267, 2799, 2267, 2267, 132, 2267, 2267, 2267, + /* 2930 */ 2267, 358, 2267, 2267, 2267, 2267, 2267, 2267, 881, 2267, + /* 2940 */ 485, 2267, 2267, 2267, 2798, 2267, 2267, 2846, 2267, 2267, + /* 2950 */ 2267, 433, 2800, 884, 2802, 2803, 879, 2267, 2267, 867, + /* 2960 */ 2847, 903, 851, 2798, 2267, 2267, 2846, 2817, 2267, 2267, + /* 2970 */ 433, 2800, 884, 2802, 2803, 879, 2267, 2267, 867, 2847, + /* 2980 */ 903, 2267, 2267, 2764, 2267, 880, 2267, 2267, 2267, 2267, + /* 2990 */ 2799, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3000 */ 2267, 2267, 2267, 2267, 2267, 881, 2267, 356, 2267, 857, + /* 3010 */ 2267, 2799, 339, 2267, 2267, 2267, 2267, 338, 2267, 2267, + /* 3020 */ 2267, 2267, 2267, 2267, 2267, 2267, 878, 2267, 2267, 2267, + /* 3030 */ 2798, 2267, 2267, 2846, 2817, 2267, 308, 426, 2800, 884, + /* 3040 */ 2802, 2803, 879, 2267, 2267, 867, 2847, 903, 2267, 2267, + /* 3050 */ 2764, 2267, 880, 2267, 2267, 2817, 2267, 2267, 2267, 2267, + /* 3060 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3070 */ 2267, 2764, 2267, 880, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3080 */ 2799, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3090 */ 2267, 815, 2267, 2267, 2267, 881, 2267, 2798, 2267, 2267, + /* 3100 */ 2846, 2267, 2267, 2267, 201, 2800, 884, 2802, 2803, 879, + /* 3110 */ 2267, 2267, 867, 2847, 903, 2267, 2267, 2267, 2798, 2267, + /* 3120 */ 2267, 2846, 2267, 2267, 2817, 432, 2800, 884, 2802, 2803, + /* 3130 */ 879, 2267, 2267, 867, 2847, 903, 2267, 2875, 2267, 2267, + /* 3140 */ 2764, 2267, 880, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3150 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3160 */ 2267, 2799, 2267, 2267, 498, 2267, 2267, 3029, 2267, 2267, + /* 3170 */ 2267, 2267, 2267, 2267, 2267, 2267, 881, 2267, 2267, 2267, + /* 3180 */ 2267, 2267, 2267, 2267, 2267, 2267, 2799, 2798, 2267, 2267, + /* 3190 */ 2846, 2267, 2267, 2267, 433, 2800, 884, 2802, 2803, 879, + /* 3200 */ 2267, 881, 867, 2847, 903, 2817, 2267, 2799, 2267, 2267, + /* 3210 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3220 */ 2267, 2764, 881, 880, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3230 */ 2817, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3240 */ 2267, 2267, 2267, 2267, 2267, 493, 2764, 2267, 880, 2267, + /* 3250 */ 2267, 2817, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3260 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2764, 2798, 880, + /* 3270 */ 499, 2846, 2267, 2267, 2267, 418, 2800, 884, 2802, 2803, + /* 3280 */ 879, 2267, 2267, 867, 2847, 903, 2267, 2267, 2267, 2267, + /* 3290 */ 2267, 501, 2267, 2798, 2267, 2267, 2846, 2267, 2267, 2267, + /* 3300 */ 433, 2800, 884, 2802, 2803, 879, 2267, 2267, 867, 2847, + /* 3310 */ 903, 2267, 2267, 2267, 2798, 2267, 2267, 2846, 2267, 2799, + /* 3320 */ 2267, 433, 2800, 884, 2802, 2803, 879, 2267, 2267, 867, + /* 3330 */ 2847, 903, 2267, 2267, 881, 2267, 2267, 2267, 2267, 2799, + /* 3340 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3350 */ 2267, 2267, 2267, 2267, 881, 2267, 2267, 2267, 2799, 2267, + /* 3360 */ 2267, 2267, 2267, 2817, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3370 */ 2267, 2267, 2267, 881, 2267, 2267, 2267, 2267, 2267, 2764, + /* 3380 */ 2267, 880, 2267, 2817, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3390 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2764, + /* 3400 */ 2267, 880, 2817, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3410 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2764, 2267, + /* 3420 */ 880, 2267, 2267, 2267, 2267, 2799, 2798, 2267, 2267, 2846, + /* 3430 */ 2267, 2267, 2267, 414, 2800, 884, 2802, 2803, 879, 2267, + /* 3440 */ 881, 867, 2847, 903, 2267, 2267, 764, 2267, 2267, 2846, + /* 3450 */ 2267, 2267, 2267, 428, 2800, 884, 2802, 2803, 879, 2267, + /* 3460 */ 2267, 867, 2847, 903, 2267, 2798, 2267, 2267, 2846, 2817, + /* 3470 */ 2267, 2267, 410, 2800, 884, 2802, 2803, 879, 2267, 2267, + /* 3480 */ 867, 2847, 903, 2267, 2267, 2764, 2267, 880, 2267, 2267, + /* 3490 */ 2267, 2267, 2799, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3500 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 881, 2267, 2267, + /* 3510 */ 2267, 2267, 2799, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3520 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 881, 2267, 2267, + /* 3530 */ 2267, 2267, 2798, 2267, 2267, 2846, 2817, 2267, 2267, 407, + /* 3540 */ 2800, 884, 2802, 2803, 879, 2267, 2267, 867, 2847, 903, + /* 3550 */ 2267, 2267, 2764, 2267, 880, 2267, 2817, 2267, 2267, 2267, + /* 3560 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3570 */ 2267, 2267, 2764, 2267, 880, 2267, 2267, 2267, 2267, 2267, + /* 3580 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2799, + /* 3590 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2798, + /* 3600 */ 2267, 2267, 2846, 2267, 881, 2267, 411, 2800, 884, 2802, + /* 3610 */ 2803, 879, 2267, 2267, 867, 2847, 903, 2267, 2267, 2798, + /* 3620 */ 2267, 2267, 2846, 2267, 2267, 2267, 425, 2800, 884, 2802, + /* 3630 */ 2803, 879, 2267, 2817, 867, 2847, 903, 2267, 2267, 2267, + /* 3640 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2764, + /* 3650 */ 2267, 880, 2267, 2267, 2267, 2267, 2799, 2267, 2267, 2267, + /* 3660 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3670 */ 2267, 881, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2799, + /* 3680 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3690 */ 2267, 2267, 2267, 2267, 881, 2267, 2798, 2267, 2267, 2846, + /* 3700 */ 2817, 2267, 2799, 412, 2800, 884, 2802, 2803, 879, 2267, + /* 3710 */ 2267, 867, 2847, 903, 2267, 2267, 2764, 881, 880, 2267, + /* 3720 */ 2267, 2267, 2267, 2817, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3730 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2764, + /* 3740 */ 2267, 880, 2267, 2267, 2267, 2267, 2817, 2267, 2267, 2267, + /* 3750 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3760 */ 2267, 2267, 2764, 2798, 880, 2267, 2846, 2799, 2267, 2267, + /* 3770 */ 413, 2800, 884, 2802, 2803, 879, 2267, 2267, 867, 2847, + /* 3780 */ 903, 2267, 881, 2267, 2267, 2267, 2798, 2267, 2267, 2846, + /* 3790 */ 2799, 2267, 2267, 429, 2800, 884, 2802, 2803, 879, 2267, + /* 3800 */ 2267, 867, 2847, 903, 2267, 881, 2267, 2267, 2267, 2798, + /* 3810 */ 2267, 2817, 2846, 2799, 2267, 2267, 415, 2800, 884, 2802, + /* 3820 */ 2803, 879, 2267, 2267, 867, 2847, 903, 2764, 881, 880, + /* 3830 */ 2267, 2267, 2267, 2267, 2817, 2267, 2267, 2267, 2267, 2267, + /* 3840 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3850 */ 2764, 2267, 880, 2267, 2267, 2267, 2267, 2817, 2267, 2267, + /* 3860 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3870 */ 2267, 2267, 2267, 2764, 2798, 880, 2267, 2846, 2267, 2267, + /* 3880 */ 2799, 430, 2800, 884, 2802, 2803, 879, 2267, 2267, 867, + /* 3890 */ 2847, 903, 2267, 2267, 2267, 881, 2267, 2798, 2267, 2267, + /* 3900 */ 2846, 2267, 2267, 2267, 416, 2800, 884, 2802, 2803, 879, + /* 3910 */ 2267, 2267, 867, 2847, 903, 2267, 2267, 2267, 2267, 2267, + /* 3920 */ 2798, 2267, 2267, 2846, 2817, 2267, 2267, 431, 2800, 884, + /* 3930 */ 2802, 2803, 879, 2267, 2267, 867, 2847, 903, 2267, 2267, + /* 3940 */ 2764, 2267, 880, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3950 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3960 */ 2267, 2267, 2799, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 3970 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 881, 2267, 2267, + /* 3980 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2798, 2267, 2267, + /* 3990 */ 2846, 2267, 2799, 2267, 417, 2800, 884, 2802, 2803, 879, + /* 4000 */ 2267, 2267, 867, 2847, 903, 2267, 2817, 881, 2267, 2267, + /* 4010 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 4020 */ 2267, 2267, 2764, 2267, 880, 2267, 2267, 2267, 2267, 2267, + /* 4030 */ 2267, 2267, 2267, 2267, 2267, 2267, 2817, 2267, 2267, 2267, + /* 4040 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 4050 */ 2267, 2267, 2764, 2267, 880, 2267, 2267, 2267, 2267, 2799, + /* 4060 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2798, + /* 4070 */ 2267, 2267, 2846, 2267, 881, 2267, 408, 2800, 884, 2802, + /* 4080 */ 2803, 879, 2799, 2267, 867, 2847, 903, 2267, 2267, 2267, + /* 4090 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 881, 2267, 2798, + /* 4100 */ 2267, 2267, 2846, 2817, 2267, 2799, 419, 2800, 884, 2802, + /* 4110 */ 2803, 879, 2267, 2267, 867, 2847, 903, 2267, 2267, 2764, + /* 4120 */ 881, 880, 2267, 2267, 2267, 2267, 2817, 2267, 2267, 2267, + /* 4130 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 4140 */ 2267, 2267, 2764, 2267, 880, 2267, 2267, 2267, 2267, 2817, + /* 4150 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 4160 */ 2267, 2267, 2267, 2267, 2267, 2764, 2798, 880, 2267, 2846, + /* 4170 */ 2799, 2267, 2267, 420, 2800, 884, 2802, 2803, 879, 2267, + /* 4180 */ 2267, 867, 2847, 903, 2267, 881, 2267, 2267, 2267, 2798, + /* 4190 */ 2267, 2267, 2846, 2799, 2267, 2267, 421, 2800, 884, 2802, + /* 4200 */ 2803, 879, 2267, 2267, 867, 2847, 903, 2267, 881, 2267, + /* 4210 */ 2267, 2267, 2798, 2267, 2817, 2846, 2799, 2267, 2267, 422, + /* 4220 */ 2800, 884, 2802, 2803, 879, 2267, 2267, 867, 2847, 903, + /* 4230 */ 2764, 881, 880, 2267, 2267, 2267, 2267, 2817, 2267, 2267, + /* 4240 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 4250 */ 2267, 2267, 2267, 2764, 2267, 880, 2267, 2267, 2267, 2267, + /* 4260 */ 2817, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 4270 */ 2267, 2267, 2267, 2267, 2267, 2267, 2764, 2798, 880, 2267, + /* 4280 */ 2846, 2267, 2267, 2799, 438, 2800, 884, 2802, 2803, 879, + /* 4290 */ 2267, 2267, 867, 2847, 903, 2267, 2267, 2267, 881, 2267, + /* 4300 */ 2798, 2267, 2267, 2846, 2267, 2267, 2267, 439, 2800, 884, + /* 4310 */ 2802, 2803, 879, 2267, 2267, 867, 2847, 903, 2267, 2267, + /* 4320 */ 2267, 2267, 2267, 2798, 2267, 2267, 2846, 2817, 2267, 2267, + /* 4330 */ 2811, 2800, 884, 2802, 2803, 879, 2267, 2267, 867, 2847, + /* 4340 */ 903, 2267, 2267, 2764, 2267, 880, 2267, 2267, 2267, 2267, + /* 4350 */ 2799, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 4360 */ 2267, 2267, 2267, 2267, 2267, 881, 2267, 2267, 2267, 2267, + /* 4370 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 4380 */ 2799, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 4390 */ 2798, 2267, 2267, 2846, 2817, 881, 2267, 2810, 2800, 884, + /* 4400 */ 2802, 2803, 879, 2267, 2267, 867, 2847, 903, 2267, 2267, + /* 4410 */ 2764, 2267, 880, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 4420 */ 2267, 2267, 2267, 2267, 2817, 2267, 2267, 2267, 2267, 2267, + /* 4430 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 4440 */ 2764, 2267, 880, 2267, 2267, 2267, 2267, 2799, 2267, 2267, + /* 4450 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2798, 2267, 2267, + /* 4460 */ 2846, 2267, 881, 2267, 2809, 2800, 884, 2802, 2803, 879, + /* 4470 */ 2799, 2267, 867, 2847, 903, 2267, 2267, 2267, 2267, 2267, + /* 4480 */ 2267, 2267, 2267, 2267, 2267, 881, 2267, 2798, 2267, 2267, + /* 4490 */ 2846, 2817, 2267, 2799, 455, 2800, 884, 2802, 2803, 879, + /* 4500 */ 2267, 2267, 867, 2847, 903, 2267, 2267, 2764, 881, 880, + /* 4510 */ 2267, 2267, 2267, 2267, 2817, 2267, 2267, 2267, 2267, 2267, + /* 4520 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 4530 */ 2764, 2267, 880, 2267, 2267, 2267, 2267, 2817, 2267, 2267, + /* 4540 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 4550 */ 2267, 2267, 2267, 2764, 2798, 880, 2267, 2846, 2799, 2267, + /* 4560 */ 2267, 456, 2800, 884, 2802, 2803, 879, 2267, 2267, 867, + /* 4570 */ 2847, 903, 2267, 881, 2267, 2267, 2267, 2798, 2267, 2267, + /* 4580 */ 2846, 2799, 2267, 2267, 452, 2800, 884, 2802, 2803, 879, + /* 4590 */ 2267, 2267, 867, 2847, 903, 2267, 881, 2267, 2267, 2267, + /* 4600 */ 2798, 2267, 2817, 2846, 2267, 2267, 2267, 457, 2800, 884, + /* 4610 */ 2802, 2803, 879, 2267, 2267, 867, 2847, 903, 2764, 2267, + /* 4620 */ 880, 2267, 2267, 2267, 2267, 2817, 2267, 2267, 2267, 2267, + /* 4630 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 4640 */ 2267, 2764, 2267, 880, 2267, 2267, 2267, 2267, 2267, 2267, + /* 4650 */ 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, 2267, + /* 4660 */ 2267, 2267, 2267, 2267, 2267, 882, 2267, 2267, 2846, 2267, + /* 4670 */ 2267, 2267, 428, 2800, 884, 2802, 2803, 879, 2267, 2267, + /* 4680 */ 867, 2847, 903, 2267, 2267, 2267, 2267, 2267, 2798, 2267, + /* 4690 */ 2267, 2846, 2267, 2267, 2267, 427, 2800, 884, 2802, 2803, + /* 4700 */ 879, 2267, 2267, 867, 2847, 903, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 433, 472, 530, 436, 532, 395, 477, 448, 398, 399, - /* 10 */ 8, 9, 12, 13, 12, 13, 14, 15, 16, 2, - /* 20 */ 20, 462, 22, 472, 20, 8, 9, 468, 469, 12, - /* 30 */ 13, 14, 15, 16, 14, 528, 36, 34, 38, 0, - /* 40 */ 20, 386, 528, 536, 12, 13, 14, 15, 16, 47, - /* 50 */ 536, 517, 518, 400, 401, 20, 401, 528, 400, 401, - /* 60 */ 430, 554, 555, 496, 20, 536, 559, 560, 68, 555, - /* 70 */ 440, 71, 425, 559, 560, 21, 509, 430, 420, 528, - /* 80 */ 400, 401, 82, 554, 555, 430, 428, 536, 559, 560, - /* 90 */ 430, 37, 20, 39, 40, 41, 42, 20, 438, 416, - /* 100 */ 420, 446, 419, 448, 457, 554, 555, 22, 428, 449, - /* 110 */ 559, 560, 112, 400, 401, 115, 77, 78, 79, 80, - /* 120 */ 81, 36, 83, 84, 85, 86, 87, 88, 89, 90, + /* 0 */ 431, 430, 396, 530, 449, 399, 400, 431, 384, 440, + /* 10 */ 441, 538, 12, 13, 401, 439, 401, 446, 463, 411, + /* 20 */ 20, 0, 22, 431, 469, 470, 450, 419, 418, 556, + /* 30 */ 557, 20, 440, 441, 561, 562, 36, 434, 38, 0, + /* 40 */ 437, 387, 21, 519, 520, 24, 25, 26, 27, 28, + /* 50 */ 29, 30, 31, 32, 8, 9, 402, 447, 12, 13, + /* 60 */ 14, 15, 16, 0, 451, 452, 20, 454, 68, 21, + /* 70 */ 457, 71, 24, 25, 26, 27, 28, 29, 30, 31, + /* 80 */ 32, 426, 82, 491, 492, 431, 431, 24, 25, 26, + /* 90 */ 27, 28, 29, 30, 31, 32, 20, 473, 483, 484, + /* 100 */ 497, 447, 478, 449, 14, 20, 434, 497, 498, 499, + /* 110 */ 20, 0, 112, 458, 511, 115, 77, 78, 79, 80, + /* 120 */ 81, 511, 83, 84, 85, 86, 87, 88, 89, 90, /* 130 */ 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, - /* 140 */ 101, 102, 103, 104, 105, 106, 107, 108, 493, 20, - /* 150 */ 422, 496, 152, 153, 426, 500, 501, 502, 503, 504, - /* 160 */ 505, 117, 146, 508, 509, 4, 448, 82, 14, 514, - /* 170 */ 385, 516, 387, 448, 20, 520, 521, 524, 525, 526, - /* 180 */ 462, 528, 529, 386, 23, 4, 468, 469, 528, 536, - /* 190 */ 430, 191, 192, 468, 469, 540, 536, 421, 401, 439, - /* 200 */ 440, 201, 202, 548, 0, 0, 430, 554, 555, 48, - /* 210 */ 49, 50, 559, 560, 554, 555, 216, 441, 218, 559, - /* 220 */ 560, 20, 44, 223, 0, 21, 20, 430, 24, 25, - /* 230 */ 26, 27, 28, 29, 30, 31, 32, 524, 525, 526, - /* 240 */ 20, 528, 529, 446, 115, 448, 115, 231, 232, 233, - /* 250 */ 490, 491, 20, 253, 254, 255, 155, 257, 258, 259, - /* 260 */ 260, 261, 262, 263, 264, 265, 266, 267, 191, 192, + /* 140 */ 101, 102, 103, 104, 105, 106, 107, 108, 494, 4, + /* 150 */ 402, 497, 152, 153, 530, 501, 502, 503, 504, 505, + /* 160 */ 506, 20, 538, 509, 510, 511, 55, 401, 23, 497, + /* 170 */ 516, 68, 518, 146, 147, 20, 522, 523, 151, 431, + /* 180 */ 556, 557, 0, 511, 20, 561, 562, 401, 402, 431, + /* 190 */ 115, 191, 192, 48, 49, 50, 542, 439, 115, 2, + /* 200 */ 115, 201, 202, 115, 550, 8, 9, 421, 450, 12, + /* 210 */ 13, 14, 15, 16, 112, 429, 216, 114, 218, 20, + /* 220 */ 8, 9, 119, 223, 12, 13, 14, 15, 16, 127, + /* 230 */ 128, 129, 130, 131, 132, 133, 134, 135, 136, 193, + /* 240 */ 138, 139, 140, 141, 142, 143, 144, 473, 449, 483, + /* 250 */ 484, 503, 478, 253, 254, 255, 115, 257, 258, 259, + /* 260 */ 260, 261, 262, 263, 264, 265, 266, 267, 469, 470, /* 270 */ 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, - /* 280 */ 280, 281, 282, 283, 12, 13, 14, 36, 386, 0, - /* 290 */ 493, 147, 20, 496, 22, 151, 115, 500, 501, 502, - /* 300 */ 503, 504, 505, 401, 512, 508, 509, 515, 36, 512, - /* 310 */ 38, 514, 515, 516, 74, 8, 9, 520, 521, 12, - /* 320 */ 13, 14, 15, 16, 91, 395, 386, 255, 398, 399, - /* 330 */ 8, 9, 430, 155, 12, 13, 14, 15, 16, 68, - /* 340 */ 68, 401, 417, 71, 55, 191, 400, 75, 446, 444, - /* 350 */ 448, 425, 447, 448, 82, 21, 430, 74, 24, 25, - /* 360 */ 26, 27, 28, 29, 30, 31, 32, 12, 13, 225, - /* 370 */ 430, 446, 152, 153, 230, 20, 171, 22, 234, 155, - /* 380 */ 236, 176, 75, 457, 112, 114, 446, 115, 448, 184, - /* 390 */ 119, 36, 159, 38, 170, 493, 433, 115, 496, 298, - /* 400 */ 299, 300, 500, 501, 502, 503, 504, 505, 506, 255, - /* 410 */ 508, 509, 510, 511, 0, 400, 155, 184, 185, 528, - /* 420 */ 126, 496, 497, 68, 152, 153, 71, 536, 482, 483, - /* 430 */ 75, 198, 125, 493, 509, 407, 496, 82, 116, 308, - /* 440 */ 500, 501, 502, 503, 504, 505, 555, 14, 508, 509, - /* 450 */ 559, 560, 424, 20, 514, 431, 516, 186, 20, 496, - /* 460 */ 520, 521, 434, 191, 192, 450, 451, 112, 453, 218, - /* 470 */ 115, 456, 509, 201, 202, 297, 298, 299, 300, 301, - /* 480 */ 302, 303, 304, 305, 0, 20, 410, 22, 216, 308, - /* 490 */ 218, 77, 78, 79, 418, 223, 0, 190, 84, 85, - /* 500 */ 86, 36, 251, 252, 90, 54, 22, 152, 153, 95, - /* 510 */ 96, 97, 98, 431, 63, 101, 492, 66, 67, 105, - /* 520 */ 106, 107, 108, 58, 442, 253, 254, 255, 36, 257, - /* 530 */ 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, - /* 540 */ 44, 400, 270, 271, 272, 273, 191, 192, 401, 277, - /* 550 */ 278, 279, 280, 281, 282, 283, 201, 202, 297, 298, - /* 560 */ 299, 300, 301, 302, 303, 304, 305, 429, 20, 430, - /* 570 */ 20, 216, 196, 218, 82, 268, 3, 430, 223, 443, - /* 580 */ 8, 9, 446, 445, 12, 13, 14, 15, 16, 253, - /* 590 */ 308, 269, 20, 20, 287, 288, 289, 290, 291, 292, - /* 600 */ 293, 294, 295, 296, 115, 464, 465, 386, 253, 254, - /* 610 */ 255, 284, 257, 258, 259, 260, 261, 262, 263, 264, - /* 620 */ 265, 266, 267, 499, 191, 270, 271, 272, 273, 490, - /* 630 */ 491, 193, 277, 278, 279, 280, 281, 282, 283, 284, - /* 640 */ 12, 13, 301, 302, 303, 304, 305, 82, 20, 502, - /* 650 */ 22, 527, 386, 386, 0, 112, 320, 321, 322, 323, - /* 660 */ 324, 325, 326, 115, 36, 115, 38, 446, 401, 433, - /* 670 */ 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, - /* 680 */ 4, 138, 139, 140, 141, 142, 143, 144, 255, 116, - /* 690 */ 314, 315, 316, 317, 396, 19, 68, 430, 400, 71, - /* 700 */ 402, 409, 383, 75, 215, 396, 217, 73, 430, 400, - /* 710 */ 82, 402, 446, 446, 38, 448, 438, 12, 13, 427, - /* 720 */ 400, 401, 126, 12, 13, 14, 0, 449, 74, 437, - /* 730 */ 54, 20, 496, 22, 386, 20, 499, 61, 62, 250, - /* 740 */ 112, 36, 400, 115, 68, 509, 430, 36, 431, 38, - /* 750 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 23, - /* 760 */ 493, 431, 432, 496, 527, 193, 193, 500, 501, 502, - /* 770 */ 503, 504, 505, 457, 454, 508, 509, 400, 401, 68, - /* 780 */ 152, 153, 71, 516, 112, 49, 50, 520, 521, 443, - /* 790 */ 114, 472, 446, 82, 446, 119, 477, 308, 431, 127, - /* 800 */ 128, 129, 130, 131, 132, 133, 134, 135, 136, 430, - /* 810 */ 138, 139, 140, 141, 142, 143, 144, 438, 431, 191, - /* 820 */ 192, 447, 448, 112, 482, 483, 115, 255, 449, 201, - /* 830 */ 202, 454, 8, 9, 400, 401, 12, 13, 14, 15, - /* 840 */ 16, 77, 78, 79, 216, 211, 218, 528, 84, 85, - /* 850 */ 86, 223, 20, 407, 90, 536, 308, 33, 308, 95, - /* 860 */ 96, 97, 98, 152, 153, 101, 386, 152, 153, 105, - /* 870 */ 106, 107, 108, 554, 555, 241, 242, 478, 559, 560, - /* 880 */ 434, 253, 254, 255, 20, 257, 258, 259, 260, 261, - /* 890 */ 262, 263, 264, 265, 266, 267, 405, 406, 270, 271, - /* 900 */ 272, 273, 191, 192, 33, 277, 278, 279, 280, 281, - /* 910 */ 282, 283, 201, 202, 8, 9, 201, 202, 12, 13, - /* 920 */ 14, 15, 16, 218, 430, 36, 446, 216, 284, 218, - /* 930 */ 286, 8, 9, 430, 223, 12, 13, 14, 15, 16, - /* 940 */ 116, 438, 52, 8, 9, 431, 430, 12, 13, 14, - /* 950 */ 15, 16, 449, 47, 400, 439, 440, 523, 524, 525, - /* 960 */ 526, 14, 528, 529, 253, 254, 255, 20, 257, 258, - /* 970 */ 259, 260, 261, 262, 263, 264, 265, 266, 267, 59, - /* 980 */ 60, 270, 271, 272, 273, 491, 400, 401, 277, 278, - /* 990 */ 279, 280, 281, 282, 283, 12, 13, 400, 401, 386, - /* 1000 */ 400, 401, 472, 20, 20, 22, 145, 146, 147, 148, - /* 1010 */ 149, 150, 151, 459, 401, 461, 4, 420, 0, 36, - /* 1020 */ 420, 38, 116, 405, 406, 193, 44, 190, 8, 9, - /* 1030 */ 47, 417, 12, 13, 14, 15, 16, 386, 430, 116, - /* 1040 */ 454, 8, 9, 430, 421, 12, 13, 14, 15, 16, - /* 1050 */ 68, 68, 401, 430, 71, 191, 22, 449, 528, 446, - /* 1060 */ 446, 448, 400, 401, 441, 82, 536, 47, 8, 9, - /* 1070 */ 36, 431, 12, 13, 14, 15, 16, 0, 12, 13, - /* 1080 */ 431, 430, 420, 193, 554, 555, 20, 255, 22, 559, - /* 1090 */ 560, 146, 147, 20, 204, 112, 151, 446, 115, 448, - /* 1100 */ 400, 401, 36, 426, 38, 268, 493, 218, 386, 496, - /* 1110 */ 496, 497, 498, 500, 501, 502, 503, 504, 505, 255, - /* 1120 */ 420, 508, 509, 509, 287, 8, 9, 414, 415, 12, - /* 1130 */ 13, 14, 15, 16, 68, 152, 153, 71, 400, 401, - /* 1140 */ 251, 252, 13, 208, 493, 386, 112, 496, 82, 116, - /* 1150 */ 430, 500, 501, 502, 503, 504, 505, 418, 420, 508, - /* 1160 */ 509, 441, 549, 550, 487, 514, 387, 516, 446, 400, - /* 1170 */ 401, 520, 521, 155, 191, 192, 116, 193, 112, 414, - /* 1180 */ 415, 115, 499, 443, 201, 202, 446, 8, 9, 420, - /* 1190 */ 13, 12, 13, 14, 15, 16, 145, 400, 401, 216, - /* 1200 */ 149, 218, 2, 332, 38, 446, 223, 22, 8, 9, - /* 1210 */ 527, 82, 12, 13, 14, 15, 16, 420, 152, 153, - /* 1220 */ 54, 36, 145, 146, 147, 148, 149, 150, 151, 63, - /* 1230 */ 64, 65, 66, 116, 68, 0, 253, 254, 255, 255, - /* 1240 */ 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, - /* 1250 */ 267, 389, 390, 270, 271, 272, 273, 191, 192, 82, - /* 1260 */ 277, 278, 279, 280, 281, 282, 283, 201, 202, 430, - /* 1270 */ 335, 8, 9, 1, 2, 12, 13, 14, 15, 16, - /* 1280 */ 114, 513, 216, 515, 218, 119, 8, 9, 449, 223, - /* 1290 */ 12, 13, 14, 15, 16, 116, 20, 112, 22, 8, - /* 1300 */ 9, 228, 3, 12, 13, 14, 15, 16, 8, 9, - /* 1310 */ 400, 401, 12, 13, 14, 15, 16, 0, 386, 253, - /* 1320 */ 254, 255, 310, 257, 258, 259, 260, 261, 262, 263, - /* 1330 */ 264, 265, 266, 267, 58, 386, 270, 271, 272, 273, - /* 1340 */ 14, 15, 16, 277, 278, 279, 280, 281, 282, 283, - /* 1350 */ 12, 13, 186, 386, 22, 18, 386, 20, 20, 1, - /* 1360 */ 22, 195, 41, 42, 27, 199, 200, 30, 36, 400, - /* 1370 */ 401, 205, 206, 472, 36, 38, 38, 19, 446, 116, - /* 1380 */ 145, 146, 147, 148, 149, 150, 151, 409, 116, 420, - /* 1390 */ 224, 54, 0, 56, 116, 446, 38, 386, 61, 62, - /* 1400 */ 458, 513, 386, 515, 530, 33, 68, 400, 401, 71, - /* 1410 */ 73, 53, 54, 446, 82, 437, 446, 20, 20, 47, - /* 1420 */ 82, 63, 64, 65, 66, 186, 68, 420, 33, 528, - /* 1430 */ 430, 126, 400, 401, 524, 525, 526, 536, 528, 529, - /* 1440 */ 33, 68, 121, 122, 112, 124, 54, 400, 401, 449, - /* 1450 */ 112, 114, 420, 115, 47, 554, 555, 446, 33, 220, - /* 1460 */ 559, 560, 446, 126, 400, 401, 145, 420, 400, 401, - /* 1470 */ 149, 563, 114, 13, 386, 8, 9, 119, 552, 12, - /* 1480 */ 13, 14, 15, 16, 420, 180, 386, 472, 420, 386, - /* 1490 */ 152, 153, 119, 193, 157, 158, 36, 160, 161, 162, - /* 1500 */ 163, 164, 165, 166, 167, 168, 169, 386, 150, 172, - /* 1510 */ 173, 174, 175, 176, 177, 178, 179, 386, 181, 182, - /* 1520 */ 183, 386, 400, 401, 187, 188, 189, 400, 401, 191, - /* 1530 */ 192, 194, 400, 401, 446, 0, 401, 400, 401, 201, - /* 1540 */ 202, 116, 420, 528, 400, 401, 446, 420, 216, 446, - /* 1550 */ 218, 536, 420, 195, 216, 197, 218, 420, 200, 268, - /* 1560 */ 36, 223, 245, 205, 420, 430, 13, 446, 33, 554, - /* 1570 */ 555, 75, 386, 120, 559, 560, 123, 446, 235, 531, - /* 1580 */ 237, 446, 224, 448, 120, 253, 254, 123, 386, 36, - /* 1590 */ 0, 253, 254, 255, 545, 257, 258, 259, 260, 261, - /* 1600 */ 262, 263, 264, 265, 266, 267, 82, 13, 270, 271, - /* 1610 */ 272, 273, 22, 400, 401, 277, 278, 279, 280, 281, - /* 1620 */ 282, 283, 18, 152, 153, 404, 472, 23, 493, 330, - /* 1630 */ 36, 496, 446, 420, 33, 500, 501, 502, 503, 504, - /* 1640 */ 505, 36, 33, 508, 509, 386, 42, 43, 446, 514, - /* 1650 */ 46, 516, 255, 255, 120, 520, 521, 123, 400, 401, - /* 1660 */ 401, 57, 403, 120, 400, 401, 123, 33, 33, 417, - /* 1670 */ 33, 386, 0, 69, 70, 71, 72, 73, 420, 0, - /* 1680 */ 51, 36, 528, 548, 420, 430, 401, 33, 403, 430, - /* 1690 */ 536, 33, 36, 33, 22, 1, 2, 12, 13, 33, - /* 1700 */ 33, 22, 115, 417, 117, 446, 399, 448, 554, 555, - /* 1710 */ 12, 13, 458, 559, 560, 430, 551, 116, 551, 115, - /* 1720 */ 33, 33, 12, 13, 33, 116, 12, 13, 33, 334, - /* 1730 */ 494, 446, 33, 448, 551, 33, 12, 13, 82, 33, - /* 1740 */ 471, 33, 33, 551, 115, 33, 12, 13, 458, 253, - /* 1750 */ 116, 116, 493, 116, 33, 496, 33, 404, 154, 500, - /* 1760 */ 501, 502, 503, 504, 505, 12, 13, 508, 509, 401, - /* 1770 */ 116, 12, 13, 514, 116, 516, 116, 479, 493, 520, - /* 1780 */ 521, 496, 116, 116, 33, 500, 501, 502, 503, 504, - /* 1790 */ 505, 12, 13, 508, 509, 12, 13, 33, 13, 514, - /* 1800 */ 445, 516, 36, 116, 116, 520, 521, 116, 12, 13, - /* 1810 */ 458, 116, 208, 209, 210, 116, 535, 213, 116, 458, - /* 1820 */ 538, 36, 116, 218, 116, 116, 556, 535, 116, 458, - /* 1830 */ 226, 227, 522, 419, 311, 473, 54, 116, 20, 116, - /* 1840 */ 386, 495, 400, 20, 240, 234, 489, 243, 82, 484, - /* 1850 */ 246, 247, 248, 249, 250, 401, 409, 403, 484, 409, - /* 1860 */ 214, 475, 400, 218, 20, 455, 401, 116, 47, 401, - /* 1870 */ 455, 190, 452, 400, 455, 401, 400, 386, 452, 452, - /* 1880 */ 116, 452, 113, 413, 430, 111, 400, 412, 400, 411, - /* 1890 */ 110, 20, 401, 400, 403, 400, 393, 400, 52, 397, - /* 1900 */ 446, 393, 448, 397, 20, 484, 448, 386, 409, 409, - /* 1910 */ 409, 20, 308, 402, 20, 474, 409, 402, 409, 20, - /* 1920 */ 465, 430, 401, 409, 403, 20, 409, 409, 459, 400, - /* 1930 */ 393, 409, 400, 389, 430, 430, 389, 446, 393, 448, - /* 1940 */ 430, 238, 430, 430, 446, 488, 430, 493, 115, 430, - /* 1950 */ 496, 430, 486, 407, 500, 501, 502, 503, 504, 505, - /* 1960 */ 430, 430, 508, 509, 484, 20, 430, 446, 514, 448, - /* 1970 */ 516, 430, 446, 446, 520, 521, 222, 483, 221, 407, - /* 1980 */ 400, 319, 544, 318, 493, 446, 448, 496, 544, 386, - /* 1990 */ 327, 500, 501, 502, 503, 504, 505, 207, 473, 508, - /* 2000 */ 509, 481, 329, 547, 401, 514, 403, 516, 12, 13, - /* 2010 */ 328, 520, 521, 480, 493, 466, 466, 496, 22, 312, - /* 2020 */ 543, 500, 501, 502, 503, 504, 505, 546, 544, 508, - /* 2030 */ 509, 542, 36, 430, 38, 514, 473, 516, 386, 557, - /* 2040 */ 307, 520, 521, 306, 333, 558, 12, 13, 331, 446, - /* 2050 */ 401, 448, 336, 401, 564, 20, 22, 499, 126, 309, - /* 2060 */ 407, 402, 407, 466, 68, 446, 446, 446, 446, 541, - /* 2070 */ 36, 446, 38, 466, 534, 533, 386, 463, 199, 446, - /* 2080 */ 115, 407, 430, 459, 407, 519, 446, 539, 537, 199, - /* 2090 */ 460, 401, 115, 407, 426, 459, 493, 401, 446, 496, - /* 2100 */ 448, 22, 68, 500, 501, 502, 503, 504, 505, 35, - /* 2110 */ 446, 508, 509, 435, 388, 446, 82, 514, 386, 516, - /* 2120 */ 430, 446, 407, 520, 521, 37, 446, 400, 485, 446, - /* 2130 */ 446, 391, 40, 401, 393, 446, 446, 392, 448, 446, - /* 2140 */ 394, 0, 492, 446, 384, 493, 112, 446, 496, 407, - /* 2150 */ 446, 446, 500, 501, 502, 503, 504, 505, 0, 446, - /* 2160 */ 508, 509, 430, 0, 446, 446, 514, 467, 516, 408, - /* 2170 */ 47, 446, 520, 521, 446, 446, 446, 446, 446, 432, - /* 2180 */ 448, 446, 446, 493, 446, 423, 496, 432, 423, 467, - /* 2190 */ 500, 501, 502, 503, 504, 505, 476, 0, 508, 509, - /* 2200 */ 423, 36, 36, 244, 36, 36, 516, 244, 0, 36, - /* 2210 */ 520, 521, 216, 36, 218, 244, 36, 0, 0, 244, - /* 2220 */ 0, 36, 0, 36, 0, 493, 22, 0, 496, 36, - /* 2230 */ 239, 0, 500, 501, 502, 503, 504, 505, 386, 224, - /* 2240 */ 508, 509, 0, 224, 0, 225, 218, 251, 252, 253, - /* 2250 */ 216, 0, 218, 401, 216, 0, 212, 211, 0, 0, - /* 2260 */ 158, 51, 51, 0, 386, 36, 270, 271, 0, 0, - /* 2270 */ 36, 0, 51, 277, 278, 279, 280, 281, 282, 401, - /* 2280 */ 54, 0, 430, 47, 0, 0, 0, 253, 254, 51, - /* 2290 */ 0, 0, 0, 561, 562, 0, 0, 0, 446, 0, - /* 2300 */ 448, 176, 36, 176, 270, 271, 0, 0, 430, 0, - /* 2310 */ 0, 277, 278, 279, 280, 281, 282, 0, 0, 0, - /* 2320 */ 0, 0, 0, 0, 446, 0, 448, 0, 0, 0, - /* 2330 */ 0, 0, 0, 0, 0, 0, 47, 0, 51, 0, - /* 2340 */ 0, 0, 0, 0, 386, 493, 0, 0, 496, 0, - /* 2350 */ 0, 0, 500, 501, 502, 503, 504, 505, 22, 401, - /* 2360 */ 508, 509, 0, 158, 157, 156, 0, 0, 516, 0, - /* 2370 */ 22, 493, 520, 521, 496, 22, 386, 0, 500, 501, - /* 2380 */ 502, 503, 504, 505, 68, 0, 508, 509, 430, 0, - /* 2390 */ 52, 401, 68, 386, 516, 36, 52, 0, 0, 521, - /* 2400 */ 36, 44, 0, 0, 446, 0, 448, 36, 401, 54, - /* 2410 */ 54, 36, 386, 68, 44, 36, 44, 54, 0, 33, - /* 2420 */ 430, 47, 68, 14, 51, 44, 0, 401, 45, 51, - /* 2430 */ 0, 44, 0, 51, 0, 0, 446, 430, 448, 44, - /* 2440 */ 0, 51, 207, 0, 51, 0, 0, 0, 0, 36, - /* 2450 */ 54, 493, 76, 446, 496, 448, 430, 0, 500, 501, - /* 2460 */ 502, 503, 504, 505, 44, 507, 508, 509, 54, 36, - /* 2470 */ 0, 44, 446, 36, 448, 54, 0, 470, 36, 54, - /* 2480 */ 44, 0, 44, 493, 0, 0, 496, 0, 0, 386, - /* 2490 */ 500, 501, 502, 503, 504, 505, 470, 0, 508, 509, - /* 2500 */ 493, 36, 22, 496, 401, 22, 386, 500, 501, 502, - /* 2510 */ 503, 504, 505, 125, 123, 508, 509, 0, 36, 493, - /* 2520 */ 22, 401, 496, 386, 0, 36, 500, 501, 502, 503, - /* 2530 */ 504, 505, 36, 430, 508, 509, 36, 36, 401, 36, - /* 2540 */ 550, 22, 36, 36, 36, 33, 33, 36, 0, 446, - /* 2550 */ 430, 448, 36, 0, 36, 22, 22, 0, 56, 22, - /* 2560 */ 0, 36, 0, 0, 36, 0, 446, 430, 448, 0, - /* 2570 */ 0, 36, 36, 22, 20, 36, 36, 36, 116, 115, - /* 2580 */ 0, 229, 0, 446, 115, 448, 228, 193, 223, 51, - /* 2590 */ 22, 36, 193, 0, 22, 0, 493, 193, 0, 496, - /* 2600 */ 199, 193, 3, 500, 501, 502, 503, 504, 505, 203, - /* 2610 */ 193, 508, 509, 493, 203, 313, 496, 33, 52, 386, - /* 2620 */ 500, 501, 502, 503, 504, 505, 219, 36, 508, 509, - /* 2630 */ 493, 116, 36, 496, 401, 115, 386, 500, 501, 502, - /* 2640 */ 503, 504, 505, 116, 115, 508, 509, 115, 511, 52, - /* 2650 */ 36, 401, 33, 33, 111, 113, 553, 33, 51, 51, - /* 2660 */ 116, 386, 116, 430, 115, 115, 33, 115, 82, 33, - /* 2670 */ 3, 33, 116, 115, 51, 116, 401, 116, 36, 446, - /* 2680 */ 430, 448, 562, 116, 36, 36, 115, 36, 36, 36, - /* 2690 */ 116, 116, 33, 0, 51, 0, 446, 313, 448, 44, - /* 2700 */ 115, 0, 115, 470, 116, 430, 116, 297, 44, 115, - /* 2710 */ 196, 0, 44, 33, 285, 115, 195, 116, 115, 196, - /* 2720 */ 470, 446, 200, 448, 113, 313, 493, 2, 113, 496, - /* 2730 */ 22, 253, 116, 500, 501, 502, 503, 504, 505, 51, - /* 2740 */ 115, 508, 509, 493, 115, 470, 496, 386, 116, 115, - /* 2750 */ 500, 501, 502, 503, 504, 505, 115, 22, 508, 509, - /* 2760 */ 115, 115, 401, 116, 51, 115, 386, 0, 493, 115, - /* 2770 */ 44, 496, 116, 115, 196, 500, 501, 502, 503, 504, - /* 2780 */ 505, 401, 256, 508, 509, 115, 386, 115, 115, 115, - /* 2790 */ 115, 430, 116, 115, 117, 0, 22, 118, 115, 51, - /* 2800 */ 115, 401, 115, 22, 36, 116, 115, 446, 126, 448, - /* 2810 */ 430, 115, 229, 116, 36, 115, 36, 76, 116, 115, - /* 2820 */ 36, 116, 36, 116, 36, 116, 446, 36, 448, 137, - /* 2830 */ 430, 470, 116, 115, 33, 137, 137, 115, 36, 115, - /* 2840 */ 137, 22, 22, 36, 75, 36, 446, 36, 448, 36, - /* 2850 */ 36, 36, 36, 386, 493, 82, 109, 496, 36, 36, - /* 2860 */ 36, 500, 501, 502, 503, 504, 505, 82, 401, 508, - /* 2870 */ 509, 36, 109, 493, 33, 36, 496, 386, 36, 36, - /* 2880 */ 500, 501, 502, 503, 504, 505, 22, 36, 508, 509, - /* 2890 */ 36, 386, 401, 493, 36, 36, 496, 430, 0, 82, - /* 2900 */ 500, 501, 502, 503, 504, 505, 401, 36, 508, 509, - /* 2910 */ 36, 36, 36, 446, 22, 448, 36, 386, 36, 54, - /* 2920 */ 0, 430, 44, 36, 54, 44, 0, 36, 44, 0, - /* 2930 */ 36, 54, 401, 54, 44, 430, 0, 446, 36, 448, - /* 2940 */ 0, 22, 36, 0, 22, 33, 36, 36, 565, 22, - /* 2950 */ 22, 446, 21, 448, 22, 21, 565, 20, 565, 565, - /* 2960 */ 493, 430, 565, 496, 565, 565, 565, 500, 501, 502, - /* 2970 */ 503, 504, 505, 565, 565, 508, 509, 446, 565, 448, - /* 2980 */ 565, 565, 565, 565, 493, 565, 565, 496, 565, 565, - /* 2990 */ 565, 500, 501, 502, 503, 504, 505, 565, 493, 508, - /* 3000 */ 509, 496, 565, 386, 565, 500, 501, 502, 503, 504, - /* 3010 */ 505, 565, 565, 508, 509, 565, 565, 565, 401, 565, - /* 3020 */ 565, 565, 565, 386, 493, 565, 565, 496, 565, 565, - /* 3030 */ 565, 500, 501, 502, 503, 504, 505, 565, 401, 508, - /* 3040 */ 509, 565, 565, 386, 565, 565, 565, 430, 565, 565, - /* 3050 */ 565, 565, 565, 565, 565, 565, 565, 565, 401, 565, - /* 3060 */ 565, 565, 565, 446, 565, 448, 565, 430, 565, 565, - /* 3070 */ 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, - /* 3080 */ 565, 565, 565, 446, 565, 448, 565, 430, 565, 565, - /* 3090 */ 565, 565, 386, 565, 565, 565, 565, 565, 565, 565, - /* 3100 */ 565, 565, 565, 446, 565, 448, 565, 401, 565, 565, - /* 3110 */ 493, 565, 565, 496, 565, 565, 565, 500, 501, 502, - /* 3120 */ 503, 504, 505, 565, 565, 508, 509, 565, 386, 565, - /* 3130 */ 493, 565, 565, 496, 565, 565, 430, 500, 501, 502, - /* 3140 */ 503, 504, 505, 401, 565, 508, 509, 565, 565, 565, - /* 3150 */ 493, 565, 446, 496, 448, 565, 565, 500, 501, 502, - /* 3160 */ 503, 504, 505, 565, 565, 508, 509, 565, 386, 565, - /* 3170 */ 565, 565, 430, 565, 565, 565, 565, 565, 565, 565, - /* 3180 */ 565, 565, 565, 401, 565, 565, 565, 565, 446, 565, - /* 3190 */ 448, 565, 565, 565, 565, 565, 565, 565, 565, 493, - /* 3200 */ 565, 565, 496, 565, 565, 565, 500, 501, 502, 503, - /* 3210 */ 504, 505, 430, 565, 508, 509, 565, 386, 565, 565, - /* 3220 */ 565, 565, 565, 565, 565, 565, 565, 565, 446, 565, - /* 3230 */ 448, 565, 401, 565, 565, 493, 565, 565, 496, 565, - /* 3240 */ 565, 565, 500, 501, 502, 503, 504, 505, 386, 565, - /* 3250 */ 508, 509, 565, 565, 565, 565, 565, 565, 565, 565, - /* 3260 */ 565, 430, 565, 401, 565, 565, 565, 565, 565, 565, - /* 3270 */ 565, 565, 565, 565, 565, 493, 565, 446, 496, 448, - /* 3280 */ 565, 565, 500, 501, 502, 503, 504, 505, 565, 565, - /* 3290 */ 508, 509, 430, 565, 565, 565, 565, 565, 565, 565, - /* 3300 */ 565, 565, 565, 565, 565, 565, 565, 565, 446, 565, - /* 3310 */ 448, 565, 565, 565, 565, 565, 565, 565, 565, 565, - /* 3320 */ 565, 565, 565, 565, 493, 565, 565, 496, 565, 565, - /* 3330 */ 565, 500, 501, 502, 503, 504, 505, 565, 386, 508, - /* 3340 */ 509, 565, 565, 565, 565, 565, 565, 565, 565, 565, - /* 3350 */ 565, 565, 565, 401, 565, 493, 565, 386, 496, 565, - /* 3360 */ 565, 565, 500, 501, 502, 503, 504, 505, 565, 565, - /* 3370 */ 508, 509, 401, 565, 386, 565, 565, 565, 565, 565, - /* 3380 */ 565, 565, 430, 565, 565, 565, 565, 565, 565, 401, - /* 3390 */ 565, 565, 565, 565, 565, 565, 565, 565, 446, 565, - /* 3400 */ 448, 430, 565, 565, 565, 565, 565, 565, 565, 565, - /* 3410 */ 565, 565, 565, 565, 565, 565, 565, 446, 430, 448, - /* 3420 */ 565, 565, 565, 565, 565, 386, 565, 565, 565, 565, - /* 3430 */ 565, 565, 565, 565, 446, 565, 448, 565, 565, 565, - /* 3440 */ 401, 565, 565, 565, 565, 493, 565, 565, 496, 565, - /* 3450 */ 386, 565, 500, 501, 502, 503, 504, 505, 565, 565, - /* 3460 */ 508, 509, 565, 565, 493, 401, 565, 496, 565, 430, - /* 3470 */ 565, 500, 501, 502, 503, 504, 505, 565, 565, 508, - /* 3480 */ 509, 493, 565, 565, 496, 446, 565, 448, 500, 501, - /* 3490 */ 502, 503, 504, 505, 430, 565, 508, 509, 565, 565, - /* 3500 */ 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, - /* 3510 */ 446, 565, 448, 565, 565, 386, 565, 565, 565, 565, - /* 3520 */ 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, - /* 3530 */ 401, 565, 493, 565, 565, 496, 565, 386, 565, 500, - /* 3540 */ 501, 502, 503, 504, 505, 565, 565, 508, 509, 565, - /* 3550 */ 565, 565, 401, 565, 565, 565, 565, 493, 565, 430, - /* 3560 */ 496, 565, 565, 565, 500, 501, 502, 503, 504, 505, - /* 3570 */ 565, 565, 508, 509, 565, 446, 565, 448, 565, 565, - /* 3580 */ 565, 430, 565, 565, 565, 565, 565, 565, 565, 565, - /* 3590 */ 565, 565, 565, 565, 565, 565, 565, 446, 565, 448, - /* 3600 */ 565, 386, 565, 565, 565, 565, 565, 565, 565, 565, - /* 3610 */ 565, 565, 565, 565, 565, 565, 401, 565, 565, 565, - /* 3620 */ 565, 565, 493, 565, 565, 496, 565, 565, 565, 500, - /* 3630 */ 501, 502, 503, 504, 505, 386, 565, 508, 509, 565, - /* 3640 */ 565, 565, 565, 565, 493, 430, 565, 496, 565, 565, - /* 3650 */ 401, 500, 501, 502, 503, 504, 505, 565, 565, 508, - /* 3660 */ 509, 446, 565, 448, 565, 386, 565, 565, 565, 565, - /* 3670 */ 565, 565, 565, 565, 565, 565, 565, 565, 565, 430, - /* 3680 */ 401, 565, 565, 565, 565, 565, 565, 565, 565, 565, - /* 3690 */ 565, 565, 565, 565, 565, 446, 565, 448, 565, 565, - /* 3700 */ 565, 565, 565, 565, 565, 565, 565, 565, 493, 430, - /* 3710 */ 565, 496, 565, 565, 565, 500, 501, 502, 503, 504, - /* 3720 */ 505, 565, 565, 508, 509, 446, 565, 448, 565, 565, - /* 3730 */ 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, - /* 3740 */ 565, 565, 493, 565, 565, 496, 565, 565, 565, 500, - /* 3750 */ 501, 502, 503, 504, 505, 565, 565, 508, 509, 386, - /* 3760 */ 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, - /* 3770 */ 565, 565, 493, 565, 401, 496, 386, 565, 565, 500, - /* 3780 */ 501, 502, 503, 504, 505, 565, 565, 508, 509, 565, - /* 3790 */ 565, 401, 565, 565, 565, 565, 565, 565, 565, 565, - /* 3800 */ 565, 565, 565, 430, 565, 565, 565, 565, 565, 565, - /* 3810 */ 565, 565, 565, 565, 565, 565, 565, 565, 565, 446, - /* 3820 */ 430, 448, 565, 565, 565, 565, 565, 386, 565, 565, - /* 3830 */ 565, 565, 565, 565, 565, 565, 446, 565, 448, 565, - /* 3840 */ 565, 386, 401, 565, 565, 565, 565, 565, 565, 565, - /* 3850 */ 565, 565, 565, 565, 565, 565, 401, 565, 565, 565, - /* 3860 */ 565, 565, 565, 565, 565, 565, 493, 565, 565, 496, - /* 3870 */ 565, 430, 565, 500, 501, 502, 503, 504, 505, 565, - /* 3880 */ 565, 508, 509, 493, 565, 430, 496, 446, 565, 448, - /* 3890 */ 500, 501, 502, 503, 504, 505, 565, 565, 508, 509, - /* 3900 */ 565, 446, 565, 448, 565, 565, 565, 565, 565, 565, - /* 3910 */ 565, 565, 565, 565, 565, 565, 565, 386, 565, 565, - /* 3920 */ 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, - /* 3930 */ 565, 565, 401, 565, 493, 565, 565, 496, 565, 386, - /* 3940 */ 565, 500, 501, 502, 503, 504, 505, 565, 493, 508, - /* 3950 */ 509, 496, 565, 565, 401, 500, 501, 502, 503, 504, - /* 3960 */ 505, 430, 565, 508, 509, 565, 565, 565, 565, 565, - /* 3970 */ 565, 565, 565, 565, 565, 565, 565, 446, 565, 448, - /* 3980 */ 565, 565, 565, 430, 565, 565, 565, 565, 565, 565, - /* 3990 */ 565, 565, 565, 565, 565, 565, 565, 565, 565, 446, - /* 4000 */ 565, 448, 565, 565, 565, 565, 565, 565, 565, 565, - /* 4010 */ 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, - /* 4020 */ 565, 565, 565, 565, 493, 565, 565, 496, 565, 565, - /* 4030 */ 565, 500, 501, 502, 503, 504, 505, 565, 565, 508, - /* 4040 */ 509, 565, 565, 565, 565, 565, 493, 565, 565, 496, - /* 4050 */ 565, 565, 565, 500, 501, 502, 503, 504, 505, 565, - /* 4060 */ 565, 508, 509, 383, 383, 383, 383, 383, 383, 383, - /* 4070 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4080 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4090 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4100 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4110 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4120 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4130 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4140 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4150 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4160 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4170 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4180 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4190 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4200 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4210 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4220 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4230 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4240 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4250 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4260 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4270 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4280 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4290 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4300 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4310 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4320 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4330 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4340 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4350 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4360 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4370 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4380 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4390 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4400 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4410 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4420 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4430 */ 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, - /* 4440 */ 383, 383, 383, 383, 383, 383, + /* 280 */ 280, 281, 282, 283, 284, 12, 13, 14, 530, 186, + /* 290 */ 18, 417, 20, 20, 420, 22, 538, 20, 387, 27, + /* 300 */ 418, 255, 30, 215, 530, 217, 20, 152, 153, 36, + /* 310 */ 38, 38, 538, 402, 556, 557, 152, 153, 73, 561, + /* 320 */ 562, 12, 13, 14, 15, 16, 54, 426, 56, 447, + /* 330 */ 556, 557, 431, 61, 62, 561, 562, 155, 250, 432, + /* 340 */ 433, 68, 431, 74, 71, 73, 112, 396, 75, 155, + /* 350 */ 399, 400, 170, 401, 402, 82, 201, 202, 447, 458, + /* 360 */ 449, 127, 128, 129, 130, 131, 132, 133, 134, 135, + /* 370 */ 136, 387, 138, 139, 140, 141, 142, 143, 144, 497, + /* 380 */ 498, 20, 432, 397, 309, 112, 114, 401, 115, 403, + /* 390 */ 449, 410, 309, 511, 309, 8, 9, 309, 126, 12, + /* 400 */ 13, 14, 15, 16, 463, 494, 20, 0, 497, 428, + /* 410 */ 469, 470, 501, 502, 503, 504, 505, 506, 507, 438, + /* 420 */ 509, 510, 511, 512, 513, 152, 153, 473, 74, 157, + /* 430 */ 158, 447, 160, 161, 162, 163, 164, 165, 166, 167, + /* 440 */ 168, 169, 196, 493, 172, 173, 174, 175, 176, 177, + /* 450 */ 178, 179, 21, 181, 182, 183, 211, 401, 402, 187, + /* 460 */ 188, 189, 401, 402, 191, 192, 194, 532, 37, 534, + /* 470 */ 39, 40, 41, 42, 201, 202, 126, 421, 526, 527, + /* 480 */ 528, 74, 530, 531, 530, 429, 241, 242, 54, 216, + /* 490 */ 538, 218, 538, 299, 300, 301, 223, 63, 8, 9, + /* 500 */ 66, 67, 12, 13, 14, 15, 16, 387, 556, 557, + /* 510 */ 556, 557, 285, 561, 562, 561, 562, 8, 9, 500, + /* 520 */ 401, 12, 13, 14, 15, 16, 253, 254, 255, 36, + /* 530 */ 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, + /* 540 */ 267, 255, 33, 270, 271, 272, 273, 274, 529, 431, + /* 550 */ 20, 278, 279, 280, 281, 282, 283, 284, 12, 13, + /* 560 */ 387, 315, 316, 317, 318, 75, 20, 447, 22, 302, + /* 570 */ 303, 304, 305, 306, 14, 402, 458, 191, 192, 460, + /* 580 */ 20, 462, 36, 0, 38, 155, 525, 526, 527, 528, + /* 590 */ 387, 530, 531, 8, 9, 208, 20, 12, 13, 14, + /* 600 */ 15, 16, 8, 9, 431, 402, 12, 13, 14, 15, + /* 610 */ 16, 44, 397, 82, 68, 125, 401, 71, 403, 431, + /* 620 */ 447, 75, 449, 186, 20, 116, 22, 439, 82, 445, + /* 630 */ 146, 4, 448, 449, 431, 77, 78, 79, 450, 36, + /* 640 */ 36, 47, 84, 85, 86, 115, 23, 386, 90, 388, + /* 650 */ 447, 422, 449, 95, 96, 97, 98, 220, 112, 101, + /* 660 */ 431, 115, 58, 105, 106, 107, 108, 494, 12, 13, + /* 670 */ 497, 442, 49, 50, 501, 502, 503, 504, 505, 506, + /* 680 */ 190, 387, 509, 510, 511, 82, 20, 514, 22, 516, + /* 690 */ 517, 518, 36, 117, 4, 522, 523, 494, 152, 153, + /* 700 */ 497, 116, 253, 126, 501, 502, 503, 504, 505, 506, + /* 710 */ 116, 218, 509, 510, 511, 231, 232, 233, 285, 516, + /* 720 */ 287, 518, 155, 336, 58, 522, 523, 431, 298, 299, + /* 730 */ 300, 301, 302, 303, 304, 305, 306, 191, 192, 12, + /* 740 */ 13, 447, 115, 34, 251, 252, 450, 201, 202, 22, + /* 750 */ 432, 191, 36, 550, 171, 41, 42, 422, 268, 176, + /* 760 */ 401, 402, 216, 36, 218, 38, 431, 184, 13, 223, + /* 770 */ 321, 322, 323, 324, 325, 326, 327, 442, 288, 289, + /* 780 */ 290, 291, 292, 293, 294, 295, 296, 297, 145, 146, + /* 790 */ 147, 148, 149, 150, 151, 68, 401, 402, 423, 253, + /* 800 */ 254, 255, 427, 257, 258, 259, 260, 261, 262, 263, + /* 810 */ 264, 265, 266, 267, 530, 255, 270, 271, 272, 273, + /* 820 */ 274, 0, 538, 500, 278, 279, 280, 281, 282, 283, + /* 830 */ 284, 285, 12, 13, 387, 121, 122, 82, 124, 309, + /* 840 */ 20, 557, 22, 401, 402, 561, 562, 434, 431, 402, + /* 850 */ 455, 404, 529, 91, 269, 515, 36, 517, 38, 145, + /* 860 */ 432, 401, 402, 149, 190, 298, 299, 300, 301, 302, + /* 870 */ 303, 304, 305, 306, 218, 8, 9, 432, 431, 12, + /* 880 */ 13, 14, 15, 16, 0, 526, 527, 528, 68, 530, + /* 890 */ 531, 71, 401, 402, 447, 75, 449, 455, 77, 78, + /* 900 */ 79, 500, 82, 401, 402, 84, 85, 86, 491, 492, + /* 910 */ 497, 90, 421, 401, 402, 455, 95, 96, 97, 98, + /* 920 */ 0, 159, 101, 421, 511, 36, 105, 106, 107, 108, + /* 930 */ 529, 14, 112, 421, 218, 115, 309, 20, 410, 401, + /* 940 */ 387, 494, 268, 216, 497, 218, 184, 185, 501, 502, + /* 950 */ 503, 504, 505, 506, 431, 402, 509, 510, 511, 432, + /* 960 */ 198, 20, 288, 516, 441, 518, 438, 251, 252, 522, + /* 970 */ 523, 82, 152, 153, 401, 402, 401, 402, 251, 252, + /* 980 */ 253, 8, 9, 116, 431, 12, 13, 14, 15, 16, + /* 990 */ 14, 15, 16, 515, 421, 517, 421, 270, 271, 479, + /* 1000 */ 447, 311, 449, 465, 466, 278, 279, 280, 281, 282, + /* 1010 */ 283, 191, 192, 1, 2, 59, 60, 401, 402, 8, + /* 1020 */ 9, 201, 202, 12, 13, 14, 15, 16, 22, 145, + /* 1030 */ 146, 147, 148, 149, 150, 151, 216, 421, 218, 432, + /* 1040 */ 401, 402, 36, 223, 448, 449, 20, 494, 406, 407, + /* 1050 */ 497, 20, 401, 402, 501, 502, 503, 504, 505, 506, + /* 1060 */ 421, 4, 509, 510, 511, 145, 146, 147, 148, 149, + /* 1070 */ 150, 151, 421, 253, 254, 255, 19, 257, 258, 259, + /* 1080 */ 260, 261, 262, 263, 264, 265, 266, 267, 82, 116, + /* 1090 */ 270, 271, 272, 273, 274, 38, 22, 387, 278, 279, + /* 1100 */ 280, 281, 282, 283, 284, 12, 13, 14, 191, 3, + /* 1110 */ 36, 54, 402, 20, 404, 22, 563, 564, 61, 62, + /* 1120 */ 387, 432, 530, 387, 432, 68, 20, 116, 116, 36, + /* 1130 */ 538, 38, 443, 20, 193, 401, 402, 387, 8, 9, + /* 1140 */ 387, 431, 12, 13, 14, 15, 16, 401, 402, 557, + /* 1150 */ 401, 402, 402, 561, 562, 421, 82, 447, 419, 449, + /* 1160 */ 431, 68, 401, 402, 71, 387, 52, 421, 439, 388, + /* 1170 */ 421, 114, 255, 401, 402, 82, 119, 47, 2, 450, + /* 1180 */ 447, 431, 421, 447, 8, 9, 112, 431, 12, 13, + /* 1190 */ 14, 15, 16, 421, 406, 407, 255, 447, 387, 449, + /* 1200 */ 447, 415, 416, 387, 494, 112, 450, 497, 115, 401, + /* 1210 */ 402, 501, 502, 503, 504, 505, 506, 12, 13, 509, + /* 1220 */ 510, 511, 116, 387, 193, 447, 516, 22, 518, 421, + /* 1230 */ 8, 9, 522, 523, 12, 13, 14, 15, 16, 514, + /* 1240 */ 408, 36, 517, 38, 494, 152, 153, 497, 415, 416, + /* 1250 */ 38, 501, 502, 503, 504, 505, 506, 425, 447, 509, + /* 1260 */ 510, 511, 20, 447, 8, 9, 54, 435, 12, 13, + /* 1270 */ 14, 15, 16, 68, 3, 63, 64, 65, 66, 431, + /* 1280 */ 68, 255, 431, 447, 191, 192, 255, 82, 401, 402, + /* 1290 */ 216, 0, 218, 442, 201, 202, 408, 44, 450, 193, + /* 1300 */ 431, 551, 552, 47, 401, 402, 193, 193, 421, 216, + /* 1310 */ 565, 218, 401, 402, 401, 402, 223, 112, 204, 444, + /* 1320 */ 387, 68, 447, 435, 421, 473, 114, 253, 254, 401, + /* 1330 */ 402, 119, 421, 387, 421, 8, 9, 387, 116, 12, + /* 1340 */ 13, 14, 15, 16, 459, 387, 253, 254, 255, 421, + /* 1350 */ 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, + /* 1360 */ 267, 492, 387, 270, 271, 272, 273, 274, 387, 401, + /* 1370 */ 402, 278, 279, 280, 281, 282, 283, 284, 12, 13, + /* 1380 */ 447, 22, 530, 401, 402, 387, 20, 22, 22, 421, + /* 1390 */ 538, 387, 387, 447, 427, 36, 444, 447, 186, 447, + /* 1400 */ 402, 36, 36, 421, 38, 447, 387, 195, 556, 557, + /* 1410 */ 387, 199, 200, 561, 562, 390, 391, 205, 206, 20, + /* 1420 */ 14, 216, 447, 218, 13, 402, 20, 404, 447, 431, + /* 1430 */ 33, 33, 444, 191, 68, 447, 224, 71, 145, 0, + /* 1440 */ 126, 0, 149, 116, 47, 447, 0, 449, 82, 401, + /* 1450 */ 402, 447, 447, 33, 431, 488, 8, 9, 253, 254, + /* 1460 */ 12, 13, 14, 15, 16, 147, 447, 47, 33, 151, + /* 1470 */ 447, 112, 449, 20, 33, 270, 271, 112, 112, 75, + /* 1480 */ 68, 115, 116, 278, 279, 280, 281, 282, 283, 0, + /* 1490 */ 44, 387, 494, 82, 180, 497, 0, 255, 532, 501, + /* 1500 */ 502, 503, 504, 505, 506, 33, 402, 509, 510, 511, + /* 1510 */ 120, 22, 120, 123, 116, 123, 518, 494, 152, 153, + /* 1520 */ 497, 523, 152, 153, 501, 502, 503, 504, 505, 506, + /* 1530 */ 33, 119, 509, 510, 511, 431, 245, 120, 554, 516, + /* 1540 */ 123, 518, 547, 225, 120, 522, 523, 123, 230, 533, + /* 1550 */ 54, 447, 234, 449, 236, 8, 9, 191, 192, 12, + /* 1560 */ 13, 14, 15, 16, 116, 8, 9, 201, 202, 12, + /* 1570 */ 13, 14, 15, 16, 526, 527, 528, 13, 530, 531, + /* 1580 */ 13, 235, 216, 237, 218, 33, 33, 33, 116, 223, + /* 1590 */ 115, 33, 117, 33, 155, 0, 0, 36, 494, 33, + /* 1600 */ 36, 497, 331, 36, 33, 501, 502, 503, 504, 505, + /* 1610 */ 506, 33, 508, 509, 510, 511, 33, 22, 22, 253, + /* 1620 */ 254, 255, 33, 257, 258, 259, 260, 261, 262, 263, + /* 1630 */ 264, 265, 266, 267, 0, 33, 270, 271, 272, 273, + /* 1640 */ 274, 1, 2, 33, 278, 279, 280, 281, 282, 283, + /* 1650 */ 284, 12, 13, 33, 255, 51, 22, 253, 473, 20, + /* 1660 */ 36, 22, 405, 116, 431, 33, 33, 418, 116, 116, + /* 1670 */ 116, 12, 13, 473, 116, 36, 116, 38, 12, 13, + /* 1680 */ 33, 228, 116, 387, 8, 9, 47, 116, 12, 13, + /* 1690 */ 14, 15, 16, 473, 116, 33, 418, 33, 402, 116, + /* 1700 */ 404, 12, 13, 12, 13, 116, 33, 68, 12, 13, + /* 1710 */ 71, 12, 13, 12, 13, 530, 12, 13, 116, 115, + /* 1720 */ 33, 82, 400, 538, 12, 13, 116, 431, 12, 13, + /* 1730 */ 530, 12, 13, 33, 459, 553, 116, 553, 538, 36, + /* 1740 */ 33, 556, 557, 447, 33, 449, 561, 562, 116, 116, + /* 1750 */ 530, 112, 553, 33, 115, 472, 556, 557, 538, 553, + /* 1760 */ 387, 561, 562, 116, 13, 13, 459, 36, 333, 405, + /* 1770 */ 402, 495, 446, 537, 480, 402, 556, 557, 116, 218, + /* 1780 */ 116, 561, 562, 459, 459, 82, 558, 36, 36, 116, + /* 1790 */ 494, 152, 153, 497, 524, 537, 459, 501, 502, 503, + /* 1800 */ 504, 505, 506, 116, 431, 509, 510, 511, 540, 420, + /* 1810 */ 312, 54, 516, 82, 518, 474, 116, 496, 522, 523, + /* 1820 */ 447, 485, 449, 116, 20, 268, 401, 116, 20, 490, + /* 1830 */ 191, 192, 335, 234, 485, 214, 116, 410, 410, 476, + /* 1840 */ 201, 202, 218, 401, 471, 20, 402, 47, 190, 456, + /* 1850 */ 456, 402, 401, 453, 402, 216, 401, 218, 456, 113, + /* 1860 */ 453, 453, 223, 453, 414, 111, 401, 494, 401, 193, + /* 1870 */ 497, 413, 110, 412, 501, 502, 503, 504, 505, 506, + /* 1880 */ 401, 401, 509, 510, 511, 401, 20, 394, 52, 398, + /* 1890 */ 398, 410, 253, 254, 255, 394, 257, 258, 259, 260, + /* 1900 */ 261, 262, 263, 264, 265, 266, 267, 485, 20, 270, + /* 1910 */ 271, 272, 273, 274, 410, 449, 387, 278, 279, 280, + /* 1920 */ 281, 282, 283, 284, 12, 13, 410, 20, 403, 20, + /* 1930 */ 410, 402, 20, 404, 22, 475, 403, 410, 20, 466, + /* 1940 */ 410, 20, 460, 401, 410, 410, 410, 401, 36, 394, + /* 1950 */ 38, 238, 431, 431, 431, 431, 387, 431, 390, 431, + /* 1960 */ 431, 447, 431, 431, 390, 447, 394, 489, 431, 431, + /* 1970 */ 431, 402, 115, 404, 487, 485, 447, 20, 449, 484, + /* 1980 */ 68, 408, 222, 71, 482, 221, 481, 447, 408, 474, + /* 1990 */ 449, 401, 447, 546, 82, 320, 319, 328, 207, 329, + /* 2000 */ 431, 330, 546, 549, 545, 548, 313, 544, 546, 307, + /* 2010 */ 467, 467, 543, 308, 334, 337, 447, 332, 449, 536, + /* 2020 */ 535, 402, 474, 494, 112, 20, 497, 115, 560, 126, + /* 2030 */ 501, 502, 503, 504, 505, 506, 566, 310, 509, 510, + /* 2040 */ 511, 541, 539, 408, 403, 516, 408, 518, 467, 500, + /* 2050 */ 447, 522, 523, 559, 447, 447, 447, 199, 467, 447, + /* 2060 */ 408, 464, 447, 494, 152, 153, 497, 115, 408, 447, + /* 2070 */ 501, 502, 503, 504, 505, 506, 460, 521, 509, 510, + /* 2080 */ 511, 199, 408, 427, 461, 516, 460, 518, 402, 408, + /* 2090 */ 447, 522, 523, 447, 115, 447, 447, 447, 447, 22, + /* 2100 */ 447, 447, 447, 191, 192, 35, 389, 401, 447, 37, + /* 2110 */ 447, 393, 447, 201, 202, 447, 408, 392, 40, 447, + /* 2120 */ 493, 395, 394, 486, 436, 385, 447, 0, 216, 447, + /* 2130 */ 218, 447, 409, 424, 477, 223, 0, 447, 424, 447, + /* 2140 */ 0, 447, 447, 433, 447, 447, 424, 47, 433, 0, + /* 2150 */ 36, 468, 244, 36, 36, 36, 0, 244, 36, 36, + /* 2160 */ 244, 36, 0, 0, 244, 253, 254, 255, 0, 257, + /* 2170 */ 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, + /* 2180 */ 36, 0, 270, 271, 272, 273, 274, 36, 387, 468, + /* 2190 */ 278, 279, 280, 281, 282, 283, 284, 12, 13, 0, + /* 2200 */ 22, 0, 36, 402, 239, 20, 0, 22, 224, 0, + /* 2210 */ 224, 218, 225, 216, 0, 0, 0, 0, 212, 211, + /* 2220 */ 0, 36, 158, 38, 51, 51, 0, 36, 0, 387, + /* 2230 */ 0, 36, 431, 54, 0, 51, 0, 47, 0, 0, + /* 2240 */ 0, 0, 0, 51, 402, 0, 0, 0, 447, 0, + /* 2250 */ 449, 176, 0, 68, 36, 176, 71, 0, 0, 0, + /* 2260 */ 0, 0, 0, 0, 0, 0, 0, 82, 0, 0, + /* 2270 */ 0, 0, 0, 431, 0, 0, 0, 0, 0, 0, + /* 2280 */ 51, 0, 47, 0, 0, 0, 0, 0, 0, 447, + /* 2290 */ 0, 449, 0, 158, 0, 494, 0, 112, 497, 157, + /* 2300 */ 115, 156, 501, 502, 503, 504, 505, 506, 0, 0, + /* 2310 */ 509, 510, 511, 387, 0, 22, 0, 516, 68, 518, + /* 2320 */ 22, 22, 0, 522, 523, 52, 0, 36, 402, 0, + /* 2330 */ 0, 0, 52, 36, 0, 68, 494, 152, 153, 497, + /* 2340 */ 36, 0, 36, 501, 502, 503, 504, 505, 506, 44, + /* 2350 */ 68, 509, 510, 511, 54, 44, 54, 431, 516, 44, + /* 2360 */ 518, 54, 0, 68, 522, 523, 0, 47, 36, 44, + /* 2370 */ 33, 14, 51, 447, 51, 449, 191, 192, 51, 0, + /* 2380 */ 45, 0, 44, 0, 0, 0, 201, 202, 44, 207, + /* 2390 */ 0, 51, 0, 51, 0, 0, 0, 0, 44, 36, + /* 2400 */ 54, 216, 0, 218, 76, 36, 54, 0, 223, 44, + /* 2410 */ 36, 44, 54, 0, 36, 54, 44, 0, 0, 0, + /* 2420 */ 494, 0, 0, 497, 0, 36, 123, 501, 502, 503, + /* 2430 */ 504, 505, 506, 22, 0, 509, 510, 511, 253, 254, + /* 2440 */ 255, 36, 257, 258, 259, 260, 261, 262, 263, 264, + /* 2450 */ 265, 266, 267, 22, 22, 270, 271, 272, 273, 274, + /* 2460 */ 33, 125, 36, 278, 279, 280, 281, 282, 283, 284, + /* 2470 */ 18, 36, 36, 387, 36, 23, 36, 36, 552, 36, + /* 2480 */ 36, 33, 36, 36, 0, 36, 22, 0, 402, 22, + /* 2490 */ 0, 0, 22, 56, 42, 43, 22, 36, 46, 0, + /* 2500 */ 0, 0, 36, 0, 36, 0, 0, 36, 22, 57, + /* 2510 */ 0, 36, 20, 36, 36, 116, 387, 431, 115, 115, + /* 2520 */ 0, 69, 70, 71, 72, 73, 193, 51, 0, 36, + /* 2530 */ 22, 402, 193, 447, 22, 449, 223, 219, 193, 229, + /* 2540 */ 228, 0, 199, 0, 193, 3, 193, 33, 115, 36, + /* 2550 */ 203, 203, 36, 36, 52, 116, 52, 314, 116, 33, + /* 2560 */ 431, 116, 33, 33, 33, 111, 115, 115, 115, 113, + /* 2570 */ 51, 116, 115, 115, 115, 51, 447, 115, 449, 116, + /* 2580 */ 494, 116, 33, 497, 3, 33, 36, 501, 502, 503, + /* 2590 */ 504, 505, 506, 82, 115, 509, 510, 511, 116, 116, + /* 2600 */ 36, 36, 516, 314, 518, 36, 154, 36, 522, 523, + /* 2610 */ 36, 116, 116, 51, 51, 298, 33, 0, 0, 44, + /* 2620 */ 0, 196, 115, 494, 44, 116, 497, 0, 200, 44, + /* 2630 */ 501, 502, 503, 504, 505, 506, 113, 116, 509, 510, + /* 2640 */ 511, 116, 115, 33, 2, 286, 253, 518, 115, 115, + /* 2650 */ 115, 522, 523, 113, 22, 116, 196, 51, 51, 115, + /* 2660 */ 208, 209, 210, 314, 116, 213, 115, 195, 115, 115, + /* 2670 */ 115, 115, 115, 115, 115, 115, 22, 116, 226, 227, + /* 2680 */ 0, 115, 115, 44, 116, 256, 116, 115, 387, 0, + /* 2690 */ 196, 115, 240, 115, 115, 243, 22, 115, 246, 247, + /* 2700 */ 248, 249, 250, 402, 117, 115, 118, 51, 115, 22, + /* 2710 */ 116, 387, 115, 115, 229, 126, 116, 36, 36, 115, + /* 2720 */ 36, 116, 36, 115, 36, 116, 402, 116, 116, 116, + /* 2730 */ 36, 36, 431, 137, 115, 33, 137, 115, 137, 137, + /* 2740 */ 36, 115, 22, 76, 75, 22, 36, 36, 447, 36, + /* 2750 */ 449, 36, 36, 36, 36, 431, 109, 36, 36, 82, + /* 2760 */ 36, 309, 36, 33, 109, 82, 22, 36, 36, 36, + /* 2770 */ 36, 447, 36, 449, 36, 36, 36, 36, 82, 36, + /* 2780 */ 22, 36, 36, 0, 36, 0, 44, 36, 0, 54, + /* 2790 */ 36, 54, 0, 44, 44, 494, 36, 44, 497, 36, + /* 2800 */ 0, 54, 501, 502, 503, 504, 505, 506, 0, 54, + /* 2810 */ 509, 510, 511, 1, 36, 22, 0, 22, 494, 518, + /* 2820 */ 33, 497, 36, 522, 523, 501, 502, 503, 504, 505, + /* 2830 */ 506, 19, 36, 509, 510, 511, 22, 387, 21, 567, + /* 2840 */ 22, 22, 518, 21, 20, 567, 522, 523, 567, 567, + /* 2850 */ 38, 567, 402, 567, 567, 567, 387, 567, 567, 567, + /* 2860 */ 567, 567, 567, 567, 567, 53, 54, 567, 567, 567, + /* 2870 */ 567, 402, 567, 567, 567, 63, 64, 65, 66, 567, + /* 2880 */ 68, 431, 567, 567, 567, 567, 567, 567, 567, 567, + /* 2890 */ 567, 567, 567, 567, 567, 567, 567, 447, 567, 449, + /* 2900 */ 431, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 2910 */ 567, 567, 567, 567, 567, 567, 447, 567, 449, 567, + /* 2920 */ 567, 471, 567, 387, 567, 567, 114, 567, 567, 567, + /* 2930 */ 567, 119, 567, 567, 567, 567, 567, 567, 402, 567, + /* 2940 */ 471, 567, 567, 567, 494, 567, 567, 497, 567, 567, + /* 2950 */ 567, 501, 502, 503, 504, 505, 506, 567, 567, 509, + /* 2960 */ 510, 511, 150, 494, 567, 567, 497, 431, 567, 567, + /* 2970 */ 501, 502, 503, 504, 505, 506, 567, 567, 509, 510, + /* 2980 */ 511, 567, 567, 447, 567, 449, 567, 567, 567, 567, + /* 2990 */ 387, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 3000 */ 567, 567, 567, 567, 567, 402, 567, 195, 567, 197, + /* 3010 */ 567, 387, 200, 567, 567, 567, 567, 205, 567, 567, + /* 3020 */ 567, 567, 567, 567, 567, 567, 402, 567, 567, 567, + /* 3030 */ 494, 567, 567, 497, 431, 567, 224, 501, 502, 503, + /* 3040 */ 504, 505, 506, 567, 567, 509, 510, 511, 567, 567, + /* 3050 */ 447, 567, 449, 567, 567, 431, 567, 567, 567, 567, + /* 3060 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 3070 */ 567, 447, 567, 449, 567, 567, 567, 567, 567, 567, + /* 3080 */ 387, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 3090 */ 567, 555, 567, 567, 567, 402, 567, 494, 567, 567, + /* 3100 */ 497, 567, 567, 567, 501, 502, 503, 504, 505, 506, + /* 3110 */ 567, 567, 509, 510, 511, 567, 567, 567, 494, 567, + /* 3120 */ 567, 497, 567, 567, 431, 501, 502, 503, 504, 505, + /* 3130 */ 506, 567, 567, 509, 510, 511, 567, 513, 567, 567, + /* 3140 */ 447, 567, 449, 567, 567, 567, 567, 567, 567, 567, + /* 3150 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 3160 */ 567, 387, 567, 567, 471, 567, 567, 564, 567, 567, + /* 3170 */ 567, 567, 567, 567, 567, 567, 402, 567, 567, 567, + /* 3180 */ 567, 567, 567, 567, 567, 567, 387, 494, 567, 567, + /* 3190 */ 497, 567, 567, 567, 501, 502, 503, 504, 505, 506, + /* 3200 */ 567, 402, 509, 510, 511, 431, 567, 387, 567, 567, + /* 3210 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 3220 */ 567, 447, 402, 449, 567, 567, 567, 567, 567, 567, + /* 3230 */ 431, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 3240 */ 567, 567, 567, 567, 567, 471, 447, 567, 449, 567, + /* 3250 */ 567, 431, 567, 567, 567, 567, 567, 567, 567, 567, + /* 3260 */ 567, 567, 567, 567, 567, 567, 567, 447, 494, 449, + /* 3270 */ 471, 497, 567, 567, 567, 501, 502, 503, 504, 505, + /* 3280 */ 506, 567, 567, 509, 510, 511, 567, 567, 567, 567, + /* 3290 */ 567, 471, 567, 494, 567, 567, 497, 567, 567, 567, + /* 3300 */ 501, 502, 503, 504, 505, 506, 567, 567, 509, 510, + /* 3310 */ 511, 567, 567, 567, 494, 567, 567, 497, 567, 387, + /* 3320 */ 567, 501, 502, 503, 504, 505, 506, 567, 567, 509, + /* 3330 */ 510, 511, 567, 567, 402, 567, 567, 567, 567, 387, + /* 3340 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 3350 */ 567, 567, 567, 567, 402, 567, 567, 567, 387, 567, + /* 3360 */ 567, 567, 567, 431, 567, 567, 567, 567, 567, 567, + /* 3370 */ 567, 567, 567, 402, 567, 567, 567, 567, 567, 447, + /* 3380 */ 567, 449, 567, 431, 567, 567, 567, 567, 567, 567, + /* 3390 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 447, + /* 3400 */ 567, 449, 431, 567, 567, 567, 567, 567, 567, 567, + /* 3410 */ 567, 567, 567, 567, 567, 567, 567, 567, 447, 567, + /* 3420 */ 449, 567, 567, 567, 567, 387, 494, 567, 567, 497, + /* 3430 */ 567, 567, 567, 501, 502, 503, 504, 505, 506, 567, + /* 3440 */ 402, 509, 510, 511, 567, 567, 494, 567, 567, 497, + /* 3450 */ 567, 567, 567, 501, 502, 503, 504, 505, 506, 567, + /* 3460 */ 567, 509, 510, 511, 567, 494, 567, 567, 497, 431, + /* 3470 */ 567, 567, 501, 502, 503, 504, 505, 506, 567, 567, + /* 3480 */ 509, 510, 511, 567, 567, 447, 567, 449, 567, 567, + /* 3490 */ 567, 567, 387, 567, 567, 567, 567, 567, 567, 567, + /* 3500 */ 567, 567, 567, 567, 567, 567, 567, 402, 567, 567, + /* 3510 */ 567, 567, 387, 567, 567, 567, 567, 567, 567, 567, + /* 3520 */ 567, 567, 567, 567, 567, 567, 567, 402, 567, 567, + /* 3530 */ 567, 567, 494, 567, 567, 497, 431, 567, 567, 501, + /* 3540 */ 502, 503, 504, 505, 506, 567, 567, 509, 510, 511, + /* 3550 */ 567, 567, 447, 567, 449, 567, 431, 567, 567, 567, + /* 3560 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 3570 */ 567, 567, 447, 567, 449, 567, 567, 567, 567, 567, + /* 3580 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 387, + /* 3590 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 494, + /* 3600 */ 567, 567, 497, 567, 402, 567, 501, 502, 503, 504, + /* 3610 */ 505, 506, 567, 567, 509, 510, 511, 567, 567, 494, + /* 3620 */ 567, 567, 497, 567, 567, 567, 501, 502, 503, 504, + /* 3630 */ 505, 506, 567, 431, 509, 510, 511, 567, 567, 567, + /* 3640 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 447, + /* 3650 */ 567, 449, 567, 567, 567, 567, 387, 567, 567, 567, + /* 3660 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 3670 */ 567, 402, 567, 567, 567, 567, 567, 567, 567, 387, + /* 3680 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 3690 */ 567, 567, 567, 567, 402, 567, 494, 567, 567, 497, + /* 3700 */ 431, 567, 387, 501, 502, 503, 504, 505, 506, 567, + /* 3710 */ 567, 509, 510, 511, 567, 567, 447, 402, 449, 567, + /* 3720 */ 567, 567, 567, 431, 567, 567, 567, 567, 567, 567, + /* 3730 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 447, + /* 3740 */ 567, 449, 567, 567, 567, 567, 431, 567, 567, 567, + /* 3750 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 3760 */ 567, 567, 447, 494, 449, 567, 497, 387, 567, 567, + /* 3770 */ 501, 502, 503, 504, 505, 506, 567, 567, 509, 510, + /* 3780 */ 511, 567, 402, 567, 567, 567, 494, 567, 567, 497, + /* 3790 */ 387, 567, 567, 501, 502, 503, 504, 505, 506, 567, + /* 3800 */ 567, 509, 510, 511, 567, 402, 567, 567, 567, 494, + /* 3810 */ 567, 431, 497, 387, 567, 567, 501, 502, 503, 504, + /* 3820 */ 505, 506, 567, 567, 509, 510, 511, 447, 402, 449, + /* 3830 */ 567, 567, 567, 567, 431, 567, 567, 567, 567, 567, + /* 3840 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 3850 */ 447, 567, 449, 567, 567, 567, 567, 431, 567, 567, + /* 3860 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 3870 */ 567, 567, 567, 447, 494, 449, 567, 497, 567, 567, + /* 3880 */ 387, 501, 502, 503, 504, 505, 506, 567, 567, 509, + /* 3890 */ 510, 511, 567, 567, 567, 402, 567, 494, 567, 567, + /* 3900 */ 497, 567, 567, 567, 501, 502, 503, 504, 505, 506, + /* 3910 */ 567, 567, 509, 510, 511, 567, 567, 567, 567, 567, + /* 3920 */ 494, 567, 567, 497, 431, 567, 567, 501, 502, 503, + /* 3930 */ 504, 505, 506, 567, 567, 509, 510, 511, 567, 567, + /* 3940 */ 447, 567, 449, 567, 567, 567, 567, 567, 567, 567, + /* 3950 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 3960 */ 567, 567, 387, 567, 567, 567, 567, 567, 567, 567, + /* 3970 */ 567, 567, 567, 567, 567, 567, 567, 402, 567, 567, + /* 3980 */ 567, 567, 567, 567, 567, 567, 567, 494, 567, 567, + /* 3990 */ 497, 567, 387, 567, 501, 502, 503, 504, 505, 506, + /* 4000 */ 567, 567, 509, 510, 511, 567, 431, 402, 567, 567, + /* 4010 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 4020 */ 567, 567, 447, 567, 449, 567, 567, 567, 567, 567, + /* 4030 */ 567, 567, 567, 567, 567, 567, 431, 567, 567, 567, + /* 4040 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 4050 */ 567, 567, 447, 567, 449, 567, 567, 567, 567, 387, + /* 4060 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 494, + /* 4070 */ 567, 567, 497, 567, 402, 567, 501, 502, 503, 504, + /* 4080 */ 505, 506, 387, 567, 509, 510, 511, 567, 567, 567, + /* 4090 */ 567, 567, 567, 567, 567, 567, 567, 402, 567, 494, + /* 4100 */ 567, 567, 497, 431, 567, 387, 501, 502, 503, 504, + /* 4110 */ 505, 506, 567, 567, 509, 510, 511, 567, 567, 447, + /* 4120 */ 402, 449, 567, 567, 567, 567, 431, 567, 567, 567, + /* 4130 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 4140 */ 567, 567, 447, 567, 449, 567, 567, 567, 567, 431, + /* 4150 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 4160 */ 567, 567, 567, 567, 567, 447, 494, 449, 567, 497, + /* 4170 */ 387, 567, 567, 501, 502, 503, 504, 505, 506, 567, + /* 4180 */ 567, 509, 510, 511, 567, 402, 567, 567, 567, 494, + /* 4190 */ 567, 567, 497, 387, 567, 567, 501, 502, 503, 504, + /* 4200 */ 505, 506, 567, 567, 509, 510, 511, 567, 402, 567, + /* 4210 */ 567, 567, 494, 567, 431, 497, 387, 567, 567, 501, + /* 4220 */ 502, 503, 504, 505, 506, 567, 567, 509, 510, 511, + /* 4230 */ 447, 402, 449, 567, 567, 567, 567, 431, 567, 567, + /* 4240 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 4250 */ 567, 567, 567, 447, 567, 449, 567, 567, 567, 567, + /* 4260 */ 431, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 4270 */ 567, 567, 567, 567, 567, 567, 447, 494, 449, 567, + /* 4280 */ 497, 567, 567, 387, 501, 502, 503, 504, 505, 506, + /* 4290 */ 567, 567, 509, 510, 511, 567, 567, 567, 402, 567, + /* 4300 */ 494, 567, 567, 497, 567, 567, 567, 501, 502, 503, + /* 4310 */ 504, 505, 506, 567, 567, 509, 510, 511, 567, 567, + /* 4320 */ 567, 567, 567, 494, 567, 567, 497, 431, 567, 567, + /* 4330 */ 501, 502, 503, 504, 505, 506, 567, 567, 509, 510, + /* 4340 */ 511, 567, 567, 447, 567, 449, 567, 567, 567, 567, + /* 4350 */ 387, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 4360 */ 567, 567, 567, 567, 567, 402, 567, 567, 567, 567, + /* 4370 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 4380 */ 387, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 4390 */ 494, 567, 567, 497, 431, 402, 567, 501, 502, 503, + /* 4400 */ 504, 505, 506, 567, 567, 509, 510, 511, 567, 567, + /* 4410 */ 447, 567, 449, 567, 567, 567, 567, 567, 567, 567, + /* 4420 */ 567, 567, 567, 567, 431, 567, 567, 567, 567, 567, + /* 4430 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 4440 */ 447, 567, 449, 567, 567, 567, 567, 387, 567, 567, + /* 4450 */ 567, 567, 567, 567, 567, 567, 567, 494, 567, 567, + /* 4460 */ 497, 567, 402, 567, 501, 502, 503, 504, 505, 506, + /* 4470 */ 387, 567, 509, 510, 511, 567, 567, 567, 567, 567, + /* 4480 */ 567, 567, 567, 567, 567, 402, 567, 494, 567, 567, + /* 4490 */ 497, 431, 567, 387, 501, 502, 503, 504, 505, 506, + /* 4500 */ 567, 567, 509, 510, 511, 567, 567, 447, 402, 449, + /* 4510 */ 567, 567, 567, 567, 431, 567, 567, 567, 567, 567, + /* 4520 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 4530 */ 447, 567, 449, 567, 567, 567, 567, 431, 567, 567, + /* 4540 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 4550 */ 567, 567, 567, 447, 494, 449, 567, 497, 387, 567, + /* 4560 */ 567, 501, 502, 503, 504, 505, 506, 567, 567, 509, + /* 4570 */ 510, 511, 567, 402, 567, 567, 567, 494, 567, 567, + /* 4580 */ 497, 387, 567, 567, 501, 502, 503, 504, 505, 506, + /* 4590 */ 567, 567, 509, 510, 511, 567, 402, 567, 567, 567, + /* 4600 */ 494, 567, 431, 497, 567, 567, 567, 501, 502, 503, + /* 4610 */ 504, 505, 506, 567, 567, 509, 510, 511, 447, 567, + /* 4620 */ 449, 567, 567, 567, 567, 431, 567, 567, 567, 567, + /* 4630 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 4640 */ 567, 447, 567, 449, 567, 567, 567, 567, 567, 567, + /* 4650 */ 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, + /* 4660 */ 567, 567, 567, 567, 567, 494, 567, 567, 497, 567, + /* 4670 */ 567, 567, 501, 502, 503, 504, 505, 506, 567, 567, + /* 4680 */ 509, 510, 511, 567, 567, 567, 567, 567, 494, 567, + /* 4690 */ 567, 497, 567, 567, 567, 501, 502, 503, 504, 505, + /* 4700 */ 506, 567, 567, 509, 510, 511, 384, 384, 384, 384, + /* 4710 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4720 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4730 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4740 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4750 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4760 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4770 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4780 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4790 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4800 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4810 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4820 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4830 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4840 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4850 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4860 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4870 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4880 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4890 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4900 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4910 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4920 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4930 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4940 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4950 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4960 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4970 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4980 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 4990 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 5000 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 5010 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 5020 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 5030 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 5040 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 5050 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 5060 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 5070 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, + /* 5080 */ 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, }; -#define YY_SHIFT_COUNT (1003) +#define YY_SHIFT_COUNT (1006) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (2943) +#define YY_SHIFT_MAX (2824) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 1604, 272, 355, 272, 628, 628, 628, 628, 628, 628, - /* 10 */ 628, 628, 628, 628, 628, 628, 711, 1066, 1066, 1338, - /* 20 */ 0, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, - /* 30 */ 1066, 983, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, - /* 40 */ 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, - /* 50 */ 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, - /* 60 */ 1066, 548, 550, 489, 129, 131, 282, 131, 131, 129, - /* 70 */ 129, 131, 2034, 131, 1337, 2034, 181, 131, 4, 1996, - /* 80 */ 715, 715, 35, 35, 1996, 1996, 161, 161, 715, 77, - /* 90 */ 77, 220, 20, 20, 72, 44, 35, 35, 35, 35, - /* 100 */ 35, 35, 35, 35, 35, 35, 35, 201, 206, 232, - /* 110 */ 35, 35, 240, 4, 35, 201, 35, 4, 35, 35, - /* 120 */ 35, 35, 4, 35, 35, 35, 4, 35, 4, 4, - /* 130 */ 4, 283, 307, 307, 543, 543, 672, 764, 178, 334, - /* 140 */ 1332, 1332, 1332, 1332, 1332, 1332, 1332, 1332, 1332, 1332, - /* 150 */ 1332, 1332, 1332, 1332, 1332, 1332, 1332, 1332, 1332, 1321, - /* 160 */ 573, 77, 220, 920, 920, 492, 438, 438, 438, 644, - /* 170 */ 644, 654, 1129, 492, 240, 4, 294, 4, 4, 327, - /* 180 */ 4, 4, 565, 4, 565, 565, 596, 3, 543, 543, - /* 190 */ 543, 543, 543, 543, 1358, 414, 204, 572, 261, 261, - /* 200 */ 935, 336, 376, 341, 465, 101, 154, 433, 705, 705, - /* 210 */ 736, 832, 85, 85, 85, 890, 85, 864, 984, 1276, - /* 220 */ 982, 947, 1051, 1239, 1397, 1397, 1398, 1177, 1177, 1299, - /* 230 */ 1372, 1012, 1397, 1129, 1523, 1782, 1818, 1823, 1611, 240, - /* 240 */ 1823, 240, 1646, 1818, 1844, 1821, 1844, 1821, 1681, 1818, - /* 250 */ 1844, 1818, 1821, 1681, 1681, 1681, 1769, 1774, 1818, 1818, - /* 260 */ 1780, 1818, 1818, 1818, 1871, 1846, 1871, 1846, 1823, 240, - /* 270 */ 240, 1884, 240, 1891, 1894, 240, 1891, 240, 1899, 240, - /* 280 */ 1905, 240, 240, 1818, 240, 1871, 4, 4, 4, 4, - /* 290 */ 4, 4, 4, 4, 4, 4, 4, 1818, 3, 3, - /* 300 */ 1871, 565, 565, 565, 1703, 1833, 1823, 283, 1945, 1754, - /* 310 */ 1757, 1884, 283, 1523, 1818, 565, 1662, 1665, 1662, 1665, - /* 320 */ 1663, 1790, 1662, 1673, 1682, 1707, 1523, 1733, 1737, 1716, - /* 330 */ 1711, 1717, 1844, 2035, 1932, 1750, 1891, 283, 283, 1665, - /* 340 */ 565, 565, 565, 565, 1665, 565, 1879, 283, 565, 1905, - /* 350 */ 283, 1965, 565, 1890, 1905, 283, 596, 283, 1844, 565, - /* 360 */ 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, - /* 370 */ 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, - /* 380 */ 565, 1977, 565, 1818, 283, 2079, 2074, 2088, 2092, 1871, - /* 390 */ 4063, 4063, 4063, 4063, 4063, 4063, 4063, 4063, 4063, 4063, - /* 400 */ 4063, 4063, 39, 1166, 726, 676, 824, 322, 906, 923, - /* 410 */ 1060, 1117, 1179, 2, 17, 1200, 1263, 1020, 1033, 1278, - /* 420 */ 1291, 1300, 1077, 1235, 1467, 1467, 1467, 1467, 1467, 1467, - /* 430 */ 1467, 1467, 1467, 861, 54, 144, 233, 32, 32, 634, - /* 440 */ 271, 205, 451, 16, 251, 889, 224, 1034, 1185, 945, - /* 450 */ 945, 1326, 1272, 837, 1326, 1326, 1326, 1392, 1317, 1425, - /* 460 */ 496, 1407, 1305, 1018, 1535, 1453, 1073, 1464, 1534, 1073, - /* 470 */ 1543, 1524, 1460, 1553, 484, 1590, 1672, 1679, 1343, 1601, - /* 480 */ 1609, 1373, 1634, 1635, 1637, 1654, 1471, 871, 1395, 1658, - /* 490 */ 1660, 1666, 1667, 1694, 1687, 1496, 1688, 1691, 1629, 1695, - /* 500 */ 1702, 1706, 1708, 1709, 1685, 1698, 1710, 1714, 1724, 1734, - /* 510 */ 1753, 1759, 1779, 1783, 1796, 1699, 1073, 1712, 1721, 1723, - /* 520 */ 1751, 1764, 1587, 1656, 1605, 1645, 1594, 1785, 1766, 289, - /* 530 */ 2141, 2158, 2163, 2123, 2197, 2165, 1959, 2166, 2168, 2169, - /* 540 */ 1963, 2208, 2173, 2177, 1971, 2180, 2217, 2218, 1975, 2220, - /* 550 */ 2185, 2222, 2187, 2224, 2204, 2227, 2193, 1991, 2231, 2015, - /* 560 */ 2242, 2019, 2020, 2028, 2038, 2244, 2251, 2255, 2044, 2046, - /* 570 */ 2258, 2259, 2102, 2210, 2211, 2263, 2229, 2268, 2269, 2234, - /* 580 */ 2226, 2271, 2221, 2281, 2236, 2284, 2285, 2286, 2238, 2290, - /* 590 */ 2291, 2292, 2295, 2296, 2297, 2125, 2266, 2299, 2127, 2306, - /* 600 */ 2307, 2309, 2310, 2317, 2318, 2319, 2320, 2321, 2322, 2323, - /* 610 */ 2325, 2327, 2328, 2329, 2330, 2331, 2332, 2333, 2334, 2287, - /* 620 */ 2335, 2289, 2337, 2339, 2340, 2341, 2342, 2343, 2346, 2347, - /* 630 */ 2349, 2336, 2350, 2205, 2351, 2207, 2362, 2209, 2366, 2367, - /* 640 */ 2348, 2338, 2353, 2344, 2369, 2316, 2377, 2324, 2359, 2385, - /* 650 */ 2345, 2389, 2354, 2397, 2398, 2364, 2355, 2357, 2402, 2371, - /* 660 */ 2356, 2370, 2403, 2375, 2363, 2372, 2405, 2379, 2418, 2374, - /* 670 */ 2381, 2386, 2373, 2378, 2409, 2382, 2426, 2383, 2387, 2430, - /* 680 */ 2432, 2434, 2435, 2395, 2235, 2440, 2373, 2390, 2443, 2373, - /* 690 */ 2393, 2445, 2446, 2376, 2447, 2448, 2413, 2396, 2420, 2457, - /* 700 */ 2433, 2414, 2427, 2470, 2437, 2421, 2436, 2476, 2442, 2425, - /* 710 */ 2438, 2481, 2484, 2485, 2487, 2488, 2497, 2388, 2391, 2465, - /* 720 */ 2480, 2517, 2483, 2482, 2489, 2496, 2500, 2501, 2503, 2506, - /* 730 */ 2507, 2508, 2512, 2513, 2511, 2516, 2498, 2518, 2524, 2519, - /* 740 */ 2548, 2533, 2553, 2534, 2502, 2557, 2537, 2525, 2560, 2562, - /* 750 */ 2563, 2528, 2565, 2535, 2569, 2536, 2570, 2551, 2554, 2539, - /* 760 */ 2540, 2541, 2462, 2464, 2580, 2394, 2352, 2358, 2469, 2365, - /* 770 */ 2373, 2538, 2582, 2399, 2555, 2568, 2593, 2407, 2572, 2404, - /* 780 */ 2401, 2595, 2598, 2408, 2406, 2417, 2411, 2599, 2584, 2302, - /* 790 */ 2520, 2515, 2529, 2527, 2591, 2596, 2532, 2566, 2542, 2597, - /* 800 */ 2543, 2544, 2619, 2620, 2546, 2549, 2550, 2552, 2556, 2624, - /* 810 */ 2607, 2608, 2558, 2633, 2384, 2586, 2559, 2636, 2571, 2614, - /* 820 */ 2561, 2567, 2667, 2638, 2412, 2642, 2648, 2649, 2651, 2652, - /* 830 */ 2653, 2574, 2575, 2623, 2410, 2659, 2643, 2693, 2695, 2585, - /* 840 */ 2655, 2588, 2590, 2587, 2594, 2514, 2600, 2701, 2664, 2522, - /* 850 */ 2711, 2601, 2603, 2523, 2668, 2521, 2680, 2611, 2429, 2615, - /* 860 */ 2725, 2708, 2478, 2625, 2629, 2634, 2641, 2616, 2632, 2645, - /* 870 */ 2646, 2650, 2654, 2658, 2647, 2688, 2670, 2672, 2713, 2656, - /* 880 */ 2735, 2526, 2673, 2674, 2767, 2676, 2675, 2578, 2726, 2678, - /* 890 */ 2677, 2795, 2774, 2679, 2683, 2373, 2748, 2685, 2687, 2689, - /* 900 */ 2691, 2696, 2682, 2781, 2583, 2697, 2768, 2778, 2700, 2702, - /* 910 */ 2780, 2704, 2705, 2784, 2645, 2707, 2786, 2646, 2709, 2788, - /* 920 */ 2650, 2716, 2791, 2654, 2692, 2698, 2699, 2703, 2718, 2801, - /* 930 */ 2722, 2802, 2724, 2801, 2801, 2819, 2741, 2769, 2820, 2807, - /* 940 */ 2809, 2811, 2813, 2814, 2815, 2816, 2822, 2823, 2824, 2835, - /* 950 */ 2773, 2747, 2785, 2763, 2841, 2839, 2842, 2843, 2864, 2851, - /* 960 */ 2854, 2858, 2817, 2512, 2859, 2513, 2871, 2874, 2875, 2876, - /* 970 */ 2892, 2880, 2898, 2882, 2865, 2878, 2920, 2887, 2870, 2881, - /* 980 */ 2926, 2891, 2877, 2884, 2929, 2894, 2879, 2890, 2936, 2902, - /* 990 */ 2940, 2919, 2906, 2943, 2922, 2912, 2910, 2911, 2927, 2931, - /* 1000 */ 2928, 2932, 2934, 2937, + /* 0 */ 2452, 273, 546, 273, 820, 820, 820, 820, 820, 820, + /* 10 */ 820, 820, 820, 820, 820, 820, 1093, 1912, 1912, 2185, + /* 20 */ 0, 1366, 1912, 1912, 1912, 1912, 1912, 1912, 1912, 1912, + /* 30 */ 1912, 1912, 1639, 1912, 1912, 1912, 1912, 1912, 1912, 1912, + /* 40 */ 1912, 1912, 1912, 1912, 1912, 1912, 1912, 1912, 1912, 1912, + /* 50 */ 1912, 1912, 1912, 1912, 1912, 1912, 1912, 1912, 1912, 1912, + /* 60 */ 1912, 1912, 85, 530, 88, 141, 75, 83, 75, 75, + /* 70 */ 141, 141, 75, 1205, 75, 272, 1205, 627, 75, 11, + /* 80 */ 727, 155, 155, 76, 76, 727, 727, 145, 145, 155, + /* 90 */ 386, 386, 164, 90, 90, 286, 576, 76, 76, 76, + /* 100 */ 76, 76, 76, 76, 76, 76, 76, 76, 199, 277, + /* 110 */ 361, 76, 76, 269, 11, 76, 199, 76, 11, 76, + /* 120 */ 76, 76, 76, 11, 76, 76, 76, 11, 76, 11, + /* 130 */ 11, 11, 354, 490, 490, 102, 102, 234, 558, 567, + /* 140 */ 48, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, + /* 150 */ 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, + /* 160 */ 714, 1106, 386, 164, 956, 956, 603, 1113, 1113, 1113, + /* 170 */ 433, 433, 407, 755, 603, 269, 11, 350, 11, 11, + /* 180 */ 227, 11, 11, 531, 11, 531, 531, 577, 709, 102, + /* 190 */ 102, 102, 102, 102, 102, 2812, 821, 21, 46, 430, + /* 200 */ 430, 387, 449, 246, 267, 604, 194, 560, 917, 656, + /* 210 */ 656, 623, 941, 1006, 1006, 1006, 1114, 1006, 1242, 1031, + /* 220 */ 666, 1253, 1406, 1293, 437, 1026, 1026, 1399, 1411, 1411, + /* 230 */ 1271, 1397, 690, 1026, 755, 1498, 1757, 1804, 1808, 1599, + /* 240 */ 269, 1808, 269, 1621, 1804, 1825, 1800, 1825, 1800, 1658, + /* 250 */ 1804, 1825, 1804, 1800, 1658, 1658, 1658, 1746, 1754, 1804, + /* 260 */ 1804, 1762, 1804, 1804, 1804, 1866, 1836, 1866, 1836, 1808, + /* 270 */ 269, 269, 1888, 269, 1907, 1909, 269, 1907, 269, 1918, + /* 280 */ 269, 1921, 269, 269, 1804, 269, 1866, 11, 11, 11, + /* 290 */ 11, 11, 11, 11, 11, 11, 11, 11, 1804, 709, + /* 300 */ 709, 1866, 531, 531, 531, 1713, 1857, 1808, 354, 1957, + /* 310 */ 1760, 1764, 1888, 354, 1498, 1804, 531, 1675, 1677, 1675, + /* 320 */ 1677, 1669, 1791, 1675, 1671, 1670, 1693, 1498, 1705, 1702, + /* 330 */ 1678, 1680, 1685, 1825, 2005, 1903, 1727, 1907, 354, 354, + /* 340 */ 1677, 531, 531, 531, 531, 1677, 531, 1858, 354, 531, + /* 350 */ 1921, 354, 1952, 531, 1882, 1921, 354, 577, 354, 1825, + /* 360 */ 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, + /* 370 */ 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, + /* 380 */ 531, 531, 1979, 531, 1804, 354, 2077, 2070, 2072, 2078, + /* 390 */ 1866, 4706, 4706, 4706, 4706, 4706, 4706, 4706, 4706, 4706, + /* 400 */ 4706, 4706, 4706, 39, 1212, 63, 1057, 509, 585, 594, + /* 410 */ 867, 973, 1011, 1222, 1130, 197, 1176, 1327, 1256, 1448, + /* 420 */ 1547, 1557, 1676, 884, 920, 212, 212, 212, 212, 212, + /* 430 */ 212, 212, 212, 212, 643, 431, 1318, 762, 309, 309, + /* 440 */ 245, 103, 583, 434, 484, 493, 716, 182, 1359, 1365, + /* 450 */ 27, 27, 976, 1012, 674, 976, 976, 976, 1496, 1291, + /* 460 */ 1398, 1446, 1420, 1314, 1439, 1441, 1390, 1453, 1392, 1417, + /* 470 */ 1453, 1424, 889, 1564, 1567, 1489, 1595, 1596, 1634, 1346, + /* 480 */ 1472, 1552, 1412, 1553, 1554, 1558, 1560, 1370, 1435, 1497, + /* 490 */ 1566, 1571, 1578, 1583, 1640, 1589, 1404, 1602, 1610, 1620, + /* 500 */ 1604, 1632, 1633, 1647, 1662, 1664, 1659, 1666, 1689, 1691, + /* 510 */ 1696, 1699, 1701, 1704, 1712, 1716, 1719, 1673, 1453, 1687, + /* 520 */ 1700, 1707, 1711, 1720, 1475, 1703, 1561, 1624, 1751, 1752, + /* 530 */ 1731, 111, 2127, 2136, 2140, 2100, 2149, 2114, 1908, 2117, + /* 540 */ 2118, 2119, 1913, 2156, 2122, 2123, 1916, 2125, 2162, 2163, + /* 550 */ 1920, 2168, 2144, 2181, 2151, 2199, 2178, 2201, 2166, 1965, + /* 560 */ 2206, 1984, 2209, 1986, 1987, 1993, 1997, 2214, 2215, 2216, + /* 570 */ 2006, 2008, 2217, 2220, 2064, 2173, 2174, 2226, 2191, 2228, + /* 580 */ 2230, 2195, 2179, 2234, 2184, 2236, 2190, 2238, 2239, 2240, + /* 590 */ 2192, 2241, 2242, 2245, 2246, 2247, 2249, 2075, 2218, 2252, + /* 600 */ 2079, 2257, 2258, 2259, 2260, 2261, 2262, 2263, 2264, 2265, + /* 610 */ 2266, 2268, 2269, 2270, 2271, 2272, 2274, 2275, 2276, 2277, + /* 620 */ 2278, 2229, 2279, 2235, 2281, 2283, 2284, 2285, 2286, 2287, + /* 630 */ 2288, 2290, 2292, 2293, 2296, 2135, 2294, 2142, 2308, 2145, + /* 640 */ 2309, 2314, 2298, 2273, 2299, 2280, 2316, 2250, 2322, 2267, + /* 650 */ 2291, 2326, 2282, 2329, 2295, 2330, 2331, 2297, 2300, 2305, + /* 660 */ 2334, 2304, 2302, 2311, 2341, 2306, 2307, 2315, 2362, 2332, + /* 670 */ 2366, 2320, 2325, 2337, 2321, 2323, 2357, 2327, 2379, 2335, + /* 680 */ 2338, 2381, 2383, 2384, 2385, 2344, 2182, 2390, 2321, 2340, + /* 690 */ 2392, 2321, 2342, 2394, 2395, 2328, 2396, 2397, 2363, 2346, + /* 700 */ 2354, 2402, 2369, 2352, 2365, 2407, 2374, 2358, 2367, 2413, + /* 710 */ 2378, 2361, 2372, 2417, 2418, 2419, 2421, 2422, 2424, 2336, + /* 720 */ 2303, 2389, 2411, 2434, 2431, 2405, 2426, 2435, 2436, 2438, + /* 730 */ 2440, 2441, 2443, 2444, 2427, 2448, 2446, 2447, 2432, 2449, + /* 740 */ 2484, 2464, 2487, 2467, 2490, 2470, 2437, 2491, 2474, 2461, + /* 750 */ 2499, 2500, 2501, 2466, 2503, 2468, 2505, 2471, 2506, 2486, + /* 760 */ 2492, 2475, 2477, 2478, 2399, 2403, 2510, 2333, 2310, 2312, + /* 770 */ 2404, 2313, 2321, 2476, 2520, 2339, 2493, 2508, 2528, 2318, + /* 780 */ 2512, 2345, 2343, 2541, 2543, 2351, 2347, 2353, 2348, 2542, + /* 790 */ 2514, 2243, 2433, 2439, 2451, 2442, 2513, 2516, 2453, 2502, + /* 800 */ 2456, 2504, 2454, 2445, 2526, 2529, 2455, 2457, 2458, 2459, + /* 810 */ 2463, 2530, 2519, 2524, 2462, 2531, 2289, 2511, 2465, 2549, + /* 820 */ 2479, 2517, 2482, 2483, 2581, 2552, 2349, 2550, 2564, 2565, + /* 830 */ 2569, 2571, 2574, 2495, 2496, 2562, 2317, 2583, 2563, 2617, + /* 840 */ 2618, 2507, 2575, 2509, 2521, 2527, 2533, 2425, 2534, 2620, + /* 850 */ 2580, 2428, 2627, 2525, 2535, 2460, 2585, 2472, 2610, 2523, + /* 860 */ 2359, 2540, 2642, 2632, 2393, 2544, 2551, 2553, 2554, 2555, + /* 870 */ 2539, 2548, 2556, 2557, 2558, 2559, 2560, 2561, 2606, 2566, + /* 880 */ 2567, 2607, 2568, 2654, 2429, 2572, 2576, 2680, 2570, 2578, + /* 890 */ 2494, 2639, 2579, 2587, 2689, 2674, 2588, 2582, 2321, 2656, + /* 900 */ 2590, 2593, 2594, 2597, 2598, 2589, 2687, 2485, 2600, 2681, + /* 910 */ 2682, 2604, 2605, 2684, 2608, 2609, 2686, 2556, 2611, 2688, + /* 920 */ 2557, 2612, 2694, 2558, 2613, 2695, 2559, 2596, 2599, 2601, + /* 930 */ 2602, 2619, 2702, 2622, 2704, 2626, 2702, 2702, 2720, 2667, + /* 940 */ 2669, 2723, 2710, 2711, 2713, 2715, 2716, 2717, 2718, 2721, + /* 950 */ 2722, 2724, 2726, 2677, 2647, 2683, 2655, 2730, 2731, 2732, + /* 960 */ 2733, 2744, 2734, 2736, 2738, 2696, 2427, 2739, 2448, 2740, + /* 970 */ 2741, 2743, 2745, 2758, 2746, 2783, 2748, 2735, 2742, 2785, + /* 980 */ 2751, 2737, 2749, 2788, 2754, 2747, 2750, 2792, 2760, 2755, + /* 990 */ 2753, 2808, 2763, 2800, 2793, 2778, 2816, 2795, 2787, 2786, + /* 1000 */ 2796, 2814, 2817, 2818, 2819, 2822, 2824, }; -#define YY_REDUCE_COUNT (401) -#define YY_REDUCE_MIN (-528) -#define YY_REDUCE_MAX (3553) +#define YY_REDUCE_COUNT (402) +#define YY_REDUCE_MIN (-527) +#define YY_REDUCE_MAX (4194) static const short yy_reduce_ofst[] = { - /* 0 */ 319, -345, -203, 1135, 1259, 1285, 1454, 1491, 1521, 1603, - /* 10 */ -60, 651, 1652, 267, 1690, 1852, -98, 613, 1732, 1878, - /* 20 */ 1958, 1990, 2007, 2026, 2103, 2120, 2137, 2233, 2250, 2275, - /* 30 */ 2361, 2380, 2400, 2467, 2491, 2505, 2531, 2617, 2637, 2657, - /* 40 */ 2706, 2742, 2782, 2831, 2862, 2952, 2971, 2988, 3039, 3064, - /* 50 */ 3129, 3151, 3215, 3249, 3279, 3373, 3390, 3441, 3455, 3531, - /* 60 */ 3553, -347, -340, -471, 434, -449, 530, 901, 1015, -287, - /* 70 */ 910, 1154, 614, -493, 15, -75, -486, -109, -240, -433, - /* 80 */ -441, -282, -342, -320, -37, 236, -390, -70, -275, -353, - /* 90 */ -74, -95, 298, 309, 147, 597, 600, 662, 700, 738, - /* 100 */ 320, 377, 769, 797, 969, 1007, 586, -54, 141, 554, - /* 110 */ 1032, 1047, 292, 139, 1064, 342, 1068, 278, 1122, 1127, - /* 120 */ 1132, 1137, -224, 1144, 1213, 1258, 379, 1264, 516, 503, - /* 130 */ 623, 28, -466, -466, 330, 24, 82, 76, -528, -215, - /* 140 */ 221, 266, 348, 480, 722, 759, 932, 949, 967, 970, - /* 150 */ 1011, 1016, 1088, 1100, 1103, 1121, 1131, 1186, 1202, 138, - /* 160 */ 124, 316, 374, 491, 618, 713, 124, 237, 683, 768, - /* 170 */ 888, 446, -317, 765, 978, 494, 677, 608, 839, -208, - /* 180 */ 720, -370, 136, 1000, 346, 740, -272, 862, 317, 367, - /* 190 */ 387, 514, 640, 649, 399, 739, 779, 942, 874, 874, - /* 200 */ 908, 926, 1049, 1048, 1221, 874, 1255, 1255, 1252, 1286, - /* 210 */ 1307, 1254, 1165, 1167, 1183, 1269, 1192, 1255, 1290, 1353, - /* 220 */ 1236, 1368, 1355, 1298, 1352, 1361, 1255, 1281, 1292, 1270, - /* 230 */ 1310, 1282, 1371, 1414, 1362, 1346, 1442, 1365, 1357, 1447, - /* 240 */ 1374, 1450, 1386, 1462, 1465, 1410, 1468, 1415, 1420, 1473, - /* 250 */ 1474, 1476, 1419, 1426, 1427, 1429, 1470, 1475, 1486, 1488, - /* 260 */ 1478, 1493, 1495, 1497, 1503, 1502, 1508, 1506, 1421, 1499, - /* 270 */ 1500, 1458, 1501, 1511, 1441, 1507, 1515, 1509, 1455, 1514, - /* 280 */ 1469, 1517, 1518, 1529, 1522, 1537, 1504, 1505, 1510, 1512, - /* 290 */ 1513, 1516, 1519, 1530, 1531, 1536, 1541, 1532, 1544, 1547, - /* 300 */ 1545, 1498, 1526, 1527, 1457, 1466, 1480, 1546, 1494, 1520, - /* 310 */ 1533, 1538, 1572, 1525, 1580, 1539, 1438, 1549, 1444, 1550, - /* 320 */ 1456, 1481, 1484, 1477, 1489, 1528, 1563, 1540, 1542, 1490, - /* 330 */ 1487, 1482, 1649, 1558, 1548, 1551, 1659, 1653, 1655, 1597, - /* 340 */ 1619, 1620, 1621, 1622, 1607, 1625, 1614, 1674, 1633, 1624, - /* 350 */ 1677, 1566, 1640, 1630, 1636, 1686, 1668, 1715, 1696, 1664, - /* 360 */ 1669, 1675, 1680, 1683, 1684, 1689, 1693, 1697, 1701, 1704, - /* 370 */ 1705, 1713, 1718, 1719, 1725, 1728, 1729, 1730, 1731, 1735, - /* 380 */ 1736, 1678, 1738, 1727, 1742, 1726, 1740, 1745, 1746, 1741, - /* 390 */ 1720, 1747, 1650, 1643, 1700, 1722, 1762, 1765, 1755, 1777, - /* 400 */ 1761, 1760, + /* 0 */ -376, -346, 173, 203, 447, 710, 1023, 1296, 1529, 1569, + /* 10 */ 1801, 1842, 2086, 2129, 2301, 2324, -89, 750, 553, 998, + /* 20 */ 1104, 1373, 1926, 2450, 2469, 2536, 2603, 2624, 2693, 2774, + /* 30 */ 2799, 2820, 2932, 2952, 2971, 3038, 3105, 3125, 3202, 3269, + /* 40 */ 3292, 3315, 3380, 3403, 3426, 3493, 3575, 3605, 3672, 3695, + /* 50 */ 3718, 3783, 3806, 3829, 3896, 3963, 3993, 4060, 4083, 4106, + /* 60 */ 4171, 4194, -48, -242, -226, 61, -46, 852, 1185, 1200, + /* 70 */ 359, 1048, 1220, -390, -527, -387, -118, 284, 592, -408, + /* 80 */ -397, -445, -59, -214, 56, -328, 413, -394, -49, -201, + /* 90 */ -345, -99, 184, -14, 215, -252, 491, 502, 512, 573, + /* 100 */ 575, 395, 442, 616, 651, 734, 746, 460, -385, 538, + /* 110 */ 119, 749, 761, -19, 417, 772, -234, 808, -424, 887, + /* 120 */ 903, 911, 913, 229, 928, 968, 982, 188, 639, -431, + /* 130 */ 729, 335, 832, -476, -476, -93, -50, 689, -392, -65, + /* 140 */ 261, -16, 120, 294, 733, 736, 753, 778, 811, 816, + /* 150 */ 836, 933, 946, 950, 958, 975, 981, 1004, 1005, 1019, + /* 160 */ -429, 19, 118, 596, 642, 788, 786, 19, 323, 401, + /* 170 */ 340, 478, 888, -126, 833, 528, 869, 967, 296, 756, + /* 180 */ 725, 851, 523, 875, 848, 952, 988, 375, 1025, 318, + /* 190 */ 428, 445, 527, 607, 692, 520, 739, 781, 885, 966, + /* 200 */ 966, 745, 984, 995, 1016, 1257, 966, 1233, 1233, 1249, + /* 210 */ 1278, 1322, 1275, 1182, 1184, 1199, 1283, 1206, 1233, 1307, + /* 220 */ 1364, 1276, 1368, 1326, 1294, 1324, 1325, 1233, 1236, 1258, + /* 230 */ 1228, 1270, 1268, 1337, 1389, 1341, 1321, 1425, 1336, 1339, + /* 240 */ 1427, 1349, 1428, 1363, 1442, 1444, 1393, 1449, 1394, 1400, + /* 250 */ 1451, 1452, 1455, 1402, 1407, 1408, 1410, 1450, 1458, 1465, + /* 260 */ 1467, 1461, 1479, 1480, 1484, 1493, 1491, 1501, 1492, 1422, + /* 270 */ 1481, 1504, 1466, 1516, 1525, 1460, 1520, 1533, 1527, 1473, + /* 280 */ 1530, 1482, 1534, 1535, 1542, 1536, 1555, 1521, 1522, 1523, + /* 290 */ 1524, 1526, 1528, 1531, 1532, 1537, 1538, 1539, 1546, 1568, + /* 300 */ 1574, 1572, 1514, 1518, 1540, 1478, 1487, 1490, 1573, 1495, + /* 310 */ 1502, 1505, 1541, 1580, 1515, 1590, 1545, 1447, 1543, 1456, + /* 320 */ 1544, 1454, 1457, 1462, 1459, 1463, 1469, 1548, 1483, 1485, + /* 330 */ 1470, 1468, 1494, 1619, 1549, 1500, 1503, 1641, 1635, 1638, + /* 340 */ 1581, 1603, 1607, 1608, 1609, 1591, 1612, 1597, 1652, 1615, + /* 350 */ 1616, 1660, 1556, 1622, 1623, 1626, 1674, 1656, 1681, 1686, + /* 360 */ 1643, 1646, 1648, 1649, 1650, 1651, 1653, 1654, 1655, 1661, + /* 370 */ 1663, 1665, 1668, 1672, 1679, 1682, 1684, 1690, 1692, 1694, + /* 380 */ 1695, 1697, 1688, 1698, 1706, 1708, 1717, 1725, 1718, 1726, + /* 390 */ 1728, 1657, 1710, 1627, 1637, 1683, 1721, 1709, 1714, 1715, + /* 400 */ 1722, 1723, 1740, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 10 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 20 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 30 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 40 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 50 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 60 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 70 */ 2256, 2631, 2256, 2256, 2587, 2256, 2256, 2256, 2256, 2256, - /* 80 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2594, - /* 90 */ 2594, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 100 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 110 */ 2256, 2256, 2362, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 120 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 130 */ 2256, 2360, 2899, 2256, 3025, 2672, 2256, 2256, 2928, 2256, - /* 140 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 150 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 160 */ 2911, 2256, 2256, 2333, 2333, 2256, 2911, 2911, 2911, 2871, - /* 170 */ 2871, 2360, 2256, 2256, 2362, 2256, 2674, 2256, 2256, 2256, - /* 180 */ 2256, 2256, 2256, 2256, 2256, 2256, 2503, 2286, 2256, 2256, - /* 190 */ 2256, 2256, 2256, 2256, 2657, 2256, 2256, 2957, 2903, 2904, - /* 200 */ 3019, 2256, 2960, 2922, 2256, 2917, 2256, 2256, 2256, 2256, - /* 210 */ 2256, 2947, 2256, 2256, 2256, 2256, 2256, 2256, 2599, 2256, - /* 220 */ 2701, 2256, 2448, 2651, 2256, 2256, 2256, 2256, 2256, 3003, - /* 230 */ 2901, 2941, 2256, 2256, 2951, 2256, 2256, 2256, 2689, 2362, - /* 240 */ 2256, 2362, 2644, 2582, 2256, 2592, 2256, 2592, 2589, 2256, - /* 250 */ 2256, 2256, 2592, 2589, 2589, 2589, 2436, 2432, 2256, 2256, - /* 260 */ 2430, 2256, 2256, 2256, 2256, 2316, 2256, 2316, 2256, 2362, - /* 270 */ 2362, 2256, 2362, 2256, 2256, 2362, 2256, 2362, 2256, 2362, - /* 280 */ 2256, 2362, 2362, 2256, 2362, 2256, 2256, 2256, 2256, 2256, - /* 290 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 300 */ 2256, 2256, 2256, 2256, 2687, 2667, 2256, 2360, 2256, 2655, - /* 310 */ 2653, 2256, 2360, 2951, 2256, 2256, 2973, 2968, 2973, 2968, - /* 320 */ 2987, 2983, 2973, 2992, 2989, 2953, 2951, 2934, 2930, 3022, - /* 330 */ 3009, 3005, 2256, 2256, 2939, 2937, 2256, 2360, 2360, 2968, - /* 340 */ 2256, 2256, 2256, 2256, 2968, 2256, 2256, 2360, 2256, 2256, - /* 350 */ 2360, 2256, 2256, 2256, 2256, 2360, 2256, 2360, 2256, 2256, - /* 360 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 370 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 380 */ 2256, 2465, 2256, 2256, 2360, 2256, 2288, 2290, 2300, 2256, - /* 390 */ 2646, 3025, 2672, 2677, 2627, 2627, 2506, 2506, 3025, 2506, - /* 400 */ 2363, 2261, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 410 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2806, 2256, 2256, - /* 420 */ 2256, 2256, 2256, 2256, 2986, 2985, 2807, 2256, 2875, 2874, - /* 430 */ 2873, 2864, 2806, 2461, 2256, 2256, 2256, 2805, 2804, 2256, - /* 440 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2618, - /* 450 */ 2617, 2798, 2256, 2256, 2799, 2797, 2796, 2256, 2256, 2256, - /* 460 */ 2256, 2256, 2256, 2256, 2256, 2256, 2452, 2256, 2256, 2449, - /* 470 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 480 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 3006, 3010, 2256, - /* 490 */ 2256, 2256, 2256, 2900, 2256, 2256, 2256, 2256, 2777, 2256, - /* 500 */ 2256, 2256, 2256, 2256, 2745, 2740, 2731, 2722, 2737, 2728, - /* 510 */ 2716, 2734, 2725, 2713, 2710, 2256, 2474, 2256, 2256, 2256, - /* 520 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 530 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 540 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 550 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 560 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 570 */ 2256, 2256, 2588, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 580 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 590 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 600 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 610 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 620 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 630 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2603, 2256, 2256, - /* 640 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 650 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 660 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 670 */ 2256, 2305, 2784, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 680 */ 2256, 2256, 2256, 2256, 2256, 2256, 2787, 2256, 2256, 2788, - /* 690 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 700 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 710 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 720 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 730 */ 2256, 2256, 2407, 2406, 2256, 2256, 2256, 2256, 2256, 2256, - /* 740 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 750 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 760 */ 2256, 2256, 2789, 2256, 2256, 2256, 2256, 2671, 2256, 2256, - /* 770 */ 2779, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 780 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 3002, 2954, 2256, - /* 790 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 800 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 810 */ 2256, 2777, 2256, 2984, 2256, 2256, 2256, 2256, 2256, 2256, - /* 820 */ 2256, 3000, 2256, 3004, 2256, 2256, 2256, 2256, 2256, 2256, - /* 830 */ 2256, 2910, 2906, 2256, 2256, 2902, 2256, 2256, 2256, 2256, - /* 840 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 850 */ 2256, 2256, 2256, 2256, 2256, 2256, 2861, 2256, 2256, 2256, - /* 860 */ 2895, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2502, - /* 870 */ 2501, 2500, 2499, 2256, 2256, 2256, 2256, 2256, 2256, 2789, - /* 880 */ 2256, 2792, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 890 */ 2256, 2256, 2256, 2256, 2256, 2776, 2256, 2840, 2839, 2256, - /* 900 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2496, 2256, - /* 910 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 920 */ 2256, 2256, 2256, 2256, 2480, 2478, 2477, 2476, 2256, 2513, - /* 930 */ 2256, 2256, 2256, 2509, 2508, 2256, 2256, 2256, 2256, 2256, - /* 940 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 950 */ 2256, 2256, 2256, 2256, 2381, 2256, 2256, 2256, 2256, 2256, - /* 960 */ 2256, 2256, 2256, 2373, 2256, 2372, 2256, 2256, 2256, 2256, - /* 970 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 980 */ 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, 2256, - /* 990 */ 2256, 2256, 2256, 2256, 2256, 2285, 2256, 2256, 2256, 2256, - /* 1000 */ 2256, 2256, 2256, 2256, + /* 0 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 10 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 20 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 30 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 40 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 50 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 60 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 70 */ 2265, 2265, 2640, 2265, 2265, 2596, 2265, 2265, 2265, 2265, + /* 80 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 90 */ 2603, 2603, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 100 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 110 */ 2265, 2265, 2265, 2371, 2265, 2265, 2265, 2265, 2265, 2265, + /* 120 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 130 */ 2265, 2265, 2369, 2911, 2265, 3037, 2681, 2265, 2265, 2940, + /* 140 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 150 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 160 */ 2265, 2923, 2265, 2265, 2342, 2342, 2265, 2923, 2923, 2923, + /* 170 */ 2883, 2883, 2369, 2265, 2265, 2371, 2265, 2683, 2265, 2265, + /* 180 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2512, 2295, 2265, + /* 190 */ 2265, 2265, 2265, 2265, 2265, 2666, 2265, 2265, 2969, 2915, + /* 200 */ 2916, 3031, 2265, 2972, 2934, 2265, 2929, 2265, 2265, 2265, + /* 210 */ 2265, 2265, 2959, 2265, 2265, 2265, 2265, 2265, 2265, 2608, + /* 220 */ 2265, 2710, 2265, 2457, 2660, 2265, 2265, 2265, 2265, 2265, + /* 230 */ 3015, 2913, 2953, 2265, 2265, 2963, 2265, 2265, 2265, 2698, + /* 240 */ 2371, 2265, 2371, 2653, 2591, 2265, 2601, 2265, 2601, 2598, + /* 250 */ 2265, 2265, 2265, 2601, 2598, 2598, 2598, 2445, 2441, 2265, + /* 260 */ 2265, 2439, 2265, 2265, 2265, 2265, 2325, 2265, 2325, 2265, + /* 270 */ 2371, 2371, 2265, 2371, 2265, 2265, 2371, 2265, 2371, 2265, + /* 280 */ 2371, 2265, 2371, 2371, 2265, 2371, 2265, 2265, 2265, 2265, + /* 290 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 300 */ 2265, 2265, 2265, 2265, 2265, 2696, 2676, 2265, 2369, 2265, + /* 310 */ 2664, 2662, 2265, 2369, 2963, 2265, 2265, 2985, 2980, 2985, + /* 320 */ 2980, 2999, 2995, 2985, 3004, 3001, 2965, 2963, 2946, 2942, + /* 330 */ 3034, 3021, 3017, 2265, 2265, 2951, 2949, 2265, 2369, 2369, + /* 340 */ 2980, 2265, 2265, 2265, 2265, 2980, 2265, 2265, 2369, 2265, + /* 350 */ 2265, 2369, 2265, 2265, 2265, 2265, 2369, 2265, 2369, 2265, + /* 360 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 370 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 380 */ 2265, 2265, 2474, 2265, 2265, 2369, 2265, 2297, 2299, 2309, + /* 390 */ 2265, 2655, 3037, 2681, 2686, 2636, 2636, 2515, 2515, 3037, + /* 400 */ 2515, 2372, 2270, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 410 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2815, 2265, + /* 420 */ 2265, 2265, 2265, 2265, 2265, 2998, 2997, 2816, 2265, 2887, + /* 430 */ 2886, 2885, 2876, 2815, 2470, 2265, 2265, 2265, 2814, 2813, + /* 440 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 450 */ 2627, 2626, 2807, 2265, 2265, 2808, 2806, 2805, 2265, 2265, + /* 460 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2461, 2265, 2265, + /* 470 */ 2458, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 480 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 3018, 3022, + /* 490 */ 2265, 2265, 2265, 2265, 2912, 2265, 2265, 2265, 2265, 2265, + /* 500 */ 2786, 2265, 2265, 2265, 2265, 2265, 2754, 2749, 2740, 2731, + /* 510 */ 2746, 2737, 2725, 2743, 2734, 2722, 2719, 2265, 2483, 2265, + /* 520 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 530 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 540 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 550 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 560 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 570 */ 2265, 2265, 2265, 2265, 2597, 2265, 2265, 2265, 2265, 2265, + /* 580 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 590 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 600 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 610 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 620 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 630 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2612, + /* 640 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 650 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 660 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 670 */ 2265, 2265, 2265, 2314, 2793, 2265, 2265, 2265, 2265, 2265, + /* 680 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2796, 2265, + /* 690 */ 2265, 2797, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 700 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 710 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 720 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 730 */ 2265, 2265, 2265, 2265, 2416, 2415, 2265, 2265, 2265, 2265, + /* 740 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 750 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 760 */ 2265, 2265, 2265, 2265, 2798, 2265, 2265, 2265, 2265, 2680, + /* 770 */ 2265, 2265, 2788, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 780 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 3014, + /* 790 */ 2966, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 800 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 810 */ 2265, 2265, 2265, 2786, 2265, 2996, 2265, 2265, 2265, 2265, + /* 820 */ 2265, 2265, 2265, 3012, 2265, 3016, 2265, 2265, 2265, 2265, + /* 830 */ 2265, 2265, 2265, 2922, 2918, 2265, 2265, 2914, 2265, 2265, + /* 840 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 850 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2873, 2265, + /* 860 */ 2265, 2265, 2907, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 870 */ 2265, 2265, 2511, 2510, 2509, 2508, 2265, 2265, 2265, 2265, + /* 880 */ 2265, 2265, 2798, 2265, 2801, 2265, 2265, 2265, 2265, 2265, + /* 890 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2785, 2265, + /* 900 */ 2850, 2849, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 910 */ 2265, 2505, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 920 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2489, 2487, 2486, + /* 930 */ 2485, 2265, 2522, 2265, 2265, 2265, 2518, 2517, 2265, 2265, + /* 940 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 950 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2390, 2265, 2265, + /* 960 */ 2265, 2265, 2265, 2265, 2265, 2265, 2382, 2265, 2381, 2265, + /* 970 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 980 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, + /* 990 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2265, 2294, 2265, + /* 1000 */ 2265, 2265, 2265, 2265, 2265, 2265, 2265, }; /********** End of lemon-generated parsing tables *****************************/ @@ -1846,12 +1975,12 @@ static const YYCODETYPE yyFallback[] = { 0, /* BWLIMIT => nothing */ 0, /* START => nothing */ 0, /* TIMESTAMP => nothing */ - 337, /* END => ABORT */ + 338, /* END => ABORT */ 0, /* TABLE => nothing */ 0, /* NK_LP => nothing */ 0, /* NK_RP => nothing */ 0, /* USING => nothing */ - 337, /* FILE => ABORT */ + 338, /* FILE => ABORT */ 0, /* STABLE => nothing */ 0, /* COLUMN => nothing */ 0, /* MODIFY => nothing */ @@ -1919,7 +2048,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* VNODES => nothing */ 0, /* ALIVE => nothing */ 0, /* VIEWS => nothing */ - 337, /* VIEW => ABORT */ + 338, /* VIEW => ABORT */ 0, /* COMPACTS => nothing */ 0, /* NORMAL => nothing */ 0, /* CHILD => nothing */ @@ -1962,7 +2091,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* PAUSE => nothing */ 0, /* RESUME => nothing */ 0, /* PRIMARY => nothing */ - 337, /* KEY => ABORT */ + 338, /* KEY => ABORT */ 0, /* TRIGGER => nothing */ 0, /* AT_ONCE => nothing */ 0, /* WINDOW_CLOSE => nothing */ @@ -2002,9 +2131,10 @@ static const YYCODETYPE yyFallback[] = { 0, /* CAST => nothing */ 0, /* POSITION => nothing */ 0, /* IN => nothing */ - 337, /* FOR => ABORT */ + 338, /* FOR => ABORT */ 0, /* NOW => nothing */ 0, /* TODAY => nothing */ + 0, /* RAND => nothing */ 0, /* SUBSTR => nothing */ 0, /* SUBSTRING => nothing */ 0, /* BOTH => nothing */ @@ -2035,7 +2165,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* LEFT => nothing */ 0, /* RIGHT => nothing */ 0, /* OUTER => nothing */ - 337, /* SEMI => ABORT */ + 338, /* SEMI => ABORT */ 0, /* ANTI => nothing */ 0, /* ASOF => nothing */ 0, /* WINDOW => nothing */ @@ -2071,51 +2201,51 @@ static const YYCODETYPE yyFallback[] = { 0, /* ASC => nothing */ 0, /* NULLS => nothing */ 0, /* ABORT => nothing */ - 337, /* AFTER => ABORT */ - 337, /* ATTACH => ABORT */ - 337, /* BEFORE => ABORT */ - 337, /* BEGIN => ABORT */ - 337, /* BITAND => ABORT */ - 337, /* BITNOT => ABORT */ - 337, /* BITOR => ABORT */ - 337, /* BLOCKS => ABORT */ - 337, /* CHANGE => ABORT */ - 337, /* COMMA => ABORT */ - 337, /* CONCAT => ABORT */ - 337, /* CONFLICT => ABORT */ - 337, /* COPY => ABORT */ - 337, /* DEFERRED => ABORT */ - 337, /* DELIMITERS => ABORT */ - 337, /* DETACH => ABORT */ - 337, /* DIVIDE => ABORT */ - 337, /* DOT => ABORT */ - 337, /* EACH => ABORT */ - 337, /* FAIL => ABORT */ - 337, /* GLOB => ABORT */ - 337, /* ID => ABORT */ - 337, /* IMMEDIATE => ABORT */ - 337, /* IMPORT => ABORT */ - 337, /* INITIALLY => ABORT */ - 337, /* INSTEAD => ABORT */ - 337, /* ISNULL => ABORT */ - 337, /* MODULES => ABORT */ - 337, /* NK_BITNOT => ABORT */ - 337, /* NK_SEMI => ABORT */ - 337, /* NOTNULL => ABORT */ - 337, /* OF => ABORT */ - 337, /* PLUS => ABORT */ - 337, /* PRIVILEGE => ABORT */ - 337, /* RAISE => ABORT */ - 337, /* RESTRICT => ABORT */ - 337, /* ROW => ABORT */ - 337, /* STAR => ABORT */ - 337, /* STATEMENT => ABORT */ - 337, /* STRICT => ABORT */ - 337, /* STRING => ABORT */ - 337, /* TIMES => ABORT */ - 337, /* VALUES => ABORT */ - 337, /* VARIABLE => ABORT */ - 337, /* WAL => ABORT */ + 338, /* AFTER => ABORT */ + 338, /* ATTACH => ABORT */ + 338, /* BEFORE => ABORT */ + 338, /* BEGIN => ABORT */ + 338, /* BITAND => ABORT */ + 338, /* BITNOT => ABORT */ + 338, /* BITOR => ABORT */ + 338, /* BLOCKS => ABORT */ + 338, /* CHANGE => ABORT */ + 338, /* COMMA => ABORT */ + 338, /* CONCAT => ABORT */ + 338, /* CONFLICT => ABORT */ + 338, /* COPY => ABORT */ + 338, /* DEFERRED => ABORT */ + 338, /* DELIMITERS => ABORT */ + 338, /* DETACH => ABORT */ + 338, /* DIVIDE => ABORT */ + 338, /* DOT => ABORT */ + 338, /* EACH => ABORT */ + 338, /* FAIL => ABORT */ + 338, /* GLOB => ABORT */ + 338, /* ID => ABORT */ + 338, /* IMMEDIATE => ABORT */ + 338, /* IMPORT => ABORT */ + 338, /* INITIALLY => ABORT */ + 338, /* INSTEAD => ABORT */ + 338, /* ISNULL => ABORT */ + 338, /* MODULES => ABORT */ + 338, /* NK_BITNOT => ABORT */ + 338, /* NK_SEMI => ABORT */ + 338, /* NOTNULL => ABORT */ + 338, /* OF => ABORT */ + 338, /* PLUS => ABORT */ + 338, /* PRIVILEGE => ABORT */ + 338, /* RAISE => ABORT */ + 338, /* RESTRICT => ABORT */ + 338, /* ROW => ABORT */ + 338, /* STAR => ABORT */ + 338, /* STATEMENT => ABORT */ + 338, /* STRICT => ABORT */ + 338, /* STRING => ABORT */ + 338, /* TIMES => ABORT */ + 338, /* VALUES => ABORT */ + 338, /* VARIABLE => ABORT */ + 338, /* WAL => ABORT */ }; #endif /* YYFALLBACK */ @@ -2476,299 +2606,301 @@ static const char *const yyTokenName[] = { /* 269 */ "FOR", /* 270 */ "NOW", /* 271 */ "TODAY", - /* 272 */ "SUBSTR", - /* 273 */ "SUBSTRING", - /* 274 */ "BOTH", - /* 275 */ "TRAILING", - /* 276 */ "LEADING", - /* 277 */ "TIMEZONE", - /* 278 */ "CLIENT_VERSION", - /* 279 */ "SERVER_VERSION", - /* 280 */ "SERVER_STATUS", - /* 281 */ "CURRENT_USER", - /* 282 */ "PI", - /* 283 */ "CASE", - /* 284 */ "WHEN", - /* 285 */ "THEN", - /* 286 */ "ELSE", - /* 287 */ "BETWEEN", - /* 288 */ "IS", - /* 289 */ "NK_LT", - /* 290 */ "NK_GT", - /* 291 */ "NK_LE", - /* 292 */ "NK_GE", - /* 293 */ "NK_NE", - /* 294 */ "MATCH", - /* 295 */ "NMATCH", - /* 296 */ "CONTAINS", - /* 297 */ "JOIN", - /* 298 */ "INNER", - /* 299 */ "LEFT", - /* 300 */ "RIGHT", - /* 301 */ "OUTER", - /* 302 */ "SEMI", - /* 303 */ "ANTI", - /* 304 */ "ASOF", - /* 305 */ "WINDOW", - /* 306 */ "WINDOW_OFFSET", - /* 307 */ "JLIMIT", - /* 308 */ "SELECT", - /* 309 */ "NK_HINT", - /* 310 */ "DISTINCT", - /* 311 */ "WHERE", - /* 312 */ "PARTITION", - /* 313 */ "BY", - /* 314 */ "SESSION", - /* 315 */ "STATE_WINDOW", - /* 316 */ "EVENT_WINDOW", - /* 317 */ "COUNT_WINDOW", - /* 318 */ "SLIDING", - /* 319 */ "FILL", - /* 320 */ "VALUE", - /* 321 */ "VALUE_F", - /* 322 */ "NONE", - /* 323 */ "PREV", - /* 324 */ "NULL_F", - /* 325 */ "LINEAR", - /* 326 */ "NEXT", - /* 327 */ "HAVING", - /* 328 */ "RANGE", - /* 329 */ "EVERY", - /* 330 */ "ORDER", - /* 331 */ "SLIMIT", - /* 332 */ "SOFFSET", - /* 333 */ "LIMIT", - /* 334 */ "OFFSET", - /* 335 */ "ASC", - /* 336 */ "NULLS", - /* 337 */ "ABORT", - /* 338 */ "AFTER", - /* 339 */ "ATTACH", - /* 340 */ "BEFORE", - /* 341 */ "BEGIN", - /* 342 */ "BITAND", - /* 343 */ "BITNOT", - /* 344 */ "BITOR", - /* 345 */ "BLOCKS", - /* 346 */ "CHANGE", - /* 347 */ "COMMA", - /* 348 */ "CONCAT", - /* 349 */ "CONFLICT", - /* 350 */ "COPY", - /* 351 */ "DEFERRED", - /* 352 */ "DELIMITERS", - /* 353 */ "DETACH", - /* 354 */ "DIVIDE", - /* 355 */ "DOT", - /* 356 */ "EACH", - /* 357 */ "FAIL", - /* 358 */ "GLOB", - /* 359 */ "ID", - /* 360 */ "IMMEDIATE", - /* 361 */ "IMPORT", - /* 362 */ "INITIALLY", - /* 363 */ "INSTEAD", - /* 364 */ "ISNULL", - /* 365 */ "MODULES", - /* 366 */ "NK_BITNOT", - /* 367 */ "NK_SEMI", - /* 368 */ "NOTNULL", - /* 369 */ "OF", - /* 370 */ "PLUS", - /* 371 */ "PRIVILEGE", - /* 372 */ "RAISE", - /* 373 */ "RESTRICT", - /* 374 */ "ROW", - /* 375 */ "STAR", - /* 376 */ "STATEMENT", - /* 377 */ "STRICT", - /* 378 */ "STRING", - /* 379 */ "TIMES", - /* 380 */ "VALUES", - /* 381 */ "VARIABLE", - /* 382 */ "WAL", - /* 383 */ "cmd", - /* 384 */ "account_options", - /* 385 */ "alter_account_options", - /* 386 */ "literal", - /* 387 */ "alter_account_option", - /* 388 */ "ip_range_list", - /* 389 */ "white_list", - /* 390 */ "white_list_opt", - /* 391 */ "is_import_opt", - /* 392 */ "is_createdb_opt", - /* 393 */ "user_name", - /* 394 */ "sysinfo_opt", - /* 395 */ "privileges", - /* 396 */ "priv_level", - /* 397 */ "with_opt", - /* 398 */ "priv_type_list", - /* 399 */ "priv_type", - /* 400 */ "db_name", - /* 401 */ "table_name", - /* 402 */ "topic_name", - /* 403 */ "search_condition", - /* 404 */ "dnode_endpoint", - /* 405 */ "force_opt", - /* 406 */ "unsafe_opt", - /* 407 */ "not_exists_opt", - /* 408 */ "db_options", - /* 409 */ "exists_opt", - /* 410 */ "alter_db_options", - /* 411 */ "speed_opt", - /* 412 */ "start_opt", - /* 413 */ "end_opt", - /* 414 */ "integer_list", - /* 415 */ "variable_list", - /* 416 */ "retention_list", - /* 417 */ "signed", - /* 418 */ "alter_db_option", - /* 419 */ "retention", - /* 420 */ "full_table_name", - /* 421 */ "column_def_list", - /* 422 */ "tags_def_opt", - /* 423 */ "table_options", - /* 424 */ "multi_create_clause", - /* 425 */ "tag_list_opt", - /* 426 */ "tags_def", - /* 427 */ "multi_drop_clause", - /* 428 */ "alter_table_clause", - /* 429 */ "alter_table_options", - /* 430 */ "column_name", - /* 431 */ "type_name", - /* 432 */ "column_options", - /* 433 */ "tags_literal", - /* 434 */ "create_subtable_clause", - /* 435 */ "specific_cols_opt", - /* 436 */ "tags_literal_list", - /* 437 */ "drop_table_clause", - /* 438 */ "col_name_list", - /* 439 */ "tag_def_list", - /* 440 */ "tag_def", - /* 441 */ "column_def", - /* 442 */ "type_name_default_len", - /* 443 */ "duration_list", - /* 444 */ "rollup_func_list", - /* 445 */ "alter_table_option", - /* 446 */ "duration_literal", - /* 447 */ "rollup_func_name", - /* 448 */ "function_name", - /* 449 */ "col_name", - /* 450 */ "db_kind_opt", - /* 451 */ "table_kind_db_name_cond_opt", - /* 452 */ "like_pattern_opt", - /* 453 */ "db_name_cond_opt", - /* 454 */ "table_name_cond", - /* 455 */ "from_db_opt", - /* 456 */ "table_kind", - /* 457 */ "tag_item", - /* 458 */ "column_alias", - /* 459 */ "tsma_name", - /* 460 */ "tsma_func_list", - /* 461 */ "full_tsma_name", - /* 462 */ "func_list", - /* 463 */ "index_options", - /* 464 */ "full_index_name", - /* 465 */ "index_name", - /* 466 */ "sliding_opt", - /* 467 */ "sma_stream_opt", - /* 468 */ "func", - /* 469 */ "sma_func_name", - /* 470 */ "expression_list", - /* 471 */ "with_meta", - /* 472 */ "query_or_subquery", - /* 473 */ "where_clause_opt", - /* 474 */ "cgroup_name", - /* 475 */ "analyze_opt", - /* 476 */ "explain_options", - /* 477 */ "insert_query", - /* 478 */ "or_replace_opt", - /* 479 */ "agg_func_opt", - /* 480 */ "bufsize_opt", - /* 481 */ "language_opt", - /* 482 */ "full_view_name", - /* 483 */ "view_name", - /* 484 */ "stream_name", - /* 485 */ "stream_options", - /* 486 */ "col_list_opt", - /* 487 */ "tag_def_or_ref_opt", - /* 488 */ "subtable_opt", - /* 489 */ "ignore_opt", - /* 490 */ "column_stream_def_list", - /* 491 */ "column_stream_def", - /* 492 */ "stream_col_options", - /* 493 */ "expression", - /* 494 */ "on_vgroup_id", - /* 495 */ "dnode_list", - /* 496 */ "literal_func", - /* 497 */ "signed_literal", - /* 498 */ "literal_list", - /* 499 */ "table_alias", - /* 500 */ "expr_or_subquery", - /* 501 */ "pseudo_column", - /* 502 */ "column_reference", - /* 503 */ "function_expression", - /* 504 */ "case_when_expression", - /* 505 */ "star_func", - /* 506 */ "star_func_para_list", - /* 507 */ "trim_specification_type", - /* 508 */ "substr_func", - /* 509 */ "noarg_func", - /* 510 */ "other_para_list", - /* 511 */ "star_func_para", - /* 512 */ "when_then_list", - /* 513 */ "case_when_else_opt", - /* 514 */ "common_expression", - /* 515 */ "when_then_expr", - /* 516 */ "predicate", - /* 517 */ "compare_op", - /* 518 */ "in_op", - /* 519 */ "in_predicate_value", - /* 520 */ "boolean_value_expression", - /* 521 */ "boolean_primary", - /* 522 */ "from_clause_opt", - /* 523 */ "table_reference_list", - /* 524 */ "table_reference", - /* 525 */ "table_primary", - /* 526 */ "joined_table", - /* 527 */ "alias_opt", - /* 528 */ "subquery", - /* 529 */ "parenthesized_joined_table", - /* 530 */ "join_type", - /* 531 */ "join_subtype", - /* 532 */ "join_on_clause_opt", - /* 533 */ "window_offset_clause_opt", - /* 534 */ "jlimit_clause_opt", - /* 535 */ "window_offset_literal", - /* 536 */ "query_specification", - /* 537 */ "hint_list", - /* 538 */ "set_quantifier_opt", - /* 539 */ "tag_mode_opt", - /* 540 */ "select_list", - /* 541 */ "partition_by_clause_opt", - /* 542 */ "range_opt", - /* 543 */ "every_opt", - /* 544 */ "fill_opt", - /* 545 */ "twindow_clause_opt", - /* 546 */ "group_by_clause_opt", - /* 547 */ "having_clause_opt", - /* 548 */ "select_item", - /* 549 */ "partition_list", - /* 550 */ "partition_item", - /* 551 */ "interval_sliding_duration_literal", - /* 552 */ "fill_mode", - /* 553 */ "group_by_list", - /* 554 */ "query_expression", - /* 555 */ "query_simple", - /* 556 */ "order_by_clause_opt", - /* 557 */ "slimit_clause_opt", - /* 558 */ "limit_clause_opt", - /* 559 */ "union_query_expression", - /* 560 */ "query_simple_or_subquery", - /* 561 */ "sort_specification_list", - /* 562 */ "sort_specification", - /* 563 */ "ordering_specification_opt", - /* 564 */ "null_ordering_opt", + /* 272 */ "RAND", + /* 273 */ "SUBSTR", + /* 274 */ "SUBSTRING", + /* 275 */ "BOTH", + /* 276 */ "TRAILING", + /* 277 */ "LEADING", + /* 278 */ "TIMEZONE", + /* 279 */ "CLIENT_VERSION", + /* 280 */ "SERVER_VERSION", + /* 281 */ "SERVER_STATUS", + /* 282 */ "CURRENT_USER", + /* 283 */ "PI", + /* 284 */ "CASE", + /* 285 */ "WHEN", + /* 286 */ "THEN", + /* 287 */ "ELSE", + /* 288 */ "BETWEEN", + /* 289 */ "IS", + /* 290 */ "NK_LT", + /* 291 */ "NK_GT", + /* 292 */ "NK_LE", + /* 293 */ "NK_GE", + /* 294 */ "NK_NE", + /* 295 */ "MATCH", + /* 296 */ "NMATCH", + /* 297 */ "CONTAINS", + /* 298 */ "JOIN", + /* 299 */ "INNER", + /* 300 */ "LEFT", + /* 301 */ "RIGHT", + /* 302 */ "OUTER", + /* 303 */ "SEMI", + /* 304 */ "ANTI", + /* 305 */ "ASOF", + /* 306 */ "WINDOW", + /* 307 */ "WINDOW_OFFSET", + /* 308 */ "JLIMIT", + /* 309 */ "SELECT", + /* 310 */ "NK_HINT", + /* 311 */ "DISTINCT", + /* 312 */ "WHERE", + /* 313 */ "PARTITION", + /* 314 */ "BY", + /* 315 */ "SESSION", + /* 316 */ "STATE_WINDOW", + /* 317 */ "EVENT_WINDOW", + /* 318 */ "COUNT_WINDOW", + /* 319 */ "SLIDING", + /* 320 */ "FILL", + /* 321 */ "VALUE", + /* 322 */ "VALUE_F", + /* 323 */ "NONE", + /* 324 */ "PREV", + /* 325 */ "NULL_F", + /* 326 */ "LINEAR", + /* 327 */ "NEXT", + /* 328 */ "HAVING", + /* 329 */ "RANGE", + /* 330 */ "EVERY", + /* 331 */ "ORDER", + /* 332 */ "SLIMIT", + /* 333 */ "SOFFSET", + /* 334 */ "LIMIT", + /* 335 */ "OFFSET", + /* 336 */ "ASC", + /* 337 */ "NULLS", + /* 338 */ "ABORT", + /* 339 */ "AFTER", + /* 340 */ "ATTACH", + /* 341 */ "BEFORE", + /* 342 */ "BEGIN", + /* 343 */ "BITAND", + /* 344 */ "BITNOT", + /* 345 */ "BITOR", + /* 346 */ "BLOCKS", + /* 347 */ "CHANGE", + /* 348 */ "COMMA", + /* 349 */ "CONCAT", + /* 350 */ "CONFLICT", + /* 351 */ "COPY", + /* 352 */ "DEFERRED", + /* 353 */ "DELIMITERS", + /* 354 */ "DETACH", + /* 355 */ "DIVIDE", + /* 356 */ "DOT", + /* 357 */ "EACH", + /* 358 */ "FAIL", + /* 359 */ "GLOB", + /* 360 */ "ID", + /* 361 */ "IMMEDIATE", + /* 362 */ "IMPORT", + /* 363 */ "INITIALLY", + /* 364 */ "INSTEAD", + /* 365 */ "ISNULL", + /* 366 */ "MODULES", + /* 367 */ "NK_BITNOT", + /* 368 */ "NK_SEMI", + /* 369 */ "NOTNULL", + /* 370 */ "OF", + /* 371 */ "PLUS", + /* 372 */ "PRIVILEGE", + /* 373 */ "RAISE", + /* 374 */ "RESTRICT", + /* 375 */ "ROW", + /* 376 */ "STAR", + /* 377 */ "STATEMENT", + /* 378 */ "STRICT", + /* 379 */ "STRING", + /* 380 */ "TIMES", + /* 381 */ "VALUES", + /* 382 */ "VARIABLE", + /* 383 */ "WAL", + /* 384 */ "cmd", + /* 385 */ "account_options", + /* 386 */ "alter_account_options", + /* 387 */ "literal", + /* 388 */ "alter_account_option", + /* 389 */ "ip_range_list", + /* 390 */ "white_list", + /* 391 */ "white_list_opt", + /* 392 */ "is_import_opt", + /* 393 */ "is_createdb_opt", + /* 394 */ "user_name", + /* 395 */ "sysinfo_opt", + /* 396 */ "privileges", + /* 397 */ "priv_level", + /* 398 */ "with_opt", + /* 399 */ "priv_type_list", + /* 400 */ "priv_type", + /* 401 */ "db_name", + /* 402 */ "table_name", + /* 403 */ "topic_name", + /* 404 */ "search_condition", + /* 405 */ "dnode_endpoint", + /* 406 */ "force_opt", + /* 407 */ "unsafe_opt", + /* 408 */ "not_exists_opt", + /* 409 */ "db_options", + /* 410 */ "exists_opt", + /* 411 */ "alter_db_options", + /* 412 */ "speed_opt", + /* 413 */ "start_opt", + /* 414 */ "end_opt", + /* 415 */ "integer_list", + /* 416 */ "variable_list", + /* 417 */ "retention_list", + /* 418 */ "signed", + /* 419 */ "alter_db_option", + /* 420 */ "retention", + /* 421 */ "full_table_name", + /* 422 */ "column_def_list", + /* 423 */ "tags_def_opt", + /* 424 */ "table_options", + /* 425 */ "multi_create_clause", + /* 426 */ "tag_list_opt", + /* 427 */ "tags_def", + /* 428 */ "multi_drop_clause", + /* 429 */ "alter_table_clause", + /* 430 */ "alter_table_options", + /* 431 */ "column_name", + /* 432 */ "type_name", + /* 433 */ "column_options", + /* 434 */ "tags_literal", + /* 435 */ "create_subtable_clause", + /* 436 */ "specific_cols_opt", + /* 437 */ "tags_literal_list", + /* 438 */ "drop_table_clause", + /* 439 */ "col_name_list", + /* 440 */ "tag_def_list", + /* 441 */ "tag_def", + /* 442 */ "column_def", + /* 443 */ "type_name_default_len", + /* 444 */ "duration_list", + /* 445 */ "rollup_func_list", + /* 446 */ "alter_table_option", + /* 447 */ "duration_literal", + /* 448 */ "rollup_func_name", + /* 449 */ "function_name", + /* 450 */ "col_name", + /* 451 */ "db_kind_opt", + /* 452 */ "table_kind_db_name_cond_opt", + /* 453 */ "like_pattern_opt", + /* 454 */ "db_name_cond_opt", + /* 455 */ "table_name_cond", + /* 456 */ "from_db_opt", + /* 457 */ "table_kind", + /* 458 */ "tag_item", + /* 459 */ "column_alias", + /* 460 */ "tsma_name", + /* 461 */ "tsma_func_list", + /* 462 */ "full_tsma_name", + /* 463 */ "func_list", + /* 464 */ "index_options", + /* 465 */ "full_index_name", + /* 466 */ "index_name", + /* 467 */ "sliding_opt", + /* 468 */ "sma_stream_opt", + /* 469 */ "func", + /* 470 */ "sma_func_name", + /* 471 */ "expression_list", + /* 472 */ "with_meta", + /* 473 */ "query_or_subquery", + /* 474 */ "where_clause_opt", + /* 475 */ "cgroup_name", + /* 476 */ "analyze_opt", + /* 477 */ "explain_options", + /* 478 */ "insert_query", + /* 479 */ "or_replace_opt", + /* 480 */ "agg_func_opt", + /* 481 */ "bufsize_opt", + /* 482 */ "language_opt", + /* 483 */ "full_view_name", + /* 484 */ "view_name", + /* 485 */ "stream_name", + /* 486 */ "stream_options", + /* 487 */ "col_list_opt", + /* 488 */ "tag_def_or_ref_opt", + /* 489 */ "subtable_opt", + /* 490 */ "ignore_opt", + /* 491 */ "column_stream_def_list", + /* 492 */ "column_stream_def", + /* 493 */ "stream_col_options", + /* 494 */ "expression", + /* 495 */ "on_vgroup_id", + /* 496 */ "dnode_list", + /* 497 */ "literal_func", + /* 498 */ "signed_literal", + /* 499 */ "literal_list", + /* 500 */ "table_alias", + /* 501 */ "expr_or_subquery", + /* 502 */ "pseudo_column", + /* 503 */ "column_reference", + /* 504 */ "function_expression", + /* 505 */ "case_when_expression", + /* 506 */ "star_func", + /* 507 */ "star_func_para_list", + /* 508 */ "trim_specification_type", + /* 509 */ "substr_func", + /* 510 */ "rand_func", + /* 511 */ "noarg_func", + /* 512 */ "other_para_list", + /* 513 */ "star_func_para", + /* 514 */ "when_then_list", + /* 515 */ "case_when_else_opt", + /* 516 */ "common_expression", + /* 517 */ "when_then_expr", + /* 518 */ "predicate", + /* 519 */ "compare_op", + /* 520 */ "in_op", + /* 521 */ "in_predicate_value", + /* 522 */ "boolean_value_expression", + /* 523 */ "boolean_primary", + /* 524 */ "from_clause_opt", + /* 525 */ "table_reference_list", + /* 526 */ "table_reference", + /* 527 */ "table_primary", + /* 528 */ "joined_table", + /* 529 */ "alias_opt", + /* 530 */ "subquery", + /* 531 */ "parenthesized_joined_table", + /* 532 */ "join_type", + /* 533 */ "join_subtype", + /* 534 */ "join_on_clause_opt", + /* 535 */ "window_offset_clause_opt", + /* 536 */ "jlimit_clause_opt", + /* 537 */ "window_offset_literal", + /* 538 */ "query_specification", + /* 539 */ "hint_list", + /* 540 */ "set_quantifier_opt", + /* 541 */ "tag_mode_opt", + /* 542 */ "select_list", + /* 543 */ "partition_by_clause_opt", + /* 544 */ "range_opt", + /* 545 */ "every_opt", + /* 546 */ "fill_opt", + /* 547 */ "twindow_clause_opt", + /* 548 */ "group_by_clause_opt", + /* 549 */ "having_clause_opt", + /* 550 */ "select_item", + /* 551 */ "partition_list", + /* 552 */ "partition_item", + /* 553 */ "interval_sliding_duration_literal", + /* 554 */ "fill_mode", + /* 555 */ "group_by_list", + /* 556 */ "query_expression", + /* 557 */ "query_simple", + /* 558 */ "order_by_clause_opt", + /* 559 */ "slimit_clause_opt", + /* 560 */ "limit_clause_opt", + /* 561 */ "union_query_expression", + /* 562 */ "query_simple_or_subquery", + /* 563 */ "sort_specification_list", + /* 564 */ "sort_specification", + /* 565 */ "ordering_specification_opt", + /* 566 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -3355,196 +3487,199 @@ static const char *const yyRuleName[] = { /* 576 */ "function_expression ::= substr_func NK_LP expr_or_subquery FROM expr_or_subquery FOR expr_or_subquery NK_RP", /* 577 */ "function_expression ::= REPLACE NK_LP expression_list NK_RP", /* 578 */ "function_expression ::= literal_func", - /* 579 */ "literal_func ::= noarg_func NK_LP NK_RP", - /* 580 */ "literal_func ::= NOW", - /* 581 */ "literal_func ::= TODAY", - /* 582 */ "substr_func ::= SUBSTR", - /* 583 */ "substr_func ::= SUBSTRING", - /* 584 */ "trim_specification_type ::= BOTH", - /* 585 */ "trim_specification_type ::= TRAILING", - /* 586 */ "trim_specification_type ::= LEADING", - /* 587 */ "noarg_func ::= NOW", - /* 588 */ "noarg_func ::= TODAY", - /* 589 */ "noarg_func ::= TIMEZONE", - /* 590 */ "noarg_func ::= DATABASE", - /* 591 */ "noarg_func ::= CLIENT_VERSION", - /* 592 */ "noarg_func ::= SERVER_VERSION", - /* 593 */ "noarg_func ::= SERVER_STATUS", - /* 594 */ "noarg_func ::= CURRENT_USER", - /* 595 */ "noarg_func ::= USER", - /* 596 */ "noarg_func ::= PI", - /* 597 */ "star_func ::= COUNT", - /* 598 */ "star_func ::= FIRST", - /* 599 */ "star_func ::= LAST", - /* 600 */ "star_func ::= LAST_ROW", - /* 601 */ "star_func_para_list ::= NK_STAR", - /* 602 */ "star_func_para_list ::= other_para_list", - /* 603 */ "other_para_list ::= star_func_para", - /* 604 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", - /* 605 */ "star_func_para ::= expr_or_subquery", - /* 606 */ "star_func_para ::= table_name NK_DOT NK_STAR", - /* 607 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", - /* 608 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", - /* 609 */ "when_then_list ::= when_then_expr", - /* 610 */ "when_then_list ::= when_then_list when_then_expr", - /* 611 */ "when_then_expr ::= WHEN common_expression THEN common_expression", - /* 612 */ "case_when_else_opt ::=", - /* 613 */ "case_when_else_opt ::= ELSE common_expression", - /* 614 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", - /* 615 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", - /* 616 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", - /* 617 */ "predicate ::= expr_or_subquery IS NULL", - /* 618 */ "predicate ::= expr_or_subquery IS NOT NULL", - /* 619 */ "predicate ::= expr_or_subquery in_op in_predicate_value", - /* 620 */ "compare_op ::= NK_LT", - /* 621 */ "compare_op ::= NK_GT", - /* 622 */ "compare_op ::= NK_LE", - /* 623 */ "compare_op ::= NK_GE", - /* 624 */ "compare_op ::= NK_NE", - /* 625 */ "compare_op ::= NK_EQ", - /* 626 */ "compare_op ::= LIKE", - /* 627 */ "compare_op ::= NOT LIKE", - /* 628 */ "compare_op ::= MATCH", - /* 629 */ "compare_op ::= NMATCH", - /* 630 */ "compare_op ::= CONTAINS", - /* 631 */ "in_op ::= IN", - /* 632 */ "in_op ::= NOT IN", - /* 633 */ "in_predicate_value ::= NK_LP literal_list NK_RP", - /* 634 */ "boolean_value_expression ::= boolean_primary", - /* 635 */ "boolean_value_expression ::= NOT boolean_primary", - /* 636 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 637 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 638 */ "boolean_primary ::= predicate", - /* 639 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 640 */ "common_expression ::= expr_or_subquery", - /* 641 */ "common_expression ::= boolean_value_expression", - /* 642 */ "from_clause_opt ::=", - /* 643 */ "from_clause_opt ::= FROM table_reference_list", - /* 644 */ "table_reference_list ::= table_reference", - /* 645 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 646 */ "table_reference ::= table_primary", - /* 647 */ "table_reference ::= joined_table", - /* 648 */ "table_primary ::= table_name alias_opt", - /* 649 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 650 */ "table_primary ::= subquery alias_opt", - /* 651 */ "table_primary ::= parenthesized_joined_table", - /* 652 */ "alias_opt ::=", - /* 653 */ "alias_opt ::= table_alias", - /* 654 */ "alias_opt ::= AS table_alias", - /* 655 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 656 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 657 */ "joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt", - /* 658 */ "join_type ::=", - /* 659 */ "join_type ::= INNER", - /* 660 */ "join_type ::= LEFT", - /* 661 */ "join_type ::= RIGHT", - /* 662 */ "join_type ::= FULL", - /* 663 */ "join_subtype ::=", - /* 664 */ "join_subtype ::= OUTER", - /* 665 */ "join_subtype ::= SEMI", - /* 666 */ "join_subtype ::= ANTI", - /* 667 */ "join_subtype ::= ASOF", - /* 668 */ "join_subtype ::= WINDOW", - /* 669 */ "join_on_clause_opt ::=", - /* 670 */ "join_on_clause_opt ::= ON search_condition", - /* 671 */ "window_offset_clause_opt ::=", - /* 672 */ "window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP", - /* 673 */ "window_offset_literal ::= NK_VARIABLE", - /* 674 */ "window_offset_literal ::= NK_MINUS NK_VARIABLE", - /* 675 */ "jlimit_clause_opt ::=", - /* 676 */ "jlimit_clause_opt ::= JLIMIT NK_INTEGER", - /* 677 */ "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", - /* 678 */ "hint_list ::=", - /* 679 */ "hint_list ::= NK_HINT", - /* 680 */ "tag_mode_opt ::=", - /* 681 */ "tag_mode_opt ::= TAGS", - /* 682 */ "set_quantifier_opt ::=", - /* 683 */ "set_quantifier_opt ::= DISTINCT", - /* 684 */ "set_quantifier_opt ::= ALL", - /* 685 */ "select_list ::= select_item", - /* 686 */ "select_list ::= select_list NK_COMMA select_item", - /* 687 */ "select_item ::= NK_STAR", - /* 688 */ "select_item ::= common_expression", - /* 689 */ "select_item ::= common_expression column_alias", - /* 690 */ "select_item ::= common_expression AS column_alias", - /* 691 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 692 */ "where_clause_opt ::=", - /* 693 */ "where_clause_opt ::= WHERE search_condition", - /* 694 */ "partition_by_clause_opt ::=", - /* 695 */ "partition_by_clause_opt ::= PARTITION BY partition_list", - /* 696 */ "partition_list ::= partition_item", - /* 697 */ "partition_list ::= partition_list NK_COMMA partition_item", - /* 698 */ "partition_item ::= expr_or_subquery", - /* 699 */ "partition_item ::= expr_or_subquery column_alias", - /* 700 */ "partition_item ::= expr_or_subquery AS column_alias", - /* 701 */ "twindow_clause_opt ::=", - /* 702 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP", - /* 703 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", - /* 704 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt", - /* 705 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt", - /* 706 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", - /* 707 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP", - /* 708 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 709 */ "sliding_opt ::=", - /* 710 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP", - /* 711 */ "interval_sliding_duration_literal ::= NK_VARIABLE", - /* 712 */ "interval_sliding_duration_literal ::= NK_STRING", - /* 713 */ "interval_sliding_duration_literal ::= NK_INTEGER", - /* 714 */ "fill_opt ::=", - /* 715 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 716 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", - /* 717 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", - /* 718 */ "fill_mode ::= NONE", - /* 719 */ "fill_mode ::= PREV", - /* 720 */ "fill_mode ::= NULL", - /* 721 */ "fill_mode ::= NULL_F", - /* 722 */ "fill_mode ::= LINEAR", - /* 723 */ "fill_mode ::= NEXT", - /* 724 */ "group_by_clause_opt ::=", - /* 725 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 726 */ "group_by_list ::= expr_or_subquery", - /* 727 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", - /* 728 */ "having_clause_opt ::=", - /* 729 */ "having_clause_opt ::= HAVING search_condition", - /* 730 */ "range_opt ::=", - /* 731 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", - /* 732 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", - /* 733 */ "every_opt ::=", - /* 734 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", - /* 735 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 736 */ "query_simple ::= query_specification", - /* 737 */ "query_simple ::= union_query_expression", - /* 738 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", - /* 739 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", - /* 740 */ "query_simple_or_subquery ::= query_simple", - /* 741 */ "query_simple_or_subquery ::= subquery", - /* 742 */ "query_or_subquery ::= query_expression", - /* 743 */ "query_or_subquery ::= subquery", - /* 744 */ "order_by_clause_opt ::=", - /* 745 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 746 */ "slimit_clause_opt ::=", - /* 747 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 748 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 749 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 750 */ "limit_clause_opt ::=", - /* 751 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 752 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 753 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 754 */ "subquery ::= NK_LP query_expression NK_RP", - /* 755 */ "subquery ::= NK_LP subquery NK_RP", - /* 756 */ "search_condition ::= common_expression", - /* 757 */ "sort_specification_list ::= sort_specification", - /* 758 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 759 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", - /* 760 */ "ordering_specification_opt ::=", - /* 761 */ "ordering_specification_opt ::= ASC", - /* 762 */ "ordering_specification_opt ::= DESC", - /* 763 */ "null_ordering_opt ::=", - /* 764 */ "null_ordering_opt ::= NULLS FIRST", - /* 765 */ "null_ordering_opt ::= NULLS LAST", - /* 766 */ "column_options ::=", - /* 767 */ "column_options ::= column_options PRIMARY KEY", - /* 768 */ "column_options ::= column_options NK_ID NK_STRING", + /* 579 */ "function_expression ::= rand_func", + /* 580 */ "literal_func ::= noarg_func NK_LP NK_RP", + /* 581 */ "literal_func ::= NOW", + /* 582 */ "literal_func ::= TODAY", + /* 583 */ "rand_func ::= RAND NK_LP NK_RP", + /* 584 */ "rand_func ::= RAND NK_LP expression_list NK_RP", + /* 585 */ "substr_func ::= SUBSTR", + /* 586 */ "substr_func ::= SUBSTRING", + /* 587 */ "trim_specification_type ::= BOTH", + /* 588 */ "trim_specification_type ::= TRAILING", + /* 589 */ "trim_specification_type ::= LEADING", + /* 590 */ "noarg_func ::= NOW", + /* 591 */ "noarg_func ::= TODAY", + /* 592 */ "noarg_func ::= TIMEZONE", + /* 593 */ "noarg_func ::= DATABASE", + /* 594 */ "noarg_func ::= CLIENT_VERSION", + /* 595 */ "noarg_func ::= SERVER_VERSION", + /* 596 */ "noarg_func ::= SERVER_STATUS", + /* 597 */ "noarg_func ::= CURRENT_USER", + /* 598 */ "noarg_func ::= USER", + /* 599 */ "noarg_func ::= PI", + /* 600 */ "star_func ::= COUNT", + /* 601 */ "star_func ::= FIRST", + /* 602 */ "star_func ::= LAST", + /* 603 */ "star_func ::= LAST_ROW", + /* 604 */ "star_func_para_list ::= NK_STAR", + /* 605 */ "star_func_para_list ::= other_para_list", + /* 606 */ "other_para_list ::= star_func_para", + /* 607 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", + /* 608 */ "star_func_para ::= expr_or_subquery", + /* 609 */ "star_func_para ::= table_name NK_DOT NK_STAR", + /* 610 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", + /* 611 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", + /* 612 */ "when_then_list ::= when_then_expr", + /* 613 */ "when_then_list ::= when_then_list when_then_expr", + /* 614 */ "when_then_expr ::= WHEN common_expression THEN common_expression", + /* 615 */ "case_when_else_opt ::=", + /* 616 */ "case_when_else_opt ::= ELSE common_expression", + /* 617 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", + /* 618 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", + /* 619 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", + /* 620 */ "predicate ::= expr_or_subquery IS NULL", + /* 621 */ "predicate ::= expr_or_subquery IS NOT NULL", + /* 622 */ "predicate ::= expr_or_subquery in_op in_predicate_value", + /* 623 */ "compare_op ::= NK_LT", + /* 624 */ "compare_op ::= NK_GT", + /* 625 */ "compare_op ::= NK_LE", + /* 626 */ "compare_op ::= NK_GE", + /* 627 */ "compare_op ::= NK_NE", + /* 628 */ "compare_op ::= NK_EQ", + /* 629 */ "compare_op ::= LIKE", + /* 630 */ "compare_op ::= NOT LIKE", + /* 631 */ "compare_op ::= MATCH", + /* 632 */ "compare_op ::= NMATCH", + /* 633 */ "compare_op ::= CONTAINS", + /* 634 */ "in_op ::= IN", + /* 635 */ "in_op ::= NOT IN", + /* 636 */ "in_predicate_value ::= NK_LP literal_list NK_RP", + /* 637 */ "boolean_value_expression ::= boolean_primary", + /* 638 */ "boolean_value_expression ::= NOT boolean_primary", + /* 639 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 640 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 641 */ "boolean_primary ::= predicate", + /* 642 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 643 */ "common_expression ::= expr_or_subquery", + /* 644 */ "common_expression ::= boolean_value_expression", + /* 645 */ "from_clause_opt ::=", + /* 646 */ "from_clause_opt ::= FROM table_reference_list", + /* 647 */ "table_reference_list ::= table_reference", + /* 648 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 649 */ "table_reference ::= table_primary", + /* 650 */ "table_reference ::= joined_table", + /* 651 */ "table_primary ::= table_name alias_opt", + /* 652 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 653 */ "table_primary ::= subquery alias_opt", + /* 654 */ "table_primary ::= parenthesized_joined_table", + /* 655 */ "alias_opt ::=", + /* 656 */ "alias_opt ::= table_alias", + /* 657 */ "alias_opt ::= AS table_alias", + /* 658 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 659 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 660 */ "joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt", + /* 661 */ "join_type ::=", + /* 662 */ "join_type ::= INNER", + /* 663 */ "join_type ::= LEFT", + /* 664 */ "join_type ::= RIGHT", + /* 665 */ "join_type ::= FULL", + /* 666 */ "join_subtype ::=", + /* 667 */ "join_subtype ::= OUTER", + /* 668 */ "join_subtype ::= SEMI", + /* 669 */ "join_subtype ::= ANTI", + /* 670 */ "join_subtype ::= ASOF", + /* 671 */ "join_subtype ::= WINDOW", + /* 672 */ "join_on_clause_opt ::=", + /* 673 */ "join_on_clause_opt ::= ON search_condition", + /* 674 */ "window_offset_clause_opt ::=", + /* 675 */ "window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP", + /* 676 */ "window_offset_literal ::= NK_VARIABLE", + /* 677 */ "window_offset_literal ::= NK_MINUS NK_VARIABLE", + /* 678 */ "jlimit_clause_opt ::=", + /* 679 */ "jlimit_clause_opt ::= JLIMIT NK_INTEGER", + /* 680 */ "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", + /* 681 */ "hint_list ::=", + /* 682 */ "hint_list ::= NK_HINT", + /* 683 */ "tag_mode_opt ::=", + /* 684 */ "tag_mode_opt ::= TAGS", + /* 685 */ "set_quantifier_opt ::=", + /* 686 */ "set_quantifier_opt ::= DISTINCT", + /* 687 */ "set_quantifier_opt ::= ALL", + /* 688 */ "select_list ::= select_item", + /* 689 */ "select_list ::= select_list NK_COMMA select_item", + /* 690 */ "select_item ::= NK_STAR", + /* 691 */ "select_item ::= common_expression", + /* 692 */ "select_item ::= common_expression column_alias", + /* 693 */ "select_item ::= common_expression AS column_alias", + /* 694 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 695 */ "where_clause_opt ::=", + /* 696 */ "where_clause_opt ::= WHERE search_condition", + /* 697 */ "partition_by_clause_opt ::=", + /* 698 */ "partition_by_clause_opt ::= PARTITION BY partition_list", + /* 699 */ "partition_list ::= partition_item", + /* 700 */ "partition_list ::= partition_list NK_COMMA partition_item", + /* 701 */ "partition_item ::= expr_or_subquery", + /* 702 */ "partition_item ::= expr_or_subquery column_alias", + /* 703 */ "partition_item ::= expr_or_subquery AS column_alias", + /* 704 */ "twindow_clause_opt ::=", + /* 705 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP", + /* 706 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", + /* 707 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt", + /* 708 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt", + /* 709 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", + /* 710 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP", + /* 711 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 712 */ "sliding_opt ::=", + /* 713 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP", + /* 714 */ "interval_sliding_duration_literal ::= NK_VARIABLE", + /* 715 */ "interval_sliding_duration_literal ::= NK_STRING", + /* 716 */ "interval_sliding_duration_literal ::= NK_INTEGER", + /* 717 */ "fill_opt ::=", + /* 718 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 719 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", + /* 720 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", + /* 721 */ "fill_mode ::= NONE", + /* 722 */ "fill_mode ::= PREV", + /* 723 */ "fill_mode ::= NULL", + /* 724 */ "fill_mode ::= NULL_F", + /* 725 */ "fill_mode ::= LINEAR", + /* 726 */ "fill_mode ::= NEXT", + /* 727 */ "group_by_clause_opt ::=", + /* 728 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 729 */ "group_by_list ::= expr_or_subquery", + /* 730 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", + /* 731 */ "having_clause_opt ::=", + /* 732 */ "having_clause_opt ::= HAVING search_condition", + /* 733 */ "range_opt ::=", + /* 734 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", + /* 735 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", + /* 736 */ "every_opt ::=", + /* 737 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", + /* 738 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 739 */ "query_simple ::= query_specification", + /* 740 */ "query_simple ::= union_query_expression", + /* 741 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", + /* 742 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", + /* 743 */ "query_simple_or_subquery ::= query_simple", + /* 744 */ "query_simple_or_subquery ::= subquery", + /* 745 */ "query_or_subquery ::= query_expression", + /* 746 */ "query_or_subquery ::= subquery", + /* 747 */ "order_by_clause_opt ::=", + /* 748 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 749 */ "slimit_clause_opt ::=", + /* 750 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 751 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 752 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 753 */ "limit_clause_opt ::=", + /* 754 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 755 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 756 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 757 */ "subquery ::= NK_LP query_expression NK_RP", + /* 758 */ "subquery ::= NK_LP subquery NK_RP", + /* 759 */ "search_condition ::= common_expression", + /* 760 */ "sort_specification_list ::= sort_specification", + /* 761 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 762 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", + /* 763 */ "ordering_specification_opt ::=", + /* 764 */ "ordering_specification_opt ::= ASC", + /* 765 */ "ordering_specification_opt ::= DESC", + /* 766 */ "null_ordering_opt ::=", + /* 767 */ "null_ordering_opt ::= NULLS FIRST", + /* 768 */ "null_ordering_opt ::= NULLS LAST", + /* 769 */ "column_options ::=", + /* 770 */ "column_options ::= column_options PRIMARY KEY", + /* 771 */ "column_options ::= column_options NK_ID NK_STRING", }; #endif /* NDEBUG */ @@ -3671,264 +3806,265 @@ static void yy_destructor( */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ - case 383: /* cmd */ - case 386: /* literal */ - case 397: /* with_opt */ - case 403: /* search_condition */ - case 408: /* db_options */ - case 410: /* alter_db_options */ - case 412: /* start_opt */ - case 413: /* end_opt */ - case 417: /* signed */ - case 419: /* retention */ - case 420: /* full_table_name */ - case 423: /* table_options */ - case 428: /* alter_table_clause */ - case 429: /* alter_table_options */ - case 432: /* column_options */ - case 433: /* tags_literal */ - case 434: /* create_subtable_clause */ - case 437: /* drop_table_clause */ - case 440: /* tag_def */ - case 441: /* column_def */ - case 446: /* duration_literal */ - case 447: /* rollup_func_name */ - case 449: /* col_name */ - case 452: /* like_pattern_opt */ - case 453: /* db_name_cond_opt */ - case 454: /* table_name_cond */ - case 455: /* from_db_opt */ - case 457: /* tag_item */ - case 461: /* full_tsma_name */ - case 463: /* index_options */ - case 464: /* full_index_name */ - case 466: /* sliding_opt */ - case 467: /* sma_stream_opt */ - case 468: /* func */ - case 472: /* query_or_subquery */ - case 473: /* where_clause_opt */ - case 476: /* explain_options */ - case 477: /* insert_query */ - case 482: /* full_view_name */ - case 485: /* stream_options */ - case 488: /* subtable_opt */ - case 491: /* column_stream_def */ - case 492: /* stream_col_options */ - case 493: /* expression */ - case 496: /* literal_func */ - case 497: /* signed_literal */ - case 500: /* expr_or_subquery */ - case 501: /* pseudo_column */ - case 502: /* column_reference */ - case 503: /* function_expression */ - case 504: /* case_when_expression */ - case 511: /* star_func_para */ - case 513: /* case_when_else_opt */ - case 514: /* common_expression */ - case 515: /* when_then_expr */ - case 516: /* predicate */ - case 519: /* in_predicate_value */ - case 520: /* boolean_value_expression */ - case 521: /* boolean_primary */ - case 522: /* from_clause_opt */ - case 523: /* table_reference_list */ - case 524: /* table_reference */ - case 525: /* table_primary */ - case 526: /* joined_table */ - case 528: /* subquery */ - case 529: /* parenthesized_joined_table */ - case 532: /* join_on_clause_opt */ - case 533: /* window_offset_clause_opt */ - case 534: /* jlimit_clause_opt */ - case 535: /* window_offset_literal */ - case 536: /* query_specification */ - case 542: /* range_opt */ - case 543: /* every_opt */ - case 544: /* fill_opt */ - case 545: /* twindow_clause_opt */ - case 547: /* having_clause_opt */ - case 548: /* select_item */ - case 550: /* partition_item */ - case 551: /* interval_sliding_duration_literal */ - case 554: /* query_expression */ - case 555: /* query_simple */ - case 557: /* slimit_clause_opt */ - case 558: /* limit_clause_opt */ - case 559: /* union_query_expression */ - case 560: /* query_simple_or_subquery */ - case 562: /* sort_specification */ + case 384: /* cmd */ + case 387: /* literal */ + case 398: /* with_opt */ + case 404: /* search_condition */ + case 409: /* db_options */ + case 411: /* alter_db_options */ + case 413: /* start_opt */ + case 414: /* end_opt */ + case 418: /* signed */ + case 420: /* retention */ + case 421: /* full_table_name */ + case 424: /* table_options */ + case 429: /* alter_table_clause */ + case 430: /* alter_table_options */ + case 433: /* column_options */ + case 434: /* tags_literal */ + case 435: /* create_subtable_clause */ + case 438: /* drop_table_clause */ + case 441: /* tag_def */ + case 442: /* column_def */ + case 447: /* duration_literal */ + case 448: /* rollup_func_name */ + case 450: /* col_name */ + case 453: /* like_pattern_opt */ + case 454: /* db_name_cond_opt */ + case 455: /* table_name_cond */ + case 456: /* from_db_opt */ + case 458: /* tag_item */ + case 462: /* full_tsma_name */ + case 464: /* index_options */ + case 465: /* full_index_name */ + case 467: /* sliding_opt */ + case 468: /* sma_stream_opt */ + case 469: /* func */ + case 473: /* query_or_subquery */ + case 474: /* where_clause_opt */ + case 477: /* explain_options */ + case 478: /* insert_query */ + case 483: /* full_view_name */ + case 486: /* stream_options */ + case 489: /* subtable_opt */ + case 492: /* column_stream_def */ + case 493: /* stream_col_options */ + case 494: /* expression */ + case 497: /* literal_func */ + case 498: /* signed_literal */ + case 501: /* expr_or_subquery */ + case 502: /* pseudo_column */ + case 503: /* column_reference */ + case 504: /* function_expression */ + case 505: /* case_when_expression */ + case 510: /* rand_func */ + case 513: /* star_func_para */ + case 515: /* case_when_else_opt */ + case 516: /* common_expression */ + case 517: /* when_then_expr */ + case 518: /* predicate */ + case 521: /* in_predicate_value */ + case 522: /* boolean_value_expression */ + case 523: /* boolean_primary */ + case 524: /* from_clause_opt */ + case 525: /* table_reference_list */ + case 526: /* table_reference */ + case 527: /* table_primary */ + case 528: /* joined_table */ + case 530: /* subquery */ + case 531: /* parenthesized_joined_table */ + case 534: /* join_on_clause_opt */ + case 535: /* window_offset_clause_opt */ + case 536: /* jlimit_clause_opt */ + case 537: /* window_offset_literal */ + case 538: /* query_specification */ + case 544: /* range_opt */ + case 545: /* every_opt */ + case 546: /* fill_opt */ + case 547: /* twindow_clause_opt */ + case 549: /* having_clause_opt */ + case 550: /* select_item */ + case 552: /* partition_item */ + case 553: /* interval_sliding_duration_literal */ + case 556: /* query_expression */ + case 557: /* query_simple */ + case 559: /* slimit_clause_opt */ + case 560: /* limit_clause_opt */ + case 561: /* union_query_expression */ + case 562: /* query_simple_or_subquery */ + case 564: /* sort_specification */ { - nodesDestroyNode((yypminor->yy232)); + nodesDestroyNode((yypminor->yy560)); } break; - case 384: /* account_options */ - case 385: /* alter_account_options */ - case 387: /* alter_account_option */ - case 411: /* speed_opt */ - case 471: /* with_meta */ - case 480: /* bufsize_opt */ + case 385: /* account_options */ + case 386: /* alter_account_options */ + case 388: /* alter_account_option */ + case 412: /* speed_opt */ + case 472: /* with_meta */ + case 481: /* bufsize_opt */ { } break; - case 388: /* ip_range_list */ - case 389: /* white_list */ - case 390: /* white_list_opt */ - case 414: /* integer_list */ - case 415: /* variable_list */ - case 416: /* retention_list */ - case 421: /* column_def_list */ - case 422: /* tags_def_opt */ - case 424: /* multi_create_clause */ - case 425: /* tag_list_opt */ - case 426: /* tags_def */ - case 427: /* multi_drop_clause */ - case 435: /* specific_cols_opt */ - case 436: /* tags_literal_list */ - case 438: /* col_name_list */ - case 439: /* tag_def_list */ - case 443: /* duration_list */ - case 444: /* rollup_func_list */ - case 462: /* func_list */ - case 470: /* expression_list */ - case 486: /* col_list_opt */ - case 487: /* tag_def_or_ref_opt */ - case 490: /* column_stream_def_list */ - case 495: /* dnode_list */ - case 498: /* literal_list */ - case 506: /* star_func_para_list */ - case 510: /* other_para_list */ - case 512: /* when_then_list */ - case 537: /* hint_list */ - case 540: /* select_list */ - case 541: /* partition_by_clause_opt */ - case 546: /* group_by_clause_opt */ - case 549: /* partition_list */ - case 553: /* group_by_list */ - case 556: /* order_by_clause_opt */ - case 561: /* sort_specification_list */ + case 389: /* ip_range_list */ + case 390: /* white_list */ + case 391: /* white_list_opt */ + case 415: /* integer_list */ + case 416: /* variable_list */ + case 417: /* retention_list */ + case 422: /* column_def_list */ + case 423: /* tags_def_opt */ + case 425: /* multi_create_clause */ + case 426: /* tag_list_opt */ + case 427: /* tags_def */ + case 428: /* multi_drop_clause */ + case 436: /* specific_cols_opt */ + case 437: /* tags_literal_list */ + case 439: /* col_name_list */ + case 440: /* tag_def_list */ + case 444: /* duration_list */ + case 445: /* rollup_func_list */ + case 463: /* func_list */ + case 471: /* expression_list */ + case 487: /* col_list_opt */ + case 488: /* tag_def_or_ref_opt */ + case 491: /* column_stream_def_list */ + case 496: /* dnode_list */ + case 499: /* literal_list */ + case 507: /* star_func_para_list */ + case 512: /* other_para_list */ + case 514: /* when_then_list */ + case 539: /* hint_list */ + case 542: /* select_list */ + case 543: /* partition_by_clause_opt */ + case 548: /* group_by_clause_opt */ + case 551: /* partition_list */ + case 555: /* group_by_list */ + case 558: /* order_by_clause_opt */ + case 563: /* sort_specification_list */ { - nodesDestroyList((yypminor->yy514)); + nodesDestroyList((yypminor->yy334)); } break; - case 391: /* is_import_opt */ - case 392: /* is_createdb_opt */ - case 394: /* sysinfo_opt */ + case 392: /* is_import_opt */ + case 393: /* is_createdb_opt */ + case 395: /* sysinfo_opt */ { } break; - case 393: /* user_name */ - case 400: /* db_name */ - case 401: /* table_name */ - case 402: /* topic_name */ - case 404: /* dnode_endpoint */ - case 430: /* column_name */ - case 448: /* function_name */ - case 458: /* column_alias */ - case 459: /* tsma_name */ - case 465: /* index_name */ - case 469: /* sma_func_name */ - case 474: /* cgroup_name */ - case 481: /* language_opt */ - case 483: /* view_name */ - case 484: /* stream_name */ - case 494: /* on_vgroup_id */ - case 499: /* table_alias */ - case 505: /* star_func */ - case 508: /* substr_func */ - case 509: /* noarg_func */ - case 527: /* alias_opt */ + case 394: /* user_name */ + case 401: /* db_name */ + case 402: /* table_name */ + case 403: /* topic_name */ + case 405: /* dnode_endpoint */ + case 431: /* column_name */ + case 449: /* function_name */ + case 459: /* column_alias */ + case 460: /* tsma_name */ + case 466: /* index_name */ + case 470: /* sma_func_name */ + case 475: /* cgroup_name */ + case 482: /* language_opt */ + case 484: /* view_name */ + case 485: /* stream_name */ + case 495: /* on_vgroup_id */ + case 500: /* table_alias */ + case 506: /* star_func */ + case 509: /* substr_func */ + case 511: /* noarg_func */ + case 529: /* alias_opt */ { } break; - case 395: /* privileges */ - case 398: /* priv_type_list */ - case 399: /* priv_type */ + case 396: /* privileges */ + case 399: /* priv_type_list */ + case 400: /* priv_type */ { } break; - case 396: /* priv_level */ + case 397: /* priv_level */ { } break; - case 405: /* force_opt */ - case 406: /* unsafe_opt */ - case 407: /* not_exists_opt */ - case 409: /* exists_opt */ - case 475: /* analyze_opt */ - case 478: /* or_replace_opt */ - case 479: /* agg_func_opt */ - case 489: /* ignore_opt */ - case 538: /* set_quantifier_opt */ - case 539: /* tag_mode_opt */ + case 406: /* force_opt */ + case 407: /* unsafe_opt */ + case 408: /* not_exists_opt */ + case 410: /* exists_opt */ + case 476: /* analyze_opt */ + case 479: /* or_replace_opt */ + case 480: /* agg_func_opt */ + case 490: /* ignore_opt */ + case 540: /* set_quantifier_opt */ + case 541: /* tag_mode_opt */ { } break; - case 418: /* alter_db_option */ - case 445: /* alter_table_option */ + case 419: /* alter_db_option */ + case 446: /* alter_table_option */ { } break; - case 431: /* type_name */ - case 442: /* type_name_default_len */ + case 432: /* type_name */ + case 443: /* type_name_default_len */ { } break; - case 450: /* db_kind_opt */ - case 456: /* table_kind */ + case 451: /* db_kind_opt */ + case 457: /* table_kind */ { } break; - case 451: /* table_kind_db_name_cond_opt */ + case 452: /* table_kind_db_name_cond_opt */ { } break; - case 460: /* tsma_func_list */ + case 461: /* tsma_func_list */ { - nodesDestroyNode((yypminor->yy232)); + nodesDestroyNode((yypminor->yy560)); } break; - case 507: /* trim_specification_type */ + case 508: /* trim_specification_type */ { } break; - case 517: /* compare_op */ - case 518: /* in_op */ + case 519: /* compare_op */ + case 520: /* in_op */ { } break; - case 530: /* join_type */ + case 532: /* join_type */ { } break; - case 531: /* join_subtype */ + case 533: /* join_subtype */ { } break; - case 552: /* fill_mode */ + case 554: /* fill_mode */ { } break; - case 563: /* ordering_specification_opt */ + case 565: /* ordering_specification_opt */ { } break; - case 564: /* null_ordering_opt */ + case 566: /* null_ordering_opt */ { } @@ -4219,775 +4355,778 @@ static void yy_shift( /* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side ** of that rule */ static const YYCODETYPE yyRuleInfoLhs[] = { - 383, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ - 383, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ - 384, /* (2) account_options ::= */ - 384, /* (3) account_options ::= account_options PPS literal */ - 384, /* (4) account_options ::= account_options TSERIES literal */ - 384, /* (5) account_options ::= account_options STORAGE literal */ - 384, /* (6) account_options ::= account_options STREAMS literal */ - 384, /* (7) account_options ::= account_options QTIME literal */ - 384, /* (8) account_options ::= account_options DBS literal */ - 384, /* (9) account_options ::= account_options USERS literal */ - 384, /* (10) account_options ::= account_options CONNS literal */ - 384, /* (11) account_options ::= account_options STATE literal */ - 385, /* (12) alter_account_options ::= alter_account_option */ - 385, /* (13) alter_account_options ::= alter_account_options alter_account_option */ - 387, /* (14) alter_account_option ::= PASS literal */ - 387, /* (15) alter_account_option ::= PPS literal */ - 387, /* (16) alter_account_option ::= TSERIES literal */ - 387, /* (17) alter_account_option ::= STORAGE literal */ - 387, /* (18) alter_account_option ::= STREAMS literal */ - 387, /* (19) alter_account_option ::= QTIME literal */ - 387, /* (20) alter_account_option ::= DBS literal */ - 387, /* (21) alter_account_option ::= USERS literal */ - 387, /* (22) alter_account_option ::= CONNS literal */ - 387, /* (23) alter_account_option ::= STATE literal */ - 388, /* (24) ip_range_list ::= NK_STRING */ - 388, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ - 389, /* (26) white_list ::= HOST ip_range_list */ - 390, /* (27) white_list_opt ::= */ - 390, /* (28) white_list_opt ::= white_list */ - 391, /* (29) is_import_opt ::= */ - 391, /* (30) is_import_opt ::= IS_IMPORT NK_INTEGER */ - 392, /* (31) is_createdb_opt ::= */ - 392, /* (32) is_createdb_opt ::= CREATEDB NK_INTEGER */ - 383, /* (33) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt is_createdb_opt is_import_opt white_list_opt */ - 383, /* (34) cmd ::= ALTER USER user_name PASS NK_STRING */ - 383, /* (35) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ - 383, /* (36) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ - 383, /* (37) cmd ::= ALTER USER user_name CREATEDB NK_INTEGER */ - 383, /* (38) cmd ::= ALTER USER user_name ADD white_list */ - 383, /* (39) cmd ::= ALTER USER user_name DROP white_list */ - 383, /* (40) cmd ::= DROP USER user_name */ - 394, /* (41) sysinfo_opt ::= */ - 394, /* (42) sysinfo_opt ::= SYSINFO NK_INTEGER */ - 383, /* (43) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ - 383, /* (44) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ - 395, /* (45) privileges ::= ALL */ - 395, /* (46) privileges ::= priv_type_list */ - 395, /* (47) privileges ::= SUBSCRIBE */ - 398, /* (48) priv_type_list ::= priv_type */ - 398, /* (49) priv_type_list ::= priv_type_list NK_COMMA priv_type */ - 399, /* (50) priv_type ::= READ */ - 399, /* (51) priv_type ::= WRITE */ - 399, /* (52) priv_type ::= ALTER */ - 396, /* (53) priv_level ::= NK_STAR NK_DOT NK_STAR */ - 396, /* (54) priv_level ::= db_name NK_DOT NK_STAR */ - 396, /* (55) priv_level ::= db_name NK_DOT table_name */ - 396, /* (56) priv_level ::= topic_name */ - 397, /* (57) with_opt ::= */ - 397, /* (58) with_opt ::= WITH search_condition */ - 383, /* (59) cmd ::= CREATE ENCRYPT_KEY NK_STRING */ - 383, /* (60) cmd ::= CREATE DNODE dnode_endpoint */ - 383, /* (61) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ - 383, /* (62) cmd ::= DROP DNODE NK_INTEGER force_opt */ - 383, /* (63) cmd ::= DROP DNODE dnode_endpoint force_opt */ - 383, /* (64) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ - 383, /* (65) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ - 383, /* (66) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ - 383, /* (67) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ - 383, /* (68) cmd ::= ALTER ALL DNODES NK_STRING */ - 383, /* (69) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ - 383, /* (70) cmd ::= RESTORE DNODE NK_INTEGER */ - 404, /* (71) dnode_endpoint ::= NK_STRING */ - 404, /* (72) dnode_endpoint ::= NK_ID */ - 404, /* (73) dnode_endpoint ::= NK_IPTOKEN */ - 405, /* (74) force_opt ::= */ - 405, /* (75) force_opt ::= FORCE */ - 406, /* (76) unsafe_opt ::= UNSAFE */ - 383, /* (77) cmd ::= ALTER CLUSTER NK_STRING */ - 383, /* (78) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */ - 383, /* (79) cmd ::= ALTER LOCAL NK_STRING */ - 383, /* (80) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - 383, /* (81) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - 383, /* (82) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - 383, /* (83) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ - 383, /* (84) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ - 383, /* (85) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ - 383, /* (86) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ - 383, /* (87) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ - 383, /* (88) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ - 383, /* (89) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ - 383, /* (90) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ - 383, /* (91) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ - 383, /* (92) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - 383, /* (93) cmd ::= DROP DATABASE exists_opt db_name */ - 383, /* (94) cmd ::= USE db_name */ - 383, /* (95) cmd ::= ALTER DATABASE db_name alter_db_options */ - 383, /* (96) cmd ::= FLUSH DATABASE db_name */ - 383, /* (97) cmd ::= TRIM DATABASE db_name speed_opt */ - 383, /* (98) cmd ::= S3MIGRATE DATABASE db_name */ - 383, /* (99) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ - 407, /* (100) not_exists_opt ::= IF NOT EXISTS */ - 407, /* (101) not_exists_opt ::= */ - 409, /* (102) exists_opt ::= IF EXISTS */ - 409, /* (103) exists_opt ::= */ - 408, /* (104) db_options ::= */ - 408, /* (105) db_options ::= db_options BUFFER NK_INTEGER */ - 408, /* (106) db_options ::= db_options CACHEMODEL NK_STRING */ - 408, /* (107) db_options ::= db_options CACHESIZE NK_INTEGER */ - 408, /* (108) db_options ::= db_options COMP NK_INTEGER */ - 408, /* (109) db_options ::= db_options DURATION NK_INTEGER */ - 408, /* (110) db_options ::= db_options DURATION NK_VARIABLE */ - 408, /* (111) db_options ::= db_options MAXROWS NK_INTEGER */ - 408, /* (112) db_options ::= db_options MINROWS NK_INTEGER */ - 408, /* (113) db_options ::= db_options KEEP integer_list */ - 408, /* (114) db_options ::= db_options KEEP variable_list */ - 408, /* (115) db_options ::= db_options PAGES NK_INTEGER */ - 408, /* (116) db_options ::= db_options PAGESIZE NK_INTEGER */ - 408, /* (117) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ - 408, /* (118) db_options ::= db_options PRECISION NK_STRING */ - 408, /* (119) db_options ::= db_options REPLICA NK_INTEGER */ - 408, /* (120) db_options ::= db_options VGROUPS NK_INTEGER */ - 408, /* (121) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - 408, /* (122) db_options ::= db_options RETENTIONS retention_list */ - 408, /* (123) db_options ::= db_options SCHEMALESS NK_INTEGER */ - 408, /* (124) db_options ::= db_options WAL_LEVEL NK_INTEGER */ - 408, /* (125) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ - 408, /* (126) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ - 408, /* (127) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ - 408, /* (128) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ - 408, /* (129) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ - 408, /* (130) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ - 408, /* (131) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ - 408, /* (132) db_options ::= db_options STT_TRIGGER NK_INTEGER */ - 408, /* (133) db_options ::= db_options TABLE_PREFIX signed */ - 408, /* (134) db_options ::= db_options TABLE_SUFFIX signed */ - 408, /* (135) db_options ::= db_options S3_CHUNKSIZE NK_INTEGER */ - 408, /* (136) db_options ::= db_options S3_KEEPLOCAL NK_INTEGER */ - 408, /* (137) db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE */ - 408, /* (138) db_options ::= db_options S3_COMPACT NK_INTEGER */ - 408, /* (139) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ - 408, /* (140) db_options ::= db_options ENCRYPT_ALGORITHM NK_STRING */ - 410, /* (141) alter_db_options ::= alter_db_option */ - 410, /* (142) alter_db_options ::= alter_db_options alter_db_option */ - 418, /* (143) alter_db_option ::= BUFFER NK_INTEGER */ - 418, /* (144) alter_db_option ::= CACHEMODEL NK_STRING */ - 418, /* (145) alter_db_option ::= CACHESIZE NK_INTEGER */ - 418, /* (146) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ - 418, /* (147) alter_db_option ::= KEEP integer_list */ - 418, /* (148) alter_db_option ::= KEEP variable_list */ - 418, /* (149) alter_db_option ::= PAGES NK_INTEGER */ - 418, /* (150) alter_db_option ::= REPLICA NK_INTEGER */ - 418, /* (151) alter_db_option ::= WAL_LEVEL NK_INTEGER */ - 418, /* (152) alter_db_option ::= STT_TRIGGER NK_INTEGER */ - 418, /* (153) alter_db_option ::= MINROWS NK_INTEGER */ - 418, /* (154) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ - 418, /* (155) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ - 418, /* (156) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ - 418, /* (157) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ - 418, /* (158) alter_db_option ::= S3_KEEPLOCAL NK_INTEGER */ - 418, /* (159) alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE */ - 418, /* (160) alter_db_option ::= S3_COMPACT NK_INTEGER */ - 418, /* (161) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ - 418, /* (162) alter_db_option ::= ENCRYPT_ALGORITHM NK_STRING */ - 414, /* (163) integer_list ::= NK_INTEGER */ - 414, /* (164) integer_list ::= integer_list NK_COMMA NK_INTEGER */ - 415, /* (165) variable_list ::= NK_VARIABLE */ - 415, /* (166) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ - 416, /* (167) retention_list ::= retention */ - 416, /* (168) retention_list ::= retention_list NK_COMMA retention */ - 419, /* (169) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ - 419, /* (170) retention ::= NK_MINUS NK_COLON NK_VARIABLE */ - 411, /* (171) speed_opt ::= */ - 411, /* (172) speed_opt ::= BWLIMIT NK_INTEGER */ - 412, /* (173) start_opt ::= */ - 412, /* (174) start_opt ::= START WITH NK_INTEGER */ - 412, /* (175) start_opt ::= START WITH NK_STRING */ - 412, /* (176) start_opt ::= START WITH TIMESTAMP NK_STRING */ - 413, /* (177) end_opt ::= */ - 413, /* (178) end_opt ::= END WITH NK_INTEGER */ - 413, /* (179) end_opt ::= END WITH NK_STRING */ - 413, /* (180) end_opt ::= END WITH TIMESTAMP NK_STRING */ - 383, /* (181) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - 383, /* (182) cmd ::= CREATE TABLE multi_create_clause */ - 383, /* (183) cmd ::= CREATE TABLE not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP FILE NK_STRING */ - 383, /* (184) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - 383, /* (185) cmd ::= DROP TABLE multi_drop_clause */ - 383, /* (186) cmd ::= DROP STABLE exists_opt full_table_name */ - 383, /* (187) cmd ::= ALTER TABLE alter_table_clause */ - 383, /* (188) cmd ::= ALTER STABLE alter_table_clause */ - 428, /* (189) alter_table_clause ::= full_table_name alter_table_options */ - 428, /* (190) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name column_options */ - 428, /* (191) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - 428, /* (192) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - 428, /* (193) alter_table_clause ::= full_table_name MODIFY COLUMN column_name column_options */ - 428, /* (194) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - 428, /* (195) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - 428, /* (196) alter_table_clause ::= full_table_name DROP TAG column_name */ - 428, /* (197) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - 428, /* (198) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - 428, /* (199) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */ - 424, /* (200) multi_create_clause ::= create_subtable_clause */ - 424, /* (201) multi_create_clause ::= multi_create_clause create_subtable_clause */ - 434, /* (202) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */ - 427, /* (203) multi_drop_clause ::= drop_table_clause */ - 427, /* (204) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ - 437, /* (205) drop_table_clause ::= exists_opt full_table_name */ - 435, /* (206) specific_cols_opt ::= */ - 435, /* (207) specific_cols_opt ::= NK_LP col_name_list NK_RP */ - 420, /* (208) full_table_name ::= table_name */ - 420, /* (209) full_table_name ::= db_name NK_DOT table_name */ - 439, /* (210) tag_def_list ::= tag_def */ - 439, /* (211) tag_def_list ::= tag_def_list NK_COMMA tag_def */ - 440, /* (212) tag_def ::= column_name type_name */ - 421, /* (213) column_def_list ::= column_def */ - 421, /* (214) column_def_list ::= column_def_list NK_COMMA column_def */ - 441, /* (215) column_def ::= column_name type_name column_options */ - 431, /* (216) type_name ::= BOOL */ - 431, /* (217) type_name ::= TINYINT */ - 431, /* (218) type_name ::= SMALLINT */ - 431, /* (219) type_name ::= INT */ - 431, /* (220) type_name ::= INTEGER */ - 431, /* (221) type_name ::= BIGINT */ - 431, /* (222) type_name ::= FLOAT */ - 431, /* (223) type_name ::= DOUBLE */ - 431, /* (224) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - 431, /* (225) type_name ::= TIMESTAMP */ - 431, /* (226) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - 431, /* (227) type_name ::= TINYINT UNSIGNED */ - 431, /* (228) type_name ::= SMALLINT UNSIGNED */ - 431, /* (229) type_name ::= INT UNSIGNED */ - 431, /* (230) type_name ::= BIGINT UNSIGNED */ - 431, /* (231) type_name ::= JSON */ - 431, /* (232) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - 431, /* (233) type_name ::= MEDIUMBLOB */ - 431, /* (234) type_name ::= BLOB */ - 431, /* (235) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - 431, /* (236) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ - 431, /* (237) type_name ::= DECIMAL */ - 431, /* (238) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - 431, /* (239) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 442, /* (240) type_name_default_len ::= BINARY */ - 442, /* (241) type_name_default_len ::= NCHAR */ - 442, /* (242) type_name_default_len ::= VARCHAR */ - 442, /* (243) type_name_default_len ::= VARBINARY */ - 422, /* (244) tags_def_opt ::= */ - 422, /* (245) tags_def_opt ::= tags_def */ - 426, /* (246) tags_def ::= TAGS NK_LP tag_def_list NK_RP */ - 423, /* (247) table_options ::= */ - 423, /* (248) table_options ::= table_options COMMENT NK_STRING */ - 423, /* (249) table_options ::= table_options MAX_DELAY duration_list */ - 423, /* (250) table_options ::= table_options WATERMARK duration_list */ - 423, /* (251) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ - 423, /* (252) table_options ::= table_options TTL NK_INTEGER */ - 423, /* (253) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - 423, /* (254) table_options ::= table_options DELETE_MARK duration_list */ - 429, /* (255) alter_table_options ::= alter_table_option */ - 429, /* (256) alter_table_options ::= alter_table_options alter_table_option */ - 445, /* (257) alter_table_option ::= COMMENT NK_STRING */ - 445, /* (258) alter_table_option ::= TTL NK_INTEGER */ - 443, /* (259) duration_list ::= duration_literal */ - 443, /* (260) duration_list ::= duration_list NK_COMMA duration_literal */ - 444, /* (261) rollup_func_list ::= rollup_func_name */ - 444, /* (262) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - 447, /* (263) rollup_func_name ::= function_name */ - 447, /* (264) rollup_func_name ::= FIRST */ - 447, /* (265) rollup_func_name ::= LAST */ - 438, /* (266) col_name_list ::= col_name */ - 438, /* (267) col_name_list ::= col_name_list NK_COMMA col_name */ - 449, /* (268) col_name ::= column_name */ - 383, /* (269) cmd ::= SHOW DNODES */ - 383, /* (270) cmd ::= SHOW USERS */ - 383, /* (271) cmd ::= SHOW USERS FULL */ - 383, /* (272) cmd ::= SHOW USER PRIVILEGES */ - 383, /* (273) cmd ::= SHOW db_kind_opt DATABASES */ - 383, /* (274) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ - 383, /* (275) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - 383, /* (276) cmd ::= SHOW db_name_cond_opt VGROUPS */ - 383, /* (277) cmd ::= SHOW MNODES */ - 383, /* (278) cmd ::= SHOW QNODES */ - 383, /* (279) cmd ::= SHOW ARBGROUPS */ - 383, /* (280) cmd ::= SHOW FUNCTIONS */ - 383, /* (281) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - 383, /* (282) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ - 383, /* (283) cmd ::= SHOW STREAMS */ - 383, /* (284) cmd ::= SHOW ACCOUNTS */ - 383, /* (285) cmd ::= SHOW APPS */ - 383, /* (286) cmd ::= SHOW CONNECTIONS */ - 383, /* (287) cmd ::= SHOW LICENCES */ - 383, /* (288) cmd ::= SHOW GRANTS */ - 383, /* (289) cmd ::= SHOW GRANTS FULL */ - 383, /* (290) cmd ::= SHOW GRANTS LOGS */ - 383, /* (291) cmd ::= SHOW CLUSTER MACHINES */ - 383, /* (292) cmd ::= SHOW CREATE DATABASE db_name */ - 383, /* (293) cmd ::= SHOW CREATE TABLE full_table_name */ - 383, /* (294) cmd ::= SHOW CREATE STABLE full_table_name */ - 383, /* (295) cmd ::= SHOW ENCRYPTIONS */ - 383, /* (296) cmd ::= SHOW QUERIES */ - 383, /* (297) cmd ::= SHOW SCORES */ - 383, /* (298) cmd ::= SHOW TOPICS */ - 383, /* (299) cmd ::= SHOW VARIABLES */ - 383, /* (300) cmd ::= SHOW CLUSTER VARIABLES */ - 383, /* (301) cmd ::= SHOW LOCAL VARIABLES */ - 383, /* (302) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ - 383, /* (303) cmd ::= SHOW BNODES */ - 383, /* (304) cmd ::= SHOW SNODES */ - 383, /* (305) cmd ::= SHOW CLUSTER */ - 383, /* (306) cmd ::= SHOW TRANSACTIONS */ - 383, /* (307) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ - 383, /* (308) cmd ::= SHOW CONSUMERS */ - 383, /* (309) cmd ::= SHOW SUBSCRIPTIONS */ - 383, /* (310) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ - 383, /* (311) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ - 383, /* (312) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ - 383, /* (313) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ - 383, /* (314) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ - 383, /* (315) cmd ::= SHOW VNODES */ - 383, /* (316) cmd ::= SHOW db_name_cond_opt ALIVE */ - 383, /* (317) cmd ::= SHOW CLUSTER ALIVE */ - 383, /* (318) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ - 383, /* (319) cmd ::= SHOW CREATE VIEW full_table_name */ - 383, /* (320) cmd ::= SHOW COMPACTS */ - 383, /* (321) cmd ::= SHOW COMPACT NK_INTEGER */ - 451, /* (322) table_kind_db_name_cond_opt ::= */ - 451, /* (323) table_kind_db_name_cond_opt ::= table_kind */ - 451, /* (324) table_kind_db_name_cond_opt ::= db_name NK_DOT */ - 451, /* (325) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ - 456, /* (326) table_kind ::= NORMAL */ - 456, /* (327) table_kind ::= CHILD */ - 453, /* (328) db_name_cond_opt ::= */ - 453, /* (329) db_name_cond_opt ::= db_name NK_DOT */ - 452, /* (330) like_pattern_opt ::= */ - 452, /* (331) like_pattern_opt ::= LIKE NK_STRING */ - 454, /* (332) table_name_cond ::= table_name */ - 455, /* (333) from_db_opt ::= */ - 455, /* (334) from_db_opt ::= FROM db_name */ - 425, /* (335) tag_list_opt ::= */ - 425, /* (336) tag_list_opt ::= tag_item */ - 425, /* (337) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ - 457, /* (338) tag_item ::= TBNAME */ - 457, /* (339) tag_item ::= QTAGS */ - 457, /* (340) tag_item ::= column_name */ - 457, /* (341) tag_item ::= column_name column_alias */ - 457, /* (342) tag_item ::= column_name AS column_alias */ - 450, /* (343) db_kind_opt ::= */ - 450, /* (344) db_kind_opt ::= USER */ - 450, /* (345) db_kind_opt ::= SYSTEM */ - 383, /* (346) cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_func_list INTERVAL NK_LP duration_literal NK_RP */ - 383, /* (347) cmd ::= CREATE RECURSIVE TSMA not_exists_opt tsma_name ON full_table_name INTERVAL NK_LP duration_literal NK_RP */ - 383, /* (348) cmd ::= DROP TSMA exists_opt full_tsma_name */ - 383, /* (349) cmd ::= SHOW db_name_cond_opt TSMAS */ - 461, /* (350) full_tsma_name ::= tsma_name */ - 461, /* (351) full_tsma_name ::= db_name NK_DOT tsma_name */ - 460, /* (352) tsma_func_list ::= FUNCTION NK_LP func_list NK_RP */ - 383, /* (353) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ - 383, /* (354) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ - 383, /* (355) cmd ::= DROP INDEX exists_opt full_index_name */ - 464, /* (356) full_index_name ::= index_name */ - 464, /* (357) full_index_name ::= db_name NK_DOT index_name */ - 463, /* (358) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ - 463, /* (359) 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 */ - 462, /* (360) func_list ::= func */ - 462, /* (361) func_list ::= func_list NK_COMMA func */ - 468, /* (362) func ::= sma_func_name NK_LP expression_list NK_RP */ - 469, /* (363) sma_func_name ::= function_name */ - 469, /* (364) sma_func_name ::= COUNT */ - 469, /* (365) sma_func_name ::= FIRST */ - 469, /* (366) sma_func_name ::= LAST */ - 469, /* (367) sma_func_name ::= LAST_ROW */ - 467, /* (368) sma_stream_opt ::= */ - 467, /* (369) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ - 467, /* (370) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ - 467, /* (371) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ - 471, /* (372) with_meta ::= AS */ - 471, /* (373) with_meta ::= WITH META AS */ - 471, /* (374) with_meta ::= ONLY META AS */ - 383, /* (375) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ - 383, /* (376) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ - 383, /* (377) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ - 383, /* (378) cmd ::= DROP TOPIC exists_opt topic_name */ - 383, /* (379) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - 383, /* (380) cmd ::= DESC full_table_name */ - 383, /* (381) cmd ::= DESCRIBE full_table_name */ - 383, /* (382) cmd ::= RESET QUERY CACHE */ - 383, /* (383) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - 383, /* (384) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ - 475, /* (385) analyze_opt ::= */ - 475, /* (386) analyze_opt ::= ANALYZE */ - 476, /* (387) explain_options ::= */ - 476, /* (388) explain_options ::= explain_options VERBOSE NK_BOOL */ - 476, /* (389) explain_options ::= explain_options RATIO NK_FLOAT */ - 383, /* (390) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ - 383, /* (391) cmd ::= DROP FUNCTION exists_opt function_name */ - 479, /* (392) agg_func_opt ::= */ - 479, /* (393) agg_func_opt ::= AGGREGATE */ - 480, /* (394) bufsize_opt ::= */ - 480, /* (395) bufsize_opt ::= BUFSIZE NK_INTEGER */ - 481, /* (396) language_opt ::= */ - 481, /* (397) language_opt ::= LANGUAGE NK_STRING */ - 478, /* (398) or_replace_opt ::= */ - 478, /* (399) or_replace_opt ::= OR REPLACE */ - 383, /* (400) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ - 383, /* (401) cmd ::= DROP VIEW exists_opt full_view_name */ - 482, /* (402) full_view_name ::= view_name */ - 482, /* (403) full_view_name ::= db_name NK_DOT view_name */ - 383, /* (404) 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 */ - 383, /* (405) cmd ::= DROP STREAM exists_opt stream_name */ - 383, /* (406) cmd ::= PAUSE STREAM exists_opt stream_name */ - 383, /* (407) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ - 486, /* (408) col_list_opt ::= */ - 486, /* (409) col_list_opt ::= NK_LP column_stream_def_list NK_RP */ - 490, /* (410) column_stream_def_list ::= column_stream_def */ - 490, /* (411) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ - 491, /* (412) column_stream_def ::= column_name stream_col_options */ - 492, /* (413) stream_col_options ::= */ - 492, /* (414) stream_col_options ::= stream_col_options PRIMARY KEY */ - 487, /* (415) tag_def_or_ref_opt ::= */ - 487, /* (416) tag_def_or_ref_opt ::= tags_def */ - 487, /* (417) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ - 485, /* (418) stream_options ::= */ - 485, /* (419) stream_options ::= stream_options TRIGGER AT_ONCE */ - 485, /* (420) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - 485, /* (421) stream_options ::= stream_options TRIGGER FORCE_WINDOW_CLOSE */ - 485, /* (422) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - 485, /* (423) stream_options ::= stream_options WATERMARK duration_literal */ - 485, /* (424) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ - 485, /* (425) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ - 485, /* (426) stream_options ::= stream_options DELETE_MARK duration_literal */ - 485, /* (427) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ - 488, /* (428) subtable_opt ::= */ - 488, /* (429) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - 489, /* (430) ignore_opt ::= */ - 489, /* (431) ignore_opt ::= IGNORE UNTREATED */ - 383, /* (432) cmd ::= KILL CONNECTION NK_INTEGER */ - 383, /* (433) cmd ::= KILL QUERY NK_STRING */ - 383, /* (434) cmd ::= KILL TRANSACTION NK_INTEGER */ - 383, /* (435) cmd ::= KILL COMPACT NK_INTEGER */ - 383, /* (436) cmd ::= BALANCE VGROUP */ - 383, /* (437) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ - 383, /* (438) cmd ::= BALANCE VGROUP LEADER DATABASE db_name */ - 383, /* (439) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - 383, /* (440) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - 383, /* (441) cmd ::= SPLIT VGROUP NK_INTEGER */ - 494, /* (442) on_vgroup_id ::= */ - 494, /* (443) on_vgroup_id ::= ON NK_INTEGER */ - 495, /* (444) dnode_list ::= DNODE NK_INTEGER */ - 495, /* (445) dnode_list ::= dnode_list DNODE NK_INTEGER */ - 383, /* (446) cmd ::= DELETE FROM full_table_name where_clause_opt */ - 383, /* (447) cmd ::= query_or_subquery */ - 383, /* (448) cmd ::= insert_query */ - 477, /* (449) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ - 477, /* (450) insert_query ::= INSERT INTO full_table_name query_or_subquery */ - 433, /* (451) tags_literal ::= NK_INTEGER */ - 433, /* (452) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ - 433, /* (453) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ - 433, /* (454) tags_literal ::= NK_PLUS NK_INTEGER */ - 433, /* (455) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ - 433, /* (456) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ - 433, /* (457) tags_literal ::= NK_MINUS NK_INTEGER */ - 433, /* (458) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ - 433, /* (459) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ - 433, /* (460) tags_literal ::= NK_FLOAT */ - 433, /* (461) tags_literal ::= NK_PLUS NK_FLOAT */ - 433, /* (462) tags_literal ::= NK_MINUS NK_FLOAT */ - 433, /* (463) tags_literal ::= NK_BIN */ - 433, /* (464) tags_literal ::= NK_BIN NK_PLUS duration_literal */ - 433, /* (465) tags_literal ::= NK_BIN NK_MINUS duration_literal */ - 433, /* (466) tags_literal ::= NK_PLUS NK_BIN */ - 433, /* (467) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ - 433, /* (468) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ - 433, /* (469) tags_literal ::= NK_MINUS NK_BIN */ - 433, /* (470) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ - 433, /* (471) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ - 433, /* (472) tags_literal ::= NK_HEX */ - 433, /* (473) tags_literal ::= NK_HEX NK_PLUS duration_literal */ - 433, /* (474) tags_literal ::= NK_HEX NK_MINUS duration_literal */ - 433, /* (475) tags_literal ::= NK_PLUS NK_HEX */ - 433, /* (476) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ - 433, /* (477) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ - 433, /* (478) tags_literal ::= NK_MINUS NK_HEX */ - 433, /* (479) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ - 433, /* (480) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ - 433, /* (481) tags_literal ::= NK_STRING */ - 433, /* (482) tags_literal ::= NK_STRING NK_PLUS duration_literal */ - 433, /* (483) tags_literal ::= NK_STRING NK_MINUS duration_literal */ - 433, /* (484) tags_literal ::= NK_BOOL */ - 433, /* (485) tags_literal ::= NULL */ - 433, /* (486) tags_literal ::= literal_func */ - 433, /* (487) tags_literal ::= literal_func NK_PLUS duration_literal */ - 433, /* (488) tags_literal ::= literal_func NK_MINUS duration_literal */ - 436, /* (489) tags_literal_list ::= tags_literal */ - 436, /* (490) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ - 386, /* (491) literal ::= NK_INTEGER */ - 386, /* (492) literal ::= NK_FLOAT */ - 386, /* (493) literal ::= NK_STRING */ - 386, /* (494) literal ::= NK_BOOL */ - 386, /* (495) literal ::= TIMESTAMP NK_STRING */ - 386, /* (496) literal ::= duration_literal */ - 386, /* (497) literal ::= NULL */ - 386, /* (498) literal ::= NK_QUESTION */ - 446, /* (499) duration_literal ::= NK_VARIABLE */ - 417, /* (500) signed ::= NK_INTEGER */ - 417, /* (501) signed ::= NK_PLUS NK_INTEGER */ - 417, /* (502) signed ::= NK_MINUS NK_INTEGER */ - 417, /* (503) signed ::= NK_FLOAT */ - 417, /* (504) signed ::= NK_PLUS NK_FLOAT */ - 417, /* (505) signed ::= NK_MINUS NK_FLOAT */ - 497, /* (506) signed_literal ::= signed */ - 497, /* (507) signed_literal ::= NK_STRING */ - 497, /* (508) signed_literal ::= NK_BOOL */ - 497, /* (509) signed_literal ::= TIMESTAMP NK_STRING */ - 497, /* (510) signed_literal ::= duration_literal */ - 497, /* (511) signed_literal ::= NULL */ - 497, /* (512) signed_literal ::= literal_func */ - 497, /* (513) signed_literal ::= NK_QUESTION */ - 498, /* (514) literal_list ::= signed_literal */ - 498, /* (515) literal_list ::= literal_list NK_COMMA signed_literal */ - 400, /* (516) db_name ::= NK_ID */ - 401, /* (517) table_name ::= NK_ID */ - 430, /* (518) column_name ::= NK_ID */ - 448, /* (519) function_name ::= NK_ID */ - 483, /* (520) view_name ::= NK_ID */ - 499, /* (521) table_alias ::= NK_ID */ - 458, /* (522) column_alias ::= NK_ID */ - 458, /* (523) column_alias ::= NK_ALIAS */ - 393, /* (524) user_name ::= NK_ID */ - 402, /* (525) topic_name ::= NK_ID */ - 484, /* (526) stream_name ::= NK_ID */ - 474, /* (527) cgroup_name ::= NK_ID */ - 465, /* (528) index_name ::= NK_ID */ - 459, /* (529) tsma_name ::= NK_ID */ - 500, /* (530) expr_or_subquery ::= expression */ - 493, /* (531) expression ::= literal */ - 493, /* (532) expression ::= pseudo_column */ - 493, /* (533) expression ::= column_reference */ - 493, /* (534) expression ::= function_expression */ - 493, /* (535) expression ::= case_when_expression */ - 493, /* (536) expression ::= NK_LP expression NK_RP */ - 493, /* (537) expression ::= NK_PLUS expr_or_subquery */ - 493, /* (538) expression ::= NK_MINUS expr_or_subquery */ - 493, /* (539) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ - 493, /* (540) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ - 493, /* (541) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ - 493, /* (542) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ - 493, /* (543) expression ::= expr_or_subquery NK_REM expr_or_subquery */ - 493, /* (544) expression ::= column_reference NK_ARROW NK_STRING */ - 493, /* (545) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ - 493, /* (546) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ - 470, /* (547) expression_list ::= expr_or_subquery */ - 470, /* (548) expression_list ::= expression_list NK_COMMA expr_or_subquery */ - 502, /* (549) column_reference ::= column_name */ - 502, /* (550) column_reference ::= table_name NK_DOT column_name */ - 502, /* (551) column_reference ::= NK_ALIAS */ - 502, /* (552) column_reference ::= table_name NK_DOT NK_ALIAS */ - 501, /* (553) pseudo_column ::= ROWTS */ - 501, /* (554) pseudo_column ::= TBNAME */ - 501, /* (555) pseudo_column ::= table_name NK_DOT TBNAME */ - 501, /* (556) pseudo_column ::= QSTART */ - 501, /* (557) pseudo_column ::= QEND */ - 501, /* (558) pseudo_column ::= QDURATION */ - 501, /* (559) pseudo_column ::= WSTART */ - 501, /* (560) pseudo_column ::= WEND */ - 501, /* (561) pseudo_column ::= WDURATION */ - 501, /* (562) pseudo_column ::= IROWTS */ - 501, /* (563) pseudo_column ::= ISFILLED */ - 501, /* (564) pseudo_column ::= QTAGS */ - 503, /* (565) function_expression ::= function_name NK_LP expression_list NK_RP */ - 503, /* (566) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - 503, /* (567) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ - 503, /* (568) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ - 503, /* (569) function_expression ::= POSITION NK_LP expr_or_subquery IN expr_or_subquery NK_RP */ - 503, /* (570) function_expression ::= TRIM NK_LP expr_or_subquery NK_RP */ - 503, /* (571) function_expression ::= TRIM NK_LP trim_specification_type FROM expr_or_subquery NK_RP */ - 503, /* (572) function_expression ::= TRIM NK_LP expr_or_subquery FROM expr_or_subquery NK_RP */ - 503, /* (573) function_expression ::= TRIM NK_LP trim_specification_type expr_or_subquery FROM expr_or_subquery NK_RP */ - 503, /* (574) function_expression ::= substr_func NK_LP expression_list NK_RP */ - 503, /* (575) function_expression ::= substr_func NK_LP expr_or_subquery FROM expr_or_subquery NK_RP */ - 503, /* (576) function_expression ::= substr_func NK_LP expr_or_subquery FROM expr_or_subquery FOR expr_or_subquery NK_RP */ - 503, /* (577) function_expression ::= REPLACE NK_LP expression_list NK_RP */ - 503, /* (578) function_expression ::= literal_func */ - 496, /* (579) literal_func ::= noarg_func NK_LP NK_RP */ - 496, /* (580) literal_func ::= NOW */ - 496, /* (581) literal_func ::= TODAY */ - 508, /* (582) substr_func ::= SUBSTR */ - 508, /* (583) substr_func ::= SUBSTRING */ - 507, /* (584) trim_specification_type ::= BOTH */ - 507, /* (585) trim_specification_type ::= TRAILING */ - 507, /* (586) trim_specification_type ::= LEADING */ - 509, /* (587) noarg_func ::= NOW */ - 509, /* (588) noarg_func ::= TODAY */ - 509, /* (589) noarg_func ::= TIMEZONE */ - 509, /* (590) noarg_func ::= DATABASE */ - 509, /* (591) noarg_func ::= CLIENT_VERSION */ - 509, /* (592) noarg_func ::= SERVER_VERSION */ - 509, /* (593) noarg_func ::= SERVER_STATUS */ - 509, /* (594) noarg_func ::= CURRENT_USER */ - 509, /* (595) noarg_func ::= USER */ - 509, /* (596) noarg_func ::= PI */ - 505, /* (597) star_func ::= COUNT */ - 505, /* (598) star_func ::= FIRST */ - 505, /* (599) star_func ::= LAST */ - 505, /* (600) star_func ::= LAST_ROW */ - 506, /* (601) star_func_para_list ::= NK_STAR */ - 506, /* (602) star_func_para_list ::= other_para_list */ - 510, /* (603) other_para_list ::= star_func_para */ - 510, /* (604) other_para_list ::= other_para_list NK_COMMA star_func_para */ - 511, /* (605) star_func_para ::= expr_or_subquery */ - 511, /* (606) star_func_para ::= table_name NK_DOT NK_STAR */ - 504, /* (607) case_when_expression ::= CASE when_then_list case_when_else_opt END */ - 504, /* (608) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ - 512, /* (609) when_then_list ::= when_then_expr */ - 512, /* (610) when_then_list ::= when_then_list when_then_expr */ - 515, /* (611) when_then_expr ::= WHEN common_expression THEN common_expression */ - 513, /* (612) case_when_else_opt ::= */ - 513, /* (613) case_when_else_opt ::= ELSE common_expression */ - 516, /* (614) predicate ::= expr_or_subquery compare_op expr_or_subquery */ - 516, /* (615) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ - 516, /* (616) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ - 516, /* (617) predicate ::= expr_or_subquery IS NULL */ - 516, /* (618) predicate ::= expr_or_subquery IS NOT NULL */ - 516, /* (619) predicate ::= expr_or_subquery in_op in_predicate_value */ - 517, /* (620) compare_op ::= NK_LT */ - 517, /* (621) compare_op ::= NK_GT */ - 517, /* (622) compare_op ::= NK_LE */ - 517, /* (623) compare_op ::= NK_GE */ - 517, /* (624) compare_op ::= NK_NE */ - 517, /* (625) compare_op ::= NK_EQ */ - 517, /* (626) compare_op ::= LIKE */ - 517, /* (627) compare_op ::= NOT LIKE */ - 517, /* (628) compare_op ::= MATCH */ - 517, /* (629) compare_op ::= NMATCH */ - 517, /* (630) compare_op ::= CONTAINS */ - 518, /* (631) in_op ::= IN */ - 518, /* (632) in_op ::= NOT IN */ - 519, /* (633) in_predicate_value ::= NK_LP literal_list NK_RP */ - 520, /* (634) boolean_value_expression ::= boolean_primary */ - 520, /* (635) boolean_value_expression ::= NOT boolean_primary */ - 520, /* (636) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - 520, /* (637) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - 521, /* (638) boolean_primary ::= predicate */ - 521, /* (639) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - 514, /* (640) common_expression ::= expr_or_subquery */ - 514, /* (641) common_expression ::= boolean_value_expression */ - 522, /* (642) from_clause_opt ::= */ - 522, /* (643) from_clause_opt ::= FROM table_reference_list */ - 523, /* (644) table_reference_list ::= table_reference */ - 523, /* (645) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - 524, /* (646) table_reference ::= table_primary */ - 524, /* (647) table_reference ::= joined_table */ - 525, /* (648) table_primary ::= table_name alias_opt */ - 525, /* (649) table_primary ::= db_name NK_DOT table_name alias_opt */ - 525, /* (650) table_primary ::= subquery alias_opt */ - 525, /* (651) table_primary ::= parenthesized_joined_table */ - 527, /* (652) alias_opt ::= */ - 527, /* (653) alias_opt ::= table_alias */ - 527, /* (654) alias_opt ::= AS table_alias */ - 529, /* (655) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - 529, /* (656) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - 526, /* (657) joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */ - 530, /* (658) join_type ::= */ - 530, /* (659) join_type ::= INNER */ - 530, /* (660) join_type ::= LEFT */ - 530, /* (661) join_type ::= RIGHT */ - 530, /* (662) join_type ::= FULL */ - 531, /* (663) join_subtype ::= */ - 531, /* (664) join_subtype ::= OUTER */ - 531, /* (665) join_subtype ::= SEMI */ - 531, /* (666) join_subtype ::= ANTI */ - 531, /* (667) join_subtype ::= ASOF */ - 531, /* (668) join_subtype ::= WINDOW */ - 532, /* (669) join_on_clause_opt ::= */ - 532, /* (670) join_on_clause_opt ::= ON search_condition */ - 533, /* (671) window_offset_clause_opt ::= */ - 533, /* (672) window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */ - 535, /* (673) window_offset_literal ::= NK_VARIABLE */ - 535, /* (674) window_offset_literal ::= NK_MINUS NK_VARIABLE */ - 534, /* (675) jlimit_clause_opt ::= */ - 534, /* (676) jlimit_clause_opt ::= JLIMIT NK_INTEGER */ - 536, /* (677) 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 */ - 537, /* (678) hint_list ::= */ - 537, /* (679) hint_list ::= NK_HINT */ - 539, /* (680) tag_mode_opt ::= */ - 539, /* (681) tag_mode_opt ::= TAGS */ - 538, /* (682) set_quantifier_opt ::= */ - 538, /* (683) set_quantifier_opt ::= DISTINCT */ - 538, /* (684) set_quantifier_opt ::= ALL */ - 540, /* (685) select_list ::= select_item */ - 540, /* (686) select_list ::= select_list NK_COMMA select_item */ - 548, /* (687) select_item ::= NK_STAR */ - 548, /* (688) select_item ::= common_expression */ - 548, /* (689) select_item ::= common_expression column_alias */ - 548, /* (690) select_item ::= common_expression AS column_alias */ - 548, /* (691) select_item ::= table_name NK_DOT NK_STAR */ - 473, /* (692) where_clause_opt ::= */ - 473, /* (693) where_clause_opt ::= WHERE search_condition */ - 541, /* (694) partition_by_clause_opt ::= */ - 541, /* (695) partition_by_clause_opt ::= PARTITION BY partition_list */ - 549, /* (696) partition_list ::= partition_item */ - 549, /* (697) partition_list ::= partition_list NK_COMMA partition_item */ - 550, /* (698) partition_item ::= expr_or_subquery */ - 550, /* (699) partition_item ::= expr_or_subquery column_alias */ - 550, /* (700) partition_item ::= expr_or_subquery AS column_alias */ - 545, /* (701) twindow_clause_opt ::= */ - 545, /* (702) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ - 545, /* (703) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ - 545, /* (704) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ - 545, /* (705) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ - 545, /* (706) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ - 545, /* (707) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ - 545, /* (708) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 466, /* (709) sliding_opt ::= */ - 466, /* (710) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ - 551, /* (711) interval_sliding_duration_literal ::= NK_VARIABLE */ - 551, /* (712) interval_sliding_duration_literal ::= NK_STRING */ - 551, /* (713) interval_sliding_duration_literal ::= NK_INTEGER */ - 544, /* (714) fill_opt ::= */ - 544, /* (715) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - 544, /* (716) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ - 544, /* (717) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ - 552, /* (718) fill_mode ::= NONE */ - 552, /* (719) fill_mode ::= PREV */ - 552, /* (720) fill_mode ::= NULL */ - 552, /* (721) fill_mode ::= NULL_F */ - 552, /* (722) fill_mode ::= LINEAR */ - 552, /* (723) fill_mode ::= NEXT */ - 546, /* (724) group_by_clause_opt ::= */ - 546, /* (725) group_by_clause_opt ::= GROUP BY group_by_list */ - 553, /* (726) group_by_list ::= expr_or_subquery */ - 553, /* (727) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ - 547, /* (728) having_clause_opt ::= */ - 547, /* (729) having_clause_opt ::= HAVING search_condition */ - 542, /* (730) range_opt ::= */ - 542, /* (731) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ - 542, /* (732) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ - 543, /* (733) every_opt ::= */ - 543, /* (734) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - 554, /* (735) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ - 555, /* (736) query_simple ::= query_specification */ - 555, /* (737) query_simple ::= union_query_expression */ - 559, /* (738) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ - 559, /* (739) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ - 560, /* (740) query_simple_or_subquery ::= query_simple */ - 560, /* (741) query_simple_or_subquery ::= subquery */ - 472, /* (742) query_or_subquery ::= query_expression */ - 472, /* (743) query_or_subquery ::= subquery */ - 556, /* (744) order_by_clause_opt ::= */ - 556, /* (745) order_by_clause_opt ::= ORDER BY sort_specification_list */ - 557, /* (746) slimit_clause_opt ::= */ - 557, /* (747) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - 557, /* (748) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - 557, /* (749) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 558, /* (750) limit_clause_opt ::= */ - 558, /* (751) limit_clause_opt ::= LIMIT NK_INTEGER */ - 558, /* (752) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - 558, /* (753) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 528, /* (754) subquery ::= NK_LP query_expression NK_RP */ - 528, /* (755) subquery ::= NK_LP subquery NK_RP */ - 403, /* (756) search_condition ::= common_expression */ - 561, /* (757) sort_specification_list ::= sort_specification */ - 561, /* (758) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - 562, /* (759) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ - 563, /* (760) ordering_specification_opt ::= */ - 563, /* (761) ordering_specification_opt ::= ASC */ - 563, /* (762) ordering_specification_opt ::= DESC */ - 564, /* (763) null_ordering_opt ::= */ - 564, /* (764) null_ordering_opt ::= NULLS FIRST */ - 564, /* (765) null_ordering_opt ::= NULLS LAST */ - 432, /* (766) column_options ::= */ - 432, /* (767) column_options ::= column_options PRIMARY KEY */ - 432, /* (768) column_options ::= column_options NK_ID NK_STRING */ + 384, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ + 384, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ + 385, /* (2) account_options ::= */ + 385, /* (3) account_options ::= account_options PPS literal */ + 385, /* (4) account_options ::= account_options TSERIES literal */ + 385, /* (5) account_options ::= account_options STORAGE literal */ + 385, /* (6) account_options ::= account_options STREAMS literal */ + 385, /* (7) account_options ::= account_options QTIME literal */ + 385, /* (8) account_options ::= account_options DBS literal */ + 385, /* (9) account_options ::= account_options USERS literal */ + 385, /* (10) account_options ::= account_options CONNS literal */ + 385, /* (11) account_options ::= account_options STATE literal */ + 386, /* (12) alter_account_options ::= alter_account_option */ + 386, /* (13) alter_account_options ::= alter_account_options alter_account_option */ + 388, /* (14) alter_account_option ::= PASS literal */ + 388, /* (15) alter_account_option ::= PPS literal */ + 388, /* (16) alter_account_option ::= TSERIES literal */ + 388, /* (17) alter_account_option ::= STORAGE literal */ + 388, /* (18) alter_account_option ::= STREAMS literal */ + 388, /* (19) alter_account_option ::= QTIME literal */ + 388, /* (20) alter_account_option ::= DBS literal */ + 388, /* (21) alter_account_option ::= USERS literal */ + 388, /* (22) alter_account_option ::= CONNS literal */ + 388, /* (23) alter_account_option ::= STATE literal */ + 389, /* (24) ip_range_list ::= NK_STRING */ + 389, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ + 390, /* (26) white_list ::= HOST ip_range_list */ + 391, /* (27) white_list_opt ::= */ + 391, /* (28) white_list_opt ::= white_list */ + 392, /* (29) is_import_opt ::= */ + 392, /* (30) is_import_opt ::= IS_IMPORT NK_INTEGER */ + 393, /* (31) is_createdb_opt ::= */ + 393, /* (32) is_createdb_opt ::= CREATEDB NK_INTEGER */ + 384, /* (33) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt is_createdb_opt is_import_opt white_list_opt */ + 384, /* (34) cmd ::= ALTER USER user_name PASS NK_STRING */ + 384, /* (35) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ + 384, /* (36) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ + 384, /* (37) cmd ::= ALTER USER user_name CREATEDB NK_INTEGER */ + 384, /* (38) cmd ::= ALTER USER user_name ADD white_list */ + 384, /* (39) cmd ::= ALTER USER user_name DROP white_list */ + 384, /* (40) cmd ::= DROP USER user_name */ + 395, /* (41) sysinfo_opt ::= */ + 395, /* (42) sysinfo_opt ::= SYSINFO NK_INTEGER */ + 384, /* (43) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ + 384, /* (44) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ + 396, /* (45) privileges ::= ALL */ + 396, /* (46) privileges ::= priv_type_list */ + 396, /* (47) privileges ::= SUBSCRIBE */ + 399, /* (48) priv_type_list ::= priv_type */ + 399, /* (49) priv_type_list ::= priv_type_list NK_COMMA priv_type */ + 400, /* (50) priv_type ::= READ */ + 400, /* (51) priv_type ::= WRITE */ + 400, /* (52) priv_type ::= ALTER */ + 397, /* (53) priv_level ::= NK_STAR NK_DOT NK_STAR */ + 397, /* (54) priv_level ::= db_name NK_DOT NK_STAR */ + 397, /* (55) priv_level ::= db_name NK_DOT table_name */ + 397, /* (56) priv_level ::= topic_name */ + 398, /* (57) with_opt ::= */ + 398, /* (58) with_opt ::= WITH search_condition */ + 384, /* (59) cmd ::= CREATE ENCRYPT_KEY NK_STRING */ + 384, /* (60) cmd ::= CREATE DNODE dnode_endpoint */ + 384, /* (61) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ + 384, /* (62) cmd ::= DROP DNODE NK_INTEGER force_opt */ + 384, /* (63) cmd ::= DROP DNODE dnode_endpoint force_opt */ + 384, /* (64) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ + 384, /* (65) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ + 384, /* (66) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + 384, /* (67) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + 384, /* (68) cmd ::= ALTER ALL DNODES NK_STRING */ + 384, /* (69) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + 384, /* (70) cmd ::= RESTORE DNODE NK_INTEGER */ + 405, /* (71) dnode_endpoint ::= NK_STRING */ + 405, /* (72) dnode_endpoint ::= NK_ID */ + 405, /* (73) dnode_endpoint ::= NK_IPTOKEN */ + 406, /* (74) force_opt ::= */ + 406, /* (75) force_opt ::= FORCE */ + 407, /* (76) unsafe_opt ::= UNSAFE */ + 384, /* (77) cmd ::= ALTER CLUSTER NK_STRING */ + 384, /* (78) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */ + 384, /* (79) cmd ::= ALTER LOCAL NK_STRING */ + 384, /* (80) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + 384, /* (81) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + 384, /* (82) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + 384, /* (83) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ + 384, /* (84) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + 384, /* (85) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + 384, /* (86) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + 384, /* (87) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + 384, /* (88) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + 384, /* (89) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + 384, /* (90) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ + 384, /* (91) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ + 384, /* (92) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + 384, /* (93) cmd ::= DROP DATABASE exists_opt db_name */ + 384, /* (94) cmd ::= USE db_name */ + 384, /* (95) cmd ::= ALTER DATABASE db_name alter_db_options */ + 384, /* (96) cmd ::= FLUSH DATABASE db_name */ + 384, /* (97) cmd ::= TRIM DATABASE db_name speed_opt */ + 384, /* (98) cmd ::= S3MIGRATE DATABASE db_name */ + 384, /* (99) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ + 408, /* (100) not_exists_opt ::= IF NOT EXISTS */ + 408, /* (101) not_exists_opt ::= */ + 410, /* (102) exists_opt ::= IF EXISTS */ + 410, /* (103) exists_opt ::= */ + 409, /* (104) db_options ::= */ + 409, /* (105) db_options ::= db_options BUFFER NK_INTEGER */ + 409, /* (106) db_options ::= db_options CACHEMODEL NK_STRING */ + 409, /* (107) db_options ::= db_options CACHESIZE NK_INTEGER */ + 409, /* (108) db_options ::= db_options COMP NK_INTEGER */ + 409, /* (109) db_options ::= db_options DURATION NK_INTEGER */ + 409, /* (110) db_options ::= db_options DURATION NK_VARIABLE */ + 409, /* (111) db_options ::= db_options MAXROWS NK_INTEGER */ + 409, /* (112) db_options ::= db_options MINROWS NK_INTEGER */ + 409, /* (113) db_options ::= db_options KEEP integer_list */ + 409, /* (114) db_options ::= db_options KEEP variable_list */ + 409, /* (115) db_options ::= db_options PAGES NK_INTEGER */ + 409, /* (116) db_options ::= db_options PAGESIZE NK_INTEGER */ + 409, /* (117) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ + 409, /* (118) db_options ::= db_options PRECISION NK_STRING */ + 409, /* (119) db_options ::= db_options REPLICA NK_INTEGER */ + 409, /* (120) db_options ::= db_options VGROUPS NK_INTEGER */ + 409, /* (121) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + 409, /* (122) db_options ::= db_options RETENTIONS retention_list */ + 409, /* (123) db_options ::= db_options SCHEMALESS NK_INTEGER */ + 409, /* (124) db_options ::= db_options WAL_LEVEL NK_INTEGER */ + 409, /* (125) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ + 409, /* (126) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ + 409, /* (127) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ + 409, /* (128) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ + 409, /* (129) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ + 409, /* (130) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ + 409, /* (131) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ + 409, /* (132) db_options ::= db_options STT_TRIGGER NK_INTEGER */ + 409, /* (133) db_options ::= db_options TABLE_PREFIX signed */ + 409, /* (134) db_options ::= db_options TABLE_SUFFIX signed */ + 409, /* (135) db_options ::= db_options S3_CHUNKSIZE NK_INTEGER */ + 409, /* (136) db_options ::= db_options S3_KEEPLOCAL NK_INTEGER */ + 409, /* (137) db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE */ + 409, /* (138) db_options ::= db_options S3_COMPACT NK_INTEGER */ + 409, /* (139) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ + 409, /* (140) db_options ::= db_options ENCRYPT_ALGORITHM NK_STRING */ + 411, /* (141) alter_db_options ::= alter_db_option */ + 411, /* (142) alter_db_options ::= alter_db_options alter_db_option */ + 419, /* (143) alter_db_option ::= BUFFER NK_INTEGER */ + 419, /* (144) alter_db_option ::= CACHEMODEL NK_STRING */ + 419, /* (145) alter_db_option ::= CACHESIZE NK_INTEGER */ + 419, /* (146) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ + 419, /* (147) alter_db_option ::= KEEP integer_list */ + 419, /* (148) alter_db_option ::= KEEP variable_list */ + 419, /* (149) alter_db_option ::= PAGES NK_INTEGER */ + 419, /* (150) alter_db_option ::= REPLICA NK_INTEGER */ + 419, /* (151) alter_db_option ::= WAL_LEVEL NK_INTEGER */ + 419, /* (152) alter_db_option ::= STT_TRIGGER NK_INTEGER */ + 419, /* (153) alter_db_option ::= MINROWS NK_INTEGER */ + 419, /* (154) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ + 419, /* (155) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ + 419, /* (156) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ + 419, /* (157) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ + 419, /* (158) alter_db_option ::= S3_KEEPLOCAL NK_INTEGER */ + 419, /* (159) alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE */ + 419, /* (160) alter_db_option ::= S3_COMPACT NK_INTEGER */ + 419, /* (161) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ + 419, /* (162) alter_db_option ::= ENCRYPT_ALGORITHM NK_STRING */ + 415, /* (163) integer_list ::= NK_INTEGER */ + 415, /* (164) integer_list ::= integer_list NK_COMMA NK_INTEGER */ + 416, /* (165) variable_list ::= NK_VARIABLE */ + 416, /* (166) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + 417, /* (167) retention_list ::= retention */ + 417, /* (168) retention_list ::= retention_list NK_COMMA retention */ + 420, /* (169) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + 420, /* (170) retention ::= NK_MINUS NK_COLON NK_VARIABLE */ + 412, /* (171) speed_opt ::= */ + 412, /* (172) speed_opt ::= BWLIMIT NK_INTEGER */ + 413, /* (173) start_opt ::= */ + 413, /* (174) start_opt ::= START WITH NK_INTEGER */ + 413, /* (175) start_opt ::= START WITH NK_STRING */ + 413, /* (176) start_opt ::= START WITH TIMESTAMP NK_STRING */ + 414, /* (177) end_opt ::= */ + 414, /* (178) end_opt ::= END WITH NK_INTEGER */ + 414, /* (179) end_opt ::= END WITH NK_STRING */ + 414, /* (180) end_opt ::= END WITH TIMESTAMP NK_STRING */ + 384, /* (181) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + 384, /* (182) cmd ::= CREATE TABLE multi_create_clause */ + 384, /* (183) cmd ::= CREATE TABLE not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP FILE NK_STRING */ + 384, /* (184) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + 384, /* (185) cmd ::= DROP TABLE multi_drop_clause */ + 384, /* (186) cmd ::= DROP STABLE exists_opt full_table_name */ + 384, /* (187) cmd ::= ALTER TABLE alter_table_clause */ + 384, /* (188) cmd ::= ALTER STABLE alter_table_clause */ + 429, /* (189) alter_table_clause ::= full_table_name alter_table_options */ + 429, /* (190) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name column_options */ + 429, /* (191) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + 429, /* (192) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + 429, /* (193) alter_table_clause ::= full_table_name MODIFY COLUMN column_name column_options */ + 429, /* (194) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + 429, /* (195) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + 429, /* (196) alter_table_clause ::= full_table_name DROP TAG column_name */ + 429, /* (197) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + 429, /* (198) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + 429, /* (199) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */ + 425, /* (200) multi_create_clause ::= create_subtable_clause */ + 425, /* (201) multi_create_clause ::= multi_create_clause create_subtable_clause */ + 435, /* (202) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */ + 428, /* (203) multi_drop_clause ::= drop_table_clause */ + 428, /* (204) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ + 438, /* (205) drop_table_clause ::= exists_opt full_table_name */ + 436, /* (206) specific_cols_opt ::= */ + 436, /* (207) specific_cols_opt ::= NK_LP col_name_list NK_RP */ + 421, /* (208) full_table_name ::= table_name */ + 421, /* (209) full_table_name ::= db_name NK_DOT table_name */ + 440, /* (210) tag_def_list ::= tag_def */ + 440, /* (211) tag_def_list ::= tag_def_list NK_COMMA tag_def */ + 441, /* (212) tag_def ::= column_name type_name */ + 422, /* (213) column_def_list ::= column_def */ + 422, /* (214) column_def_list ::= column_def_list NK_COMMA column_def */ + 442, /* (215) column_def ::= column_name type_name column_options */ + 432, /* (216) type_name ::= BOOL */ + 432, /* (217) type_name ::= TINYINT */ + 432, /* (218) type_name ::= SMALLINT */ + 432, /* (219) type_name ::= INT */ + 432, /* (220) type_name ::= INTEGER */ + 432, /* (221) type_name ::= BIGINT */ + 432, /* (222) type_name ::= FLOAT */ + 432, /* (223) type_name ::= DOUBLE */ + 432, /* (224) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + 432, /* (225) type_name ::= TIMESTAMP */ + 432, /* (226) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + 432, /* (227) type_name ::= TINYINT UNSIGNED */ + 432, /* (228) type_name ::= SMALLINT UNSIGNED */ + 432, /* (229) type_name ::= INT UNSIGNED */ + 432, /* (230) type_name ::= BIGINT UNSIGNED */ + 432, /* (231) type_name ::= JSON */ + 432, /* (232) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + 432, /* (233) type_name ::= MEDIUMBLOB */ + 432, /* (234) type_name ::= BLOB */ + 432, /* (235) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + 432, /* (236) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ + 432, /* (237) type_name ::= DECIMAL */ + 432, /* (238) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + 432, /* (239) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + 443, /* (240) type_name_default_len ::= BINARY */ + 443, /* (241) type_name_default_len ::= NCHAR */ + 443, /* (242) type_name_default_len ::= VARCHAR */ + 443, /* (243) type_name_default_len ::= VARBINARY */ + 423, /* (244) tags_def_opt ::= */ + 423, /* (245) tags_def_opt ::= tags_def */ + 427, /* (246) tags_def ::= TAGS NK_LP tag_def_list NK_RP */ + 424, /* (247) table_options ::= */ + 424, /* (248) table_options ::= table_options COMMENT NK_STRING */ + 424, /* (249) table_options ::= table_options MAX_DELAY duration_list */ + 424, /* (250) table_options ::= table_options WATERMARK duration_list */ + 424, /* (251) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + 424, /* (252) table_options ::= table_options TTL NK_INTEGER */ + 424, /* (253) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + 424, /* (254) table_options ::= table_options DELETE_MARK duration_list */ + 430, /* (255) alter_table_options ::= alter_table_option */ + 430, /* (256) alter_table_options ::= alter_table_options alter_table_option */ + 446, /* (257) alter_table_option ::= COMMENT NK_STRING */ + 446, /* (258) alter_table_option ::= TTL NK_INTEGER */ + 444, /* (259) duration_list ::= duration_literal */ + 444, /* (260) duration_list ::= duration_list NK_COMMA duration_literal */ + 445, /* (261) rollup_func_list ::= rollup_func_name */ + 445, /* (262) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + 448, /* (263) rollup_func_name ::= function_name */ + 448, /* (264) rollup_func_name ::= FIRST */ + 448, /* (265) rollup_func_name ::= LAST */ + 439, /* (266) col_name_list ::= col_name */ + 439, /* (267) col_name_list ::= col_name_list NK_COMMA col_name */ + 450, /* (268) col_name ::= column_name */ + 384, /* (269) cmd ::= SHOW DNODES */ + 384, /* (270) cmd ::= SHOW USERS */ + 384, /* (271) cmd ::= SHOW USERS FULL */ + 384, /* (272) cmd ::= SHOW USER PRIVILEGES */ + 384, /* (273) cmd ::= SHOW db_kind_opt DATABASES */ + 384, /* (274) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ + 384, /* (275) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + 384, /* (276) cmd ::= SHOW db_name_cond_opt VGROUPS */ + 384, /* (277) cmd ::= SHOW MNODES */ + 384, /* (278) cmd ::= SHOW QNODES */ + 384, /* (279) cmd ::= SHOW ARBGROUPS */ + 384, /* (280) cmd ::= SHOW FUNCTIONS */ + 384, /* (281) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + 384, /* (282) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ + 384, /* (283) cmd ::= SHOW STREAMS */ + 384, /* (284) cmd ::= SHOW ACCOUNTS */ + 384, /* (285) cmd ::= SHOW APPS */ + 384, /* (286) cmd ::= SHOW CONNECTIONS */ + 384, /* (287) cmd ::= SHOW LICENCES */ + 384, /* (288) cmd ::= SHOW GRANTS */ + 384, /* (289) cmd ::= SHOW GRANTS FULL */ + 384, /* (290) cmd ::= SHOW GRANTS LOGS */ + 384, /* (291) cmd ::= SHOW CLUSTER MACHINES */ + 384, /* (292) cmd ::= SHOW CREATE DATABASE db_name */ + 384, /* (293) cmd ::= SHOW CREATE TABLE full_table_name */ + 384, /* (294) cmd ::= SHOW CREATE STABLE full_table_name */ + 384, /* (295) cmd ::= SHOW ENCRYPTIONS */ + 384, /* (296) cmd ::= SHOW QUERIES */ + 384, /* (297) cmd ::= SHOW SCORES */ + 384, /* (298) cmd ::= SHOW TOPICS */ + 384, /* (299) cmd ::= SHOW VARIABLES */ + 384, /* (300) cmd ::= SHOW CLUSTER VARIABLES */ + 384, /* (301) cmd ::= SHOW LOCAL VARIABLES */ + 384, /* (302) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ + 384, /* (303) cmd ::= SHOW BNODES */ + 384, /* (304) cmd ::= SHOW SNODES */ + 384, /* (305) cmd ::= SHOW CLUSTER */ + 384, /* (306) cmd ::= SHOW TRANSACTIONS */ + 384, /* (307) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + 384, /* (308) cmd ::= SHOW CONSUMERS */ + 384, /* (309) cmd ::= SHOW SUBSCRIPTIONS */ + 384, /* (310) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ + 384, /* (311) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ + 384, /* (312) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ + 384, /* (313) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ + 384, /* (314) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ + 384, /* (315) cmd ::= SHOW VNODES */ + 384, /* (316) cmd ::= SHOW db_name_cond_opt ALIVE */ + 384, /* (317) cmd ::= SHOW CLUSTER ALIVE */ + 384, /* (318) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ + 384, /* (319) cmd ::= SHOW CREATE VIEW full_table_name */ + 384, /* (320) cmd ::= SHOW COMPACTS */ + 384, /* (321) cmd ::= SHOW COMPACT NK_INTEGER */ + 452, /* (322) table_kind_db_name_cond_opt ::= */ + 452, /* (323) table_kind_db_name_cond_opt ::= table_kind */ + 452, /* (324) table_kind_db_name_cond_opt ::= db_name NK_DOT */ + 452, /* (325) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ + 457, /* (326) table_kind ::= NORMAL */ + 457, /* (327) table_kind ::= CHILD */ + 454, /* (328) db_name_cond_opt ::= */ + 454, /* (329) db_name_cond_opt ::= db_name NK_DOT */ + 453, /* (330) like_pattern_opt ::= */ + 453, /* (331) like_pattern_opt ::= LIKE NK_STRING */ + 455, /* (332) table_name_cond ::= table_name */ + 456, /* (333) from_db_opt ::= */ + 456, /* (334) from_db_opt ::= FROM db_name */ + 426, /* (335) tag_list_opt ::= */ + 426, /* (336) tag_list_opt ::= tag_item */ + 426, /* (337) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ + 458, /* (338) tag_item ::= TBNAME */ + 458, /* (339) tag_item ::= QTAGS */ + 458, /* (340) tag_item ::= column_name */ + 458, /* (341) tag_item ::= column_name column_alias */ + 458, /* (342) tag_item ::= column_name AS column_alias */ + 451, /* (343) db_kind_opt ::= */ + 451, /* (344) db_kind_opt ::= USER */ + 451, /* (345) db_kind_opt ::= SYSTEM */ + 384, /* (346) cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_func_list INTERVAL NK_LP duration_literal NK_RP */ + 384, /* (347) cmd ::= CREATE RECURSIVE TSMA not_exists_opt tsma_name ON full_table_name INTERVAL NK_LP duration_literal NK_RP */ + 384, /* (348) cmd ::= DROP TSMA exists_opt full_tsma_name */ + 384, /* (349) cmd ::= SHOW db_name_cond_opt TSMAS */ + 462, /* (350) full_tsma_name ::= tsma_name */ + 462, /* (351) full_tsma_name ::= db_name NK_DOT tsma_name */ + 461, /* (352) tsma_func_list ::= FUNCTION NK_LP func_list NK_RP */ + 384, /* (353) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ + 384, /* (354) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ + 384, /* (355) cmd ::= DROP INDEX exists_opt full_index_name */ + 465, /* (356) full_index_name ::= index_name */ + 465, /* (357) full_index_name ::= db_name NK_DOT index_name */ + 464, /* (358) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ + 464, /* (359) 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 */ + 463, /* (360) func_list ::= func */ + 463, /* (361) func_list ::= func_list NK_COMMA func */ + 469, /* (362) func ::= sma_func_name NK_LP expression_list NK_RP */ + 470, /* (363) sma_func_name ::= function_name */ + 470, /* (364) sma_func_name ::= COUNT */ + 470, /* (365) sma_func_name ::= FIRST */ + 470, /* (366) sma_func_name ::= LAST */ + 470, /* (367) sma_func_name ::= LAST_ROW */ + 468, /* (368) sma_stream_opt ::= */ + 468, /* (369) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ + 468, /* (370) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ + 468, /* (371) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ + 472, /* (372) with_meta ::= AS */ + 472, /* (373) with_meta ::= WITH META AS */ + 472, /* (374) with_meta ::= ONLY META AS */ + 384, /* (375) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ + 384, /* (376) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ + 384, /* (377) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ + 384, /* (378) cmd ::= DROP TOPIC exists_opt topic_name */ + 384, /* (379) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + 384, /* (380) cmd ::= DESC full_table_name */ + 384, /* (381) cmd ::= DESCRIBE full_table_name */ + 384, /* (382) cmd ::= RESET QUERY CACHE */ + 384, /* (383) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + 384, /* (384) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ + 476, /* (385) analyze_opt ::= */ + 476, /* (386) analyze_opt ::= ANALYZE */ + 477, /* (387) explain_options ::= */ + 477, /* (388) explain_options ::= explain_options VERBOSE NK_BOOL */ + 477, /* (389) explain_options ::= explain_options RATIO NK_FLOAT */ + 384, /* (390) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ + 384, /* (391) cmd ::= DROP FUNCTION exists_opt function_name */ + 480, /* (392) agg_func_opt ::= */ + 480, /* (393) agg_func_opt ::= AGGREGATE */ + 481, /* (394) bufsize_opt ::= */ + 481, /* (395) bufsize_opt ::= BUFSIZE NK_INTEGER */ + 482, /* (396) language_opt ::= */ + 482, /* (397) language_opt ::= LANGUAGE NK_STRING */ + 479, /* (398) or_replace_opt ::= */ + 479, /* (399) or_replace_opt ::= OR REPLACE */ + 384, /* (400) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ + 384, /* (401) cmd ::= DROP VIEW exists_opt full_view_name */ + 483, /* (402) full_view_name ::= view_name */ + 483, /* (403) full_view_name ::= db_name NK_DOT view_name */ + 384, /* (404) 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 */ + 384, /* (405) cmd ::= DROP STREAM exists_opt stream_name */ + 384, /* (406) cmd ::= PAUSE STREAM exists_opt stream_name */ + 384, /* (407) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ + 487, /* (408) col_list_opt ::= */ + 487, /* (409) col_list_opt ::= NK_LP column_stream_def_list NK_RP */ + 491, /* (410) column_stream_def_list ::= column_stream_def */ + 491, /* (411) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ + 492, /* (412) column_stream_def ::= column_name stream_col_options */ + 493, /* (413) stream_col_options ::= */ + 493, /* (414) stream_col_options ::= stream_col_options PRIMARY KEY */ + 488, /* (415) tag_def_or_ref_opt ::= */ + 488, /* (416) tag_def_or_ref_opt ::= tags_def */ + 488, /* (417) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ + 486, /* (418) stream_options ::= */ + 486, /* (419) stream_options ::= stream_options TRIGGER AT_ONCE */ + 486, /* (420) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + 486, /* (421) stream_options ::= stream_options TRIGGER FORCE_WINDOW_CLOSE */ + 486, /* (422) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + 486, /* (423) stream_options ::= stream_options WATERMARK duration_literal */ + 486, /* (424) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ + 486, /* (425) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ + 486, /* (426) stream_options ::= stream_options DELETE_MARK duration_literal */ + 486, /* (427) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ + 489, /* (428) subtable_opt ::= */ + 489, /* (429) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + 490, /* (430) ignore_opt ::= */ + 490, /* (431) ignore_opt ::= IGNORE UNTREATED */ + 384, /* (432) cmd ::= KILL CONNECTION NK_INTEGER */ + 384, /* (433) cmd ::= KILL QUERY NK_STRING */ + 384, /* (434) cmd ::= KILL TRANSACTION NK_INTEGER */ + 384, /* (435) cmd ::= KILL COMPACT NK_INTEGER */ + 384, /* (436) cmd ::= BALANCE VGROUP */ + 384, /* (437) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ + 384, /* (438) cmd ::= BALANCE VGROUP LEADER DATABASE db_name */ + 384, /* (439) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + 384, /* (440) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + 384, /* (441) cmd ::= SPLIT VGROUP NK_INTEGER */ + 495, /* (442) on_vgroup_id ::= */ + 495, /* (443) on_vgroup_id ::= ON NK_INTEGER */ + 496, /* (444) dnode_list ::= DNODE NK_INTEGER */ + 496, /* (445) dnode_list ::= dnode_list DNODE NK_INTEGER */ + 384, /* (446) cmd ::= DELETE FROM full_table_name where_clause_opt */ + 384, /* (447) cmd ::= query_or_subquery */ + 384, /* (448) cmd ::= insert_query */ + 478, /* (449) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ + 478, /* (450) insert_query ::= INSERT INTO full_table_name query_or_subquery */ + 434, /* (451) tags_literal ::= NK_INTEGER */ + 434, /* (452) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ + 434, /* (453) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ + 434, /* (454) tags_literal ::= NK_PLUS NK_INTEGER */ + 434, /* (455) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ + 434, /* (456) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ + 434, /* (457) tags_literal ::= NK_MINUS NK_INTEGER */ + 434, /* (458) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ + 434, /* (459) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ + 434, /* (460) tags_literal ::= NK_FLOAT */ + 434, /* (461) tags_literal ::= NK_PLUS NK_FLOAT */ + 434, /* (462) tags_literal ::= NK_MINUS NK_FLOAT */ + 434, /* (463) tags_literal ::= NK_BIN */ + 434, /* (464) tags_literal ::= NK_BIN NK_PLUS duration_literal */ + 434, /* (465) tags_literal ::= NK_BIN NK_MINUS duration_literal */ + 434, /* (466) tags_literal ::= NK_PLUS NK_BIN */ + 434, /* (467) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ + 434, /* (468) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ + 434, /* (469) tags_literal ::= NK_MINUS NK_BIN */ + 434, /* (470) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ + 434, /* (471) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ + 434, /* (472) tags_literal ::= NK_HEX */ + 434, /* (473) tags_literal ::= NK_HEX NK_PLUS duration_literal */ + 434, /* (474) tags_literal ::= NK_HEX NK_MINUS duration_literal */ + 434, /* (475) tags_literal ::= NK_PLUS NK_HEX */ + 434, /* (476) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ + 434, /* (477) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ + 434, /* (478) tags_literal ::= NK_MINUS NK_HEX */ + 434, /* (479) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ + 434, /* (480) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ + 434, /* (481) tags_literal ::= NK_STRING */ + 434, /* (482) tags_literal ::= NK_STRING NK_PLUS duration_literal */ + 434, /* (483) tags_literal ::= NK_STRING NK_MINUS duration_literal */ + 434, /* (484) tags_literal ::= NK_BOOL */ + 434, /* (485) tags_literal ::= NULL */ + 434, /* (486) tags_literal ::= literal_func */ + 434, /* (487) tags_literal ::= literal_func NK_PLUS duration_literal */ + 434, /* (488) tags_literal ::= literal_func NK_MINUS duration_literal */ + 437, /* (489) tags_literal_list ::= tags_literal */ + 437, /* (490) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ + 387, /* (491) literal ::= NK_INTEGER */ + 387, /* (492) literal ::= NK_FLOAT */ + 387, /* (493) literal ::= NK_STRING */ + 387, /* (494) literal ::= NK_BOOL */ + 387, /* (495) literal ::= TIMESTAMP NK_STRING */ + 387, /* (496) literal ::= duration_literal */ + 387, /* (497) literal ::= NULL */ + 387, /* (498) literal ::= NK_QUESTION */ + 447, /* (499) duration_literal ::= NK_VARIABLE */ + 418, /* (500) signed ::= NK_INTEGER */ + 418, /* (501) signed ::= NK_PLUS NK_INTEGER */ + 418, /* (502) signed ::= NK_MINUS NK_INTEGER */ + 418, /* (503) signed ::= NK_FLOAT */ + 418, /* (504) signed ::= NK_PLUS NK_FLOAT */ + 418, /* (505) signed ::= NK_MINUS NK_FLOAT */ + 498, /* (506) signed_literal ::= signed */ + 498, /* (507) signed_literal ::= NK_STRING */ + 498, /* (508) signed_literal ::= NK_BOOL */ + 498, /* (509) signed_literal ::= TIMESTAMP NK_STRING */ + 498, /* (510) signed_literal ::= duration_literal */ + 498, /* (511) signed_literal ::= NULL */ + 498, /* (512) signed_literal ::= literal_func */ + 498, /* (513) signed_literal ::= NK_QUESTION */ + 499, /* (514) literal_list ::= signed_literal */ + 499, /* (515) literal_list ::= literal_list NK_COMMA signed_literal */ + 401, /* (516) db_name ::= NK_ID */ + 402, /* (517) table_name ::= NK_ID */ + 431, /* (518) column_name ::= NK_ID */ + 449, /* (519) function_name ::= NK_ID */ + 484, /* (520) view_name ::= NK_ID */ + 500, /* (521) table_alias ::= NK_ID */ + 459, /* (522) column_alias ::= NK_ID */ + 459, /* (523) column_alias ::= NK_ALIAS */ + 394, /* (524) user_name ::= NK_ID */ + 403, /* (525) topic_name ::= NK_ID */ + 485, /* (526) stream_name ::= NK_ID */ + 475, /* (527) cgroup_name ::= NK_ID */ + 466, /* (528) index_name ::= NK_ID */ + 460, /* (529) tsma_name ::= NK_ID */ + 501, /* (530) expr_or_subquery ::= expression */ + 494, /* (531) expression ::= literal */ + 494, /* (532) expression ::= pseudo_column */ + 494, /* (533) expression ::= column_reference */ + 494, /* (534) expression ::= function_expression */ + 494, /* (535) expression ::= case_when_expression */ + 494, /* (536) expression ::= NK_LP expression NK_RP */ + 494, /* (537) expression ::= NK_PLUS expr_or_subquery */ + 494, /* (538) expression ::= NK_MINUS expr_or_subquery */ + 494, /* (539) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + 494, /* (540) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ + 494, /* (541) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ + 494, /* (542) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ + 494, /* (543) expression ::= expr_or_subquery NK_REM expr_or_subquery */ + 494, /* (544) expression ::= column_reference NK_ARROW NK_STRING */ + 494, /* (545) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + 494, /* (546) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ + 471, /* (547) expression_list ::= expr_or_subquery */ + 471, /* (548) expression_list ::= expression_list NK_COMMA expr_or_subquery */ + 503, /* (549) column_reference ::= column_name */ + 503, /* (550) column_reference ::= table_name NK_DOT column_name */ + 503, /* (551) column_reference ::= NK_ALIAS */ + 503, /* (552) column_reference ::= table_name NK_DOT NK_ALIAS */ + 502, /* (553) pseudo_column ::= ROWTS */ + 502, /* (554) pseudo_column ::= TBNAME */ + 502, /* (555) pseudo_column ::= table_name NK_DOT TBNAME */ + 502, /* (556) pseudo_column ::= QSTART */ + 502, /* (557) pseudo_column ::= QEND */ + 502, /* (558) pseudo_column ::= QDURATION */ + 502, /* (559) pseudo_column ::= WSTART */ + 502, /* (560) pseudo_column ::= WEND */ + 502, /* (561) pseudo_column ::= WDURATION */ + 502, /* (562) pseudo_column ::= IROWTS */ + 502, /* (563) pseudo_column ::= ISFILLED */ + 502, /* (564) pseudo_column ::= QTAGS */ + 504, /* (565) function_expression ::= function_name NK_LP expression_list NK_RP */ + 504, /* (566) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + 504, /* (567) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ + 504, /* (568) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ + 504, /* (569) function_expression ::= POSITION NK_LP expr_or_subquery IN expr_or_subquery NK_RP */ + 504, /* (570) function_expression ::= TRIM NK_LP expr_or_subquery NK_RP */ + 504, /* (571) function_expression ::= TRIM NK_LP trim_specification_type FROM expr_or_subquery NK_RP */ + 504, /* (572) function_expression ::= TRIM NK_LP expr_or_subquery FROM expr_or_subquery NK_RP */ + 504, /* (573) function_expression ::= TRIM NK_LP trim_specification_type expr_or_subquery FROM expr_or_subquery NK_RP */ + 504, /* (574) function_expression ::= substr_func NK_LP expression_list NK_RP */ + 504, /* (575) function_expression ::= substr_func NK_LP expr_or_subquery FROM expr_or_subquery NK_RP */ + 504, /* (576) function_expression ::= substr_func NK_LP expr_or_subquery FROM expr_or_subquery FOR expr_or_subquery NK_RP */ + 504, /* (577) function_expression ::= REPLACE NK_LP expression_list NK_RP */ + 504, /* (578) function_expression ::= literal_func */ + 504, /* (579) function_expression ::= rand_func */ + 497, /* (580) literal_func ::= noarg_func NK_LP NK_RP */ + 497, /* (581) literal_func ::= NOW */ + 497, /* (582) literal_func ::= TODAY */ + 510, /* (583) rand_func ::= RAND NK_LP NK_RP */ + 510, /* (584) rand_func ::= RAND NK_LP expression_list NK_RP */ + 509, /* (585) substr_func ::= SUBSTR */ + 509, /* (586) substr_func ::= SUBSTRING */ + 508, /* (587) trim_specification_type ::= BOTH */ + 508, /* (588) trim_specification_type ::= TRAILING */ + 508, /* (589) trim_specification_type ::= LEADING */ + 511, /* (590) noarg_func ::= NOW */ + 511, /* (591) noarg_func ::= TODAY */ + 511, /* (592) noarg_func ::= TIMEZONE */ + 511, /* (593) noarg_func ::= DATABASE */ + 511, /* (594) noarg_func ::= CLIENT_VERSION */ + 511, /* (595) noarg_func ::= SERVER_VERSION */ + 511, /* (596) noarg_func ::= SERVER_STATUS */ + 511, /* (597) noarg_func ::= CURRENT_USER */ + 511, /* (598) noarg_func ::= USER */ + 511, /* (599) noarg_func ::= PI */ + 506, /* (600) star_func ::= COUNT */ + 506, /* (601) star_func ::= FIRST */ + 506, /* (602) star_func ::= LAST */ + 506, /* (603) star_func ::= LAST_ROW */ + 507, /* (604) star_func_para_list ::= NK_STAR */ + 507, /* (605) star_func_para_list ::= other_para_list */ + 512, /* (606) other_para_list ::= star_func_para */ + 512, /* (607) other_para_list ::= other_para_list NK_COMMA star_func_para */ + 513, /* (608) star_func_para ::= expr_or_subquery */ + 513, /* (609) star_func_para ::= table_name NK_DOT NK_STAR */ + 505, /* (610) case_when_expression ::= CASE when_then_list case_when_else_opt END */ + 505, /* (611) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ + 514, /* (612) when_then_list ::= when_then_expr */ + 514, /* (613) when_then_list ::= when_then_list when_then_expr */ + 517, /* (614) when_then_expr ::= WHEN common_expression THEN common_expression */ + 515, /* (615) case_when_else_opt ::= */ + 515, /* (616) case_when_else_opt ::= ELSE common_expression */ + 518, /* (617) predicate ::= expr_or_subquery compare_op expr_or_subquery */ + 518, /* (618) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + 518, /* (619) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + 518, /* (620) predicate ::= expr_or_subquery IS NULL */ + 518, /* (621) predicate ::= expr_or_subquery IS NOT NULL */ + 518, /* (622) predicate ::= expr_or_subquery in_op in_predicate_value */ + 519, /* (623) compare_op ::= NK_LT */ + 519, /* (624) compare_op ::= NK_GT */ + 519, /* (625) compare_op ::= NK_LE */ + 519, /* (626) compare_op ::= NK_GE */ + 519, /* (627) compare_op ::= NK_NE */ + 519, /* (628) compare_op ::= NK_EQ */ + 519, /* (629) compare_op ::= LIKE */ + 519, /* (630) compare_op ::= NOT LIKE */ + 519, /* (631) compare_op ::= MATCH */ + 519, /* (632) compare_op ::= NMATCH */ + 519, /* (633) compare_op ::= CONTAINS */ + 520, /* (634) in_op ::= IN */ + 520, /* (635) in_op ::= NOT IN */ + 521, /* (636) in_predicate_value ::= NK_LP literal_list NK_RP */ + 522, /* (637) boolean_value_expression ::= boolean_primary */ + 522, /* (638) boolean_value_expression ::= NOT boolean_primary */ + 522, /* (639) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + 522, /* (640) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + 523, /* (641) boolean_primary ::= predicate */ + 523, /* (642) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + 516, /* (643) common_expression ::= expr_or_subquery */ + 516, /* (644) common_expression ::= boolean_value_expression */ + 524, /* (645) from_clause_opt ::= */ + 524, /* (646) from_clause_opt ::= FROM table_reference_list */ + 525, /* (647) table_reference_list ::= table_reference */ + 525, /* (648) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + 526, /* (649) table_reference ::= table_primary */ + 526, /* (650) table_reference ::= joined_table */ + 527, /* (651) table_primary ::= table_name alias_opt */ + 527, /* (652) table_primary ::= db_name NK_DOT table_name alias_opt */ + 527, /* (653) table_primary ::= subquery alias_opt */ + 527, /* (654) table_primary ::= parenthesized_joined_table */ + 529, /* (655) alias_opt ::= */ + 529, /* (656) alias_opt ::= table_alias */ + 529, /* (657) alias_opt ::= AS table_alias */ + 531, /* (658) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + 531, /* (659) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + 528, /* (660) joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */ + 532, /* (661) join_type ::= */ + 532, /* (662) join_type ::= INNER */ + 532, /* (663) join_type ::= LEFT */ + 532, /* (664) join_type ::= RIGHT */ + 532, /* (665) join_type ::= FULL */ + 533, /* (666) join_subtype ::= */ + 533, /* (667) join_subtype ::= OUTER */ + 533, /* (668) join_subtype ::= SEMI */ + 533, /* (669) join_subtype ::= ANTI */ + 533, /* (670) join_subtype ::= ASOF */ + 533, /* (671) join_subtype ::= WINDOW */ + 534, /* (672) join_on_clause_opt ::= */ + 534, /* (673) join_on_clause_opt ::= ON search_condition */ + 535, /* (674) window_offset_clause_opt ::= */ + 535, /* (675) window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */ + 537, /* (676) window_offset_literal ::= NK_VARIABLE */ + 537, /* (677) window_offset_literal ::= NK_MINUS NK_VARIABLE */ + 536, /* (678) jlimit_clause_opt ::= */ + 536, /* (679) jlimit_clause_opt ::= JLIMIT NK_INTEGER */ + 538, /* (680) 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 */ + 539, /* (681) hint_list ::= */ + 539, /* (682) hint_list ::= NK_HINT */ + 541, /* (683) tag_mode_opt ::= */ + 541, /* (684) tag_mode_opt ::= TAGS */ + 540, /* (685) set_quantifier_opt ::= */ + 540, /* (686) set_quantifier_opt ::= DISTINCT */ + 540, /* (687) set_quantifier_opt ::= ALL */ + 542, /* (688) select_list ::= select_item */ + 542, /* (689) select_list ::= select_list NK_COMMA select_item */ + 550, /* (690) select_item ::= NK_STAR */ + 550, /* (691) select_item ::= common_expression */ + 550, /* (692) select_item ::= common_expression column_alias */ + 550, /* (693) select_item ::= common_expression AS column_alias */ + 550, /* (694) select_item ::= table_name NK_DOT NK_STAR */ + 474, /* (695) where_clause_opt ::= */ + 474, /* (696) where_clause_opt ::= WHERE search_condition */ + 543, /* (697) partition_by_clause_opt ::= */ + 543, /* (698) partition_by_clause_opt ::= PARTITION BY partition_list */ + 551, /* (699) partition_list ::= partition_item */ + 551, /* (700) partition_list ::= partition_list NK_COMMA partition_item */ + 552, /* (701) partition_item ::= expr_or_subquery */ + 552, /* (702) partition_item ::= expr_or_subquery column_alias */ + 552, /* (703) partition_item ::= expr_or_subquery AS column_alias */ + 547, /* (704) twindow_clause_opt ::= */ + 547, /* (705) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ + 547, /* (706) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ + 547, /* (707) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ + 547, /* (708) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ + 547, /* (709) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ + 547, /* (710) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ + 547, /* (711) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + 467, /* (712) sliding_opt ::= */ + 467, /* (713) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ + 553, /* (714) interval_sliding_duration_literal ::= NK_VARIABLE */ + 553, /* (715) interval_sliding_duration_literal ::= NK_STRING */ + 553, /* (716) interval_sliding_duration_literal ::= NK_INTEGER */ + 546, /* (717) fill_opt ::= */ + 546, /* (718) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + 546, /* (719) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ + 546, /* (720) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ + 554, /* (721) fill_mode ::= NONE */ + 554, /* (722) fill_mode ::= PREV */ + 554, /* (723) fill_mode ::= NULL */ + 554, /* (724) fill_mode ::= NULL_F */ + 554, /* (725) fill_mode ::= LINEAR */ + 554, /* (726) fill_mode ::= NEXT */ + 548, /* (727) group_by_clause_opt ::= */ + 548, /* (728) group_by_clause_opt ::= GROUP BY group_by_list */ + 555, /* (729) group_by_list ::= expr_or_subquery */ + 555, /* (730) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ + 549, /* (731) having_clause_opt ::= */ + 549, /* (732) having_clause_opt ::= HAVING search_condition */ + 544, /* (733) range_opt ::= */ + 544, /* (734) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ + 544, /* (735) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ + 545, /* (736) every_opt ::= */ + 545, /* (737) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + 556, /* (738) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + 557, /* (739) query_simple ::= query_specification */ + 557, /* (740) query_simple ::= union_query_expression */ + 561, /* (741) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ + 561, /* (742) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ + 562, /* (743) query_simple_or_subquery ::= query_simple */ + 562, /* (744) query_simple_or_subquery ::= subquery */ + 473, /* (745) query_or_subquery ::= query_expression */ + 473, /* (746) query_or_subquery ::= subquery */ + 558, /* (747) order_by_clause_opt ::= */ + 558, /* (748) order_by_clause_opt ::= ORDER BY sort_specification_list */ + 559, /* (749) slimit_clause_opt ::= */ + 559, /* (750) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + 559, /* (751) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + 559, /* (752) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 560, /* (753) limit_clause_opt ::= */ + 560, /* (754) limit_clause_opt ::= LIMIT NK_INTEGER */ + 560, /* (755) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + 560, /* (756) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 530, /* (757) subquery ::= NK_LP query_expression NK_RP */ + 530, /* (758) subquery ::= NK_LP subquery NK_RP */ + 404, /* (759) search_condition ::= common_expression */ + 563, /* (760) sort_specification_list ::= sort_specification */ + 563, /* (761) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + 564, /* (762) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ + 565, /* (763) ordering_specification_opt ::= */ + 565, /* (764) ordering_specification_opt ::= ASC */ + 565, /* (765) ordering_specification_opt ::= DESC */ + 566, /* (766) null_ordering_opt ::= */ + 566, /* (767) null_ordering_opt ::= NULLS FIRST */ + 566, /* (768) null_ordering_opt ::= NULLS LAST */ + 433, /* (769) column_options ::= */ + 433, /* (770) column_options ::= column_options PRIMARY KEY */ + 433, /* (771) column_options ::= column_options NK_ID NK_STRING */ }; /* For rule J, yyRuleInfoNRhs[J] contains the negative of the number @@ -5572,196 +5711,199 @@ static const signed char yyRuleInfoNRhs[] = { -8, /* (576) function_expression ::= substr_func NK_LP expr_or_subquery FROM expr_or_subquery FOR expr_or_subquery NK_RP */ -4, /* (577) function_expression ::= REPLACE NK_LP expression_list NK_RP */ -1, /* (578) function_expression ::= literal_func */ - -3, /* (579) literal_func ::= noarg_func NK_LP NK_RP */ - -1, /* (580) literal_func ::= NOW */ - -1, /* (581) literal_func ::= TODAY */ - -1, /* (582) substr_func ::= SUBSTR */ - -1, /* (583) substr_func ::= SUBSTRING */ - -1, /* (584) trim_specification_type ::= BOTH */ - -1, /* (585) trim_specification_type ::= TRAILING */ - -1, /* (586) trim_specification_type ::= LEADING */ - -1, /* (587) noarg_func ::= NOW */ - -1, /* (588) noarg_func ::= TODAY */ - -1, /* (589) noarg_func ::= TIMEZONE */ - -1, /* (590) noarg_func ::= DATABASE */ - -1, /* (591) noarg_func ::= CLIENT_VERSION */ - -1, /* (592) noarg_func ::= SERVER_VERSION */ - -1, /* (593) noarg_func ::= SERVER_STATUS */ - -1, /* (594) noarg_func ::= CURRENT_USER */ - -1, /* (595) noarg_func ::= USER */ - -1, /* (596) noarg_func ::= PI */ - -1, /* (597) star_func ::= COUNT */ - -1, /* (598) star_func ::= FIRST */ - -1, /* (599) star_func ::= LAST */ - -1, /* (600) star_func ::= LAST_ROW */ - -1, /* (601) star_func_para_list ::= NK_STAR */ - -1, /* (602) star_func_para_list ::= other_para_list */ - -1, /* (603) other_para_list ::= star_func_para */ - -3, /* (604) other_para_list ::= other_para_list NK_COMMA star_func_para */ - -1, /* (605) star_func_para ::= expr_or_subquery */ - -3, /* (606) star_func_para ::= table_name NK_DOT NK_STAR */ - -4, /* (607) case_when_expression ::= CASE when_then_list case_when_else_opt END */ - -5, /* (608) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ - -1, /* (609) when_then_list ::= when_then_expr */ - -2, /* (610) when_then_list ::= when_then_list when_then_expr */ - -4, /* (611) when_then_expr ::= WHEN common_expression THEN common_expression */ - 0, /* (612) case_when_else_opt ::= */ - -2, /* (613) case_when_else_opt ::= ELSE common_expression */ - -3, /* (614) predicate ::= expr_or_subquery compare_op expr_or_subquery */ - -5, /* (615) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ - -6, /* (616) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ - -3, /* (617) predicate ::= expr_or_subquery IS NULL */ - -4, /* (618) predicate ::= expr_or_subquery IS NOT NULL */ - -3, /* (619) predicate ::= expr_or_subquery in_op in_predicate_value */ - -1, /* (620) compare_op ::= NK_LT */ - -1, /* (621) compare_op ::= NK_GT */ - -1, /* (622) compare_op ::= NK_LE */ - -1, /* (623) compare_op ::= NK_GE */ - -1, /* (624) compare_op ::= NK_NE */ - -1, /* (625) compare_op ::= NK_EQ */ - -1, /* (626) compare_op ::= LIKE */ - -2, /* (627) compare_op ::= NOT LIKE */ - -1, /* (628) compare_op ::= MATCH */ - -1, /* (629) compare_op ::= NMATCH */ - -1, /* (630) compare_op ::= CONTAINS */ - -1, /* (631) in_op ::= IN */ - -2, /* (632) in_op ::= NOT IN */ - -3, /* (633) in_predicate_value ::= NK_LP literal_list NK_RP */ - -1, /* (634) boolean_value_expression ::= boolean_primary */ - -2, /* (635) boolean_value_expression ::= NOT boolean_primary */ - -3, /* (636) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - -3, /* (637) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - -1, /* (638) boolean_primary ::= predicate */ - -3, /* (639) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - -1, /* (640) common_expression ::= expr_or_subquery */ - -1, /* (641) common_expression ::= boolean_value_expression */ - 0, /* (642) from_clause_opt ::= */ - -2, /* (643) from_clause_opt ::= FROM table_reference_list */ - -1, /* (644) table_reference_list ::= table_reference */ - -3, /* (645) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - -1, /* (646) table_reference ::= table_primary */ - -1, /* (647) table_reference ::= joined_table */ - -2, /* (648) table_primary ::= table_name alias_opt */ - -4, /* (649) table_primary ::= db_name NK_DOT table_name alias_opt */ - -2, /* (650) table_primary ::= subquery alias_opt */ - -1, /* (651) table_primary ::= parenthesized_joined_table */ - 0, /* (652) alias_opt ::= */ - -1, /* (653) alias_opt ::= table_alias */ - -2, /* (654) alias_opt ::= AS table_alias */ - -3, /* (655) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - -3, /* (656) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - -8, /* (657) joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */ - 0, /* (658) join_type ::= */ - -1, /* (659) join_type ::= INNER */ - -1, /* (660) join_type ::= LEFT */ - -1, /* (661) join_type ::= RIGHT */ - -1, /* (662) join_type ::= FULL */ - 0, /* (663) join_subtype ::= */ - -1, /* (664) join_subtype ::= OUTER */ - -1, /* (665) join_subtype ::= SEMI */ - -1, /* (666) join_subtype ::= ANTI */ - -1, /* (667) join_subtype ::= ASOF */ - -1, /* (668) join_subtype ::= WINDOW */ - 0, /* (669) join_on_clause_opt ::= */ - -2, /* (670) join_on_clause_opt ::= ON search_condition */ - 0, /* (671) window_offset_clause_opt ::= */ - -6, /* (672) window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */ - -1, /* (673) window_offset_literal ::= NK_VARIABLE */ - -2, /* (674) window_offset_literal ::= NK_MINUS NK_VARIABLE */ - 0, /* (675) jlimit_clause_opt ::= */ - -2, /* (676) jlimit_clause_opt ::= JLIMIT NK_INTEGER */ - -14, /* (677) 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 */ - 0, /* (678) hint_list ::= */ - -1, /* (679) hint_list ::= NK_HINT */ - 0, /* (680) tag_mode_opt ::= */ - -1, /* (681) tag_mode_opt ::= TAGS */ - 0, /* (682) set_quantifier_opt ::= */ - -1, /* (683) set_quantifier_opt ::= DISTINCT */ - -1, /* (684) set_quantifier_opt ::= ALL */ - -1, /* (685) select_list ::= select_item */ - -3, /* (686) select_list ::= select_list NK_COMMA select_item */ - -1, /* (687) select_item ::= NK_STAR */ - -1, /* (688) select_item ::= common_expression */ - -2, /* (689) select_item ::= common_expression column_alias */ - -3, /* (690) select_item ::= common_expression AS column_alias */ - -3, /* (691) select_item ::= table_name NK_DOT NK_STAR */ - 0, /* (692) where_clause_opt ::= */ - -2, /* (693) where_clause_opt ::= WHERE search_condition */ - 0, /* (694) partition_by_clause_opt ::= */ - -3, /* (695) partition_by_clause_opt ::= PARTITION BY partition_list */ - -1, /* (696) partition_list ::= partition_item */ - -3, /* (697) partition_list ::= partition_list NK_COMMA partition_item */ - -1, /* (698) partition_item ::= expr_or_subquery */ - -2, /* (699) partition_item ::= expr_or_subquery column_alias */ - -3, /* (700) partition_item ::= expr_or_subquery AS column_alias */ - 0, /* (701) twindow_clause_opt ::= */ - -6, /* (702) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ - -4, /* (703) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ - -6, /* (704) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ - -8, /* (705) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ - -7, /* (706) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ - -4, /* (707) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ - -6, /* (708) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 0, /* (709) sliding_opt ::= */ - -4, /* (710) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ - -1, /* (711) interval_sliding_duration_literal ::= NK_VARIABLE */ - -1, /* (712) interval_sliding_duration_literal ::= NK_STRING */ - -1, /* (713) interval_sliding_duration_literal ::= NK_INTEGER */ - 0, /* (714) fill_opt ::= */ - -4, /* (715) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - -6, /* (716) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ - -6, /* (717) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ - -1, /* (718) fill_mode ::= NONE */ - -1, /* (719) fill_mode ::= PREV */ - -1, /* (720) fill_mode ::= NULL */ - -1, /* (721) fill_mode ::= NULL_F */ - -1, /* (722) fill_mode ::= LINEAR */ - -1, /* (723) fill_mode ::= NEXT */ - 0, /* (724) group_by_clause_opt ::= */ - -3, /* (725) group_by_clause_opt ::= GROUP BY group_by_list */ - -1, /* (726) group_by_list ::= expr_or_subquery */ - -3, /* (727) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ - 0, /* (728) having_clause_opt ::= */ - -2, /* (729) having_clause_opt ::= HAVING search_condition */ - 0, /* (730) range_opt ::= */ - -6, /* (731) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ - -4, /* (732) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ - 0, /* (733) every_opt ::= */ - -4, /* (734) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - -4, /* (735) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ - -1, /* (736) query_simple ::= query_specification */ - -1, /* (737) query_simple ::= union_query_expression */ - -4, /* (738) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ - -3, /* (739) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ - -1, /* (740) query_simple_or_subquery ::= query_simple */ - -1, /* (741) query_simple_or_subquery ::= subquery */ - -1, /* (742) query_or_subquery ::= query_expression */ - -1, /* (743) query_or_subquery ::= subquery */ - 0, /* (744) order_by_clause_opt ::= */ - -3, /* (745) order_by_clause_opt ::= ORDER BY sort_specification_list */ - 0, /* (746) slimit_clause_opt ::= */ - -2, /* (747) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - -4, /* (748) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - -4, /* (749) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 0, /* (750) limit_clause_opt ::= */ - -2, /* (751) limit_clause_opt ::= LIMIT NK_INTEGER */ - -4, /* (752) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - -4, /* (753) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - -3, /* (754) subquery ::= NK_LP query_expression NK_RP */ - -3, /* (755) subquery ::= NK_LP subquery NK_RP */ - -1, /* (756) search_condition ::= common_expression */ - -1, /* (757) sort_specification_list ::= sort_specification */ - -3, /* (758) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - -3, /* (759) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ - 0, /* (760) ordering_specification_opt ::= */ - -1, /* (761) ordering_specification_opt ::= ASC */ - -1, /* (762) ordering_specification_opt ::= DESC */ - 0, /* (763) null_ordering_opt ::= */ - -2, /* (764) null_ordering_opt ::= NULLS FIRST */ - -2, /* (765) null_ordering_opt ::= NULLS LAST */ - 0, /* (766) column_options ::= */ - -3, /* (767) column_options ::= column_options PRIMARY KEY */ - -3, /* (768) column_options ::= column_options NK_ID NK_STRING */ + -1, /* (579) function_expression ::= rand_func */ + -3, /* (580) literal_func ::= noarg_func NK_LP NK_RP */ + -1, /* (581) literal_func ::= NOW */ + -1, /* (582) literal_func ::= TODAY */ + -3, /* (583) rand_func ::= RAND NK_LP NK_RP */ + -4, /* (584) rand_func ::= RAND NK_LP expression_list NK_RP */ + -1, /* (585) substr_func ::= SUBSTR */ + -1, /* (586) substr_func ::= SUBSTRING */ + -1, /* (587) trim_specification_type ::= BOTH */ + -1, /* (588) trim_specification_type ::= TRAILING */ + -1, /* (589) trim_specification_type ::= LEADING */ + -1, /* (590) noarg_func ::= NOW */ + -1, /* (591) noarg_func ::= TODAY */ + -1, /* (592) noarg_func ::= TIMEZONE */ + -1, /* (593) noarg_func ::= DATABASE */ + -1, /* (594) noarg_func ::= CLIENT_VERSION */ + -1, /* (595) noarg_func ::= SERVER_VERSION */ + -1, /* (596) noarg_func ::= SERVER_STATUS */ + -1, /* (597) noarg_func ::= CURRENT_USER */ + -1, /* (598) noarg_func ::= USER */ + -1, /* (599) noarg_func ::= PI */ + -1, /* (600) star_func ::= COUNT */ + -1, /* (601) star_func ::= FIRST */ + -1, /* (602) star_func ::= LAST */ + -1, /* (603) star_func ::= LAST_ROW */ + -1, /* (604) star_func_para_list ::= NK_STAR */ + -1, /* (605) star_func_para_list ::= other_para_list */ + -1, /* (606) other_para_list ::= star_func_para */ + -3, /* (607) other_para_list ::= other_para_list NK_COMMA star_func_para */ + -1, /* (608) star_func_para ::= expr_or_subquery */ + -3, /* (609) star_func_para ::= table_name NK_DOT NK_STAR */ + -4, /* (610) case_when_expression ::= CASE when_then_list case_when_else_opt END */ + -5, /* (611) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ + -1, /* (612) when_then_list ::= when_then_expr */ + -2, /* (613) when_then_list ::= when_then_list when_then_expr */ + -4, /* (614) when_then_expr ::= WHEN common_expression THEN common_expression */ + 0, /* (615) case_when_else_opt ::= */ + -2, /* (616) case_when_else_opt ::= ELSE common_expression */ + -3, /* (617) predicate ::= expr_or_subquery compare_op expr_or_subquery */ + -5, /* (618) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + -6, /* (619) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + -3, /* (620) predicate ::= expr_or_subquery IS NULL */ + -4, /* (621) predicate ::= expr_or_subquery IS NOT NULL */ + -3, /* (622) predicate ::= expr_or_subquery in_op in_predicate_value */ + -1, /* (623) compare_op ::= NK_LT */ + -1, /* (624) compare_op ::= NK_GT */ + -1, /* (625) compare_op ::= NK_LE */ + -1, /* (626) compare_op ::= NK_GE */ + -1, /* (627) compare_op ::= NK_NE */ + -1, /* (628) compare_op ::= NK_EQ */ + -1, /* (629) compare_op ::= LIKE */ + -2, /* (630) compare_op ::= NOT LIKE */ + -1, /* (631) compare_op ::= MATCH */ + -1, /* (632) compare_op ::= NMATCH */ + -1, /* (633) compare_op ::= CONTAINS */ + -1, /* (634) in_op ::= IN */ + -2, /* (635) in_op ::= NOT IN */ + -3, /* (636) in_predicate_value ::= NK_LP literal_list NK_RP */ + -1, /* (637) boolean_value_expression ::= boolean_primary */ + -2, /* (638) boolean_value_expression ::= NOT boolean_primary */ + -3, /* (639) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + -3, /* (640) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + -1, /* (641) boolean_primary ::= predicate */ + -3, /* (642) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + -1, /* (643) common_expression ::= expr_or_subquery */ + -1, /* (644) common_expression ::= boolean_value_expression */ + 0, /* (645) from_clause_opt ::= */ + -2, /* (646) from_clause_opt ::= FROM table_reference_list */ + -1, /* (647) table_reference_list ::= table_reference */ + -3, /* (648) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + -1, /* (649) table_reference ::= table_primary */ + -1, /* (650) table_reference ::= joined_table */ + -2, /* (651) table_primary ::= table_name alias_opt */ + -4, /* (652) table_primary ::= db_name NK_DOT table_name alias_opt */ + -2, /* (653) table_primary ::= subquery alias_opt */ + -1, /* (654) table_primary ::= parenthesized_joined_table */ + 0, /* (655) alias_opt ::= */ + -1, /* (656) alias_opt ::= table_alias */ + -2, /* (657) alias_opt ::= AS table_alias */ + -3, /* (658) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + -3, /* (659) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + -8, /* (660) joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */ + 0, /* (661) join_type ::= */ + -1, /* (662) join_type ::= INNER */ + -1, /* (663) join_type ::= LEFT */ + -1, /* (664) join_type ::= RIGHT */ + -1, /* (665) join_type ::= FULL */ + 0, /* (666) join_subtype ::= */ + -1, /* (667) join_subtype ::= OUTER */ + -1, /* (668) join_subtype ::= SEMI */ + -1, /* (669) join_subtype ::= ANTI */ + -1, /* (670) join_subtype ::= ASOF */ + -1, /* (671) join_subtype ::= WINDOW */ + 0, /* (672) join_on_clause_opt ::= */ + -2, /* (673) join_on_clause_opt ::= ON search_condition */ + 0, /* (674) window_offset_clause_opt ::= */ + -6, /* (675) window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */ + -1, /* (676) window_offset_literal ::= NK_VARIABLE */ + -2, /* (677) window_offset_literal ::= NK_MINUS NK_VARIABLE */ + 0, /* (678) jlimit_clause_opt ::= */ + -2, /* (679) jlimit_clause_opt ::= JLIMIT NK_INTEGER */ + -14, /* (680) 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 */ + 0, /* (681) hint_list ::= */ + -1, /* (682) hint_list ::= NK_HINT */ + 0, /* (683) tag_mode_opt ::= */ + -1, /* (684) tag_mode_opt ::= TAGS */ + 0, /* (685) set_quantifier_opt ::= */ + -1, /* (686) set_quantifier_opt ::= DISTINCT */ + -1, /* (687) set_quantifier_opt ::= ALL */ + -1, /* (688) select_list ::= select_item */ + -3, /* (689) select_list ::= select_list NK_COMMA select_item */ + -1, /* (690) select_item ::= NK_STAR */ + -1, /* (691) select_item ::= common_expression */ + -2, /* (692) select_item ::= common_expression column_alias */ + -3, /* (693) select_item ::= common_expression AS column_alias */ + -3, /* (694) select_item ::= table_name NK_DOT NK_STAR */ + 0, /* (695) where_clause_opt ::= */ + -2, /* (696) where_clause_opt ::= WHERE search_condition */ + 0, /* (697) partition_by_clause_opt ::= */ + -3, /* (698) partition_by_clause_opt ::= PARTITION BY partition_list */ + -1, /* (699) partition_list ::= partition_item */ + -3, /* (700) partition_list ::= partition_list NK_COMMA partition_item */ + -1, /* (701) partition_item ::= expr_or_subquery */ + -2, /* (702) partition_item ::= expr_or_subquery column_alias */ + -3, /* (703) partition_item ::= expr_or_subquery AS column_alias */ + 0, /* (704) twindow_clause_opt ::= */ + -6, /* (705) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ + -4, /* (706) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ + -6, /* (707) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ + -8, /* (708) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ + -7, /* (709) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ + -4, /* (710) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ + -6, /* (711) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + 0, /* (712) sliding_opt ::= */ + -4, /* (713) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ + -1, /* (714) interval_sliding_duration_literal ::= NK_VARIABLE */ + -1, /* (715) interval_sliding_duration_literal ::= NK_STRING */ + -1, /* (716) interval_sliding_duration_literal ::= NK_INTEGER */ + 0, /* (717) fill_opt ::= */ + -4, /* (718) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + -6, /* (719) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ + -6, /* (720) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ + -1, /* (721) fill_mode ::= NONE */ + -1, /* (722) fill_mode ::= PREV */ + -1, /* (723) fill_mode ::= NULL */ + -1, /* (724) fill_mode ::= NULL_F */ + -1, /* (725) fill_mode ::= LINEAR */ + -1, /* (726) fill_mode ::= NEXT */ + 0, /* (727) group_by_clause_opt ::= */ + -3, /* (728) group_by_clause_opt ::= GROUP BY group_by_list */ + -1, /* (729) group_by_list ::= expr_or_subquery */ + -3, /* (730) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ + 0, /* (731) having_clause_opt ::= */ + -2, /* (732) having_clause_opt ::= HAVING search_condition */ + 0, /* (733) range_opt ::= */ + -6, /* (734) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ + -4, /* (735) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ + 0, /* (736) every_opt ::= */ + -4, /* (737) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + -4, /* (738) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + -1, /* (739) query_simple ::= query_specification */ + -1, /* (740) query_simple ::= union_query_expression */ + -4, /* (741) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ + -3, /* (742) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ + -1, /* (743) query_simple_or_subquery ::= query_simple */ + -1, /* (744) query_simple_or_subquery ::= subquery */ + -1, /* (745) query_or_subquery ::= query_expression */ + -1, /* (746) query_or_subquery ::= subquery */ + 0, /* (747) order_by_clause_opt ::= */ + -3, /* (748) order_by_clause_opt ::= ORDER BY sort_specification_list */ + 0, /* (749) slimit_clause_opt ::= */ + -2, /* (750) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + -4, /* (751) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + -4, /* (752) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 0, /* (753) limit_clause_opt ::= */ + -2, /* (754) limit_clause_opt ::= LIMIT NK_INTEGER */ + -4, /* (755) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + -4, /* (756) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + -3, /* (757) subquery ::= NK_LP query_expression NK_RP */ + -3, /* (758) subquery ::= NK_LP subquery NK_RP */ + -1, /* (759) search_condition ::= common_expression */ + -1, /* (760) sort_specification_list ::= sort_specification */ + -3, /* (761) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + -3, /* (762) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ + 0, /* (763) ordering_specification_opt ::= */ + -1, /* (764) ordering_specification_opt ::= ASC */ + -1, /* (765) ordering_specification_opt ::= DESC */ + 0, /* (766) null_ordering_opt ::= */ + -2, /* (767) null_ordering_opt ::= NULLS FIRST */ + -2, /* (768) null_ordering_opt ::= NULLS LAST */ + 0, /* (769) column_options ::= */ + -3, /* (770) column_options ::= column_options PRIMARY KEY */ + -3, /* (771) column_options ::= column_options NK_ID NK_STRING */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -5805,11 +5947,11 @@ static YYACTIONTYPE yy_reduce( YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,384,&yymsp[0].minor); + yy_destructor(yypParser,385,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,385,&yymsp[0].minor); + yy_destructor(yypParser,386,&yymsp[0].minor); break; case 2: /* account_options ::= */ { } @@ -5823,20 +5965,20 @@ static YYACTIONTYPE yy_reduce( case 9: /* account_options ::= account_options USERS literal */ yytestcase(yyruleno==9); case 10: /* account_options ::= account_options CONNS literal */ yytestcase(yyruleno==10); case 11: /* account_options ::= account_options STATE literal */ yytestcase(yyruleno==11); -{ yy_destructor(yypParser,384,&yymsp[-2].minor); +{ yy_destructor(yypParser,385,&yymsp[-2].minor); { } - yy_destructor(yypParser,386,&yymsp[0].minor); + yy_destructor(yypParser,387,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ -{ yy_destructor(yypParser,387,&yymsp[0].minor); +{ yy_destructor(yypParser,388,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ -{ yy_destructor(yypParser,385,&yymsp[-1].minor); +{ yy_destructor(yypParser,386,&yymsp[-1].minor); { } - yy_destructor(yypParser,387,&yymsp[0].minor); + yy_destructor(yypParser,388,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ @@ -5850,18 +5992,18 @@ static YYACTIONTYPE yy_reduce( case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22); case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); { } - yy_destructor(yypParser,386,&yymsp[0].minor); + yy_destructor(yypParser,387,&yymsp[0].minor); break; case 24: /* ip_range_list ::= NK_STRING */ -{ yylhsminor.yy514 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy514 = yylhsminor.yy514; +{ yylhsminor.yy334 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy334 = yylhsminor.yy334; break; case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ -{ yylhsminor.yy514 = addNodeToList(pCxt, yymsp[-2].minor.yy514, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy514 = yylhsminor.yy514; +{ yylhsminor.yy334 = addNodeToList(pCxt, yymsp[-2].minor.yy334, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy334 = yylhsminor.yy334; break; case 26: /* white_list ::= HOST ip_range_list */ -{ yymsp[-1].minor.yy514 = yymsp[0].minor.yy514; } +{ yymsp[-1].minor.yy334 = yymsp[0].minor.yy334; } break; case 27: /* white_list_opt ::= */ case 206: /* specific_cols_opt ::= */ yytestcase(yyruleno==206); @@ -5869,151 +6011,151 @@ static YYACTIONTYPE yy_reduce( case 335: /* tag_list_opt ::= */ yytestcase(yyruleno==335); case 408: /* col_list_opt ::= */ yytestcase(yyruleno==408); case 415: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==415); - case 694: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==694); - case 724: /* group_by_clause_opt ::= */ yytestcase(yyruleno==724); - case 744: /* order_by_clause_opt ::= */ yytestcase(yyruleno==744); -{ yymsp[1].minor.yy514 = NULL; } + case 697: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==697); + case 727: /* group_by_clause_opt ::= */ yytestcase(yyruleno==727); + case 747: /* order_by_clause_opt ::= */ yytestcase(yyruleno==747); +{ yymsp[1].minor.yy334 = NULL; } break; case 28: /* white_list_opt ::= white_list */ case 245: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==245); case 416: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==416); - case 602: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==602); -{ yylhsminor.yy514 = yymsp[0].minor.yy514; } - yymsp[0].minor.yy514 = yylhsminor.yy514; + case 605: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==605); +{ yylhsminor.yy334 = yymsp[0].minor.yy334; } + yymsp[0].minor.yy334 = yylhsminor.yy334; break; case 29: /* is_import_opt ::= */ case 31: /* is_createdb_opt ::= */ yytestcase(yyruleno==31); -{ yymsp[1].minor.yy833 = 0; } +{ yymsp[1].minor.yy719 = 0; } break; case 30: /* is_import_opt ::= IS_IMPORT NK_INTEGER */ case 32: /* is_createdb_opt ::= CREATEDB NK_INTEGER */ yytestcase(yyruleno==32); case 42: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ yytestcase(yyruleno==42); -{ yymsp[-1].minor.yy833 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } +{ yymsp[-1].minor.yy719 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } break; case 33: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt is_createdb_opt is_import_opt white_list_opt */ { - pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-6].minor.yy29, &yymsp[-4].minor.yy0, yymsp[-3].minor.yy833, yymsp[-1].minor.yy833, yymsp[-2].minor.yy833); - pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy514); + pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-6].minor.yy533, &yymsp[-4].minor.yy0, yymsp[-3].minor.yy719, yymsp[-1].minor.yy719, yymsp[-2].minor.yy719); + pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy334); } break; case 34: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy29, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy533, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } break; case 35: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy29, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy533, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } break; case 36: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy29, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy533, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } break; case 37: /* cmd ::= ALTER USER user_name CREATEDB NK_INTEGER */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy29, TSDB_ALTER_USER_CREATEDB, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy533, TSDB_ALTER_USER_CREATEDB, &yymsp[0].minor.yy0); } break; case 38: /* cmd ::= ALTER USER user_name ADD white_list */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy29, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy514); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy533, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy334); } break; case 39: /* cmd ::= ALTER USER user_name DROP white_list */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy29, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy514); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy533, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy334); } break; case 40: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy29); } +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy533); } break; case 41: /* sysinfo_opt ::= */ -{ yymsp[1].minor.yy833 = 1; } +{ yymsp[1].minor.yy719 = 1; } break; case 43: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ -{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy489, &yymsp[-3].minor.yy337, &yymsp[0].minor.yy29, yymsp[-2].minor.yy232); } +{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy585, &yymsp[-3].minor.yy399, &yymsp[0].minor.yy533, yymsp[-2].minor.yy560); } break; case 44: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ -{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy489, &yymsp[-3].minor.yy337, &yymsp[0].minor.yy29, yymsp[-2].minor.yy232); } +{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy585, &yymsp[-3].minor.yy399, &yymsp[0].minor.yy533, yymsp[-2].minor.yy560); } break; case 45: /* privileges ::= ALL */ -{ yymsp[0].minor.yy489 = PRIVILEGE_TYPE_ALL; } +{ yymsp[0].minor.yy585 = PRIVILEGE_TYPE_ALL; } break; case 46: /* privileges ::= priv_type_list */ case 48: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==48); -{ yylhsminor.yy489 = yymsp[0].minor.yy489; } - yymsp[0].minor.yy489 = yylhsminor.yy489; +{ yylhsminor.yy585 = yymsp[0].minor.yy585; } + yymsp[0].minor.yy585 = yylhsminor.yy585; break; case 47: /* privileges ::= SUBSCRIBE */ -{ yymsp[0].minor.yy489 = PRIVILEGE_TYPE_SUBSCRIBE; } +{ yymsp[0].minor.yy585 = PRIVILEGE_TYPE_SUBSCRIBE; } break; case 49: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ -{ yylhsminor.yy489 = yymsp[-2].minor.yy489 | yymsp[0].minor.yy489; } - yymsp[-2].minor.yy489 = yylhsminor.yy489; +{ yylhsminor.yy585 = yymsp[-2].minor.yy585 | yymsp[0].minor.yy585; } + yymsp[-2].minor.yy585 = yylhsminor.yy585; break; case 50: /* priv_type ::= READ */ -{ yymsp[0].minor.yy489 = PRIVILEGE_TYPE_READ; } +{ yymsp[0].minor.yy585 = PRIVILEGE_TYPE_READ; } break; case 51: /* priv_type ::= WRITE */ -{ yymsp[0].minor.yy489 = PRIVILEGE_TYPE_WRITE; } +{ yymsp[0].minor.yy585 = PRIVILEGE_TYPE_WRITE; } break; case 52: /* priv_type ::= ALTER */ -{ yymsp[0].minor.yy489 = PRIVILEGE_TYPE_ALTER; } +{ yymsp[0].minor.yy585 = PRIVILEGE_TYPE_ALTER; } break; case 53: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ -{ yylhsminor.yy337.first = yymsp[-2].minor.yy0; yylhsminor.yy337.second = yymsp[0].minor.yy0; } - yymsp[-2].minor.yy337 = yylhsminor.yy337; +{ yylhsminor.yy399.first = yymsp[-2].minor.yy0; yylhsminor.yy399.second = yymsp[0].minor.yy0; } + yymsp[-2].minor.yy399 = yylhsminor.yy399; break; case 54: /* priv_level ::= db_name NK_DOT NK_STAR */ -{ yylhsminor.yy337.first = yymsp[-2].minor.yy29; yylhsminor.yy337.second = yymsp[0].minor.yy0; } - yymsp[-2].minor.yy337 = yylhsminor.yy337; +{ yylhsminor.yy399.first = yymsp[-2].minor.yy533; yylhsminor.yy399.second = yymsp[0].minor.yy0; } + yymsp[-2].minor.yy399 = yylhsminor.yy399; break; case 55: /* priv_level ::= db_name NK_DOT table_name */ -{ yylhsminor.yy337.first = yymsp[-2].minor.yy29; yylhsminor.yy337.second = yymsp[0].minor.yy29; } - yymsp[-2].minor.yy337 = yylhsminor.yy337; +{ yylhsminor.yy399.first = yymsp[-2].minor.yy533; yylhsminor.yy399.second = yymsp[0].minor.yy533; } + yymsp[-2].minor.yy399 = yylhsminor.yy399; break; case 56: /* priv_level ::= topic_name */ -{ yylhsminor.yy337.first = yymsp[0].minor.yy29; yylhsminor.yy337.second = nil_token; } - yymsp[0].minor.yy337 = yylhsminor.yy337; +{ yylhsminor.yy399.first = yymsp[0].minor.yy533; yylhsminor.yy399.second = nil_token; } + yymsp[0].minor.yy399 = yylhsminor.yy399; break; case 57: /* with_opt ::= */ case 173: /* start_opt ::= */ yytestcase(yyruleno==173); case 177: /* end_opt ::= */ yytestcase(yyruleno==177); case 330: /* like_pattern_opt ::= */ yytestcase(yyruleno==330); case 428: /* subtable_opt ::= */ yytestcase(yyruleno==428); - case 612: /* case_when_else_opt ::= */ yytestcase(yyruleno==612); - case 642: /* from_clause_opt ::= */ yytestcase(yyruleno==642); - case 669: /* join_on_clause_opt ::= */ yytestcase(yyruleno==669); - case 671: /* window_offset_clause_opt ::= */ yytestcase(yyruleno==671); - case 675: /* jlimit_clause_opt ::= */ yytestcase(yyruleno==675); - case 692: /* where_clause_opt ::= */ yytestcase(yyruleno==692); - case 701: /* twindow_clause_opt ::= */ yytestcase(yyruleno==701); - case 709: /* sliding_opt ::= */ yytestcase(yyruleno==709); - case 714: /* fill_opt ::= */ yytestcase(yyruleno==714); - case 728: /* having_clause_opt ::= */ yytestcase(yyruleno==728); - case 730: /* range_opt ::= */ yytestcase(yyruleno==730); - case 733: /* every_opt ::= */ yytestcase(yyruleno==733); - case 746: /* slimit_clause_opt ::= */ yytestcase(yyruleno==746); - case 750: /* limit_clause_opt ::= */ yytestcase(yyruleno==750); -{ yymsp[1].minor.yy232 = NULL; } + case 615: /* case_when_else_opt ::= */ yytestcase(yyruleno==615); + case 645: /* from_clause_opt ::= */ yytestcase(yyruleno==645); + case 672: /* join_on_clause_opt ::= */ yytestcase(yyruleno==672); + case 674: /* window_offset_clause_opt ::= */ yytestcase(yyruleno==674); + case 678: /* jlimit_clause_opt ::= */ yytestcase(yyruleno==678); + case 695: /* where_clause_opt ::= */ yytestcase(yyruleno==695); + case 704: /* twindow_clause_opt ::= */ yytestcase(yyruleno==704); + case 712: /* sliding_opt ::= */ yytestcase(yyruleno==712); + case 717: /* fill_opt ::= */ yytestcase(yyruleno==717); + case 731: /* having_clause_opt ::= */ yytestcase(yyruleno==731); + case 733: /* range_opt ::= */ yytestcase(yyruleno==733); + case 736: /* every_opt ::= */ yytestcase(yyruleno==736); + case 749: /* slimit_clause_opt ::= */ yytestcase(yyruleno==749); + case 753: /* limit_clause_opt ::= */ yytestcase(yyruleno==753); +{ yymsp[1].minor.yy560 = NULL; } break; case 58: /* with_opt ::= WITH search_condition */ - case 643: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==643); - case 670: /* join_on_clause_opt ::= ON search_condition */ yytestcase(yyruleno==670); - case 693: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==693); - case 729: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==729); -{ yymsp[-1].minor.yy232 = yymsp[0].minor.yy232; } + case 646: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==646); + case 673: /* join_on_clause_opt ::= ON search_condition */ yytestcase(yyruleno==673); + case 696: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==696); + case 732: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==732); +{ yymsp[-1].minor.yy560 = yymsp[0].minor.yy560; } break; case 59: /* cmd ::= CREATE ENCRYPT_KEY NK_STRING */ { pCxt->pRootNode = createEncryptKeyStmt(pCxt, &yymsp[0].minor.yy0); } break; case 60: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy29, NULL); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy533, NULL); } break; case 61: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy29, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy0); } break; case 62: /* cmd ::= DROP DNODE NK_INTEGER force_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy777, false); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy173, false); } break; case 63: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy29, yymsp[0].minor.yy777, false); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy533, yymsp[0].minor.yy173, false); } break; case 64: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy777); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy173); } break; case 65: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy29, false, yymsp[0].minor.yy777); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy533, false, yymsp[0].minor.yy173); } break; case 66: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } @@ -6051,24 +6193,24 @@ static YYACTIONTYPE yy_reduce( case 527: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==527); case 528: /* index_name ::= NK_ID */ yytestcase(yyruleno==528); case 529: /* tsma_name ::= NK_ID */ yytestcase(yyruleno==529); - case 582: /* substr_func ::= SUBSTR */ yytestcase(yyruleno==582); - case 583: /* substr_func ::= SUBSTRING */ yytestcase(yyruleno==583); - case 587: /* noarg_func ::= NOW */ yytestcase(yyruleno==587); - case 588: /* noarg_func ::= TODAY */ yytestcase(yyruleno==588); - case 589: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==589); - case 590: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==590); - case 591: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==591); - case 592: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==592); - case 593: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==593); - case 594: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==594); - case 595: /* noarg_func ::= USER */ yytestcase(yyruleno==595); - case 596: /* noarg_func ::= PI */ yytestcase(yyruleno==596); - case 597: /* star_func ::= COUNT */ yytestcase(yyruleno==597); - case 598: /* star_func ::= FIRST */ yytestcase(yyruleno==598); - case 599: /* star_func ::= LAST */ yytestcase(yyruleno==599); - case 600: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==600); -{ yylhsminor.yy29 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy29 = yylhsminor.yy29; + case 585: /* substr_func ::= SUBSTR */ yytestcase(yyruleno==585); + case 586: /* substr_func ::= SUBSTRING */ yytestcase(yyruleno==586); + case 590: /* noarg_func ::= NOW */ yytestcase(yyruleno==590); + case 591: /* noarg_func ::= TODAY */ yytestcase(yyruleno==591); + case 592: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==592); + case 593: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==593); + case 594: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==594); + case 595: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==595); + case 596: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==596); + case 597: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==597); + case 598: /* noarg_func ::= USER */ yytestcase(yyruleno==598); + case 599: /* noarg_func ::= PI */ yytestcase(yyruleno==599); + case 600: /* star_func ::= COUNT */ yytestcase(yyruleno==600); + case 601: /* star_func ::= FIRST */ yytestcase(yyruleno==601); + case 602: /* star_func ::= LAST */ yytestcase(yyruleno==602); + case 603: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==603); +{ yylhsminor.yy533 = yymsp[0].minor.yy0; } + yymsp[0].minor.yy533 = yylhsminor.yy533; break; case 74: /* force_opt ::= */ case 101: /* not_exists_opt ::= */ yytestcase(yyruleno==101); @@ -6077,17 +6219,17 @@ static YYACTIONTYPE yy_reduce( case 392: /* agg_func_opt ::= */ yytestcase(yyruleno==392); case 398: /* or_replace_opt ::= */ yytestcase(yyruleno==398); case 430: /* ignore_opt ::= */ yytestcase(yyruleno==430); - case 680: /* tag_mode_opt ::= */ yytestcase(yyruleno==680); - case 682: /* set_quantifier_opt ::= */ yytestcase(yyruleno==682); -{ yymsp[1].minor.yy777 = false; } + case 683: /* tag_mode_opt ::= */ yytestcase(yyruleno==683); + case 685: /* set_quantifier_opt ::= */ yytestcase(yyruleno==685); +{ yymsp[1].minor.yy173 = false; } break; case 75: /* force_opt ::= FORCE */ case 76: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==76); case 386: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==386); case 393: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==393); - case 681: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==681); - case 683: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==683); -{ yymsp[0].minor.yy777 = true; } + case 684: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==684); + case 686: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==686); +{ yymsp[0].minor.yy173 = true; } break; case 77: /* cmd ::= ALTER CLUSTER NK_STRING */ { pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); } @@ -6135,271 +6277,271 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); } break; case 92: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy777, &yymsp[-1].minor.yy29, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy173, &yymsp[-1].minor.yy533, yymsp[0].minor.yy560); } break; case 93: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy777, &yymsp[0].minor.yy29); } +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy533); } break; case 94: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy29); } +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy533); } break; case 95: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy29, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy533, yymsp[0].minor.yy560); } break; case 96: /* cmd ::= FLUSH DATABASE db_name */ -{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy29); } +{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy533); } break; case 97: /* cmd ::= TRIM DATABASE db_name speed_opt */ -{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy29, yymsp[0].minor.yy240); } +{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy533, yymsp[0].minor.yy802); } break; case 98: /* cmd ::= S3MIGRATE DATABASE db_name */ -{ pCxt->pRootNode = createS3MigrateDatabaseStmt(pCxt, &yymsp[0].minor.yy29); } +{ pCxt->pRootNode = createS3MigrateDatabaseStmt(pCxt, &yymsp[0].minor.yy533); } break; case 99: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */ -{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy29, yymsp[-1].minor.yy232, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy533, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } break; case 100: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy777 = true; } +{ yymsp[-2].minor.yy173 = true; } break; case 102: /* exists_opt ::= IF EXISTS */ case 399: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==399); case 431: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==431); -{ yymsp[-1].minor.yy777 = true; } +{ yymsp[-1].minor.yy173 = true; } break; case 104: /* db_options ::= */ -{ yymsp[1].minor.yy232 = createDefaultDatabaseOptions(pCxt); } +{ yymsp[1].minor.yy560 = createDefaultDatabaseOptions(pCxt); } break; case 105: /* db_options ::= db_options BUFFER NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 106: /* db_options ::= db_options CACHEMODEL NK_STRING */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 107: /* db_options ::= db_options CACHESIZE NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 108: /* db_options ::= db_options COMP NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_COMP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_COMP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 109: /* db_options ::= db_options DURATION NK_INTEGER */ case 110: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==110); -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 111: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 112: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 113: /* db_options ::= db_options KEEP integer_list */ case 114: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==114); -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_KEEP, yymsp[0].minor.yy514); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_KEEP, yymsp[0].minor.yy334); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 115: /* db_options ::= db_options PAGES NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 116: /* db_options ::= db_options PAGESIZE NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 117: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 118: /* db_options ::= db_options PRECISION NK_STRING */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 119: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 120: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 121: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 122: /* db_options ::= db_options RETENTIONS retention_list */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_RETENTIONS, yymsp[0].minor.yy514); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_RETENTIONS, yymsp[0].minor.yy334); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 123: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 124: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_WAL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_WAL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 125: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 126: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 127: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-3].minor.yy232, DB_OPTION_WAL_RETENTION_PERIOD, &t); + yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-3].minor.yy560, DB_OPTION_WAL_RETENTION_PERIOD, &t); } - yymsp[-3].minor.yy232 = yylhsminor.yy232; + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; case 128: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 129: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-3].minor.yy232, DB_OPTION_WAL_RETENTION_SIZE, &t); + yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-3].minor.yy560, DB_OPTION_WAL_RETENTION_SIZE, &t); } - yymsp[-3].minor.yy232 = yylhsminor.yy232; + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; case 130: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 131: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 132: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 133: /* db_options ::= db_options TABLE_PREFIX signed */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy232); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy560); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 134: /* db_options ::= db_options TABLE_SUFFIX signed */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy232); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy560); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 135: /* db_options ::= db_options S3_CHUNKSIZE NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_S3_CHUNKSIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_S3_CHUNKSIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 136: /* db_options ::= db_options S3_KEEPLOCAL NK_INTEGER */ case 137: /* db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE */ yytestcase(yyruleno==137); -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_S3_KEEPLOCAL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_S3_KEEPLOCAL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 138: /* db_options ::= db_options S3_COMPACT NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_S3_COMPACT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_S3_COMPACT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 139: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 140: /* db_options ::= db_options ENCRYPT_ALGORITHM NK_STRING */ -{ yylhsminor.yy232 = setDatabaseOption(pCxt, yymsp[-2].minor.yy232, DB_OPTION_ENCRYPT_ALGORITHM, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setDatabaseOption(pCxt, yymsp[-2].minor.yy560, DB_OPTION_ENCRYPT_ALGORITHM, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 141: /* alter_db_options ::= alter_db_option */ -{ yylhsminor.yy232 = createAlterDatabaseOptions(pCxt); yylhsminor.yy232 = setAlterDatabaseOption(pCxt, yylhsminor.yy232, &yymsp[0].minor.yy1005); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createAlterDatabaseOptions(pCxt); yylhsminor.yy560 = setAlterDatabaseOption(pCxt, yylhsminor.yy560, &yymsp[0].minor.yy389); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 142: /* alter_db_options ::= alter_db_options alter_db_option */ -{ yylhsminor.yy232 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy232, &yymsp[0].minor.yy1005); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy560, &yymsp[0].minor.yy389); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; case 143: /* alter_db_option ::= BUFFER NK_INTEGER */ -{ yymsp[-1].minor.yy1005.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy1005.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy389.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; case 144: /* alter_db_option ::= CACHEMODEL NK_STRING */ -{ yymsp[-1].minor.yy1005.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy1005.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy389.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; case 145: /* alter_db_option ::= CACHESIZE NK_INTEGER */ -{ yymsp[-1].minor.yy1005.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy1005.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy389.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; case 146: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ -{ yymsp[-1].minor.yy1005.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy1005.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy389.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; case 147: /* alter_db_option ::= KEEP integer_list */ case 148: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==148); -{ yymsp[-1].minor.yy1005.type = DB_OPTION_KEEP; yymsp[-1].minor.yy1005.pList = yymsp[0].minor.yy514; } +{ yymsp[-1].minor.yy389.type = DB_OPTION_KEEP; yymsp[-1].minor.yy389.pList = yymsp[0].minor.yy334; } break; case 149: /* alter_db_option ::= PAGES NK_INTEGER */ -{ yymsp[-1].minor.yy1005.type = DB_OPTION_PAGES; yymsp[-1].minor.yy1005.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy389.type = DB_OPTION_PAGES; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; case 150: /* alter_db_option ::= REPLICA NK_INTEGER */ -{ yymsp[-1].minor.yy1005.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy1005.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy389.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; case 151: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ -{ yymsp[-1].minor.yy1005.type = DB_OPTION_WAL; yymsp[-1].minor.yy1005.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy389.type = DB_OPTION_WAL; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; case 152: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ -{ yymsp[-1].minor.yy1005.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy1005.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy389.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; case 153: /* alter_db_option ::= MINROWS NK_INTEGER */ -{ yymsp[-1].minor.yy1005.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy1005.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy389.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; case 154: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ -{ yymsp[-1].minor.yy1005.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy1005.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy389.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; case 155: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yymsp[-2].minor.yy1005.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy1005.val = t; + yymsp[-2].minor.yy389.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy389.val = t; } break; case 156: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ -{ yymsp[-1].minor.yy1005.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy1005.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy389.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; case 157: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yymsp[-2].minor.yy1005.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy1005.val = t; + yymsp[-2].minor.yy389.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy389.val = t; } break; case 158: /* alter_db_option ::= S3_KEEPLOCAL NK_INTEGER */ case 159: /* alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE */ yytestcase(yyruleno==159); -{ yymsp[-1].minor.yy1005.type = DB_OPTION_S3_KEEPLOCAL; yymsp[-1].minor.yy1005.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy389.type = DB_OPTION_S3_KEEPLOCAL; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; case 160: /* alter_db_option ::= S3_COMPACT NK_INTEGER */ -{ yymsp[-1].minor.yy1005.type = DB_OPTION_S3_COMPACT, yymsp[-1].minor.yy1005.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy389.type = DB_OPTION_S3_COMPACT, yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; case 161: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ -{ yymsp[-1].minor.yy1005.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy1005.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy389.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; case 162: /* alter_db_option ::= ENCRYPT_ALGORITHM NK_STRING */ -{ yymsp[-1].minor.yy1005.type = DB_OPTION_ENCRYPT_ALGORITHM; yymsp[-1].minor.yy1005.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy389.type = DB_OPTION_ENCRYPT_ALGORITHM; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; case 163: /* integer_list ::= NK_INTEGER */ -{ yylhsminor.yy514 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy514 = yylhsminor.yy514; +{ yylhsminor.yy334 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy334 = yylhsminor.yy334; break; case 164: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ case 445: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==445); -{ yylhsminor.yy514 = addNodeToList(pCxt, yymsp[-2].minor.yy514, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy514 = yylhsminor.yy514; +{ yylhsminor.yy334 = addNodeToList(pCxt, yymsp[-2].minor.yy334, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy334 = yylhsminor.yy334; break; case 165: /* variable_list ::= NK_VARIABLE */ -{ yylhsminor.yy514 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy514 = yylhsminor.yy514; +{ yylhsminor.yy334 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy334 = yylhsminor.yy334; break; case 166: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -{ yylhsminor.yy514 = addNodeToList(pCxt, yymsp[-2].minor.yy514, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy514 = yylhsminor.yy514; +{ yylhsminor.yy334 = addNodeToList(pCxt, yymsp[-2].minor.yy334, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy334 = yylhsminor.yy334; break; case 167: /* retention_list ::= retention */ case 200: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==200); @@ -6413,13 +6555,13 @@ static YYACTIONTYPE yy_reduce( case 410: /* column_stream_def_list ::= column_stream_def */ yytestcase(yyruleno==410); case 489: /* tags_literal_list ::= tags_literal */ yytestcase(yyruleno==489); case 514: /* literal_list ::= signed_literal */ yytestcase(yyruleno==514); - case 603: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==603); - case 609: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==609); - case 685: /* select_list ::= select_item */ yytestcase(yyruleno==685); - case 696: /* partition_list ::= partition_item */ yytestcase(yyruleno==696); - case 757: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==757); -{ yylhsminor.yy514 = createNodeList(pCxt, yymsp[0].minor.yy232); } - yymsp[0].minor.yy514 = yylhsminor.yy514; + case 606: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==606); + case 612: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==612); + case 688: /* select_list ::= select_item */ yytestcase(yyruleno==688); + case 699: /* partition_list ::= partition_item */ yytestcase(yyruleno==699); + case 760: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==760); +{ yylhsminor.yy334 = createNodeList(pCxt, yymsp[0].minor.yy560); } + yymsp[0].minor.yy334 = yylhsminor.yy334; break; case 168: /* retention_list ::= retention_list NK_COMMA retention */ case 204: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==204); @@ -6432,296 +6574,296 @@ static YYACTIONTYPE yy_reduce( case 411: /* column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ yytestcase(yyruleno==411); case 490: /* tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ yytestcase(yyruleno==490); case 515: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==515); - case 604: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==604); - case 686: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==686); - case 697: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==697); - case 758: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==758); -{ yylhsminor.yy514 = addNodeToList(pCxt, yymsp[-2].minor.yy514, yymsp[0].minor.yy232); } - yymsp[-2].minor.yy514 = yylhsminor.yy514; + case 607: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==607); + case 689: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==689); + case 700: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==700); + case 761: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==761); +{ yylhsminor.yy334 = addNodeToList(pCxt, yymsp[-2].minor.yy334, yymsp[0].minor.yy560); } + yymsp[-2].minor.yy334 = yylhsminor.yy334; break; case 169: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ case 170: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==170); -{ yylhsminor.yy232 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 171: /* speed_opt ::= */ case 394: /* bufsize_opt ::= */ yytestcase(yyruleno==394); -{ yymsp[1].minor.yy240 = 0; } +{ yymsp[1].minor.yy802 = 0; } break; case 172: /* speed_opt ::= BWLIMIT NK_INTEGER */ case 395: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==395); -{ yymsp[-1].minor.yy240 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } +{ yymsp[-1].minor.yy802 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; case 174: /* start_opt ::= START WITH NK_INTEGER */ case 178: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==178); -{ yymsp[-2].minor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-2].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 175: /* start_opt ::= START WITH NK_STRING */ case 179: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==179); -{ yymsp[-2].minor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +{ yymsp[-2].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 176: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ case 180: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==180); -{ yymsp[-3].minor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +{ yymsp[-3].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 181: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 184: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==184); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy777, yymsp[-5].minor.yy232, yymsp[-3].minor.yy514, yymsp[-1].minor.yy514, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy173, yymsp[-5].minor.yy560, yymsp[-3].minor.yy334, yymsp[-1].minor.yy334, yymsp[0].minor.yy560); } break; case 182: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy514); } +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy334); } break; case 183: /* cmd ::= CREATE TABLE not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP FILE NK_STRING */ -{ pCxt->pRootNode = createCreateSubTableFromFileClause(pCxt, yymsp[-7].minor.yy777, yymsp[-5].minor.yy232, yymsp[-3].minor.yy514, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateSubTableFromFileClause(pCxt, yymsp[-7].minor.yy173, yymsp[-5].minor.yy560, yymsp[-3].minor.yy334, &yymsp[0].minor.yy0); } break; case 185: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy514); } +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy334); } break; case 186: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy777, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy173, yymsp[0].minor.yy560); } break; case 187: /* cmd ::= ALTER TABLE alter_table_clause */ case 447: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==447); case 448: /* cmd ::= insert_query */ yytestcase(yyruleno==448); -{ pCxt->pRootNode = yymsp[0].minor.yy232; } +{ pCxt->pRootNode = yymsp[0].minor.yy560; } break; case 188: /* cmd ::= ALTER STABLE alter_table_clause */ -{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy232); } +{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy560); } break; case 189: /* alter_table_clause ::= full_table_name alter_table_options */ -{ yylhsminor.yy232 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy232, yymsp[0].minor.yy232); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; case 190: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name column_options */ -{ yylhsminor.yy232 = createAlterTableAddModifyColOptions2(pCxt, yymsp[-5].minor.yy232, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-2].minor.yy29, yymsp[-1].minor.yy264, yymsp[0].minor.yy232); } - yymsp[-5].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createAlterTableAddModifyColOptions2(pCxt, yymsp[-5].minor.yy560, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-2].minor.yy533, yymsp[-1].minor.yy952, yymsp[0].minor.yy560); } + yymsp[-5].minor.yy560 = yylhsminor.yy560; break; case 191: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ -{ yylhsminor.yy232 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy232, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy29); } - yymsp[-3].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy560, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy533); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; case 192: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -{ yylhsminor.yy232 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy232, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy29, yymsp[0].minor.yy264); } - yymsp[-4].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy533, yymsp[0].minor.yy952); } + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; case 193: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name column_options */ -{ yylhsminor.yy232 = createAlterTableAddModifyColOptions(pCxt, yymsp[-4].minor.yy232, TSDB_ALTER_TABLE_UPDATE_COLUMN_COMPRESS, &yymsp[-1].minor.yy29, yymsp[0].minor.yy232); } - yymsp[-4].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createAlterTableAddModifyColOptions(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_UPDATE_COLUMN_COMPRESS, &yymsp[-1].minor.yy533, yymsp[0].minor.yy560); } + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; case 194: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -{ yylhsminor.yy232 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy232, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy29, &yymsp[0].minor.yy29); } - yymsp[-4].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy533, &yymsp[0].minor.yy533); } + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; case 195: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -{ yylhsminor.yy232 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy232, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy29, yymsp[0].minor.yy264); } - yymsp[-4].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy533, yymsp[0].minor.yy952); } + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; case 196: /* alter_table_clause ::= full_table_name DROP TAG column_name */ -{ yylhsminor.yy232 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy232, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy29); } - yymsp[-3].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy560, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy533); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; case 197: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -{ yylhsminor.yy232 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy232, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy29, yymsp[0].minor.yy264); } - yymsp[-4].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy533, yymsp[0].minor.yy952); } + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; case 198: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -{ yylhsminor.yy232 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy232, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy29, &yymsp[0].minor.yy29); } - yymsp[-4].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy560, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy533, &yymsp[0].minor.yy533); } + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; case 199: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */ -{ yylhsminor.yy232 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy232, &yymsp[-2].minor.yy29, yymsp[0].minor.yy232); } - yymsp[-5].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy560, &yymsp[-2].minor.yy533, yymsp[0].minor.yy560); } + yymsp[-5].minor.yy560 = yylhsminor.yy560; break; case 201: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 610: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==610); -{ yylhsminor.yy514 = addNodeToList(pCxt, yymsp[-1].minor.yy514, yymsp[0].minor.yy232); } - yymsp[-1].minor.yy514 = yylhsminor.yy514; + case 613: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==613); +{ yylhsminor.yy334 = addNodeToList(pCxt, yymsp[-1].minor.yy334, yymsp[0].minor.yy560); } + yymsp[-1].minor.yy334 = yylhsminor.yy334; break; case 202: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */ -{ yylhsminor.yy232 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy777, yymsp[-8].minor.yy232, yymsp[-6].minor.yy232, yymsp[-5].minor.yy514, yymsp[-2].minor.yy514, yymsp[0].minor.yy232); } - yymsp[-9].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy173, yymsp[-8].minor.yy560, yymsp[-6].minor.yy560, yymsp[-5].minor.yy334, yymsp[-2].minor.yy334, yymsp[0].minor.yy560); } + yymsp[-9].minor.yy560 = yylhsminor.yy560; break; case 205: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy232 = createDropTableClause(pCxt, yymsp[-1].minor.yy777, yymsp[0].minor.yy232); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createDropTableClause(pCxt, yymsp[-1].minor.yy173, yymsp[0].minor.yy560); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; case 207: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ case 409: /* col_list_opt ::= NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==409); -{ yymsp[-2].minor.yy514 = yymsp[-1].minor.yy514; } +{ yymsp[-2].minor.yy334 = yymsp[-1].minor.yy334; } break; case 208: /* full_table_name ::= table_name */ case 350: /* full_tsma_name ::= tsma_name */ yytestcase(yyruleno==350); -{ yylhsminor.yy232 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy29, NULL); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy533, NULL); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 209: /* full_table_name ::= db_name NK_DOT table_name */ case 351: /* full_tsma_name ::= db_name NK_DOT tsma_name */ yytestcase(yyruleno==351); -{ yylhsminor.yy232 = createRealTableNode(pCxt, &yymsp[-2].minor.yy29, &yymsp[0].minor.yy29, NULL); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRealTableNode(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy533, NULL); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 212: /* tag_def ::= column_name type_name */ -{ yylhsminor.yy232 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy29, yymsp[0].minor.yy264, NULL); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy533, yymsp[0].minor.yy952, NULL); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; case 215: /* column_def ::= column_name type_name column_options */ -{ yylhsminor.yy232 = createColumnDefNode(pCxt, &yymsp[-2].minor.yy29, yymsp[-1].minor.yy264, yymsp[0].minor.yy232); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createColumnDefNode(pCxt, &yymsp[-2].minor.yy533, yymsp[-1].minor.yy952, yymsp[0].minor.yy560); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 216: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy264 = createDataType(TSDB_DATA_TYPE_BOOL); } +{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_BOOL); } break; case 217: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy264 = createDataType(TSDB_DATA_TYPE_TINYINT); } +{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; case 218: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy264 = createDataType(TSDB_DATA_TYPE_SMALLINT); } +{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; case 219: /* type_name ::= INT */ case 220: /* type_name ::= INTEGER */ yytestcase(yyruleno==220); -{ yymsp[0].minor.yy264 = createDataType(TSDB_DATA_TYPE_INT); } +{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_INT); } break; case 221: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy264 = createDataType(TSDB_DATA_TYPE_BIGINT); } +{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; case 222: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy264 = createDataType(TSDB_DATA_TYPE_FLOAT); } +{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; case 223: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy264 = createDataType(TSDB_DATA_TYPE_DOUBLE); } +{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; case 224: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy264 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; case 225: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy264 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } +{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; case 226: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy264 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; case 227: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy264 = createDataType(TSDB_DATA_TYPE_UTINYINT); } +{ yymsp[-1].minor.yy952 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; case 228: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy264 = createDataType(TSDB_DATA_TYPE_USMALLINT); } +{ yymsp[-1].minor.yy952 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; case 229: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy264 = createDataType(TSDB_DATA_TYPE_UINT); } +{ yymsp[-1].minor.yy952 = createDataType(TSDB_DATA_TYPE_UINT); } break; case 230: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy264 = createDataType(TSDB_DATA_TYPE_UBIGINT); } +{ yymsp[-1].minor.yy952 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; case 231: /* type_name ::= JSON */ -{ yymsp[0].minor.yy264 = createDataType(TSDB_DATA_TYPE_JSON); } +{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_JSON); } break; case 232: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy264 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; case 233: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy264 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } +{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; case 234: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy264 = createDataType(TSDB_DATA_TYPE_BLOB); } +{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_BLOB); } break; case 235: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy264 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; case 236: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy264 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } break; case 237: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy264 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 238: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy264 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[-3].minor.yy952 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 239: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy264 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[-5].minor.yy952 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 240: /* type_name_default_len ::= BINARY */ -{ yymsp[0].minor.yy264 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, NULL); } +{ yymsp[0].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, NULL); } break; case 241: /* type_name_default_len ::= NCHAR */ -{ yymsp[0].minor.yy264 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, NULL); } +{ yymsp[0].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, NULL); } break; case 242: /* type_name_default_len ::= VARCHAR */ -{ yymsp[0].minor.yy264 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, NULL); } +{ yymsp[0].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, NULL); } break; case 243: /* type_name_default_len ::= VARBINARY */ -{ yymsp[0].minor.yy264 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, NULL); } +{ yymsp[0].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, NULL); } break; case 246: /* tags_def ::= TAGS NK_LP tag_def_list NK_RP */ case 417: /* tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==417); -{ yymsp[-3].minor.yy514 = yymsp[-1].minor.yy514; } +{ yymsp[-3].minor.yy334 = yymsp[-1].minor.yy334; } break; case 247: /* table_options ::= */ -{ yymsp[1].minor.yy232 = createDefaultTableOptions(pCxt); } +{ yymsp[1].minor.yy560 = createDefaultTableOptions(pCxt); } break; case 248: /* table_options ::= table_options COMMENT NK_STRING */ -{ yylhsminor.yy232 = setTableOption(pCxt, yymsp[-2].minor.yy232, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 249: /* table_options ::= table_options MAX_DELAY duration_list */ -{ yylhsminor.yy232 = setTableOption(pCxt, yymsp[-2].minor.yy232, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy514); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy334); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 250: /* table_options ::= table_options WATERMARK duration_list */ -{ yylhsminor.yy232 = setTableOption(pCxt, yymsp[-2].minor.yy232, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy514); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy334); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 251: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -{ yylhsminor.yy232 = setTableOption(pCxt, yymsp[-4].minor.yy232, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy514); } - yymsp[-4].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-4].minor.yy560, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy334); } + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; case 252: /* table_options ::= table_options TTL NK_INTEGER */ -{ yylhsminor.yy232 = setTableOption(pCxt, yymsp[-2].minor.yy232, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 253: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ yylhsminor.yy232 = setTableOption(pCxt, yymsp[-4].minor.yy232, TABLE_OPTION_SMA, yymsp[-1].minor.yy514); } - yymsp[-4].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-4].minor.yy560, TABLE_OPTION_SMA, yymsp[-1].minor.yy334); } + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; case 254: /* table_options ::= table_options DELETE_MARK duration_list */ -{ yylhsminor.yy232 = setTableOption(pCxt, yymsp[-2].minor.yy232, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy514); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-2].minor.yy560, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy334); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 255: /* alter_table_options ::= alter_table_option */ -{ yylhsminor.yy232 = createAlterTableOptions(pCxt); yylhsminor.yy232 = setTableOption(pCxt, yylhsminor.yy232, yymsp[0].minor.yy1005.type, &yymsp[0].minor.yy1005.val); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createAlterTableOptions(pCxt); yylhsminor.yy560 = setTableOption(pCxt, yylhsminor.yy560, yymsp[0].minor.yy389.type, &yymsp[0].minor.yy389.val); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 256: /* alter_table_options ::= alter_table_options alter_table_option */ -{ yylhsminor.yy232 = setTableOption(pCxt, yymsp[-1].minor.yy232, yymsp[0].minor.yy1005.type, &yymsp[0].minor.yy1005.val); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setTableOption(pCxt, yymsp[-1].minor.yy560, yymsp[0].minor.yy389.type, &yymsp[0].minor.yy389.val); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; case 257: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy1005.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy1005.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy389.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; case 258: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy1005.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy1005.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy389.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy389.val = yymsp[0].minor.yy0; } break; case 259: /* duration_list ::= duration_literal */ case 547: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==547); -{ yylhsminor.yy514 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy232)); } - yymsp[0].minor.yy514 = yylhsminor.yy514; +{ yylhsminor.yy334 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); } + yymsp[0].minor.yy334 = yylhsminor.yy334; break; case 260: /* duration_list ::= duration_list NK_COMMA duration_literal */ case 548: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==548); -{ yylhsminor.yy514 = addNodeToList(pCxt, yymsp[-2].minor.yy514, releaseRawExprNode(pCxt, yymsp[0].minor.yy232)); } - yymsp[-2].minor.yy514 = yylhsminor.yy514; +{ yylhsminor.yy334 = addNodeToList(pCxt, yymsp[-2].minor.yy334, releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); } + yymsp[-2].minor.yy334 = yylhsminor.yy334; break; case 263: /* rollup_func_name ::= function_name */ -{ yylhsminor.yy232 = createFunctionNode(pCxt, &yymsp[0].minor.yy29, NULL); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createFunctionNode(pCxt, &yymsp[0].minor.yy533, NULL); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 264: /* rollup_func_name ::= FIRST */ case 265: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==265); case 339: /* tag_item ::= QTAGS */ yytestcase(yyruleno==339); -{ yylhsminor.yy232 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 268: /* col_name ::= column_name */ case 340: /* tag_item ::= column_name */ yytestcase(yyruleno==340); -{ yylhsminor.yy232 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy29); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy533); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 269: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } @@ -6738,19 +6880,19 @@ static YYACTIONTYPE yy_reduce( case 273: /* cmd ::= SHOW db_kind_opt DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); - (void)setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy1119); + (void)setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy537); } break; case 274: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ { - pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy307, yymsp[0].minor.yy232, OP_TYPE_LIKE); + pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy709, yymsp[0].minor.yy560, OP_TYPE_LIKE); } break; case 275: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy232, yymsp[0].minor.yy232, OP_TYPE_LIKE); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy560, yymsp[0].minor.yy560, OP_TYPE_LIKE); } break; case 276: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy232, NULL, OP_TYPE_LIKE); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy560, NULL, OP_TYPE_LIKE); } break; case 277: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } @@ -6765,10 +6907,10 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } break; case 281: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy232, yymsp[-1].minor.yy232, OP_TYPE_EQUAL); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy560, yymsp[-1].minor.yy560, OP_TYPE_EQUAL); } break; case 282: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy29), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy29), OP_TYPE_EQUAL); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy533), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy533), OP_TYPE_EQUAL); } break; case 283: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } @@ -6796,14 +6938,14 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); } break; case 292: /* cmd ::= SHOW CREATE DATABASE db_name */ -{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy29); } +{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy533); } break; case 293: /* cmd ::= SHOW CREATE TABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy560); } break; case 294: /* cmd ::= SHOW CREATE STABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, -yymsp[0].minor.yy232); } +yymsp[0].minor.yy560); } break; case 295: /* cmd ::= SHOW ENCRYPTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ENCRYPTIONS_STMT); } @@ -6825,7 +6967,7 @@ yymsp[0].minor.yy232); } { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } break; case 302: /* 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.yy232); } +{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy560); } break; case 303: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } @@ -6840,7 +6982,7 @@ yymsp[0].minor.yy232); } { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } break; case 307: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy560); } break; case 308: /* cmd ::= SHOW CONSUMERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } @@ -6849,16 +6991,16 @@ yymsp[0].minor.yy232); } { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } break; case 310: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy232, yymsp[-1].minor.yy232, OP_TYPE_EQUAL); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy560, yymsp[-1].minor.yy560, OP_TYPE_EQUAL); } break; case 311: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy29), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy29), OP_TYPE_EQUAL); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy533), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy533), OP_TYPE_EQUAL); } break; case 312: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy232, yymsp[0].minor.yy232, yymsp[-3].minor.yy514); } +{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy560, yymsp[0].minor.yy560, yymsp[-3].minor.yy334); } break; case 313: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ -{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy29), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy29), yymsp[-4].minor.yy514); } +{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy533), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy533), yymsp[-4].minor.yy334); } break; case 314: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } @@ -6867,16 +7009,16 @@ yymsp[0].minor.yy232); } { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); } break; case 316: /* cmd ::= SHOW db_name_cond_opt ALIVE */ -{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy232, QUERY_NODE_SHOW_DB_ALIVE_STMT); } +{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy560, QUERY_NODE_SHOW_DB_ALIVE_STMT); } break; case 317: /* cmd ::= SHOW CLUSTER ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); } break; case 318: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy232, yymsp[0].minor.yy232, OP_TYPE_LIKE); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy560, yymsp[0].minor.yy560, OP_TYPE_LIKE); } break; case 319: /* cmd ::= SHOW CREATE VIEW full_table_name */ -{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy560); } break; case 320: /* cmd ::= SHOW COMPACTS */ { pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); } @@ -6885,261 +7027,261 @@ yymsp[0].minor.yy232); } { pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; case 322: /* table_kind_db_name_cond_opt ::= */ -{ yymsp[1].minor.yy307.kind = SHOW_KIND_ALL; yymsp[1].minor.yy307.dbName = nil_token; } +{ yymsp[1].minor.yy709.kind = SHOW_KIND_ALL; yymsp[1].minor.yy709.dbName = nil_token; } break; case 323: /* table_kind_db_name_cond_opt ::= table_kind */ -{ yylhsminor.yy307.kind = yymsp[0].minor.yy1119; yylhsminor.yy307.dbName = nil_token; } - yymsp[0].minor.yy307 = yylhsminor.yy307; +{ yylhsminor.yy709.kind = yymsp[0].minor.yy537; yylhsminor.yy709.dbName = nil_token; } + yymsp[0].minor.yy709 = yylhsminor.yy709; break; case 324: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy307.kind = SHOW_KIND_ALL; yylhsminor.yy307.dbName = yymsp[-1].minor.yy29; } - yymsp[-1].minor.yy307 = yylhsminor.yy307; +{ yylhsminor.yy709.kind = SHOW_KIND_ALL; yylhsminor.yy709.dbName = yymsp[-1].minor.yy533; } + yymsp[-1].minor.yy709 = yylhsminor.yy709; break; case 325: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ -{ yylhsminor.yy307.kind = yymsp[-2].minor.yy1119; yylhsminor.yy307.dbName = yymsp[-1].minor.yy29; } - yymsp[-2].minor.yy307 = yylhsminor.yy307; +{ yylhsminor.yy709.kind = yymsp[-2].minor.yy537; yylhsminor.yy709.dbName = yymsp[-1].minor.yy533; } + yymsp[-2].minor.yy709 = yylhsminor.yy709; break; case 326: /* table_kind ::= NORMAL */ -{ yymsp[0].minor.yy1119 = SHOW_KIND_TABLES_NORMAL; } +{ yymsp[0].minor.yy537 = SHOW_KIND_TABLES_NORMAL; } break; case 327: /* table_kind ::= CHILD */ -{ yymsp[0].minor.yy1119 = SHOW_KIND_TABLES_CHILD; } +{ yymsp[0].minor.yy537 = SHOW_KIND_TABLES_CHILD; } break; case 328: /* db_name_cond_opt ::= */ case 333: /* from_db_opt ::= */ yytestcase(yyruleno==333); -{ yymsp[1].minor.yy232 = createDefaultDatabaseCondValue(pCxt); } +{ yymsp[1].minor.yy560 = createDefaultDatabaseCondValue(pCxt); } break; case 329: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy232 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy29); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy533); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; case 331: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; case 332: /* table_name_cond ::= table_name */ -{ yylhsminor.yy232 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy29); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy533); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 334: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy232 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy29); } +{ yymsp[-1].minor.yy560 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy533); } break; case 338: /* tag_item ::= TBNAME */ -{ yylhsminor.yy232 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 341: /* tag_item ::= column_name column_alias */ -{ yylhsminor.yy232 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy29), &yymsp[0].minor.yy29); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy533), &yymsp[0].minor.yy533); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; case 342: /* tag_item ::= column_name AS column_alias */ -{ yylhsminor.yy232 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy29), &yymsp[0].minor.yy29); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy533), &yymsp[0].minor.yy533); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 343: /* db_kind_opt ::= */ -{ yymsp[1].minor.yy1119 = SHOW_KIND_ALL; } +{ yymsp[1].minor.yy537 = SHOW_KIND_ALL; } break; case 344: /* db_kind_opt ::= USER */ -{ yymsp[0].minor.yy1119 = SHOW_KIND_DATABASES_USER; } +{ yymsp[0].minor.yy537 = SHOW_KIND_DATABASES_USER; } break; case 345: /* db_kind_opt ::= SYSTEM */ -{ yymsp[0].minor.yy1119 = SHOW_KIND_DATABASES_SYSTEM; } +{ yymsp[0].minor.yy537 = SHOW_KIND_DATABASES_SYSTEM; } break; case 346: /* cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_func_list INTERVAL NK_LP duration_literal NK_RP */ -{ pCxt->pRootNode = createCreateTSMAStmt(pCxt, yymsp[-8].minor.yy777, &yymsp[-7].minor.yy29, yymsp[-4].minor.yy232, yymsp[-5].minor.yy232, releaseRawExprNode(pCxt, yymsp[-1].minor.yy232)); } +{ pCxt->pRootNode = createCreateTSMAStmt(pCxt, yymsp[-8].minor.yy173, &yymsp[-7].minor.yy533, yymsp[-4].minor.yy560, yymsp[-5].minor.yy560, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); } break; case 347: /* cmd ::= CREATE RECURSIVE TSMA not_exists_opt tsma_name ON full_table_name INTERVAL NK_LP duration_literal NK_RP */ -{ pCxt->pRootNode = createCreateTSMAStmt(pCxt, yymsp[-7].minor.yy777, &yymsp[-6].minor.yy29, NULL, yymsp[-4].minor.yy232, releaseRawExprNode(pCxt, yymsp[-1].minor.yy232)); } +{ pCxt->pRootNode = createCreateTSMAStmt(pCxt, yymsp[-7].minor.yy173, &yymsp[-6].minor.yy533, NULL, yymsp[-4].minor.yy560, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); } break; case 348: /* cmd ::= DROP TSMA exists_opt full_tsma_name */ -{ pCxt->pRootNode = createDropTSMAStmt(pCxt, yymsp[-1].minor.yy777, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createDropTSMAStmt(pCxt, yymsp[-1].minor.yy173, yymsp[0].minor.yy560); } break; case 349: /* cmd ::= SHOW db_name_cond_opt TSMAS */ -{ pCxt->pRootNode = createShowTSMASStmt(pCxt, yymsp[-1].minor.yy232); } +{ pCxt->pRootNode = createShowTSMASStmt(pCxt, yymsp[-1].minor.yy560); } break; case 352: /* tsma_func_list ::= FUNCTION NK_LP func_list NK_RP */ -{ yymsp[-3].minor.yy232 = createTSMAOptions(pCxt, yymsp[-1].minor.yy514); } +{ yymsp[-3].minor.yy560 = createTSMAOptions(pCxt, yymsp[-1].minor.yy334); } break; case 353: /* 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.yy777, yymsp[-3].minor.yy232, yymsp[-1].minor.yy232, NULL, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy173, yymsp[-3].minor.yy560, yymsp[-1].minor.yy560, NULL, yymsp[0].minor.yy560); } break; case 354: /* 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.yy777, yymsp[-5].minor.yy232, yymsp[-3].minor.yy232, yymsp[-1].minor.yy514, NULL); } +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy173, yymsp[-5].minor.yy560, yymsp[-3].minor.yy560, yymsp[-1].minor.yy334, NULL); } break; case 355: /* cmd ::= DROP INDEX exists_opt full_index_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy777, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy173, yymsp[0].minor.yy560); } break; case 356: /* full_index_name ::= index_name */ -{ yylhsminor.yy232 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy29); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy533); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 357: /* full_index_name ::= db_name NK_DOT index_name */ -{ yylhsminor.yy232 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy29, &yymsp[0].minor.yy29); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy533); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 358: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ -{ yymsp[-9].minor.yy232 = createIndexOption(pCxt, yymsp[-7].minor.yy514, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), NULL, yymsp[-1].minor.yy232, yymsp[0].minor.yy232); } +{ yymsp[-9].minor.yy560 = createIndexOption(pCxt, yymsp[-7].minor.yy334, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), NULL, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } break; case 359: /* 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.yy232 = createIndexOption(pCxt, yymsp[-9].minor.yy514, releaseRawExprNode(pCxt, yymsp[-5].minor.yy232), releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), yymsp[-1].minor.yy232, yymsp[0].minor.yy232); } +{ yymsp[-11].minor.yy560 = createIndexOption(pCxt, yymsp[-9].minor.yy334, releaseRawExprNode(pCxt, yymsp[-5].minor.yy560), releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } break; case 362: /* func ::= sma_func_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy232 = createFunctionNode(pCxt, &yymsp[-3].minor.yy29, yymsp[-1].minor.yy514); } - yymsp[-3].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createFunctionNode(pCxt, &yymsp[-3].minor.yy533, yymsp[-1].minor.yy334); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; case 363: /* sma_func_name ::= function_name */ - case 653: /* alias_opt ::= table_alias */ yytestcase(yyruleno==653); -{ yylhsminor.yy29 = yymsp[0].minor.yy29; } - yymsp[0].minor.yy29 = yylhsminor.yy29; + case 656: /* alias_opt ::= table_alias */ yytestcase(yyruleno==656); +{ yylhsminor.yy533 = yymsp[0].minor.yy533; } + yymsp[0].minor.yy533 = yylhsminor.yy533; break; case 368: /* sma_stream_opt ::= */ case 418: /* stream_options ::= */ yytestcase(yyruleno==418); -{ yymsp[1].minor.yy232 = createStreamOptions(pCxt); } +{ yymsp[1].minor.yy560 = createStreamOptions(pCxt); } break; case 369: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy232)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy232); yylhsminor.yy232 = yymsp[-2].minor.yy232; } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ ((SStreamOptions*)yymsp[-2].minor.yy560)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); yylhsminor.yy560 = yymsp[-2].minor.yy560; } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 370: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy232)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy232); yylhsminor.yy232 = yymsp[-2].minor.yy232; } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ ((SStreamOptions*)yymsp[-2].minor.yy560)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); yylhsminor.yy560 = yymsp[-2].minor.yy560; } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 371: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy232)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy232); yylhsminor.yy232 = yymsp[-2].minor.yy232; } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ ((SStreamOptions*)yymsp[-2].minor.yy560)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); yylhsminor.yy560 = yymsp[-2].minor.yy560; } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 372: /* with_meta ::= AS */ -{ yymsp[0].minor.yy240 = 0; } +{ yymsp[0].minor.yy802 = 0; } break; case 373: /* with_meta ::= WITH META AS */ -{ yymsp[-2].minor.yy240 = 1; } +{ yymsp[-2].minor.yy802 = 1; } break; case 374: /* with_meta ::= ONLY META AS */ -{ yymsp[-2].minor.yy240 = 2; } +{ yymsp[-2].minor.yy802 = 2; } break; case 375: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ -{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy777, &yymsp[-2].minor.yy29, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy173, &yymsp[-2].minor.yy533, yymsp[0].minor.yy560); } break; case 376: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ -{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy777, &yymsp[-3].minor.yy29, &yymsp[0].minor.yy29, yymsp[-2].minor.yy240); } +{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy173, &yymsp[-3].minor.yy533, &yymsp[0].minor.yy533, yymsp[-2].minor.yy802); } break; case 377: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ -{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy777, &yymsp[-4].minor.yy29, yymsp[-1].minor.yy232, yymsp[-3].minor.yy240, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy173, &yymsp[-4].minor.yy533, yymsp[-1].minor.yy560, yymsp[-3].minor.yy802, yymsp[0].minor.yy560); } break; case 378: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy777, &yymsp[0].minor.yy29); } +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy533); } break; case 379: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy777, &yymsp[-2].minor.yy29, &yymsp[0].minor.yy29); } +{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy173, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy533); } break; case 380: /* cmd ::= DESC full_table_name */ case 381: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==381); -{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy560); } break; case 382: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; case 383: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ case 384: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==384); -{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy777, yymsp[-1].minor.yy232, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy173, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } break; case 387: /* explain_options ::= */ -{ yymsp[1].minor.yy232 = createDefaultExplainOptions(pCxt); } +{ yymsp[1].minor.yy560 = createDefaultExplainOptions(pCxt); } break; case 388: /* explain_options ::= explain_options VERBOSE NK_BOOL */ -{ yylhsminor.yy232 = setExplainVerbose(pCxt, yymsp[-2].minor.yy232, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setExplainVerbose(pCxt, yymsp[-2].minor.yy560, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 389: /* explain_options ::= explain_options RATIO NK_FLOAT */ -{ yylhsminor.yy232 = setExplainRatio(pCxt, yymsp[-2].minor.yy232, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setExplainRatio(pCxt, yymsp[-2].minor.yy560, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 390: /* 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.yy777, yymsp[-9].minor.yy777, &yymsp[-6].minor.yy29, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy264, yymsp[-1].minor.yy240, &yymsp[0].minor.yy29, yymsp[-10].minor.yy777); } +{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy173, yymsp[-9].minor.yy173, &yymsp[-6].minor.yy533, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy952, yymsp[-1].minor.yy802, &yymsp[0].minor.yy533, yymsp[-10].minor.yy173); } break; case 391: /* cmd ::= DROP FUNCTION exists_opt function_name */ -{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy777, &yymsp[0].minor.yy29); } +{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy533); } break; case 396: /* language_opt ::= */ case 442: /* on_vgroup_id ::= */ yytestcase(yyruleno==442); -{ yymsp[1].minor.yy29 = nil_token; } +{ yymsp[1].minor.yy533 = nil_token; } break; case 397: /* language_opt ::= LANGUAGE NK_STRING */ case 443: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==443); -{ yymsp[-1].minor.yy29 = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy533 = yymsp[0].minor.yy0; } break; case 400: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ -{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy777, yymsp[-2].minor.yy232, &yymsp[-1].minor.yy0, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy173, yymsp[-2].minor.yy560, &yymsp[-1].minor.yy0, yymsp[0].minor.yy560); } break; case 401: /* cmd ::= DROP VIEW exists_opt full_view_name */ -{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy777, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy173, yymsp[0].minor.yy560); } break; case 402: /* full_view_name ::= view_name */ -{ yylhsminor.yy232 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy29); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy533); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 403: /* full_view_name ::= db_name NK_DOT view_name */ -{ yylhsminor.yy232 = createViewNode(pCxt, &yymsp[-2].minor.yy29, &yymsp[0].minor.yy29); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createViewNode(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy533); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 404: /* 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.yy777, &yymsp[-8].minor.yy29, yymsp[-5].minor.yy232, yymsp[-7].minor.yy232, yymsp[-3].minor.yy514, yymsp[-2].minor.yy232, yymsp[0].minor.yy232, yymsp[-4].minor.yy514); } +{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy173, &yymsp[-8].minor.yy533, yymsp[-5].minor.yy560, yymsp[-7].minor.yy560, yymsp[-3].minor.yy334, yymsp[-2].minor.yy560, yymsp[0].minor.yy560, yymsp[-4].minor.yy334); } break; case 405: /* cmd ::= DROP STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy777, &yymsp[0].minor.yy29); } +{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy533); } break; case 406: /* cmd ::= PAUSE STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy777, &yymsp[0].minor.yy29); } +{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy173, &yymsp[0].minor.yy533); } break; case 407: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ -{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy777, yymsp[-1].minor.yy777, &yymsp[0].minor.yy29); } +{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy173, yymsp[-1].minor.yy173, &yymsp[0].minor.yy533); } break; case 412: /* column_stream_def ::= column_name stream_col_options */ -{ yylhsminor.yy232 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy29, createDataType(TSDB_DATA_TYPE_NULL), yymsp[0].minor.yy232); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy533, createDataType(TSDB_DATA_TYPE_NULL), yymsp[0].minor.yy560); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; case 413: /* stream_col_options ::= */ - case 766: /* column_options ::= */ yytestcase(yyruleno==766); -{ yymsp[1].minor.yy232 = createDefaultColumnOptions(pCxt); } + case 769: /* column_options ::= */ yytestcase(yyruleno==769); +{ yymsp[1].minor.yy560 = createDefaultColumnOptions(pCxt); } break; case 414: /* stream_col_options ::= stream_col_options PRIMARY KEY */ - case 767: /* column_options ::= column_options PRIMARY KEY */ yytestcase(yyruleno==767); -{ yylhsminor.yy232 = setColumnOptionsPK(pCxt, yymsp[-2].minor.yy232); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + case 770: /* column_options ::= column_options PRIMARY KEY */ yytestcase(yyruleno==770); +{ yylhsminor.yy560 = setColumnOptionsPK(pCxt, yymsp[-2].minor.yy560); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 419: /* stream_options ::= stream_options TRIGGER AT_ONCE */ case 420: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==420); case 421: /* stream_options ::= stream_options TRIGGER FORCE_WINDOW_CLOSE */ yytestcase(yyruleno==421); -{ yylhsminor.yy232 = setStreamOptions(pCxt, yymsp[-2].minor.yy232, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setStreamOptions(pCxt, yymsp[-2].minor.yy560, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 422: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -{ yylhsminor.yy232 = setStreamOptions(pCxt, yymsp[-3].minor.yy232, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy232)); } - yymsp[-3].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setStreamOptions(pCxt, yymsp[-3].minor.yy560, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; case 423: /* stream_options ::= stream_options WATERMARK duration_literal */ -{ yylhsminor.yy232 = setStreamOptions(pCxt, yymsp[-2].minor.yy232, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy232)); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setStreamOptions(pCxt, yymsp[-2].minor.yy560, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 424: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ -{ yylhsminor.yy232 = setStreamOptions(pCxt, yymsp[-3].minor.yy232, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } - yymsp[-3].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setStreamOptions(pCxt, yymsp[-3].minor.yy560, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; case 425: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ -{ yylhsminor.yy232 = setStreamOptions(pCxt, yymsp[-2].minor.yy232, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setStreamOptions(pCxt, yymsp[-2].minor.yy560, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 426: /* stream_options ::= stream_options DELETE_MARK duration_literal */ -{ yylhsminor.yy232 = setStreamOptions(pCxt, yymsp[-2].minor.yy232, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy232)); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setStreamOptions(pCxt, yymsp[-2].minor.yy560, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 427: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ -{ yylhsminor.yy232 = setStreamOptions(pCxt, yymsp[-3].minor.yy232, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } - yymsp[-3].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = setStreamOptions(pCxt, yymsp[-3].minor.yy560, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; case 429: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - case 710: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==710); - case 734: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==734); -{ yymsp[-3].minor.yy232 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy232); } + case 713: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==713); + case 737: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==737); +{ yymsp[-3].minor.yy560 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy560); } break; case 432: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } @@ -7157,37 +7299,37 @@ yymsp[0].minor.yy232); } { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } break; case 437: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ -{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy29); } +{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy533); } break; case 438: /* cmd ::= BALANCE VGROUP LEADER DATABASE db_name */ -{ pCxt->pRootNode = createBalanceVgroupLeaderDBNameStmt(pCxt, &yymsp[0].minor.yy29); } +{ pCxt->pRootNode = createBalanceVgroupLeaderDBNameStmt(pCxt, &yymsp[0].minor.yy533); } break; case 439: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 440: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy514); } +{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy334); } break; case 441: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; case 444: /* dnode_list ::= DNODE NK_INTEGER */ -{ yymsp[-1].minor.yy514 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } +{ yymsp[-1].minor.yy334 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; case 446: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ -{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy232, yymsp[0].minor.yy232); } +{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } break; case 449: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ -{ yymsp[-6].minor.yy232 = createInsertStmt(pCxt, yymsp[-4].minor.yy232, yymsp[-2].minor.yy514, yymsp[0].minor.yy232); } +{ yymsp[-6].minor.yy560 = createInsertStmt(pCxt, yymsp[-4].minor.yy560, yymsp[-2].minor.yy334, yymsp[0].minor.yy560); } break; case 450: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ -{ yymsp[-3].minor.yy232 = createInsertStmt(pCxt, yymsp[-1].minor.yy232, NULL, yymsp[0].minor.yy232); } +{ yymsp[-3].minor.yy560 = createInsertStmt(pCxt, yymsp[-1].minor.yy560, NULL, yymsp[0].minor.yy560); } break; case 451: /* tags_literal ::= NK_INTEGER */ case 463: /* tags_literal ::= NK_BIN */ yytestcase(yyruleno==463); case 472: /* tags_literal ::= NK_HEX */ yytestcase(yyruleno==472); -{ yylhsminor.yy232 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 452: /* tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ case 453: /* tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==453); @@ -7199,11 +7341,11 @@ yymsp[0].minor.yy232); } case 483: /* tags_literal ::= NK_STRING NK_MINUS duration_literal */ yytestcase(yyruleno==483); { SToken l = yymsp[-2].minor.yy0; - SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); + SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); l.n = (r.z + r.n) - l.z; - yylhsminor.yy232 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy232); + yylhsminor.yy560 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy560); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 454: /* tags_literal ::= NK_PLUS NK_INTEGER */ case 457: /* tags_literal ::= NK_MINUS NK_INTEGER */ yytestcase(yyruleno==457); @@ -7214,9 +7356,9 @@ yymsp[0].minor.yy232); } { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy232 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &t, NULL); + yylhsminor.yy560 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &t, NULL); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; case 455: /* tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ case 456: /* tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==456); @@ -7232,70 +7374,70 @@ yymsp[0].minor.yy232); } case 480: /* tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==480); { SToken l = yymsp[-3].minor.yy0; - SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); + SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); l.n = (r.z + r.n) - l.z; - yylhsminor.yy232 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy232); + yylhsminor.yy560 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy560); } - yymsp[-3].minor.yy232 = yylhsminor.yy232; + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; case 460: /* tags_literal ::= NK_FLOAT */ -{ yylhsminor.yy232 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 461: /* tags_literal ::= NK_PLUS NK_FLOAT */ case 462: /* tags_literal ::= NK_MINUS NK_FLOAT */ yytestcase(yyruleno==462); { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy232 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t, NULL); + yylhsminor.yy560 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t, NULL); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; case 481: /* tags_literal ::= NK_STRING */ -{ yylhsminor.yy232 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 484: /* tags_literal ::= NK_BOOL */ -{ yylhsminor.yy232 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 485: /* tags_literal ::= NULL */ -{ yylhsminor.yy232 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 486: /* tags_literal ::= literal_func */ -{ yylhsminor.yy232 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy232); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy560); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 487: /* tags_literal ::= literal_func NK_PLUS duration_literal */ case 488: /* tags_literal ::= literal_func NK_MINUS duration_literal */ yytestcase(yyruleno==488); { - SToken l = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232); - SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); + SToken l = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); l.n = (r.z + r.n) - l.z; - yylhsminor.yy232 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, yymsp[-2].minor.yy232, yymsp[0].minor.yy232); + yylhsminor.yy560 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, yymsp[-2].minor.yy560, yymsp[0].minor.yy560); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 491: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 492: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 493: /* literal ::= NK_STRING */ -{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 494: /* literal ::= NK_BOOL */ -{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 495: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; case 496: /* literal ::= duration_literal */ case 506: /* signed_literal ::= signed */ yytestcase(yyruleno==506); @@ -7305,198 +7447,199 @@ yymsp[0].minor.yy232); } case 534: /* expression ::= function_expression */ yytestcase(yyruleno==534); case 535: /* expression ::= case_when_expression */ yytestcase(yyruleno==535); case 578: /* function_expression ::= literal_func */ yytestcase(yyruleno==578); - case 634: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==634); - case 638: /* boolean_primary ::= predicate */ yytestcase(yyruleno==638); - case 640: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==640); - case 641: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==641); - case 644: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==644); - case 646: /* table_reference ::= table_primary */ yytestcase(yyruleno==646); - case 647: /* table_reference ::= joined_table */ yytestcase(yyruleno==647); - case 651: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==651); - case 736: /* query_simple ::= query_specification */ yytestcase(yyruleno==736); - case 737: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==737); - case 740: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==740); - case 742: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==742); -{ yylhsminor.yy232 = yymsp[0].minor.yy232; } - yymsp[0].minor.yy232 = yylhsminor.yy232; + case 579: /* function_expression ::= rand_func */ yytestcase(yyruleno==579); + case 637: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==637); + case 641: /* boolean_primary ::= predicate */ yytestcase(yyruleno==641); + case 643: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==643); + case 644: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==644); + case 647: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==647); + case 649: /* table_reference ::= table_primary */ yytestcase(yyruleno==649); + case 650: /* table_reference ::= joined_table */ yytestcase(yyruleno==650); + case 654: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==654); + case 739: /* query_simple ::= query_specification */ yytestcase(yyruleno==739); + case 740: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==740); + case 743: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==743); + case 745: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==745); +{ yylhsminor.yy560 = yymsp[0].minor.yy560; } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 497: /* literal ::= NULL */ -{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 498: /* literal ::= NK_QUESTION */ -{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 499: /* duration_literal ::= NK_VARIABLE */ - case 711: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==711); - case 712: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==712); - case 713: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==713); -{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy232 = yylhsminor.yy232; + case 714: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==714); + case 715: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==715); + case 716: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==716); +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 500: /* signed ::= NK_INTEGER */ -{ yylhsminor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 501: /* signed ::= NK_PLUS NK_INTEGER */ -{ yymsp[-1].minor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } break; case 502: /* 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.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; case 503: /* signed ::= NK_FLOAT */ -{ yylhsminor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 504: /* signed ::= NK_PLUS NK_FLOAT */ -{ yymsp[-1].minor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; case 505: /* 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.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; case 507: /* signed_literal ::= NK_STRING */ -{ yylhsminor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 508: /* signed_literal ::= NK_BOOL */ -{ yylhsminor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 509: /* signed_literal ::= TIMESTAMP NK_STRING */ -{ yymsp[-1].minor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 510: /* signed_literal ::= duration_literal */ case 512: /* signed_literal ::= literal_func */ yytestcase(yyruleno==512); - case 605: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==605); - case 688: /* select_item ::= common_expression */ yytestcase(yyruleno==688); - case 698: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==698); - case 741: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==741); - case 743: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==743); - case 756: /* search_condition ::= common_expression */ yytestcase(yyruleno==756); -{ yylhsminor.yy232 = releaseRawExprNode(pCxt, yymsp[0].minor.yy232); } - yymsp[0].minor.yy232 = yylhsminor.yy232; + case 608: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==608); + case 691: /* select_item ::= common_expression */ yytestcase(yyruleno==691); + case 701: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==701); + case 744: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==744); + case 746: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==746); + case 759: /* search_condition ::= common_expression */ yytestcase(yyruleno==759); +{ yylhsminor.yy560 = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 511: /* signed_literal ::= NULL */ -{ yylhsminor.yy232 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 513: /* signed_literal ::= NK_QUESTION */ -{ yylhsminor.yy232 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 532: /* expression ::= pseudo_column */ -{ yylhsminor.yy232 = yymsp[0].minor.yy232; (void)setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy232, true); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = yymsp[0].minor.yy560; (void)setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy560, true); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 536: /* expression ::= NK_LP expression NK_RP */ - case 639: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==639); - case 755: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==755); -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy232)); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + case 642: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==642); + case 758: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==758); +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 537: /* expression ::= NK_PLUS expr_or_subquery */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy232)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; case 538: /* expression ::= NK_MINUS expr_or_subquery */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy232), NULL)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy560), NULL)); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; case 539: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 540: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 541: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 542: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 543: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 544: /* expression ::= column_reference NK_ARROW NK_STRING */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 545: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 546: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 549: /* column_reference ::= column_name */ -{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy29, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy29)); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy533, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy533)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 550: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy29, &yymsp[0].minor.yy29, createColumnNode(pCxt, &yymsp[-2].minor.yy29, &yymsp[0].minor.yy29)); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy533, createColumnNode(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy533)); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 551: /* column_reference ::= NK_ALIAS */ -{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 552: /* column_reference ::= table_name NK_DOT NK_ALIAS */ -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy29, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy29, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 553: /* pseudo_column ::= ROWTS */ case 554: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==554); @@ -7509,444 +7652,449 @@ yymsp[0].minor.yy232); } case 562: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==562); case 563: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==563); case 564: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==564); - case 580: /* literal_func ::= NOW */ yytestcase(yyruleno==580); - case 581: /* literal_func ::= TODAY */ yytestcase(yyruleno==581); -{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } - yymsp[0].minor.yy232 = yylhsminor.yy232; + case 581: /* literal_func ::= NOW */ yytestcase(yyruleno==581); + case 582: /* literal_func ::= TODAY */ yytestcase(yyruleno==582); +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; case 555: /* pseudo_column ::= table_name NK_DOT TBNAME */ -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy29, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy29)))); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy533)))); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; case 565: /* function_expression ::= function_name NK_LP expression_list NK_RP */ case 566: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==566); case 574: /* function_expression ::= substr_func NK_LP expression_list NK_RP */ yytestcase(yyruleno==574); -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy29, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy29, yymsp[-1].minor.yy514)); } - yymsp[-3].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy533, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy533, yymsp[-1].minor.yy334)); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; case 567: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ case 568: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ yytestcase(yyruleno==568); -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), yymsp[-1].minor.yy264)); } - yymsp[-5].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), yymsp[-1].minor.yy952)); } + yymsp[-5].minor.yy560 = yylhsminor.yy560; break; case 569: /* function_expression ::= POSITION NK_LP expr_or_subquery IN expr_or_subquery NK_RP */ -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createPositionFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), releaseRawExprNode(pCxt, yymsp[-1].minor.yy232))); } - yymsp[-5].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createPositionFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), releaseRawExprNode(pCxt, yymsp[-1].minor.yy560))); } + yymsp[-5].minor.yy560 = yylhsminor.yy560; break; case 570: /* function_expression ::= TRIM NK_LP expr_or_subquery NK_RP */ -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createTrimFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy232), TRIM_TYPE_BOTH)); } - yymsp[-3].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createTrimFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560), TRIM_TYPE_BOTH)); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; case 571: /* function_expression ::= TRIM NK_LP trim_specification_type FROM expr_or_subquery NK_RP */ -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createTrimFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy232), yymsp[-3].minor.yy950)); } - yymsp[-5].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createTrimFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560), yymsp[-3].minor.yy672)); } + yymsp[-5].minor.yy560 = yylhsminor.yy560; break; case 572: /* function_expression ::= TRIM NK_LP expr_or_subquery FROM expr_or_subquery NK_RP */ -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createTrimFunctionNodeExt(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), releaseRawExprNode(pCxt, yymsp[-1].minor.yy232), TRIM_TYPE_BOTH)); } - yymsp[-5].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createTrimFunctionNodeExt(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), releaseRawExprNode(pCxt, yymsp[-1].minor.yy560), TRIM_TYPE_BOTH)); } + yymsp[-5].minor.yy560 = yylhsminor.yy560; break; case 573: /* function_expression ::= TRIM NK_LP trim_specification_type expr_or_subquery FROM expr_or_subquery NK_RP */ -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-6].minor.yy0, &yymsp[0].minor.yy0, createTrimFunctionNodeExt(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), releaseRawExprNode(pCxt, yymsp[-1].minor.yy232), yymsp[-4].minor.yy950)); } - yymsp[-6].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-6].minor.yy0, &yymsp[0].minor.yy0, createTrimFunctionNodeExt(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), releaseRawExprNode(pCxt, yymsp[-1].minor.yy560), yymsp[-4].minor.yy672)); } + yymsp[-6].minor.yy560 = yylhsminor.yy560; break; case 575: /* function_expression ::= substr_func NK_LP expr_or_subquery FROM expr_or_subquery NK_RP */ -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy29, &yymsp[0].minor.yy0, createSubstrFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), releaseRawExprNode(pCxt, yymsp[-1].minor.yy232))); } - yymsp[-5].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy533, &yymsp[0].minor.yy0, createSubstrFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), releaseRawExprNode(pCxt, yymsp[-1].minor.yy560))); } + yymsp[-5].minor.yy560 = yylhsminor.yy560; break; case 576: /* function_expression ::= substr_func NK_LP expr_or_subquery FROM expr_or_subquery FOR expr_or_subquery NK_RP */ -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-7].minor.yy29, &yymsp[0].minor.yy0, createSubstrFunctionNodeExt(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy232), releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), releaseRawExprNode(pCxt, yymsp[-1].minor.yy232))); } - yymsp[-7].minor.yy232 = yylhsminor.yy232; +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-7].minor.yy533, &yymsp[0].minor.yy0, createSubstrFunctionNodeExt(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy560), releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), releaseRawExprNode(pCxt, yymsp[-1].minor.yy560))); } + yymsp[-7].minor.yy560 = yylhsminor.yy560; break; case 577: /* function_expression ::= REPLACE NK_LP expression_list NK_RP */ -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy514)); } - yymsp[-3].minor.yy232 = yylhsminor.yy232; + case 584: /* rand_func ::= RAND NK_LP expression_list NK_RP */ yytestcase(yyruleno==584); +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy334)); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; - case 579: /* literal_func ::= noarg_func NK_LP NK_RP */ -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy29, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy29, NULL)); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + case 580: /* literal_func ::= noarg_func NK_LP NK_RP */ +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy533, NULL)); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 584: /* trim_specification_type ::= BOTH */ -{ yymsp[0].minor.yy950 = TRIM_TYPE_BOTH; } + case 583: /* rand_func ::= RAND NK_LP NK_RP */ +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy0, NULL)); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 585: /* trim_specification_type ::= TRAILING */ -{ yymsp[0].minor.yy950 = TRIM_TYPE_TRAILING; } + case 587: /* trim_specification_type ::= BOTH */ +{ yymsp[0].minor.yy672 = TRIM_TYPE_BOTH; } break; - case 586: /* trim_specification_type ::= LEADING */ -{ yymsp[0].minor.yy950 = TRIM_TYPE_LEADING; } + case 588: /* trim_specification_type ::= TRAILING */ +{ yymsp[0].minor.yy672 = TRIM_TYPE_TRAILING; } break; - case 601: /* star_func_para_list ::= NK_STAR */ -{ yylhsminor.yy514 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy514 = yylhsminor.yy514; + case 589: /* trim_specification_type ::= LEADING */ +{ yymsp[0].minor.yy672 = TRIM_TYPE_LEADING; } break; - case 606: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 691: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==691); -{ yylhsminor.yy232 = createColumnNode(pCxt, &yymsp[-2].minor.yy29, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + case 604: /* star_func_para_list ::= NK_STAR */ +{ yylhsminor.yy334 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy334 = yylhsminor.yy334; break; - case 607: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy514, yymsp[-1].minor.yy232)); } - yymsp[-3].minor.yy232 = yylhsminor.yy232; + case 609: /* star_func_para ::= table_name NK_DOT NK_STAR */ + case 694: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==694); +{ yylhsminor.yy560 = createColumnNode(pCxt, &yymsp[-2].minor.yy533, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 608: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), yymsp[-2].minor.yy514, yymsp[-1].minor.yy232)); } - yymsp[-4].minor.yy232 = yylhsminor.yy232; + case 610: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy334, yymsp[-1].minor.yy560)); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; - case 611: /* when_then_expr ::= WHEN common_expression THEN common_expression */ -{ yymsp[-3].minor.yy232 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232)); } + case 611: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), yymsp[-2].minor.yy334, yymsp[-1].minor.yy560)); } + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; - case 613: /* case_when_else_opt ::= ELSE common_expression */ -{ yymsp[-1].minor.yy232 = releaseRawExprNode(pCxt, yymsp[0].minor.yy232); } + case 614: /* when_then_expr ::= WHEN common_expression THEN common_expression */ +{ yymsp[-3].minor.yy560 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560)); } break; - case 614: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ - case 619: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==619); + case 616: /* case_when_else_opt ::= ELSE common_expression */ +{ yymsp[-1].minor.yy560 = releaseRawExprNode(pCxt, yymsp[0].minor.yy560); } + break; + case 617: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ + case 622: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==622); { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy230, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy506, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 615: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + case 618: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy232); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy232), releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy560), releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-4].minor.yy232 = yylhsminor.yy232; + yymsp[-4].minor.yy560 = yylhsminor.yy560; break; - case 616: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + case 619: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy232); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy232), releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy560), releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-5].minor.yy232 = yylhsminor.yy232; + yymsp[-5].minor.yy560 = yylhsminor.yy560; break; - case 617: /* predicate ::= expr_or_subquery IS NULL */ + case 620: /* predicate ::= expr_or_subquery IS NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), NULL)); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 618: /* predicate ::= expr_or_subquery IS NOT NULL */ + case 621: /* predicate ::= expr_or_subquery IS NOT NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), NULL)); } - yymsp[-3].minor.yy232 = yylhsminor.yy232; + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; - case 620: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy230 = OP_TYPE_LOWER_THAN; } + case 623: /* compare_op ::= NK_LT */ +{ yymsp[0].minor.yy506 = OP_TYPE_LOWER_THAN; } break; - case 621: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy230 = OP_TYPE_GREATER_THAN; } + case 624: /* compare_op ::= NK_GT */ +{ yymsp[0].minor.yy506 = OP_TYPE_GREATER_THAN; } break; - case 622: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy230 = OP_TYPE_LOWER_EQUAL; } + case 625: /* compare_op ::= NK_LE */ +{ yymsp[0].minor.yy506 = OP_TYPE_LOWER_EQUAL; } break; - case 623: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy230 = OP_TYPE_GREATER_EQUAL; } + case 626: /* compare_op ::= NK_GE */ +{ yymsp[0].minor.yy506 = OP_TYPE_GREATER_EQUAL; } break; - case 624: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy230 = OP_TYPE_NOT_EQUAL; } + case 627: /* compare_op ::= NK_NE */ +{ yymsp[0].minor.yy506 = OP_TYPE_NOT_EQUAL; } break; - case 625: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy230 = OP_TYPE_EQUAL; } + case 628: /* compare_op ::= NK_EQ */ +{ yymsp[0].minor.yy506 = OP_TYPE_EQUAL; } break; - case 626: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy230 = OP_TYPE_LIKE; } + case 629: /* compare_op ::= LIKE */ +{ yymsp[0].minor.yy506 = OP_TYPE_LIKE; } break; - case 627: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy230 = OP_TYPE_NOT_LIKE; } + case 630: /* compare_op ::= NOT LIKE */ +{ yymsp[-1].minor.yy506 = OP_TYPE_NOT_LIKE; } break; - case 628: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy230 = OP_TYPE_MATCH; } + case 631: /* compare_op ::= MATCH */ +{ yymsp[0].minor.yy506 = OP_TYPE_MATCH; } break; - case 629: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy230 = OP_TYPE_NMATCH; } + case 632: /* compare_op ::= NMATCH */ +{ yymsp[0].minor.yy506 = OP_TYPE_NMATCH; } break; - case 630: /* compare_op ::= CONTAINS */ -{ yymsp[0].minor.yy230 = OP_TYPE_JSON_CONTAINS; } + case 633: /* compare_op ::= CONTAINS */ +{ yymsp[0].minor.yy506 = OP_TYPE_JSON_CONTAINS; } break; - case 631: /* in_op ::= IN */ -{ yymsp[0].minor.yy230 = OP_TYPE_IN; } + case 634: /* in_op ::= IN */ +{ yymsp[0].minor.yy506 = OP_TYPE_IN; } break; - case 632: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy230 = OP_TYPE_NOT_IN; } + case 635: /* in_op ::= NOT IN */ +{ yymsp[-1].minor.yy506 = OP_TYPE_NOT_IN; } break; - case 633: /* in_predicate_value ::= NK_LP literal_list NK_RP */ -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy514)); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + case 636: /* in_predicate_value ::= NK_LP literal_list NK_RP */ +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy334)); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 635: /* boolean_value_expression ::= NOT boolean_primary */ + case 638: /* boolean_value_expression ::= NOT boolean_primary */ { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy232), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy560), NULL)); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 636: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 639: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 637: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 640: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy232); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy232); - yylhsminor.yy232 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), releaseRawExprNode(pCxt, yymsp[0].minor.yy232))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy560); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy560); + yylhsminor.yy560 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 645: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy232 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, JOIN_STYPE_NONE, yymsp[-2].minor.yy232, yymsp[0].minor.yy232, NULL); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + case 648: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +{ yylhsminor.yy560 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, JOIN_STYPE_NONE, yymsp[-2].minor.yy560, yymsp[0].minor.yy560, NULL); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 648: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy232 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy29, &yymsp[0].minor.yy29); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; + case 651: /* table_primary ::= table_name alias_opt */ +{ yylhsminor.yy560 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy533, &yymsp[0].minor.yy533); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 649: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy232 = createRealTableNode(pCxt, &yymsp[-3].minor.yy29, &yymsp[-1].minor.yy29, &yymsp[0].minor.yy29); } - yymsp[-3].minor.yy232 = yylhsminor.yy232; + case 652: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +{ yylhsminor.yy560 = createRealTableNode(pCxt, &yymsp[-3].minor.yy533, &yymsp[-1].minor.yy533, &yymsp[0].minor.yy533); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; - case 650: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy232 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy232), &yymsp[0].minor.yy29); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; + case 653: /* table_primary ::= subquery alias_opt */ +{ yylhsminor.yy560 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560), &yymsp[0].minor.yy533); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 652: /* alias_opt ::= */ -{ yymsp[1].minor.yy29 = nil_token; } + case 655: /* alias_opt ::= */ +{ yymsp[1].minor.yy533 = nil_token; } break; - case 654: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy29 = yymsp[0].minor.yy29; } + case 657: /* alias_opt ::= AS table_alias */ +{ yymsp[-1].minor.yy533 = yymsp[0].minor.yy533; } break; - case 655: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 656: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==656); -{ yymsp[-2].minor.yy232 = yymsp[-1].minor.yy232; } + case 658: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 659: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==659); +{ yymsp[-2].minor.yy560 = yymsp[-1].minor.yy560; } break; - case 657: /* joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */ + case 660: /* joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */ { - yylhsminor.yy232 = createJoinTableNode(pCxt, yymsp[-6].minor.yy22, yymsp[-5].minor.yy764, yymsp[-7].minor.yy232, yymsp[-3].minor.yy232, yymsp[-2].minor.yy232); - yylhsminor.yy232 = addWindowOffsetClause(pCxt, yylhsminor.yy232, yymsp[-1].minor.yy232); - yylhsminor.yy232 = addJLimitClause(pCxt, yylhsminor.yy232, yymsp[0].minor.yy232); + yylhsminor.yy560 = createJoinTableNode(pCxt, yymsp[-6].minor.yy36, yymsp[-5].minor.yy648, yymsp[-7].minor.yy560, yymsp[-3].minor.yy560, yymsp[-2].minor.yy560); + yylhsminor.yy560 = addWindowOffsetClause(pCxt, yylhsminor.yy560, yymsp[-1].minor.yy560); + yylhsminor.yy560 = addJLimitClause(pCxt, yylhsminor.yy560, yymsp[0].minor.yy560); } - yymsp[-7].minor.yy232 = yylhsminor.yy232; + yymsp[-7].minor.yy560 = yylhsminor.yy560; break; - case 658: /* join_type ::= */ -{ yymsp[1].minor.yy22 = JOIN_TYPE_INNER; } + case 661: /* join_type ::= */ +{ yymsp[1].minor.yy36 = JOIN_TYPE_INNER; } break; - case 659: /* join_type ::= INNER */ -{ yymsp[0].minor.yy22 = JOIN_TYPE_INNER; } + case 662: /* join_type ::= INNER */ +{ yymsp[0].minor.yy36 = JOIN_TYPE_INNER; } break; - case 660: /* join_type ::= LEFT */ -{ yymsp[0].minor.yy22 = JOIN_TYPE_LEFT; } + case 663: /* join_type ::= LEFT */ +{ yymsp[0].minor.yy36 = JOIN_TYPE_LEFT; } break; - case 661: /* join_type ::= RIGHT */ -{ yymsp[0].minor.yy22 = JOIN_TYPE_RIGHT; } + case 664: /* join_type ::= RIGHT */ +{ yymsp[0].minor.yy36 = JOIN_TYPE_RIGHT; } break; - case 662: /* join_type ::= FULL */ -{ yymsp[0].minor.yy22 = JOIN_TYPE_FULL; } + case 665: /* join_type ::= FULL */ +{ yymsp[0].minor.yy36 = JOIN_TYPE_FULL; } break; - case 663: /* join_subtype ::= */ -{ yymsp[1].minor.yy764 = JOIN_STYPE_NONE; } + case 666: /* join_subtype ::= */ +{ yymsp[1].minor.yy648 = JOIN_STYPE_NONE; } break; - case 664: /* join_subtype ::= OUTER */ -{ yymsp[0].minor.yy764 = JOIN_STYPE_OUTER; } + case 667: /* join_subtype ::= OUTER */ +{ yymsp[0].minor.yy648 = JOIN_STYPE_OUTER; } break; - case 665: /* join_subtype ::= SEMI */ -{ yymsp[0].minor.yy764 = JOIN_STYPE_SEMI; } + case 668: /* join_subtype ::= SEMI */ +{ yymsp[0].minor.yy648 = JOIN_STYPE_SEMI; } break; - case 666: /* join_subtype ::= ANTI */ -{ yymsp[0].minor.yy764 = JOIN_STYPE_ANTI; } + case 669: /* join_subtype ::= ANTI */ +{ yymsp[0].minor.yy648 = JOIN_STYPE_ANTI; } break; - case 667: /* join_subtype ::= ASOF */ -{ yymsp[0].minor.yy764 = JOIN_STYPE_ASOF; } + case 670: /* join_subtype ::= ASOF */ +{ yymsp[0].minor.yy648 = JOIN_STYPE_ASOF; } break; - case 668: /* join_subtype ::= WINDOW */ -{ yymsp[0].minor.yy764 = JOIN_STYPE_WIN; } + case 671: /* join_subtype ::= WINDOW */ +{ yymsp[0].minor.yy648 = JOIN_STYPE_WIN; } break; - case 672: /* window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */ -{ yymsp[-5].minor.yy232 = createWindowOffsetNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), releaseRawExprNode(pCxt, yymsp[-1].minor.yy232)); } + case 675: /* window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */ +{ yymsp[-5].minor.yy560 = createWindowOffsetNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); } break; - case 673: /* window_offset_literal ::= NK_VARIABLE */ -{ yylhsminor.yy232 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createTimeOffsetValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy232 = yylhsminor.yy232; + case 676: /* window_offset_literal ::= NK_VARIABLE */ +{ yylhsminor.yy560 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createTimeOffsetValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 674: /* window_offset_literal ::= NK_MINUS NK_VARIABLE */ + case 677: /* window_offset_literal ::= NK_MINUS NK_VARIABLE */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy232 = createRawExprNode(pCxt, &t, createTimeOffsetValueNode(pCxt, &t)); + yylhsminor.yy560 = createRawExprNode(pCxt, &t, createTimeOffsetValueNode(pCxt, &t)); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 676: /* jlimit_clause_opt ::= JLIMIT NK_INTEGER */ - case 747: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ yytestcase(yyruleno==747); - case 751: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==751); -{ yymsp[-1].minor.yy232 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 679: /* jlimit_clause_opt ::= JLIMIT NK_INTEGER */ + case 750: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ yytestcase(yyruleno==750); + case 754: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==754); +{ yymsp[-1].minor.yy560 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 677: /* 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 */ + case 680: /* 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.yy232 = createSelectStmt(pCxt, yymsp[-11].minor.yy777, yymsp[-9].minor.yy514, yymsp[-8].minor.yy232, yymsp[-12].minor.yy514); - yymsp[-13].minor.yy232 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy232, yymsp[-10].minor.yy777); - yymsp[-13].minor.yy232 = addWhereClause(pCxt, yymsp[-13].minor.yy232, yymsp[-7].minor.yy232); - yymsp[-13].minor.yy232 = addPartitionByClause(pCxt, yymsp[-13].minor.yy232, yymsp[-6].minor.yy514); - yymsp[-13].minor.yy232 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy232, yymsp[-2].minor.yy232); - yymsp[-13].minor.yy232 = addGroupByClause(pCxt, yymsp[-13].minor.yy232, yymsp[-1].minor.yy514); - yymsp[-13].minor.yy232 = addHavingClause(pCxt, yymsp[-13].minor.yy232, yymsp[0].minor.yy232); - yymsp[-13].minor.yy232 = addRangeClause(pCxt, yymsp[-13].minor.yy232, yymsp[-5].minor.yy232); - yymsp[-13].minor.yy232 = addEveryClause(pCxt, yymsp[-13].minor.yy232, yymsp[-4].minor.yy232); - yymsp[-13].minor.yy232 = addFillClause(pCxt, yymsp[-13].minor.yy232, yymsp[-3].minor.yy232); + yymsp[-13].minor.yy560 = createSelectStmt(pCxt, yymsp[-11].minor.yy173, yymsp[-9].minor.yy334, yymsp[-8].minor.yy560, yymsp[-12].minor.yy334); + yymsp[-13].minor.yy560 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy560, yymsp[-10].minor.yy173); + yymsp[-13].minor.yy560 = addWhereClause(pCxt, yymsp[-13].minor.yy560, yymsp[-7].minor.yy560); + yymsp[-13].minor.yy560 = addPartitionByClause(pCxt, yymsp[-13].minor.yy560, yymsp[-6].minor.yy334); + yymsp[-13].minor.yy560 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy560, yymsp[-2].minor.yy560); + yymsp[-13].minor.yy560 = addGroupByClause(pCxt, yymsp[-13].minor.yy560, yymsp[-1].minor.yy334); + yymsp[-13].minor.yy560 = addHavingClause(pCxt, yymsp[-13].minor.yy560, yymsp[0].minor.yy560); + yymsp[-13].minor.yy560 = addRangeClause(pCxt, yymsp[-13].minor.yy560, yymsp[-5].minor.yy560); + yymsp[-13].minor.yy560 = addEveryClause(pCxt, yymsp[-13].minor.yy560, yymsp[-4].minor.yy560); + yymsp[-13].minor.yy560 = addFillClause(pCxt, yymsp[-13].minor.yy560, yymsp[-3].minor.yy560); } break; - case 678: /* hint_list ::= */ -{ yymsp[1].minor.yy514 = createHintNodeList(pCxt, NULL); } + case 681: /* hint_list ::= */ +{ yymsp[1].minor.yy334 = createHintNodeList(pCxt, NULL); } break; - case 679: /* hint_list ::= NK_HINT */ -{ yylhsminor.yy514 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy514 = yylhsminor.yy514; + case 682: /* hint_list ::= NK_HINT */ +{ yylhsminor.yy334 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy334 = yylhsminor.yy334; break; - case 684: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy777 = false; } + case 687: /* set_quantifier_opt ::= ALL */ +{ yymsp[0].minor.yy173 = false; } break; - case 687: /* select_item ::= NK_STAR */ -{ yylhsminor.yy232 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy232 = yylhsminor.yy232; + case 690: /* select_item ::= NK_STAR */ +{ yylhsminor.yy560 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy560 = yylhsminor.yy560; break; - case 689: /* select_item ::= common_expression column_alias */ - case 699: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==699); -{ yylhsminor.yy232 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy232), &yymsp[0].minor.yy29); } - yymsp[-1].minor.yy232 = yylhsminor.yy232; + case 692: /* select_item ::= common_expression column_alias */ + case 702: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==702); +{ yylhsminor.yy560 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560), &yymsp[0].minor.yy533); } + yymsp[-1].minor.yy560 = yylhsminor.yy560; break; - case 690: /* select_item ::= common_expression AS column_alias */ - case 700: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==700); -{ yylhsminor.yy232 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), &yymsp[0].minor.yy29); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + case 693: /* select_item ::= common_expression AS column_alias */ + case 703: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==703); +{ yylhsminor.yy560 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), &yymsp[0].minor.yy533); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 695: /* partition_by_clause_opt ::= PARTITION BY partition_list */ - case 725: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==725); - case 745: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==745); -{ yymsp[-2].minor.yy514 = yymsp[0].minor.yy514; } + case 698: /* partition_by_clause_opt ::= PARTITION BY partition_list */ + case 728: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==728); + case 748: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==748); +{ yymsp[-2].minor.yy334 = yymsp[0].minor.yy334; } break; - case 702: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ -{ yymsp[-5].minor.yy232 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), releaseRawExprNode(pCxt, yymsp[-1].minor.yy232)); } + case 705: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ +{ yymsp[-5].minor.yy560 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); } break; - case 703: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ -{ yymsp[-3].minor.yy232 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy232)); } + case 706: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ +{ yymsp[-3].minor.yy560 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); } break; - case 704: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy232 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), NULL, yymsp[-1].minor.yy232, yymsp[0].minor.yy232); } + case 707: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-5].minor.yy560 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), NULL, yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } break; - case 705: /* 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.yy232 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy232), releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), yymsp[-1].minor.yy232, yymsp[0].minor.yy232); } + case 708: /* 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.yy560 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy560), releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), yymsp[-1].minor.yy560, yymsp[0].minor.yy560); } break; - case 706: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ -{ yymsp[-6].minor.yy232 = createEventWindowNode(pCxt, yymsp[-3].minor.yy232, yymsp[0].minor.yy232); } + case 709: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ +{ yymsp[-6].minor.yy560 = createEventWindowNode(pCxt, yymsp[-3].minor.yy560, yymsp[0].minor.yy560); } break; - case 707: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy232 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); } + case 710: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy560 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); } break; - case 708: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy232 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); } + case 711: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ +{ yymsp[-5].minor.yy560 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); } break; - case 715: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy232 = createFillNode(pCxt, yymsp[-1].minor.yy614, NULL); } + case 718: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +{ yymsp[-3].minor.yy560 = createFillNode(pCxt, yymsp[-1].minor.yy18, NULL); } break; - case 716: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ -{ yymsp[-5].minor.yy232 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy514)); } + case 719: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ +{ yymsp[-5].minor.yy560 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy334)); } break; - case 717: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ -{ yymsp[-5].minor.yy232 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy514)); } + case 720: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ +{ yymsp[-5].minor.yy560 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy334)); } break; - case 718: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy614 = FILL_MODE_NONE; } + case 721: /* fill_mode ::= NONE */ +{ yymsp[0].minor.yy18 = FILL_MODE_NONE; } break; - case 719: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy614 = FILL_MODE_PREV; } + case 722: /* fill_mode ::= PREV */ +{ yymsp[0].minor.yy18 = FILL_MODE_PREV; } break; - case 720: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy614 = FILL_MODE_NULL; } + case 723: /* fill_mode ::= NULL */ +{ yymsp[0].minor.yy18 = FILL_MODE_NULL; } break; - case 721: /* fill_mode ::= NULL_F */ -{ yymsp[0].minor.yy614 = FILL_MODE_NULL_F; } + case 724: /* fill_mode ::= NULL_F */ +{ yymsp[0].minor.yy18 = FILL_MODE_NULL_F; } break; - case 722: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy614 = FILL_MODE_LINEAR; } + case 725: /* fill_mode ::= LINEAR */ +{ yymsp[0].minor.yy18 = FILL_MODE_LINEAR; } break; - case 723: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy614 = FILL_MODE_NEXT; } + case 726: /* fill_mode ::= NEXT */ +{ yymsp[0].minor.yy18 = FILL_MODE_NEXT; } break; - case 726: /* group_by_list ::= expr_or_subquery */ -{ yylhsminor.yy514 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy232))); } - yymsp[0].minor.yy514 = yylhsminor.yy514; + case 729: /* group_by_list ::= expr_or_subquery */ +{ yylhsminor.yy334 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } + yymsp[0].minor.yy334 = yylhsminor.yy334; break; - case 727: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ -{ yylhsminor.yy514 = addNodeToList(pCxt, yymsp[-2].minor.yy514, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy232))); } - yymsp[-2].minor.yy514 = yylhsminor.yy514; + case 730: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ +{ yylhsminor.yy334 = addNodeToList(pCxt, yymsp[-2].minor.yy334, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy560))); } + yymsp[-2].minor.yy334 = yylhsminor.yy334; break; - case 731: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ -{ yymsp[-5].minor.yy232 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy232), releaseRawExprNode(pCxt, yymsp[-1].minor.yy232)); } + case 734: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ +{ yymsp[-5].minor.yy560 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy560), releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); } break; - case 732: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ -{ yymsp[-3].minor.yy232 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy232)); } + case 735: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ +{ yymsp[-3].minor.yy560 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy560)); } break; - case 735: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 738: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ { - yylhsminor.yy232 = addOrderByClause(pCxt, yymsp[-3].minor.yy232, yymsp[-2].minor.yy514); - yylhsminor.yy232 = addSlimitClause(pCxt, yylhsminor.yy232, yymsp[-1].minor.yy232); - yylhsminor.yy232 = addLimitClause(pCxt, yylhsminor.yy232, yymsp[0].minor.yy232); + yylhsminor.yy560 = addOrderByClause(pCxt, yymsp[-3].minor.yy560, yymsp[-2].minor.yy334); + yylhsminor.yy560 = addSlimitClause(pCxt, yylhsminor.yy560, yymsp[-1].minor.yy560); + yylhsminor.yy560 = addLimitClause(pCxt, yylhsminor.yy560, yymsp[0].minor.yy560); } - yymsp[-3].minor.yy232 = yylhsminor.yy232; + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; - case 738: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ -{ yylhsminor.yy232 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy232, yymsp[0].minor.yy232); } - yymsp[-3].minor.yy232 = yylhsminor.yy232; + case 741: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ +{ yylhsminor.yy560 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy560, yymsp[0].minor.yy560); } + yymsp[-3].minor.yy560 = yylhsminor.yy560; break; - case 739: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ -{ yylhsminor.yy232 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy232, yymsp[0].minor.yy232); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + case 742: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ +{ yylhsminor.yy560 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy560, yymsp[0].minor.yy560); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 748: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 752: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==752); -{ yymsp[-3].minor.yy232 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 751: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 755: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==755); +{ yymsp[-3].minor.yy560 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 749: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 753: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==753); -{ yymsp[-3].minor.yy232 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 752: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 756: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==756); +{ yymsp[-3].minor.yy560 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 754: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy232 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy232); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + case 757: /* subquery ::= NK_LP query_expression NK_RP */ +{ yylhsminor.yy560 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy560); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 759: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy232 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy232), yymsp[-1].minor.yy188, yymsp[0].minor.yy607); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + case 762: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ +{ yylhsminor.yy560 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy560), yymsp[-1].minor.yy974, yymsp[0].minor.yy109); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; - case 760: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy188 = ORDER_ASC; } + case 763: /* ordering_specification_opt ::= */ +{ yymsp[1].minor.yy974 = ORDER_ASC; } break; - case 761: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy188 = ORDER_ASC; } + case 764: /* ordering_specification_opt ::= ASC */ +{ yymsp[0].minor.yy974 = ORDER_ASC; } break; - case 762: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy188 = ORDER_DESC; } + case 765: /* ordering_specification_opt ::= DESC */ +{ yymsp[0].minor.yy974 = ORDER_DESC; } break; - case 763: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy607 = NULL_ORDER_DEFAULT; } + case 766: /* null_ordering_opt ::= */ +{ yymsp[1].minor.yy109 = NULL_ORDER_DEFAULT; } break; - case 764: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy607 = NULL_ORDER_FIRST; } + case 767: /* null_ordering_opt ::= NULLS FIRST */ +{ yymsp[-1].minor.yy109 = NULL_ORDER_FIRST; } break; - case 765: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy607 = NULL_ORDER_LAST; } + case 768: /* null_ordering_opt ::= NULLS LAST */ +{ yymsp[-1].minor.yy109 = NULL_ORDER_LAST; } break; - case 768: /* column_options ::= column_options NK_ID NK_STRING */ -{ yylhsminor.yy232 = setColumnOptions(pCxt, yymsp[-2].minor.yy232, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy232 = yylhsminor.yy232; + case 771: /* column_options ::= column_options NK_ID NK_STRING */ +{ yylhsminor.yy560 = setColumnOptions(pCxt, yymsp[-2].minor.yy560, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy560 = yylhsminor.yy560; break; default: break; diff --git a/source/libs/planner/src/planOptimizer.c b/source/libs/planner/src/planOptimizer.c index 7da4f93dee..988440227b 100644 --- a/source/libs/planner/src/planOptimizer.c +++ b/source/libs/planner/src/planOptimizer.c @@ -294,6 +294,9 @@ static bool scanPathOptIsSpecifiedFuncType(const SFunctionNode* pFunc, bool (*ty return true; } +static bool isMinMaxFunction(int32_t funcType) { + return funcType == FUNCTION_TYPE_MIN || funcType == FUNCTION_TYPE_MAX; +} static int32_t scanPathOptGetRelatedFuncs(SScanLogicNode* pScan, SNodeList** pSdrFuncs, SNodeList** pDsoFuncs) { SNodeList* pAllFuncs = scanPathOptGetAllFuncs(pScan->node.pParent); SNodeList* pTmpSdrFuncs = NULL; @@ -303,7 +306,8 @@ static int32_t scanPathOptGetRelatedFuncs(SScanLogicNode* pScan, SNodeList** pSd FOREACH(pNode, pAllFuncs) { SFunctionNode* pFunc = (SFunctionNode*)pNode; int32_t code = TSDB_CODE_SUCCESS; - if (scanPathOptIsSpecifiedFuncType(pFunc, fmIsSpecialDataRequiredFunc)) { + if ((!isMinMaxFunction(pFunc->funcType) && scanPathOptIsSpecifiedFuncType(pFunc, fmIsSpecialDataRequiredFunc)) || + (isMinMaxFunction(pFunc->funcType) && pFunc->hasSMA)) { SNode* pNew = NULL; code = nodesCloneNode(pNode, &pNew); if (TSDB_CODE_SUCCESS == code) { diff --git a/source/libs/scalar/inc/sclInt.h b/source/libs/scalar/inc/sclInt.h index d6d77ffd7b..34fd5dc8b0 100644 --- a/source/libs/scalar/inc/sclInt.h +++ b/source/libs/scalar/inc/sclInt.h @@ -30,7 +30,7 @@ typedef struct SOperatorValueType { typedef struct SScalarCtx { int32_t code; - bool dual; + bool dual; /* whether select stmt has from stmt */ SArray* pBlockList; /* element is SSDataBlock* */ SHashObj* pRes; /* element is SScalarParam */ void* param; // additional parameter (meta actually) for acquire value such as tbname/tags values diff --git a/source/libs/scalar/src/scalar.c b/source/libs/scalar/src/scalar.c index f4f4780a01..b9a95a3216 100644 --- a/source/libs/scalar/src/scalar.c +++ b/source/libs/scalar/src/scalar.c @@ -1179,7 +1179,8 @@ EDealRes sclRewriteNonConstOperator(SNode **pNode, SScalarCtx *ctx) { EDealRes sclRewriteFunction(SNode **pNode, SScalarCtx *ctx) { SFunctionNode *node = (SFunctionNode *)*pNode; SNode *tnode = NULL; - if ((!fmIsScalarFunc(node->funcId) && (!ctx->dual)) || fmIsUserDefinedFunc(node->funcId)) { + if ((!fmIsScalarFunc(node->funcId) && (!ctx->dual)) || + fmIsUserDefinedFunc(node->funcId)) { return DEAL_RES_CONTINUE; } diff --git a/source/libs/scalar/src/sclfunc.c b/source/libs/scalar/src/sclfunc.c index 7fae646e8f..5fc7c06d57 100644 --- a/source/libs/scalar/src/sclfunc.c +++ b/source/libs/scalar/src/sclfunc.c @@ -2887,6 +2887,21 @@ int32_t floorFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOut return doScalarFunction(pInput, inputNum, pOutput, floorf, floor); } +int32_t randFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *pOutput) { + if (!IS_NULL_TYPE(GET_PARAM_TYPE(&pInput[0]))) { + int32_t seed; + GET_TYPED_DATA(seed, int32_t, GET_PARAM_TYPE(&pInput[0]), pInput[0].columnData->pData); + taosSeedRand(seed); + } + int32_t numOfRows = inputNum == 1 ? pInput[0].numOfRows : TMAX(pInput[0].numOfRows, pInput[1].numOfRows); + for (int32_t i = 0; i < numOfRows; ++i) { + double random_value = (double)(taosRand() % RAND_MAX) / RAND_MAX; + colDataSetDouble(pOutput->columnData, i, &random_value); + } + pOutput->numOfRows = numOfRows; + return TSDB_CODE_SUCCESS; +} + static double decimalFn(double val1, double val2, _double_fn fn) { if (val1 > DBL_MAX || val1 < -DBL_MAX) { return val1; diff --git a/source/libs/stream/src/streamMsg.c b/source/libs/stream/src/streamMsg.c index 8105614d76..1c512888e7 100644 --- a/source/libs/stream/src/streamMsg.c +++ b/source/libs/stream/src/streamMsg.c @@ -19,281 +19,347 @@ #include "streamInt.h" int32_t tEncodeStreamEpInfo(SEncoder* pEncoder, const SStreamUpstreamEpInfo* pInfo) { - if (tEncodeI32(pEncoder, pInfo->taskId) < 0) return -1; - if (tEncodeI32(pEncoder, pInfo->nodeId) < 0) return -1; - if (tEncodeI32(pEncoder, pInfo->childId) < 0) return -1; - if (tEncodeSEpSet(pEncoder, &pInfo->epSet) < 0) return -1; - if (tEncodeI64(pEncoder, pInfo->stage) < 0) return -1; + TAOS_CHECK_RETURN(tEncodeI32(pEncoder, pInfo->taskId)); + TAOS_CHECK_RETURN(tEncodeI32(pEncoder, pInfo->nodeId)); + TAOS_CHECK_RETURN(tEncodeI32(pEncoder, pInfo->childId)); + TAOS_CHECK_RETURN(tEncodeSEpSet(pEncoder, &pInfo->epSet)); + TAOS_CHECK_RETURN(tEncodeI64(pEncoder, pInfo->stage)); return 0; } int32_t tDecodeStreamEpInfo(SDecoder* pDecoder, SStreamUpstreamEpInfo* pInfo) { - if (tDecodeI32(pDecoder, &pInfo->taskId) < 0) return -1; - if (tDecodeI32(pDecoder, &pInfo->nodeId) < 0) return -1; - if (tDecodeI32(pDecoder, &pInfo->childId) < 0) return -1; - if (tDecodeSEpSet(pDecoder, &pInfo->epSet) < 0) return -1; - if (tDecodeI64(pDecoder, &pInfo->stage) < 0) return -1; + TAOS_CHECK_RETURN(tDecodeI32(pDecoder, &pInfo->taskId)); + TAOS_CHECK_RETURN(tDecodeI32(pDecoder, &pInfo->nodeId)); + TAOS_CHECK_RETURN(tDecodeI32(pDecoder, &pInfo->childId)); + TAOS_CHECK_RETURN(tDecodeSEpSet(pDecoder, &pInfo->epSet)); + TAOS_CHECK_RETURN(tDecodeI64(pDecoder, &pInfo->stage)); return 0; } int32_t tEncodeStreamCheckpointSourceReq(SEncoder* pEncoder, const SStreamCheckpointSourceReq* pReq) { - if (tStartEncode(pEncoder) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->streamId) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->checkpointId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->taskId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->nodeId) < 0) return -1; - if (tEncodeSEpSet(pEncoder, &pReq->mgmtEps) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->mnodeId) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->expireTime) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->transId) < 0) return -1; - if (tEncodeI8(pEncoder, pReq->mndTrigger) < 0) return -1; + TAOS_CHECK_RETURN(tStartEncode(pEncoder)); + TAOS_CHECK_RETURN(tEncodeI64(pEncoder, pReq->streamId)); + TAOS_CHECK_RETURN(tEncodeI64(pEncoder, pReq->checkpointId)); + TAOS_CHECK_RETURN(tEncodeI32(pEncoder, pReq->taskId)); + TAOS_CHECK_RETURN(tEncodeI32(pEncoder, pReq->nodeId)); + TAOS_CHECK_RETURN(tEncodeSEpSet(pEncoder, &pReq->mgmtEps)); + TAOS_CHECK_RETURN(tEncodeI32(pEncoder, pReq->mnodeId)); + TAOS_CHECK_RETURN(tEncodeI64(pEncoder, pReq->expireTime)); + TAOS_CHECK_RETURN(tEncodeI32(pEncoder, pReq->transId)); + TAOS_CHECK_RETURN(tEncodeI8(pEncoder, pReq->mndTrigger)); tEndEncode(pEncoder); return pEncoder->pos; } int32_t tDecodeStreamCheckpointSourceReq(SDecoder* pDecoder, SStreamCheckpointSourceReq* pReq) { - if (tStartDecode(pDecoder) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->streamId) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->checkpointId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->taskId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->nodeId) < 0) return -1; - if (tDecodeSEpSet(pDecoder, &pReq->mgmtEps) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->mnodeId) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->expireTime) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->transId) < 0) return -1; - if (tDecodeI8(pDecoder, &pReq->mndTrigger) < 0) return -1; + TAOS_CHECK_RETURN(tStartDecode(pDecoder)); + TAOS_CHECK_RETURN(tDecodeI64(pDecoder, &pReq->streamId)); + TAOS_CHECK_RETURN(tDecodeI64(pDecoder, &pReq->checkpointId)); + TAOS_CHECK_RETURN(tDecodeI32(pDecoder, &pReq->taskId)); + TAOS_CHECK_RETURN(tDecodeI32(pDecoder, &pReq->nodeId)); + TAOS_CHECK_RETURN(tDecodeSEpSet(pDecoder, &pReq->mgmtEps)); + TAOS_CHECK_RETURN(tDecodeI32(pDecoder, &pReq->mnodeId)); + TAOS_CHECK_RETURN(tDecodeI64(pDecoder, &pReq->expireTime)); + TAOS_CHECK_RETURN(tDecodeI32(pDecoder, &pReq->transId)); + TAOS_CHECK_RETURN(tDecodeI8(pDecoder, &pReq->mndTrigger)); tEndDecode(pDecoder); return 0; } int32_t tEncodeStreamCheckpointSourceRsp(SEncoder* pEncoder, const SStreamCheckpointSourceRsp* pRsp) { - if (tStartEncode(pEncoder) < 0) return -1; - if (tEncodeI64(pEncoder, pRsp->streamId) < 0) return -1; - if (tEncodeI64(pEncoder, pRsp->checkpointId) < 0) return -1; - if (tEncodeI32(pEncoder, pRsp->taskId) < 0) return -1; - if (tEncodeI32(pEncoder, pRsp->nodeId) < 0) return -1; - if (tEncodeI64(pEncoder, pRsp->expireTime) < 0) return -1; - if (tEncodeI8(pEncoder, pRsp->success) < 0) return -1; + TAOS_CHECK_RETURN(tStartEncode(pEncoder)); + TAOS_CHECK_RETURN(tEncodeI64(pEncoder, pRsp->streamId)); + TAOS_CHECK_RETURN(tEncodeI64(pEncoder, pRsp->checkpointId)); + TAOS_CHECK_RETURN(tEncodeI32(pEncoder, pRsp->taskId)); + TAOS_CHECK_RETURN(tEncodeI32(pEncoder, pRsp->nodeId)); + TAOS_CHECK_RETURN(tEncodeI64(pEncoder, pRsp->expireTime)); + TAOS_CHECK_RETURN(tEncodeI8(pEncoder, pRsp->success)); tEndEncode(pEncoder); return pEncoder->pos; } int32_t tEncodeStreamTaskUpdateMsg(SEncoder* pEncoder, const SStreamTaskNodeUpdateMsg* pMsg) { - if (tStartEncode(pEncoder) < 0) return -1; - if (tEncodeI64(pEncoder, pMsg->streamId) < 0) return -1; - if (tEncodeI32(pEncoder, pMsg->taskId) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartEncode(pEncoder)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pMsg->streamId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pMsg->taskId)); int32_t size = taosArrayGetSize(pMsg->pNodeList); - if (tEncodeI32(pEncoder, size) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, size)); for (int32_t i = 0; i < size; ++i) { SNodeUpdateInfo* pInfo = taosArrayGet(pMsg->pNodeList, i); if (pInfo == NULL) { - return terrno; + TAOS_CHECK_EXIT(terrno); } - if (tEncodeI32(pEncoder, pInfo->nodeId) < 0) return -1; - if (tEncodeSEpSet(pEncoder, &pInfo->prevEp) < 0) return -1; - if (tEncodeSEpSet(pEncoder, &pInfo->newEp) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pInfo->nodeId)); + TAOS_CHECK_EXIT(tEncodeSEpSet(pEncoder, &pInfo->prevEp)); + TAOS_CHECK_EXIT(tEncodeSEpSet(pEncoder, &pInfo->newEp)); } // todo this new attribute will be result in being incompatible with previous version - if (tEncodeI32(pEncoder, pMsg->transId) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pMsg->transId)); tEndEncode(pEncoder); - return pEncoder->pos; +_exit: + if (code) { + return code; + } else { + return pEncoder->pos; + } } int32_t tDecodeStreamTaskUpdateMsg(SDecoder* pDecoder, SStreamTaskNodeUpdateMsg* pMsg) { int32_t code = 0; + int32_t lino; - if (tStartDecode(pDecoder) < 0) return -1; - if (tDecodeI64(pDecoder, &pMsg->streamId) < 0) return -1; - if (tDecodeI32(pDecoder, &pMsg->taskId) < 0) return -1; + TAOS_CHECK_EXIT(tStartDecode(pDecoder)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pMsg->streamId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pMsg->taskId)); int32_t size = 0; - if (tDecodeI32(pDecoder, &size) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &size)); pMsg->pNodeList = taosArrayInit(size, sizeof(SNodeUpdateInfo)); + if (pMsg->pNodeList == NULL) { + TAOS_CHECK_EXIT(terrno); + } for (int32_t i = 0; i < size; ++i) { SNodeUpdateInfo info = {0}; - if (tDecodeI32(pDecoder, &info.nodeId) < 0) return -1; - if (tDecodeSEpSet(pDecoder, &info.prevEp) < 0) return -1; - if (tDecodeSEpSet(pDecoder, &info.newEp) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &info.nodeId)); + TAOS_CHECK_EXIT(tDecodeSEpSet(pDecoder, &info.prevEp)); + TAOS_CHECK_EXIT(tDecodeSEpSet(pDecoder, &info.newEp)); - void* p = taosArrayPush(pMsg->pNodeList, &info); - if (p == NULL) { - code = TSDB_CODE_OUT_OF_MEMORY; + if (taosArrayPush(pMsg->pNodeList, &info) == NULL) { + TAOS_CHECK_EXIT(terrno); } } - if (tDecodeI32(pDecoder, &pMsg->transId) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pMsg->transId)); tEndDecode(pDecoder); +_exit: return code; } int32_t tEncodeStreamTaskCheckReq(SEncoder* pEncoder, const SStreamTaskCheckReq* pReq) { - if (tStartEncode(pEncoder) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->reqId) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->streamId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->upstreamNodeId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->upstreamTaskId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->downstreamNodeId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->downstreamTaskId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->childId) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->stage) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartEncode(pEncoder)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->reqId)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->streamId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->upstreamNodeId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->upstreamTaskId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->downstreamNodeId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->downstreamTaskId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->childId)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->stage)); tEndEncode(pEncoder); - return pEncoder->pos; + +_exit: + if (code) { + return code; + } else { + return pEncoder->pos; + } } int32_t tDecodeStreamTaskCheckReq(SDecoder* pDecoder, SStreamTaskCheckReq* pReq) { - if (tStartDecode(pDecoder) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->reqId) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->streamId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->upstreamNodeId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->upstreamTaskId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->downstreamNodeId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->downstreamTaskId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->childId) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->stage) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartDecode(pDecoder)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pReq->reqId)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pReq->streamId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->upstreamNodeId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->upstreamTaskId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->downstreamNodeId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->downstreamTaskId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->childId)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pReq->stage)); tEndDecode(pDecoder); - return 0; + +_exit: + return code; } int32_t tEncodeStreamTaskCheckRsp(SEncoder* pEncoder, const SStreamTaskCheckRsp* pRsp) { - if (tStartEncode(pEncoder) < 0) return -1; - if (tEncodeI64(pEncoder, pRsp->reqId) < 0) return -1; - if (tEncodeI64(pEncoder, pRsp->streamId) < 0) return -1; - if (tEncodeI32(pEncoder, pRsp->upstreamNodeId) < 0) return -1; - if (tEncodeI32(pEncoder, pRsp->upstreamTaskId) < 0) return -1; - if (tEncodeI32(pEncoder, pRsp->downstreamNodeId) < 0) return -1; - if (tEncodeI32(pEncoder, pRsp->downstreamTaskId) < 0) return -1; - if (tEncodeI32(pEncoder, pRsp->childId) < 0) return -1; - if (tEncodeI64(pEncoder, pRsp->oldStage) < 0) return -1; - if (tEncodeI8(pEncoder, pRsp->status) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartEncode(pEncoder)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pRsp->reqId)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pRsp->streamId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pRsp->upstreamNodeId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pRsp->upstreamTaskId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pRsp->downstreamNodeId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pRsp->downstreamTaskId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pRsp->childId)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pRsp->oldStage)); + TAOS_CHECK_EXIT(tEncodeI8(pEncoder, pRsp->status)); tEndEncode(pEncoder); - return pEncoder->pos; + +_exit: + if (code) { + return code; + } else { + return pEncoder->pos; + } } int32_t tDecodeStreamTaskCheckRsp(SDecoder* pDecoder, SStreamTaskCheckRsp* pRsp) { - if (tStartDecode(pDecoder) < 0) return -1; - if (tDecodeI64(pDecoder, &pRsp->reqId) < 0) return -1; - if (tDecodeI64(pDecoder, &pRsp->streamId) < 0) return -1; - if (tDecodeI32(pDecoder, &pRsp->upstreamNodeId) < 0) return -1; - if (tDecodeI32(pDecoder, &pRsp->upstreamTaskId) < 0) return -1; - if (tDecodeI32(pDecoder, &pRsp->downstreamNodeId) < 0) return -1; - if (tDecodeI32(pDecoder, &pRsp->downstreamTaskId) < 0) return -1; - if (tDecodeI32(pDecoder, &pRsp->childId) < 0) return -1; - if (tDecodeI64(pDecoder, &pRsp->oldStage) < 0) return -1; - if (tDecodeI8(pDecoder, &pRsp->status) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartDecode(pDecoder)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pRsp->reqId)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pRsp->streamId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pRsp->upstreamNodeId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pRsp->upstreamTaskId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pRsp->downstreamNodeId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pRsp->downstreamTaskId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pRsp->childId)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pRsp->oldStage)); + TAOS_CHECK_EXIT(tDecodeI8(pDecoder, &pRsp->status)); tEndDecode(pDecoder); - return 0; + +_exit: + return code; } int32_t tEncodeStreamCheckpointReadyMsg(SEncoder* pEncoder, const SStreamCheckpointReadyMsg* pReq) { - if (tStartEncode(pEncoder) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->streamId) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->checkpointId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->downstreamTaskId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->downstreamNodeId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->upstreamTaskId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->upstreamNodeId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->childId) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartEncode(pEncoder)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->streamId)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->checkpointId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->downstreamTaskId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->downstreamNodeId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->upstreamTaskId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->upstreamNodeId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->childId)); tEndEncode(pEncoder); - return pEncoder->pos; + +_exit: + if (code) { + return code; + } else { + return pEncoder->pos; + } } int32_t tDecodeStreamCheckpointReadyMsg(SDecoder* pDecoder, SStreamCheckpointReadyMsg* pRsp) { - if (tStartDecode(pDecoder) < 0) return -1; - if (tDecodeI64(pDecoder, &pRsp->streamId) < 0) return -1; - if (tDecodeI64(pDecoder, &pRsp->checkpointId) < 0) return -1; - if (tDecodeI32(pDecoder, &pRsp->downstreamTaskId) < 0) return -1; - if (tDecodeI32(pDecoder, &pRsp->downstreamNodeId) < 0) return -1; - if (tDecodeI32(pDecoder, &pRsp->upstreamTaskId) < 0) return -1; - if (tDecodeI32(pDecoder, &pRsp->upstreamNodeId) < 0) return -1; - if (tDecodeI32(pDecoder, &pRsp->childId) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartDecode(pDecoder)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pRsp->streamId)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pRsp->checkpointId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pRsp->downstreamTaskId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pRsp->downstreamNodeId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pRsp->upstreamTaskId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pRsp->upstreamNodeId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pRsp->childId)); tEndDecode(pDecoder); - return 0; + +_exit: + return code; } int32_t tEncodeStreamDispatchReq(SEncoder* pEncoder, const SStreamDispatchReq* pReq) { - if (tStartEncode(pEncoder) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->stage) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->msgId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->srcVgId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->type) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->streamId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->taskId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->type) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->upstreamTaskId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->upstreamChildId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->upstreamNodeId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->upstreamRelTaskId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->blockNum) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->totalLen) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartEncode(pEncoder)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->stage)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->msgId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->srcVgId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->type)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->streamId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->taskId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->type)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->upstreamTaskId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->upstreamChildId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->upstreamNodeId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->upstreamRelTaskId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->blockNum)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->totalLen)); if (taosArrayGetSize(pReq->data) != pReq->blockNum || taosArrayGetSize(pReq->dataLen) != pReq->blockNum) { stError("invalid dispatch req msg"); - return TSDB_CODE_INVALID_MSG; + TAOS_CHECK_EXIT(TSDB_CODE_INVALID_MSG); } for (int32_t i = 0; i < pReq->blockNum; i++) { int32_t* pLen = taosArrayGet(pReq->dataLen, i); void* data = taosArrayGetP(pReq->data, i); if (data == NULL || pLen == NULL) { - return terrno; + TAOS_CHECK_EXIT(terrno); } - if (tEncodeI32(pEncoder, *pLen) < 0) return -1; - if (tEncodeBinary(pEncoder, data, *pLen) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, *pLen)); + TAOS_CHECK_EXIT(tEncodeBinary(pEncoder, data, *pLen)); } tEndEncode(pEncoder); - return pEncoder->pos; +_exit: + if (code) { + return code; + } else { + return pEncoder->pos; + } } int32_t tDecodeStreamDispatchReq(SDecoder* pDecoder, SStreamDispatchReq* pReq) { - if (tStartDecode(pDecoder) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->stage) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->msgId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->srcVgId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->type) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->streamId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->taskId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->type) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->upstreamTaskId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->upstreamChildId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->upstreamNodeId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->upstreamRelTaskId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->blockNum) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->totalLen) < 0) return -1; + int32_t code = 0; + int32_t lino; - pReq->data = taosArrayInit(pReq->blockNum, sizeof(void*)); - pReq->dataLen = taosArrayInit(pReq->blockNum, sizeof(int32_t)); + TAOS_CHECK_EXIT(tStartDecode(pDecoder)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pReq->stage)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->msgId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->srcVgId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->type)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pReq->streamId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->taskId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->type)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->upstreamTaskId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->upstreamChildId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->upstreamNodeId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->upstreamRelTaskId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->blockNum)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pReq->totalLen)); + + if ((pReq->data = taosArrayInit(pReq->blockNum, sizeof(void*))) == NULL) { + TAOS_CHECK_EXIT(terrno); + } + if ((pReq->dataLen = taosArrayInit(pReq->blockNum, sizeof(int32_t))) == NULL) { + TAOS_CHECK_EXIT(terrno); + } for (int32_t i = 0; i < pReq->blockNum; i++) { int32_t len1; uint64_t len2; void* data; - if (tDecodeI32(pDecoder, &len1) < 0) return -1; - if (tDecodeBinaryAlloc(pDecoder, &data, &len2) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &len1)); + TAOS_CHECK_EXIT(tDecodeBinaryAlloc(pDecoder, &data, &len2)); if (len1 != len2) { - return TSDB_CODE_INVALID_MSG; + TAOS_CHECK_EXIT(TSDB_CODE_INVALID_MSG); } - void* p = taosArrayPush(pReq->dataLen, &len1); - if (p == NULL) { - tEndDecode(pDecoder); - return TSDB_CODE_OUT_OF_MEMORY; + if (taosArrayPush(pReq->dataLen, &len1) == NULL) { + TAOS_CHECK_EXIT(terrno); } - p = taosArrayPush(pReq->data, &data); - if (p == NULL) { - tEndDecode(pDecoder); - return TSDB_CODE_OUT_OF_MEMORY; + if (taosArrayPush(pReq->data, &data) == NULL) { + TAOS_CHECK_EXIT(terrno); } } tEndDecode(pDecoder); - return 0; +_exit: + return code; } void tCleanupStreamDispatchReq(SStreamDispatchReq* pReq) { @@ -302,188 +368,220 @@ void tCleanupStreamDispatchReq(SStreamDispatchReq* pReq) { } int32_t tEncodeStreamRetrieveReq(SEncoder* pEncoder, const SStreamRetrieveReq* pReq) { - if (tStartEncode(pEncoder) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->streamId) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->reqId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->dstNodeId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->dstTaskId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->srcNodeId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->srcTaskId) < 0) return -1; - if (tEncodeBinary(pEncoder, (const uint8_t*)pReq->pRetrieve, pReq->retrieveLen) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartEncode(pEncoder)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->streamId)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->reqId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->dstNodeId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->dstTaskId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->srcNodeId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->srcTaskId)); + TAOS_CHECK_EXIT(tEncodeBinary(pEncoder, (const uint8_t*)pReq->pRetrieve, pReq->retrieveLen)); tEndEncode(pEncoder); - return pEncoder->pos; + +_exit: + if (code) { + return code; + } else { + return pEncoder->pos; + } } int32_t tDecodeStreamRetrieveReq(SDecoder* pDecoder, SStreamRetrieveReq* pReq) { - if (tStartDecode(pDecoder) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->streamId) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->reqId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->dstNodeId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->dstTaskId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->srcNodeId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->srcTaskId) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartDecode(pDecoder)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pReq->streamId)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pReq->reqId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->dstNodeId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->dstTaskId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->srcNodeId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->srcTaskId)); uint64_t len = 0; - if (tDecodeBinaryAlloc(pDecoder, (void**)&pReq->pRetrieve, &len) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeBinaryAlloc(pDecoder, (void**)&pReq->pRetrieve, &len)); pReq->retrieveLen = (int32_t)len; tEndDecode(pDecoder); - return 0; + +_exit: + return code; } void tCleanupStreamRetrieveReq(SStreamRetrieveReq* pReq) { taosMemoryFree(pReq->pRetrieve); } int32_t tEncodeStreamTaskCheckpointReq(SEncoder* pEncoder, const SStreamTaskCheckpointReq* pReq) { - if (tStartEncode(pEncoder) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->streamId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->taskId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->nodeId) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartEncode(pEncoder)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->streamId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->taskId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->nodeId)); tEndEncode(pEncoder); - return 0; + +_exit: + return code; } int32_t tDecodeStreamTaskCheckpointReq(SDecoder* pDecoder, SStreamTaskCheckpointReq* pReq) { - if (tStartDecode(pDecoder) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->streamId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->taskId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->nodeId) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartDecode(pDecoder)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pReq->streamId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->taskId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->nodeId)); tEndDecode(pDecoder); - return 0; + +_exit: + return code; } int32_t tEncodeStreamHbMsg(SEncoder* pEncoder, const SStreamHbMsg* pReq) { - if (tStartEncode(pEncoder) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->vgId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->numOfTasks) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartEncode(pEncoder)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->vgId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->numOfTasks)); for (int32_t i = 0; i < pReq->numOfTasks; ++i) { STaskStatusEntry* ps = taosArrayGet(pReq->pTaskStatus, i); if (ps == NULL) { - return terrno; + TAOS_CHECK_EXIT(terrno); } - if (tEncodeI64(pEncoder, ps->id.streamId) < 0) return -1; - if (tEncodeI32(pEncoder, ps->id.taskId) < 0) return -1; - if (tEncodeI32(pEncoder, ps->status) < 0) return -1; - if (tEncodeI64(pEncoder, ps->stage) < 0) return -1; - if (tEncodeI32(pEncoder, ps->nodeId) < 0) return -1; - if (tEncodeDouble(pEncoder, ps->inputQUsed) < 0) return -1; - if (tEncodeDouble(pEncoder, ps->inputRate) < 0) return -1; - if (tEncodeDouble(pEncoder, ps->procsTotal) < 0) return -1; - if (tEncodeDouble(pEncoder, ps->procsThroughput) < 0) return -1; - if (tEncodeDouble(pEncoder, ps->outputTotal) < 0) return -1; - if (tEncodeDouble(pEncoder, ps->outputThroughput) < 0) return -1; - if (tEncodeDouble(pEncoder, ps->sinkQuota) < 0) return -1; - if (tEncodeDouble(pEncoder, ps->sinkDataSize) < 0) return -1; - if (tEncodeI64(pEncoder, ps->processedVer) < 0) return -1; - if (tEncodeI64(pEncoder, ps->verRange.minVer) < 0) return -1; - if (tEncodeI64(pEncoder, ps->verRange.maxVer) < 0) return -1; - if (tEncodeI64(pEncoder, ps->checkpointInfo.activeId) < 0) return -1; - if (tEncodeI8(pEncoder, ps->checkpointInfo.failed) < 0) return -1; - if (tEncodeI32(pEncoder, ps->checkpointInfo.activeTransId) < 0) return -1; - if (tEncodeI64(pEncoder, ps->checkpointInfo.latestId) < 0) return -1; - if (tEncodeI64(pEncoder, ps->checkpointInfo.latestVer) < 0) return -1; - if (tEncodeI64(pEncoder, ps->checkpointInfo.latestTime) < 0) return -1; - if (tEncodeI64(pEncoder, ps->checkpointInfo.latestSize) < 0) return -1; - if (tEncodeI8(pEncoder, ps->checkpointInfo.remoteBackup) < 0) return -1; - if (tEncodeI8(pEncoder, ps->checkpointInfo.consensusChkptId) < 0) return -1; - if (tEncodeI64(pEncoder, ps->checkpointInfo.consensusTs) < 0) return -1; - if (tEncodeI64(pEncoder, ps->startTime) < 0) return -1; - if (tEncodeI64(pEncoder, ps->startCheckpointId) < 0) return -1; - if (tEncodeI64(pEncoder, ps->startCheckpointVer) < 0) return -1; - if (tEncodeI64(pEncoder, ps->hTaskId) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, ps->id.streamId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, ps->id.taskId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, ps->status)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, ps->stage)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, ps->nodeId)); + TAOS_CHECK_EXIT(tEncodeDouble(pEncoder, ps->inputQUsed)); + TAOS_CHECK_EXIT(tEncodeDouble(pEncoder, ps->inputRate)); + TAOS_CHECK_EXIT(tEncodeDouble(pEncoder, ps->procsTotal)); + TAOS_CHECK_EXIT(tEncodeDouble(pEncoder, ps->procsThroughput)); + TAOS_CHECK_EXIT(tEncodeDouble(pEncoder, ps->outputTotal)); + TAOS_CHECK_EXIT(tEncodeDouble(pEncoder, ps->outputThroughput)); + TAOS_CHECK_EXIT(tEncodeDouble(pEncoder, ps->sinkQuota)); + TAOS_CHECK_EXIT(tEncodeDouble(pEncoder, ps->sinkDataSize)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, ps->processedVer)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, ps->verRange.minVer)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, ps->verRange.maxVer)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, ps->checkpointInfo.activeId)); + TAOS_CHECK_EXIT(tEncodeI8(pEncoder, ps->checkpointInfo.failed)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, ps->checkpointInfo.activeTransId)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, ps->checkpointInfo.latestId)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, ps->checkpointInfo.latestVer)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, ps->checkpointInfo.latestTime)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, ps->checkpointInfo.latestSize)); + TAOS_CHECK_EXIT(tEncodeI8(pEncoder, ps->checkpointInfo.remoteBackup)); + TAOS_CHECK_EXIT(tEncodeI8(pEncoder, ps->checkpointInfo.consensusChkptId)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, ps->checkpointInfo.consensusTs)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, ps->startTime)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, ps->startCheckpointId)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, ps->startCheckpointVer)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, ps->hTaskId)); } int32_t numOfVgs = taosArrayGetSize(pReq->pUpdateNodes); - if (tEncodeI32(pEncoder, numOfVgs) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, numOfVgs)); for (int j = 0; j < numOfVgs; ++j) { int32_t* pVgId = taosArrayGet(pReq->pUpdateNodes, j); if (pVgId == NULL) { - return terrno; + TAOS_CHECK_EXIT(terrno); } - if (tEncodeI32(pEncoder, *pVgId) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, *pVgId)); } - if (tEncodeI32(pEncoder, pReq->msgId) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->ts) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->msgId)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->ts)); tEndEncode(pEncoder); - return pEncoder->pos; + +_exit: + if (code) { + return code; + } else { + return pEncoder->pos; + } } int32_t tDecodeStreamHbMsg(SDecoder* pDecoder, SStreamHbMsg* pReq) { int32_t code = 0; + int32_t lino; - if (tStartDecode(pDecoder) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->vgId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->numOfTasks) < 0) return -1; + TAOS_CHECK_EXIT(tStartDecode(pDecoder)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->vgId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->numOfTasks)); - pReq->pTaskStatus = taosArrayInit(pReq->numOfTasks, sizeof(STaskStatusEntry)); + if ((pReq->pTaskStatus = taosArrayInit(pReq->numOfTasks, sizeof(STaskStatusEntry))) == NULL) { + TAOS_CHECK_EXIT(terrno); + } for (int32_t i = 0; i < pReq->numOfTasks; ++i) { int32_t taskId = 0; STaskStatusEntry entry = {0}; - if (tDecodeI64(pDecoder, &entry.id.streamId) < 0) return -1; - if (tDecodeI32(pDecoder, &taskId) < 0) return -1; - if (tDecodeI32(pDecoder, &entry.status) < 0) return -1; - if (tDecodeI64(pDecoder, &entry.stage) < 0) return -1; - if (tDecodeI32(pDecoder, &entry.nodeId) < 0) return -1; - if (tDecodeDouble(pDecoder, &entry.inputQUsed) < 0) return -1; - if (tDecodeDouble(pDecoder, &entry.inputRate) < 0) return -1; - if (tDecodeDouble(pDecoder, &entry.procsTotal) < 0) return -1; - if (tDecodeDouble(pDecoder, &entry.procsThroughput) < 0) return -1; - if (tDecodeDouble(pDecoder, &entry.outputTotal) < 0) return -1; - if (tDecodeDouble(pDecoder, &entry.outputThroughput) < 0) return -1; - if (tDecodeDouble(pDecoder, &entry.sinkQuota) < 0) return -1; - if (tDecodeDouble(pDecoder, &entry.sinkDataSize) < 0) return -1; - if (tDecodeI64(pDecoder, &entry.processedVer) < 0) return -1; - if (tDecodeI64(pDecoder, &entry.verRange.minVer) < 0) return -1; - if (tDecodeI64(pDecoder, &entry.verRange.maxVer) < 0) return -1; - if (tDecodeI64(pDecoder, &entry.checkpointInfo.activeId) < 0) return -1; - if (tDecodeI8(pDecoder, &entry.checkpointInfo.failed) < 0) return -1; - if (tDecodeI32(pDecoder, &entry.checkpointInfo.activeTransId) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &entry.id.streamId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &taskId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &entry.status)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &entry.stage)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &entry.nodeId)); + TAOS_CHECK_EXIT(tDecodeDouble(pDecoder, &entry.inputQUsed)); + TAOS_CHECK_EXIT(tDecodeDouble(pDecoder, &entry.inputRate)); + TAOS_CHECK_EXIT(tDecodeDouble(pDecoder, &entry.procsTotal)); + TAOS_CHECK_EXIT(tDecodeDouble(pDecoder, &entry.procsThroughput)); + TAOS_CHECK_EXIT(tDecodeDouble(pDecoder, &entry.outputTotal)); + TAOS_CHECK_EXIT(tDecodeDouble(pDecoder, &entry.outputThroughput)); + TAOS_CHECK_EXIT(tDecodeDouble(pDecoder, &entry.sinkQuota)); + TAOS_CHECK_EXIT(tDecodeDouble(pDecoder, &entry.sinkDataSize)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &entry.processedVer)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &entry.verRange.minVer)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &entry.verRange.maxVer)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &entry.checkpointInfo.activeId)); + TAOS_CHECK_EXIT(tDecodeI8(pDecoder, &entry.checkpointInfo.failed)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &entry.checkpointInfo.activeTransId)); - if (tDecodeI64(pDecoder, &entry.checkpointInfo.latestId) < 0) return -1; - if (tDecodeI64(pDecoder, &entry.checkpointInfo.latestVer) < 0) return -1; - if (tDecodeI64(pDecoder, &entry.checkpointInfo.latestTime) < 0) return -1; - if (tDecodeI64(pDecoder, &entry.checkpointInfo.latestSize) < 0) return -1; - if (tDecodeI8(pDecoder, &entry.checkpointInfo.remoteBackup) < 0) return -1; - if (tDecodeI8(pDecoder, &entry.checkpointInfo.consensusChkptId) < 0) return -1; - if (tDecodeI64(pDecoder, &entry.checkpointInfo.consensusTs) < 0) return -1; - if (tDecodeI64(pDecoder, &entry.startTime) < 0) return -1; - if (tDecodeI64(pDecoder, &entry.startCheckpointId) < 0) return -1; - if (tDecodeI64(pDecoder, &entry.startCheckpointVer) < 0) return -1; - if (tDecodeI64(pDecoder, &entry.hTaskId) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &entry.checkpointInfo.latestId)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &entry.checkpointInfo.latestVer)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &entry.checkpointInfo.latestTime)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &entry.checkpointInfo.latestSize)); + TAOS_CHECK_EXIT(tDecodeI8(pDecoder, &entry.checkpointInfo.remoteBackup)); + TAOS_CHECK_EXIT(tDecodeI8(pDecoder, &entry.checkpointInfo.consensusChkptId)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &entry.checkpointInfo.consensusTs)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &entry.startTime)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &entry.startCheckpointId)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &entry.startCheckpointVer)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &entry.hTaskId)); entry.id.taskId = taskId; - void* p = taosArrayPush(pReq->pTaskStatus, &entry); - if (p == NULL) { - code = TSDB_CODE_OUT_OF_MEMORY; - goto _err; + if (taosArrayPush(pReq->pTaskStatus, &entry) == NULL) { + TAOS_CHECK_EXIT(terrno); } } int32_t numOfVgs = 0; - if (tDecodeI32(pDecoder, &numOfVgs) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &numOfVgs)); - pReq->pUpdateNodes = taosArrayInit(numOfVgs, sizeof(int32_t)); + if ((pReq->pUpdateNodes = taosArrayInit(numOfVgs, sizeof(int32_t))) == NULL) { + TAOS_CHECK_EXIT(terrno); + } for (int j = 0; j < numOfVgs; ++j) { int32_t vgId = 0; - if (tDecodeI32(pDecoder, &vgId) < 0) return -1; - void* p = taosArrayPush(pReq->pUpdateNodes, &vgId); - if (p == NULL) { - code = TSDB_CODE_OUT_OF_MEMORY; - goto _err; + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &vgId)); + if (taosArrayPush(pReq->pUpdateNodes, &vgId) == NULL) { + TAOS_CHECK_EXIT(terrno); } } - if (tDecodeI32(pDecoder, &pReq->msgId) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->ts) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->msgId)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pReq->ts)); tEndDecode(pDecoder); - return 0; - _err: - tEndDecode(pDecoder); +_exit: return code; } @@ -508,212 +606,250 @@ void tCleanupStreamHbMsg(SStreamHbMsg* pMsg) { } int32_t tEncodeStreamTask(SEncoder* pEncoder, const SStreamTask* pTask) { - if (tStartEncode(pEncoder) < 0) return -1; - if (tEncodeI64(pEncoder, pTask->ver) < 0) return -1; - if (tEncodeI64(pEncoder, pTask->id.streamId) < 0) return -1; - if (tEncodeI32(pEncoder, pTask->id.taskId) < 0) return -1; - if (tEncodeI32(pEncoder, pTask->info.totalLevel) < 0) return -1; - if (tEncodeI8(pEncoder, pTask->info.taskLevel) < 0) return -1; - if (tEncodeI8(pEncoder, pTask->outputInfo.type) < 0) return -1; - if (tEncodeI16(pEncoder, pTask->msgInfo.msgType) < 0) return -1; + int32_t code = 0; + int32_t lino; - if (tEncodeI8(pEncoder, pTask->status.taskStatus) < 0) return -1; - if (tEncodeI8(pEncoder, pTask->status.schedStatus) < 0) return -1; + TAOS_CHECK_EXIT(tStartEncode(pEncoder)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pTask->ver)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pTask->id.streamId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pTask->id.taskId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pTask->info.totalLevel)); + TAOS_CHECK_EXIT(tEncodeI8(pEncoder, pTask->info.taskLevel)); + TAOS_CHECK_EXIT(tEncodeI8(pEncoder, pTask->outputInfo.type)); + TAOS_CHECK_EXIT(tEncodeI16(pEncoder, pTask->msgInfo.msgType)); - if (tEncodeI32(pEncoder, pTask->info.selfChildId) < 0) return -1; - if (tEncodeI32(pEncoder, pTask->info.nodeId) < 0) return -1; - if (tEncodeSEpSet(pEncoder, &pTask->info.epSet) < 0) return -1; - if (tEncodeSEpSet(pEncoder, &pTask->info.mnodeEpset) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI8(pEncoder, pTask->status.taskStatus)); + TAOS_CHECK_EXIT(tEncodeI8(pEncoder, pTask->status.schedStatus)); - if (tEncodeI64(pEncoder, pTask->chkInfo.checkpointId) < 0) return -1; - if (tEncodeI64(pEncoder, pTask->chkInfo.checkpointVer) < 0) return -1; - if (tEncodeI8(pEncoder, pTask->info.fillHistory) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pTask->info.selfChildId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pTask->info.nodeId)); + TAOS_CHECK_EXIT(tEncodeSEpSet(pEncoder, &pTask->info.epSet)); + TAOS_CHECK_EXIT(tEncodeSEpSet(pEncoder, &pTask->info.mnodeEpset)); - if (tEncodeI64(pEncoder, pTask->hTaskInfo.id.streamId)) return -1; + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pTask->chkInfo.checkpointId)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pTask->chkInfo.checkpointVer)); + TAOS_CHECK_EXIT(tEncodeI8(pEncoder, pTask->info.fillHistory)); + + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pTask->hTaskInfo.id.streamId)); int32_t taskId = pTask->hTaskInfo.id.taskId; - if (tEncodeI32(pEncoder, taskId)) return -1; + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, taskId)); - if (tEncodeI64(pEncoder, pTask->streamTaskId.streamId)) return -1; + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pTask->streamTaskId.streamId)); taskId = pTask->streamTaskId.taskId; - if (tEncodeI32(pEncoder, taskId)) return -1; + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, taskId)); - if (tEncodeU64(pEncoder, pTask->dataRange.range.minVer)) return -1; - if (tEncodeU64(pEncoder, pTask->dataRange.range.maxVer)) return -1; - if (tEncodeI64(pEncoder, pTask->dataRange.window.skey)) return -1; - if (tEncodeI64(pEncoder, pTask->dataRange.window.ekey)) return -1; + TAOS_CHECK_EXIT(tEncodeU64(pEncoder, pTask->dataRange.range.minVer)); + TAOS_CHECK_EXIT(tEncodeU64(pEncoder, pTask->dataRange.range.maxVer)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pTask->dataRange.window.skey)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pTask->dataRange.window.ekey)); int32_t epSz = taosArrayGetSize(pTask->upstreamInfo.pList); - if (tEncodeI32(pEncoder, epSz) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, epSz)); for (int32_t i = 0; i < epSz; i++) { SStreamUpstreamEpInfo* pInfo = taosArrayGetP(pTask->upstreamInfo.pList, i); - if (tEncodeStreamEpInfo(pEncoder, pInfo) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeStreamEpInfo(pEncoder, pInfo)); } if (pTask->info.taskLevel != TASK_LEVEL__SINK) { - if (tEncodeCStr(pEncoder, pTask->exec.qmsg) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeCStr(pEncoder, pTask->exec.qmsg)); } if (pTask->outputInfo.type == TASK_OUTPUT__TABLE) { - if (tEncodeI64(pEncoder, pTask->outputInfo.tbSink.stbUid) < 0) return -1; - if (tEncodeCStr(pEncoder, pTask->outputInfo.tbSink.stbFullName) < 0) return -1; - if (tEncodeSSchemaWrapper(pEncoder, pTask->outputInfo.tbSink.pSchemaWrapper) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pTask->outputInfo.tbSink.stbUid)); + TAOS_CHECK_EXIT(tEncodeCStr(pEncoder, pTask->outputInfo.tbSink.stbFullName)); + TAOS_CHECK_EXIT(tEncodeSSchemaWrapper(pEncoder, pTask->outputInfo.tbSink.pSchemaWrapper)); } else if (pTask->outputInfo.type == TASK_OUTPUT__SMA) { - if (tEncodeI64(pEncoder, pTask->outputInfo.smaSink.smaId) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pTask->outputInfo.smaSink.smaId)); } else if (pTask->outputInfo.type == TASK_OUTPUT__FETCH) { - if (tEncodeI8(pEncoder, pTask->outputInfo.fetchSink.reserved) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI8(pEncoder, pTask->outputInfo.fetchSink.reserved)); } else if (pTask->outputInfo.type == TASK_OUTPUT__FIXED_DISPATCH) { - if (tEncodeI32(pEncoder, pTask->outputInfo.fixedDispatcher.taskId) < 0) return -1; - if (tEncodeI32(pEncoder, pTask->outputInfo.fixedDispatcher.nodeId) < 0) return -1; - if (tEncodeSEpSet(pEncoder, &pTask->outputInfo.fixedDispatcher.epSet) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pTask->outputInfo.fixedDispatcher.taskId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pTask->outputInfo.fixedDispatcher.nodeId)); + TAOS_CHECK_EXIT(tEncodeSEpSet(pEncoder, &pTask->outputInfo.fixedDispatcher.epSet)); } else if (pTask->outputInfo.type == TASK_OUTPUT__SHUFFLE_DISPATCH) { - if (tSerializeSUseDbRspImp(pEncoder, &pTask->outputInfo.shuffleDispatcher.dbInfo) < 0) return -1; - if (tEncodeCStr(pEncoder, pTask->outputInfo.shuffleDispatcher.stbFullName) < 0) return -1; + TAOS_CHECK_EXIT(tSerializeSUseDbRspImp(pEncoder, &pTask->outputInfo.shuffleDispatcher.dbInfo)); + TAOS_CHECK_EXIT(tEncodeCStr(pEncoder, pTask->outputInfo.shuffleDispatcher.stbFullName)); } - if (tEncodeI64(pEncoder, pTask->info.delaySchedParam) < 0) return -1; - if (tEncodeI8(pEncoder, pTask->subtableWithoutMd5) < 0) return -1; - if (tEncodeCStrWithLen(pEncoder, pTask->reserve, sizeof(pTask->reserve) - 1) < 0) return -1; + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pTask->info.delaySchedParam)); + TAOS_CHECK_EXIT(tEncodeI8(pEncoder, pTask->subtableWithoutMd5)); + TAOS_CHECK_EXIT(tEncodeCStrWithLen(pEncoder, pTask->reserve, sizeof(pTask->reserve) - 1)); tEndEncode(pEncoder); - return 0; +_exit: + return code; } int32_t tDecodeStreamTask(SDecoder* pDecoder, SStreamTask* pTask) { int32_t taskId = 0; + int32_t code = 0; + int32_t lino; - if (tStartDecode(pDecoder) < 0) return -1; - if (tDecodeI64(pDecoder, &pTask->ver) < 0) return -1; - if (pTask->ver <= SSTREAM_TASK_INCOMPATIBLE_VER || pTask->ver > SSTREAM_TASK_VER) return -1; + TAOS_CHECK_EXIT(tStartDecode(pDecoder)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pTask->ver)); + if (pTask->ver <= SSTREAM_TASK_INCOMPATIBLE_VER || pTask->ver > SSTREAM_TASK_VER) { + TAOS_CHECK_EXIT(TSDB_CODE_INVALID_MSG); + } - if (tDecodeI64(pDecoder, &pTask->id.streamId) < 0) return -1; - if (tDecodeI32(pDecoder, &pTask->id.taskId) < 0) return -1; - if (tDecodeI32(pDecoder, &pTask->info.totalLevel) < 0) return -1; - if (tDecodeI8(pDecoder, &pTask->info.taskLevel) < 0) return -1; - if (tDecodeI8(pDecoder, &pTask->outputInfo.type) < 0) return -1; - if (tDecodeI16(pDecoder, &pTask->msgInfo.msgType) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pTask->id.streamId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pTask->id.taskId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pTask->info.totalLevel)); + TAOS_CHECK_EXIT(tDecodeI8(pDecoder, &pTask->info.taskLevel)); + TAOS_CHECK_EXIT(tDecodeI8(pDecoder, &pTask->outputInfo.type)); + TAOS_CHECK_EXIT(tDecodeI16(pDecoder, &pTask->msgInfo.msgType)); - if (tDecodeI8(pDecoder, &pTask->status.taskStatus) < 0) return -1; - if (tDecodeI8(pDecoder, &pTask->status.schedStatus) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI8(pDecoder, &pTask->status.taskStatus)); + TAOS_CHECK_EXIT(tDecodeI8(pDecoder, &pTask->status.schedStatus)); - if (tDecodeI32(pDecoder, &pTask->info.selfChildId) < 0) return -1; - if (tDecodeI32(pDecoder, &pTask->info.nodeId) < 0) return -1; - if (tDecodeSEpSet(pDecoder, &pTask->info.epSet) < 0) return -1; - if (tDecodeSEpSet(pDecoder, &pTask->info.mnodeEpset) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pTask->info.selfChildId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pTask->info.nodeId)); + TAOS_CHECK_EXIT(tDecodeSEpSet(pDecoder, &pTask->info.epSet)); + TAOS_CHECK_EXIT(tDecodeSEpSet(pDecoder, &pTask->info.mnodeEpset)); - if (tDecodeI64(pDecoder, &pTask->chkInfo.checkpointId) < 0) return -1; - if (tDecodeI64(pDecoder, &pTask->chkInfo.checkpointVer) < 0) return -1; - if (tDecodeI8(pDecoder, &pTask->info.fillHistory) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pTask->chkInfo.checkpointId)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pTask->chkInfo.checkpointVer)); + TAOS_CHECK_EXIT(tDecodeI8(pDecoder, &pTask->info.fillHistory)); - if (tDecodeI64(pDecoder, &pTask->hTaskInfo.id.streamId)) return -1; - if (tDecodeI32(pDecoder, &taskId)) return -1; + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pTask->hTaskInfo.id.streamId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &taskId)); pTask->hTaskInfo.id.taskId = taskId; - if (tDecodeI64(pDecoder, &pTask->streamTaskId.streamId)) return -1; - if (tDecodeI32(pDecoder, &taskId)) return -1; + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pTask->streamTaskId.streamId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &taskId)); pTask->streamTaskId.taskId = taskId; - if (tDecodeU64(pDecoder, (uint64_t*)&pTask->dataRange.range.minVer)) return -1; - if (tDecodeU64(pDecoder, (uint64_t*)&pTask->dataRange.range.maxVer)) return -1; - if (tDecodeI64(pDecoder, &pTask->dataRange.window.skey)) return -1; - if (tDecodeI64(pDecoder, &pTask->dataRange.window.ekey)) return -1; + TAOS_CHECK_EXIT(tDecodeU64(pDecoder, (uint64_t*)&pTask->dataRange.range.minVer)); + TAOS_CHECK_EXIT(tDecodeU64(pDecoder, (uint64_t*)&pTask->dataRange.range.maxVer)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pTask->dataRange.window.skey)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pTask->dataRange.window.ekey)); int32_t epSz = -1; - if (tDecodeI32(pDecoder, &epSz) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &epSz) < 0); - pTask->upstreamInfo.pList = taosArrayInit(epSz, POINTER_BYTES); + if ((pTask->upstreamInfo.pList = taosArrayInit(epSz, POINTER_BYTES)) == NULL) { + TAOS_CHECK_EXIT(terrno); + } for (int32_t i = 0; i < epSz; i++) { SStreamUpstreamEpInfo* pInfo = taosMemoryCalloc(1, sizeof(SStreamUpstreamEpInfo)); - if (pInfo == NULL) return -1; - if (tDecodeStreamEpInfo(pDecoder, pInfo) < 0) { - taosMemoryFreeClear(pInfo); - return -1; + if (pInfo == NULL) { + TAOS_CHECK_EXIT(terrno); } - void* p = taosArrayPush(pTask->upstreamInfo.pList, &pInfo); - if (p == NULL) { - tEndDecode(pDecoder); - return -1; + if ((code = tDecodeStreamEpInfo(pDecoder, pInfo)) < 0) { + taosMemoryFreeClear(pInfo); + goto _exit; + } + if (taosArrayPush(pTask->upstreamInfo.pList, &pInfo) == NULL) { + TAOS_CHECK_EXIT(terrno); } } if (pTask->info.taskLevel != TASK_LEVEL__SINK) { - if (tDecodeCStrAlloc(pDecoder, &pTask->exec.qmsg) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeCStrAlloc(pDecoder, &pTask->exec.qmsg)); } if (pTask->outputInfo.type == TASK_OUTPUT__TABLE) { - if (tDecodeI64(pDecoder, &pTask->outputInfo.tbSink.stbUid) < 0) return -1; - if (tDecodeCStrTo(pDecoder, pTask->outputInfo.tbSink.stbFullName) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pTask->outputInfo.tbSink.stbUid)); + TAOS_CHECK_EXIT(tDecodeCStrTo(pDecoder, pTask->outputInfo.tbSink.stbFullName)); pTask->outputInfo.tbSink.pSchemaWrapper = taosMemoryCalloc(1, sizeof(SSchemaWrapper)); - if (pTask->outputInfo.tbSink.pSchemaWrapper == NULL) return -1; - if (tDecodeSSchemaWrapper(pDecoder, pTask->outputInfo.tbSink.pSchemaWrapper) < 0) return -1; + if (pTask->outputInfo.tbSink.pSchemaWrapper == NULL) { + TAOS_CHECK_EXIT(terrno); + } + TAOS_CHECK_EXIT(tDecodeSSchemaWrapper(pDecoder, pTask->outputInfo.tbSink.pSchemaWrapper)); } else if (pTask->outputInfo.type == TASK_OUTPUT__SMA) { - if (tDecodeI64(pDecoder, &pTask->outputInfo.smaSink.smaId) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pTask->outputInfo.smaSink.smaId)); } else if (pTask->outputInfo.type == TASK_OUTPUT__FETCH) { - if (tDecodeI8(pDecoder, &pTask->outputInfo.fetchSink.reserved) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI8(pDecoder, &pTask->outputInfo.fetchSink.reserved)); } else if (pTask->outputInfo.type == TASK_OUTPUT__FIXED_DISPATCH) { - if (tDecodeI32(pDecoder, &pTask->outputInfo.fixedDispatcher.taskId) < 0) return -1; - if (tDecodeI32(pDecoder, &pTask->outputInfo.fixedDispatcher.nodeId) < 0) return -1; - if (tDecodeSEpSet(pDecoder, &pTask->outputInfo.fixedDispatcher.epSet) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pTask->outputInfo.fixedDispatcher.taskId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pTask->outputInfo.fixedDispatcher.nodeId)); + TAOS_CHECK_EXIT(tDecodeSEpSet(pDecoder, &pTask->outputInfo.fixedDispatcher.epSet)); } else if (pTask->outputInfo.type == TASK_OUTPUT__SHUFFLE_DISPATCH) { - if (tDeserializeSUseDbRspImp(pDecoder, &pTask->outputInfo.shuffleDispatcher.dbInfo) < 0) return -1; - if (tDecodeCStrTo(pDecoder, pTask->outputInfo.shuffleDispatcher.stbFullName) < 0) return -1; + TAOS_CHECK_EXIT(tDeserializeSUseDbRspImp(pDecoder, &pTask->outputInfo.shuffleDispatcher.dbInfo)); + TAOS_CHECK_EXIT(tDecodeCStrTo(pDecoder, pTask->outputInfo.shuffleDispatcher.stbFullName)); } - if (tDecodeI64(pDecoder, &pTask->info.delaySchedParam) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pTask->info.delaySchedParam)); if (pTask->ver >= SSTREAM_TASK_SUBTABLE_CHANGED_VER) { - if (tDecodeI8(pDecoder, &pTask->subtableWithoutMd5) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeI8(pDecoder, &pTask->subtableWithoutMd5)); } - if (tDecodeCStrTo(pDecoder, pTask->reserve) < 0) return -1; + TAOS_CHECK_EXIT(tDecodeCStrTo(pDecoder, pTask->reserve)); tEndDecode(pDecoder); - return 0; + +_exit: + return code; } int32_t tEncodeStreamTaskChkptReport(SEncoder* pEncoder, const SCheckpointReport* pReq) { - if (tStartEncode(pEncoder) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->streamId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->taskId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->nodeId) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->checkpointId) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->checkpointVer) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->checkpointTs) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->transId) < 0) return -1; - if (tEncodeI8(pEncoder, pReq->dropHTask) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartEncode(pEncoder)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->streamId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->taskId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->nodeId)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->checkpointId)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->checkpointVer)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->checkpointTs)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->transId)); + TAOS_CHECK_EXIT(tEncodeI8(pEncoder, pReq->dropHTask)); tEndEncode(pEncoder); - return 0; + +_exit: + return code; } int32_t tDecodeStreamTaskChkptReport(SDecoder* pDecoder, SCheckpointReport* pReq) { - if (tStartDecode(pDecoder) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->streamId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->taskId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->nodeId) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->checkpointId) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->checkpointVer) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->checkpointTs) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->transId) < 0) return -1; - if (tDecodeI8(pDecoder, &pReq->dropHTask) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartDecode(pDecoder)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pReq->streamId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->taskId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->nodeId)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pReq->checkpointId)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pReq->checkpointVer)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pReq->checkpointTs)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->transId)); + TAOS_CHECK_EXIT(tDecodeI8(pDecoder, &pReq->dropHTask)); tEndDecode(pDecoder); - return 0; + +_exit: + return code; } -int32_t tEncodeRestoreCheckpointInfo (SEncoder* pEncoder, const SRestoreCheckpointInfo* pReq) { - if (tStartEncode(pEncoder) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->startTs) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->streamId) < 0) return -1; - if (tEncodeI64(pEncoder, pReq->checkpointId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->transId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->taskId) < 0) return -1; - if (tEncodeI32(pEncoder, pReq->nodeId) < 0) return -1; +int32_t tEncodeRestoreCheckpointInfo(SEncoder* pEncoder, const SRestoreCheckpointInfo* pReq) { + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartEncode(pEncoder)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->startTs)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->streamId)); + TAOS_CHECK_EXIT(tEncodeI64(pEncoder, pReq->checkpointId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->transId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->taskId)); + TAOS_CHECK_EXIT(tEncodeI32(pEncoder, pReq->nodeId)); tEndEncode(pEncoder); - return pEncoder->pos; + +_exit: + if (code) { + return code; + } else { + return pEncoder->pos; + } } int32_t tDecodeRestoreCheckpointInfo(SDecoder* pDecoder, SRestoreCheckpointInfo* pReq) { - if (tStartDecode(pDecoder) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->startTs) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->streamId) < 0) return -1; - if (tDecodeI64(pDecoder, &pReq->checkpointId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->transId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->taskId) < 0) return -1; - if (tDecodeI32(pDecoder, &pReq->nodeId) < 0) return -1; + int32_t code = 0; + int32_t lino; + + TAOS_CHECK_EXIT(tStartDecode(pDecoder)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pReq->startTs)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pReq->streamId)); + TAOS_CHECK_EXIT(tDecodeI64(pDecoder, &pReq->checkpointId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->transId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->taskId)); + TAOS_CHECK_EXIT(tDecodeI32(pDecoder, &pReq->nodeId)); tEndDecode(pDecoder); - return 0; + +_exit: + return code; } diff --git a/tests/army/alter/alterConfig.py b/tests/army/alter/alterConfig.py index 6f709eb802..f8c52551e3 100644 --- a/tests/army/alter/alterConfig.py +++ b/tests/army/alter/alterConfig.py @@ -28,6 +28,28 @@ from frame import * class TDTestCase(TBase): + def alterCachemodel(self): + """Add test case for altering cache model(TS-5390) + """ + # drop database if exists + tdSql.execute(f"drop database if exists db3590;") + # create database with cachemodel 'none' + tdSql.execute(f"create database db3590 vgroups 1 replica 1 cachemodel 'none';") + tdSql.execute("use db3590;") + tdSql.execute("create table ntb1 (ts timestamp, ival1 int);") + tdSql.execute("insert into ntb1 values(now, 1);") + tdSql.execute("flush database db3590;") + # alter table schema + tdSql.execute("alter table ntb1 add column ival2 int;") + tdSql.execute("insert into ntb1 values(now, 2, NULL);") + # alter table schema again + tdSql.execute("alter table ntb1 add column ival3 int;") + # alter database with cachemodel 'both‘ + tdSql.execute("alter database db3590 cachemodel 'both';") + # wait for cachemodel avaiable + time.sleep(5) + tdSql.query("select last(*) from ntb1;") + def alterTtlConfig(self): """Add test case for altering ttl config """ @@ -86,6 +108,8 @@ class TDTestCase(TBase): self.alterSupportVnodes() # TS-5191 self.alterTtlConfig() + # TS-5390 + self.alterCachemodel() tdLog.success(f"{__file__} successfully executed") diff --git a/tests/army/query/function/ans/max.csv b/tests/army/query/function/ans/max.csv new file mode 100644 index 0000000000..62df7c5d53 --- /dev/null +++ b/tests/army/query/function/ans/max.csv @@ -0,0 +1,480 @@ +9999 +11.9989996 +224 +x +一二三四五六七八九十 +四 +一二三四五六七八九十 +四 +1110 +2838 +4566 +6294 +8022 +9750 +9999 +3206 +4934 +6662 +8390 +9999 +1846 +3574 +5302 +7030 +8758 +9999 +2214 +3942 +5670 +7398 +9126 +9999 +2582 +4310 +6038 +7766 +9494 +9999 +2950 +4678 +6406 +8134 +9862 +9999 +3318 +5046 +6774 +8502 +9999 +1958 +3686 +5414 +7142 +8870 +9999 +2326 +4054 +5782 +7510 +9238 +9999 +2694 +4422 +6150 +7878 +9606 +9999 +11.9989996 +11.9969997 +11.9969997 +11.9989996 +11.9989996 +11.9989996 +11.9989996 +11.9969997 +11.9989996 +11.9980001 +11.9989996 +11.9989996 +11.9989996 +11.9969997 +11.9989996 +11.9980001 +11.9989996 +11.9989996 +11.9989996 +11.9969997 +11.9989996 +11.9980001 +11.9989996 +11.9989996 +11.9989996 +11.9969997 +11.9989996 +11.9989996 +11.9989996 +11.9989996 +11.9969997 +11.9989996 +11.9980001 +11.9989996 +11.9989996 +11.9989996 +11.9969997 +11.9989996 +11.9980001 +11.9989996 +11.9989996 +11.9989996 +11.9969997 +11.9989996 +11.9980001 +11.9989996 +11.9989996 +11.9989996 +11.9969997 +11.9989996 +11.9989996 +11.9989996 +11.9989996 +11.9989996 +11.9969997 +11.9989996 +11.9989996 +11.9989996 +11.9860001 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +224 +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +x +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +一二三四五六七八九十 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 +四 diff --git a/tests/army/query/function/ans/min.csv b/tests/army/query/function/ans/min.csv new file mode 100644 index 0000000000..d87f2264d7 --- /dev/null +++ b/tests/army/query/function/ans/min.csv @@ -0,0 +1,480 @@ +0 +8.0000000 +215 +haha +abc一二三abc一二三abc +a +abc一二三abc一二三abc +a +0 +1111 +2839 +4567 +6295 +8023 +0 +1479 +3207 +4935 +6663 +0 +119 +1847 +3575 +5303 +7031 +0 +487 +2215 +3943 +5671 +7399 +0 +855 +2583 +4311 +6039 +7767 +0 +1223 +2951 +4679 +6407 +8135 +0 +1591 +3319 +5047 +6775 +0 +231 +1959 +3687 +5415 +7143 +0 +599 +2327 +4055 +5783 +7511 +0 +967 +2695 +4423 +6151 +7879 +9607 +8.0000000 +8.0000000 +8.0000000 +8.0010004 +8.0010004 +8.0000000 +8.0000000 +8.0000000 +8.0019999 +8.0010004 +8.0000000 +8.0030003 +8.0000000 +8.0000000 +8.0019999 +8.0010004 +8.0000000 +8.0030003 +8.0000000 +8.0000000 +8.0019999 +8.0010004 +8.0000000 +8.0000000 +8.0000000 +8.0000000 +8.0019999 +8.0010004 +8.0000000 +8.0000000 +8.0000000 +8.0000000 +8.0010004 +8.0089998 +8.0000000 +8.0000000 +8.0000000 +8.0019999 +8.0010004 +8.0000000 +8.0030003 +8.0000000 +8.0000000 +8.0019999 +8.0010004 +8.0000000 +8.0019999 +8.0000000 +8.0000000 +8.0019999 +8.0010004 +8.0000000 +8.0000000 +8.0000000 +8.0000000 +8.0019999 +8.0010004 +8.0000000 +8.0050001 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +215 +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +haha +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +abc一二三abc一二三abc +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a +a diff --git a/tests/army/query/function/in/max.in b/tests/army/query/function/in/max.in new file mode 100644 index 0000000000..8415983989 --- /dev/null +++ b/tests/army/query/function/in/max.in @@ -0,0 +1,16 @@ +select MAX(id) from ts_4893.meters; +select MAX(current) from ts_4893.meters; +select MAX(voltage) from ts_4893.meters; +select MAX(name) from ts_4893.meters; +select MAX(nch1) from ts_4893.meters; +select MAX(nch2) from ts_4893.meters; +select MAX(var1) from ts_4893.meters; +select MAX(var2) from ts_4893.meters; +select MAX(id) from ts_4893.meters interval(60d); +select MAX(current) from ts_4893.meters interval(60d); +select MAX(voltage) from ts_4893.meters interval(60d); +select MAX(name) from ts_4893.meters interval(60d); +select MAX(nch1) from ts_4893.meters interval(60d); +select MAX(nch2) from ts_4893.meters interval(60d); +select MAX(var1) from ts_4893.meters interval(60d); +select MAX(var2) from ts_4893.meters interval(60d); \ No newline at end of file diff --git a/tests/army/query/function/in/min.in b/tests/army/query/function/in/min.in new file mode 100644 index 0000000000..5f6c516bd7 --- /dev/null +++ b/tests/army/query/function/in/min.in @@ -0,0 +1,16 @@ +select MIN(id) from ts_4893.meters; +select MIN(current) from ts_4893.meters; +select MIN(voltage) from ts_4893.meters; +select MIN(name) from ts_4893.meters; +select MIN(nch1) from ts_4893.meters; +select MIN(nch2) from ts_4893.meters; +select MIN(var1) from ts_4893.meters; +select MIN(var2) from ts_4893.meters; +select MIN(id) from ts_4893.meters interval(60d); +select MIN(current) from ts_4893.meters interval(60d); +select MIN(voltage) from ts_4893.meters interval(60d); +select MIN(name) from ts_4893.meters interval(60d); +select MIN(nch1) from ts_4893.meters interval(60d); +select MIN(nch2) from ts_4893.meters interval(60d); +select MIN(var1) from ts_4893.meters interval(60d); +select MIN(var2) from ts_4893.meters interval(60d); \ No newline at end of file diff --git a/tests/army/query/function/test_function.py b/tests/army/query/function/test_function.py index 77967f7815..4981e93563 100644 --- a/tests/army/query/function/test_function.py +++ b/tests/army/query/function/test_function.py @@ -505,12 +505,35 @@ class TDTestCase(TBase): tdSql.query("select var_pop(null) from ts_4893.meters;") tdSql.checkRows(1) tdSql.checkData(0, 0, None) - def test_error(self): tdSql.error( "select * from (select to_iso8601(ts, timezone()), timezone() from meters order by ts desc) limit 1000;", expectErrInfo="Not supported timzone format") # TS-5340 + def test_min(self): + self.test_normal_query("min") + tdSql.query("select min(var1), min(id) from ts_4893.d0;") + tdSql.checkRows(1) + tdSql.checkData(0, 0, 'abc一二三abc一二三abc') + tdSql.checkData(0, 1, 0) + def test_max(self): + self.test_normal_query("max") + tdSql.query("select max(var1), max(id) from ts_4893.d0;") + tdSql.checkRows(1) + tdSql.checkData(0, 0, '一二三四五六七八九十') + tdSql.checkData(0, 1, 9999) + def test_rand(self): + tdSql.query("select rand();") + tdSql.checkRows(1) + + tdSql.query("select rand(1);") + tdSql.checkRows(1) + + tdSql.query("select rand(1) from ts_4893.meters limit 10;") + tdSql.checkRows(10) + + tdSql.query("select rand(id) from ts_4893.d0 limit 10;") + tdSql.checkRows(10) # run def run(self): tdLog.debug(f"start to excute {__file__}") @@ -528,6 +551,7 @@ class TDTestCase(TBase): self.test_sign() self.test_degrees() self.test_radians() + self.test_rand() # char function self.test_char_length() @@ -551,6 +575,10 @@ class TDTestCase(TBase): self.test_stddev() self.test_varpop() + # select function + self.test_min() + self.test_max() + # error function self.test_error() diff --git a/tests/script/tsim/parser/nchar.sim b/tests/script/tsim/parser/nchar.sim index 9358a31cc1..86a854d8e7 100644 --- a/tests/script/tsim/parser/nchar.sim +++ b/tests/script/tsim/parser/nchar.sim @@ -226,8 +226,6 @@ if $data10 != 5 then endi sql_error select avg(tbcol) from $mt where tbcol1 = 1 group by tgcol sql_error select sum(tbcol) from $mt where tbcol1 = 1 group by tgcol -sql_error select min(tbcol) from $mt where tbcol1 = 1 group by tgcol -sql_error select max(tbcol) from $mt where tbcol1 = 1 group by tgcol sql select first(tbcol), tgcol from $mt where tbcol1 = 1 group by tgcol order by tgcol if $rows != 2 then diff --git a/tests/script/tsim/sma/tsmaCreateInsertQuery.sim b/tests/script/tsim/sma/tsmaCreateInsertQuery.sim index 692212d511..a7b90846ce 100644 --- a/tests/script/tsim/sma/tsmaCreateInsertQuery.sim +++ b/tests/script/tsim/sma/tsmaCreateInsertQuery.sim @@ -35,16 +35,12 @@ sql create sma index sma_index_name1 on stb function(max(c1),max(c2),min(c1)) in sql create sma index sma_index_name2 on stb function(sum(c1),first(c1), last(c1), first(c4),last(c4),count(c4),first(c5),last(c5),count(c5),apercentile(c1,80,"t-digest"), avg(c2),count(c3), spread(c3), stddev(c2), hyperloglog(c2), hyperloglog(c4), hyperloglog(c5)) interval(5m,10s) sliding(5m); # for varchar/binary sql_error create sma index sma_index_name3 on stb function(sum(c4)) interval(5m,10s) sliding(5m); -sql_error create sma index sma_index_name3 on stb function(min(c4)) interval(5m,10s) sliding(5m); -sql_error create sma index sma_index_name3 on stb function(max(c4)) interval(5m,10s) sliding(5m); sql_error create sma index sma_index_name3 on stb function(avg(c4)) interval(5m,10s) sliding(5m); sql_error create sma index sma_index_name3 on stb function(apercentile(c4)) interval(5m,10s) sliding(5m); sql_error create sma index sma_index_name3 on stb function(spread(c4)) interval(5m,10s) sliding(5m); sql_error create sma index sma_index_name3 on stb function(stddev(c4)) interval(5m,10s) sliding(5m); # for nchar sql_error create sma index sma_index_name3 on stb function(sum(c5)) interval(5m,10s) sliding(5m); -sql_error create sma index sma_index_name3 on stb function(min(c5)) interval(5m,10s) sliding(5m); -sql_error create sma index sma_index_name3 on stb function(max(c5)) interval(5m,10s) sliding(5m); sql_error create sma index sma_index_name3 on stb function(avg(c5)) interval(5m,10s) sliding(5m); sql_error create sma index sma_index_name3 on stb function(apercentile(c5)) interval(5m,10s) sliding(5m); sql_error create sma index sma_index_name3 on stb function(spread(c5)) interval(5m,10s) sliding(5m); diff --git a/tests/system-test/2-query/min.py b/tests/system-test/2-query/min.py index bf9993da64..8aa6f2001e 100644 --- a/tests/system-test/2-query/min.py +++ b/tests/system-test/2-query/min.py @@ -41,8 +41,6 @@ class TDTestCase: tdSql.error(f"select min(now()) from {dbname}.stb_1") tdSql.error(f"select min(ts) from {dbname}.stb_1") tdSql.error(f"select min(col7) from {dbname}.stb_1") - tdSql.error(f"select min(col8) from {dbname}.stb_1") - tdSql.error(f"select min(col9) from {dbname}.stb_1") tdSql.error(f"select min(a) from {dbname}.stb_1") tdSql.query(f"select min(1) from {dbname}.stb_1") tdSql.error(f"select min(count(c1),count(c2)) from {dbname}.stb_1") @@ -69,13 +67,15 @@ class TDTestCase: tdSql.checkData(0, 0, np.min(floatData)) tdSql.query(f"select min(col1) from {dbname}.stb_1 where col2>=5") tdSql.checkData(0,0,5) + tdSql.query(f"select min(col8) from {dbname}.stb_1") + tdSql.checkData(0,0,'taosdata1') + tdSql.query(f"select min(col9) from {dbname}.stb_1") + tdSql.checkData(0,0,'涛思数据1') tdSql.error(f"select min(now()) from {dbname}.stb_1") tdSql.error(f"select min(ts) from {dbname}.stb_1") tdSql.error(f"select min(col7) from {dbname}.stb_1") - tdSql.error(f"select min(col8) from {dbname}.stb_1") - tdSql.error(f"select min(col9) from {dbname}.stb_1") tdSql.error(f"select min(a) from {dbname}.stb_1") tdSql.query(f"select min(1) from {dbname}.stb_1") tdSql.error(f"select min(count(c1),count(c2)) from {dbname}.stb_1") @@ -102,12 +102,14 @@ class TDTestCase: tdSql.checkData(0, 0, np.min(floatData)) tdSql.query(f"select min(col1) from {dbname}.stb where col2>=5") tdSql.checkData(0,0,5) + tdSql.query(f"select min(col8) from {dbname}.stb") + tdSql.checkData(0,0,'taosdata1') + tdSql.query(f"select min(col9) from {dbname}.stb") + tdSql.checkData(0,0,'涛思数据1') tdSql.error(f"select min(now()) from {dbname}.stb_1") tdSql.error(f"select min(ts) from {dbname}.stb_1") tdSql.error(f"select min(col7) from {dbname}.ntb") - tdSql.error(f"select min(col8) from {dbname}.ntb") - tdSql.error(f"select min(col9) from {dbname}.ntb") tdSql.error(f"select min(a) from {dbname}.ntb") tdSql.query(f"select min(1) from {dbname}.ntb") tdSql.error(f"select min(count(c1),count(c2)) from {dbname}.ntb") @@ -134,6 +136,10 @@ class TDTestCase: tdSql.checkData(0, 0, np.min(floatData)) tdSql.query(f"select min(col1) from {dbname}.ntb where col2>=5") tdSql.checkData(0,0,5) + tdSql.query(f"select min(col8) from {dbname}.ntb") + tdSql.checkData(0,0,'taosdata1') + tdSql.query(f"select min(col9) from {dbname}.ntb") + tdSql.checkData(0,0,'涛思数据1') def stop(self): diff --git a/tests/system-test/2-query/select_null.py b/tests/system-test/2-query/select_null.py index d6e48e4f99..bd92e4cf5c 100755 --- a/tests/system-test/2-query/select_null.py +++ b/tests/system-test/2-query/select_null.py @@ -122,21 +122,27 @@ class TDTestCase: tdSql.query(sql) tdSql.checkData(0,0,4) sql = "select max(t1) from %s.stb0 where ts